**** BEGIN LOGGING AT Sun May 31 02:59:59 2015 May 31 03:09:15 baam!! May 31 03:17:34 guys seriously now May 31 03:17:34 hello all May 31 03:17:59 it's just crazy how much boilerplate one has to write for android apps May 31 03:18:09 s/android apps/java/ May 31 03:18:37 take a look at this video.. this guys spends literally 4 minutes just copying and pasting boilerplate code: May 31 03:18:39 https://www.youtube.com/watch?v=apN6LIIeVwc May 31 03:18:49 there's gotta be a better way!! May 31 03:19:05 Every programming language is going to have a lot of boilerplate -.- May 31 03:19:32 well but some of them will have a lot less May 31 03:19:36 that's my point May 31 03:20:07 I already learned about Butter knife for view injection, that's nice May 31 03:20:16 but I'd like to go a step further May 31 03:21:10 say I need to create a fragment.. can I have the IDE to auto generate both the xml and the Fragment class Java file for me? May 31 03:21:26 Yes May 31 03:21:31 how? May 31 03:22:09 Right click your packge: new > Fragment > Fragment (Blank) or Fragment (List), etc May 31 03:22:13 I mean , I'd like to create them all at once May 31 03:22:27 not confirming each step along the way May 31 03:22:40 ok, now create the java... ok, now create the xml May 31 03:22:52 why can't it create both at once :P May 31 03:22:56 Does it not? May 31 03:23:24 i don't have it open right now. but will check. thanks for the tip May 31 03:23:31 JFlash: do u code using normal text editor and use command line tools ??? May 31 03:23:40 Android Studio May 31 03:24:19 How Android Studio generates a lot bunch of code when u create your first project ? May 31 03:24:54 JFlash: yes it does create the xml and java at the same time May 31 03:25:08 at least in Android Studio, I have no idea about eclipse May 31 03:25:18 ok, i just asked because it's not what happens on the video May 31 03:25:26 glad to know the world is not crazy :) May 31 03:26:15 JFlash: u dont even need to generate the code :P just use a lib and u r done :D hahaha May 31 03:26:18 data binding is going to make android coding a lot faster when it's fully released imo May 31 03:26:34 probably the best thing from Google IO May 31 03:26:51 gotta go, good night everyone May 31 03:26:57 hmm.. funny I think i missed that part? May 31 03:27:06 liuwenhao: indeed it will be (y) May 31 03:27:07 i did what the full android dev tools keynote thou May 31 03:28:30 do you guys think that the market for Android devs will shrwink now that you have 2 big frameworks that allow Javascript developers create native apps? May 31 03:29:37 JFlash: not really considering those frameworks not really create apps on par to native ones IMO May 31 03:29:43 JFlash: which frameworks are you talking about? (I haven’t seen I/O yet) May 31 03:29:46 just kinda packages everything up in a webview May 31 03:29:58 ventura: not even from IO, but phonegaps in one fo them May 31 03:30:02 a friend told me the fastest growing repository of native components is npm now. with several native components being posted every day ( of course they are written in javascript, but show up as native mobile components) May 31 03:30:16 i saw another yesterday that i gorget the name of May 31 03:30:22 no, i'm not talking about webviews at all May 31 03:30:33 DadFoundMy: Sencha and ExtJS? May 31 03:30:47 JFlash: which frameworks are you speaking of then? May 31 03:30:55 phonegaps is most deffinetly the most popular May 31 03:31:07 you can now target native java & iOS (cocoa) components from the embeded js runtime May 31 03:31:39 DadFoundMy, Telerik's NativeScript and Facebook's Reactive Native May 31 03:31:51 nah. those just mean you have to understand both native _and_ javascript to do a good job. May 31 03:32:10 DadFoundMy, JFlash: if they are running in a WebView, it will always be slower than native code due the VM May 31 03:32:45 it's not web view. it's native components! May 31 03:33:00 JFlash: according to this thread its slowww http://www.reddit.com/r/javascript/comments/2y1oqi/nativescript_build_truly_native_apps_with/ May 31 03:33:19 even the sample app is 35mb! May 31 03:34:31 interesting, will have to check it out, dont remember the details for Android May 31 03:35:14 if it's slow, why is facebook converting all their apps to use Facebook React? May 31 03:35:38 well facebook itself isnt the fastest app May 31 03:35:38 unless a base scripting language created, and parsed to all variable languages for variable device support, speed may not be possible. May 31 03:35:47 but yeah, not sure about NativeScript from telerick May 31 03:35:49 maybe to get around their 65k issues? May 31 03:36:09 JFlash: to be fair i did only look at native script May 31 03:36:17 I tried to build a couple of iOS sample apps with it and I was very happy with the results May 31 03:36:42 facebook seems to spend an _enormous_ amount of time making some really amazing things so they can continue to slowly make a fairly bad app. May 31 03:36:58 groxx: agreed May 31 03:37:09 such a shitty fucking app. I use tinfoil for facebook now May 31 03:37:19 ha, I just found that a couple weeks ago. love the idea :) May 31 03:37:27 the only good thing i have to say about it is that it has a toooon of features May 31 03:37:40 if I used facebook, it would be my app of choice, I think :) May 31 03:37:46 their mobile site is quite reasonabl May 31 03:37:46 'bad app' is relative. is 'bad' an app that millions of users install and come back to evry day? May 31 03:38:10 and that a lot of companies tried to compete and failed or got bought? May 31 03:38:10 JFlash: trust me, they're not coming coming back for the app quality May 31 03:38:23 I would not mind to have that kind of a bad app :) May 31 03:38:26 JFlash: facebook does not only exist on android... May 31 03:38:29 "content is king" and all. their contacts are on it, therefore they are. May 31 03:38:44 groxx: ding ding ding May 31 03:38:57 i only use facebook for a club i am in charge of at school May 31 03:39:08 only really go on it once a week so tinfoil is perfect May 31 03:39:12 facebook could remove _all_ their mobile stuff. apps, website, etc. and people would just sign into the desktop website on their phone, and grin and bear the slow scrolling. May 31 03:39:21 well if 'content is king ' is enought, why the have to fully remake their app throwing away evrything they got before? May 31 03:39:31 a few years ago everyone was on it at school but deffinetly not anymore. seems like everyone is on twitter or nothing at all May 31 03:39:35 i think you are oversimplifying things May 31 03:39:42 of course both things play a factor May 31 03:39:56 because their good engineers are busy building more interesting stuff that allows their tons of bad engineers to produce _somewhat reasonable_ results, like the website and mobile apps. May 31 03:40:17 JFlash: how can you possibly think the app is well made, and not a slow piece of garbage? May 31 03:40:26 they have a post on their engineering blog where they talk about the engineering challenges with their mobile app. I found it an interesting read May 31 03:40:42 compare it to the g+ app and they are years apart. obviously g+ has it's own issues but thats another story haha May 31 03:40:47 oh yeah, they have some brilliant people working there May 31 03:41:01 JFlash: they have some great engineers that aren't making a great product May 31 03:41:05 like the 65k VM hack they did. fascinating! shits all over every other process! May 31 03:41:18 i am wondering if google will addopt another language to android May 31 03:41:20 i still cant believe the 65k hack May 31 03:41:24 DadFoundMy, haven't tried g+. thanks for the info, will try and compare them some day May 31 03:41:25 ventura: i doubt it May 31 03:41:26 and it never would've been necessary if they'd keep a rein on their code. May 31 03:41:38 granted, it's a complex app. 65k methods is still a lot. May 31 03:41:41 ventura: it's been talked about for a while but i just dont see it ever happening May 31 03:41:50 swift is impressivelly faster for compiling in xcode May 31 03:42:11 JFlash: whats your base point ??? what u want to convay here? May 31 03:42:13 objective-c is such a joke to look at. swift is a godsend for those guys May 31 03:42:28 heh May 31 03:42:39 g+ has reasons to try a lot harder thou, as they are playing catch up with the leader. which brings us back to your initial point about content, so I will grant you that one :) May 31 03:42:42 also apple devs are kind of crazy May 31 03:43:05 my buddy who writes all of our ios apps was telling me swift is so great becasue he spends less time pressing the ';' key May 31 03:43:18 well, obj-c has categories (very nearly open classes) that lets you do a lot of things you wish you could do in Java. and ARC makes refcounted memory _amazingly_ easy. May 31 03:43:25 not even saving time on missing ;, but saving time htting the button May 31 03:43:44 called apple genius's and revolutionary for that change until i showed him python May 31 03:44:06 groxx: What kind of thing can you do with categories you can't in Java? May 31 03:44:11 t2mkn, i was just making conversation on how new development frameworks will affect the marketing for Java Android devs in the comming years. Just making conversation, sorry if I annoy you :) May 31 03:44:13 mixins May 31 03:44:13 Python (y) yaaaaaaaa..... May 31 03:44:57 DadFoundMy, agreed on Objective-C. would never touch that in a million years May 31 03:45:21 I think IOS development may be the most affected by these new frameworks May 31 03:45:35 JFlash: do devs need marketing. if java goes off, we pick some other. its the devs who decide where to go :D May 31 03:45:41 m i wrong ? May 31 03:45:49 CedricBeust: also, you can add methods to classes, and get compile-time safety on their existence. Java has WhateverUtils.doThing(withThing), objC has thing.do(). May 31 03:46:09 if you write an app in phonegaps do you still need to go through all the bullshit apple stuff like buying an iphone, and mac? May 31 03:46:10 groxx: Yes extension methods is pretty much the #1 and only use case IMO May 31 03:46:20 which are pretty nice May 31 03:46:25 Yes May 31 03:47:17 objc is a slightly annoying language that has become a lot more reasonable since they got @[] and @{} and @5 object-literals, and dot-notation for message passing. and ARC is just amazing. May 31 03:48:09 beyond that, it's... quirky. not much worse than other languages, except for their weird insistence that "id thing = typeReturningThing()" is better than "Type thing = typeReturningThing()" for some type-inference purposes. May 31 03:48:22 t2mkn, sometimes it's a quite a burden on the developer to be forced to pick up yet another development stack thou. I'm facing this myself right now. :/ May 31 03:49:40 t2mkn, in my case the worst part was not being sure which direction to go. It took me a while until I settled with Java for Android May 31 03:49:43 Soooo what's the best way to work with analytics in an app? I'm going to be putting out my first app soon. May 31 03:50:09 t0astt: depends on what you want. and/or do you mean (google) Analytics, or analytics-the-concept? May 31 03:50:20 Google Analytics, I suppose May 31 03:50:36 JFlash: for android dev. java+xml+c is just perfect. why to go any where else. May 31 03:51:17 all others like use javascript, or some other scripting langauge to generate a multiplatform app. all that are just crap. May 31 03:51:38 t2mkn, well for starters.. you are throwing out 50% of the market right there, right? :) May 31 03:51:39 they will seourly have some loose holes, where u have to switch back to java May 31 03:51:47 so maybe not so obvious :( May 31 03:51:48 May 31 03:52:29 Is there a way to reset the Toolbar position modified by the CoordinatorLayout? May 31 03:52:51 t2mkn, mobile market I mean. because it' hard to target iOS with that. Haven't heard about RoboVM untill recently and to this day I don't know if it's viable for non-gamish apps May 31 03:52:53 what is a market. the market is what we dev create. its not created by any one else. May 31 03:54:03 t2mkn, in some job markets companies prefer to hire devs that can develop for both iOS and android, to cut on development costs May 31 03:54:04 say we dev, some day decide not to write any app in any other language other then Java. even Apple will some day switch to Java :D May 31 03:55:03 t2mkn, so cross platform workflows are atractive if you are trying for a first break up May 31 03:55:13 JFlash: dont work for such companies, who ever force u work on different languages at a time. May 31 03:55:45 yes, they are alternatives May 31 03:55:46 ehe, it's not like I can choose jobs right now . I'm no longer in my parents house :) May 31 03:56:24 (y) May 31 03:57:17 how do i call methods on a fragment? i have a pager view with 2 tabs and a refresh button in my action bar May 31 03:57:46 so i have MyActivity and FirstFragment and SecondFragment and when the refresh button is pressed, it should refresh the data shown in whatever tab is selected May 31 03:57:51 aspire, EventBus May 31 03:58:18 im not talking about refreshing ui, each fragment shows diff pieces of data May 31 03:59:29 EventBus :) May 31 03:59:59 o May 31 04:01:23 do you guys recommend replacing View interfaces for the Presenter completely with posted events? May 31 04:03:04 man this last chrome for desktop has been a crashing disaster May 31 04:04:54 man after reading this https://medium.com/google-developers/developing-for-android-ii-bb9a51f8c8b9 May 31 04:05:02 i wonder what they would think of my usage of rxjava May 31 04:05:57 ooh, a second one May 31 04:06:03 I still have to read the first :| May 31 04:11:03 anyone had a look at the design support lib yet? and/or source? any thoughts? I'm still working through the IO videos, but eventually I've got reading to do :| May 31 04:11:24 groxx did you see http://android-developers.blogspot.com/2015/05/android-design-support-library.html May 31 04:11:31 yep May 31 04:11:38 i have to perform a lengthy operation but i dont want to lag my app but it will also update the ui May 31 04:11:43 do i use a handler for this? May 31 04:11:50 g00s: also https://www.youtube.com/watch?v=32i7ot0y78U May 31 04:12:11 thanks for the link May 31 04:12:39 what where the top 3 things for android devs from IO, you guys think? May 31 04:13:20 aspire: as the thing that transfers data/messages to your main thread: probably. handlers are simple and 100% reliable, I like 'em. May 31 04:13:53 permissions, new support libs, maybe the new gcm stuff? May 31 04:14:45 wh00t! it suppots all the way back to v7??? May 31 04:15:42 that's the claim, yeah. which is pretty fantabulous May 31 04:15:58 groxx, i'm looking at this suggestion and it says to create a handler on the ui thread May 31 04:16:05 and just use Handler#post to update the ui from a different thread May 31 04:16:06 I'm curious how they achieved the v7 stuff. May 31 04:16:20 i'm going to give it a shot May 31 04:16:53 never heard of snackbars before... looks yummy May 31 04:17:55 after toasts, breakcrumbs and croutons, its was like, ah, yah, ok May 31 04:18:18 i dont think cruotons were official, somebody else termed that May 31 04:18:23 i think cyril mottier May 31 04:18:36 never heard of croutons either May 31 04:19:25 hi. i was wondering when i press button "Publish app" in google play console it will be available in google play store right away? May 31 04:19:39 rad182 takes a little while May 31 04:19:55 what will be the max time? May 31 04:21:26 HttpURLConnection#getContentLength is returning -1 on Android and not on my machine. What is going on? http://pastebin.com/f8ZAnH7A May 31 04:25:39 hm. internet problems. sorry about the delay aspire :| May 31 04:26:51 Is there a way to show an item (like a button) in one relative layout at exactly the same position in another relative layout. I mean exactly one on top of another? May 31 04:26:53 surf2b1, are you using Stetho to debug ? May 31 04:27:00 aspire: in case it didn't go through before: I'll just recommend never using "new Handler()", always "new Handler(Looper.getMainLooper())" or some other explicit looper. otherwise it implicitly picks up whatever thread it's created on, which isn't always what you want. better to be explicit May 31 04:27:08 surf2b1, maybe it could help you find the problem May 31 04:27:14 Alternatively, is it possible to have a translucent background with a transparent hole in it? May 31 04:27:46 JFlash: first time hearing about Stetho. May 31 04:28:23 it lets you debug yr android network calls on chrome May 31 04:28:37 desktop chrome I mean May 31 04:29:15 cool. checking it out now May 31 04:30:02 Essentially what I am trying to do is that I want to have a black translucent activity on top of my other activity with just one item focused on that looks bright. May 31 04:31:27 In other words I want to make the rest of my activity go dark and leave just one button unaffected (Not dark). May 31 04:32:51 archilius, not much activity here during these late hours, I'm afraid :( May 31 04:34:48 it's rare that I enjoy a dev video with humor, but I'm really liking this one :) https://www.youtube.com/watch?v=d5_6yHixpsQ May 31 04:34:51 JFlash: figured it why it was returning -1 on Android. Thanks for pointing me to Stetho though :) May 31 04:35:02 no worries groxx and no it didn't go through - i do the new Handler() because i don't know what a looper is haha May 31 04:35:13 JFlash Oh. Then maybe I will try again later. Thanks. BTW in my part off the world it's morning. May 31 04:35:18 surf2b1, glad to hear. ur welcome May 31 04:35:39 Handler requires Looper which is a (thing in a) thread that loops on a blocking MessageQueue. May 31 04:35:58 archilius, what are you doing the wrong part of the world? May 31 04:35:59 and if there is no looper? May 31 04:36:07 archilius, relative layout items are drawn top to bottom, so view1,view2,view3; view3 is drawn ontop of the other 2, so you can have a view that is full screen that is hidden and when you want it you can set it visible and have it cover other views below it May 31 04:36:13 aspire: then it runs synchronously, iirc May 31 04:36:25 you'll get a runtime error, afaik May 31 04:36:36 that would be preferable. could be, I can't remember :| May 31 04:36:43 groxx, looks like it uses Looper.myLooper() May 31 04:36:53 mLooper = Looper.myLooper(); May 31 04:36:56 which can be null, if your thread doesn't have a looper May 31 04:37:15 oh indeed May 31 04:37:21 "looper: must not be null" yeah, so probably a runtime exception May 31 04:37:57 yeah May 31 04:38:05 mhmm ok ill pass in the main looper thanks May 31 04:38:49 being explicit about it also makes it clear when you read it later :) in such a low level thing, I'm kinda surprised it has _any_ default behavior. May 31 04:40:35 would have been nice if google had a Android session on RecyclerView May 31 04:40:39 lame, simply lame May 31 04:40:53 i remember when Romain did "World of Listview" May 31 04:41:07 somebody should have done "World of RecyclerView" May 31 04:41:25 especially since its like 10x more complicated May 31 04:48:38 g00s: is the source for the io app open now? May 31 04:48:48 thepoosh doesn't look like it May 31 04:48:51 yet May 31 04:49:06 was there anything worth going over? May 31 04:49:12 didn't really follow it May 31 04:49:55 it looks pretty plain jane, at no point was i like "wow, i wonder how they did that" May 31 04:50:09 iosched that is May 31 04:51:14 is it on github? May 31 04:53:08 yeah, I suspect more of the wows are in the design library. May 31 04:53:14 at least, for view people May 31 04:53:25 groxx there is that square cheese thing May 31 04:54:09 https://github.com/chrisbanes/cheesesquare May 31 04:56:58 OK, that speeding up websites thing is worth watching for anyone who does presentations. fast, useful, amusing. one of the best I've seen in quite a while. May 31 04:59:54 hm. the worst part of apps is that they're often less useful than their accompanying website. e.g. the github app doesn't show anything while logged off, and can't load gists. May 31 05:00:26 and no bookmarks! bookmarks are frickin amazing! why aren't they everywhere?! May 31 05:02:06 g00s: ah, cool. thanks, I haven't seen that before May 31 05:11:23 hmmm "If your goal is to have a background process that can run independently of a heavy-weight UI process, it can't have dependencies on content providers or services that execute in the UI process." May 31 05:11:53 caveat emptor May 31 05:13:59 content providers are on a different thread, IIRC? May 31 05:14:22 and services, yeah, but they shouldn't be doing anything major on the main thread either May 31 05:15:46 groxx reading http://developer.android.com/training/articles/memory.html May 31 05:15:53 "Use multiple processes" May 31 05:16:07 tons of gotchas May 31 05:19:39 ooh. "ui process". yeah, don't split processes stupidly. May 31 05:34:47 canvs2321- but what if the activity is already there. And I have to build on top of it in another activity? May 31 05:36:08 canvs2321- the thing is like this... I have an activity with a rel layout. I have to build another activity that makes all but one item in that layout go dark. I need some hint as to how I can go about doing that. May 31 05:48:17 Hi all, I have a quick question. Should I be putting a 'restore purchase' button in my app, or is that functionality handled by the billing library these days? May 31 05:48:39 I only have one in app purchase, an upgrade from free to paid May 31 05:52:11 has anyone had issues after implementing the Navigation Drawer pattern with CoordinatorLayout and AppBarLayout? May 31 05:53:05 the problem I've encountered is in resetting the Toolbar position after switching to a new section (Fragment) via the NavigationView. May 31 05:54:23 If one has scrolled in a Fragment consisting of a ScrollingView which has caused the Toolbar to go under the status bar, changing the Fragment at that moment will not cause any changes to the Toolbar, which obviously should be the case. May 31 05:54:41 However, the Toolbar position needs to be reset, how can this be achieved? May 31 06:00:30 i'd wait 5 or 6 months for the bugs to be fixed May 31 06:01:32 razzledazzle or see if chris did it differently https://github.com/chrisbanes/cheesesquare May 31 06:03:49 g00s: I don't think that's a bug, just need a proper way to reset the position. And yes, the example misses out on many things. May 31 06:12:54 archilius, seems bad practice to try to layer activity on top of another activity just for a visual overlay. are you trying to do a tutorial or something? seems there are better methods May 31 06:15:48 razzledazzle, do you not have access to resetting the toolbar upon loading a new fragment? or atleast checking visible position? May 31 06:17:16 canvs2321- is for a personal project. Can you tell me some method to do this? Like a hint or something? May 31 06:19:43 what are you trying todo, just a how-to of how to use ur app? what is the purpose of the activity ontop of another activity? May 31 06:20:14 canvs2321-: well, the DrawerLayout has the DrawerToggle listener setup at the Activity which also requires the Toolbar, so having individual Toolbar per Fragment doesn't seem to be the option here, or is there another way to do this? May 31 06:20:52 razzledazzle, i'm saying can't you call back to your activity from your fragment to check the position of the toolbar May 31 06:29:12 * archilius face palms himself for slow Internet and repeated disconnections causing him to miss valuable answers if any. May 31 06:30:12 canvs2321-: I don't know what property of the Toolbar to query, the Toolbar is contained by the AppBarLayout as well, so many things going on May 31 07:14:07 posted a question: http://stackoverflow.com/questions/30554824/how-to-reset-the-toolbar-position-controlled-by-the-coordinatorlayout May 31 07:37:30 hey, i'm trying to make live wallpaper with the current playing music but am really struggling to get the current track May 31 07:37:39 this stackoverflow shows how to listen for changes May 31 07:37:39 http://stackoverflow.com/questions/10510292/track-info-of-currently-playing-music May 31 07:37:46 but not the current one May 31 07:37:50 anyone have any idea? May 31 08:12:45 ceephax: No official way to get the current track because there are so many apps to play music. Maybe for the bigger music apps you can if they send a global broadcast message.. May 31 09:00:31 hey everyone May 31 09:00:41 hey NetworkingPro May 31 09:01:05 If Im wanting to symlink a binary in /system/xbin so that It can be used anywhere any idea where I would symlink tha tto? May 31 09:01:16 Since Android doesn't really have a /home structure.. May 31 09:01:22 Such as how busybox does it? May 31 09:01:29 how are ya Sculptor ? May 31 09:01:49 not bad, thanks. it's 11am. time to get up and have a breakfast May 31 09:01:57 lol May 31 09:02:00 4 AM here :) May 31 09:02:43 any ideas on the symlink question by chance Sculptor ? :) May 31 09:03:37 nah May 31 09:06:09 well thanks anyway May 31 09:06:14 this is my last stumper. May 31 10:55:04 What is the equivalent of the support code on iOS for Android? May 31 10:55:41 What's a support code? May 31 10:56:20 A code that you enter in the iOS settings that enables certain features in the app that are only used for development but not for the released version. May 31 10:58:25 Basically a way to develop your app by changing a setting somewhere without changing the source code every time. May 31 10:58:34 Is there such a feature on Android? May 31 11:01:54 Mavrik: ^ May 31 11:02:36 huh May 31 11:02:46 I guess that's an app specific feature? May 31 11:03:21 I would believe a number of apps have certain features locked by default. On iOS you could use such a code to disable them to make development easier. May 31 11:06:17 I guess BuildConfig.Debug would be an option. May 31 12:18:22 What should I use to have my user be able to enter something, but have to chose from a list that is similar to the what they entered? :) May 31 12:18:37 like, when you're chosing a contact person when text messasing May 31 12:18:41 messaging* May 31 12:19:12 I want it to be drop-down "suggestions" May 31 12:20:06 i wan to upload a video to youtube how can i do that May 31 12:23:44 Can I attach an "attribute" to an item in a spinner? May 31 12:52:11 Hello. Is there any way to show two fields in preferences if switchpreference is true? May 31 13:21:08 guys, question. To be able to seach a SQL database with SearchView do I really need a FTS3 Virtual table or I can do it with a normal db too? May 31 13:21:38 xelent: call the isChecked(); method. and setChecked(); to change the switch yourself May 31 13:24:24 Vercinger: sounds like you want to use a AutoCompleteTextView it shows a drop down like a spinner with a list of items. there is also MultiAutoCompleteTextView which works similar but only on a sub-string rather than the entire content. these are also in AppCompat May 31 13:25:01 luci1093: SearchView has nothing to do with searching the database May 31 13:25:21 so I can't use it to search in one? May 31 13:25:23 luci1093: its just a view with a few nice properies and x button and search icon May 31 13:25:32 *properties May 31 13:26:24 luci1093: you could use SearchView as your input yes. but it doesnt connect to a database for you.. you need to put that code in. Tell the searchView what the results are to display. May 31 13:27:00 luci1093: so to answer your original question, FTS3 might be required if thats what you want May 31 13:28:09 so to pretty much make a search in my db I have to get the text input from the SearchView and then search my db right? May 31 13:30:19 yes May 31 13:30:50 if you want to do a full-text search rather than on a specific field or set of fields then you'll want FTS3 May 31 13:31:11 but to be honest I would use FTS3 anyway. its probably more effective and efficient. May 31 13:32:24 luci1093: ^ May 31 13:34:36 yes, I'll implement FTS3 too, but I want to see it work with a normal db first. Oh and I'm only interested in one of the columns for now May 31 13:37:38 luci1093: no need for FTS3. just add an index for that column May 31 13:43:29 Napalm, hello May 31 13:43:37 hello May 31 13:44:20 Napalm, any ideas (about last day question)? May 31 13:45:59 cant even remember what it was May 31 13:46:03 cristian_c: ^ May 31 13:46:28 Napalm, you've asked me to paste xml files May 31 13:49:37 Napalm, and i've pasted them May 31 13:49:53 Napalm, I've to fix parameters for an app widget May 31 13:52:50 hey May 31 13:53:00 Napalm, how have i to fix these parameters to display the widget properly? May 31 14:38:48 Can I attach an "attribute" to an item in a spinner? May 31 14:39:28 so if a user selects it, it's "passed on" to my function etc., but I they can't see it.. May 31 14:40:22 well, yes May 31 14:40:24 with a custom adapter May 31 14:40:56 you can hack it with view tags, but proper way is to make an adapter that has an object with all required attributes you need for an entry May 31 14:41:12 and then getView() just binds text from it, and getItem() is used to get everything else May 31 14:41:16 pretty much the same as in listView May 31 14:43:06 hi. i'm creatig a gridvew menu. I'm reading the strings that belongs to each button from the strings xml file. The problem is the order. i want them in a specific order by using xml. Someone has some suggestions? May 31 14:44:13 i'm reading them with R.string.class.getFields(); May 31 14:44:31 Hello is there a method to check if user are logged in to FaceBook? I can't seem to find anything usefull inside facebook-sdk-android documentation. May 31 14:51:52 Datasmurfen: of course there is May 31 14:55:09 Datasmurfen, that's a bit of a hard question. Logged in where, in the Facebook app? May 31 14:58:04 why would getActionBar() return null? May 31 14:59:30 Yea I have implementd the facebook sdk and login button. I want user to skip login class if they are allreday logged in May 31 14:59:58 Yes with the facebook app, or just username/pw. May 31 15:01:03 thanks for the answer Mavrik :) May 31 15:01:25 I have searched stackoverflow, but with no luck so far gdrc and mavick. I opened this question: stackoverflow.com/questions/12402775/android-facebook-sdk-check-if-the-user-is-logged-in-or-not May 31 15:01:50 Datasmurfen, you need to store the session May 31 15:01:57 that is, the session token you got as part of login May 31 15:02:05 and check if it's still valid May 31 15:02:17 It's been awhile since I used the SDK though, so can't tell you more details -_- May 31 15:03:55 TacticalJoke: here? May 31 15:04:35 Datasmurfen: look at tinder, you must login with facebook. if you are logged in the facebook app, it logs in. May 31 15:06:08 Yar. May 31 15:06:55 I have an ImageView with onTouch listener. In ImageView I have a bitmap that is scaled by my phone by a factor or 1.5. I have left/right/up/down navigation and stale type set to center for my image. Anyhow onTouch gives me X,Y coordinates of each on-screen touch I need to take these X,Y and map them to X,Y on the image. May 31 15:07:51 Right now I use int x = (int)(event.getX() * ((double) bitmap.getWidth() / (double) imageView.getWidth())); May 31 15:08:04 But with this I get some deviation upto 150px May 31 15:08:27 Hey all, I'm getting an error that "aidl is missing" on my app's build step, and after digging around, I can't seem to find out how to fix it. Online it says to make sure I have the proper sdk installed, but what is the proper sdk for my project? May 31 15:10:18 thepoosh: Who were you? What did you see?! May 31 15:16:32 hi all May 31 15:16:34 here https://developers.google.com/identity/toolkit/android/quickstart May 31 15:17:11 in the next steps section the links are dead May 31 15:17:31 gdrc yea i looked on that. I have a SplashScreen -> login -> MainActivity activity. The reason because I ask is logged in or not i allways end up at the login screen (With the option to log in or out. ) - Therefore i need something like a transfer to Main if loggd in. Right now i have to log out and log back in to be able to go top MainActivity. May 31 15:17:45 it is a quickstarter to the server toolkit identity May 31 15:17:58 any ideia how can I reach that info? May 31 15:20:46 TacticalJoke: I saw horror May 31 15:20:48 ]and hell May 31 15:20:54 (heck for us jews) May 31 15:21:29 wanna hear how bad it was? May 31 15:21:40 http://stackoverflow.com/questions/30559083/imageview-x-y-ontouch-coordinates-on-bitmap Anyone able to help with this ? May 31 15:22:31 neredsenvy: what's wrong with mImageView.getWidth()? May 31 15:22:39 and getHeight() May 31 15:22:43 neredsenvy, http://stackoverflow.com/a/4934840/1373568 May 31 15:22:43 and then calculate May 31 15:22:49 search prior to ask May 31 15:22:54 you probably just miss the offset May 31 15:23:11 mapping coordinates on a scaled image is not even specific to android May 31 15:25:13 adq, I'll try it out, I tried applying the scaling factor to my x & y but still deviation I'll try the linked approach now. May 31 15:25:42 you can also use a matrix (just below), many ways May 31 15:26:39 I'd have to look up a tutorial on that May 31 15:28:04 so I'm guessing build errors aren't fun topics today? May 31 15:30:40 I'm trying to get through my first build of a project and it seems like every time I fix one error, another pops up. Can someone explain which Build Tools version I should be using with API 10? It seems like using 23.0.0rc1 fails on aidl on my mac, and now I'm getting missing resource errors using 22.0.1. May 31 15:31:04 I'm not sure what the build tools have anything to do with the process by the way. any explainations are welcome May 31 15:37:49 thepoosh: You saw horror? May 31 15:39:28 TacticalJoke: we had a BroadcastReceiver for CONNECTION_CHANGED events May 31 15:39:29 what's the difference between compileSdkVersion and defaultConfig's minSdkVersion? setting my compile version to 22 seemed to fix all my errors. May 31 15:39:40 in the build.gradle ^^^ May 31 15:39:50 and we acquired wakelock for 30 seconds every time that happened May 31 15:39:53 AHHHHHHH May 31 15:40:13 umib0zu: why not use targetSdk? May 31 15:40:36 minSdk is how low do you support May 31 15:40:44 Doh! May 31 15:40:50 thepoosh no idea. first time building May 31 15:40:59 meaning, you cannot simply use APIs that are not supported by your minSdk May 31 15:41:10 TacticalJoke: JIRA ticket created! May 31 15:41:20 fixVersion = next_version! May 31 15:41:25 which is GLaDOS 2.1 May 31 15:41:32 because our versions are awesome! May 31 15:41:59 I was running into issues with this http://stackoverflow.com/questions/30506406/aidl-is-missing-android-studio but it seemed like after making the change in the lead answer, I needed to Synchronize again. May 31 15:42:35 adq The linked example did not solve the dilemma originalImageOffsetX gives screen related numbers not image May 31 15:43:12 umib0zu: of course, after changing stuff in your project, you need to synchronize May 31 15:43:15 that is normal May 31 15:43:28 neredsenvy, i think you need to understand what you are doing, maybe add some log event to dump the values versus the scaled one May 31 15:43:31 cause it's really trivial May 31 15:43:38 adq, Did not help me originalImageOffsetX & Y are not correct May 31 15:43:50 and be sure to apply your touchlistener to the imageview May 31 15:43:54 not a global one May 31 15:43:57 (just in case) May 31 15:45:37 I have that. May 31 15:45:57 I guess I should look for a tutorial on Matrix see how I can use it to solve this. May 31 16:07:29 Im getting a NPE in the line with the breakpoint. But as you can see on the pic ( Here > http://i.imgur.com/Hs57AAh.png ) all values are not null - except a var which is zero but thats an acceptable value I think. May 31 16:10:11 Plus if I change the super to super(items, context, mIdOfHour); then AS gives me an error asking to permute arguments ! May 31 16:10:34 gottaGO: The stack trace will tell you where the NPE really is. May 31 16:11:34 stack trace gives only the line not which item is null TacticalJoke May 31 16:11:58 http://pastebin.com/VmDYVpJr May 31 16:13:40 which line is 28 in your detailsadapter May 31 16:15:00 super(context, R.layout.listview_item_row, items); May 31 16:15:45 show your code creating your adapter, where you pass your context your items etc May 31 16:16:33 canvs2321-, http://pastebin.com/jjHEWy8K May 31 16:17:02 `getActivity()` is probably returning null. May 31 16:17:08 Try `Log.i`. May 31 16:17:30 getActivity() will return null before onAttach May 31 16:17:32 what is tvn7? May 31 16:17:38 and sometimes before onStart May 31 16:17:44 Actually, it wasn't null in your screenshot. Never mind. May 31 16:18:06 canvs2321-, public List tvn7; May 31 16:18:33 nothing is null in my screenshot thats why I cant understand where is the problem May 31 16:18:54 gottaGO: Which Android version is the device running? May 31 16:18:59 19 May 31 16:19:11 api 19, android 4.4.something ? May 31 16:19:13 TacticalJoke: why are you saying getActivity() is not null? May 31 16:19:25 if he's creating this in the onCreate it might be May 31 16:19:29 yeap 4.4.4 May 31 16:19:38 also tvn might be null May 31 16:19:47 tvn7 May 31 16:19:56 gottaGO: that is one crappy var name May 31 16:20:15 It has to be `context`: https://android.googlesource.com/platform/frameworks/base/+/kitkat-release/core/java/android/widget/ArrayAdapter.java#310 May 31 16:20:17 here https://github.com/android/platform_frameworks_base/blob/master/core/java/android/widget/ArrayAdapter.java line 310 is context May 31 16:20:21 haha May 31 16:20:48 im on a ListFragment implementing retrofit's Callback. The code is in onSuccess May 31 16:20:51 thepoosh: He showed a debugging in screenshot in which `context` wasn't null: http://i.imgur.com/Hs57AAh.png May 31 16:21:27 hmmm May 31 16:21:29 Then again, that screenshot implies that it didn't throw an NPE at all. May 31 16:21:40 are you saying because of the if the comment? May 31 16:21:46 that doesn't prove anything May 31 16:21:56 and as the source shows, it must be the context May 31 16:24:10 ok here is most of the source code : http://pastebin.com/jjH4p1aK May 31 16:24:54 Try `Log.i("Whatever", "Activity: " + getActivity());`. May 31 16:25:06 where *secret* is the url i removed May 31 16:25:19 See whether "Activity: null" correlates with an NPE. May 31 16:25:28 Does someone know how to make the SDK manager not auto select al of the system images? I don't want to install them and I have to deselect them every time. I'm using the standalone SDK manager because if I use the one in AS I cannot edit my files in the meantime. https://i.imgur.com/fKDyznT.png May 31 16:26:27 TacticalJoke, yeap activity is null :( May 31 16:29:50 I guess `success` is happening before `onAttach` or after `onDetach`. May 31 16:30:10 Muchoz, click the "Update" or "None" link? May 31 16:31:16 Mavrik, there is no "None". And I don't want to download 3 gigs of data right now or waste that space on my SSD because I'll never use those images. May 31 16:31:39 TacticalJoke, should i move my executeService in another callback method of the fragment ? May 31 16:34:03 I guess this is your question: https://github.com/square/retrofit/issues/367 May 31 16:34:30 thank you! May 31 16:34:52 I presume that refers to Fragment.isDetached. May 31 16:37:20 If you wanted to be nosy, you could Log.i onAttach, onDetach, and success. May 31 16:37:34 I presume onDetach is happening before success. May 31 16:38:05 does anyone else find that AS becomes unresponsive when u maximize it from taskbar? May 31 16:38:32 FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET is deprecated for FLAG_ACTIVITY_NEW_DOCUMENT. what happens if I use this flag on old api versions? will it get ignored? May 31 16:39:39 deprecated still means working, no? May 31 16:39:47 yes but just wondering :) May 31 16:40:01 coo May 31 16:40:29 They have the same value May 31 16:40:58 mind blown May 31 16:41:02 oh. so I can just use the new one? like fill_parent and match_parent May 31 16:41:14 TIL May 31 16:41:15 thx May 31 16:41:32 TacticalJoke, I checked for getActivity() == null both onAttach and onDetach. Neither of them is null :( May 31 16:41:54 you have a onActivityCreated method :o May 31 16:42:01 I just meant "check the order of calls". May 31 16:42:13 oh ok May 31 16:42:15 It's probably onAttach -> onDetach -> success. May 31 16:42:20 At least sometimes. May 31 16:43:29 it is May 31 16:44:32 Muchoz, but there is "Deselect all" May 31 16:44:35 not clear enough? :) May 31 16:44:52 Mavrik, ah yes I'm blind May 31 16:45:03 (that UI is stupid tho) May 31 16:45:35 hello May 31 16:46:10 if I hire someone from a freelance website to redesign the UI of my app, how much do you think will it cost? May 31 16:46:16 it's a basic card game. May 31 16:47:15 many goats May 31 16:47:36 it's just the UI though May 31 16:49:51 the most annoying and time-consuming part :p May 31 16:50:42 I'm having an issue with using Google Play Services May 31 16:50:43 https://gist.github.com/kaendfinger/3351ad88d6aa60a5f344 May 31 16:50:55 That's the error May 31 16:50:58 and this is the code May 31 16:51:00 https://github.com/IOT-DSA/dslink-java-android May 31 16:51:37 people love reading whole github projects May 31 16:51:50 lol sorry May 31 16:51:57 kaendfinger, have you tried the typical stuff? turning it on/off, invalidation cache, rebuilding May 31 16:52:06 turning incremental builds off May 31 16:52:33 I did yes, let me retry. I have ran the clean task, I've even deleted my .gradle and retried May 31 16:52:36 https://github.com/IOT-DSA/dslink-java-android/blob/master/common/build.gradle May 31 16:52:42 [...]com.google.android.gms/play-services/7.5.0/jars/classes.jar (No such file or directory) May 31 16:52:43 This the is build.grade that seems to cause the issue May 31 16:53:01 did you have play-services 7.5? (cf sdk manager, maybe replace by the one you have) May 31 16:53:13 Yes, I do. May 31 16:53:24 kaendfinger, also the repository? because thats what gradle needs May 31 16:53:35 http://cl.ly/image/0n2A202y3J1i/Image%202015-05-31%20at%2012.53.28%20PM.png May 31 16:53:43 Yes May 31 16:54:09 is your sdk path set properly? May 31 16:54:17 Yes, I will double check though May 31 16:54:19 ah wait May 31 16:54:38 remove line 30 and 31 from build.gradle May 31 16:54:55 Ok May 31 16:54:56 they will result in the same jars being included multiple times May 31 16:55:10 because fitness, wearable, locattion autoinclude base May 31 16:55:28 I think i remember someone who hat that issue solved by removing them May 31 16:55:42 Ok May 31 16:56:01 It wont cause it to be included multiple times, it's not that dumb May 31 16:56:01 That seems to help, thanks :P May 31 16:56:12 Let me double check May 31 16:58:11 That seemed to help a lot, thanks :) May 31 16:58:17 yw :) May 31 16:59:56 SimonVT, no idea but it works May 31 17:00:24 But likely just because the model changed, and it updated it May 31 17:00:32 maybe May 31 17:00:41 When using maven dependencies, jars are not included multiple times May 31 17:01:12 SimonVT, what happens if they are actually different jars but with same classes in them May 31 17:01:27 i think that might be the issue here May 31 17:01:52 because he included one lib that contains whole support and then each single support part again May 31 17:02:44 The one that contains everything, actually just depends on everything May 31 17:03:05 No conflicts May 31 17:15:49 do I have to set alignParentBottom on a view by code if I set the view below to Gone? there's no way that it would jump back to the bottom? May 31 17:15:58 or fall to the bottom instead of the view that was there before it May 31 17:16:15 but it isnt the proper situation for setting weight on it May 31 17:16:45 what about align with parent if missing May 31 17:16:59 how to make AS to ignore "Call requires API level 18..." warning for a specific method? May 31 17:17:02 if missing? May 31 17:17:14 you have to have a property set that will kick in May 31 17:17:31 or something that will let it know that something changed, so it can change May 31 17:17:36 i think its weight May 31 17:17:57 alximych, annotation May 31 17:18:19 but now @SuppressLint("NewApi") is underscored with red May 31 17:18:45 or add a TargetApi annotation May 31 17:18:51 can annotate that it uses a specific api May 31 17:18:54 oh, I got iT, THANKS! May 31 17:19:05 @TargetApi(your api level) May 31 17:19:09 it must be written at the beginning of the method May 31 17:19:10 Whats the best way to calculate drag resistance? if i have a dynamic distance between my starting Y point and current, what would i do from there to make it harder to pull May 31 17:20:54 nah, weight wasnt it May 31 17:31:56 kanso, many ways, one of them would be to use linear spring formula, the more the distance increases, the more the force grows (F = k.x) May 31 17:32:16 x is your distance, k you have to choose something, and F is something you would compare to a threshold May 31 17:33:38 in (F = k.x) . is multiplication, right? May 31 17:33:43 yes May 31 17:34:27 more complicated way would involve velocity of your drag motion May 31 17:34:33 So say I was moving an object based on my distance, would it be okay to minus that function's given results May 31 17:34:41 or its acceleration (which is the intregration of velocity) May 31 17:36:22 kanso, idk, what do you mean by "would it be okay to minus that function's given results"?? May 31 17:38:39 sorry, so say right now I have a pulldown view that has a 1 to 1 movement with the drag. If I wanted to implement resistance I would subtract the results of (F = k.x) to the pulldown's Y movement May 31 17:39:12 I'll just try it, but thanks for the help May 31 17:40:34 oh i see, like the resistance is bigger when the distance is big compared to when the distance is law (like a spring, elastic, etc) May 31 17:40:41 low* May 31 17:40:53 yeah exactly. It should get harder to pull May 31 17:42:21 x*x^2 type curve. I just dont know how to implement it right now, think its time to sleep. May 31 17:43:59 that's a nice curve May 31 17:44:34 why is app icon not showing in action bar by default? May 31 17:44:35 plot it, you will see near 0, 0 resistance; then it grows relatively fast, then it goes exponential May 31 17:44:55 (kanso to plot it, just type in google search x*x*x) May 31 17:45:22 Alright thanks a bunch adq May 31 17:47:18 how do I show app icon at the top of activity? May 31 17:47:35 I think it was removed alximych with ToolBar May 31 17:47:58 "In modern Android UIs developers should lean more on a visually distinct color scheme for toolbars than on their application icon. The use of application icon plus title as a standard layout is discouraged on API 21 devices and newer." May 31 17:48:01 https://developer.android.com/reference/android/widget/Toolbar.html May 31 17:48:12 this is why alximych May 31 17:48:16 they don't want it anymore lol May 31 17:48:19 speaking of math symbols, I want an updated hackers keyboard May 31 17:48:31 I wonder how up to date the Latin ime is May 31 17:48:35 but I want it T_T May 31 17:48:55 alximych, oh it is still possible May 31 17:49:05 i just don't know by heart exactly how without searching May 31 17:49:08 set the right theme attributes and icon shows fine May 31 17:49:12 google it May 31 17:49:26 Cant you just put an ImageView in your toolbar layout? then ref your icon May 31 17:49:30 huhu pfn May 31 17:50:03 lol if I just set icon - it won't work. If I first call setDisplayShowHomeEnabled() and THEN set the icon - then the icon is shown May 31 17:50:07 guys, can someone please point me to an example of SearchView widget (that one that's in the actionbar) which where I write it will show up a Listview with the results like for example how the Google Play search does? I can't find one .... I've been able to show up the searched items on a listview that's on a layout but I couldn't do it like in Google Play search or Gmail search ... or whatever other app -_- May 31 17:50:08 kanso, you could... just won't look like the old action bar style, unless you do more work May 31 17:50:28 alximych, so you're done May 31 17:50:43 pfn, yep May 31 17:51:09 I use default style: Theme.AppCompat.Light.DarkActionBar May 31 17:51:15 luci1093, http://developer.android.com/guide/topics/search/search-dialog.html did you look at that? May 31 17:51:22 luci1093, https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/SearchableActivity.scala May 31 17:54:35 or do you want customized suggestions layouts? May 31 17:54:38 * pfn shrugs May 31 17:54:51 the one on developer.android.com I think I've memorised it at this point... I'm looking on the github one now ... May 31 17:55:55 I don't have my suggestions in a custom layout May 31 18:02:28 anyone find any good articles on GMS app invites ? May 31 18:02:47 there are a bunch of new videos here https://www.youtube.com/playlist?list=PLOU2XLYxmsIJDPXCTt5TLDu67271PruEk May 31 18:02:59 but none cover that aspect May 31 18:09:02 that guy magnus that does GMS videos is crazy May 31 18:09:09 lol May 31 18:09:11 lol yeah he is funny May 31 18:09:34 i can only watch him or colt mc anlis it seems May 31 18:09:58 maybe it's also related to their respective topics May 31 18:10:13 heh May 31 18:10:18 g00s, i've used invitation with play games so you can still ask, but i have no idea of a good article May 31 18:10:53 adq oh just looking for code snippets, tutorial. all i can find so far are general announcements May 31 18:11:03 (old screenshots: https://lh3.ggpht.com/5RwIjBXGJIpts8stQ9Z1acyZeDK3bWK_9TDer2ZAMOuxqvvmFM7vIni6tGIf_IAEVs0=h600-rw & https://lh3.ggpht.com/_xsN8fIhEs62UqVmcXNnxIs5Cu8tzRYIGOyRzHubIHs9C0fJ4kkIXrjfw5hC2SG5LeE=h600-rw ) May 31 18:11:41 g00s, https://developers.google.com/android/reference/com/google/android/gms/games/multiplayer/Invitations maybe that at least May 31 18:12:24 adq its a slightly different api https://developers.google.com/android/reference/com/google/android/gms/appinvite/package-summary May 31 18:12:29 but yeah thanks, looking there too May 31 18:12:29 everything with pendingresult works the same way, more or less May 31 18:13:40 ahh i see, not related to playgames at all May 31 18:13:51 new with GMS 7.5 May 31 18:14:01 so new - i can't figure it out :D May 31 18:14:07 i'll wait a little, no rush May 31 18:14:45 lol May 31 18:15:02 #android/levo directed me here to #android-dev; I'm looking for a developer on a small-medium inventory project to be released as open source license. I can hire them for the project, if desired. May 31 18:15:30 g00s: May 31 18:15:36 hey thepoosh May 31 18:15:44 i discovered a terrible thing today May 31 18:16:24 thepoosh ? May 31 18:17:07 thepoosh btw, you guys should probably use this too (app invites) instead of that 'get all the contacts' thing May 31 18:17:14 we had a broadcast receiver for connectivity changes, that resulted in acquiring WakeLock for 30 seconds each time May 31 18:17:25 shadows: no advertising please, jobs or otherwise May 31 18:17:33 SimonVT: okay, I understand May 31 18:17:33 Napalm: are you around? May 31 18:17:35 sorry about that May 31 18:17:35 g00s: we were part of the beta testing for that via the google product team for that May 31 18:17:45 Meowser: whats up May 31 18:17:46 thepoosh cool May 31 18:17:55 yeah, I did the integration May 31 18:17:56 SimonVT: what does one do to find an open-source friendly android developer though, suggestions? May 31 18:17:57 :P May 31 18:18:03 couldn't talk about it then May 31 18:18:10 Napalm: I'm having issues with my attributes. I get this exception android.content.res.Resources$NotFoundException: Resource ID #0xff17bebb May 31 18:18:25 0xff17bebb is the value of the attribute May 31 18:18:30 #@! murphy law May 31 18:18:30 I understand some programming but I don't think I would do a very good job on this project, it is to support a non-profit effort May 31 18:18:34 thepoosh aware of any good articles about it? its new, i'm not sure how to use the api May 31 18:18:45 nah, we had a crappy pdf on that May 31 18:19:24 about new things, i am also wondering how to use "audio injector" in android wear developer options May 31 18:19:35 not even a single line on the web about it May 31 18:19:56 Meowser: erm? and May 31 18:20:09 what do you want me to do about it May 31 18:20:43 shadows, I'll do it. May 31 18:20:47 Napalm: have you seen that error? May 31 18:21:13 yes May 31 18:21:17 next question May 31 18:21:19 lol May 31 18:21:23 here are snipets from the 3 files i have http://pastebin.com/XU5H9rP1 May 31 18:21:28 how did you fix it? May 31 18:22:07 define your color May 31 18:22:17 you have not done that May 31 18:22:25 #17BEBB May 31 18:22:32 is a attribute value May 31 18:22:41 thats why you get that attribute value May 31 18:23:04 ok May 31 18:23:05 #17BEBB May 31 18:23:18 @color/theme1_color_button_pressed May 31 18:23:20 see? May 31 18:23:25 ok, put that in colors.xml? May 31 18:23:36 well yes May 31 18:23:40 ok May 31 18:23:42 you said the other day you already had those May 31 18:23:51 yea i thought i didnt need them so i removed them May 31 18:24:36 Meowser: pastebin your getThemeColor function May 31 18:25:38 http://pastebin.com/CKbwWf9i May 31 18:26:03 i get the exception before i call the function May 31 18:26:04 shadows, your inventory app, I mean. May 31 18:26:09 so function might not work yet May 31 18:26:28 Meowser: function is fine May 31 18:26:40 Meowser: but you should verify the result is a color May 31 18:29:07 ok ill add that May 31 18:29:09 thanks May 31 18:29:47 http://pastebin.com/6A9wTH9h May 31 18:29:52 wow, my app was installed 2.3k times yesterday May 31 18:29:52 Meowser: ^ May 31 18:30:02 paulo_: whats your app? May 31 18:31:12 I hope this still curves up. I'll probably hit 50k in the next two weeks. May 31 18:32:10 Meowser: slightly better http://pastebin.com/LZcz5uv6 May 31 18:32:30 paulo_, you're seriously obsesses about your stats, we already talk about it (the obsession) May 31 18:32:33 paulo_: whats your app May 31 18:32:35 obsessed* May 31 18:32:48 adq: sorry, it is my first app May 31 18:33:05 don't, it's ok, just you bring that topic everyday almost lol May 31 18:33:18 ^^ May 31 18:33:21 hoping will change nothing ;) May 31 18:33:32 hahaha sorry, ok i'll uninstall xchat for now May 31 18:33:37 Hi guys! Is there a simple way to reduce EditText hint text size? There are plenty answers to this question in internet but they all are like this http://stackoverflow.com/questions/5203477/android-edittext-hint May 31 18:33:45 Which I find ugly May 31 18:34:26 maybe theres a theme attribute for taht May 31 18:34:38 nothing wrong with the suggested solution though May 31 18:34:48 that aiiiiin't workin May 31 18:34:56 i'm just overwhelmed. May 31 18:35:01 with love? May 31 18:35:21 silent overwhelming is a cool thing :P May 31 18:35:24 show us the May 31 18:35:24 Odaym: yes. I had my very first fan mail yesterday. May 31 18:35:28 niice May 31 18:35:35 whats your app paulo_ May 31 18:35:36 "you are amazing thank you, you saved my marriage" May 31 18:35:42 show us the app* May 31 18:35:52 he never does ^^ May 31 18:35:53 Whaaaaat? I feel mislead :'( "... the FloatingActionButton takes advantage of additional callbacks provided by CoordinatorLayout to automatically move upward as the snackbar animates in and returns to its position when the snackbar animates out on Android 3.0 and higher devices - no extra code required." May 31 18:36:12 that's not "everything works down to v7", that's "it compiles down to v7" :( May 31 18:36:12 I've shared it many times before though. May 31 18:36:22 we forgot.. May 31 18:36:28 so what May 31 18:36:28 tell us so we can all steal your idea May 31 18:36:42 AlexBerdnikov: do you just want the hint text in a different size to the actual edittext size? May 31 18:36:44 hey set it as your nickname May 31 18:36:56 Developer pages now available You can now create a customized landing page to promote your brand and apps on Google Play. To get started, click Settings > Developer page on the left menu. May 31 18:36:59 AlexBerdnikov: there's a font-size Span I believe. you won't be able to set it in XML, but it should work fine. May 31 18:37:11 Napalm, yes. I want it to fit the width of EditText May 31 18:37:11 another thing we can do in playstore to get banned :p May 31 18:37:15 see this brings me back to that idea I had some days ago, it's about damn time that Google Play provided us with natively shortened URL's for our app addresses May 31 18:37:23 AlexBerdnikov: just set a span on the text May 31 18:37:27 AlexBerdnikov: forget html May 31 18:37:31 this is so needed, every service Google has offers this, Youtube, Docs, etc... May 31 18:37:33 G+ May 31 18:37:50 it would just be like play.app/appname May 31 18:37:51 something like that May 31 18:38:01 Napalm, sorry, not sure if I got what you mean May 31 18:38:52 thepoosh who found the wakelock thing? May 31 18:39:30 Rendering Problems This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio May 31 18:39:39 im on the newest stable version -_- May 31 18:39:42 Napalm, groxxx, ok thank you guys, I found the solution based on what you're talking about May 31 18:39:53 Thanks May 31 18:40:19 nvm. solved May 31 18:40:21 wakelock thing? May 31 18:40:39 AlexBerdnikov: SpannableString hintText = new SpannableString(editText.getHint()); hintText.setSpan(new RelativeSizeSpan(0.8f), 0, hintText.length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); editText.setHint(hintText); May 31 18:41:16 I'd think inclusive_inclusive for this? not that it matters though, since it's not editable May 31 18:41:28 groxx: nope May 31 18:41:40 so you want it to extend its bounds if prefixed, but not if suffixed? May 31 18:42:09 or do I misunderstand the inclusive/exclusive flag? (entirely possible) May 31 18:42:15 inclusive because start = 0 < we include 0'th char.. but hintText.length(); is zero index + 1 so its excluding 1 May 31 18:43:01 that doesn't at all sound like what the documentation implies May 31 18:43:51 inclusive/exclusive is how it behaves when adding text at the edges, e.g. when you've bolded text, you probably want span_x_inclusive, so you keep typing bold text as you add more to the end May 31 18:44:25 afaik it has nothing to do with text-at-rest, only adding May 31 18:45:19 groxx: it does exactly as i said May 31 18:45:30 if the last character was exclusive its one past the bounds May 31 18:45:48 arg May 31 18:45:53 whatever. May 31 18:46:05 you might be right. i cant be assed checking. May 31 18:47:44 hey my android studio is not scrolling horizontally via touchpad gesture May 31 18:47:47 any fix? May 31 18:51:49 not a bug i guess May 31 18:51:52 just a missing feature May 31 18:53:24 so no one can scroll horizontally... sad. May 31 18:53:25 how can I tell picasso to keep trying in onError(). This is what I have: https://bpaste.net/show/3600b2833ccb . as you can see in onSuccess it resizes the loaded bitmap. But what happens really is that it just goes straight to onError and uses that resource drawable immediately. I am ok with it taking a few seconds. Is there a "keepTrying() function I can call in the onError callback? May 31 18:53:42 wait sorry wrong paste May 31 18:54:19 this is what Im using now: https://bpaste.net/show/f2a79f861a85 May 31 18:54:28 if it goes strait to on error, something is wrong with the url May 31 18:55:10 ashwink005: dunno. works fine for me (OSX). can you scroll horizontally in other apps? May 31 18:55:42 ok idk whats wrong with me but that paste was also incorrect. here is the real one:https://bpaste.net/show/bc7286a0ff17 May 31 18:56:00 as you can see, there is a url, and if you try and visit it, you can see that its real and works May 31 18:56:24 groxx: yup.. but android studio doesn't scroll at all, though my mouse pointer changes to scroll May 31 18:56:34 horizontally that is May 31 18:57:08 ashwink005: could be a bug? are you on stable, or a preview build? May 31 18:57:09 bilb_ono, have you checked what the error is? May 31 18:57:18 ie. logging it May 31 18:57:55 groxx: its android studio 1.2.1.1 I think its a stable build. May 31 18:58:29 bilb_ono: I dunno how picasso behaves, but it's possible you don't have a BitmapDrawable in onSuccess, since Picasso can (does by default?) animate them in May 31 18:58:39 if that's throwing an exception, it might be jumping to onError? May 31 18:59:14 groxx, no. onError is only called if it has an error fetching and parsing the resource May 31 18:59:32 if you have an exception in onSuccess, its thrown on ui thread May 31 18:59:37 danijoo, yeah its a great idea. Im trying to figure out how to log the error May 31 18:59:46 great, that's better behavior anyway :) May 31 19:00:08 bilb_ono, picasso has a method to enable logging May 31 19:00:14 setLoggingEnabled i think May 31 19:01:37 anyone here dare try AS 1.3 + gradle-plugin 1.3? how is it working ? May 31 19:01:41 man I swear this commit message for git should be allowed to be provided from a "Scrum" or similar system May 31 19:02:16 so now I write the tasks somewhere, and I come to commit, I dont wanna repeat everything.. I wrote them them on the system that keeps track of those things May 31 19:03:03 g00s: I dunno how to get gradle 1.3 running :| otherwise I'd have tried it May 31 19:04:17 g00s, installed it, didnt compile my kotlin project, never touched it since then May 31 19:04:43 ashwink005: sorry, no idea :| try unplugging the mouse, since sometimes that resets the mouse drivers? and/or restarting android studio / your computer. seems like it should be working, so it's probably something temporary. May 31 19:04:52 danijoo: how'd ya install it? May 31 19:04:59 or, AS or the gradle plugin? May 31 19:05:08 groxx danijoo yeah ... i'll wait May 31 19:05:09 groxx: hmm.. thanks man will try it May 31 19:05:22 groxx, i updated from within AS May 31 19:05:29 and changed gradle manually May 31 19:05:38 danijoo, hmm so I used Picasso.with(getApplicationContext()).setLoggingEnabled(true); and the error that it gives isn't very helpful: Main errored [R0]+272ms May 31 19:06:13 maybe try loadng it without a callback to see what it throws May 31 19:06:15 might have to add logging to OkHttp? or whatever you're using. May 31 19:06:20 no idea :/ May 31 19:06:20 well here is the full error: https://bpaste.net/show/f07ed6e1c6f3 maybe you can glean more from it than me May 31 19:06:32 Napalm: with your version of the getThemeColor, what would a call look like, specifically the argument? May 31 19:07:26 Does someone know a good alternative to Realm? It is missing so many features and I just keep knocking my head against its limitations that it is no longer workable. This one is especially annoying: https://github.com/realm/realm-java/issues/909 May 31 19:08:15 Muchoz: sqlite :| May 31 19:08:27 I think there's a couchdb build for android too? May 31 19:08:43 Meowser: mine is wrong .. get rid of @ColorRes from the name of the method May 31 19:09:11 ok May 31 19:10:51 Muchoz: ah, apparently also BerkeleyDB May 31 19:11:28 groxx, *sigh* http://developer.couchbase.com/mobile/develop/samples/samples/index.html May 31 19:11:38 bdb has shitty oracle license May 31 19:12:05 and its just a k/v tsore; if you only need k/v then you can grab h2 mvstore May 31 19:12:44 yeah, avoiding oracle is probably worth it, though BDB has been around (+ embedded) for quite a while, it's likely reliable. May 31 19:12:48 Is there something very easy like Realm? It's for very simple storage and I don't need any complicated stuff. May 31 19:12:55 I just learned what fragments are \o/ May 31 19:13:05 I just want it to work atm and worry about the rest later. May 31 19:13:17 Muchoz just use ths sqlite stuff, its not hard May 31 19:13:33 Muchoz: do you need joins / etc? May 31 19:13:35 if its ugly put the ugly shit on once place so you dont have to see it May 31 19:13:51 groxx, yes and that is why I want to avoid SQLite by itself. It takes soooo long. May 31 19:14:04 I mean, at worst, you can use it as a k/v/document store pretty trivially. just serialize java objects into a binary column. May 31 19:14:12 eh. like 5 minutes. May 31 19:14:43 ah man, still not working :( May 31 19:14:50 http://pastebin.com/3Bs7Mwkm May 31 19:14:56 same error May 31 19:14:56 Hey, I have an SDK project, with mainly logic and not Android, I'd like to place a txt file in it and read it from one of the classes. is it possible? I cant put it in /res and getActivity().getResources() because I dont have an Activity... I dont want to create a weired flow and get the activity object May 31 19:15:23 groxx, for 15 data classes that are all intertwined. That's gonna be a hell of a lot of boilerplate code. May 31 19:15:36 ah. yeah, that could take a while. May 31 19:16:17 There is one thing that bugs me about Realm besides no support for null values which is coming so meh. May 31 19:16:29 It takes control of my objects if you know what I mean and then I ask why? May 31 19:16:34 I've been reasonably happy with GreenDAO if you want to try a fairly minimal ORM May 31 19:16:54 Take that "take control" with a grain of salt, but you get what I mean perhaps. May 31 19:17:03 yeah, Realm's prototype-object RealmObject stuff is crazy. it's like they don't know how Java works. May 31 19:17:18 Exactly what I was thinking!ç May 31 19:17:43 if they'd fix a couple of those _really_ weird quirks, it would be a lot more flexible and nicer to use. dunno what they're doing instead. May 31 19:17:47 Like for what reason can I not use my own toString() for example? or my own equals()? May 31 19:18:02 You'd have to explain to me why Realm needs those? May 31 19:18:20 I hate you Realm: Error:(16, 16) Gradle: error: Only getters and setters should be defined in model classes May 31 19:18:52 Napalm: any ideas? May 31 19:19:31 Meowser: whats the error May 31 19:19:43 android.content.res.Resources$NotFoundException: Resource ID #0xff17bebb May 31 19:21:24 back in the day there was a nice prduct called db4o by versant - not sure what happened to it May 31 19:21:40 So there is nothing like Realm? May 31 19:21:51 viran: there is probably not very clear solution. just pass a context from somewhere. you don't need activity. you can do use a service a broadcast receiver or get application context from extended Application class May 31 19:22:17 hm seems discontinued May 31 19:22:33 afaik nothing that you'd want to use in an embedded context. sqlite reigns king there. May 31 19:22:47 so sure, there are Realm-like things, but they'll add 30 seconds to your app startup. May 31 19:23:02 thanks icedp May 31 19:23:08 I don't get how realm-java is at 4090 commits and isn't even usable for everyday projects. May 31 19:23:15 magic May 31 19:23:22 Meowser: maybe ty Meowser, you are already getting the color value with getThemeColor, and you are passing that color as a resource id to getColor, remove getColor and juse getThemeColor or remove getThemeColor and use getColor May 31 19:24:14 if you noticed Resource ID #0xff17bebb is your color May 31 19:24:37 the reason why you can't use a lot of nice ORM type things is because android doesn't use JDBC May 31 19:24:42 there is also a generator approach - sqlite helper or contentprovider can be generated from json e.g. :) May 31 19:24:48 so in that case, you need android specific crap May 31 19:24:53 can't recommend a specific project, but I've seen a few May 31 19:24:57 I need to parse an http directory listing. Couldn't find any built-in html parsers so I'm trying to do it with regexp, but having trouble getting () expressions to work. May 31 19:25:11 Before I dive into regexp questions, is there a better way to do this? May 31 19:25:23 Muchoz: oh, maybe Schematic would work? I haven't yet given it a try, unfortunately May 31 19:25:34 https://github.com/SimonVT/schematic May 31 19:26:16 Meowser: your set call is wrong May 31 19:26:22 groxx, yeah I had it, thanks though. May 31 19:26:55 Meowser: the color resource is already being resolved. buttonPaints[i].setColor(getThemeColor(R.attr.color_button_pressed)); May 31 19:27:03 I continue to think that code generation is the One True Path™ for this kind of thing May 31 19:27:20 i see that now May 31 19:27:22 thanks May 31 19:27:37 groxx, @It's @A @Bit @Head @Turning. May 31 19:27:52 Muchoz: yeah, but that's Java for ya :) May 31 19:28:06 @Beany @Goodness May 31 19:28:17 @Over @Engineered @Java May 31 19:28:50 @StrictMode({Java.StrictMode.EXTREME}) May 31 19:29:00 The usage says how you create the stuff, but how would I get the data? May 31 19:29:12 And I don't see any docs anywhere. May 31 19:29:15 i had no idea nessum dorma was for puccini.... May 31 19:29:25 I thought he was famous for madame butterfly! May 31 19:29:35 Oh wait..; May 31 19:29:40 Meowser: use this one http://pastebin.com/j8fSM49t May 31 19:29:49 hey guys May 31 19:29:49 http://i.imgur.com/AeAqpZ9.png May 31 19:29:58 my frist time loading apache cordova to build android app May 31 19:30:02 I forgot it's just a generator. May 31 19:30:06 how long does it take usually to load/boot up the emulator? May 31 19:30:14 it's been there for 5+ min now May 31 19:30:27 Muchoz: hm. the samples seem to imply that you just get cursors from the content provider, so you still have to do a lot of your own parsing-like stuff May 31 19:30:28 maybe its stoned May 31 19:30:42 groxx, yup. So that's a nope. May 31 19:30:52 yeah. the parsing is what I'd want to simplify May 31 19:31:50 :( May 31 19:32:07 stoned: there are multiple reasons why it might take too long May 31 19:32:12 http://i.imgur.com/VhKt346.png May 31 19:32:15 It's been stuck here May 31 19:32:31 As soon as it said launching emulator, shows me the actual emulator, but then stuck here and dots moving really slowly on cmd May 31 19:32:38 stoned: is it still animating? are you using an intel emulator + haxm? gpu acceleration? May 31 19:32:51 no gpu acceleration May 31 19:32:55 And I think so May 31 19:33:08 stoned: first.. enable VT-x in the BIOS CPU settings.. second install the Intel-HAMX program that comes with the SDK.. third start a Intel-X86 or X86_64 system image (pick the right one if your on 32 or 64bit) May 31 19:33:27 yay it all works May 31 19:33:42 I have screenshotted every step for refernce May 31 19:33:43 hang on' May 31 19:33:45 Meowser: now say thank you and leave me alone :P May 31 19:33:59 http://i.imgur.com/mPvky1t.png emulator settings May 31 19:34:15 Napalm: thanks, ill leave you alone for now :D May 31 19:34:26 I picked arm as I was developing for that May 31 19:34:29 but I think I misunderstood May 31 19:34:39 I need to isntal the intel 64 bit image first right? May 31 19:34:46 Then select emulator image in there May 31 19:34:52 since I have an intel desktop May 31 19:34:54 is this correct? May 31 19:35:11 guys, can someone show me an example of how I can add a listview popup so to say to a SearchView widget? Like for example how there is in the gmail app or google view? I haven't been able to do it and haven't seen a proper example. The search works if I just use a listview that's in a layout but I want that listview to be like a popup or whatever it's called like in the google play when oyu get suggestions. Anyone got any example? T.T May 31 19:35:24 Napalm, http://i.imgur.com/9CxoVw7.png May 31 19:35:32 I have this as my installed images May 31 19:35:49 danijoo, May 31 19:35:58 I'm not really sure exactly what to do here May 31 19:36:05 I hadn't set up the internet permission in my manifest, d'oh May 31 19:36:05 https://developer.android.com/tools/devices/index.html May 31 19:36:11 stoned: work it out.. im busy :P May 31 19:36:13 the code works now though May 31 19:36:13 I went through this twice but I think Im missing something May 31 19:36:15 luci1093: There is actually an AutoCompleteTextView, which i think is what you are trying to build May 31 19:36:17 :) May 31 19:36:18 sure np May 31 19:36:20 thanks for your time May 31 19:36:29 zzxx: i already told luci1093 to use it May 31 19:36:33 like 10 hours ago May 31 19:36:39 ah ok. just joined the channel May 31 19:37:31 sh*t, when? ... well I'll look into it ... this is already kiling me -_- May 31 19:37:40 luci1093: https://gist.github.com/slightfoot/5514856 May 31 19:38:13 luci1093: dont forget to say thanks on the gist :P May 31 19:39:09 oh yeah, I forgot to look on it and I must have closed it by mistake ...uh May 31 19:39:25 sry >.< ... I'll look into it now , thanks May 31 19:42:33 but the thing is ... can I use SearchView with autocomplete? doesn't really look like it since they are 2 different views right? May 31 19:43:43 luci1093: just make your custom autocomplete, with contains() or strstr or whatever May 31 19:49:34 wth.. Suddenly my computer don't want to regocnise that I've plugged in a device via usb.. May 31 19:49:50 I even changed the cable May 31 19:49:54 and usb hole May 31 19:51:21 Vercinger: which OS ? May 31 19:57:15 hi guys May 31 19:58:04 is there a way to keep important apps from being killed, I have this navigation app for my car, and it is almost unkillable and pretty robust, so I was wondering what ways are there to keep an app from being killed May 31 19:59:17 jkli: with a service that monitors and restarts the app ? May 31 19:59:18 keeping it front, small memory footprint May 31 20:00:16 i dont think a car navigation app has a small mem footprint May 31 20:00:42 i guess its just the service that not being killed May 31 20:00:54 but no matter how many other apps i put in foreground or how long it stayed inactive, it keeps updating my gps location May 31 20:01:09 jkli, you can make a service staying forever May 31 20:01:16 i see May 31 20:01:17 but not the app that binds to it May 31 20:01:27 stoned: yep, you need one of the Intel images. the arm ones can't be accelerated. May 31 20:01:33 hm May 31 20:01:58 stoned: sorry, life intrudes :) May 31 20:02:12 groxx: assuming your box is not AMD ;) May 31 20:02:21 jkli, the service does all the work in this case. the app is only for displaying and not neccessary for the navigation to run May 31 20:02:52 yeah. then you can get one of the virtualbox based emulators, like genymotion, and it'll be just as fast. May 31 20:02:54 yes, that makes sense May 31 20:03:56 I got it figured out! May 31 20:03:56 :D May 31 20:04:01 groxx, thanks guys May 31 20:04:17 I have FrameLayout that I add a bunch of child views to. Sometimes the FrameLayout is too large, so I would like to allow it to scroll. How can I achieve this? I've tried wrapping it in a ScrollView and LinearLayout, but I still can't scroll May 31 20:04:22 code: https://gist.github.com/MarkyC/9f97fc12c3c2c814d70b May 31 20:04:34 (layout.xml actually^) May 31 20:05:01 stoned: fwiw 32/64 bit doesn't really matter unless you're doing native code + need to test 64 bit compatibility. (though obv 64 bit won't run on a 32 bit OS) May 31 20:05:15 you'll have to make a custom ViewGroup and implement the scrolling yourself. May 31 20:05:27 well i couldn't run 64 bit atom on 64bit intel core 2 May 31 20:05:33 b/c of 4.2 sse missing or soemthing May 31 20:05:43 i switch to x86 image and emulator is up May 31 20:05:49 MarkyC: or there are custom libraries already made for that.. its called panning May 31 20:05:52 ashwink005, what? Oo why would he need that May 31 20:06:13 I got an S5, plugged in to PC via USB, it's charging, but won't start PTP/MTP with pc or anything.. Any ideas? May 31 20:06:27 MarkyC, try setting the scrollview height to something defined and not wrap_content May 31 20:06:28 shmooz Lollipop May 31 20:06:59 Vercinger: I meant what desktop OS ? May 31 20:07:04 danijoo: good call, I could see that causing problems May 31 20:07:05 8.1 May 31 20:07:09 ashwink005: examples? May 31 20:07:23 danijoo: sorry was just reading custom scrolling :D May 31 20:07:47 MarkyC: yeah danijoo is right, you might not need custom ViewGroups May 31 20:07:49 shmooz it has been working fine for couple of months, and I was in middle of dev'ing/debugging.. and then suddenly *badung* USB disconnected sound.. May 31 20:07:58 and now it wont reconnect, but is charging May 31 20:08:02 Vercinger: you probably have to reboot, or restart your MTP drivers or update your android device USB drivers for your win 8.1 May 31 20:08:15 Vercinger, sounds like a defect usb cable May 31 20:08:21 I changed it May 31 20:08:40 Vercinger: which android device is it ? May 31 20:08:45 *sigh* I'll restart :) May 31 20:08:47 S5 May 31 20:08:56 Vercinger: I had a laptop with a crappy USB port that would cause those same troubles. I'd get a connected/disonnected loop for a bit, then it would charge only May 31 20:09:12 get the latest windows USB drivers for galaxy S5 if they exist May 31 20:09:20 I have May 31 20:09:35 reinstall the drivers May 31 20:10:32 sometimes just reinstalling overwrites the problem May 31 20:14:40 danijoo: that changed the way my view loaded (seems to have stretched vertically), but alas, I still can't scroll May 31 20:15:46 MarkyC, well.. it only scrolls if the view inside it is bigger than thescrollview. right now, your framelayout hase a size of 0 (because it has no content and is set to wrap content) May 31 20:16:32 I add content to the FrameLayout at runtime May 31 20:17:11 I've tried adding match_parent to the RelativeLayout (ScrollView's parent), that might be the issue May 31 20:17:21 ah well... this might be the issue then May 31 20:17:31 scrollview does not know that the size of whats inside it changed May 31 20:18:01 Should I invalidate it? Or breakpoint on ScrollView.onMeasure() to see what it's doing? May 31 20:18:09 (Can I invalidate it?) May 31 20:18:10 god damn it man, Im trying to draw on an image and save both the old and new bitmap as a new bitmap, so much dimensions hell May 31 20:18:21 what's going on in the woooorld May 31 20:18:45 yeah you might need to call invalidate() and requestLayout() on the scrollview and maybe also its content May 31 20:19:00 shmooz, MarkyC, seems like it worked with a reboot.. smh @ my pc May 31 20:19:22 MarkyC, i think what you need is invalidate() and requestLayout on the LinearLayout that holds your content May 31 20:19:29 I'm trying to use a custom font, but I keep getting: java.lang.RuntimeException: Font asset not found fonts/bebas.ttf - even though I've created an assets folder and subfolder "fonts" May 31 20:20:08 use Calligraphy Vercinger May 31 20:20:30 Odaym oooohkay.. I'll google that then May 31 20:20:30 the way to do fonts properly is easy though, but needs like 2 hours to get it fully awesome and global May 31 20:20:42 ^ this May 31 20:20:44 Calligraphy just...takes a dump on all that May 31 20:20:47 1 line, bam May 31 20:21:04 and if you dont do it properly, you'll end up with OOMs everywhere ^^ May 31 20:21:12 yea it's really hell May 31 20:21:29 wait.. so I'll have to install somethign May 31 20:21:36 INSTALL May 31 20:21:38 such a big word brah May 31 20:21:44 yeah man! May 31 20:21:50 you don't install anything, no May 31 20:21:52 Vercinger, no, just including, not installing :) May 31 20:21:53 I want super easy solutions May 31 20:22:05 shame on you May 31 20:22:11 If it was up to me I'd program like this: "Do the stuff I want;" May 31 20:22:18 at least hide behind the fact that doing the real thing is broken on Android May 31 20:22:19 lol May 31 20:22:44 Vercinger is the first beginner thats not like "oh, id rather rewrite the whole shit again" May 31 20:22:53 I thought a lot about such a language, I had the problem of inventing the language that would invent that language for me May 31 20:23:02 Vercinger: Alternatively, do File > New > Folder > Assets Folder, and create a fonts folder inside the assests folder May 31 20:23:19 so...back to square one May 31 20:23:19 yea and everything will just work MarkyC May 31 20:23:22 MarkyC, already have.. but that's not working May 31 20:23:43 you dont need to extend the view, or add its attrs, or anything really, you just create assets folder and now you have global typeface for every view May 31 20:24:03 ^^' May 31 20:24:13 the creation of the folder will understand what you need May 31 20:24:20 and depending on app type it will pick the serif May 31 20:24:21 I think Odaym is being sarcastic May 31 20:24:29 you have to set the app type though May 31 20:24:35 Self-aware IDEs? May 31 20:24:48 coding by speak. thats what we need May 31 20:24:55 danijoo, was that positive btw.? my attitude? ;) May 31 20:24:56 no, "artificial" intelligence, the code is written after all somewhere May 31 20:25:17 "ah, just put that button in the top corner there. Make it look nicely and when i click it..." May 31 20:25:34 "Let me click it again.. *aaaaah*" May 31 20:25:37 Vercinger, yes :) May 31 20:26:31 man I cant believe this I saved numbers on my N5 like 2 weeks ago, I cant fucking find them May 31 20:26:31 dumb question, do I have to download that calligraphy and add it somewhere? May 31 20:26:36 what the hellll May 31 20:27:06 and I cant find my photos I have to go to Device Folders May 31 20:27:15 this is so wronggg May 31 20:28:21 where do I save the Calligraphy thing? May 31 20:30:09 Vercinger: look in your build.gradle for dependencies { ... }. add: compile 'uk.co.chrisjenx:calligraphy:2.1.0' May 31 20:30:36 MarkyC will it download it on it's own then? May 31 20:30:50 yeah, as part of your build process May 31 20:30:54 sweet May 31 20:31:23 Vercinger, https://docs.gradle.org/current/userguide/artifact_dependencies_tutorial.html :) May 31 20:31:52 you can just tell gradle (the build system), what other libraries that are available online you want to use May 31 20:31:53 woah.. wan't me to read stuff? wth May 31 20:32:00 it will download them for you and include them May 31 20:32:06 Vercinger, you need to May 31 20:32:14 I can't read May 31 20:32:21 jk jk May 31 20:32:21 or you wont understand what to do for the next lib you want to use May 31 20:32:39 eh.. I get an error on that compile thing now May 31 20:36:06 Vercinger, http://imgur.com/jacoj no offense :) May 31 20:36:48 My internet is slow May 31 20:36:52 so far I'm not offended May 31 20:37:00 but picture hasn't loaded yet May 31 20:37:18 Yeah I'd love to danijoo, but now it dissapears faster than I can copy it :O May 31 20:37:51 Only thing I get is: Error running app: Gradle project sync failed. Please fix your project and try again. May 31 20:37:55 Vercinger: At the very least post your build.gradle May 31 20:38:23 !pastebin May 31 20:38:40 http://pastebin.com/LQ33eC6U May 31 20:38:56 not much to see tbh :) May 31 20:39:23 wow May 31 20:39:24 okay May 31 20:39:26 don't say anything May 31 20:39:27 pls May 31 20:39:45 * Vercinger puts on *dunce* hat May 31 20:40:23 here: http://pastebin.com/uBdiGiqk May 31 20:41:32 Vercinger: remove it from the top level build.gradle May 31 20:41:53 already did May 31 20:41:55 As per the note: NOTE: Do not place your application dependencies here; they belong May 31 20:41:55 still not working May 31 20:41:55 in the individual module build.gradle files May 31 20:42:30 it says "cannot resolve symbol CalligraphyConfig" May 31 20:42:45 and "cannot resolve symbol CalligraphyContextWrapper" May 31 20:43:00 You won't be able to use it in code until you have the dependency downloaded May 31 20:43:29 aaaah May 31 20:43:34 I'll run the build then May 31 20:43:52 Vercinger, in the top bar, there is a small icon that forces a gradle sync without building the full app May 31 20:44:59 7th counting from right http://prntscr.com/7bmkvy May 31 20:46:20 http://pastebin.com/w3j3nSiZ May 31 20:46:39 error stack trace May 31 20:47:34 it cannot find support lib v7 May 31 20:47:42 you need to download it from the sdk manager May 31 20:51:19 but I have the support 22 May 31 20:51:33 nvm May 31 20:52:53 still including Calligraphy? May 31 20:53:07 so cute May 31 20:53:11 if i name my app a very unique single word. is it garunteed that people will find it if they search that string in the play store? or is it better if i use 2 words for the name May 31 20:53:30 there are no answers like that I think May 31 20:53:43 because i know that the top rated apps are heavily promoted May 31 20:53:53 yes we all know that May 31 20:53:57 and might override accurcy of search May 31 20:54:12 position in play store is not calculation by promotion etat May 31 20:54:12 this is where you dont know May 31 20:54:13 :P May 31 20:54:20 overriding and hacking and intercepting.......no May 31 20:54:23 is there a way to search on play store by developer name? May 31 20:54:45 if you enter a dev name, it will find apps from that dev May 31 20:54:53 or have some kind of link on my website... which opens up my app page in the play store on phone May 31 20:54:53 but also apps that have the devs name :p May 31 20:55:02 ahhh i see May 31 20:55:10 yea you can have that link May 31 20:55:25 njcomsec, you can do https://play.google.com/store/apps/details?id=your.package.name May 31 20:55:29 go to your apps page and look at the top, that's the link that has your apps page May 31 20:55:29 this will link to your app May 31 20:55:49 thanks :) May 31 20:56:12 theres also a generator for this "get it on google play button" May 31 20:56:23 https://developer.android.com/distribute/tools/promote/badges.html May 31 20:56:33 it outputs code that you can include in your site May 31 20:57:10 awsome. i will make use of these thiings)) May 31 20:59:50 did you hear about my suggestion that Google Play should offer us shortened links for our apps on the store? May 31 20:59:50 yea, it's an awesome suggestion May 31 20:59:52 patent pending May 31 21:00:16 Odaym, didnt they recently bought the whole .app tld? May 31 21:00:27 ahhh yes that was them! May 31 21:00:34 true, I think something like that is in the works May 31 21:00:39 so they even had the power to do this :p May 31 21:00:51 cause really I dont need a separate site for the app so that I can get .app domain and link it to the store, the store should be my website May 31 21:01:01 yes I read I remember it was them, the whole root May 31 21:01:03 or maybe they just sell them and didnt want iOS to get them May 31 21:01:09 they're going to buy . I hear May 31 21:01:30 but thats fine for me. May 31 21:01:34 yea they're gonna buy the internet May 31 21:02:52 I just clicked a wordpress together recently and thought that this was way too much work for a simple app showcase site May 31 21:03:09 there's appsites :) May 31 21:03:21 he's been around for almost a year, now he's a considerable host May 31 21:03:22 its 1 guy May 31 21:03:38 too expensive :p May 31 21:04:08 this is an example http://www.cura.tools/ May 31 21:04:10 9$/per month vs 2-3 $ per month if self hosted May 31 21:04:20 self <-- the keyword here May 31 21:04:26 who the hell wants to worry about that May 31 21:04:39 I just buy a domain, forward there, done May 31 21:04:40 err didnt mean self hosted May 31 21:04:45 just a random wordpress hoster May 31 21:04:51 like ovh or hetzner May 31 21:04:51 self hosted I mean you make the content May 31 21:04:57 how the hell can you buy a whole tld? I doubt that they considered all the possibilities for the domains, so it's prolly an unfair business. May 31 21:05:05 over there I feed it screenshots, description, tgoogle play link May 31 21:05:12 and it goes and looks amazing May 31 21:05:27 Odaym, i think i didnt made it that bad: http://nexus-heroes.com/ May 31 21:05:46 also a free design. just changed the css a bit and done May 31 21:05:46 Error establishing a database connection May 31 21:05:50 pretty neat May 31 21:05:53 is that like a trick ? May 31 21:06:16 lol thats funny May 31 21:06:17 its down May 31 21:06:18 :D May 31 21:06:26 i should use appsites -_- May 31 21:06:41 yea May 31 21:06:49 wow. now I look pretty dumb in here :D May 31 21:07:00 nah you make money on google play May 31 21:07:04 you're like a prophet here May 31 21:07:07 i visited that page literary 5 minutes ago :D May 31 21:07:10 "i heard he makes money!!!!" May 31 21:07:11 and iit worked May 31 21:07:33 when I first started appsites he was really just all over customer support May 31 21:07:43 now he's built himself into a thing May 31 21:08:10 it had *nothing* May 31 21:08:25 just that core service running May 31 21:08:53 Afternoon, everyone May 31 21:09:00 now. visit it again! http://nexus-heroes.com/ :D May 31 21:09:10 same May 31 21:09:17 reload xD May 31 21:09:28 ok May 31 21:09:30 ovh server seems broken.. uhmm.. May 31 21:09:35 it sometimes load xD May 31 21:09:44 I dont like it honestly May 31 21:09:49 the hand, its too much May 31 21:09:59 way too bright of what's going on around it May 31 21:10:06 not my design. i just changed colors and throw screenshots in :/ May 31 21:10:18 http://www.themeshaker.com/blog/post/appz-a-free-wordpress-theme-to-show-off-your-new-iphone-app May 31 21:10:29 the images below are too small to be recognized independently, they look like not made for viewing May 31 21:10:51 yeah but its ok for 0 investment i think :) May 31 21:11:01 wont do more until it earns me sth back May 31 21:11:10 you go by per-app earnings? May 31 21:11:16 to know where to put effort? May 31 21:11:40 Question for you guys. I'm trying to add 5.1.1 Ambient Mode support to my existing Android Wear app, and I'm running into an issue. I followed the tutorial on developer.android.com, but I'm getting a crash as soon as the app starts with this message: May 31 21:11:53 not really. But this site is basically just a place holder for in-app deeplinking May 31 21:12:02 ie i have deep links in my app that are shareable May 31 21:12:15 java.lang.IllegalStateException: Could not find wearable shared library classes. Please add to the application manifest May 31 21:12:17 arent you the League of Legends guy? May 31 21:12:24 you are.. May 31 21:12:26 and if you share it to someone who does not own the app, i want to show some page with a get it on google play May 31 21:12:27 that LOL app May 31 21:12:29 for that, its fine i think May 31 21:12:38 yes i am May 31 21:12:48 so that's what I was asking, you put more effort in that app than this May 31 21:12:53 Trouble is, I've added that line to both the mobile app manifest and the wear app manifest, and it's not changing it. May 31 21:12:56 obviously cause that one makes more May 31 21:13:14 which one is "this one" ? May 31 21:13:26 whatever you just showed and claimed to be yours May 31 21:13:31 nexus-hoes May 31 21:13:43 no. this one earns close to nothing right now May 31 21:13:49 yes..I know May 31 21:13:55 that's what Im saying May 31 21:14:04 i put effort in it because its new May 31 21:14:12 lol app is self promoting right now May 31 21:14:14 yes, but not $9/month effort May 31 21:14:19 correct? May 31 21:14:22 yep May 31 21:14:25 there we go May 31 21:14:47 especially since the only reason for this site is to be a placeholder for deeplinking May 31 21:14:53 if I want to make the scale on a view (via gesturelistener) only work after doubleTap, can I just put onScale inside of onDoubleTap? or is there a special onDoubleTapandScale function that I need to override in my gesture listener? May 31 21:15:07 im actually not a fan of those app showcases. I dont think they really help boosting apps May 31 21:15:15 if people want to get it, give them play store links May 31 21:15:21 where you gonna put that link May 31 21:16:15 Odaym, in the app you can generate some kind of user contant (a hero build). you can share it to others which will generate a link with the hashed content May 31 21:16:37 if the user has the app installed, it will open the app and show the content, if not, it will open this page instead May 31 21:16:51 because the deeplink is nexus-heroes.com/some/url May 31 21:17:31 yes but im talking about general home for the product May 31 21:17:45 where non-users see it May 31 21:17:45 dont know what you mean with "general home" May 31 21:18:00 people who have not already seen what it is May 31 21:18:15 they get the link when someone shares it May 31 21:18:21 Im guessing no because I can't override onScale inside of onDoubleTap May 31 21:18:24 what if they dont know anybody who knows it.. May 31 21:18:37 Im very sure that I'm not insane here... May 31 21:18:42 "hey I made an awesome build for this and that" - "show me!" -> link shared. if app installed, its ok, if not, he sees the page May 31 21:19:08 i dont get what you mean ^^' May 31 21:19:20 people who have not heard of your app...OTHER PEOPLE in the world May 31 21:19:30 yes May 31 21:19:32 whats about them May 31 21:19:50 no, the ones you mentioned know people who have heard about it May 31 21:19:55 yeah May 31 21:19:57 we're talking about people from another continent May 31 21:19:59 NEW PEOPLE May 31 21:20:01 never seen before May 31 21:20:02 you mean how I promote? May 31 21:20:09 they go to the app's website May 31 21:20:21 i think no May 31 21:20:35 if they never heard of it, they go to play store and search for what they want May 31 21:20:45 they dont google it and find an app showcase May 31 21:21:18 I understand what you mean May 31 21:21:26 at least thats what i do May 31 21:21:34 so you play LOL really? May 31 21:21:41 yes May 31 21:21:43 u2? May 31 21:21:48 Dota May 31 21:22:00 tried it 2 times.. May 31 21:22:06 didnt work for me May 31 21:22:11 I played for 2 years straight but last time I played was a month ago, so strange that I went cold turkey on it May 31 21:22:18 before that, everyday basically May 31 21:22:26 yeah im slowing down right now too May 31 21:22:31 maybe 1 time a week or so May 31 21:22:37 its just fucking pointless May 31 21:22:41 only when real life friends are arround and what to play May 31 21:22:48 when you're grown its hard to accept the image of you sitting there playing May 31 21:22:49 not alone anymroe May 31 21:23:03 so its like social time ;) May 31 21:23:06 especially if you've never considered yourself "made to be gamer" May 31 21:23:11 you sit together in teamspeak, talk and have fun May 31 21:23:17 it gets evaluated as wasted time, in your head May 31 21:23:47 hey guys, im learning how to use asynch task and trying to turn my rss feed reader feature (done on the main thread) and use async task May 31 21:23:53 i dont think so May 31 21:24:07 why should that be wasted time and hanging in a pub isnt May 31 21:24:13 or doing something else for fun May 31 21:24:15 my problem is i got cannot find symbol error May 31 21:24:19 here is the code http://pastebin.com/WerRv4tA May 31 21:24:30 error is cannot find symbol method May 31 21:30:57 anyone? May 31 21:32:22 ah danijoo well I dont drink May 31 21:32:36 waste of time is time spent wanting to do X and doing Y instead May 31 21:32:46 if you want to being doing X while doing it, its not wasted May 31 21:34:47 Odaym, danijoo.. So I downloaded the support lib.. same error May 31 21:35:03 rebuilt? May 31 21:35:47 People that use SugarORM, is there a one-to-many relationship ? May 31 21:35:54 DarkChaoz: 1. Fix the compile error. 2. Compile. 3. ??? May 31 21:36:13 http://pastebin.com/sVvrEUhU May 31 21:36:13 I cant seem to be able to add a view dynamically May 31 21:36:13 3 is goto Step #1 May 31 21:36:15 haha May 31 21:36:52 dont you set layout params on it and then just add to the rootview you grabbed from inflating the layout? May 31 21:37:26 TacticalJoke thats the thing the error is with getview() and i dunno how to fix. May 31 21:37:35 hence why it wont compile May 31 21:37:49 if i remove it it just goes on a constant loading loop May 31 21:38:42 Hello! i have a Android Library that has a dependency. i want to read the path of the dependency from "local.properties" file so that anyone can easily set a path to the dependency without modifying the Android.mk of my project May 31 21:52:40 Odaym, danijoo - I found the error May 31 21:52:52 when I changed the dependency download to compile 'uk.co.chrisjenx:calligraphy:0.7.+' it worked May 31 21:54:38 i give up for the day.. .-. May 31 21:54:58 after this app im just going to soley stick to PHP May 31 21:59:02 DarkChaoz: What's the exact error? May 31 22:12:59 Anyone knows what's up with this? http://pastebin.com/mfb9Mitw May 31 22:13:33 Vercinger: you using eclipse? May 31 22:13:58 nope May 31 22:14:10 I was trying to add this: https://github.com/chrisjenx/Calligraphy May 31 22:14:13 is this from a device you own May 31 22:14:16 scratch that: http://blog.goyello.com/2014/08/01/how-to-use-custom-fonts-in-android-apps-and-not-get-fat-3/ May 31 22:14:19 ah May 31 22:14:21 yes, it's my own phone May 31 22:14:26 ok May 31 22:14:49 did you set up a android:name property on your tag in your manifest? May 31 22:15:09 android:name=".Application" May 31 22:15:13 is that correct? May 31 22:15:15 does that class exist? May 31 22:15:25 public class Application extends android.app.Application { ... } May 31 22:15:34 in the root of your package? May 31 22:15:42 appdev.vercinger.n343 May 31 22:15:45 in my main activity, is that wrong? May 31 22:15:49 yes May 31 22:15:54 new ".java"? May 31 22:15:55 yes May 31 22:16:23 call it application? May 31 22:16:36 yes capital A May 31 22:16:39 ye May 31 22:17:19 "cannot create class-file" May 31 22:17:29 and? May 31 22:17:45 when I try "new> file>Application>Next" May 31 22:18:08 what can I do about that? May 31 22:18:09 lol May 31 22:18:24 I dunno :D - just don't know what I'm doing wrong :P May 31 22:18:38 do you already have a file with that name? May 31 22:18:47 just create a blank text file in your folder May 31 22:18:51 named Application.java May 31 22:18:57 and open it in Android Studio May 31 22:19:17 ok May 31 22:19:18 stop May 31 22:19:21 scratch that May 31 22:19:25 Vercinger May 31 22:19:27 ye May 31 22:19:31 I'm reading May 31 22:19:32 in AS May 31 22:19:35 what you're saying May 31 22:19:52 right click on your inner class in main activity called Applicaiton May 31 22:19:57 choose Refactor > move May 31 22:20:17 should be move up/out default option selected.. just press ok May 31 22:20:25 now you should have a java file May 31 22:20:30 yep May 31 22:20:37 open it up May 31 22:20:43 is it a public Application object? May 31 22:20:45 class May 31 22:20:49 ye May 31 22:21:00 ok does the Application class mention MainActivity in it? May 31 22:21:22 nope May 31 22:21:25 good May 31 22:21:28 now run your app May 31 22:22:21 it's not crashgn anymore.. May 31 22:22:34 not sure if I actually managed to change the font.. but not crashing is most important :P May 31 22:22:43 thanks Napalm :) May 31 22:22:52 np May 31 22:34:32 hi all , i have an app which is hide the photo app on my android phone , to unhide / unlock the app i dile #123456*, which is wonderful , now what i like to install it on my tap? how can i unhide the app since tablet has no phone and no dile pad ! May 31 22:36:44 beshoo: you cant May 31 22:36:52 lol "design library put me over the 65k limit!" http://puu.sh/i7vYh/8e1bf08879.png May 31 22:37:01 no, all the dumbass shit put this dev over the limit May 31 22:37:03 beshoo: make another method to unlock it May 31 22:37:21 g00s: whats the problem? multidex is now built in May 31 22:37:30 Napalm no, somebody on reddit May 31 22:37:41 then he's an idiot May 31 22:37:56 Napalm do you use multidex? i hear its a headache too May 31 22:38:15 na its not May 31 22:38:57 g00s: https://developer.android.com/tools/building/multidex.html#mdex-gradle May 31 22:39:01 its soo simple May 31 22:39:14 reddit that back to him May 31 22:39:16 :P May 31 22:40:21 then how can we reach secrets code on the taplets ? May 31 22:40:50 beshoo: make it when you open a website with a special name May 31 22:40:56 beshoo: who knows.. make one up May 31 22:41:01 lol May 31 22:43:52 https://play.google.com/store/apps/details?id=com.shivgadhia.android.SecretCodeLauncher May 31 22:43:57 Wonderful May 31 22:56:18 beshoo: hm it should trivial to write "secret code" bruteforcer May 31 23:08:20 g00s, why would multidex be a headache... May 31 23:08:41 makes the build take longer May 31 23:08:51 I need to implement the predexing stuff May 31 23:08:53 nope May 31 23:09:01 for development, it doesn't May 31 23:09:10 use the lollipop optimizations May 31 23:09:38 some asshole complained that I didn't implement those optimizations May 31 23:10:56 he was switching to gradle anyway, so I told him to screw himself May 31 23:11:00 pfn kill him May 31 23:11:27 pfn's being a meany May 31 23:11:28 :P May 31 23:11:41 * pfn shrugs May 31 23:11:46 :) May 31 23:11:51 proguard caching is still faster than multidex for me May 31 23:12:07 no reason to multidex at the moment May 31 23:12:09 the way he described it, murder was the only option left May 31 23:12:19 I'm a logical person.. so.. May 31 23:12:43 plus the fact that I don't have to make my application context written in Java is a plus May 31 23:14:42 not that I stuff much in my application contexts May 31 23:14:54 just Acra and a singleton accessor May 31 23:30:38 pfn: how do you like Acra? pros / cons? May 31 23:47:43 i asked about this yesterday, but I've got an onItemClick that I'm setting for a ListView May 31 23:48:24 and i need the last parameter to give me the ID of the item in the list, but both parameters are giving me the position in the list, instead of the id May 31 23:49:21 oh, nvm, looks like it's working, i think May 31 23:49:36 dcunit3d: I'm guessing this is why you're getting the position for the item ID: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/widget/ArrayAdapter.java#351 May 31 23:50:04 (That involves various guesses such as "He's using ArrayAdapter".) May 31 23:50:10 TacticalJoke .... yup you're right May 31 23:50:35 i've got a custom adapter, but yeh, that's it exactly lol May 31 23:51:32 i just didn't notice until i implemented my second list May 31 23:52:34 but the good news is i'm almost to the point where i'm implementing a state machine, audio recording and some basic 2d graphics. May 31 23:52:39 so, the fun part =] May 31 23:53:42 although, after watching an some videos on android UI, i need to go back and redo most of what i've coded. to use fragments instead of just activities, etc. May 31 23:54:53 Personally, I avoid fragments as much as possible. May 31 23:55:34 i'm mostly getting a prototype of the app together, so i want to avoid experimenting with the UI, since it's going to slow me down. May 31 23:55:46 there's so many different ways to go about it May 31 23:56:19 and i need to rewrite the API anyways, so i've already got to update the Angular and Android UI's when I do that May 31 23:56:42 gotta run, but thanks for the quick fix TacticalJoke Jun 01 00:10:02 groxx, pro, it's free, cons, pollutes logcat when capturing crashes and needs to be self hosted Jun 01 00:10:17 groxx, the quality of the app depends on what you're self hosting Jun 01 00:10:49 groxx: I use a self hosted Sentry for my crash logging needs Jun 01 00:10:50 the Acra app Jun 01 00:11:06 but fwiw, Acra does what I need Jun 01 00:11:10 groxx: you can pay for them to host it aswell Jun 01 00:11:56 pfn: did you check out Firebase? Jun 01 00:12:06 no? Jun 01 00:12:14 www.firebase.com Jun 01 00:12:18 really nice client api Jun 01 00:12:22 firebase looks nice, but ... costs Jun 01 00:12:36 yea, i'm thinking it would be nice to do what Sentry do Jun 01 00:12:37 i was hoping google would say 'free firebase for all' at i/o :) Jun 01 00:12:44 offer hosting.. but allow self-hosted Jun 01 00:13:03 g00s: it is free.. but free is limited Jun 01 00:13:08 the new hacker plan Jun 01 00:13:09 firebase isn't owned by google? Jun 01 00:13:21 they were ... Jun 01 00:13:23 probably started by some ex-googlers? Jun 01 00:13:28 did google barf them up ? Jun 01 00:13:42 never owned by... Jun 01 00:13:58 http://techcrunch.com/2014/10/21/google-acquires-firebase-to-help-developers-build-better-realtime-apps/ Jun 01 00:14:18 ah Jun 01 00:14:42 but free photo storage is more important to google's meeshion :) Jun 01 00:14:51 lol Jun 01 00:15:37 of course Jun 01 00:16:03 free photo storage is much more valuable to people Jun 01 00:16:26 its more valuable to google too Jun 01 00:16:43 free photo storage service affects millions to potentially billions of people Jun 01 00:16:50 developer tools help thousands Jun 01 00:18:49 the goal of the free photo storage is to use machine learning & computer vision to deconstruct the data for better ad placement Jun 01 00:19:07 so? Jun 01 00:19:20 you want shit to be free as in beer? Jun 01 00:19:25 no Jun 01 00:19:29 don't be stupid Jun 01 00:20:35 feel free to start your own multi billion dollar corporation to do that Jun 01 00:20:57 i dont have to? i can just use apple Jun 01 00:21:44 will gladly pay for privacy Jun 01 00:23:22 sure, you get privacy from apple Jun 01 00:23:27 go ahead and use them Jun 01 00:24:55 of course they are subjected to the same federal laws as google, so w're not talking about federal eavedropping - but from a commercial perspective, if steve cook says he doesn't sell my data, i believe him Jun 01 00:25:06 tim cook Jun 01 00:29:55 is there any possibility to use recyclerview in a regular fragment? (even if implies some more code but without turning it a listfragment copy) Jun 01 00:30:08 i can avoid it but being lazy :D Jun 01 00:30:24 cliffreich sure Jun 01 00:30:49 hi all Jun 01 00:31:45 oh nvm Jun 01 00:31:48 is it possible on android phones to connect to a wireless network and at the same time run a webservice? Jun 01 00:32:20 first time trying to se recycler Jun 01 00:33:37 cliffreich https://plus.google.com/+DaveSmithDev/posts/PRGTCBxU3En Jun 01 00:34:31 g00s :^) Jun 01 00:45:04 "steve cook" Jun 01 00:45:09 funny. Jun 01 00:51:40 XD Jun 01 01:08:13 i'm not sure how to describe what i'm trying to do but you know those apps that have a list and if you scroll down, more items are automatically loaded Jun 01 01:08:44 like, more items are loaded when you scroll all of the way down Jun 01 01:09:02 how can i accomplish that Jun 01 01:11:19 aspire: its called lazy loading Jun 01 01:11:34 aspire: what are you using RecyclerView or ListView or GridView? Jun 01 01:11:53 Napalm, o, i'm using a list view Jun 01 01:12:12 i'm loading data from a website and there are multiple pages of data so when the user scrolls down i want more items to be loaded Jun 01 01:12:22 from the other pages Jun 01 01:14:58 Is there anything that automates that? Seems obvious that there should exist some adapter where each item has two ways to provide their data, a fast one (e.g. an outline) and a slow one (a network call) and the list would display the fast one as long as a scroll is still occurring Jun 01 01:15:15 aspire: you might want to think about chnaging to RecyclerView.. this type of thing is much easier Jun 01 01:16:02 aspire: to do the lazy loading for ListView you'll want to create your own adatper that extends BaseAdapter if you dont already do that Jun 01 01:16:08 o.. Jun 01 01:16:13 right now i extend ArrayAdapter haha Jun 01 01:16:36 aspire: then when getView is called with at the last position you can call a function to load more data Jun 01 01:16:42 aspire: in short thats it Jun 01 01:16:54 thats actually pretty interesting Napalm Jun 01 01:17:11 i was looking at some other things so i searched for how to detect when the user is scrolled to the bottom Jun 01 01:17:12 aspire and typically you'll want to stop loading data when flinging Jun 01 01:17:15 aspire: but then you might want to have your adapter implement multiple view types so that you can show a spinning ProgressBar at the bottom whilst the data loads Jun 01 01:17:17 i never actually considered that tbh Jun 01 01:17:47 eek Jun 01 01:17:59 i hate to be "that guy" but can i just show a message in the action bar haha Jun 01 01:18:14 CedricBeust_: nice concept.. slwo and fast data Jun 01 01:18:24 CedricBeust_: i likey.. might have to implement that Jun 01 01:18:30 Napalm: Why hasn't anyone created that?!? Jun 01 01:18:50 https://github.com/commonsguy/cwac-endless came up a lot Jun 01 01:18:51 CedricBeust_: i've not heard of any generic type Jun 01 01:18:55 but i don't think it is as you describe Jun 01 01:19:18 aspire: https://github.com/commonsguy/cwac-endless/blob/master/endless/src/com/commonsware/cwac/endless/EndlessAdapter.java < its exactly as i described Jun 01 01:19:52 aspire: well.. it manages the background task for you Jun 01 01:20:08 that might not be what you want if you already load your data in the background another way Jun 01 01:20:58 hey CedricBeust_ Jun 01 01:21:16 interesting Jun 01 01:21:19 CedricBeust_: i was just thinking about possibly doing a pre-loading of content. so by the time you scroll to the bottom the data is there Jun 01 01:21:34 should i be using this AsyncTask stuff over new Thread(...).start() ? Jun 01 01:21:49 CedricBeust_: perhaps using the velocity of the fling to estimate the offset which if cross it starts loading more data? Jun 01 01:21:53 an idea at least Jun 01 01:22:09 aspire: you probably want to use neither Jun 01 01:22:10 lol Jun 01 01:22:16 o? Jun 01 01:22:35 aspire: AsyncTask is probably what you should be using.. if your currently making anonymous threads like that Jun 01 01:22:36 lol Jun 01 01:22:54 yeah that's what i'm doing haha Jun 01 01:23:19 can i modify the ui with an AsyncTask or? Jun 01 01:23:28 do i still use the Handler created on the ui thread? Jun 01 01:23:34 aspire: it does it for you Jun 01 01:23:55 what do you mean Jun 01 01:24:06 hi all Jun 01 01:24:12 you can modify the UI in onPreExecute and onPostExecute and onProgressUpdate.. just not in doInBackground Jun 01 01:24:18 aspire: ^ Jun 01 01:24:21 is there anyway to expose a webservice in android? Jun 01 01:24:25 o... Jun 01 01:24:35 aspire: it has a Handler for the UI.. it does that bit for you Jun 01 01:24:45 interesting Napalm this AsyncTask seems a lot like java's SwingWorker Jun 01 01:24:47 pycas: what? Jun 01 01:25:04 pycas: just open a port and start listening? Jun 01 01:26:54 i just tried to add the android design support library and i'm getting errors like: Error: No resource found that matches the given name: attr 'elevation'. Jun 01 01:27:15 all the solutions online say to make it compile with 5.0.1 and to change product properties to android-21 Jun 01 01:27:20 make sure your targetSdk is right and elevation is in the right namespace Jun 01 01:27:21 which i have already done Jun 01 01:27:27 KaylieG: you need the appcompat lib aswell Jun 01 01:27:33 Napalm, yes right Jun 01 01:28:22 appcompat is included in my main project, does design support library need it separately as well? Jun 01 01:28:49 Napalm, another question is if it is already possible to create ad-hoc wireles connections and if it is possible to use wifi direct without the prompt? Jun 01 01:28:52 KaylieG: no Jun 01 01:28:57 Fragment#onCreateView is called once right? Jun 01 01:29:11 KaylieG: you'll want to try building the project Jun 01 01:29:30 KaylieG: it should then compile the resources the the IDE finds them.. best I can think Jun 01 01:29:39 Napalm, my problem with the webservice is that i cannot reserve a port to my app, im I right? Jun 01 01:29:51 KaylieG: are you doing this in Eclipse? Jun 01 01:30:09 the design library project is the only one with the red cross right now, and it's in the styles.xml file Jun 01 01:31:23 yeah in eclipse Jun 01 01:31:31 aspire: yes, although if your mis using fragments you might be creating two fragments when you dont mean to Jun 01 01:31:47 KaylieG: you should move to Android Studio.. Eclipse is borked. Jun 01 01:32:09 KaylieG: You need to add the appcompat library as a dependency to design lib Jun 01 01:32:18 KaylieG: that will solve your Eclipse problem Jun 01 01:32:33 i tried that too, didn't work Jun 01 01:33:03 KaylieG: right click your project on the left.. choose android then choose add and choose the app compat library project in your workspace Jun 01 01:33:10 public Exception doInBackground(Void... params){ - heh looks weird Jun 01 01:33:12 Napalm, i see Jun 01 01:33:29 yes i had done that earlier when appcompat was suggested Jun 01 01:33:33 aspire: looks wrong to me Jun 01 01:33:44 publishProgress vs onProgressUpdate ? Jun 01 01:33:45 aspire: you return an Exception from your background task Jun 01 01:33:52 thats just weird Jun 01 01:33:55 oh wait i guess publishProgress invokes onProgressUpdate Jun 01 01:34:03 Napalm, i'm just looking at that code on github Jun 01 01:34:16 he returned an Exception from his doInBackground so idk Jun 01 01:34:31 frankly i don't even know where the exception is being handled Jun 01 01:34:42 KaylieG: that will solve your problem.. alterativly.. just switch to AS Jun 01 01:34:53 oh onPostExecute Jun 01 01:34:59 dude Jun 01 01:35:02 just dont do that Jun 01 01:36:52 yeah i did it differently Jun 01 01:37:06 hey g00s Jun 01 01:37:06 AsyncTasK> Jun 01 01:37:12 android studio doesn't work too well on my system unfortuntely Jun 01 01:37:35 i have no idea why this isn't working Jun 01 01:37:47 KaylieG: sounds like Eclipse doesnt work too well either Jun 01 01:37:49 ;) Jun 01 01:38:14 haha i know that it's terrible, but it always works for me usually Jun 01 01:38:17 g00s: i got an idea.. why dont we as #android-dev work on a open support library Jun 01 01:39:00 g00s: things like the Lazy loading adapter and stuff.. get it up on maven/jcenter so it can simply be included in projects to provide those utilities every wants Jun 01 01:39:27 whenever we come up with a solution to a problem in here it can be suggested to be included in the library Jun 01 01:39:44 go through a few stages of acceptance before going into stable Jun 01 01:39:48 would be interesting Jun 01 01:40:46 CedricBeust_: what do you think? Jun 01 01:41:44 i really dislike how this list adapter stuff uses positions instead of indices Jun 01 01:41:54 * Napalm watches the hay balls roll in the silence Jun 01 01:42:06 aspire: positions are indices Jun 01 01:42:06 this is going to throw me off Jun 01 01:42:13 is it? Jun 01 01:42:16 are they* Jun 01 01:42:16 yes Jun 01 01:42:21 what does getCount return Jun 01 01:42:27 the total Jun 01 01:42:28 lol Jun 01 01:42:44 it returns the size Jun 01 01:42:47 the total number of indices/positions you have Jun 01 01:42:51 indeed Jun 01 01:42:57 the number of items in my list Jun 01 01:43:03 yus Jun 01 01:43:16 well the number of items you want to "adapt" Jun 01 01:43:25 oh ok Jun 01 01:43:27 haha Jun 01 01:43:31 minor confusion there Jun 01 01:43:53 same difference really Jun 01 01:44:03 im trying to create a toast from my fragment, do i use getActivity().getApplicationContext() ? Jun 01 01:44:04 should i be compiling with 22 instead of 21 or something? Jun 01 01:44:10 for the context* Jun 01 01:44:21 my phone is still running 21 and that's where i test it, if that makes any difference Jun 01 01:44:23 aspire: no, use your getActivity Jun 01 01:44:39 KaylieG: you probably want to target 22 Jun 01 01:44:43 oh yeah Jun 01 01:44:45 thanks Jun 01 01:46:07 ok new question: i'm trying to create a toast from my adapter Jun 01 01:46:30 do i use getContext() ? or is that something different Jun 01 01:48:53 aspire: what? Jun 01 01:49:15 aspire: what method in your adapter are you in? Jun 01 01:49:25 is this in an AsyncTask? Jun 01 01:49:33 yeah Jun 01 01:49:47 its a private non static class in my list adapter class Jun 01 01:49:52 which extends array adapter Jun 01 01:51:20 is the support repository required? Jun 01 01:51:42 no Jun 01 01:52:02 KaylieG: the support repository is the m2 (maven 2) local repo Jun 01 01:52:24 oh so i guess that wasn't the problem then Jun 01 01:52:44 i'm using AsyncTask#executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); Jun 01 01:52:59 there multiple sdk build tools available in the sdk manager, do i need all of them? Jun 01 01:53:15 nope Jun 01 01:53:23 you only use the ones you want Jun 01 01:53:47 KaylieG: normally you only need the latest.. but you might have a project that requires the older ones. so they are there if you need them. Jun 01 01:54:54 ah okay Jun 01 01:56:02 don't you guys get annoyed by us newer folk constantly asking what must seem like really silly questions? Jun 01 01:56:22 Napalm sounds like a good idea, but often these things are best reused as design patterns Jun 01 02:00:21 is there a library or guidelines for a "What's new" dialog on first launch? Jun 01 02:06:30 KaylieG, absolutely Jun 01 02:07:58 jab416171: I don't think there's a guideline. It's not really a standard thing. Google will know whether there's a library but, honestly, it can't be anything more than a simple Dialog[Fragment] in most cases. Jun 01 02:08:15 i've narrowed down the problem to just backgroundTint Jun 01 02:08:32 "error: Error: No resource found that matches the given name: attr 'backgroundTint'" Jun 01 02:08:39 the rest have been dealt with Jun 01 02:09:33 KaylieG: delt with? how? Jun 01 02:10:17 lol restarting eclipse did the trick after i removed and added appcompat as a dependency Jun 01 02:10:48 i'm taking your android studio suggestion more seriously now lol Jun 01 02:11:00 KaylieG: what version of appCompat lib your using? Jun 01 02:11:04 it should be 22.2 Jun 01 02:11:07 it should be 22.2.0 Jun 01 02:12:00 that might be it actually Jun 01 02:12:09 where is the appcompat version mentioned? Jun 01 02:12:32 Napalm, i figured it out Jun 01 02:12:33 :) Jun 01 02:12:55 Napalm have you used the new databinding thing yet ? Jun 01 02:13:04 stoned: figured what out? Jun 01 02:13:09 g00s: not yet Jun 01 02:13:23 Things. Jun 01 02:18:13 g00s: They wrote it in Kotlin. But I'm told this might not mean much. Jun 01 02:18:45 TacticalJoke sorry, what did they write in kotlin ? Jun 01 02:18:56 The new data-binding thing. Jun 01 02:19:41 You can see the dependency in the POM. Jun 01 02:19:57 :O Jun 01 02:23:42 hm, dont see it - looking at com.android.databinding:library pom Jun 01 02:24:03 weird, it depends on baseLibrary but ... where is that Jun 01 02:24:40 Oh. danijoo gave me the link earlier. I was private browsing (for some reason) and I don't have it. ;| Jun 01 02:24:55 I can't recall which domain it was. Jun 01 02:27:15 TacticalJoke ugh i'm confused, library-1.0-rc0.pom has a dependency on baseLibrary, where is that ? Jun 01 02:28:37 i ack'd the whole tree for baseLibrary and nothing shows up Jun 01 02:29:21 Hmm, not sure. Jun 01 02:30:26 lol i see http://sys1yagi.hatenablog.com/entry/2015/05/29/221525 Jun 01 02:31:28 heh they use stringtemplate 4 Jun 01 02:31:33 ST does kick ass though Jun 01 02:43:51 Hey guys everytime I build the app and run it on my cell phone the app sometimes doesn't update . It stays the same, I have to uninstall it and run the app again so that the code get's updated. Any ideas? Using Intelij btw Jun 01 02:56:50 Zenger: if you make a code change, it probably rebuilds? Jun 01 02:57:58 It should but it doesn't. I do a lot of Logs and Debugging to test if it works, but the logs just stay the same **** ENDING LOGGING AT Mon Jun 01 02:59:59 2015