**** BEGIN LOGGING AT Mon Feb 01 02:59:58 2016 Feb 01 03:01:55 dragorn: why do you say that? im not gainsaying you, i just want to get a sense of where you're coming from. Feb 01 03:02:19 if you want apps to tunnel over ssh, and you want apps to know when a connection is established Feb 01 03:02:29 use the existing infrastructure for that, like the vpn code Feb 01 03:02:40 you can do whatever tricks you want to send it over a ssh connection Feb 01 03:02:50 so if you want something that automates that all, look there Feb 01 03:03:02 yeah, that was what i was kinda thinking, but there isnt a whole lot of public code that illuminates that stuff Feb 01 03:03:09 openvpn is pretty much it, no? Feb 01 03:08:19 the android docs aren't terrible, there's also some local firewalls that work as vpn which have open source afaik Feb 01 03:12:24 i'm a noob, so the android docs are a little too complicated for me. i've tried, and need something more functional Feb 01 03:13:44 im browsing https://github.com/hexene/LocalVPN and expect i'll be browsing for another few days before trying anything codewise Feb 01 03:18:37 i am certain that i will try and ask questions over the next few days/weeks that signify my ignorance, and i ask only for mercy, not for a response. Feb 01 03:18:43 any ideas how i can align something from the bottom fo a layout Feb 01 03:18:48 of* Feb 01 03:19:13 wa5ted, to the bottom? Feb 01 03:20:02 android:layout_gravity="bottom" Feb 01 03:20:05 yeah I have a card view, I need to maintain its height and width to inherit from parent (easy) but i need it to appear say 40px from the bottom Feb 01 03:20:14 danijoo: ^ Feb 01 03:20:20 wa5ted, ^ Feb 01 03:20:31 (im replicating the sliding panel from google music) Feb 01 03:31:05 danijoo: is there any way i can absolute position the card so it sits on top of all content in the activity (including action bar) and sits close to the bottom of the screen Feb 01 03:31:11 like the google music sliding panel Feb 01 03:31:27 i dont use google music Feb 01 03:33:19 but yes that is possible Feb 01 03:33:39 layout_gravity bottom and some margin from button and you are done.. Feb 01 03:33:57 + nested framelayouts maybe to have it on the very top Feb 01 03:36:36 okay Feb 01 03:46:41 hi guys Feb 01 03:46:55 can some1 help me to fix my code? Feb 01 03:47:16 yes, you missed out a ; Feb 01 03:47:24 lol Feb 01 03:47:35 i guess that's not the prob... Feb 01 03:48:07 um... pastebin the code, explain the problem? should I really have to say that? Feb 01 03:48:49 hm i just asked becouse if noone help me idk why to post^^ Feb 01 03:48:57 but magically my code works know Feb 01 03:49:01 damn dont ask Feb 01 03:49:15 don't ask to ask Feb 01 03:49:19 never ask to ask Feb 01 03:49:42 nobody knows if they can help you until you actually ask your question anyway, so why waste time asking? Feb 01 03:50:05 metaquestion i know Feb 01 03:50:13 damned it's 4:50am Feb 01 03:50:27 no, it's 11:50am Feb 01 03:50:36 at your's Feb 01 03:50:43 here is 4:50am Feb 01 03:50:52 work at 6:30am Feb 01 03:51:10 sdf Feb 01 03:52:16 have a nice... yes whatever Feb 01 03:52:29 well, that was an easy problem to solve Feb 01 04:20:36 #join #android Feb 01 04:21:08 /join #android Feb 01 04:21:10 ;) Feb 01 04:40:59 When I first learned win32 programming in C, i started out with the low level stuff, first drawing 1 pixel on the screen Feb 01 04:41:05 then drawing lines, circles, and the sort Feb 01 04:41:17 Why isn't there an analogous tutorial for android java? Feb 01 04:42:17 because Android is a GUI/widget-based system Feb 01 04:42:43 what about iOS, that might be better for me Feb 01 04:43:27 it might Feb 01 04:45:25 still too high-level Feb 01 04:50:23 MDaxo type of stuff would you like to do ? Feb 01 04:50:42 g00s, i'm fairly fluent in winapi, win32 programming Feb 01 04:50:59 i did win32 a long time ago ... like msvc 1.5 :) Feb 01 04:51:01 and this is something i've been working on: https://www.youtube.com/watch?v=fg-KHssO_ZU Feb 01 04:51:14 but win32 a lot lower level than android/java Feb 01 04:51:25 it's trivial to draw 1 pixel on the screen in win32, i could do that in a minute Feb 01 04:51:36 but you have to jump through tons of hoops to draw 1 pixel at a time on android Feb 01 04:52:28 that youtube video .exe was made in only C, with no graphics libraries Feb 01 04:52:28 you really shouldn't be drawing 1 pixel with Android, most of the time Feb 01 04:52:46 Leeds, ever heard of "conways game of life" Feb 01 04:52:53 meh, knock yourself out Feb 01 04:53:07 yes, of course I know the game of life - and it would be really easy to write on Android Feb 01 04:53:16 what i have here is just a really complex cellular automata, where it updates every single pixel in a 2d array of maybe 500x500 pixels, and then draws all of htem Feb 01 04:53:32 i could very quickly make such a thing on win32, but not android b/c i'm not familiar with android Feb 01 04:53:41 liek conways game of life Feb 01 04:53:58 shocking, you don't know a platform, so you don't know how to do stuff on that platform Feb 01 04:54:00 * Leeds out Feb 01 04:54:34 MDaxo have you looked at the Canvas stuff ? Feb 01 04:54:46 Uh, no Feb 01 04:55:25 Canvas#drawPoint Feb 01 04:56:13 you may be used to MS excellent documentation :) Feb 01 04:56:32 i have to agree, in the graphics area the javadoc is pretty crap Feb 01 04:56:53 MDaxo don't forget about openGL Feb 01 04:57:33 g00s, but in win32 it's more low level than just something like DrawPoint() Feb 01 04:57:36 not knowing much about graphics, i'm going to guess doing that in java is going to suck pretty bad (sand animation) Feb 01 04:57:55 for example this is a rectangle drawing function I use in C Feb 01 04:58:25 http://ideone.com/DUHZrw Feb 01 04:58:49 and then after that you would call the windows function StretchDIBits to display the rectangle Feb 01 04:59:33 life is much easier when you change your mindset to meet a new platform, rather than trying to force your existing experience to fit badly Feb 01 05:00:39 Like turning a box to fit, instead of cutting off the corners. Feb 01 05:13:39 you know how some smartphones (galaxy s5 for example) come with headphones that have a remote? Feb 01 05:13:49 is there a standard/protocol for that? Feb 01 05:18:05 I remember looking into it a while back, I think there is, but it's different for iOS devices Feb 01 05:25:08 i wonder if apple is really going to do away with the standard headphone jack for next iphone Feb 01 05:27:16 that is retarded hah Feb 01 05:27:33 proprietary headphone jacks Feb 01 05:27:50 man I'm thinking about that nexus 5x but I can't pull the trigger Feb 01 05:28:20 g00s, has there been talk of something like that? Feb 01 05:28:26 that'd be ridiculous Feb 01 05:28:41 Zharf oh yeah, replaced by special connector Feb 01 05:28:59 BT headphone still work as usual, so companies making them don't care Feb 01 05:29:47 if they did it, it would be a lightning connector Feb 01 05:30:21 what a bunch of jerks Feb 01 05:31:07 http://www.usa.philips.com/c-p/M2L_27/fidelio-fidelio-headphones-with-lightning-connector Feb 01 05:31:14 Sony used to be like that - its own special connector for everything Feb 01 05:31:29 hey Ologn Feb 01 05:31:35 hi g00s Feb 01 05:31:47 I exported my sms and call log today Feb 01 05:32:09 oh nice ! Feb 01 05:32:13 Should be on my way to an app with possible legs Feb 01 05:32:22 i think i played all day with full screen mode, and getting shit right - what a pain Feb 01 05:33:14 i wish i could get it to look like Google Play Books, how the content zooms in ... but couldn't figure that out Feb 01 05:33:29 Ologn did you post the updates to Play yet ? Feb 01 05:33:54 i'll have to see if its compatible with my device again :D Feb 01 05:34:27 I have not seen the Play updates Feb 01 05:37:23 Pinch to zoom Google Books Feb 01 05:37:57 g00s, it looks like two separate actions Feb 01 05:38:15 It looks like one zoom goes to full screen mode, and subsequent zooms do the zoom Feb 01 05:39:14 Ologn you pretty good with animations ? Feb 01 05:39:39 I've done animations, I wouldn't say I am pretty good at them Feb 01 05:40:50 i think what i may do, because i have a recyclerviiew, is do a layout animation with things filling in from the bottom Feb 01 05:41:16 recyclerview has its own special animation thing Feb 01 05:47:44 g00s, https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemAnimator.html Feb 01 05:48:51 Ologn thanks Feb 01 05:49:04 g00s, Dave Smith covers this some http://wiresareobsolete.com/2015/02/recyclerview-layoutmanager-3/ Feb 01 05:51:12 Ologn yeah, this may do it http://stackoverflow.com/questions/26724964/how-to-animate-recyclerview-items-when-they-appear Feb 01 05:51:27 kinda gross putting that in the adapter though Feb 01 05:53:45 Ologn dave smith 's docs are great Feb 01 05:54:02 Yes they were helpful Feb 01 06:45:09 I'm looking at a really complex image viewer and I notice every now and then a really large image seems to lose fidelity and becomes absolute scaled crap Feb 01 06:59:35 hi! what is the standard way of creating compressed files that will be used as expansion files for android apps? is JOBB the only tool that is used by the developers for the compression part? can other compression algorithms be used? Feb 01 07:02:52 http://pastebin.com/XBtUVgCR this is my base matrix setup... This is entirely someone else's code so I'm not quite sure whether this is even the problem, but I'm kind of thinking maybe it is? Feb 01 07:03:02 can someone me understand what is going on here? Feb 01 07:03:19 Hey guys... I am having a real hard time finding a way to convert BufferedReader to StreamInput ... I have tried BufferedReader.toString() and then convert it to StreamInput but it returns null Feb 01 07:19:28 is there a way to stop a viewpager from snapping between pages Feb 01 07:19:38 I kind of just a want a way to float between two pages Feb 01 07:38:59 is there a google system or api or some easy way to pass inputstreams between phones? Feb 01 08:14:50 Stud .. do you mean a network connection? Feb 01 08:15:12 yeah Feb 01 08:15:15 something like that Feb 01 08:15:32 can u show example code? Feb 01 08:15:43 how well do you know java? Feb 01 08:16:02 i have made java apps Feb 01 08:16:07 and a youtube app in android Feb 01 08:16:32 i want to pass sound from one phone to another phone live stream without the need of a server Feb 01 08:16:47 just the internet Feb 01 08:18:26 well, it sounds like what you want is a Socket Feb 01 08:20:14 i have done socket programming in C before. but not enough to know how to connect 2 computers and pass data Feb 01 08:20:31 i have just done client to server type thing Feb 01 08:20:47 but problem is, it is quite centralized Feb 01 08:20:53 what do you think client<->server communication is? Feb 01 08:21:01 well its computer - computer Feb 01 08:21:02 connecting two computers and passing data Feb 01 08:21:03 lol Feb 01 08:21:45 but well here's the thing. if i want to connect 2 phones together there should be a phone that has a port open and listning for incoming connections? Feb 01 08:22:27 Stud: both can listen to connections, and you can also use connectionless approaces (UDP) Feb 01 08:22:39 Stud correct Feb 01 08:23:08 if you really want to do it without a server, however, you'll probably be limited to phones on the same wifi network Feb 01 08:23:15 yess Feb 01 08:23:20 that was going to be my next question Feb 01 08:23:22 carriers generally prevent incoming connections to phones via the cell network Feb 01 08:23:50 and routers would not know which device to forward what connection to Feb 01 08:23:52 if you have a server to act as a middle man, both phones can open the connection to the server, and then it can relay from one to the other Feb 01 08:24:06 but the phones would not generally be able to open a connection to one another directly, via the cell networks Feb 01 08:24:23 yes but that would mean both phones are connected to the same server thru the span of the whole data transfer yes? Feb 01 08:25:08 yes Feb 01 08:25:55 ah i see Feb 01 08:25:57 what you're shooting for - direct, no-server-middle-man communication - is generally called "peer to peer" Feb 01 08:26:11 and it is difficult-to-impossible to do if the network conditions don't allow it Feb 01 08:26:16 which carrier networks generally don't Feb 01 08:26:53 don't want to tell you "it can't be done".. i hate saying that.. but it'll be difficult Feb 01 08:27:30 but anyway that can be future-Stud's problem. get it working on wifi and then solve the cell network problem Feb 01 08:27:47 hey guys, anyone using the paolorotolo PPA from ubuntu? Feb 01 08:35:12 sarbs, ah i understand. no I have decided to drop that idea Feb 01 09:01:01 hi! can an OBB file be uncompressed? how to set compression level when creating an OBB file? Feb 01 09:03:06 act Feb 01 09:04:26 HunterD: expansion files can be various formats Feb 01 09:06:43 Hey guys... I am having a real hard time finding a way to convert BufferedReader to StreamInput ... I have tried BufferedReader.toString() and then convert it to StreamInput but it returns null Feb 01 09:07:15 cart_man: ask #java Feb 01 09:08:30 squ: Right Feb 01 09:08:38 obvious Feb 01 09:35:09 people Feb 01 09:37:22 can i center last row, that has less than other rows, elements in recyclerView and gridLayoutManager? Feb 01 09:38:55 GridLayoutManager.SpanSizeLookup + possibly RecyclerView.ItemDecoration should do the trick Feb 01 09:41:00 I wish my bt headset had a button for un/mute Feb 01 09:45:25 hi guys, i am trying to add code in olly for messagebox, i pushed before all necessery registers(to save their data) and flags. but it doesnt work, what else i need to save(using push or ssomething else) Feb 01 09:50:16 p_l: hi! so I can have movie, textures and sounds inside the obb. but if I want to make the obb as small as possible, what would be the process for doing that? Feb 01 09:51:19 HunterD: whatever compression you want to use - though apparently there's a tool called JOBB to automate some of it (I haven't used them, so I can't help you there) Feb 01 09:53:14 sorry guys wrong channel Feb 01 09:53:43 Zharf: can you tel me how& Feb 01 09:53:46 *tell Feb 01 09:54:06 back with more obb related questions . can the JOBB toll compress the data? or for compressing I can compress first and then encript into obb file? Feb 01 09:54:20 * tool Feb 01 09:56:06 ondroed, it's pretty much case-by-case logic for the spansizelookup and then using itemdecoration to possibly add some margins so that it appears centered Feb 01 09:57:16 not too complicated, but you'll need to add more spans than you'd normally have so that the span count is divisible by the regular row size and the last row size Feb 01 09:58:24 at least that's how I made a view with some rows split in 5, some in 3 and some in 1 Feb 01 10:13:09 sup boys Feb 01 10:13:19 does anyone know the max size of a byte array in greendao? Feb 01 10:15:14 Help everybody. I have a FAB button, but if I click on it, it actually clicks on the view beneath it. I've used android.support.design.widget.FloatingActionButton widget, but should I also add the elevation property? Feb 01 10:38:00 jvrodrigues: probably the same as string Feb 01 10:38:24 oh I was wrong Feb 01 10:38:26 what is the max size of a string? Feb 01 10:38:34 's Feb 01 10:38:43 the documentation for greendao is, at least, lacking Feb 01 10:38:49 thought sqlite's byte array is represented by string Feb 01 10:39:00 why you're using greendao anyway Feb 01 10:39:18 its the ORM my company uses Feb 01 10:39:36 its not so bad, I just wish the documentation would be a bit better Feb 01 10:39:54 http://stackoverflow.com/questions/26968537/maximum-sqlite-size-using-blob Feb 01 10:40:17 jvrodrigues: what ORM you using/ Feb 01 10:40:21 yea but that still doesnt answer it Feb 01 10:40:22 greendao Feb 01 10:41:03 nvm, it does answer it Feb 01 10:42:21 god Feb 01 10:42:34 jvrodrigues: I dont know what htat is Feb 01 10:42:36 hopping between mysql and sqlite all the time confuses me as hell Feb 01 10:42:45 jvrodrigues: is is like bluedao? or reddao? Feb 01 10:43:07 http://greenrobot.org/greendao/ Feb 01 10:43:13 no no Feb 01 10:43:26 its a totally different color Feb 01 10:43:31 >green Feb 01 10:48:03 anyone knows a decent font for the android studio? the DejaVu looks like crap, same as the others that come with linux mint Feb 01 10:48:55 Source Code Pro is better but a little more "weight" wouldn't hurt Feb 01 10:49:40 eh.. if you plan to use rxjava and realm.. dont do it Feb 01 11:27:03 Twirl: how do you like this font? Feb 01 11:27:05 http://i.imgur.com/vlJLFtc.png Feb 01 11:27:20 too thin Feb 01 11:27:29 i like how text looks like in sublime text 3 Feb 01 11:27:48 also, it looks generally bad, look at those parenthesis Feb 01 11:28:04 these names tell nothin Feb 01 11:28:09 show screenshot Feb 01 11:29:45 what is sublime text 3? Feb 01 11:29:54 http://i.imgur.com/KL1DyQS.png Feb 01 11:30:03 i made it bigger Feb 01 11:30:12 but it looks much better Feb 01 11:30:35 you can make it smaller to see how it would look at 12 Feb 01 11:31:23 Twirl: +1 Feb 01 11:59:50 Gradle build running … Feb 01 11:59:58 … Feb 01 12:00:03 … Feb 01 12:00:10 … Feb 01 12:00:18 … Feb 01 12:06:59 hey, okhttp logs say blah blah was leaked. Did you forget to close a response body? Feb 01 12:07:34 but i close body by calling response.body.close Feb 01 12:08:16 this is how it should look http://i.stack.imgur.com/DxQkw.jpg Feb 01 12:08:35 coming from a pretty long SO answer on how to fix broken fonts Feb 01 12:08:48 it's silly that you have to go through all that trouble to make it look remotely decent Feb 01 12:13:25 android is pain Feb 01 12:13:45 you probably haven't yet got to other stuff Feb 01 12:18:23 is it normal to sign stupid songs while gradle uploads to emulator Feb 01 12:24:52 is there some event listener when appbarlayout scroll finishes Feb 01 12:26:25 Does someone know why the MediaPlayer tells me something about a wrong Resource ID when I'm trying to load a song from a path or a FileDescriptor? Feb 01 12:31:31 TheUltimateHose: you misused functions to load resource id and path Feb 01 12:46:22 squ: I am calling mediaplayer.setDataSource(path); where path is a String (given as parameter) and mediaplayer is a MediaPlayer created by mediaplayer = new MediaPlayer(); Feb 01 12:47:08 Hrmf, how do you get a FileDescriptor if you're passing a path_ Feb 01 12:47:11 ? Feb 01 12:47:56 I create a File from that path, then I create a FileInputStream and call .getFD() on the Inputstream Feb 01 12:49:44 but both ways (path and FileDescriptor) end up in the same error (No package identifier when getting value for resource number) Feb 01 12:51:09 (VideoView).setMediaController(media); Feb 01 12:51:09 (VideoView).setVideoPath((String)); Feb 01 12:51:42 where (String) is Feb 01 12:52:30 File file = new File((String)); Feb 01 12:52:30 if (file.exists()) return file.toString(); Feb 01 12:53:38 do I need a VideoView? I just want to play audio. Feb 01 12:54:16 to play audio you need SoundPool Feb 01 12:55:01 No you don't. Feb 01 12:55:17 TheUltimateHose, are you playing audio from the assets directly or do you have an actual file on FS? Feb 01 12:56:20 I am reading a File from the FS. thats why I was wondering about the resourceID error. Feb 01 12:57:35 Yeah that's funny. Feb 01 12:57:54 Are you sure your path is in proper format and that the error about resource ID is actually from the mediaplayer? Feb 01 13:01:43 http://pastebin.com/KQtKfJkA thats the code I am using. I'm pretty sure the path is correct as it is retrieved directly from the listed file and reading operations work fine. I am also sure the error comes from the media player because when I don't call getSongDuration() no error comes up Feb 01 13:02:06 guys how can i perform a sync request with RxAndroid ? Feb 01 13:03:46 on the other hand the app is crashing when I call getSongDuration() but I think the try-block would prevent that Feb 01 13:04:27 so there may be another error caused by that but not handled by the try-catch-statement Feb 01 13:06:07 Ugh, Google >_> SafetyNet got another update to prevent rooting again. When will Google finally stop violating laws and hurting users’ choice? Feb 01 13:08:27 sci-fic: what kind of sync? Feb 01 13:08:43 It’s time to recognize SafetyNet for the malware it is. Feb 01 13:09:35 sci-fic: check this https://github.com/squm/java Feb 01 13:09:48 I'm using SynchronousQueue Feb 01 13:10:12 squ: for instance, i have 2 req , i want to start B when A succeed Feb 01 13:10:29 yes, that's it Feb 01 13:10:51 I've asked in android mail list for review Feb 01 13:12:17 but no answers so far Feb 01 13:15:15 let me have a look, thnx Feb 01 13:19:17 one thing I just saw when I was looking at the MediaPlayer source: Intellij tells me there are plenty of errors all over the code. Feb 01 13:24:44 o.O If you don’t react to customer support requests from users of your app within of 3 days (or 24 hours, Google can decide which on a per-case basis), your app is removed from the store. Feb 01 13:25:24 If a payment is reversed, google can take an additional fee o.O Feb 01 13:26:13 which payment is reversed? Feb 01 13:26:19 from customer? Feb 01 13:26:23 Yeah Feb 01 13:26:28 reading the ToS right now Feb 01 13:26:29 customer -> app -> developer Feb 01 13:26:34 at which point it is reversed Feb 01 13:27:06 customer pays you 3$, gets app. You get 3$ minus taxes. Customer reverses payment, Google takes up to 3$ from your account Feb 01 13:27:08 reading ToS? :O Feb 01 13:27:19 so if you get only 2$ due to taxes, Google can take back 3$ from you anyway Feb 01 13:27:20 I see Feb 01 13:27:39 also Feb 01 13:27:46 Your apps may not access any servers unless you have direct permission from the owner o.O Feb 01 13:27:52 google cancelled windows xp support for chrome Feb 01 13:27:54 how should I implement a webbrowser then, lol? Feb 01 13:28:13 justJanne: ios introduced that lately Feb 01 13:28:26 google follows with lag of a year or so Feb 01 13:28:45 You may not distribute apps that "support" distribution of Software or Games for android devices through other channels. Feb 01 13:28:53 in short you can't now have embedded webrowser Feb 01 13:29:05 Even a link to a direct download of your app through other channels is banned. Feb 01 13:29:06 or at least hard-code a link to app Feb 01 13:29:08 WTF Google. Feb 01 13:31:25 Google can keep your app in the store, and you have to provide support, if they want to. Feb 01 13:31:47 The only case where they have to remove it is if your app violated laws, and can prove that. Feb 01 13:31:54 wtf google Feb 01 13:32:54 "If your app can access services on Google servers that Google believes shouldn’t be accessible, Google can remove your app and terminate your account" Feb 01 13:33:05 no wonder youtube downloaders got removed en masse Feb 01 13:33:28 "If an OEM requests to do so, your app can be removed from any of their devices" Feb 01 13:33:50 OEM? Feb 01 13:33:54 Device manufacturer. Feb 01 13:34:12 ok i'm kinda solving my problem. The resourceID problem seems to be caused by not calling .release() and .reset() on the MediaPlayer. Feb 01 13:34:13 Samsung can say "I don’t want this app on my device", and Google can decide to remove it from all Samsung devices and prevent install. Feb 01 13:34:13 interesting, please continue :) Feb 01 13:34:48 if your app is removed for violating any terms, then Google can take all the money you got from them back, and take all your future profit. Feb 01 13:35:06 (and you have to also pay the taxes and fees) Feb 01 13:35:36 false, you dont pay taxes on money you don't make Feb 01 13:35:38 (so if you got 2000$ of 3000$ of sales, then google removes your app, then they can demand up to 3000$ from you) Feb 01 13:36:00 Hello, i'm able to save bitmaps to gallery using MediaStore.Images.Media.insertImage(getContentResolver(), rotated, "", ""); on Galaxy S5 (lollipop) but that does not seem to work on Marshmallow... when I go into the photo's app, I do not see the image Feb 01 13:36:07 pfn: (i) Sie müssen Google alle erhaltenen Beträge zuzüglich dazugehöriger Gebühren (d. h. Rückbuchungen und entstandene Transaktionskosten) erstatten und (ii) Google darf nach eigenem Ermessen den sich aus (i) ergebenden Betrag von Ihren zukünftigen Verkäufen einbehalten. Feb 01 13:36:08 Any idea if it's me or the system? Feb 01 13:36:10 it’s pretty clear Feb 01 13:36:19 Just make an app that don't step on their toes (e.g. downloading youtube videos) Feb 01 13:36:33 * pfn shrigs Feb 01 13:36:33 Or an app that does something illegal and you're fine. Feb 01 13:36:36 "You have to pay Google all received revenue, including fees (for example, reversal fees and transaction fees) ... Feb 01 13:36:44 the tos is straightforward Feb 01 13:36:58 yeah, it’s "Google can do whatever they want, you can do nothing" Feb 01 13:37:07 that's pretty false, too Feb 01 13:37:13 but you can think so Feb 01 13:37:37 That’s an exaggeration, but it’s the gist of it. Feb 01 13:37:37 Dude, bazillions of apps get uploaded to the store. Obviously they are going to protect themselves with a fancy tos Feb 01 13:37:38 But it all sums to: Don't step on our toes, don't to illegal shit. Feb 01 13:37:49 casadogg: it’s worse than that. Feb 01 13:37:57 it isn't Feb 01 13:38:05 You can’t even promote or link to anything non-Google distribution channels Feb 01 13:38:11 standard tos Feb 01 13:38:13 Having a link to F-Droid in your app violates the ToS Feb 01 13:38:18 No, that’s not standard ToS Feb 01 13:38:23 yes, it is Feb 01 13:38:30 I’ve read the Amazon store ToS before, and distributed via that. Feb 01 13:38:37 They definitely don’t have that clause Feb 01 13:38:45 Google does. Feb 01 13:38:46 Well it's their store. Feb 01 13:38:47 the Amazon store is trash Feb 01 13:38:55 justJanne: have you read google search privacy agreement? Feb 01 13:39:02 squ: nope, I use DDG Feb 01 13:39:02 They can't check if your app will be the same in another store. Feb 01 13:39:07 casadogg: and? Feb 01 13:39:33 and they don't want their users getting scammed Feb 01 13:39:33 and they don't want users thinking their store is unreliable Feb 01 13:39:34 That’s not their job anyway. Feb 01 13:40:09 And, as always Feb 01 13:40:44 "If you wish to cancel this, you have to do so 30 days in advance […] Google can cancel this agreement at any point, if Google decides that you are not an authorised developer anymore" Feb 01 13:41:44 And this clause of their contract even violates existing law: Feb 01 13:42:31 :) Feb 01 13:42:37 > Google kann jederzeit Änderungen an dieser Vereinbarung vornehmen, indem Google dem Entwickler eine Benachrichtigung der vorgenommenen Änderungen per E-Mail sendet. […] [Änderungen] werden wirksam und gelten als vom Entwickler akzeptiert (a) […] oder (b) bei allen bereits bestehenden Entwicklern an dem in der Benachrichtigung angegebenen Datum, das mindestens 30 Tage nach dem Posten der Änderungen liegt Feb 01 13:42:40 eh, not interested in this discuss Feb 01 13:42:50 ion, ignore list Feb 01 13:42:56 Google can change the ToS at any time, you automatically accept them 30 days after they notified you Feb 01 13:43:01 that violates existing law. Feb 01 13:43:02 Cowa banga dudes :P Feb 01 13:43:17 Number5: heya Feb 01 13:43:48 too much liberal talk for me Feb 01 13:43:53 Interestingly, thanks to 15.3, therefore 14.1 is completely non-existent, and therefore Google can never change the ToS Feb 01 13:44:26 pfn: I’m not a liberal, but I don’t like it when a monopoly has restrictive rules. Feb 01 13:44:56 i remember the one time i tried to upload an apk to amazon store, i had a link to google play store in an about section, it was rejected Feb 01 13:45:21 i never came back, it was also impossible to delete my account on amazon dev at that moment (like in 2011 or 2012 i dont recall exactly when) Feb 01 13:45:23 adq: are you sure that was the reason? Feb 01 13:45:25 yes Feb 01 13:45:30 maybe i still have the mail Feb 01 13:45:31 Did they tell you? Feb 01 13:45:33 ah, okay. Feb 01 13:46:00 Well, for me they had no issue with the link. But an issue with the fact that the app didn’t run on their kindle devices, and asked to fix that ;D Feb 01 13:46:17 I made master-details in landscape mode. What I want is de menu list items to highlight if selected. How to achieve that? Is such behaviour built in or do I have to build it myself? Feb 01 13:46:52 "Google may use the rights of any jurisdiction against you" "You may only use the rights granted to you under jurisdiction in Santa Clara, California, against Google". Feb 01 13:46:58 Another case of asymmetry. Feb 01 13:47:00 oh yeah i kept it lol: Feb 01 13:47:00 Your app has failed testing for linking to an external marketplace for purposes not required by the function of the app. This includes rating and updating Google Applications Manager *** When pointing to other apps or websites from within your app, including up-sells, ratings, version updates, or upgrades, our published policy calls for the completion of purchase to be from the Amazon Appstore. *** Steps to reproduce this issue as it appears in this app: Feb 01 13:47:01 (1) Open the app (2) Tap the device's menu button (3) Tap About (4) Tap Rate it (5) Observe that the app takes users to a competing marketplace to rate your app (6) Return to the previous menu (7) Observe that a "Check for updates" feature is available *** Feb 01 13:47:07 2011 :D Feb 01 13:47:22 store wars already there Feb 01 13:47:34 adq: amazon allows automatic download from google store Feb 01 13:47:43 If I have to build it myself, this means on each click item of the list, I have call invalidate, so I can modify the previous selected item's background back to default color. Feb 01 13:47:47 squ, 2011 :D Feb 01 13:48:03 well, anyway, store wars are even a legal issue now, and I’ll certainly complain. Feb 01 13:48:04 just sayin Feb 01 13:48:44 This is as if Microsoft would only allow you to run software on windows downloaded from within IE, and prohibit other programs from downloading software. Feb 01 13:48:54 A perfectly clear antitrust violation. Feb 01 13:49:08 :) Feb 01 13:49:11 i wish google would check themselves with playservices for example that scanned packages available on a device were not "legit" but it's too complicated with several store (they do it for malware) Feb 01 13:49:26 and LVL is pretty dead nowadays, and useless except for annoying users Feb 01 13:49:36 LVL? Feb 01 13:50:09 License Verification Library Feb 01 13:50:33 originally used to track if the app comes from the play store Feb 01 13:51:06 I see Feb 01 13:51:37 we've accidentally discovered that videos on youtube receive unique per-download id Feb 01 13:52:37 folks downloaded same link couple of times, diff'ed it and found out a time in millis timestamp :) Feb 01 13:52:59 point is google pay some attention to security Feb 01 13:53:05 Btw, if you want to make a complaint, and are an EU citizen, [1] explains how to make a proper formal complaints Feb 01 13:53:05 http://ec.europa.eu/competition/contacts/electronic_documents_en.html Feb 01 13:53:36 complain to what Feb 01 13:53:53 it is company in capitalist world Feb 01 13:53:57 the EU antitrust comittee. They currently have an investigation into Google. Feb 01 13:54:02 haha Feb 01 13:54:12 They are hoping for more evidence. Feb 01 13:54:17 ahahaha Feb 01 13:54:33 someone doesn't believe in capitalism Feb 01 13:54:50 go to hell, both you and eu Feb 01 13:54:50 You do know that the maximum fine is 10% of revenue for every day the practice continues, plus jail for the CEO? Feb 01 13:54:56 I don't believe in liberal extremism Feb 01 13:55:26 justJanne: https://www.youtube.com/watch?v=SsmVgoXDq2w Feb 01 13:55:37 here this song for you about Monday Feb 01 13:56:04 Anyway, I’m gonna bbl, got a lecture, afterwards gonna make a formal complaint Feb 01 13:56:18 as suggested, you can do so, too Feb 01 13:56:37 get lost creep Feb 01 13:56:52 Mariu: got an issue? Feb 01 13:59:17 pfn: what do you think about such issues, like "you can’t link to anything linking to downloads to your app through other channels", then? Feb 01 13:59:20 yes, people starve to death in your puny eu and you dickaround going after Google Feb 01 13:59:32 because its your own ass in line Feb 01 13:59:47 Say, I link to my github, which then links to F-Droid, Google Play, and the Amazon Store. Feb 01 13:59:51 That’s not great. Feb 01 14:00:18 Mariu: "people starve to death in your puny eu" (a) how is that related, (b) source? (c) wtf? Feb 01 14:01:49 where are you from Mariu? Feb 01 14:03:31 Antartica, why? only NSA can ask me where I'm from. not your or Janne have any right to know anything about me Feb 01 14:05:43 -__- Feb 01 14:14:53 Have just completed the "Build Your First App" tutorial on developer.android.com. So now I want to fool around and experiment a little. In content_my.xml a LinearLayout is defined. If I change android:orientation from "horizontal" to "vertical", what little content there is in this layout just disappears. I'm assuming therefore it's not that simple and I'm missing something. What would that be? Feb 01 14:18:18 good God, average ticket price for the superbowl is 5k? Feb 01 14:23:20 faulty: Paste your layout. Feb 01 14:23:38 Hello. Do i need a .jar file for connecting and editing my mongolab database? Feb 01 14:25:00 pfn, people like the adverts Feb 01 14:25:17 barq: https://dpaste.de/NU6d Feb 01 14:26:25 faulty, width of the edittext is 0 Feb 01 14:28:27 Zharf, you don't see the ads at the event Feb 01 14:29:05 I see, maybe that's why then Feb 01 14:29:43 I've never seen super bowl, all I hear about it is that the ads were grrat or something Feb 01 14:29:52 great* Feb 01 14:32:33 What is the best alternative to parse.com? I need to switch? Feb 01 14:33:40 What's the best strategy for displaying a list of items, but when I do my query, there's a thousand items. Set a query MAX? and load more upon scrolling up the list? Feb 01 14:35:07 eghdk_: yes thats best i think Feb 01 14:35:56 I'm not sure of how I should approach the loading of more data though. Eventually, if I keep loading blocks of 20 items, I'm going to run out of memory if the user keeps scrolling? Feb 01 14:37:09 unload stuff? :) Feb 01 14:37:20 eghdk_: yes. dispose the first ones Feb 01 14:38:48 How do I "dispose" of the first ones though. idk. Maybe I'm over complicating this, but it seems like this is a problem most devs face at some point. Wondering if theres an out of the box solution. Feb 01 14:39:30 I wonder if the trail behind the stadium will be open on Sunday Feb 01 14:40:34 Zharf: thanks-ish. Still not understanding. Back to the docs for more hours of WTF are they talking about. Feb 01 14:41:03 eghdk_, just how much memory does each datapoint use? Feb 01 14:41:49 I can take a closer look in an hour if you still have problems... though I'm sure someome here can help you before that Feb 01 14:42:22 Mavrik: I'm not sure, but I guess it changes, because the items are messages. So it increases as the size of each String object in the Message object? Feb 01 14:43:14 eghdk_, well, just calculate how much approximately each item takes Feb 01 14:43:28 If each item takes like 2KB, you can store 20000 of them in 40MB of RAM. Feb 01 14:45:27 Mavrik: hm. They are pretty heavy weight because there's a lot going on. I'll calculate it, but right now, I'm clicking on my master detail list, and because of parsing my database, and creating the Message objects, sometimes it takes a few seconds... =( Feb 01 14:47:07 Especially on lower end devices, so I would love to load up an initial set, and then when scrolling, I load up some more, but keep the originals I loaded. Up until a certain point. I'll figure it out, I was just curuious if there was any way most people do this. ya know? Seems like a problem that others would have encountered. Feb 01 14:47:11 a lot going on doesn't mean that it necessarily takes a lot of memory Feb 01 14:47:53 if not infinite scrolling, then windowed Feb 01 14:48:02 pfn: It's not the memory, that's the issue, it's that the objects are heavy to create. pfn Feb 01 14:48:23 then leave them created Feb 01 14:48:29 and don't destroy them Feb 01 14:48:30 Yes. Windowing of some sort, but again, curious if there was some kind of de facto windowing lib or technique? Feb 01 14:48:56 googling should reveal that easily Feb 01 14:49:08 I just feel like I'm going to get into a situation where my list/scrollbar won't make any sense. Feb 01 14:49:20 in terms of jumping and stuff Feb 01 14:49:30 and you don't want windowing if items are expensive to create Feb 01 14:49:39 I've tried that now, but the scroll bar doesn't make sense. Feb 01 14:50:33 It keeps thinking theres only like 20 items. Feb 01 14:50:55 you did it wrong Feb 01 14:52:40 Okay. I'm fine with that. That means theres a right way. So I'll figure it out. Thanks pfn Feb 01 14:53:19 Also, trying ot find a usb hub that will power a lot of android devices for running espresso tests, let me know if anyone has a hub that they like in particular Feb 01 15:43:14 hello, how do you append/add an image to a layout? All the results form google i'm getting are for showing locally stored images but i want to append a new element when the data comes form the server Feb 01 15:44:10 so it would be nice to be able to simply add an element to the layout from the MainActivity instead of creating a dummy element and then showing it or something Feb 01 15:45:27 wtf good is google shopping express if I can't even get a Nexus. phone through it Feb 01 15:45:53 hey all Feb 01 15:53:22 Hello everyone how long does it take after you have paid the fee and submitted your registration to get verified? Feb 01 16:00:51 Anyone know what term to use to refer to In-App purchases on the Android platform? Feb 01 16:14:08 I have an object which is being passed in an intent. The object is parcelable and has a field which is a list of another parcelable class. If this list is empty then the intent works as expected. If the list has any objects in it then I get a runtime exception for attempting unmarshalling an unknown type code. Does anyone have any ideas why this might happen? Feb 01 16:24:07 any suggestions on how to control recyclerview scrolling other than completely overriding onTouchEvent ? Feb 01 16:30:19 ugh, Ice 32gb nexus 5x is out of stock?? Feb 01 16:30:33 oh, all ice nexus 5x are out of stock, that's dumb... Feb 01 16:34:12 anyone already worked with Google Cloud Messaging yet? Feb 01 16:34:28 I have a listener class "ChatListener" Feb 01 16:34:43 that have the onMessageReceived function... Feb 01 16:35:12 but, when message received, i want to update the value of a textview inside a fragment... Feb 01 16:35:22 how can i do that? Feb 01 16:36:02 can i instantiate the listener on fragment? Feb 01 16:36:11 how am i supposed to pass "http://site.com/image.jpg" to setImageResource ? Feb 01 16:37:25 maybe i should try with the Android Universal Image Loader but i would like to figure it out first Feb 01 16:37:36 setImageResource doesn't take a url Feb 01 16:37:50 yea i figured Feb 01 16:37:51 how then? Feb 01 16:39:05 either you download the image yourself, or you use one of the selection of libraries which handle that sort of thing for you Feb 01 16:39:44 http://square.github.io/picasso/ is probably a good place to start Feb 01 16:40:30 Leeds: i don't want to install a gallery into my app Feb 01 16:40:33 anyone can help me? Feb 01 16:40:44 did you even look at that link? Feb 01 16:41:15 Leeds: yea it looks like a gallery Feb 01 16:41:22 look harder... Feb 01 16:41:35 i don't want transformations or effects either Feb 01 16:41:49 Leeds: i just want to show a single image from my server in there Feb 01 16:42:02 a whole library seems overkill Feb 01 16:42:03 then go and fscking do it yourself then Feb 01 16:42:19 you will either end up implementing much of the library, or doing it incompletely Feb 01 16:42:57 yea i'm asking how to do it Feb 01 16:43:21 i don't want the answer in code Feb 01 16:43:29 So salty Feb 01 16:44:09 do i have to download the image to pass it to the view? Feb 01 16:44:17 would you prefer it in interpretive dance? Feb 01 16:44:57 how hilarious Feb 01 16:45:06 well, just give me the code then Feb 01 16:45:14 you are asking for the answer precisely in code Feb 01 16:45:18 use picasso Feb 01 16:45:21 not gonna write the code for you Feb 01 16:45:21 alright Feb 01 16:45:22 Twirl: Just a wild guess, you'll have to get the input stream bytes and convert to bitmap Feb 01 16:45:34 ^ Feb 01 16:45:37 Then after you convert to bitmap you can transform it into a drawable Feb 01 16:45:51 it's way easier to just use a library Feb 01 16:46:14 I think you can download the image using the Volley library (maybe), but if not, Java has some classes you can use to download the image Feb 01 16:46:43 start with some wood, hack it around into a sort of round shape... then attach it to some sort of axle-type thing, underneath your cart. congratulations, you just invented the wheel! Feb 01 16:47:06 nope Feb 01 16:47:11 sorry, make that *re*invented Feb 01 16:47:25 no actually that's not even close to what's going on buddy Feb 01 16:47:42 don't call me buddy, mate :) Feb 01 16:48:50 it's more like i have all the parts to make a bicycle but you want me to get in a truck and go get a bunch of professional racing bicycles Feb 01 16:49:20 and i just want a single bicycle Feb 01 16:49:23 Dude you already know what to do, stop with all the bickering Feb 01 16:49:59 you have a wheel, and you're asking how to build a bike - we're pointing you at the guy giving away free bikes Feb 01 16:50:19 nope, a library is not like a bike Feb 01 16:50:24 because the bike is the photo Feb 01 16:50:35 the library is something to make bikes Feb 01 16:50:36 but a raven is like a writing-desk Feb 01 16:50:42 oh look Feb 01 16:50:45 this guy is so smart Feb 01 16:50:52 oh my god Feb 01 16:51:00 blew my mind Feb 01 16:51:05 anyways thanks Feb 01 16:51:17 Actually I think the photo is a monocycle Feb 01 16:51:18 you could have read the picasso docs and had your app loading the image in the time you've pissed away arguing about why you don't want to use simple free tools Feb 01 16:51:20 I'm with Leeds on this, picasso is basically giving away a free bike as long as you bring it a tire. Feb 01 16:51:38 or Feb 01 16:51:53 No wait, the monocycle is the part of the library you want Feb 01 16:51:56 yea im just looking at the code that will help Feb 01 16:52:04 And you hop into the monocycle to get to the image Feb 01 16:52:17 Holy shit did I get it right? Because I think I just did it. Feb 01 16:52:32 no man, my objective is the bike or photo in my application, the library helps you to get the item or build it Feb 01 16:52:33 and there's always a puppy... Feb 01 16:52:36 The whole library is like the delorean Feb 01 16:52:46 the car is like the conversation Feb 01 16:52:53 (has *anyone* here seen Coupling?) Feb 01 16:53:29 (if you haven't, you really should, because a) it's very funny, and b) it's a far better use of your time than arguing with fools on IRC) Feb 01 16:53:44 Twirl: Use Volley to download the image. You used the data you fetched to transform into a bitmap. Transform bitmap into drawable. Feb 01 16:53:47 It's like this dude Feb 01 16:53:49 man this guy is so smart Feb 01 16:53:56 he calls other people fools Feb 01 16:54:03 damn man Feb 01 16:54:08 now i feel so inferior to this person Feb 01 16:54:11 casadogg: or, once you're using a library to download the image, why not use one which integrates the downloading into the image loading anyway? Feb 01 16:54:12 he insulted my intellect Feb 01 16:54:20 i should go re-invent the wheel Feb 01 16:54:25 and prove him wrong Feb 01 16:54:32 i will make a better wheel Feb 01 16:54:33 you are a fool Feb 01 16:54:39 Leeds: Because he's not into cars Feb 01 16:54:40 yea i'm retarded Feb 01 16:54:44 Leeds: He's a monocycle kind of a guy Feb 01 16:54:44 All right, so you don't want a library. Check out URL https://docs.oracle.com/javase/7/docs/api/java/net/URL.html open the stream, put data into ImageView. Feb 01 16:54:45 and frankly is far easier to use, and better documented, than Volley Feb 01 16:55:01 volley sucks, it should never be used as long as google refuses to publish it to a repo Feb 01 16:55:03 pieces029: but of course don't do networking on the UI thread Feb 01 16:55:15 Or what pieces posted Feb 01 16:55:32 Oh yeah there's lots of extra things you have to do. He didn't want the library, figured he/she wanted the hard way. Feb 01 16:55:35 i'm using a java class and i DONT want lint enabled, but @SuppresLint doesn't work Feb 01 16:55:37 pieces029: yea i'm taking a look at that Feb 01 16:56:05 Cool, good luck! Feb 01 16:56:07 pfn: I use Volley lol Feb 01 16:56:48 picasso genuinely is one of those libraries which is just pleasant to use Feb 01 16:58:50 pfn: What do you use for your networking needs? Feb 01 17:00:26 depends on the kind of networking Feb 01 17:00:45 but rx, futures, and networking primitives often Feb 01 17:01:00 pfn: Just to fetch some json data Feb 01 17:01:29 okhttp, futures and gson Feb 01 17:02:37 Hmm, I'll check those Feb 01 17:02:53 lots of people use retrofit Feb 01 17:04:13 That's a lot of options Feb 01 17:04:28 I'll just write my own bicycle, thanks anyway Feb 01 17:04:34 jk Feb 01 17:06:02 I might try retrofit in my next java project Feb 01 17:06:06 who knows when that'll be Feb 01 17:32:08 hello all im looking to have an app developed that will take a live stream feed and display it on there phone, it would need to be able to view the stream in full and screen and be able to view the playlist which will be in json format, how would i go about creating something like this Feb 01 17:33:55 does the video streaming service have an API? Feb 01 17:36:01 it will be from an icecast server Feb 01 17:36:14 but if i need to do something to get it go to android i will Feb 01 17:37:03 do you know what kind of stream it will send? Feb 01 17:37:22 webm Feb 01 17:37:52 i guess your first steps would be trying to get a hardcoded stream playing Feb 01 17:38:41 exoplayer Feb 01 17:38:43 start there Feb 01 17:39:32 ok thanks Feb 01 17:45:21 how do you decode the json from here {"URL":"http:\/\/site.com\/images\/I\/samp.jpg","Height":"484","Width":"500"} to get the URL as in "http://site.com/images/samp.jpg" ? Feb 01 17:48:10 Does Xposed framework currently supports android 6.0 ? Feb 01 17:48:23 sharma: channel topic, read it Feb 01 17:49:23 ugh, why am I getting ResourceType logcat spam in my app Feb 01 17:58:48 so sad no more lock screen widgets, did they remove them for security reasons ? Feb 01 17:59:31 Leeds : sorry, newbie here on IRC. Is this not the right channel to discuss Xposed framework ? Feb 01 18:00:09 sharma: what does the channel topic (and your conscience) tell you? Feb 01 18:01:36 people who don't read the channel topic make Baby Jesus cry, and Chubby Buddha cough disapprovingly Feb 01 18:02:29 Leeds : I am developing an android module for the framework. Which "technically" comes under both 'android' and 'development'. No need to get all worked up buddy. Feb 01 18:02:44 well, good luck with that crap then Feb 01 18:02:58 sharma topic says 'android APP development' :D Feb 01 18:05:04 xposed isn't android app development Feb 01 18:05:14 g00s : sorry didn't know any place else to ask the doubt. Feb 01 18:05:18 what I love is people who demand the right to ask their questions in the wrong channel, apparently not realising that it makes it far less likely that they'll get help Feb 01 18:05:58 Leeds : Sorry man, can you point me to the right channel then ? Feb 01 18:06:04 frankly, no Feb 01 18:06:31 if there's such a thing, #xposed would seem likely to be the best place to start, but I have no idea if it exists Feb 01 18:06:45 doesn’t xposed have a website or something? Try looking there Feb 01 18:07:16 to be honest, it's probably about time xposed took some VC money and went pro Feb 01 18:08:16 there's no #xposed. does XDA has an IRC channel ? Feb 01 18:09:30 no, use xda Feb 01 18:10:21 pfn : sure. I'll try there. thanks :0 Feb 01 18:16:54 Just sat down to do Android development -- have had to restart the emulator seven times in about 20 minutes. Gotta love that. Feb 01 18:19:19 hey TacticalJoke:) Feb 01 18:19:56 Hay. Feb 01 18:20:27 xposed is just on XDA? So it’s not a real project, then Feb 01 18:22:16 s73v3r : they do have a website and all, but i guess the support is on XDA Feb 01 18:22:41 * pfn ponders writing a macro to do partial[AnimatorListener].onAnimationEnd(animator => do shit) Feb 01 18:23:03 dealing with ROMs back in the day taught me that anything that is primarily on XDA, and can’t bother to get a proper bug tracker or hosting site is not a real project Feb 01 18:23:41 God dammit. Happened again. Anyone know how to unfreeze Android Studio when adb freezes? I have to keep closing the emulator to unfreeze Android Studio, but maybe there's a better way. Feb 01 18:23:50 With physical devices, I can just unplug the USB cable to fix this. Feb 01 18:23:52 is it enough savings vs. new AnimatorListener() { public void onAnimationEnd(Animator a) { } public void onAnimationStart(Animator a) {} public void onAnimationStep(Animator a) { } } Feb 01 18:24:10 TacticalJoke i've only had that happen on physical devices ... Feb 01 18:25:03 I get it now and then on the latest emulator. :\ Feb 01 18:25:06 s73v3r : I just need the system level hooking part from the framework. You know of any other method to achieve that ? Feb 01 18:25:21 i know nothing of Xposed. Feb 01 18:26:05 Less -root talk in here, please Feb 01 18:26:31 hehe, sure :P Feb 01 18:28:13 What size are action bar icons? The entire area is 48x48dp correct? Feb 01 18:29:04 i think the icons are 24dp, touch area 48dp ? Feb 01 18:29:51 some of that stuff disappeared from the android docs, like notification icon guidelines Feb 01 18:30:10 but thats in the material guidelines Feb 01 18:31:54 hello Feb 01 18:32:09 how to I change the color of the bar that contains the name of my app Feb 01 18:32:22 how do I change the color of the bar that contains the name of my app Feb 01 18:34:22 Which bar? I can think of at least two bars that contain the app name. Feb 01 18:37:53 colorPrimary Feb 01 18:40:01 Hey... Feb 01 18:40:06 I have an Fragment Feb 01 18:40:26 im trying to create a function called ChangeText Feb 01 18:40:31 do it Feb 01 18:40:37 to change a textview text when called Feb 01 18:40:46 but i cant use findviewbyid inside function Feb 01 18:40:48 returns null Feb 01 18:40:56 how can i do that? Feb 01 18:41:48 TacticalJoke: the action bar Feb 01 18:42:14 TacticalJoke: I also want to change the color of the text Feb 01 18:42:20 in the action bar Feb 01 18:42:51 pfn: I got it but what about the text color in the action bar how do I change it Feb 01 18:42:56 :| Feb 01 18:43:02 textColorPrimary Feb 01 18:45:10 pauloreloy: You can probably say `getView().findViewById(whatever)` after onCreateView (though in some cases it's more sensible to find it once in onCreateView and store the result). Feb 01 18:46:14 TacticalJoke: but im not trying to call findviewbyid inside the oncreateview, its inside another function of the fragment Feb 01 18:46:37 ugh, this ResourceType spam is caused by accessibility, how fucking lame Feb 01 18:46:48 pauloreloy: See the first thing I said. Feb 01 18:47:55 :/ Feb 01 18:48:04 still dont know how Feb 01 18:49:05 getView.findViewById(whatever) Feb 01 18:49:08 getView() * Feb 01 18:49:24 i tried Feb 01 18:49:26 still null Feb 01 18:50:15 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.widget.Button.toString()' on a null object reference Feb 01 18:50:49 Maybe you're looking for something that doesn't exist in the layout in question (perhaps it exists in the Activity layout instead). Feb 01 18:51:12 its exists inside the fragment layout Feb 01 18:51:17 not the main activity Feb 01 18:51:54 Could you post the fragment code and layout? Feb 01 18:52:58 hi Feb 01 18:54:11 Hey, just created an button. how to use it? Feb 01 18:54:35 set the onClick listener Feb 01 18:54:55 in MainActivity.java? Feb 01 18:55:06 sorry just started yesterday with app dev Feb 01 18:55:21 TacticalJoke: http://pastebin.com/WtQLbTaN Feb 01 18:55:53 set the button at the xml file Feb 01 18:55:55 TacticalJoke: the text on my action bar still does not change into black even if I change my style already Feb 01 18:56:02 get the reference at the activity Feb 01 18:56:05 implement onclicklistener interface Feb 01 18:56:11 TacticalJoke: http://pastebin.com/TqZhg8gF Feb 01 18:56:13 man, everytime I've wanted to use google shopping express, it's failed me Feb 01 18:56:14 some example? Feb 01 18:56:18 then use button.setonclicklistener() Feb 01 18:56:43 Man I'm pretty sure you can find this stuff at the documentation Feb 01 18:57:20 Anyway Feb 01 18:57:21 android041: developer.android.com/reference/android/widget/Button.html Feb 01 18:57:22 Here's an example Feb 01 18:57:23 http://developer.android.com/training/basics/firstapp/starting-activity.html Feb 01 18:57:44 If you don't want to implement OnClickListener Feb 01 18:57:51 casadogg: http://pastebin.com/WtQLbTaN Feb 01 18:58:01 casadogg: the text on my action bar still does not change into black even if I change my style already Feb 01 18:59:07 try adding #000 Feb 01 18:59:11 but keep the #000 line Feb 01 18:59:28 and verify that you are not changing the action bar title color programmatically Feb 01 19:00:42 casadogg: I did not Feb 01 19:00:58 Hmm, do you have to use the `actionBarStyle` thing when using the old ActionBar API? I can't remember. Feb 01 19:01:06 easyOnMe: did you add the line I told you to add? And are you using the support toolbar? Feb 01 19:01:18 easyOnMe: On what android version are you testing? Feb 01 19:01:23 Hey guys. I'm not a dev but am just brainstorming an idea. Can you write a android app that is java in the backend and html5 on the frontend and create that so that you can also run it in java server like Apache Tomcat to emulate how the app works on the phone? Feb 01 19:01:35 casadogg: yes I did add the line Feb 01 19:01:47 jetole, yes, but it's utter shit Feb 01 19:02:00 pfn, How so? Feb 01 19:02:24 easyOnMe: And you're testing your app using what android version? Feb 01 19:02:31 casadogg: I am using API 15 Feb 01 19:02:41 easyOnMe: Are you using support toolbar/ Feb 01 19:02:57 casadogg: what do you mean support toolbar where can I find it Feb 01 19:03:00 from the SDK you mean Feb 01 19:03:01 easyOnMe: I'm pretty sure primaryTextColor is v21 > which is android L Feb 01 19:03:06 easyOnMe: I think (but I'm not certain) you have to use this approach when dealing with the old ActionBar API: http://stackoverflow.com/a/5881739 Feb 01 19:03:31 easyOnMe: the v7 support library Feb 01 19:03:42 casadogg: yes Feb 01 19:03:49 easyOnMe: You're using it? Feb 01 19:04:02 casadogg: but how can I verify it Feb 01 19:04:32 easyOnMe: send me a pastebin with the activity code Feb 01 19:04:37 easyOnMe: and the activity's xml Feb 01 19:05:49 casadogg: http://pastebin.com/Na8HnM8x Activity code Feb 01 19:06:40 casadogg: http://pastebin.com/xDwyMqqA XML Feb 01 19:12:27 pfn, Sorry my wifi adapter stopped working and I didn't see what you said Feb 01 19:12:53 I think that if you don't define the toolbar in the xml and use the default one, you have to change the text color programmatically Feb 01 19:13:15 casadogg: That's not true; see my answer above. Feb 01 19:14:23 I mean, change the text color programmatically or kill a fucking giant just to change a toolbar title color Feb 01 19:16:36 That giant-slaying is the recommended way with the old ActionBar API. The problem here is that the old ActionBar API sucks. Feb 01 19:18:03 Also, does anyone have any recommendations for creating a android and iOS app from a common code base. I read a week or two ago that Google has open sourced J2ObjC which they use to write their iOS apps in Java and was thinking that may be a good approach but I am not a dev, will be orchestrating with the devs and wanted to get some insight ahead of time on the best ways to do this? Feb 01 19:19:11 the best, best way is to just keep them separate, and go native for both Feb 01 19:19:24 I don't believe the applications need to do anything complex. Mostly polling http endpoints, interacting with web sockets and displaying content in the application. The content, most or all can probably be done via HTML5 Feb 01 19:19:34 s73v3r, why? Feb 01 19:19:48 cause any other approach is going to have compromise Feb 01 19:19:49 http://www.droid-life.com/2016/02/01/report-google-to-take-more-control-over-nexus-line/ Feb 01 19:20:24 and you’re still going to have to either do native code, or you’re gonna have to write platform specific implementations Feb 01 19:20:41 s73v3r, Can you give me an example of compromise? Feb 01 19:20:46 TacticalJoke: I know, it's just that giant-slaying is way too common in android development and there's nothing wrong with simply changing a titlebar color programatically. It won't break anything Feb 01 19:20:55 Google’s approach is only good for the logic of the app. They still have a layer of Objective-C iOS code on top of that Feb 01 19:21:11 For frontend / GUI ? Feb 01 19:21:21 anything that interacts with the system Feb 01 19:21:27 ah Feb 01 19:21:34 frontend/GUI, networking, threading, etc Feb 01 19:21:49 What's the downside to html5? Feb 01 19:22:01 slow, and doesn’t fit in Feb 01 19:22:06 hmm Feb 01 19:22:14 quit() Feb 01 19:22:31 and generally, people are lazy with HTML5, and only have one set of CSS or whatever, and just make it look like iOS, and call that good enough for everything Feb 01 19:22:51 Why don't you guys use some hybrid platform? Feb 01 19:23:12 Sure, they can be pretty shitty, but if time is an issue Feb 01 19:23:23 time is almost never an issue Feb 01 19:23:45 I just want to avoid forking Feb 01 19:23:59 you’re writing for separate platforms. they’re essentially different projects Feb 01 19:24:17 By the way, did you try discussing this with your devs? Feb 01 19:24:21 they require different UI designs Feb 01 19:24:42 s73v3r, remembering I am not a mobile dev, I have seen some impressive java applications running on Win, OSX and Linux Feb 01 19:24:56 and the odd .Net one compiled with Mono Feb 01 19:25:13 I know it's a different context but I am just being optimistic Feb 01 19:26:06 it is. much more work has gone into desktop stuff than mobile Feb 01 19:26:13 desktop is also more open than mobile Feb 01 19:26:44 Right Feb 01 19:28:11 s73v3r, I'm reading this now which is going into some specifics http://arstechnica.com/information-technology/2014/11/how-google-inbox-shares-70-of-its-code-across-android-ios-and-the-web/ Feb 01 19:29:01 jetole, we're doing the same, just with C++ instead of some wierd Java translator. Feb 01 19:29:37 Mavrik, why is it weird and how does it differ from how you do it in C++ ? Feb 01 19:29:43 the benefit to Google’s approach is you don’t have to deal with the NDK, but you’re still writing the code that interacts with the platform in the native language Feb 01 19:30:04 It's wierd ina way you're doing translation from one language to another and have debugging issues that come from that. Feb 01 19:30:10 it’s weird because Java and ObjC have different semantics Feb 01 19:30:27 Guys im trying to do ImageView.setImageAlpha() in an OnDrawerSlide(). The .setImageAlpha accepts an int param, but the slide offset from OnDrawerSlide() is a float between 0-1. Is there anyway to use the value of the slide offset to set the alpha? Feb 01 19:30:33 type casting didnt work Feb 01 19:30:38 as it just return a 0 or 1 Feb 01 19:30:46 But I guess for Java fans at Google it makes sense :) Feb 01 19:30:54 Mavrik, How do you get C++ into iOS or Android. Does it compile natively on those platforms? Feb 01 19:31:15 Yes. Feb 01 19:31:19 orbyt_: you need to map that float value to the range your setImageAlpha accepts Feb 01 19:31:24 Hmm Feb 01 19:31:38 C++ compiles natively for any platform out there :P Feb 01 19:32:18 s73v3r: if .setImageAlpha accepts an int, and my float values are values like .12, .34, .90, etc, how would you map them? Feb 01 19:32:33 what’s the range that setImageAlpha accepts? Feb 01 19:33:04 Mavrik, and you use a lot of conditionals depending on which platform it's running on? Feb 01 19:33:11 nop, why? Feb 01 19:33:41 I think there's like two classes that deal with platform stuff in the shared codebase. Feb 01 19:33:58 Mavrik: Do you guys treat the C++ as just a logic library, or are you doing more stuff than that in the C++? Feb 01 19:34:28 s73v3r: hmm im not sure, the docs dont mention a range, but usually for alpha stuff its 0-1. Feb 01 19:34:40 well, the first thing to do is figure that out Feb 01 19:34:40 s73v3r, not sure what are you asking, the UI is fully written in Java / ObjC Feb 01 19:34:52 ok, that’s what I was wondering Feb 01 19:34:54 Whatever doesn't deal with that is kept in C++ Feb 01 19:35:31 Also platform-specific things are kept separate (e.g. we use RxJava for concurrency on Android and blocks/dispatch on ObjC) Feb 01 19:35:32 s73v3r: well assuming that the range is in fact 0-1, what would be the next step? Basically im asking if theres anyway to use decimals in a method that accepts an int. Feb 01 19:35:40 no, that’s not the range Feb 01 19:35:46 your assumption is poor Feb 01 19:36:11 google for how to normalize a float to an int range Feb 01 19:36:20 orbyt_, range is probably 0-255 as in most other APIs Feb 01 19:36:37 so if your int range is 0-255, you want to map values closer to 1 to values closer to 255 Feb 01 19:37:32 Mavrik: well i know .setAlpha() accepts 0-1, but for performance i read its better to use .setImageAlpha over setting it directly on the view Feb 01 19:37:47 and s73v3r i follow now, thanks Feb 01 19:37:54 hmm Feb 01 19:37:55 just use setAlpha, then, until you actually measure that there’s a problem Feb 01 19:38:02 most setAlpha()s in Android accept 0-255 Feb 01 19:38:10 with exception of animation I guess? O.o Feb 01 19:38:16 consistency ftw Feb 01 19:38:19 Its most definantly 0-1 cuz i was just using it haha Feb 01 19:38:36 I just figured id see if there was any difference using it on the image directly Feb 01 19:39:55 so 0-1 says that it accepts a float range Feb 01 19:40:03 either that, or you can either have full alpha or no alpha Feb 01 19:41:58 s73v3r: no the 0-1 is for using the non-deprecated .setAlpha() directly on a view. Your right about .setImageAlpha though, it is 0-255 Feb 01 19:43:27 and setAlpha takes a float Feb 01 19:44:41 Yes the non-deprecated one does, thats correct Feb 01 19:45:55 if you want to use setImageAlpha, you need to map the range of 0-1 to the range of 0-255 Feb 01 19:47:40 s73v3r: you already said that, and i said thanks^^ scroll up Feb 01 19:50:52 I have 3000~ istances of a textview, so I suspect there is a leak, any way to find where exactly it is happening? Feb 01 19:51:08 :o Feb 01 19:54:44 What is the general feeling about Apache Cordova? Feb 01 19:54:57 bad idea Feb 01 19:55:24 Why? Feb 01 19:55:33 same reasons for HTML5 Feb 01 19:55:58 Slow and doesn't feel native? Feb 01 19:56:09 it’s slow, doesn’t fit in with the platform, and doesn’t stay up to date with new platform featrues Feb 01 19:56:25 It's horrible beyond reason. Feb 01 19:56:36 There's no way to debug that shit, not on iOS or Android. Feb 01 19:56:41 And debug you will. Feb 01 19:56:48 what do your developers say to use? Feb 01 19:57:24 I haven't discussed it yet and I would like to come prepared with as many ideas to avoid forking between two dev teams as possible Feb 01 19:57:37 are they mobile developers by trade? Feb 01 19:57:58 jetole, buy Xamarin? Feb 01 19:58:01 Yes. We have a group for each platform Feb 01 19:58:13 just go ask them Feb 01 19:58:21 Bad idea Feb 01 19:58:23 lol Feb 01 19:58:24 they’re probably not going to be happy using something like cordova Feb 01 19:58:28 why is that a bad idea? Feb 01 19:58:36 Doesn't matter Feb 01 19:58:40 if you don’t trust your devs, then why are they still working there? Feb 01 19:58:54 and it does matter. they’re not going to be happy told to use cordova, and they will leave Feb 01 20:02:29 I do trust them with the tasks they handle. They do not work for me. They work with me. I am finalizing a project proposal for the next major release on the backend which integrates exclusively with the mobile app, would like to have some ideas to overcome some issues I've observed with the split teams as well as it just seems much more efficient to streamline as much app dev as we can from a common code base and, additionally I'd like to have a Feb 01 20:02:30 web based emulator from a common or similar code base to help give devops guys quick views of what should be happening at that moment on various different phones, tablets, etc Feb 01 20:04:04 In a perfect world I'd like to have them commit a change, pushed up through the build servers that auto deploys to the two different platform stores from a common code base but that's in a perfect world Feb 01 20:04:26 you absolutely do NOT want auto deployment to the store Feb 01 20:06:28 s73v3r, well we work with various levels of branches for dev, staging, QA, etc before going into the production branch anyways Feb 01 20:06:32 But OK Feb 01 20:06:58 well, for one, you’re forgetting about the iOS approval process Feb 01 20:07:44 I don't know it. Haven't owned a iPhone in over 6 years but let me google that Feb 01 20:08:19 as someone who’s supposed to be a project manager for a mobile project, that’s absolutely something you should know about Feb 01 20:09:26 Actually I'm a project manager for the backend, completely outside of the mobile aspect. API's, databases, endpoints, normalization, data delivery, etc Feb 01 20:10:08 But I guess the point you're making is CI/CD doesn't apply to mobile apps Feb 01 20:10:18 it does, just not to uploading to the store Feb 01 20:10:31 you can have it deploy to hockey or whatever for beta distribution Feb 01 20:10:43 I'm really starting to get the impression this aspect that I wanted to make recommendations on may be outside my scope Feb 01 20:10:53 but as both platforms are different, the schedules are generally different Feb 01 20:10:56 yeah, kinda Feb 01 20:11:08 * jetole sighs Feb 01 20:11:12 oh well Feb 01 20:11:48 the best way to get what you want would probably be to invest in an automated UI testing setup like Appium, and a test cloud that will let you run on different devices Feb 01 20:12:07 then, as part of the nightly build process, you run those tests, and take screenshots Feb 01 20:12:13 oh. preview 9 is out Feb 01 20:13:31 s73v3r, may not apply. Our app is event driven. We would have to find a way to push test data fixtures Feb 01 20:13:40 mocks Feb 01 20:16:58 wow, you can permanently brick a linux system using rm- rf / + UEFI (since its mounted r/w) Feb 01 20:17:16 UEFI? huh Feb 01 20:17:23 g00s, yeah i've seen that.. Feb 01 20:17:27 bug in systemd, right? Feb 01 20:17:52 how can I get the current buffersize of a mediaplayer? Feb 01 20:19:38 danijoo systemd guys won't mount it read only , more like policy atm Feb 01 20:21:25 s73v3r, Thanks for the help Feb 01 20:22:37 in general, while you might believe that some of the web solutions are a benefit for your development, a lot of times they lead to a worse user experience Feb 01 20:23:52 danijoo, I'm looking at that now but no that would be a bug in UEFI to create hardware required components that can trivially be mounted to user space Feb 01 20:24:42 interesting that UEFI can't be flashed Feb 01 20:24:46 danijoo and g00s: I'm going to read further into this now but from my experience with EFI / UEFI I don't believe it's as bad as they say it is Feb 01 20:24:51 replace the flash Feb 01 20:25:15 pfn, I think it can but I'm going to read further into this before I comment further Feb 01 20:26:00 pfn, but newer asus boards can be flashed without boot via a special usb socket and a button on the back on the motherboard near where the other ports are on the motherboard Feb 01 20:26:23 that's usually a feature of enthusiast boards, though Feb 01 20:28:31 I'm thinking of the x-99 e ws board and saw it on another board too that was definitely enthusiast, can't remember it's name. The x-99 e ws can be argued. I see it as being a hell of a powerful and reliable motherboard based on PCI-E x16 capable slots and max ram w/ 8 DIMM slots plus I like that it has a m2 connector though I wish it had 2 so that I could mdadm raid1 my root disks with m2 PCI speed Feb 01 20:29:47 "Kinda a mix of everything. It's worth noting that, according to ex-kernel hacker Matthew Garrett, you can achieve the same bricking using a 20 line program in Windows" Feb 01 20:37:37 pfn, I remember bricking the firmware during a flash on a pentium 1 board. I had a couple of the same boards laying around so I booted another one, took out the eeprom of the running system, put the eeprom of the bricked system into the running system and flashed it there. Put both eeproms back where they belong and both mobo's were good to go Feb 01 20:37:56 indeed Feb 01 20:37:57 yes Feb 01 20:39:02 I doubt that would work with UEFI but maybe. I'm guessing there's too much that is not as isolated to the motherboard with uefi in that the eeprom between two identical boards probably wouldn't be the same after either one had been minimally used Feb 01 20:40:25 how can i check to do something when the app is foregrounded Feb 01 20:41:45 do it in onResume. thats called when its put into foreground Feb 01 20:42:41 right but that will happen on every single activity even if it wasn't in the background previously Feb 01 20:42:53 yes Feb 01 20:43:01 i guess I can set something onPause Feb 01 20:43:08 anyway to set a fragment transition so it goes from 0 height to whatever height is needed for its contents (to make it "slide out" basically) Feb 01 20:46:06 pfn, from what I am reading, I think the EFI vars are what I thought they were. Though I'm still not sure, I think they are the boot order of devices. If I am not mistaken, deleting these will cause your system to not boot a device but should still allow you to enter the UEFI console window prior to bootstrapping and allow you to fallback to the UEFI terminal on failed load except in the case of motherboards not following spec but don't quote me Feb 01 20:46:07 on that yet Feb 01 20:48:01 * pfn shrugs Feb 01 20:48:05 I don't particularly care Feb 01 20:48:21 OK. Than I'll shut up about it Feb 01 20:49:15 hi. I'm developing a midi tool, I need to emulate a virtual keyboard inside the emulator Feb 01 20:49:50 i'd rather not, but my phone keeps crashing and rebooting if I do this and it re-enumerates an actual on its usb between application deployments Feb 01 20:50:04 s/an actual/an actual keyboard Feb 01 20:50:10 monode, the emulator has a setting to do that. Feb 01 20:50:21 I dont know where its for the old emulator but it exists Feb 01 20:50:23 i'm not sure i found it Feb 01 20:50:44 something like a bunch of keys, heck, even one octave or a bunch of CCs would be more than enough Feb 01 20:51:38 monode, http://prntscr.com/9xsj6cn see the last point of the scrollview Feb 01 20:51:58 it says removed Feb 01 20:52:11 o.I Feb 01 20:52:12 http://prntscr.com/9xsjnr Feb 01 20:52:24 ooooh Feb 01 20:52:46 i'm talking about a midi keyboard, something like this http://kb.inmusicbrands.com/media/images/akai2/akai_mpkmini_mkii_main.png :) Feb 01 20:52:58 oh :D Feb 01 20:52:59 :o Feb 01 20:53:18 Theres nothing like that built in Feb 01 20:54:02 the cool thing about the latest midi in android is this: Beginning with the Android 6.0 (Marshmallow) release, [...] and virtual (inter-app) transports Feb 01 20:54:15 so that's basically what I would need, but I was hoping someone already implemented it Feb 01 21:04:08 yay, got my cambond usb cables Feb 01 21:05:36 I wish they were usb 3 though... Feb 01 21:15:59 a little debate in /r/androiddev about event busses :) i can think of one good use: scoped to an activity, broadcasting the shit that broken like onRequestPermissionResult to nested fragments - since that crap is busted Feb 01 21:16:56 Hi there. Is it possible to get a reference to an activity that I start? Something like Activity a = context.startActivity(...) Feb 01 21:17:30 Pyuruku, from where do you need the reference? in general, no Feb 01 21:17:39 from where I'm starting it Feb 01 21:17:58 no Feb 01 21:18:08 hmm :| Feb 01 21:18:09 and i dont see why you would need to Feb 01 21:18:41 what are u trying to do Feb 01 21:18:44 I'm trying to contain some code in an invisible activity because of onActivityResult stuff Feb 01 21:20:19 dont see why you need a reference for that Feb 01 21:20:53 basically I dont want the `onActivityResult` stuff littered all over my activities Feb 01 21:21:02 so I'm trying to start an activity that has the implementation Feb 01 21:21:11 from a library function Feb 01 21:21:16 to receive a callback only Feb 01 21:22:50 you could make a superclass holding that code Feb 01 21:23:05 then you dont see it ´littering arround all over your activities´ Feb 01 21:23:16 but its still cluttering my code for shitty reasons Feb 01 21:23:30 I'm trying to purchase things from gplay Feb 01 21:23:47 and my activities all extend from a base class already Feb 01 21:23:57 so now, I have to create another base class for _some_ activities Feb 01 21:24:00 and then maintain two versions Feb 01 21:24:06 or have the code applied to everything Feb 01 21:24:38 Pyuruku use headless fragments to compose behavior Feb 01 21:24:56 if activty needs behavior A and B, have headless frag A and headless frag B Feb 01 21:25:07 you mean add a fragment that will take on the result? hmm Feb 01 21:25:13 that actually sounds like a really nice solution Feb 01 21:25:35 let me try just that, thanks g00s Feb 01 21:25:59 if its just a ¨premium purchased¨ state, you can also simply check it once at startup and store it in shared prefs.. Feb 01 21:26:19 or a variable Feb 01 21:26:20 danijoo_: I'm trying to be as general as possible with my code so I can reuse it Feb 01 21:26:34 Pyuruku see links in here https://medium.com/@ali.muzaffar/use-headless-fragment-for-android-m-run-time-permissions-and-to-check-network-connectivity-b48615f6272d#.cs5jkuzh1 Feb 01 21:26:48 thanks g00s Feb 01 21:29:04 I’ve asked about the notification stuff before, and this will now be a bit off topic, but maybe one of you has experience: GCM obviously doesn’t allow push notifications to come from servers not controlled by the app dev, but I can make my own there – do you know of a way to do so on (iOS, Windows Phone, Sailfish OS)? Feb 01 21:29:26 (my own = my own push notification retrieval service) Feb 01 21:29:41 you can - but from what i understand, GCM has special status on android Feb 01 21:30:01 so it probably won't work as well,or be as efficient Feb 01 21:30:14 well, there is a way to do that. Feb 01 21:30:28 i had to laugh about that post a few days ago. claiming phone improved performance when Facebook was removed Feb 01 21:30:39 i think they were still using mqtt Feb 01 21:30:57 we can keep one single socket open. Obviously, ISPs close non-Google sockets after a few min without notifications, and obviously we can’t send keepalives from the phone during doze, Feb 01 21:31:16 but! our server can send keepalives! (and ignore the fact that we receive no answers) Feb 01 21:31:39 We did some tests, and it seems to actually work. Feb 01 21:32:22 justJanne written during M preview, but i think still valid https://commonsware.com/blog/2015/06/03/random-musing-m-developer-preview-ugly-part-one.html Feb 01 21:32:23 g00s, i saw that too and im trying it out right now Feb 01 21:32:32 since a few days Feb 01 21:32:41 danijoo_ yeah, who needs that crao :D Feb 01 21:33:07 justJanne, well there were several 3rd party push services that did exactly that Feb 01 21:33:10 justJanne, and it worked Feb 01 21:33:15 Doze does break things though. Feb 01 21:33:23 But only if you really want that delivery while device is dozing. Feb 01 21:33:27 Mavrik: it works with doze for us. Feb 01 21:33:51 Open sockets are kept open for apps that have "ignore optimizations" on during doze. You can’t open new sockets, or send anything, Feb 01 21:34:10 but your app gets unsuspended if you get an incoming package in some of our tests. Feb 01 21:34:23 We’ll obviously test further. Feb 01 21:34:23 makes sense Feb 01 21:35:10 The obvious issue is that we’d have to publish our API key for GCM on the web, publicly, for anyone, if we’d want to use GCM., Feb 01 21:35:29 justJanne, isnt ignoreOptimization the flag that made tasker being banned from play store? Feb 01 21:35:32 as we can’t (for legal and technical reasons) control the servers which will send the push notifications, and can’t relay the messages Feb 01 21:35:49 danijoo_: no, I mean, the flag that the user has to set manually Feb 01 21:36:07 we’d put up a dialog "hey, go to settings -> ... click ... to ..." Feb 01 21:36:12 justJanne, not sure what's your use case Feb 01 21:36:19 Are you providing device SDK or a SaaS service_ Feb 01 21:36:21 ? Feb 01 21:36:34 justJanne, yeah thats the same flag but it seems to be against play store to make it happen from code :p Feb 01 21:36:52 Mavrik: similar. An IRC bouncer with the ability to provide push notifications to users using the app that integrates with the bouncer. Feb 01 21:37:18 Obviously, we can’t relay every notification through our own servers for legal reasons (safe harbor, private messages, etc) and technical reasons (cost) Feb 01 21:37:24 ah. Feb 01 21:37:31 and we can’t give out our GCM key to anyone running their own bouncer Feb 01 21:37:52 but we also can’t require users to recompile the app for every single bouncer they wish to connect to Feb 01 21:38:31 on iOS we’ll probably have to get a US national to buy a server through which all notifications will be proxied, and then make the app cost something to finance the server. Feb 01 21:43:58 Hola people Feb 01 21:44:33 Do we have any ETA as to when would GoogleCloudMessaging API be phased out? Feb 01 21:45:05 They say that it's deprecated and recommend https://developers.google.com/android/reference/com/google/android/gms/iid/InstanceID Feb 01 21:47:12 28. May 2015. Feb 01 21:48:36 btw, does GCM provide the ability for the app to generate a token which can then be used by any server to send notifications to the app? Feb 01 21:48:56 (without the server having any other information) Feb 01 21:49:26 Yup, I think that's how people get notifications Feb 01 21:50:01 Server just pushes notifications to GCM with device token and voila Feb 01 21:51:33 justJanne, nothing to send _directly_ to the device Feb 01 21:51:40 everything has to go through GCM Feb 01 21:51:59 Okay I have a LinearLayout, with two EditText, how do I configure the layout so one field can have at max 5 characters and the rest of the space is for the other textbox? Feb 01 21:52:10 That's something similar to what I said danijoo_ :-) Feb 01 21:52:14 hi Feb 01 21:52:18 OverCoder: Weights Feb 01 21:52:26 So, any idea when is that API gonna phase out Feb 01 21:52:44 i changed a theme property in AndroidManifest.xml but the wysiwyg doesn't reflect the changes, how can i udpate it? Feb 01 21:52:58 I think that last developer did a good job and I would be happy to use their Notification related code Feb 01 21:53:17 s73v3r, I could make it 1 by 8, but is there anyway I can put exact widths? Feb 01 21:53:23 don't Feb 01 21:53:27 hm, okay Feb 01 21:53:32 Hi, anyone have any particularly good links for someone thats already done some android development but wants to improve? Feb 01 21:53:45 Arguggi, me Feb 01 21:53:47 you’re gonna specify exact widths, and then you’re gonna run it on a different device and be fucked Feb 01 21:53:47 Arguggi, d.android.com Feb 01 21:53:55 s73v3r, gotcha Feb 01 21:56:57 danijoo_: yes, but even with through GCM, Feb 01 21:57:05 OverCoder, what he said. android has a LOT of different sized screens, so it's more like designing for HTML than for ios Feb 01 21:57:06 afaik, the server still needs to know an API key. Feb 01 21:57:09 new to android, figured I’d save some time by asking here: is the EffectiveNavigation app linked here worth checking out? It looks like it’s four years old http://developer.android.com/training/implementing-navigation/lateral.html Feb 01 21:57:26 dragorn, hm, intersting Feb 01 21:58:26 dbasch: most of the examples on there are long deprecated. There are a lot of libs nowadays implementing those things in a more modern, non-deprecated, simpler way Feb 01 21:59:12 for example, dbasch, even Google recommends to use for tabs this instead http://developer.android.com/reference/android/support/design/widget/TabLayout.html?utm_campaign=io15&utm_source=dac&utm_medium=blog Feb 01 21:59:18 (from the design support lib) Feb 01 21:59:45 justJanne: thanks, the one I linked was the first Google result for “android tabs”. I’ll check that out. Feb 01 22:00:14 if you search for new tutorials on google, add "design support lib" to the search query, that might give more recent answers Feb 01 22:00:23 also, there are lots of third-party libs, Feb 01 22:00:37 can i get some of that android dev mojo Feb 01 22:01:42 Is there any way to get the architecture ndk-build has built the .so for as a #defined value? so that i can do: LOGI("built for %s", TARGET_ARCH_ABI) Feb 01 22:01:48 All hail django_, the framework to get stuff done :-P Feb 01 22:01:56 lol Feb 01 22:01:58 im a total noob Feb 01 22:02:02 name is from the movie Feb 01 22:02:03 like https://github.com/florent37/MaterialViewPager Feb 01 22:02:14 So am I Feb 01 22:02:31 Did the backend and now on verge of winding up the app Feb 01 22:03:40 btw, what’s the preferred way of handling multi-page preference setups nowadays? PreferenceActivity is long deprecated, but it looks like preferencefragments aren’t ideal on tablets (no master/detail flow) Feb 01 22:05:08 OverCoder, care to share any links? :) Feb 01 22:08:22 Arguggi, no I misunderstood you ^^ :p Feb 01 22:08:23 nvm Feb 01 22:09:19 so if i have 2d array of bytes are all the bytes going to be in consecutive memory locations? Feb 01 22:09:31 nno Feb 01 22:09:35 drat Feb 01 22:09:59 for 2d graphics, you typically want to do a single array Feb 01 22:10:11 and basically do array[x + y * w] Feb 01 22:10:18 its not graphics in this case but yea Feb 01 22:10:26 x + y * width Feb 01 22:10:31 yup Feb 01 22:13:42 explodes: I don’t know of any single #define: I think you’d have to check for the various platform possibilities ( e.g., i386 ) and you could make your own macro which you’d know would contain the architecture string in a format you wanted Feb 01 22:20:22 I'm sure you could convince many build systems to add a define as well. Feb 01 22:22:05 (The experimental Gradle plugin's user guide has one, for example.) Feb 01 22:24:58 so the most recent update to the "updated weekly" android studio 2 is nov 23 Feb 01 22:24:58 lol Feb 01 22:25:15 no Feb 01 22:25:28 yea i see that now Feb 01 22:25:31 jan 29 Feb 01 22:25:40 why is the first hit a link to the old page? Feb 01 22:25:48 why is that old page even still up? Feb 01 22:26:06 http://tools.android.com/download/studio/builds/2-0-preview Feb 01 22:35:52 Um, when I use compat, do I need to put both compat and normal stuff? like, say, android:colorPrimary, do I need to add both android:colorPrimary and colorPrimary? or just the latter? Feb 01 22:41:33 OverCoder use the compat one, which by default often points to the android one Feb 01 22:41:43 hm, okay Feb 01 22:41:49 the point bing, if its in compat, you don't have to worry about the attr missing Feb 01 22:42:14 if you say ?android:attr/xxx when xxx in api 23, you'll be in trouble on api 22 ;) Feb 01 23:00:17 I just created a Fragment with Android studio and it populated a method with what seems to be deprecated code. I changed it as per this SO answer and it works, but I wonder if I did something wrong that caused it to generate the wrong code. http://stackoverflow.com/questions/29292942/how-do-i-implement-onfragmentinteractionlistener Feb 01 23:04:20 specifically, Android Studio 1.5.1 inserts this in a Fragment I create: https://gist.github.com/dbasch/f75d5c99373d48553658 Feb 01 23:10:14 context is is new. activity one is deprecated Feb 01 23:10:22 AS template is probably just behind, thats all Feb 01 23:10:54 dbasch i see you have some clojure gists :D Feb 01 23:11:29 shame its still not terribly practical on android yet Feb 01 23:11:32 Hey guys, does GCM allow managing of messages? Like view all messages sent and received? Feb 01 23:13:15 g00s: yes, although I’m not sure I’d want to use Clojure for android dev, giving the app lifecycle having checked types is more helpful than in a web app Feb 01 23:15:26 g00s: well, there's mocl, but it's single-threaded only :< Feb 01 23:15:51 (but it has call-out FFI by now!) Feb 01 23:17:04 dbasch kotlin is also getting popular with android Feb 01 23:17:23 p_l i was hoping with 1.8 they would have announced some android suppoty Feb 01 23:17:29 *support Feb 01 23:17:32 maybe 2.0 ;) Feb 01 23:18:20 Xtend is also getting an integration with Android now Feb 01 23:18:23 pretty neat Feb 01 23:19:29 Ceylon support for android should be right around the corner ... Feb 01 23:19:49 most of my code is written, i'll probably never find use for any of these any time soon Feb 01 23:20:36 What I love is that Xtend has full macro ability, but compiles to Java 5 source. Feb 01 23:21:15 so, you can actually use all the normal Java tooling (except for IDE, etc, but they have integration with IDEA and Eclipse), and get the awesome parts. Feb 01 23:24:26 Seriously, I wish Java 9 would implement a .or(...) method on every object with a .get Feb 01 23:27:42 well, you're free to propose it Feb 01 23:27:49 they have a mailing list Feb 01 23:30:46 Hey guys... Feb 01 23:30:49 Anyone have experience of the Android backup system, specifically SharedPreferencesBackupHelper ? I implemented it and have been testing, but no matter what I do the backup seems to be "stuck" on the very first data snapshot that it got when I first ran the bmgr tool and forced a backup pass Feb 01 23:30:53 Oooh, right, we have Optionals.ofNullable Feb 01 23:31:32 can anynone help me? im working with google cloud messaging, and i have a class called ChatListener, that is a service, listening to new messages... Feb 01 23:31:37 but... Feb 01 23:31:44 i want to when message received Feb 01 23:31:50 the message is passed to a Fragment Feb 01 23:32:00 i cant instantiate the chatlistener inside the fragment Feb 01 23:32:02 no matter how many calls to BackupManager.dataChanged() happen and how many times I force new backup passes with bmgr the restore function always puts me back in the same state as the very first backup pass Feb 01 23:32:03 how can i do that? Feb 01 23:32:29 so vpnservice is encryption-agnostic, is that right? i'm not seeing anywhere to set the type of vpn (i.e. IPSec, LTPP etc) Feb 01 23:38:37 are Android tools and docs less reliable or up-to-date than their iOS equivalents or is it just my first impression? Feb 01 23:39:34 dbasch between you an me, google doesn't put much effort into their docs Feb 01 23:39:51 they do the least work required Feb 01 23:40:09 they used to be light years ahead of iOS docs, I don't know if that's changed though Feb 01 23:41:12 + it's open source, so you can just look at the code Feb 02 00:01:19 someone can help me? Feb 02 00:06:22 https://gist.github.com/px-amaac/f384abc042ee4865be64 So I am trying to write a test that clicks on a button in a drawer menu that is populated by AdapterView using Espresso onData(). The Gist contains the view hierarchy and the line that is failing. Both GridViewWithAdapter views have the same exact children. Feb 02 00:07:30 I am having trouble matching the adapter view. The only difference is the parent relative layout main_menu_fragment or main_menu_fragmentAnimate. Feb 02 00:08:41 I am guessing that the issue is my onParent matcher. Does it not check all parents? or only the direct parents? Feb 02 00:08:59 pauloreloy: don't direct message people without asking Feb 02 00:09:08 pauloreloy: you have to be more specific about your issue Feb 02 00:09:48 herriojr: do you already worked with google cloud messaging? Feb 02 00:10:03 yes, I have previously worked with it Feb 02 00:11:21 well, so do you know that as a class called chatlistener that extends from gcmlistenerservice Feb 02 00:11:23 right? Feb 02 00:11:28 has* Feb 02 00:12:14 this class have a method onMessageReceived Feb 02 00:12:31 thanks treat when new message is received Feb 02 00:12:40 now, my question in... Feb 02 00:12:51 are you passing this through google translate? Feb 02 00:13:05 im from brazil, trying ... Feb 02 00:13:06 lol Feb 02 00:13:11 kk Feb 02 00:13:22 but can you understand? Feb 02 00:13:30 let me restate it Feb 02 00:14:03 you have a GCMListenerService which you have a ChatListener extend Feb 02 00:14:11 right... Feb 02 00:14:46 so, when new message is received, ChatListener treats with the method onMessageReceived Feb 02 00:14:54 right? Feb 02 00:15:02 IF you receive the message Feb 02 00:15:05 yes Feb 02 00:15:11 so my doubt is... Feb 02 00:15:18 how can i LISTENING for new messages Feb 02 00:15:22 inside an Fragment? Feb 02 00:15:38 or pass the message receive to a fragment Feb 02 00:15:44 pauloreloy: so first of, you aren't guaranteed to receive the message at all Feb 02 00:15:50 within the service Feb 02 00:15:53 are you okay with that? Feb 02 00:16:10 pauloreloy: generally, you use GCM for tickling your service Feb 02 00:16:23 well, with the method onMessageReceive i can log the message Feb 02 00:16:26 it is working Feb 02 00:16:49 but i dont know how to pass the message to a fragment, to update a listview... Feb 02 00:17:31 pauloreloy: that's what I'm getting to next Feb 02 00:17:51 pauloreloy: there are multiple ways to do it Feb 02 00:18:22 herriojr: :o help me with a good one man! Feb 02 00:18:24 plz Feb 02 00:18:25 lol Feb 02 00:18:36 pauloreloy: are you storing the messages locally? Feb 02 00:18:50 not yet... Feb 02 00:18:55 is there any way to figure out how the current activity was launched? Feb 02 00:19:21 pauloreloy: so, if you use a ContentProvider, you can just update the DB Feb 02 00:19:29 I set a breakpoint in the onCreate() method and examine the stack, but it's all android system methods Feb 02 00:19:37 pauloreloy: and a ContentObserver will take care of updating the list for you Feb 02 00:19:42 I'm looking for the line in my project where startActivity was called Feb 02 00:20:08 herriojr: let's say I will not save messages, so I want to get passed into the fragment and update the listview Feb 02 00:20:13 pauloreloy: if you are a light app and just do queries to a server for the list, you just need a notification scheme for your activity to register with Feb 02 00:21:48 herriojr: i tried to usa a interface Feb 02 00:21:53 use* Feb 02 00:22:05 but the message is not passed to fragment Feb 02 00:22:08 :( Feb 02 00:22:15 pauloreloy: so let's say you have an intermediate class called the MessageManager which allows you to register and unregister listeners Feb 02 00:22:19 your app was running in the front, right? Feb 02 00:22:23 right... Feb 02 00:22:26 and you instantiate this class at the Application level Feb 02 00:22:47 then, when you receive a message, you call to the MessageManager and notify that the messages have changed Feb 02 00:23:08 since your Fragment registered with the MessageManager it will be notified of the event and can requery for its messages Feb 02 00:23:27 instantiate "MessageManager" inside the fragment or ChatListener? Feb 02 00:23:40 pauloreloy: no, inside the Application class Feb 02 00:24:09 pauloreloy: have you ever replaced the Application class in your manifest before? Feb 02 00:24:17 he’s saying to use a Singleton Feb 02 00:24:57 well, no Feb 02 00:25:13 pauloreloy: the Application class lasts for the entire lifecycle of your application Feb 02 00:25:30 pauloreloy: so you can store "application level" objects in there Feb 02 00:26:08 and access them from calling Activity.getApplication() and casting it to your application object Feb 02 00:26:11 in manifest Feb 02 00:26:16 inside application Feb 02 00:26:22 i have activity's Feb 02 00:26:31 but no class for application Feb 02 00:27:03 by default there isn’t one Feb 02 00:27:06 you have to add it Feb 02 00:27:50 pauloreloy: in your manifest, add the following line to your application tag in your manifest: android:name=".MyApplication" Feb 02 00:28:05 then create a MyApplication object which extends Application Feb 02 00:28:18 and you can access this class from both your fragment and activity Feb 02 00:28:24 rrrr fragment and service Feb 02 00:29:00 pauloreloy: there's other ways to do this, but I'll leave it at that Feb 02 00:29:16 oh god... i just have activitys and fragments Feb 02 00:29:27 no applications :( Feb 02 00:29:29 yeah, and I'm telling you to add an Application class Feb 02 00:29:29 im stuck Feb 02 00:29:30 ashiash Feb 02 00:29:51 public void MyApplication extends Application { … } Feb 02 00:30:07 http://developer.android.com/reference/android/app/Application.html Feb 02 00:30:47 ok, i done that now Feb 02 00:30:59 but inside this MyApplication Feb 02 00:31:18 what do i have Feb 02 00:31:29 pauloreloy: how are you querying for the list data? Feb 02 00:32:07 inside the fragment, using adapter Feb 02 00:32:23 pauloreloy: where do you get your data from? Feb 02 00:32:47 well, thats the question, the data have to be the message received from GcmListener Feb 02 00:33:26 pauloreloy: anyways, I have to run and pick up my kid — basically, if you create a MessageManager class which allows you to register and unregister listeners as well as allows the service to notify it of changes, you're golden Feb 02 00:33:51 or you can just skip all of what I'm saying and send a broadcast that your activity listens for Feb 02 00:33:58 s/activity/fragment/ Feb 02 00:34:12 I just prefer to abstract stuff, so I can easily test it Feb 02 00:34:27 adios Feb 02 00:34:41 okay Feb 02 00:53:59 My company has hundreds of phones that are used for gps devices in our over the road trucks. I am looking for a way to control these phones remotely by being able to control them from a pc. I would like to write this app myself, anyone have any experience in this field? Feb 02 01:01:59 TECFALL control the phone ? Feb 02 01:02:41 g00s: remote into them such as teamviewer, so we can troubleshoot and walk drivers through things Feb 02 01:03:51 out of curiosity: why not just use TeamViewer or one of its alternatives? Feb 02 01:04:00 writing an app seems horribly cost inefficient Feb 02 01:04:00 :\ Feb 02 01:04:25 there are companies(teamviewer) where that is all they do, writing that yourself would probably not end well Feb 02 01:08:03 how many of you guys use leak canary? verdict ? Feb 02 01:08:28 win Feb 02 01:08:38 & y not, no downsides Feb 02 01:08:55 jug6ernaut ever get bothered by false positives ? Feb 02 01:09:57 no, but i have had it where I has some times failed to generate the report. Feb 02 01:10:19 not sure if its my app or leakcanary tho Feb 02 01:10:30 * jug6ernaut current app is more a test bed for new stuff then anything else Feb 02 01:35:04 asd Feb 02 01:35:04 test Feb 02 01:35:14 anyone one here using windows 10 ? Feb 02 01:39:17 So, authenticating with open id on a native app. I feel like this should be possible Feb 02 01:42:03 it’s just a bunch of web calls. Feb 02 01:42:37 I can get a webview open with the correct page, but I cant get back to my app after the user authenticates Feb 02 01:43:07 do you have a URL scheme defined in your manifest? Feb 02 01:43:13 I have an intent filter for myapp://myapp, set the redirect url back to that Feb 02 01:43:39 and what is that intent filter set up to do? Feb 02 01:43:56 Its steam, I just get "Error" (no other message) when I authenticate Feb 02 01:44:10 The filter is set for an activity, so that activity should launch correct? Feb 02 01:44:24 yes Feb 02 01:45:43 Not sure if its steam doesnt like my return_to url Feb 02 01:46:19 it’s possible, but I don’t think so. Feb 02 01:46:37 is there another openID provider you could test with, that might give you some more info? Feb 02 01:47:16 I change the return_to url to an https url (made up address). Set the intent filter to catch it, but the webview still tries to load it Feb 02 02:05:19 Well, Ive narrowed my filter down to a specific port now. No longer getting an errors on steams side, but I still dont get sent back to my app Feb 02 02:05:33 Is there any way to debug whether a filter is getting hit? Feb 02 02:10:22 you can try opening up the web browser, entering your custom URL from the intent filter, and see if your app responds Feb 02 02:10:37 he quit already Feb 02 02:11:03 that he did Feb 02 02:17:52 surprised nobody has talked about this http://www.droid-life.com/2016/02/01/report-google-to-take-more-control-over-nexus-line/ Feb 02 02:18:01 i think it would be great :D Feb 02 02:18:11 looking for it now Feb 02 02:18:13 i mean reading it Feb 02 02:18:15 * NotSecwitter wonders how many Google employees are in here Feb 02 02:18:28 lol Feb 02 02:18:31 g00s: meh, just a random rumour Feb 02 02:18:37 war of brands Feb 02 02:19:11 xiamoi GUI already begun the war with apple products Feb 02 02:19:35 I don't think there are any publicly-identifying Googlers active in here anymore Feb 02 02:19:48 i can see 1 ... Feb 02 02:20:03 g00s: active? Feb 02 02:20:09 afaik Feb 02 02:20:49 * NotSecwitter ducks Feb 02 02:24:15 we're just the misfits left behind Feb 02 02:24:25 g00s should be great if the pixel c is any indication Feb 02 02:24:53 jug6ernaut: er, sarcasm? Feb 02 02:25:00 eeeyeaaa, dunno. haven't heard a good thing about Pixel C yet Feb 02 02:25:14 Leeds no...the build quality on the pixel c is amazing Feb 02 02:25:32 there is only 1 problem with the pixel c Feb 02 02:25:36 android lol Feb 02 02:29:51 I have a custom build type in one of my android libraries and I would like to use this in the application Feb 02 02:29:53 jug6ernaut sounds like an easy fix :D Feb 02 02:30:13 from my understanding, the application and the library will typically just use the same build type Feb 02 02:30:32 so if application is building debug, it will build debug for the library. Is there a way to change this? Feb 02 02:31:00 my library has a build type of "mock" and I would like to use this for build type of "debug" in the application Feb 02 02:32:07 sleepster honestly for a library u should consider redesigning to no rely on different build types Feb 02 02:32:48 if you need to provide different types of functionality within the library it should be passed into it Feb 02 02:33:08 thanks jug6ernaut . So I am trying to figure out how to go about doing this. My library is heavily dependent on a REST server and I would like to allow the application to use a mock server instead of a real server Feb 02 02:33:42 so I thought I would just create a "mock" build type which will mock the server Feb 02 02:34:02 but I guess it makes more sense to just expose this as a parameter Feb 02 02:34:15 to the library and the library will automatically pick it up Feb 02 02:34:21 good suggestion jug6ernaut Feb 02 02:34:22 thanks Feb 02 02:34:30 :) Feb 02 02:36:11 g00s im expecting more from android in the N release to better support the Pixel C Feb 02 02:37:03 i just don't see android being useful at that form factor Feb 02 02:37:09 whatever they do Feb 02 02:37:25 tend to agree Feb 02 02:37:33 the tablet market as a whole is pretty screwed, the N9 was not particularly successful AIUI, they would probably have been better to skip a year and go big on tablets next year, if they are actually working on it now Feb 02 02:37:51 i want a new nexus7 Feb 02 02:37:57 jug6ernaut yeah ! Feb 02 02:38:04 but anything bigger then that useless to me Feb 02 02:38:30 MAYBE nexus8, but 7" is where its at imo Feb 02 02:38:37 it's a little chunky, but the nvidia shield tab is similar sort of size, and pretty clean software Feb 02 02:38:40 and cheap... Feb 02 02:39:00 idky but i have never brought myself to consider it Feb 02 02:39:10 jug6ernaut n7 has pretty far bezel, they could probably put 8" screen in same size Feb 02 02:39:16 but i hope not 16:9 Feb 02 02:39:18 probably bc im still pissed nvidia hasnt made a new nvidia shield(the console) Feb 02 02:39:20 *fat Feb 02 02:39:35 g00s true true, pretty easily probably Feb 02 02:39:56 so long as its the same general size & lite Feb 02 02:40:03 jug6ernaut: I'm not sure why anyone would ever throw money at a Google TV project anymore Feb 02 02:40:05 are non-tablet form-factors gaining much, that anyone sees? Feb 02 02:40:07 I notice that a lot of libraries have a ".internal" package where they put their internal APIs. For example, I noticed retrofit, okhttp, gson etc. do the same thing. How do they make their "internal" package not accessible from the client? Feb 02 02:40:30 sleepster they don't - convention Feb 02 02:40:34 things like consoles / tv? Feb 02 02:40:50 Leeds Google TV? No idea, i mean google isnt even support it are they? Feb 02 02:40:54 I don’t get the impression those things have taken off. Feb 02 02:41:03 Google TV, Google TV 2 aka Android TV Feb 02 02:41:04 g00s: ah I see. so it's just up to the client to not access anything in internal Feb 02 02:41:13 yeah Feb 02 02:41:22 maybe jigsaw does something about that, not sure Feb 02 02:41:23 g00s: I thought maybe there were proguard tricks or annotations or something that made them hidden Feb 02 02:41:41 there's effectively only a single Android TV box on the market now, along with some (mostly Sony?) TVs with it built in Feb 02 02:41:43 google had their little nexus player, the hockey-puck shaped thing Feb 02 02:41:48 Leeds i was referring to this earlier http://ecx.images-amazon.com/images/I/61rpUV9K%2BtL._SL1000_.jpg Feb 02 02:42:11 ah. I didn’t know Sony made builtins. I should check those out. Feb 02 02:42:21 jug6ernaut: that's officially called the Shield Portable now :P Feb 02 02:42:32 bo lol Feb 02 02:42:40 it WAS the Nvidia Shield :P Feb 02 02:42:46 until...it wasnt Feb 02 02:42:47 :S Feb 02 02:43:18 yeah, it was, but then there was the shieldtv and shield tablet - and then the tablet k1, which led everyone to hope for a tab x1 Feb 02 02:44:16 i just want a new Nvidia shield portable* Feb 02 02:44:34 i need an ultimate portable emulator box Feb 02 02:44:53 doubt ital happen tho Feb 02 02:45:19 shield tab and controller? Feb 02 02:45:32 and a case to prop it up :) Feb 02 02:45:32 mehsauce Feb 02 02:46:03 I am planning to use retrofit but not sure if I should use 1.9 or 2.0-beta3 Feb 02 02:46:10 anyone know how stable the beta is? Feb 02 02:46:26 other than the shield there really aren’t people trying to do “serious” gaming for Android, that I know of. Feb 02 02:46:48 duboisj serious android gaming doesnt exist :P Feb 02 02:47:02 i havent used 2.x yet, so cant say Feb 02 02:47:29 what happened to Ouya? Feb 02 02:47:49 they went bankrupt then got bought by Razer Feb 02 02:47:50 with Parce dying tho i should really start working on divide.io again Feb 02 02:47:56 ouya lol Feb 02 02:47:57 oh, yeah. A co-worker bought one. I think it fizzled Feb 02 02:48:08 dat pun Feb 02 02:48:18 I've got one - I'm using it as a TV box, for which it works pretty well Feb 02 02:48:37 the controller ain't great for it, but once it's streaming you don't need to control much Feb 02 02:48:42 lol Feb 02 02:49:01 i need to install kodi on my firestick... Feb 02 02:49:26 do people writing games for Android ever just expect users to have a controller? That seems like one of the hardest nuts to crack, just the touchscreen input / form factor issues Feb 02 02:50:14 would seem like a bad assumption to me Feb 02 02:50:20 that's part of the point of the AndroidTV/Shield type stuff - in that environment you can assume/require a controller, but not for general-purpose devices Feb 02 02:50:32 The nexus player came with a controller, and I suppose you can connect a third-party one, but I’d doubt many people do Feb 02 02:50:48 i dont see the point Feb 02 02:50:58 if im gonna be connected to a tv Feb 02 02:51:03 i have a real console Feb 02 02:51:14 I have the shield tab, not not a controller - lots of Nvidia's promoted games require a controller Feb 02 02:52:20 ah, it says Samsung won’t make android TV devices any longer : now they’re using Tizen I guess. Feb 02 02:52:37 So it would just be legacy / old Android TV stuff from Samsung that a consumer might have Feb 02 02:52:57 I don't think Samsung ever shipped "AndroidTV[TM]" TVs, did they? Feb 02 02:53:32 ah Feb 02 02:53:33 and LG are still doing their WebOS-derived stuff Feb 02 02:53:45 * g00s hasnt watched TV since kid Feb 02 02:54:08 one of the problems is that it's too generic a term, there are lots of TV boxes running Android, but very few running "AndroidTV[TM]" Feb 02 02:55:04 particularly in this part of the world - I am being 100% serious when I say they are selling a US$50 Android TV box at the counter at 7-11 Feb 02 02:56:19 I think they're even throwing in some free ice-cream if you buy one... Feb 02 02:56:51 really. do you have any idea of the particular model? Feb 02 02:57:31 yeah, it's from LeTV - Chinese electronics brand who are making a push into streaming, and out of China Feb 02 02:58:10 there's some subscription service associated with it, I don't really know the details because it tends to be all in Chinese :) Feb 02 02:58:22 yeah, their web-site is that way ... **** ENDING LOGGING AT Tue Feb 02 02:59:58 2016