**** BEGIN LOGGING AT Tue Apr 12 02:59:58 2016 Apr 12 05:10:01 https://www.genymotion.com/cloud/ Apr 12 05:10:07 so that's what it was about ;) Apr 12 05:10:18 guess I was quite right Apr 12 05:18:30 gordon_ hopefully not hosted on GCE :D Apr 12 05:20:03 hehe Apr 12 05:22:33 why specify a view like this : Apr 12 05:24:13 probably because it's in module Apr 12 05:24:18 I mean android project library Apr 12 05:25:24 looking through google keep raised more questions than it solved :/ Apr 12 05:25:43 too bad google doesn't explain a lot of the stuff going on there Apr 12 05:26:02 I looked at Photos too - its as if each app is done by a different company Apr 12 05:26:10 totally different structure Apr 12 05:26:54 )and ? Apr 12 05:27:06 not the same team probably Apr 12 05:28:50 that goes without saying, but the google apps are really a 'product line' and you would expect principles of product line engineering to dictate some common patterns and structure Apr 12 05:29:16 Is there any way to get the old ram-usage screen back in Android M? Apr 12 05:29:35 It's totally useless for debugging, and even worse for trying to force close only some services, but not all. Apr 12 05:29:53 I'll probably have to root, fuck this fucking shit. Apr 12 05:30:10 Every single day Google breaks my legs, how am I supposed to work like this? Apr 12 05:30:51 justJanne wait until you have to convert to swift :P Apr 12 05:30:57 * g00s runs Apr 12 05:31:28 Hey guys, where can com.android.ex package be found in Github? Apr 12 05:32:16 And why is it named "ex"? Apr 12 05:34:20 razzledazzle they broke up ? Apr 12 05:34:22 * g00s shrugs Apr 12 05:34:34 hahaha Apr 12 05:34:35 g00s: which wont happen Apr 12 05:34:59 heh Apr 12 05:35:12 I quote g00s's answer as the correct one Apr 12 05:35:15 quote = vote Apr 12 05:35:18 and I quote it too :P Apr 12 05:35:26 what answer Apr 12 05:35:38 https://android.googlesource.com/platform/frameworks/ex/ Apr 12 05:35:53 can't find that one in Github Apr 12 05:36:18 like many other things Apr 12 05:51:25 time to invalidate cache & restart.. like everyday Apr 12 05:52:32 adq set up a cron job ! Apr 12 05:55:09 adq i put enable / disable ADB in the toolbar because i have to keep toggling that ... Apr 12 05:55:18 damn Apr 12 05:56:28 g00s: HAI Apr 12 05:57:27 i picked the adb icon from material icon collection :D Apr 12 05:57:37 Why does the design lib rely on appcompat? I can go look through the code but I'm feeling lazy :P Anyone know? Apr 12 05:57:37 time to walk the dog Apr 12 05:57:53 surf2b1 yeah, strange in a few places it does Apr 12 05:57:59 probably to get the "latest" stuff Apr 12 05:58:20 i remember some theme attributes being defined in appcompat Apr 12 05:58:25 and styles Apr 12 05:58:57 g00s, seems like such a stupid decision to me. What if I don't plan on using appcompat but want to show a simple snackbar. Apr 12 05:59:10 hum, i see click bait sites increasing recently, lot of them scrapping stackoverflow Apr 12 05:59:53 surf2b1, then you'd better proguard otherwise you end up with zillion of things your app doesn't event use Apr 12 06:00:02 + minify Apr 12 06:00:48 adq, yeah, I know. Even with proguard and shrinkResources ability I still think it's a dumb move :P Apr 12 06:01:37 well, not going to be the devil advocate, but if you depend on design which depends on appcompat just for a snackbar.... :p Apr 12 06:01:47 guess who is doing dumb move Apr 12 06:02:15 adq, I don't.. just hypothetical. Because in a year or 2 the suggested minSdk will be 21 Apr 12 06:03:14 no need for appcompat then, but I'm sure I'll want to use CoordinatorLayout, FAB, and SnackBars Apr 12 06:03:51 again, the support lib like appcompat embed the "latest" fixes (and bugs sometimes too) Apr 12 06:04:12 so if a device is not up to date (like it's very often the case), you can still get newest stuff via appcompat Apr 12 06:04:50 isn't appcompat mostly for backporting the ActionBar/Toolbar? They should just keep anything else with support-v4 Apr 12 06:04:58 and i think this is good despite the size cost, because you cannot really trust manufacturer to provide android update Apr 12 06:05:08 (or even worst in case of samsung, they broke things a lot) Apr 12 06:05:44 surf2b1, not sure, cannot answer for that Apr 12 06:07:55 The large issue is that appcompat is even required. Apr 12 06:08:34 But I don't want to talk about that, otherwise I start ranting again Apr 12 06:08:56 :)) Apr 12 07:24:37 hello Apr 12 07:25:16 ohai Apr 12 07:26:18 ohai hai Apr 12 07:32:58 aviraldg: HAI Apr 12 07:51:34 Hi everyone Apr 12 07:51:37 Hi Apr 12 07:55:01 hi AlexandruM Apr 12 08:22:59 Hi. Is this possible to change width of toolbar's up button? The one which I set using setDisplayHomeAsUpEnabled? Apr 12 09:27:45 What does the argument selectionArgs mean in query method of ContentResolver? Apr 12 09:29:44 http://developer.android.com/reference/android/content/ContentResolver.html#query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String) Apr 12 09:30:18 Say for the user dictionary. selection would be WHERE frequency = 100. Apr 12 09:30:47 selectionArgs - No exact equivalent. Selection arguments replace ? placeholders in the selection clause. Apr 12 09:30:54 Then you put the 100 in selectionARgs Apr 12 09:31:30 ah! So selection is frequency and selectionArgs is 100. Apr 12 09:31:37 Thanks that makes sense now. Apr 12 09:36:25 Yes. Apr 12 10:00:34 is it possible to put some if statement in build.gradke ? Apr 12 10:00:38 build.gradle* Apr 12 10:01:11 I would like to put " useLibrary 'org.apache.http.legacy'" Apr 12 10:01:23 if my target sdk is lower than 23 Apr 12 10:06:13 my project is broken... none of the dependencies get resolved -.- Apr 12 10:11:44 Hey. How to check the event of opening and closing of android.support.design.widget.NavigationView Apr 12 10:41:25 LegendThinker: Subclass ActionBarDrawerToggle Apr 12 10:41:35 LegendThinker: then implement onDrawerSlide Apr 12 10:42:09 Sorry, I meant DrawerListener Apr 12 10:42:53 thanks :) Apr 12 11:31:36 hi guys, I've a doubt, where i can find some FAQ for newbie android developer? Apr 12 11:32:55 tommy``: do courses, tutorials and read docs Apr 12 11:33:06 Anything specific you where wondering about? Apr 12 11:34:55 chrisaardal: yes, i'd like to learn with android-studio because my gf have a thrift shop and i'd want to know how the property of the app could update news, photos, infos, events, ecc... Apr 12 11:38:30 I mean, i write for her the app... then how she keep the app updated with photos, news, etc... Apr 12 11:39:40 tommy``: Seems like she would need to have a web-interface connected to the same backend as the Android-app Apr 12 11:40:36 in other words, you would need to implement a REST-api on a server connected to a DB Apr 12 11:40:38 chrisaardal: just don't need only a web-server /web-site where upload the pictures or get rss feed? Apr 12 11:40:49 You could do that Apr 12 11:41:57 ok, so i could get some web space and do the magic Apr 12 11:42:13 or also get pictures or other from social networks i presume Apr 12 11:42:40 Imgur has an open api if you only would like pictures Apr 12 11:43:13 upload with a user, consume the imgur api with you'r app Apr 12 11:43:27 I use Debug.waitForDebugger(), because I need to debug the app during startup. For some reason the break-points after waitForDebugger() are not caught. Is there anything else I need to configure? Apr 12 11:44:15 chrisaardal: that's good idea, as regards news I could use facebook state for exmaple? Apr 12 11:50:34 how can I pass object instance from one fragment to another with fragment manager? Apr 12 11:52:56 hello alignparentright in relative layout not working for RTL Apr 12 11:54:11 I have component inside relative layout which is android:layout_alignParentRight="true" but in RTL it also displaying alignright Apr 12 11:54:38 StephenS: http://developer.android.com/training/basics/fragments/communicating.html Apr 12 11:55:14 which should be opposite I guessed Apr 12 11:56:12 RTL right-to-left? Apr 12 12:00:10 Runtime Library? :) Apr 12 12:00:38 Or relative layout? xD Apr 12 12:00:41 Or an rather obsolete type of digital logic? Apr 12 12:01:00 hahaha Apr 12 12:01:03 mind blown Apr 12 12:01:17 Haha, might as well be using diode ROMs if using that junk. Apr 12 12:01:55 yes chrisaardal Apr 12 12:02:06 Return to loader <--- made this up for what say, terminals do Apr 12 12:02:10 :) Apr 12 12:02:21 * alphamule grasps straws Apr 12 12:02:26 who uses right to left layouts ?! :o Apr 12 12:02:35 Several languages Apr 12 12:02:42 Most from Asia. Apr 12 12:02:46 Dayumm Apr 12 12:02:48 Pain Apr 12 12:03:28 would assume its mirrored then Apr 12 12:03:33 english and arabic.. Apr 12 12:03:47 alignright = left on the screen? Apr 12 12:04:04 If you have the software installed... "Ctrl + the right Shift key changes Text direction to Right-to-Left." Apr 12 12:04:20 Not so useful for English. Apr 12 12:05:32 In some languages, left-to-right is a modern standard but people still use right-to-left. Apr 12 12:05:47 Same way some people still write with cursive in English. Apr 12 12:06:21 Google has a list of these... Apr 12 12:07:02 http://superuser.com/questions/471692/how-to-change-the-text-direction-on-windows Apr 12 12:08:24 https://www.google.com/search?q=right-to-left+languages It comes up with a list :P Apr 12 12:11:19 https://en.wikipedia.org/wiki/Bi-directional_text Haha Apr 12 12:11:27 https://unsee.cc/tebimopa/ this is my problem Apr 12 12:11:34 I remember some exploits with filenames using that. Apr 12 12:11:59 "Unfortunately the images were deleted as requested." Apr 12 12:12:22 Seems self-explanatory. Have to use a different image site. :/ Apr 12 12:12:39 sorry guyz https://unsee.cc/sebudigo/ Apr 12 12:13:33 Weird, it's still not working. Apr 12 12:15:27 Oh, it's one of those "omg don't right-click but oh look file is listed in Inspect elements" sites. Apr 12 12:16:01 Didn't even bother enabling JS. Apr 12 12:16:24 preventDefault <-- Pretty obvious method. Apr 12 12:27:15 Good morning, I've stopped using native emulator for some time. Using just Genymotion. With this update I'm thinking to give it a chance again. I really interested about "live reload". So to use the new stuff I just have to create the AVD and run on it ? just like before ? Apr 12 12:28:28 it it working justh with Marshmallow or even in Lollipop ? Apr 12 12:28:51 Don't even bother, just turn insta run off and save yourself a headache Apr 12 12:35:52 Do you use to run emulator in witch device ? Apr 12 12:41:39 "The HTC 10 will come in two variants with different Qualcomm Snapdragon processors to cater for different market needs. They will both offer the same design, audio, camera and display, with a similar software experience and battery life." Apr 12 12:41:48 that's a slightly ominous comment... Apr 12 12:48:36 Leeds has experienced marketing departments before. Apr 12 12:49:20 im sorry Apr 12 13:47:04 If I want to reuse an AlertDialog, what do I need to do to prevent the Exception IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. when calling AlertDialog.show()? Apr 12 14:06:23 people Apr 12 14:06:25 hi Apr 12 14:06:27 so Apr 12 14:06:56 If I want to use retrofit and gson to save the gson object where should I start looking? It kind of looks like I should be looking towards a customconverter, but something tells me there is a simpler way. Apr 12 14:07:47 did someone tried to get youtube channels with Youtube data api v3? I mean new YouTube.Builder(....) Apr 12 14:07:49 ? Apr 12 14:08:32 if someone did, please tell me, should i use API_KEY for getting channels? Apr 12 14:10:52 ondroed: http://stackoverflow.com/questions/26117184/how-to-put-api-key-into-youtube-builder-in-youtubes-android-api Apr 12 14:12:43 thanks Apr 12 14:19:12 better question, I am using RxJava so it seems like I can use an observable to do what I am trying... any push in the right direction would be appreciated. Apr 12 14:20:53 Can't run any virtual devices in Android Studio, it tells me "Your CPU doies not support required features (VT-x or SVM). How can I work around this? Apr 12 14:21:50 quick thought, gennymotion, but the question is wtf does that mean. Hmm... Apr 12 14:22:43 jasus[away]: looks like you have to enable it at the bios level Apr 12 14:22:50 http://stackoverflow.com/questions/21635504/error-during-installing-haxm-vt-x-not-working Apr 12 14:23:43 jasus[away]: get a new CPU Apr 12 14:29:36 whats your CPU? Apr 12 14:31:13 Ping_2_Ur_Pong: rxjava wiki Apr 12 14:31:18 I found what I was looking for, for those wondering .doOnNet(new Action1<>(){}); So new question, is there an rxjava mechanism for saving a file. I don't want to spin up an async task Apr 12 14:31:29 AMD FX Apr 12 14:31:31 ondroed: ya know I didn't even think to look up rxjava wiki Apr 12 14:33:02 How do I update -source to 8? Apr 12 14:33:06 In AS Apr 12 14:33:31 Ping_2_Ur_Pong: if i use apiKey - i'm getting 'invalid credentials', but without apiKey i'm getting 'Access Not Configured. YuoTube Data Api has not been used....' Apr 12 14:34:11 jasus[away]: which FX? Apr 12 14:35:57 Leeds: AMD FX-8350 8core Apr 12 14:36:09 Whats the deal with java 8? Apr 12 14:36:32 jasus[away]: yeah, that should certainly support it Apr 12 14:36:35 ondroed: https://developers.google.com/youtube/v3/guides/working_with_channel_ids#channel-ids-in-the-data-api-v3 if you click on the blue links looks like they allow you to shoot off the request from your browser Apr 12 14:37:05 drose379: what do you mean? From what ive seen pretty damn nice. Apr 12 14:37:24 Can I use it in AS? Apr 12 14:37:27 Ping_2_Ur_Pong: Apr 12 14:37:34 yea Apr 12 14:37:38 How do I set that up? Apr 12 14:37:45 just need to change in your gradle.build Apr 12 14:37:59 leeds: basic googling says Hyper-V might be an issue. Apr 12 14:38:03 Which one Ping_2_Ur_Pong Apr 12 14:38:28 http://stackoverflow.com/questions/31528782/is-jdk-1-8-fully-supported-by-android-studio Apr 12 14:38:56 So I should stick with 1.7? Apr 12 14:39:01 jasus[away]: presumably you're on windows... Apr 12 14:39:13 Leeds: Windows 10 yeah. Apr 12 14:40:41 Ping_2_Ur_Pong: I dont see anything in build.gradle Apr 12 14:40:52 read the link Apr 12 14:42:00 Ping_2_Ur_Pong: it says to use JDK 7 Apr 12 14:42:09 it doesnt Apr 12 14:42:58 Huh? Apr 12 14:43:30 It says some features in 1.8 are not yet supported Apr 12 14:43:41 dude read the entire link. There are multiple explanations on how to set it up, with a link to jack on developer.android Apr 12 14:44:06 Oh I was just reading the accepted answer Apr 12 14:45:00 It says add to your build.gradle but doesnt say which one Apr 12 14:45:59 except for lambda backport, no features in Java 8 are supported by android Apr 12 14:46:09 Ill just use lambdas then Apr 12 14:46:36 What is .jack? Apr 12 14:47:07 Hm so it skips .class and goes from .jack to .dex it looks like Apr 12 14:47:17 drose379, jack and jill Apr 12 14:47:35 So I need jack on to use 1.8 Apr 12 14:47:41 http://tools.android.com/tech-docs/jackandjill Apr 12 14:50:03 will java 8 fully be supported by undroed so all jvm-related languages will be able to run on androed? Apr 12 15:12:33 no Apr 12 15:12:58 can an Android Studio project be imported into another Android Studio project ? Apr 12 15:13:20 jack/Jill can barely process normal java bytecode Apr 12 15:13:35 I don't hold much hope. for the full range allowed by the jvm Apr 12 15:27:46 I'm getting "Cannot launch AVD in emulator" libGL: unable to lead driver: r600_dri.so" on newest sdl Apr 12 15:28:02 anyone else have same problem? Apr 12 15:28:36 How do you update a RecyclerView's custom adapter whenever data is changed? Apr 12 15:30:32 depends on if its full data update or just a single element. Apr 12 15:31:13 single element Apr 12 15:31:17 Well maybe full data Apr 12 15:31:19 I'm not sure Apr 12 15:31:40 notifyDataSetChanged() Apr 12 15:31:45 It's strange the data I'm getting from firebase is all there but it's in the wrong order whenever I first load the fragment Apr 12 15:31:53 if I go back into the fragment it's in the right order :D Apr 12 15:31:58 notifyItemChanged(int) for a specific element Apr 12 15:32:02 I tried using notifyDataSetChanged() Apr 12 15:32:25 specifically after each item is added Apr 12 15:32:41 and immediately after the adapter is set Apr 12 15:33:03 I'm not sure what I'm doing right now I'm just changing code and hoping it'll work Apr 12 15:34:14 put a breakpoint in onBindViewHolder and check the position against what's being loaded Apr 12 15:35:06 I can really only notice the error on the very last position Apr 12 15:36:15 then keep pressing resume until the last position or put an if statement to check when the position == datatype.length-1 Apr 12 15:36:51 Okay, so I did a test where I changed the data in Firebase and it updates the data correctly Apr 12 15:37:03 it just seems whenever it's initially loaded it messes up for whatever reason Apr 12 15:37:10 I'll have a look at the breakpoint Apr 12 15:37:19 any idea what I should be looking for? :D Apr 12 15:41:38 Hi! i have a recurrent theme. After lollipop, the use of activity manager to detect when application goes to background is not working yet, anybody have an actual solution to this problem? Apr 12 15:43:06 use the right api Apr 12 15:43:22 activity manager has never been the solution to that Apr 12 15:43:34 lifecycle listener is a place to start Apr 12 15:48:07 pfn , when you have a big application with some entry points, call external components, etc.. and you need to detect if your application is in the foreground or background to connect a chat service for example, you need to know in every pause or stop if your application is in the foreground Apr 12 15:48:27 pfn lifecycle listener it's ok for the lifecycle Apr 12 15:48:53 pfn, but not to detect if your process is in the foreground Apr 12 15:49:49 pfn, that is my question... Apr 12 15:50:26 false Apr 12 15:50:38 already answered, lifecycle listener Apr 12 15:53:36 somebody has another answer? Apr 12 15:58:59 you already have your answer, there is no other Apr 12 16:02:30 because of the complexicity of my application...comparing my package name with the package name of the top activity on activity stop i resolve the problem in the past Apr 12 16:03:22 it's not so simple for me using lifecycle listener, and have no guarantee that this adjusts to all of my requierements Apr 12 16:04:09 apocalipsis: you need to know if your application is sent to the background? ie... it is no longer in the foreground? ie... the user isn't presently using it? Apr 12 16:05:13 Ping_2_Ur_Pong: I checked the position, it's one less than the other array lists. So I have 4 arrayLists: booking date, booking time, booking size and customer name. Apr 12 16:05:23 * the size is 1 less Apr 12 16:06:03 yes Ping_2_Ur_Pong, in all of the circumstances, recents apps open, push clicked, home and back button Apr 12 16:06:10 list and arrays are always one less. They are zero indexed but return the number of elements within them. Apr 12 16:06:44 apocalipsis: override application. public void registerActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callback) Apr 12 16:07:21 Ping_2_Ur_Pong: but all 4 should have identical sizes, I have 3 pieces of data coming in and the customer names ArrayList says there's only 2 Apr 12 16:12:11 ad AndroidStuidio upgrade - I am upgrading from 1.5.1, from stable channel, now it says "Some conlicts were found" http://snag.gy/ZwOj1.jpg Apr 12 16:13:14 those might be files from visual paradigm, but not fully certain Apr 12 16:13:24 any idea what might it be? Apr 12 16:13:46 or did someone experienced similar behaviour with 2.0. upgrade? Apr 12 16:17:35 so should I proceed or hang my self :D Apr 12 16:17:36 ? Apr 12 16:18:30 is there any way to have fragments in keyboard? Apr 12 16:19:19 I am making a network request, when I get a response I want to always save the data. I have something that works but it seems really clunky. anyone that is better with rxjava and the idiosyncracies of it, that has an idea please take a look. Apr 12 16:19:21 http://www.hastebin.com/uqubizahey.coffee Apr 12 16:19:32 ActivityManager am = (ActivityManager) appContext Apr 12 16:19:32 .getSystemService(Context.ACTIVITY_SERVICE); Apr 12 16:19:32 List tasks = am.getRunningTasks(1); Apr 12 16:19:32 if (!tasks.isEmpty()) { Apr 12 16:19:32 ComponentName topActivity = tasks.get(0).topActivity; Apr 12 16:19:32 Apr 12 16:19:34 if (!topActivity.getPackageName().equals(appContext.getPackageName())) { Apr 12 16:19:37 setAppInBackground(); Apr 12 16:19:39 } Apr 12 16:19:41 } Apr 12 16:19:44 dude don't paste to channel Apr 12 16:19:49 use hastebin.com Apr 12 16:19:52 or pastebin.com Apr 12 16:20:06 ok Apr 12 16:21:44 that is a really shitty solution btw. You should know your applications state you shouldn't have to query outside the app to understand it. Apr 12 16:22:02 http://pastebin.com/qz66rQPv Apr 12 16:22:05 * Ping_2_Ur_Pong starts counting the ways that could not work. Apr 12 16:23:07 this solution works fine before lollipop Apr 12 16:23:33 I didn't say it didn't work, I said it was shitty. Apr 12 16:23:43 Do you call your mother to find out where you put your car keys? Apr 12 16:23:48 because i have some experienced problem with events on the past on some devices Apr 12 16:24:10 You are asking the OS "hey, am I running?" you should know if you're in the foreground Apr 12 16:24:15 with lifecycle events Apr 12 16:24:24 yes Apr 12 16:24:29 it's a shit Apr 12 16:25:01 but is the only way that works in my application in all the devices i have tested Apr 12 16:25:14 and works stable Apr 12 16:26:09 galaxy note, htc droid and others have some problems sending events in the lifecycle Apr 12 16:27:19 Why I'm getting Width 0 when trying to create this View by code ? I'm setting it to WRAP_CONTENT, but I'm getting 0 to width. In the xml file I'm showing what I'm trying to achieve. https://gist.github.com/wviana/ba9949312d8b2c30c8aa64b1f6116de2 Apr 12 16:30:33 apocalipsis: http://developer.android.com/intl/es/reference/android/app/ActivityManager.html#getRunningTasks(int) Apr 12 16:31:48 "This should never be used for core logic in an application" Apr 12 16:31:49 of course Ping_2_Ur_Pong, that is the problem... Apr 12 16:32:36 yes, i know that, but was the only stable way to interact with external components and works fine Apr 12 16:33:22 Hello? Apr 12 16:34:53 ANybody home? Apr 12 16:35:09 dude just ask your question Apr 12 16:35:45 Ping_2_Ur_Pong: if i receive the lifecycle events disordered, this cause that my application stays connected to a chat server maybe for hours, don't receive pushes... Apr 12 16:36:16 apocalipsis: possibly http://vardhan-justlikethat.blogspot.in/2013/05/android-solution-to-detect-when-android.html Apr 12 16:36:28 apocalipsis: why not just put this in a service, attach socket.io (or whatever websocket) and use a messagebus internal to your app? Apr 12 16:36:53 can I have fragments in InputMethodService? Apr 12 16:36:57 anyone? Apr 12 16:36:59 The service can receive the chat room messages, push them out inside the app, if the front end is running it will receive a message along the bus, and if it is not the message will be ignored. Apr 12 16:38:42 I'm trying to get some string from inside a button click to pass to a google spreadsheet Apr 12 16:40:34 jjj Apr 12 16:42:02 mButton.setOnClickListener( new View.OnClickListener() Apr 12 16:42:04 hiss Apr 12 16:44:07 i will do a test today with Ping_2_Ur_Pong response eviljames, to maintain battery performance with chat disconnected...that's the critical point in this kind of apps Apr 12 16:44:41 i will let you know if works fine Apr 12 16:44:57 thanks! Apr 12 16:45:07 Who uses Retrolambda? Apr 12 16:47:25 http://imgur.com/NG18JdO I need help getting the col1 and col2 strings. Apr 12 16:48:59 drose379, me uses Apr 12 16:49:54 Basically it just allows you to use lambdas with java 1.7? Apr 12 16:50:01 bitkiller: Apr 12 16:50:33 yep Apr 12 16:50:40 Sweet Apr 12 16:54:20 Is there some way to set the view that I'm creating through code style by a XML style file ? Something like a base style? https://gist.github.com/wviana/ba9949312d8b2c30c8aa64b1f6116de2 Apr 12 16:57:21 huh Apr 12 17:06:33 Ok I have a static inner class, and I need reference to context in there Apr 12 17:06:48 Would it be best to pass it in and store it in a WeakReference<> Apr 12 17:08:16 But then each time I use it id have to check if its null Apr 12 17:18:54 drose379: But the alternative is leaking that context all over hell Apr 12 17:19:52 So just check if its null before I use it s73v3r Apr 12 17:19:58 yup Apr 12 17:20:01 Sounds good Apr 12 17:20:07 thanks Apr 12 17:20:21 I also pass an anon class in there, I store that in a weak reference too Apr 12 17:20:23 That cool? Apr 12 17:27:59 hi i m developping a system application on a custom rom ; however when i to File.exists() on /storage/sdcard1/test ; the file never exists ? even if it do Apr 12 17:28:48 hello Apr 12 17:34:06 Does anyone have experience with Websockets and okhttp-ws? I'm just trying to connect to an endpoint, and keep getting onFailure or a crash. For me to connect to my endpoint, I have to send it a login message which is what I'm trying to do on the first connection. Is that wrong? Should I just connect first, and then send a message with the login json? Apr 12 17:34:38 just some rant: it's been about 1 1/2 years since i last used eclipse, and from what i remember, its code auto-formatting and auto-indent were much better than android studio Apr 12 17:38:21 troulouliou_div2, permissions ok? Apr 12 17:38:38 Biscuits, yes WRITE_EXTERN_STORAGE ... Apr 12 17:40:44 <_xor> Hey guys, dumb question, but...I have a list of cards that I'm filling. I have a custom XML layout for the cards. How do I set properties in in the layout or add a button listener in the code for each card? Apr 12 17:40:49 * _xor is a newbie Apr 12 17:40:50 Eclipse and intellij auto format is pretty much the same.. The defaults might be different, but I doubt one can do much more than the other Apr 12 17:42:42 _xor: listview onitemclicklistener Apr 12 17:43:21 <_xor> ah ok Apr 12 17:44:19 <_xor> Ok, so I get the general gist of it. I have an instance of the list container. I create content items, add them to my own array, & return them from the adapter (which is the data source basically). Apr 12 17:44:33 <_xor> The layout is used to setup the view, obviously, for each list item. Apr 12 17:45:04 <_xor> So it would make sense that when creating each list item, I would set a property on the item instance, & then reference that from within my layout. Apr 12 17:45:25 <_xor> I could do it the other way too and set specific layout properties from within creation of each item. Apr 12 17:46:04 bitkiller yeah like SimonVT mentions, formatting itself would be same between ... eclipse had some neat autocompletion features that intelliJ still doesn't have, and vice vers Apr 12 17:46:11 *vice cersa Apr 12 17:46:15 damn Apr 12 17:46:17 * g00s gives up Apr 12 17:46:40 Can anyone here help me with a ROM compiling error? Here's the error: http://pastebin.com/70nDKLLT Apr 12 17:48:26 <_xor> drose379: What I'm trying to understand is if I add a button to the layout of a card, & then I want to attach a click listenener to that button, where do I do that from? Apr 12 17:49:02 <_xor> drose379: onItemClickListener is for the whole card, right? Apr 12 17:49:08 Right Apr 12 17:49:13 Im not sure about the entire card though... Apr 12 17:49:19 I mean a button in the card* Apr 12 17:50:06 Could you do it in the adapter Apr 12 17:50:08 <_xor> Wait, nevermind. think I have it. Apr 12 17:50:14 g00s, SimonVT, i can't remember an exact case now. i'll return to the subject any time later. maybe open some issue, don't know. or just rant. kind of busy right now Apr 12 17:50:22 <_xor> http://stackoverflow.com/questions/28379302/add-clicklistner-for-button-inside-a-cardview-populated-using-a-recyclerview Apr 12 17:50:35 Now autocompletion, that was the whole reason I abandoned eclipse Apr 12 17:50:58 yep, autocompletion in AS is better Apr 12 17:53:26 Anyone experienced the "requestFeature() must be called before adding content" while showing a custom ProgressDialog that calls the addContentView method ? Apr 12 17:53:43 Stack Overflow is just not helping at all :S Apr 12 17:54:08 hi all, can somebody help me and explain what the difference between setup a test and real in app billing Apr 12 17:54:12 Anyone? Apr 12 17:54:47 i got an app in alpha channel, but every time i perform a in app purchase a real transaction is performed Apr 12 17:54:51 Startrek852: This channel is for app dev, try #android-root Apr 12 17:55:22 but every other registered tester got a testing purchase Apr 12 17:55:30 whats the difference there? Apr 12 17:56:45 SimonVT: #android-root told me to try this channel. Apr 12 18:00:05 hello? Apr 12 18:00:55 Guessing noone knows mate Apr 12 18:01:15 Startrek852: Well, tell them this is for app dev Apr 12 18:01:23 The topic says Root/custom ROMs, head to #android-root Apr 12 18:01:58 They told me to come here. Apr 12 18:02:06 They shouldn't have Apr 12 18:02:48 I thought this channel was supposed to be for all android development Apr 12 18:03:22 "Android application development" Apr 12 18:03:27 Says in the topic Apr 12 18:03:33 OK, sorry. Apr 12 18:03:58 Any other channels you can recommend? Apr 12 18:04:41 i have a custom view that has essentially wrapped an EditText. Is it possible to forward the inputType attribute down from the custom view to the edit text? Apr 12 18:06:50 Is it worth it to switch from ListView to RecyclerView Apr 12 18:06:59 bye Apr 12 18:07:07 drose379: how long is the list Apr 12 18:07:19 It varies really Apr 12 18:07:25 Usually fills the screen Apr 12 18:07:29 and then some Apr 12 18:07:42 probably Apr 12 18:07:50 Im more interested in the animations, I have a swipe down to sync option I think itd be cool if the new items swiped in or something like that Apr 12 18:07:53 drose379: Is your listview set up already? Apr 12 18:07:58 Yes s73v3r Apr 12 18:08:03 then probably not Apr 12 18:08:11 when you're looking at Android Device Monitor, the size of the files is in bytes? Apr 12 18:08:14 unless you want to fundamentally change something Apr 12 18:08:18 hi! Apr 12 18:08:20 Id like to learn how to use it Apr 12 18:08:26 And take advantage of the Animations Apr 12 18:08:38 where can I download the source file for the Android Gradle Plugin? Apr 12 18:08:46 is the plugin open source? Apr 12 18:09:02 is the project you’re currently working on something you’d like to ship? Apr 12 18:09:19 Yes s73v3r Apr 12 18:09:23 Its for work Apr 12 18:09:30 then leave it, and ship the project Apr 12 18:09:44 there will be time to learn recyclerview later. it’s honestly not that different Apr 12 18:09:53 Just uses viewholder right Apr 12 18:10:09 well, your listview should be using something like that too Apr 12 18:10:18 I disagree. Better to use the recyclerview, especially if the list can get long enough. Apr 12 18:10:20 What about for the RecyclerView.Animations though Apr 12 18:10:45 if they were deciding for a new view whether to use a recyclerview or a listview, I’d be with you. but their list is done Apr 12 18:11:24 what are the advantages of recyclerview over listview for long lists? I thought I heard once something about recyclerview reusing its views or something. Apr 12 18:11:35 listview does that too Apr 12 18:12:16 Ping_2_Ur_Pong | what are the advantages of recyclerview over listview for long lists? Apr 12 18:12:29 What about sorting a long list alphabetically, should that be done on a bg thread, seems like it may be slowish Apr 12 18:12:39 probably Apr 12 18:12:40 Depending on the length of the list Apr 12 18:12:54 So would you just throw it in a runnable s73v3r Apr 12 18:13:00 i guess Apr 12 18:13:15 How else would you throw a task on a bg thread? Apr 12 18:13:29 you’re fine Apr 12 18:13:50 Either that or AsyncTask? Apr 12 18:13:56 it really does not matter Apr 12 18:14:11 Hm, ok cool Apr 12 18:14:16 just do your thing and ship Apr 12 18:14:26 Trying to make this thing solid Apr 12 18:14:43 + maintainable Apr 12 18:14:44 but you’re quibbling over things that do not matter Apr 12 18:14:56 * Ping_2_Ur_Pong doesn't get why everyone is exhorting the various values of recyclerview over listview. /me googles Apr 12 18:15:01 some info about the gradle plugin? are the sources avaiable? Apr 12 18:15:07 True s73v3r Apr 12 18:15:24 the extra 2% of maintainability you’re trying to eke out will never matter if you don’t actually get into maintenance mode Apr 12 18:15:36 Right yes Apr 12 18:16:05 Ping_2_Ur_Pong: RecyclerViews are more flexible than listviews, as they can have far more configurations than just an up and down list. Apr 12 18:16:17 HunterD: https://github.com/gradle/gradle Apr 12 18:16:23 let the google be with you Apr 12 18:16:47 if you’re starting a new list, then you should be using the RecyclerView. If you already have a ListView, and don’t need to change the configuration, however, stick with what you’ve got Apr 12 18:16:59 is this the android plugin? :( it does not look so Apr 12 18:20:05 HunterD, yes, they're in the AS repository for some reason Apr 12 18:20:30 Mavrik: do you have a link? :) Apr 12 18:20:50 https://sites.google.com/a/android.com/tools/build/gradleplugin Apr 12 18:21:08 thank you!! :D Apr 12 18:21:58 Ping_2_Ur_Pong, because they're cargo culters :P Apr 12 18:26:16 Hello! WIth Dagger 2, can you still inject static fields? - I'm not going to, I'm just curious. Apr 12 18:27:25 no Apr 12 18:27:32 and it's removed from master in Dagger 1 Apr 12 18:28:12 JakeWharton: I was just watching one of your videos :P Apr 12 18:28:34 ie, If you are real jake warthon Apr 12 18:29:49 i am not the real jake warthon Apr 12 18:30:02 I knew he was an impothter Apr 12 18:31:31 the real JakeWharton, if that was in fact him, is living like a king on an island off Patagonia Apr 12 18:32:42 Pfft he lives in Panama, get it right Apr 12 18:33:19 What's a good way of reading data from 2 tables with many to many relation? Say I have a tables movie & genres and their many to many relation table movie_genre. Now when showing list of movies I'd query the movie table for list of movies and then query for genres of each movie, it's really slow, but if I join all 3 tables it creates one entry for each movie-genre match. Apr 12 18:34:23 So a movie `Civil War` with genre 1 2 and 3 will have 3 entries Apr 12 18:35:04 isn’t that what you want? And then you’d query the movie_genre table for genres where movie.id = CivilWar.id Apr 12 18:35:38 You'll want to join movies to movie_genre, then join movie_genre to genre. It will return one record for each movie->genre match.. Apr 12 18:35:58 s73v3r: I'd be making 1 sql query for each movie, not really a good idea according to me Apr 12 18:36:16 astroduck, use GROUP_CONCAT on join? Apr 12 18:36:39 Mavrik: I don't know what that is, let me read about it, wait. Apr 12 18:36:58 i really should take a database class Apr 12 18:37:01 But yeah, you really wanna make a join with minimum fields you need, otherwise performance will be worse. Apr 12 18:38:03 you can do it with one query if you add: WHERE movie_id IN = ? - ? = your list of movies Apr 12 18:38:22 otherwise you've got the classic 1 + problem Apr 12 18:41:10 In NDK-land, I have a thread that needs to decode ffmpeg data into opengl textures. this thread needs an EGLContext in order to work. In order to get an EGLContext, I need an ANativeWindow*. Do I have to pass that window handle in from java? I cannot find a way to grab the active app's window handle Apr 12 18:41:26 How should i send GET request using retrofit with a header like this ? curl --header "Authorization: Token 1919191919" Something like this? @Headers("X-Authorization: Token 1919191919") Apr 12 18:41:39 yes Apr 12 18:41:51 explodes, pretty much yes. Apr 12 18:41:53 except one has "X-" and the other doesn't Apr 12 18:42:13 explodes, you can of course initialize an EGLContext in Java on a TextureView or whatever Apr 12 18:42:20 and render in NDK to that Apr 12 18:42:37 Mavrik: one thread will do the rendering, the other thread will do the decoding Apr 12 18:42:45 All in all, I need 2 contexts Apr 12 18:43:01 Why? Apr 12 18:43:45 One thread will queue up decoded audio/video frames, the other thread will draw them on the screen. this allows the next frame to be decoded without waiting for draws, and visa versa Apr 12 18:43:53 explodes: So in the end I'll have `Civil War` 3 times, each row with a different genre. Right? Or did I understand that wrong? Apr 12 18:44:02 (and a third thread will play the audio) Apr 12 18:44:24 explodes, so why do you need 2 contexts? Apr 12 18:44:25 astroduck: iff "Civil War" really belongs to three genres Apr 12 18:44:26 You only render to screen in a single thread. Apr 12 18:44:30 ffmpeg doesn't need a context. Apr 12 18:44:58 GROUP_CONCAT actually sounds great. I do need this data for display purposes only. Apr 12 18:45:02 Mavrik: each thread needs a context. glBindTexture(...) requires a context on the current thread, so I cannot draw the ffmpeg results into that texture without a context Apr 12 18:45:22 Why would each thread need a context? Apr 12 18:45:30 it's a requirement of opengl Apr 12 18:45:31 You're drawing in the rendering thread. Apr 12 18:45:39 Your ffmpeg decoder decodes and pushes out AVFrame Apr 12 18:45:55 You queue it until renderer thread draws it into OpenGL Apr 12 18:46:08 Don't mess around with multiple contexts, it's silly and it doesn't work reliably on many devices Apr 12 18:46:23 explodes: But if I did it your way, how would I display it using a cursorAdapter as now I have each movie x times, where x == number of genre it has? Apr 12 18:46:35 You always touch OpenGL from a single thread. Apr 12 18:46:41 Typical producer/consumer design. Apr 12 18:46:59 so you're suggesting that when I draw an AVFrame, in my GLSurfaceView.Render, that is when I dump pFrameOut->data[0] into a gl texture, and then draw it? Apr 12 18:47:15 more or less / and in appropriate methods, of course Apr 12 18:48:14 astroduck: you grab all of your movies and all of the genres in a single query. using group_concat, the movies' columns will have the list of genres as comma-separated values Apr 12 18:48:26 Mavrik: alright man, I'll see what I can do - Apr 12 18:48:38 explodes, yeah Apr 12 18:48:46 that way you avoid the whole multiple texture problem Apr 12 18:49:03 and passing textures between contexts etc. Apr 12 18:49:04 Mavrik: Mind if I bug you directly with questions in the future? (next few weeks, even months :P) Apr 12 18:49:29 Uhh, I'm not going to be around much, but I guess you can try here or on #ffmpeg ;) Apr 12 18:49:57 Oh, that's where I've seen you Apr 12 18:56:45 my navigation drawer is not reacting to click when I open menu Apr 12 18:56:58 not sure why, it just happens, and Im not sure what I changed so drastically in code Apr 12 19:03:20 My problem solved! i shouldn't have send X- in X-Authorization Apr 12 19:21:05 I want to have my app associated with a custom MIME type, and to make that MIME type appear with a custom icon I specify in my manifest. Apr 12 19:21:43 I take it that the “icon” attribute of is supposed to do that … but it doesn’t appear to work on the devices where I’ve tried. Is it commonly busted, or should it mostly work? Apr 12 19:38:37 Hi guys, im trying to use admob to my app, but in the registration website says i need an adwords account, so, do i have to pay something for creating and adwords account Apr 12 19:38:40 ? Apr 12 19:39:11 first time using admob :) Apr 12 19:42:59 I have an API_KEY that I send on all requests. I hate that its sitting directly in my source. Suggestions on obscuring it? Apr 12 20:10:44 i find this baffling ... in google Keep they do a lot of this: one Layout is just a FrameLayout that includes another Layout. for example, for settings, they have: Apr 12 20:11:22 Apr 12 20:17:59 hi all, can somebody help me and explain what the difference between setup a test and real in app billing Apr 12 20:18:06 i got an app in alpha channel, but every time i perform a in app purchase a real transaction is performed Apr 12 20:18:10 but every other registered tester got a testing purchase Apr 12 20:18:12 whats the difference there? Apr 12 20:22:03 Can someone teach me how to build a vanilla device tree for my Moto X pure for AOSP? Apr 12 20:30:28 no Apr 12 20:33:22 gonna repost my question in here Apr 12 20:33:23 So i’m building an android/ios app with react-native, does anyone know how I can use the wifi the device’s connected to rather than just the cellular connection? Apr 12 20:39:42 wickeda, you need a test account different than your dev account + a credit card Apr 12 20:40:28 and you will be able to test purchase, also annoying but you have to use your app signed in release (same key used to sign the one you uploaded in alpha or beta), good luck Apr 12 20:41:58 SDK Tools 25.1.2 Apr 12 20:43:16 g00s: did you decompile keep? Apr 12 20:43:39 Ping_2_Ur_Pong i decompiled a few gapps out of curiosity Apr 12 20:44:02 what did you use? Apr 12 20:44:20 for that one i used jd-gui Apr 12 20:44:50 it has lots of issues though , some files cause it to barf totally Apr 12 20:45:04 I saw a really cool animation, used in the materical news paper app. Wouldn't mind looking into how they did it. Apr 12 20:47:47 i have AS 2.0 stable; when i select canary channel i see no updates - not even 2.1, is that normal ? Apr 12 21:00:18 Hi. Is there a way to convert android.webkit.CookieManager to java.net.CookieManager? Apr 12 21:01:03 g00s, nope Apr 12 21:01:20 Observed package id 'add-ons;addon-google_apis-google_inc-9' in inconsistent location 'C:\Users\pfnguyen\android-sdk-windows\add-ons\addon_google_apis_google_inc_9' (Expected 'C:\Users\pfnguyen\android-sdk-windows\add-ons\addon-google_apis-google_inc-9') Apr 12 21:01:24 wtf is spitting out these messages... Apr 12 21:01:28 maybe it's a way to force you to have 2 folders Apr 12 21:01:40 adq what updates are you seeing ? Apr 12 21:01:45 the latest sdk Apr 12 21:01:54 25.1.2 Apr 12 21:02:00 i mean for AS itself Apr 12 21:02:27 i got 2.1 preview something rc number, sorry i just exiter to install sdk tools Apr 12 21:02:48 oh then, i'm in canary, i see "no update" other than sdk tools Apr 12 21:03:04 few weeks i did not launch the stable version Apr 12 21:05:36 adq ok so then AS 2.0.0 is the latest Apr 12 21:07:16 g00s, http://tools.android.com/recent Apr 12 21:07:30 indeed then Apr 12 21:07:58 thanks Apr 12 21:08:08 forgot about that link Apr 12 21:08:17 it's often up to date modulo few hours near a release Apr 12 21:08:20 i've been on 1.5.1 since forever it seems Apr 12 21:08:25 damn Apr 12 21:08:35 oh come on, google published com.android.tools:repository to central/jcenter but there is no source in aosp... Apr 12 21:08:38 POS Apr 12 21:09:10 Rapitivo: http://stackoverflow.com/questions/12731211/pass-cookies-from-httpurlconnection-java-net-cookiemanager-to-webview-android Apr 12 21:09:57 I want to use my own .mk files in jni directory, but when using the new experimental gradle I get Error:Attempt to read a write only view of model of type 'java.lang.Object' given to rule 'android.sources { ... } Apr 12 21:10:34 here's my android.sources http://pastebin.com/gQGz1jb2 Apr 12 21:13:25 Ping_2_Ur_Pong: would be possible to do that in the opposite way? Apr 12 21:14:47 adq, my test account is different to my dev account. but the creditcard is the same. does it force the purchase to be real then? the app is signed so save on that side. Apr 12 21:15:04 nope, no worry for that Apr 12 21:15:26 you have to wait few hours sometimes after registering your sku product to be able to purchase them Apr 12 21:15:53 wickeda, when you purchase with a test account, it's explicitly stated you will not be charged Apr 12 21:15:57 im am able to buy it, but the purchase is real. so the money is really leaving my account :) Apr 12 21:16:10 well not im my case :) Apr 12 21:16:12 hum that's not normal, then you fails to set up your test account Apr 12 21:16:17 failed* Apr 12 21:16:36 how this could be failing Apr 12 21:16:38 you have to specify your email as tester Apr 12 21:16:49 the only thing i have to do is to enter the email adress Apr 12 21:16:59 the one linked to your primary google account on your (test) device Apr 12 21:17:04 and then accept the testing agreement Apr 12 21:17:08 nope Apr 12 21:17:15 not even need to enroll in the alpha or beta iirc Apr 12 21:17:31 just push the apk there, add the email as tester, had some iab products registered Apr 12 21:17:46 check, check, check Apr 12 21:17:54 for other testers its also working fine Apr 12 21:17:58 but not my :) Apr 12 21:18:04 then you're not using your primary account as tester on your device? Apr 12 21:18:12 thats true Apr 12 21:18:16 here we go Apr 12 21:18:21 its the second account on the device Apr 12 21:18:22 someone recently find a trick Apr 12 21:18:26 2 sec Apr 12 21:18:55 is it really so important? Apr 12 21:19:01 i just dont get the reason Apr 12 21:19:02 yes Apr 12 21:19:05 it's a known issue Apr 12 21:19:08 wickeda, https://github.com/googlesamples/android-play-billing/issues/2#issuecomment-209059021 Apr 12 21:19:39 wickeda, even if you get the reason you have to deal with it, you can just use this workaround (i haven't tested it) Apr 12 21:20:38 see, 3 years old Apr 12 21:21:04 oh man :/ Apr 12 21:21:53 ok ,thank you very much. will check out the link Apr 12 21:21:57 promo code does not work with payload verification, FYI :)) Apr 12 21:22:11 there are more bugs, left to you as an exercise Apr 12 21:22:18 hehe Apr 12 21:22:43 a kingdom for a bugfree software Apr 12 21:25:42 what is the best way to dl image and replace current imageview for that new pic? Apr 12 21:25:56 try picasso or glide Apr 12 21:26:31 what adq said Apr 12 21:26:47 Either / or both equally as good as each other Apr 12 21:27:20 yeah, they got few diff, picasso is lighter, glide got a bit more options iirc, try both and choose Apr 12 21:27:39 why dont just dl image Apr 12 21:27:53 and for imageview setImageBitmap(img)? Apr 12 21:28:29 because many things are involved and you would have to deal properly with those things Apr 12 21:28:43 so windows BSODs have QR codes now haha Apr 12 21:28:56 ahah yes saw that, still not seen a bsod in monthes though Apr 12 21:29:46 i don't think i've seen one in about 15 years :P Apr 12 21:31:00 adq, such as? Apr 12 21:31:20 network, lrucache, ui thread, memory, etc Apr 12 21:31:57 nothing of that is an issue Apr 12 21:32:07 I do all the stuff in ASyncTask and have exceptions for everything Apr 12 21:32:10 ... Apr 12 21:32:16 i haven’t seem them often, but when I do, they disappear far too quickly to be able to get any information from them Apr 12 21:32:33 ... <;p Apr 12 21:32:36 StephenS, just read their respective pages as: "Many common pitfalls of image loading on Android are handled automatically by Picasso" Apr 12 21:32:44 and avoid asynctask when you can Apr 12 21:32:50 avoid? :O Apr 12 21:32:51 (it's not really suited for network op too) Apr 12 21:32:52 what to use then? Apr 12 21:32:56 yes a v o i d like plague Apr 12 21:33:01 anything else Apr 12 21:33:05 such asd? Apr 12 21:33:13 such as you have to start reading things Apr 12 21:37:02 I'm using AsyncTask in my ap Apr 12 21:37:03 *app Apr 12 21:39:10 AsyncTasks have their uses Apr 12 21:39:18 Networking isn’t one of them, but they have their users Apr 12 21:39:19 uses Apr 12 21:39:42 I'm probably not using them for the right thing in my app Apr 12 21:40:00 Not happy with the way I've made this app, it's been so rushed just to meet the deadline I've been given Apr 12 21:40:14 Final year uni project Apr 12 21:48:04 hm. if you hide a view in AppBarLayout, which causes its size to change, it gets all messed up Apr 12 21:48:33 so if its 100dp high, and you hide a view and now its 50dp high, the scrolling behavior still assumes its 100 Apr 12 21:49:12 is there a way to inform CoordinatorLayout that stuff happened ? Apr 12 21:54:37 Any reason why the window color would be white above my toolbar in an activity? Apr 12 21:55:43 ..you mean the status bar? Apr 12 21:55:51 Yeah Apr 12 21:56:10 g00s, make any changes through the Behavior Apr 12 21:56:27 and what do you mean by hide, should be automatic if you make it gone Apr 12 21:56:35 drose379: theme/style or manually set it Apr 12 21:56:36 dependentLayoutChanged or whatever should be called and it does its thing Apr 12 21:56:39 pfn hm, i'm just calling View.setVisibility(gone) Apr 12 21:57:00 that of course works, but CL + APpBarLayout pretend as if nothing happened Apr 12 21:57:14 orbyt_: whenever I try to just add the toolbar with my regular theme, the app crashes saying I cant set the toolbar because this theme alreday has one, so I have to set the theme to NoActionBar Apr 12 21:57:19 Then the window is white Apr 12 21:57:24 I mean the status bar* Apr 12 21:57:34 its as if they measured the layout once and the scrolling behavior is based on that, regardless of whether it changes Apr 12 21:58:09 drose379: Yes, if your using a toolbar and setting it as an actionbar using .setActionBar or .setSupportActionBar then you need a NoActionBar theme Apr 12 21:58:38 and normally the status bar takes its color from the colorPrimaryDark property Apr 12 21:58:43 i think^ Apr 12 21:58:49 Yeah for some reason its white Apr 12 21:58:56 yea u said that Apr 12 21:59:34 ik Apr 12 21:59:52 g00s, perhaps requestLayout after marking it gone Apr 12 22:00:04 yeah i'll try that, thanks Apr 12 22:03:13 How do you reduce the number of items displayed in a recycler view? Apr 12 22:03:32 I only want 1 to be displayed but it's displaying the size of the dataset which I'm trying to filter Apr 12 22:04:50 getItemCount() specifies the number of items Apr 12 22:04:56 if thats what your asking Apr 12 22:07:32 Is that not done when the RecyclerView is created though? Is there no way you can reduce the number of items once it's created? Apr 12 22:08:57 take items in/out of your dataset Apr 12 22:09:15 and then notifyDatasetChanged() Apr 12 22:09:38 but I don't want to take them out of the dataset, just filter them temporarily Apr 12 22:10:53 copy the data and filter that? Apr 12 22:13:40 Think that sounds like the best thing to do s73v3r Apr 12 22:13:43 thanks guys Apr 12 22:14:37 markyosullivan: Plaid has a recyclerview filtering system in place, take a look at that if you want Apr 12 22:15:05 plaid has some good stuff in it, especially for UI Apr 12 22:15:33 since the last update it crashes on startup Apr 12 22:15:44 bug in filter code haha Apr 12 22:16:01 This it: https://github.com/nickbutcher/plaid Apr 12 22:16:22 g00s that's pretty funny, I'm asking how to do it and there's a bug with filtering in latest update :D Apr 12 22:16:54 its fine from fresh install, but if you deselect everything except material it crashes Apr 12 22:19:17 yeah, same thing. hasn't been fixed Apr 12 22:19:38 from fresh install, go to filter, deselect everything except material, and then exit & restart app Apr 12 22:23:17 'new social app from nintendo' no thanks haha Apr 12 22:25:14 :D Apr 12 22:25:17 Have you tried it out? Apr 12 22:25:28 lol no Apr 12 22:25:38 I heard about it but never tried it out Apr 12 22:38:26 s73v3r: worked like a treat, considered doing that at the start but thought there'd be a way to filter out the data in the adapter Apr 12 23:19:15 Ok for some reason when I try to set a custom toolbar as the supportActionBar, its telling me the activity already has a action bar Apr 12 23:19:32 But the activity is uisng AppTheme.NoActionBar, which as windowActionBar set to false Apr 12 23:19:43 Doesnt make sense Apr 12 23:20:55 And its only happening on my emulator, not on my device Apr 12 23:22:19 Ok hashmap returns null if I filter my wifi scanning to specific bssid (mac address) but it works fine if there is multiple results. here is the code http://pastie.org/10795703 and here is the logcat http://pastie.org/10795705 Apr 12 23:28:19 anyone have experience with GCM? The documentation isn't so spectacular... Wondering why I'm not getting a token Apr 12 23:40:04 has anyone read this book? http://www.amazon.com/Introduction-Android-Application-Development-Essentials/dp/013438945X Apr 12 23:40:17 there's only 1 review so i'm hesitant Apr 12 23:40:39 dcope i read the first edition :P Apr 12 23:40:44 i see that is 5e Apr 12 23:40:51 heh Apr 12 23:47:22 test Apr 12 23:49:07 Does anyone know how to see if one of my calls is still ongoing? Specifically, I basically just want to see if my web socket connection from okhttp ws is still open/connected. Apr 12 23:55:59 anyone know what SERVICE_NOT_AVAILABLE means for GCM registration? Apr 12 23:56:05 trying to get a token Apr 12 23:56:58 are you doing that on a device or on an emulator? Apr 12 23:57:17 and does your device have google play services? Apr 13 00:02:19 drose379: Are you setting `windowActionBar` and not `android:windowActionBar`? Apr 13 00:03:22 Otherwise just use Theme.AppCompat.NoActionBar, or whatever it's called, and see what happens. Apr 13 00:03:24 s73v3r: the device, and I'm pretty sure I have google play services... I also call it from a block that checks for play services Apr 13 00:04:56 can onLoadFinished happen after a fragment is detached? Apr 13 00:06:37 s73v3r: can SERVICE_NOT_AVAILABLE come from the remote side not having GCM enabled? Apr 13 00:06:55 or it's 100% client side? Apr 13 00:08:51 oh dear me I didn't notice they killed the network I was on Apr 13 00:18:02 looking at /r/android it appears the HTC 10 was released Apr 13 00:18:04 :P Apr 13 00:18:22 announced, not shipped yet... Apr 13 00:19:09 Leeds did you hear HTC was going to do next few years nexus devices ? Apr 13 00:19:18 Wonders if it's any good. It seems nexus 6p esque but I want a 6p that's a little shorter and fingerprint on the back not on the front Apr 13 00:19:21 rumours rumours let me buy one Apr 13 00:19:45 HTC seems like they are in big trouble, could be a life saver for them Apr 13 00:21:29 I'm not sure - it seems their problem has been more on the sales/marketing side for a while, hard to compete with the big guys Apr 13 00:29:34 Always thought of HTC as a "big guy" though. Just a big guy that sucked at making stuff the past 3 years. Apr 13 00:30:36 Anyone know the best way to hit my websocket with a ping every ~30 seconds so that the connection stays alive? My web socket protocol requires activity once every 30 seconds to make sure the connection doesn't close. Apr 13 00:31:15 eghdk i'd just Handler + delayed message Apr 13 00:32:31 g00s: Okay, may just do that in the onCreate of my BaseActivity Apr 13 00:33:05 greetings. I'm in need for 30 mins of time from a coder to make a ridiculously simple foreground app which takes a photo (with Macro setting on) and sends to hardcoded http url in a trycatch block inside a loop. Any prices? Apr 13 00:33:57 thats insulting Apr 13 00:34:32 no android camera app takes 30 minutes, and please read the topic (no advertising) Apr 13 00:36:51 ah, sorry i didnt read that. But I could make same app for windows c# in about 4-15 mins. And there I was thinking android was beautiful inside :P Apr 13 00:37:59 I have 6 Activities... there is a button that opens next activity... The last activity has a SUBMIT btn... But I want to submit button to return to activity 3... what should I google for? Apr 13 00:38:21 IrishGringo use one activity with fragment / views lol Apr 13 00:38:42 g00s: yea... seems like the best idea... Apr 13 00:38:46 yup Apr 13 00:38:48 do that Apr 13 00:39:50 IrishGringo maybe also check out the few wizard libraries out there Apr 13 00:40:49 "I don't know much about fresco. What's wrong with it?" "Nothing. It's just a random exception generator." bwahaha Apr 13 00:41:20 what's a good channel i can advertise in? Apr 13 00:41:26 none Apr 13 00:42:09 sounds legit Apr 13 00:42:45 What does? Apr 13 00:42:53 james56564 craigslist :) Apr 13 00:43:28 mark: i'm looking to hire someone for 1 hour for help, just wondered if there was a marketplace type channel Apr 13 00:45:29 Hmmm Apr 13 00:45:33 There's definitely something out there Apr 13 00:45:34 one sec Apr 13 00:46:46 https://hackhands.com/ Apr 13 00:46:55 I've got student credit for it Apr 13 00:47:14 You get $25 if you're a student from the GitHub student pack Apr 13 00:47:17 https://education.github.com/pack Apr 13 00:58:44 Is it possible to create a preference fragment? Apr 13 01:00:18 markyosullivan ? Apr 13 01:01:24 Nevermind Apr 13 01:01:34 I was looking at the wrong part of docs :D Apr 13 01:01:53 There's a doc page on preference fragment Apr 13 01:02:43 g00s where you live, you seem to be always on the same time as me Apr 13 01:02:51 Guessing it could be East Coast US? Apr 13 01:10:17 markyosullivan yes Apr 13 01:10:47 anyone gets this error: Attempt to read a write only view of model of type 'java.lang.Object' given to rule 'android.sources { ... } @ app/build.gradle line 31, column 5' Apr 13 01:11:09 I'm using gradle experimental Apr 13 01:11:28 Does anyone else use the ApplicationTest class to run unit tests? Apr 13 01:11:34 Comes with a new project Apr 13 01:12:47 no Apr 13 01:13:05 no missing no more ! Apr 13 01:13:43 Why? Apr 13 01:14:32 that is a great question Apr 13 01:14:44 ?? Apr 13 01:14:52 Im just testing basic DB stuff there Apr 13 01:15:03 Maybe some gson Apr 13 01:15:23 that goes against the spirit of the javadoc I jsut read for ApplicationTestCase Apr 13 01:15:52 No im just in the ApplicationTest class Apr 13 01:16:15 which extends something? Apr 13 01:16:31 Ah yes Apr 13 01:17:12 So what is wrong w/ it? Apr 13 01:17:42 so ill begin developing an app that will use webview and websocket, I heard that android webview does not support websocket, is this correct? is there a popular and reliable way to circumvent the problem? Apr 13 01:19:25 missingno: your nick bring memories back Apr 13 01:32:31 the Keep app uses this concept of a hierarchical 'Binder' Apr 13 01:32:44 very strange, never seen anything like this in another app Apr 13 01:33:25 are none of the g apps obfucated? Apr 13 01:33:54 there is something strange and profound going on here, i just haven't figured out what yet Apr 13 02:04:55 I hav a string resource "... Learn more!" Apr 13 02:05:07 I want just "Learn more!" to be a link Apr 13 02:21:27 then do so Apr 13 02:22:08 looks like SpannableString is what I need Apr 13 02:55:51 hmm Apr 13 02:57:10 hmm Apr 13 02:57:15 I think EventBus is about to save my life Apr 13 02:58:15 But the migration... **** ENDING LOGGING AT Wed Apr 13 02:59:58 2016