**** BEGIN LOGGING AT Tue Nov 24 03:00:53 2015 Nov 24 03:05:00 * pfn really likes the nick highlighting he has in qicr now Nov 24 03:07:25 https://plus.google.com/+PerryNguyen/posts/fi4kN7oue1Q Nov 24 03:14:21 you built an irc client for android? Nov 24 03:14:43 pfn, does gradle have a "run" task to directly run activities? Nov 24 03:19:41 CedricBeust, no idea, I would expect it to, android-sdk-plugin does Nov 24 03:19:53 ron_frown, since like 2011 or something Nov 24 03:20:04 I'm not seeing it. Nov 24 03:20:15 I never heard of qirc Nov 24 03:20:20 I just added run tasks for android on kobalt and when I checked gradle, I realized it wasn't there Nov 24 03:20:27 there's compile, assemble, install, but no run Nov 24 03:20:58 Anyone willing to look at a short screen recording for me? Got a quick UI question Nov 24 03:21:43 https://github.com/pfn/android-sdk-plugin/blob/master/src/tasks.scala#L1362 Nov 24 03:21:51 why wouldn't they have a run task, yuck Nov 24 03:22:22 scala looks like a mess Nov 24 03:22:53 it isn't Nov 24 03:23:05 it sure as fuck looks like it Nov 24 03:23:07 nightmare to read Nov 24 03:23:18 I am assuming its functional, I've never looked much into it Nov 24 03:23:28 eh, it reads naturally Nov 24 03:23:28 a functional programming language Nov 24 03:23:45 naturally to people that dont speak code? =) Nov 24 03:23:53 I can read c++ easier than that stuff Nov 24 03:24:06 drose379: just post it Nov 24 03:24:26 ron_frown, natural if you know the language Nov 24 03:24:43 isnt that like any language reads naturally if you know the language? Nov 24 03:24:44 ron_frown, I'd imagine you'd say any non algol family language to be a mess Nov 24 03:25:01 I dont know what algol is Nov 24 03:25:12 but yeah I've seen other languages I dont care for like python Nov 24 03:25:23 it gets the job done, and I'd much rather use it than perl or php Nov 24 03:25:31 put wouldnt use it for anythign serious Nov 24 03:25:48 anything c like is in the algol family Nov 24 03:26:26 orbyt_, Do you think the favorites activity should have a back button, or stick with the menu button Nov 24 03:26:27 https://vid.me/a4fk Nov 24 03:26:56 actually scala looks like other langs I use cept the way they define lambdas is dif Nov 24 03:27:03 I dont know if thats what they are called there Nov 24 03:28:04 drose379: I expected a back button, so that Nov 24 03:28:22 Ok, and only the home activity should have the nav? Nov 24 03:28:55 really situational but just from seeing that video a back button seems more natural Nov 24 03:29:17 drose379: That progress dialog looks jarring to me. Nov 24 03:29:17 Yeah I was feeling the same way Nov 24 03:29:21 Should be a progress bar. Nov 24 03:29:22 jarring? Nov 24 03:29:29 It's weird how it suddenly appears. Nov 24 03:29:49 It's the last thing I'd expect when picking an item in a nav drawer. Nov 24 03:30:01 Well its moving to a new activity Nov 24 03:30:04 Then opening the dialog Nov 24 03:30:28 i didnt even read it the first time watching so its to fast.. Nov 24 03:30:41 to fast? Nov 24 03:30:55 Its a loading dialog, why would I WANT it to be slow? hahah Nov 24 03:31:07 whats the point of a dialog if you cant read the info inside it? Nov 24 03:31:21 drose379: Why a dialog and not a progress bar? Nov 24 03:31:35 Maybe Ill just replace the text in the dialog with a progressbar Nov 24 03:31:38 Or just a text view (if you don't want a progress bar). Nov 24 03:31:46 Ill just put a Progressbar in the dialog Nov 24 03:31:49 The problem is that it's a dialog. :D Nov 24 03:32:01 Where would the textview go? Nov 24 03:32:01 I'm saying "Why a dialog?". Nov 24 03:32:13 In front of the ListView. Nov 24 03:32:17 You mean just show a blank actiivty with a Progressbar in the middle Nov 24 03:32:24 Then once the data comes, show the listview Nov 24 03:32:37 You can just hide the TextView/ProgressBar once the ListView has data. Nov 24 03:32:43 The ListView doesn't have to be shown or hidden. Nov 24 03:32:56 Sure, I guess that may be better Nov 24 03:35:05 Thank yoiu Nov 24 03:35:11 Android Studio 2.0 Nov 24 03:35:22 trying it Nov 24 03:35:32 :) Nov 24 03:37:07 http://tools.android.com/download/studio/canary/latest Nov 24 03:38:46 anyone here Nov 24 03:38:52 with android studio 2.0 Nov 24 03:39:46 AS 2.0's "instant run" functionality seems to be a bit disappointing right now but it's a very early preview Nov 24 03:40:14 CedricBeust: Does this change anything regarding Kobalt? Nov 24 03:40:25 I guess "instant run" is Gradle only. Nov 24 03:40:27 I'm asking myself this question :) Nov 24 03:40:31 Yes gradle only Nov 24 03:41:08 I'm feeling like this with all the Reddit apps coming out today. :| But as far as I can tell mine still deserves to exist. Nov 24 03:42:55 it seems absolutely disappointing Nov 24 03:43:48 I'm having a problem with playing audio files from a server endpoint. I think the server is disconnecting then recopnnecting for some reason. Could anyone be kind enough to help me troubleshoot the issue? The url in question is at http://wwuh.streamrewind.com/bookmarks/stream/131105/ Nov 24 03:44:18 That link loads fine on Desktop browsers, but takes a good 5-6 minutes to start playing on Mobile browsers Nov 24 03:46:04 is it possible to suggest new features for AS 2.0 ? Nov 24 03:46:55 i really wanna like a section called Samples Nov 24 03:47:34 so we can see some examples Nov 24 03:51:43 -like Nov 24 03:51:55 sry for my english Nov 24 03:52:16 :P Nov 24 04:13:22 somebody using android studio 2.0? Nov 24 04:14:20 yes me Nov 24 04:14:45 :) Nov 24 04:27:47 cortex_, how do you find it? Nov 24 04:29:50 barbs: from reddit :P Nov 24 04:30:06 sorry I meant - what do you think of it? Nov 24 04:30:07 or just google it barbs Nov 24 04:30:14 oh Nov 24 04:30:24 it's awesome Nov 24 04:30:57 but i need to practice barbs Nov 24 04:33:19 I'm not gonna touch it till it's stable. Nov 24 04:35:24 I keep thinking we should switch from ant to Android Studio. Nov 24 04:35:37 I’ve no idea how stable Android Studio is, though. Nov 24 04:35:57 g00s: Regardless of the performance aspect (and I still think Kobalt will always be faster than the fastest gradle code), there is still a need for a build tool with a modern plug-in architecture and true auto completion in the build file editor Nov 24 04:36:06 Android Studio is stable. Nov 24 04:36:53 CedricBeust did you see this today :) https://www.reddit.com/r/programming/comments/3u0by5/the_end_of_dynamic_languages/ Nov 24 04:37:03 TacticalJoke: Good to hear. I was surprised that v2 was already out as pre-release. Nov 24 04:37:11 I completely missed the v1 release annoucement. Nov 24 04:37:22 1.5 is the latest released version. I'd recommend it. Nov 24 04:37:40 NDK supported? Nov 24 04:37:44 ANyone who uses mac know how to generate an apply scipt tomake a shortcut ke to oopen hieaarchtview? Nov 24 04:37:54 Oh, no idea about NDK. I think it's supported, but I dunno how good the support is. Nov 24 04:37:54 Yeah I think dynamic languages are on a path to extinction and Javascript will be the last left over. 20 years from now, we'll look upon dynamic languages like we do Pascal and ada today Nov 24 04:38:31 TacticalJoke: So long as it’s not completely unsupported we can make due. Nov 24 04:38:51 I really wish Google put more resources into the NDK. Nov 24 04:39:56 hey, I've still got my old Ada textbook on my bookshelf! Nov 24 04:40:09 So the chat today had zero mention of new JVM stuff. I guess that means Google has no update plan there. Nov 24 04:40:37 Java 6 fo lyfe. Nov 24 04:41:35 the questions were very banal and sanitized Nov 24 04:43:27 i can't believe nobody asked about (1) java 8 (2) getting banned for using battery optimization manifest flag (3) documentation Nov 24 04:44:25 but that BLE question, that would be funny if they went back to bluez Nov 24 04:44:34 but the java side is still eff'd up Nov 24 04:45:15 Hi guys, I have a menu (a bunch of items) xml file Nov 24 04:45:21 can I use this as input for a searchview? Nov 24 04:45:25 some how Nov 24 04:56:56 I can see why Google would be shy about Java 8 considering their current relationship with Oracle Nov 24 04:57:13 they have to crap or get off the pot Nov 24 04:57:34 as they say :D Nov 24 05:12:46 This app has minSdk=19 Nov 24 05:13:06 if I extend Activity, the actionbar/toolbar disappears Nov 24 05:14:04 if I extend ActionBarActivity instead, the the actionbar is there. Do I really need the AppCompat library for this? Nov 24 05:15:12 If minSdkVersion is less than 21, you need AppCompat for the material look and for Toolbar. Nov 24 05:15:28 You could remove AppCompat and use ActionBar and the Holo theme. Nov 24 05:16:03 but I'd have to set the actionbar manually? Nov 24 05:16:31 I'm a little rusty with android, but I don't remember needing to do that. The actionbar was visible by default Nov 24 05:17:23 If you're using Activity and a Holo theme that doesn't include "NoActionBar", an ActionBar should show by default. Nov 24 05:18:10 yeah. So why the hell isn't it showing :/ Nov 24 05:18:51 Because [click here to reveal the answer; plans start at $5.99 per month]. Nov 24 05:19:21 link isn't working Nov 24 05:19:31 can I iterate over a menu xml file? Nov 24 05:19:33 no first month free? Nov 24 05:19:34 (over the items)? Nov 24 05:19:44 like an array, sort of Nov 24 05:21:46 CedricBeust I think the best blow google could give oracle Nov 24 05:21:50 ditch oracle all together Nov 24 05:22:02 they've already dumped jvm Nov 24 05:22:02 but then oracle would sue for killing java marketshare Nov 24 05:23:01 tx: http://developer.android.com/reference/android/view/Menu.html#getItem(int) Nov 24 05:23:06 RustyShackleford: I guess you'd have to post code. Nov 24 05:23:34 TacticalJoke, doing it now ;) Nov 24 05:23:37 thanks anyway Nov 24 05:25:00 TacticalJoke: trying to make sure I'm not doing something dumb first Nov 24 05:25:26 TacticalJoke, hmm Nov 24 05:25:32 I want to get the icon for the menu item Nov 24 05:25:45 but, I can only get back a drawable, I want the ID so I can render it later Nov 24 05:25:45 MenuItem.getIcon Nov 24 05:26:35 Oh, not sure. Nov 24 05:29:21 TacticalJoke: would targetSdk=23 cause me problems perhaps? Nov 24 05:29:41 It shouldn't. Nov 24 05:32:13 I'm running out of ideas :/ Nov 24 05:32:42 Have you tried creating a new project? Nov 24 05:32:59 im looking at GLSurfaceView will "onSurfaceChanged" always be if "onSurfaceCreated" was called.? [looking at https://github.com/android/platform_frameworks_base/blob/master/opengl/java/android/opengl/GLSurfaceView.java seems yes] Nov 24 05:33:56 TacticalJoke: nope. Lets see what happens Nov 24 05:34:03 (exact line https://github.com/android/platform_frameworks_base/blob/master/opengl/java/android/opengl/GLSurfaceView.java#L1416 that seems to me) Nov 24 05:34:33 maybe theres a wierd initial setting that is screwing me over Nov 24 05:48:01 why am i getting this "no activity found" error? http://hastebin.com/juqinojizu.avrasm when there is in fact one. Nov 24 05:49:58 ive got it in my manifest too. Nov 24 05:56:45 nvm, solved it ! :) Nov 24 06:17:42 can i put a fragment in a relative layout? Nov 24 06:18:11 yes Nov 24 06:23:19 Abyss_: cool :) Nov 24 08:03:55 anyone found a fix yet for the doc hover popups that dont stay open? Nov 24 08:56:29 Hi Nov 24 08:59:51 hey,i need to display all pages of a viewpager, for example 5 images between 50 margin right. Nov 24 09:01:46 sci-fic: wat Nov 24 09:03:05 thepoosh:like this http://i.stack.imgur.com/yW2Lg.png Nov 24 09:04:01 Hi all, is it possible to create a square layout with percentagerelativelayout? Nov 24 09:08:48 Morning, anyone used Host Card Emulation ? Nov 24 09:09:29 FrancescoV, easiest way is to subclass the view you want to be square and make it square in onMeasure Nov 24 09:10:40 alex_PP, I know that option but I was wondering if it's possible with the precentage layout ;) somebody told me it's possible but I think it isn't Nov 24 09:13:23 FrancescoV, did you try layout_aspectRatio="100%" Nov 24 09:14:12 alex_PP, nop, but it must be used in a RecyclerView (grid layout) and each item must be a square Nov 24 09:16:04 sci-fic: I'm not sure that's a view pager Nov 24 09:16:14 could be a horizontal scroll view Nov 24 09:16:20 or horizontal listview Nov 24 09:16:27 or gridview Nov 24 09:29:22 Hey guys I do not know why this just does not effect the dealList variable... I keep on getting the same amount of objects that I inserted - > http://pastebin.com/fYFUHPBu Nov 24 09:31:49 Is there a Google API for converting a coordinate (geopoint/latlng) to a city / suburb Nov 24 09:31:59 usually its the other way around Nov 24 09:32:10 you put in an address and it gives you the coord, I want the other way ;) Nov 24 09:36:01 tx: like this? http://developer.android.com/intl/zh-cn/training/location/display-address.html Nov 24 09:39:34 Leeds, please don't link to chinese d.android, it remembers the setting -.-' Nov 24 09:40:05 Zharf: you don't read Chinese? Nov 24 09:40:19 no Nov 24 09:40:26 no, me neither Nov 24 09:40:58 I wonder why they've even bothered localizing it when all the actual pages are in english anyway Nov 24 09:41:42 Oh so that's why it keeps switching to Chinese for me. Nov 24 09:41:45 * Mavrik slaps Zharf. Nov 24 09:41:48 er. Nov 24 09:41:49 Sorry. Nov 24 09:41:50 * Mavrik slaps Leeds. Nov 24 09:41:52 :D Nov 24 09:42:13 it's ok, you can slap Zharf as well Nov 24 09:42:24 Leeds, btw, my N9 got replaced and it has significantly less slowdowns Nov 24 09:42:44 It actually runs very well so the shit performance might be connected to failing device :) Nov 24 09:42:44 I suppose I should try to get mine replaced Nov 24 09:42:57 * Zharf still needs to figure out which phone is worthy of replacing his old one.. Nov 24 09:43:03 it's always had pretty inconsistent performance for me... Nov 24 09:43:40 slightly complicated by the fact that my gf actually bought it for me - my Play Store account got switched to the UK a couple of years ago, by accident, and I haven't fixed it because I like having access to the UK bookstore etc. Nov 24 09:43:48 Yp. Nov 24 09:50:00 Hey guys I do not know why this just does not effect the dealList variable... I keep on getting the same amount of objects that I inserted - > http://pastebin.com/fYFUHPBu Nov 24 09:56:11 Mavrik: Hey sorry to ping you ... could I ask you seomthing Nov 24 09:59:51 cart_man, just guessin here, for (int Tx=(Track.size()-1);Tx==0;Tx--) instead of Tx==0 to Tx >=0 Nov 24 10:00:44 is it OK to use IV full of 0x00 with crypto.Cipher or why I only find examples doing so? Nov 24 10:04:03 Yes that does solve one thing... problem is that I messed that up last night but my actual problem actually consists even before I changed the >- to -- Nov 24 10:04:22 I canvs2321- : I mean >= to == Nov 24 10:10:49 cart_man, did you run it in a debugger step by step? -.- Nov 24 10:11:19 Zharf: Yea :p but yesterday night I had information overload and a tired brain L / Nov 24 10:12:07 vompatti, no, you should generate your own IV or if you're decrypting, use the same IV as when you encrypted Nov 24 10:14:17 Zharf: I figured that if I dont supply pregenerated IV the cipher generates one for me if needed. Should I save IVs independly (say in database) or just append the encrpyted data with the IV? Nov 24 10:15:27 Zharf: I had the problem where I would see how it removes objects from the list but as soon as I read object.size() it will still have all the objects inside that it originally had Nov 24 10:15:53 it might generate one for you, not sure... never used that interface... but you shouldn't use the same IV more than once Nov 24 10:16:35 i want to read the full file from asset. the available() method in AssetManager.AssetInputStream https://developer.android.com/reference/android/content/res/AssetManager.AssetInputStream.html do not look appropriate to me to get the full length Nov 24 10:17:09 *read a file whole content in one go from asset Nov 24 10:17:20 says "Returns an estimated number of bytes that can be read or skipped without blocking for more input. " Nov 24 10:19:03 there is no method to get the total length and read the whole content of file in one go Nov 24 10:19:09 Morning folks Nov 24 10:37:45 Hi Guys, anyone can recommend an UPDATED android studio tutorial, I've haven't been developing android apps in awhile now, I'm am kinda out of touch Nov 24 10:49:42 AndroidNewb: have you had a look at the stuff up on udacity? Nov 24 10:50:05 I think I have but I'll check again Nov 24 10:50:16 it's created by the Android team in conjunction with Udacity and available for free Nov 24 10:51:40 nice! Nov 24 10:51:45 I'm checking it now Nov 24 10:51:51 failing that you could try asking a specific question about Android Studio and maybe someone will be able to answer it for you Nov 24 10:53:12 thanks bro Nov 24 10:54:20 * Zharf never understood tutorials on IDEs... figuring things out as you need them seems like a better way to do it Nov 24 11:01:42 can anyone tell me how i can resolve this error? http://hastebin.com/sazezihuye.avrasm Nov 24 11:02:49 don't cast relativelayout to com.workstationdesigns.view.viewgroup.FlyOutContainer Nov 24 11:03:14 Hm?? Nov 24 11:03:17 ill take a look Nov 24 11:03:34 line 31 of somefragmentactivity.java Nov 24 11:03:48 yea the problem is the fragment Nov 24 11:03:55 Hi all, I'm looking for a button that would display a circular progress bar (only loading arc length at start), any idea how to best approach this? Nov 24 11:04:26 i need to cast it to that class though Nov 24 11:04:41 you can't, it's not an instance of that class Nov 24 11:05:13 would extending from Button and then borrowing some elements from the many circular progress bars out there work? Nov 24 11:05:21 so then i should just use setContentView? Nov 24 11:05:26 im trying to make a slide in menu bar Nov 24 11:05:33 in a fragment activity though Nov 24 11:06:41 Zharf: if i remove the cast i get this error: Cannot add a null child view to a ViewGroup Nov 24 11:09:45 if i dont cast i get incompatible types Nov 24 11:13:44 don't add a null to the viewgroup -.- Nov 24 11:13:52 come on, these errors aren't that hard to figure out :) Nov 24 11:16:43 then i get cant resolve inflate(int)... Nov 24 11:17:23 pastebin your code? Nov 24 11:17:32 you're doing so many things wrong, it seems Nov 24 11:18:43 this is the onCreate http://pastebin.com/662n9m5Z Nov 24 11:19:16 and the FlyOutContainer class http://pastebin.com/eLW3d8fk Nov 24 11:21:50 why not just do setContentView(R.layout.menu_layout); and then root = (FlyOutContainer) findViewById(whatever); Nov 24 11:23:15 LayoutInflater.inflate doesn't have a single argument version, you need to pass a root to it, but in this case you shouldn't need to even use layout inflater Nov 24 11:24:00 Hm Nov 24 11:24:34 so get rid of layoutinflater? Nov 24 11:25:08 yep, no need to use it Nov 24 11:25:42 and just use findViewById Nov 24 11:25:43 ok Nov 24 11:29:42 ill let you know what happens Nov 24 11:36:39 Zharf: nah, it doesnt like that either. Nov 24 11:38:31 guys Nov 24 11:38:34 can i ask? Nov 24 11:38:44 what the new way to write this? Nov 24 11:38:49 "val$input" Nov 24 11:39:14 is that jquery? Nov 24 11:39:26 thornekey, what does it say then Nov 24 11:40:42 no, its java Nov 24 11:41:05 tx: i'm using adt bundle in java and try to open up my project with android studio Nov 24 11:41:14 tx: and its give me that error Nov 24 11:41:35 Thornekey val$input.getText().toString(); Nov 24 11:42:09 racoonfox12: huh? Nov 24 11:42:29 owh sorry i tought you sait for me Nov 24 11:42:35 *said Nov 24 11:42:53 no, Zharf was talking to me lol Nov 24 11:43:14 owh Nov 24 11:43:34 Zharf: same error. i think its cos in my xml file i open with similar to this: https://github.com/jaylamont/AndroidFlyOutMenuDemo/blob/master/FlyOutMenuExample/res/layout/activity_sample.xml line 1 Nov 24 11:44:50 thornekey, are you trying to make a drawermenuthingie? Nov 24 11:45:06 im tryna make a side nav menu that u pull in Nov 24 11:45:10 yep Nov 24 11:45:27 but the thing is its on a fragment activity (cos ive got a google maps thing on there) Nov 24 11:45:31 use google's DrawerLayout http://developer.android.com/training/implementing-navigation/nav-drawer.html Nov 24 11:45:40 -.- Nov 24 11:45:44 oh Nov 24 11:45:51 this could have saved a lot of time Nov 24 11:46:22 what is val$input in android studio? Nov 24 11:46:52 Zharf: so get rid of everything i did? Nov 24 11:46:55 and do that? Nov 24 11:46:59 Yes Nov 24 11:46:59 or do i need some of it Nov 24 11:47:00 Jesus christ this code-lab examples are disgustingly hard to get running. Nov 24 11:47:13 Anyone has been able to do https://www.code-labs.io/codelabs/material-design-style/index.html#0 ? Nov 24 11:47:18 Don't delete the content of the drawer and stuff though Nov 24 11:47:47 Estel: when you say content do you mean the xml? Nov 24 11:50:40 thornekey, very likely that most of what you did isn't needed Nov 24 11:50:52 ahah ok Nov 24 11:51:04 im gonna follow this guide you sent me Nov 24 12:00:33 Hi, i am looking for when Android 5.1+ will be available in France for GS4, do you know where i could have a release date ? I cant find it. Does it depend of the country ? Nov 24 12:02:16 Im working on professional app, and they upgraded on Android 5.0, which seems to be really bugged with memory management.. Nov 24 12:06:26 no clue... Nov 24 12:12:56 MGK: you'd need to ask Samsung about that, not app developers on IRC Nov 24 12:27:08 Zharf: ive got it kind of working.. but now there is a xml problem. http://picpaste.com/pics/ex-LfK6x1KN.1448367956.png as you can see, when pulling the nav bar out (fig a) it gets stuck behind the map fragment, but once its out it is on top. is there a way to make it always on top? Nov 24 12:28:52 If a system apk can write to a Serial port, would a regularly installed apk be able to do this too? Or is access to stuff like /dev/ttyHSL1 limited to system apps? Nov 24 12:29:35 thornekey, could you pastebin your layout Nov 24 12:33:04 Zharf: sure Nov 24 12:34:38 http://pastebin.com/e2YK85xx Zharf Nov 24 12:36:59 thornekey: looks like http://stackoverflow.com/questions/16959186/googles-navigationdrawer-not-drawing-correctly-over-map Nov 24 12:38:42 thornekey, yep, see Estel's comment Nov 24 12:40:42 ill look at that thread Nov 24 12:40:44 thanks Nov 24 12:42:42 Estel: what would drawer_close, and drawer_open be equal to? in their example? Nov 24 12:42:47 as in what would the string be Nov 24 12:43:20 I don't know, but try the top solution first? Nov 24 12:44:44 thornekey, they're just accessability strings Nov 24 12:44:51 Estel: the first solution uses ActionBarDrawerToggle which is depreciated Nov 24 12:45:07 deprecated * Nov 24 12:45:29 is it? I don't think so Nov 24 12:45:48 Android Studio is saying it is Nov 24 12:46:08 ah solved. Nov 24 12:46:11 Wrong import Nov 24 12:46:12 derp Nov 24 12:46:53 yeah, use the one in appcompat-v7, not v4 Nov 24 12:47:21 yep :) Nov 24 12:51:05 new ActionBarDrawerToggle(....,,) { what kind of view do i want? Nov 24 12:52:30 hi all, i have been googling a lot, and no results Nov 24 12:52:32 Hi, I wrote all this intricate business logic in a server, and have a client app that can query and send data to the server. But what should happend if internet connection is lost? Should I implement the same logic in the app, so that the user can guess what will happen on the server on next sync? Nov 24 12:52:32 just paid for Nov 24 12:52:34 i need some help finding a free opensource pdf417 decoding library Nov 24 12:53:13 or should the app just become unusable? Nov 24 12:53:34 I feel that I would be writing pretty much the same code twice :\ once for app and once for server Nov 24 12:53:53 @ntio, it depends on the logic. If it is sensitive logic (api keys, algorithms) you should be aware that reverse engineering the application can give away this information. You can however protect against reverse engineering by using for example Dexguard Nov 24 12:54:57 DroidGuy: no, not sensitive Nov 24 12:55:28 I guess my real question is: what tools/platform would allow me to write the logic once, and use it both on the server and the device? Nov 24 12:56:01 my server right now is a spring-mongodb working nicely Nov 24 12:56:19 Well what you could do is the following Nov 24 12:56:42 what constructor do i need for ActionBarDrawerToggle? Nov 24 12:57:36 Write some stub code in an Android app which fetches a mobile website resource (js/html/css) with the data and caches it on the device. You can load these resources using the webview component. If you don't have internet connection, you can use the resources from the cache, if you're on wifi you could trigger an update which you put available on a server Nov 24 12:58:36 This way you can update your logic (written in JS) and there is no need to push updates through play store (as you will only update JS code on your server which is being fetched by the android app) Nov 24 12:59:02 look at frameworks like cordova/phonegap for inspiration Nov 24 12:59:09 DroidGuy: ohhhh, wow, this is interesting Nov 24 12:59:23 thornekey, http://developer.android.com/reference/android/support/v7/app/ActionBarDrawerToggle.html#ActionBarDrawerToggle(android.app.Activity,%20android.support.v4.widget.DrawerLayout,%20int,%20int) Nov 24 12:59:35 DroidGuy: thank you, much cooler than I expected. I will look into this. Nov 24 12:59:50 No problem! Nov 24 13:00:09 But be aware of security issues (it is still JS) you find plenty of documentations online :) Nov 24 13:32:47 Is there a default style / background like this searchview / edittext? http://i.stack.imgur.com/LivbV.png Nov 24 13:32:50 having HasMap, in one case, when hashmap.size() == 1 I need to use that exactly one Key, how would you do that without using looping? Nov 24 13:36:36 bolovanos: hashmap.keySet().iterator().next() ? Nov 24 13:37:06 disclaimer: I'm not a Java dev, I just read the doc Nov 24 13:38:21 GrecKo, thank you Nov 24 13:39:18 Zharf: i thought it would have been something like "new ActionBarDrawerToggle(listView)" Nov 24 13:40:07 new ActionBarDrawerToggle(activity, drawerLayout, R.string.drawer_open_accessability, R.string.drawer_closer_accessability); Nov 24 13:59:44 RoundedBitmapDrawableFactory.create(context.getResources(), bitmap).setCircular(true).getBitmap(); is that supposed to be return a circular bitmap ? Nov 24 13:59:48 bcs i see square image Nov 24 14:06:48 can android virtual devices test apps bought on the play store? Nov 24 14:10:48 sci-fic, use the RoundedBitmapDrawable directly? Nov 24 14:11:04 sci-fic, I mean the instance of it that RoundedBitmapDrawableFactory.create returns Nov 24 14:12:01 sci-fic, partly guessing here since I've never used it ;) Nov 24 14:12:34 sci-fic, but according to docs getBitmap returns the underlying bitmap that you gave it Nov 24 14:33:01 Zharf:yes i read it just now :D Nov 24 14:36:03 listView.setOnItemClickListener(this); isnt working? "this" cannot be converted to OnItemClickListener by method invocation conversion.. Nov 24 14:37:22 thornekey, your java-foo isn't very good, is it? "this" needs to implement OnItemClickListener if you want to do that Nov 24 14:37:46 Zharf: *whispers* honestly, i cant stand java Nov 24 14:38:20 Just found an exciting piece of code that uses Apache HTTP to connect to a URL, download the HTML response, decodes the data and renders it in a webview. Nov 24 14:38:40 I'm sure I must be missing the real reason they didn't skip half of those steps... Nov 24 14:38:43 but thanks, thats solved it. i thought i could have just casted that one.... Nov 24 14:40:08 hi, this is from the CCS (GCM) docs: "The asynchronous nature of XMPP allows you to send more messages with fewer resources." What is the advantage of sending something from a device to an application server through XMPP endpoint? Why not sending directly to the server with asyncronous http post/get apart from the fact "The device can send messages back using the same connection used for receiving, thereby improving battery life"? Nov 24 14:40:08 Nov 24 14:52:04 Alo! Anybody here been successful recording video on 1:1 ratio? Nov 24 14:56:40 Can anyone help me debugging CollapsingToolbarLayout with NestedScrollView? https://gist.github.com/Quintasan/803f026c541094e8c3f3 - view http://susepaste.org/67371803 - what happens. Why does it take up only a half of the screen? Nov 24 14:57:05 Okihita: yes. I use camtasia. Nov 24 14:57:24 for apps Nov 24 15:01:54 I want to use this view as a Fragment if it helps. Nov 24 15:02:19 @Thornekey: I mean for MediaRecorder since I want to implement an app that captures video with 1:1 ratio. Like in this question, http://stackoverflow.com/questions/20350833/capturing-video-with-11-aspect-ratio-on-android Nov 24 15:20:22 I need a listener for when text is deleted from an edittext, and I need to see what text was deleted Nov 24 15:20:36 anyone know how to do this, ive spent 2 days trying to google and figure out a solution Nov 24 15:20:54 TextWatcher Nov 24 15:21:06 I have managed to get the listener for when the delete key is pressed, but can't seem to get the text Nov 24 15:21:16 drose379: textwawtch seems to only work when text is entered not deleted Nov 24 15:21:51 Really, hmm Nov 24 15:22:05 huh Nov 24 15:22:09 Even for afterTextChanged()? Nov 24 15:22:12 it should watch whenever text is changed Nov 24 15:22:19 or do you change it programmatically? Nov 24 15:22:28 (but still it would trigger the event no?) Nov 24 15:22:44 Programatically I bet it still would Nov 24 15:22:47 unless my logging was flawed yes Nov 24 15:22:54 ill try again Nov 24 15:23:09 ahh logging Nov 24 15:23:25 it took me quite a time to figure that SMS tag for logging isnt great choice.. Nov 24 15:23:36 DadFoundMy, have you seen http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher) Nov 24 15:25:00 so i see why my logging failed Nov 24 15:25:06 but also leads me to a new issue Nov 24 15:25:13 hm? Nov 24 15:25:35 afterTextChanged() will only be called it seems if there is text still in the textview Nov 24 15:25:48 so if enter 1 character, and delete that character it is not being called Nov 24 15:25:58 but if i enter 3 and delete 1 it is called Nov 24 15:26:02 :o Nov 24 15:26:11 in my logging I was just entering one and deleting :D Nov 24 15:26:40 actually onTextChanged is being called not afterText Nov 24 15:26:41 what about beforeTextChanged Nov 24 15:27:54 does not seem like it Nov 24 15:28:05 which is what i need because i need to see the text that was deleted Nov 24 15:31:53 .win 10 Nov 24 15:40:50 you could use onTextChanged() and just store the previous text in a string var inside your textwatcher class Nov 24 15:41:01 if beforeTextChanged fails for you Nov 24 15:41:47 An InputFilter could probably do it as well Nov 24 15:41:56 oh hes gone.. Nov 24 15:47:00 Hello. I have had an issue for a few weeks now that is described in this stackoverflow q: http://stackoverflow.com/questions/33877332/cropping-image-using-library it contains to much to describe in the chat. Anyone that can help me? Nov 24 15:47:30 more people read stackoverflow than this irc channel Nov 24 15:48:08 pfn then I'm screwed.. Nov 24 15:48:27 i want to render an mp4 natively, who's with me? Nov 24 15:48:51 If its to long to describe it, you should probably break it down and solve it step by step Nov 24 15:48:59 might be the reason why nobody answers on SO too Nov 24 15:49:35 danijo , well I know exactly where the issue is, but I can't solve it or even understand how it's happening. So it's really not that complex. Just a lot of description Nov 24 15:50:27 assume we know what you're talking about and give us the short version Nov 24 15:51:53 oh shit Nov 24 15:51:53 rdnt I'm using this library: https://github.com/jdamcd/android-crop to crop an image from the android gallery and stream the cropped result to another class. When cropping is done it should call requestCode == 3 for example, but onActivityResult just refuses to read that value and handle my cropped data. I even set the requestCode manually when I begin. Nov 24 15:52:07 ask the maintainer of the library Nov 24 15:52:57 are you putting the the int in the intent? Nov 24 15:53:22 is that the problem, no request code? Nov 24 15:53:25 rdnt where do you mean? Nov 24 15:54:40 in the actuall crop method I set the activity and the requestcode that will execute when it's done cropping. So either it won't set that requestcode, or onActivityResult won't read the value. Nov 24 15:55:11 The app just closes down to background when I click "Finish" and restarts if resumed. Nov 24 15:57:21 have you tried putting a breakpoint in to see if the requestcode is set? Nov 24 15:57:26 what do you mean with you set the activity? onActivityResult gets always called on the activity that starts the intent Nov 24 16:00:22 rdnt doing it now. Nov 24 16:03:23 How would you create a custom view for this? https://drive.google.com/open?id=0BzF-36yv5XcebUNsVldLNFlac0U (the favourite icon positioning) Nov 24 16:05:42 rdnt handleCrop() method's requestCode when it's executed is 1 so no, it's not being set it seems. If I've done it right Nov 24 16:06:03 FrancescoV: it says i need permission.. Nov 24 16:06:11 how about an imgur link Nov 24 16:06:13 osxorgate: I changed the permissions Nov 24 16:07:08 framelayout with a card, and an imageview for the icon Nov 24 16:07:18 framelayout == stuff can live on top of eachother Nov 24 16:07:23 Bernzel, it sounds like you've got a point to investiage Nov 24 16:07:28 Bernzel, it sounds like you've got a point to investigate Nov 24 16:14:57 im throwing these errors: http://pastebin.com/nq44WmPU Nov 24 16:17:17 rdnt , investigation lead my to find that line 15: http://pastebin.com/SYuSnVkG isn't even being "checked". So when beginCrop(); is finished onActivityResult() stops along with the app. So it doesn't matter if the value is set or not, onActivityResult doesn't even check any further Nov 24 16:18:32 well if beingcrop is called, handlecrop wont be called, seeing how they are in opposing parts of an if statement Nov 24 16:18:42 begin* Nov 24 16:20:57 how would I check with the if statements then? Nov 24 16:21:11 inside the same if statement as beginCrop? Nov 24 16:21:58 umm, did you just ask how to use an if statement? Nov 24 16:22:13 no, but I don't see what's wrong with the way I'm checking now. Nov 24 16:22:34 requestcode is 1 or 3? Nov 24 16:22:39 1 Nov 24 16:23:00 what is the value of Crop.REQUEST_CROP? Nov 24 16:24:05 hold control/command and click it Nov 24 16:24:30 rdnt 6709 Nov 24 16:25:03 And I've tried checking specifically for that integer in reqeustCode. Nov 24 16:25:06 requestCode* Nov 24 16:25:07 can i use this.getBaseContext() to get context? Nov 24 16:25:49 thornekey, yes for most cases, but i believe it wont have the theming info of the activity context Nov 24 16:26:08 Bernzel, my brain hurts Nov 24 16:26:16 rdnt , mine too Nov 24 16:26:18 Hi, i have an ArrayList with category_id. I sort these products with Collection.sort(product...., cateogy_id)... it workes but i have sort for father_category_id Nov 24 16:26:24 rdnt: oh so this wouldnt work ContextCompat.checkSelfPermission(this.getBaseContext(), android.Manifest.permission.ACCESS_FINE_LOCATION )? Nov 24 16:26:58 yes it should work thornekey Nov 24 16:27:09 ohk cool Nov 24 16:27:57 Bernzel, i think you need to check where the activity result is being decided Nov 24 16:30:10 rdnt yes I finally got a value from when the second request code get's read. And it's 1 still, so the value never get's set in the .start() method. Nov 24 16:40:38 why am i getting this error "class derived from LocationListener must either be abstract" when using android.location.LocationListener, but this error "cannot resolve method 'requestLocationUpdate' when using com.google.android.gms.location.LocationListener Nov 24 16:41:59 thornekey, code? Nov 24 16:43:05 rdnt: http://pastebin.com/X2vEj2WN Nov 24 16:43:12 ive commented it Nov 24 16:47:36 Could someone please help me with this problem ? -> http://pastebin.com/L03unTsE Nov 24 16:47:55 rdnt: strange, isnt it. Nov 24 16:49:06 cart_man why is it dealList here and DealList there Nov 24 16:49:19 does that code compile or is there another list that you are modifying Nov 24 16:50:22 missingno: Ups sorry that was a type : / Nov 24 16:50:51 It does compile... It modfifies the passed ArrayList() Nov 24 16:51:00 and then just returns it Nov 24 16:52:44 Timezones are such a pain :( Nov 24 16:53:39 i want to achieve something like this http://developer.android.com/design/material/images/card_travel.png Nov 24 16:54:23 i want to know when creating layout using cardview to i need to cover all the height of the device? Nov 24 16:54:53 missingno: Does it make more sense now? Nov 24 16:56:20 does any one know why this line "locationManager.requestLocationUpdates(provider, 20000, 0, locationListener);" gives me this error "requestLocationUpdates" Nov 24 16:56:31 I want to append message a text or image to my layout when the message is received. When using ListView, this can be done checking the type of data and then choosing one row_layout or another. Is there any other good way without using the listView? Nov 24 16:56:52 ok. i can’t seem to find any answers to my question outside the developer community, so i’ll try here… Nov 24 16:56:52 In Android 6, will denying access to the contacts permission for an app also deny access to "find accounts on the device"? Nov 24 16:57:02 An example: will Facebook know my Reddit user name if I have a Reddit app that lists my account? Nov 24 16:57:48 hithere Nov 24 16:57:55 And the Facebook app installed… Nov 24 16:58:33 and by “will Facebook know”. I mean, “will Facebook BE ABLE to know” Nov 24 16:58:39 AS v 1.5 - adding vector asset - is it possible change color of added asset somehow? This is what I see now http://snag.gy/F6o94.jpg Nov 24 16:58:52 bolovanos edit the xml file Nov 24 16:59:49 cart_man: there exist datatype 'boolean'. start classnames with Capital letter, instances with lowercase. if you check for (x==y) and do something, or return, do the return immediately instead of after the if {} Nov 24 16:59:55 just some pointers to keep your code legible Nov 24 17:00:11 g00s, I am adding iconf from Material icon, adding it through Image asset, you could do it directly... Nov 24 17:02:50 g00s, wha I am trying to say - this is not much faster than former icon adding, where I had to use vector editor, export, ... Nov 24 17:03:59 or maybe I have bad idea how vector asset works http://developer.android.com/tools/help/vector-asset-studio.html Nov 24 17:05:28 man, Android really hates leaking cursors ;-) seems to keep you on a tight leash. Nov 24 17:11:11 How do I create aar from gradle library? Nov 24 17:11:29 cool new adb protocol Nov 24 17:12:44 osxorgate: Ok soo does that dealList.remove() work like I think it works? Nov 24 17:12:57 you should read the doc Nov 24 17:13:07 yoavst, call an assembe task? :) Nov 24 17:13:21 assemble create aar or jar? Nov 24 17:15:32 aar. Thanks :) Nov 24 17:16:14 holy crap xav talks fast Nov 24 17:17:20 osxorgate: I am pretty sure by now that I am using it the right way... its just not removing the elements Nov 24 17:17:26 g00s: classic frenchie Nov 24 17:18:15 is instantrun comparable to the jvm's hot-reload Nov 24 17:20:44 g00s, to many words - my ignorance, thank you Nov 24 17:30:00 hello, i'm using Theme.AppCompat and use a webview on one of my activity and the webview have a white background. I can change the webview bgcolor using mWebView.setBackgroundColor(Color.parseColor("#dadada")); but i didn't know the default background/window color for Theme.AppCompat. Can anyone please tell me the default color or where i can find the default values? Nov 24 17:37:05 is it possible to get the Element number when working with a AdapterView ? Nov 24 17:42:32 hi all Nov 24 17:42:56 im looking for a way to intercept all my HTTP request and to move them via proxy Nov 24 17:44:42 AlmogBaku, charles Nov 24 17:44:47 google it :) Nov 24 17:44:58 i know charles Nov 24 17:45:07 but i want a solution inside my app Nov 24 17:45:27 just change the ip in your apps config doesnt work for you? Nov 24 17:45:28 that when i enable this feature it'll move all the traffic via my proxy Nov 24 17:45:35 including gmap Nov 24 17:46:48 why cant you just change the ip to your proxy when debugging? Nov 24 17:47:10 if(BuildConfig.DEBUG) useThisIp(); else useThisId(); Nov 24 17:47:57 it should be on production Nov 24 17:48:07 I need to move all the traffic via my proxy Nov 24 17:48:14 including google map Nov 24 17:48:25 without changing much the app Nov 24 17:50:23 anyone able to generate a coverage.xml from android unit tests? I'm using jacoco and I can't get a coverage file generated Nov 24 17:50:38 it's only working for connected tests Nov 24 17:53:58 JakeWharton maybe you have an idea? (since you worked w/ the networking layer on okhttp) Nov 24 17:55:52 can somebody explain how greenify works? Nov 24 17:58:57 i think it just aggressively kills background tasks for apps that aren’t currently running Nov 24 17:59:03 AlmogBaku, I dont think this is possible - at least I dont know a method Nov 24 17:59:10 you’d probably have to ask on XDA or something Nov 24 17:59:51 thats so weird.. since every other platform i know allow you to intercept and change request(ios, java, and even angularjs) Nov 24 18:00:07 danijoo: Hey is it right to say that a ListView is only like 7 or 8 views that gets recycled over and over? SOO changing the 1 ListView element will make the changes stick to say... the 8th elements aswell? Nov 24 18:00:30 random highlight? Nov 24 18:00:39 AlmogBaku: Check out the u2020 demo app. they do that Nov 24 18:01:13 although it might need to restart the app Nov 24 18:01:27 cart_man, if you scroll element 1 out of the screen, it will get passed to the getView() method as the next element coming in Nov 24 18:01:43 if your screen can hold 7 elements, element 8 will reuse the view of element 1 Nov 24 18:02:03 s73v3r they allow you to change all the requests? Nov 24 18:04:12 you’d have to look at it, but I think it sets the system proxy Nov 24 18:04:18 but it does so in app Nov 24 18:04:34 i need a proxy only for my app Nov 24 18:04:41 shouldn’t matter Nov 24 18:04:43 ill look into it.. Nov 24 18:05:10 danijoo: Ok soo is there a way I can make it assign views to every elements instead of replacing old data with new data as the screen scrolls? Nov 24 18:06:20 i dont understand Nov 24 18:07:31 danijoo: Instead of reusing the view for new data as the scroll bar goes down... I want it to rather just create 10 or 15 or whatever amount of views and let every element have its own view Nov 24 18:08:01 cart_man, thats a bad idea Nov 24 18:08:30 the reason for reusing views is that it makes the listview scrolling smooth Nov 24 18:08:36 danijoo: I agree 100% IF I have... 20+ elements right... But I only have 9 or max 14 Nov 24 18:08:56 are the elements all looking different? Nov 24 18:09:10 it is harder to go against the grain and not recycle cart_main Nov 24 18:09:15 or whats the reason Nov 24 18:10:14 Well what I am doing at the moment is I am changing the backgroundColor when it gets selected...but my problem now is that when I select Element 1 the Background lights up and everything is awesome accept for the fact that if you scroll down elements 9 would also be Lighten up -.- Nov 24 18:10:19 danijoo: ^^ Nov 24 18:11:00 fix the selection instead. Nov 24 18:11:13 you call setBackground on every setView Nov 24 18:11:22 to change it back to the not lightened-up color Nov 24 18:11:47 missingno: Oh shit I did not think of that Nov 24 18:11:57 Ok but I doubt that it would work though Nov 24 18:12:01 or if its a selector call the method on the view to unselect it Nov 24 18:12:08 that is totally how it works Nov 24 18:12:12 that is how everyone does it Nov 24 18:12:36 missingno: Ok wait soo... As it comes into the screen I determine if it should have a different backgroundColor? Nov 24 18:13:05 getView is called every time a view comes back on screen Nov 24 18:13:06 danijoo: No its not a selector...im handling that myself Nov 24 18:13:12 I assume you are using a list or recyclerview Nov 24 18:13:22 list yes Nov 24 18:13:39 the adapter's getView will be called again every time a view returns onscreen Nov 24 18:13:46 cart_man, yeah.. why just using system provided features if you can do it yourself in 50lines of code :p Nov 24 18:13:48 then you can reassert all the properties of that view accordingly Nov 24 18:14:04 danijoo: Lol yea yea at the time I did not know Nov 24 18:15:18 missingno: Ok so is there some kind of onGetView listener ? Sorry I see where you are going I just dont know how you get there Nov 24 18:15:35 when you create a listview Nov 24 18:15:45 you usually have a custom Adapter Nov 24 18:15:54 which usually has a getView method that you override Nov 24 18:16:35 http://developer.android.com/reference/android/widget/Adapter.html#getView%28int,%20android.view.View,%20android.view.ViewGroup%29 Nov 24 18:17:20 Ohhh... see there is the missing part .. I used a standard adapter.. When I created it I thought about the manny possible reason why it will come back and bight me right in the ass.... sigh Nov 24 18:17:26 Captain Hindsight Nov 24 18:17:41 i've got this samsung s5 and it will not auto-focus when using the Camera2 APIs, anyone else run into this? Nov 24 18:22:35 https://github.com/dexafree/MaterialList , can anyone tell me how to resolve the add function given in the example ? Nov 24 18:23:12 i cant resolve the add function , mListView.add(card); where is add ? Nov 24 18:24:17 You usually don't add anything to the listview, you add to the adapter Nov 24 18:24:57 SimonVT: what about the example then? Nov 24 18:25:07 Didn't read it Nov 24 18:25:14 TIL buildtypes can inherit from each other Nov 24 18:25:15 Just commenting Nov 24 18:26:03 SimonVT: the example in the first page of library says mListView.add(card); i cant find add in library Nov 24 18:26:09 how to resolve this add Nov 24 18:27:03 hi Nov 24 18:27:12 what build should i use to build for android 4/5? Nov 24 18:27:29 kotlin :p Nov 24 18:27:44 kotlin? Nov 24 18:28:03 use java ;) Nov 24 18:28:20 kotlin is step #2 Nov 24 18:29:03 anyone can tell me where is add ? Nov 24 18:29:10 how to resolve this thing ? Nov 24 18:29:14 jackhum, I checked the source, there is no add Nov 24 18:29:19 the example is wrong. Nov 24 18:29:39 tell the maintainer or make a pull request Nov 24 18:29:44 danijoo: what about https://github.com/dexafree/MaterialList/search?utf8=%E2%9C%93&q=add Nov 24 18:30:20 read what SimonVT said. ITs the adapter Nov 24 18:30:37 danijoo: https://github.com/dexafree/MaterialList/blob/a2632f203e23665e0be0304fa6a17d6159da0626/materialList/src/main/java/com/dexafree/materialList/view/MaterialListAdapter.java this has something add Nov 24 18:30:51 ... Nov 24 18:31:09 got it Nov 24 18:31:11 mListView.getAdapter().add(card); Nov 24 18:31:24 okay, sorry for being a newb Nov 24 18:31:56 you should tell the maintainer his example is unclear (wrong) Nov 24 18:32:41 danijoo: okay Nov 24 18:34:22 For using android's simple_list_item_2, I have to do this: adapter = new ArrayAdapter (this, android.R.layout.simple_list_item_2, android.R.id.text1, list) Nov 24 18:35:02 Here android.R.id.text1 is an id for a textview Nov 24 18:35:29 Why am I giving only one id? Why does it not need 2 textViews? Nov 24 18:36:07 hey there i have googled it but i cannot find a suitable answer. my issue is i have edittext in expandable list and it gets focus while scrolling and put the text from above edittext to below edittext Nov 24 18:37:50 can someone tell me what the difference is between the multiple build.gradle files in a project? Nov 24 18:37:58 rudolf_: no, there’s only one textview Nov 24 18:38:41 grekkos: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup Nov 24 18:39:03 s73v3r, so in list item_2 also, does every row require only one textView? Nov 24 18:39:53 But we need two textViews when setting 2 items per row in simple_list_item_2 Nov 24 18:40:03 you could try the constructor where you don’t specify the id Nov 24 18:40:12 use a custom adapter Nov 24 18:40:15 its not that hard Nov 24 18:40:21 that’s the better answer Nov 24 18:41:14 danijoo, yes...but I just wanted to understand this one. Why do we need only one textView in this constructor. Nov 24 18:41:18 otherwise, the default constructors for ArrayAdapter either take a resource, or only take one textview Nov 24 18:41:33 ArrayAdapter is a simple adapter that sets the toString representation of an Object to a TextView in the layout. If that's not what you need, don't use ArrayAdapter Nov 24 18:42:17 It is not meant to solve all your adapter needs, just that simple case Nov 24 18:42:44 I needed two items per row of a list view. Basically, I had an arrayList of arrays with each array holding 2 strings. Nov 24 18:42:53 So I used simple_list_item_2 Nov 24 18:43:15 many of the built in things on Android are extremely bare bones, meant to solve just the simplest of cases and provide an example. If you need anything beyond that, you have to roll your own Nov 24 18:43:28 did you look at the definition for simple_list_item_2? Does it have two text views? Nov 24 18:43:38 s73v3r, it has Nov 24 18:43:53 android.R.id.text1 and text2 Nov 24 18:44:05 s73v3r, can you please give me an example of something which uses list_item_2 but needs only one textView ? Nov 24 18:44:12 no Nov 24 18:44:24 wouldnt make sense to do that Nov 24 18:44:35 I mean if I need only one textView, I can just use simple adapter. Nov 24 18:44:38 Yes Nov 24 18:44:47 i haven’t used the built in cells in a long time Nov 24 18:45:31 Ah...you guys are custom adapter guys :D I am still learning how to use custom adapters. Nov 24 18:45:53 well, like we said, you have to use custom adapters if you want anything more than the bare basics Nov 24 18:45:59 everyone is a customadapter guy afer you realize the arrayadapter is close to being useless Nov 24 18:47:12 it is useless Nov 24 18:47:13 not close Nov 24 18:47:22 it's something that should be deprecated out of the framework Nov 24 18:47:27 Yes...but I am new so I used built in. I just override the getView method to put text to two textViews. android.R.id.text1 and android.R.id.text2 Nov 24 18:48:08 being new doesn’t really have anything to do with it Nov 24 18:48:09 Just make the class and every method final.. Stop that^ nonsense Nov 24 18:49:00 The thing that confuses me is that when I did not pass identifiers for 2 views, how does getView know about these textViews and how am I able to use view.findViewById() for android.R.id.text1 and android.R.id.text2 Nov 24 18:49:10 in the getView() method. Nov 24 18:49:28 rudolf_, it cant because ArrayAdapter is not meant to be able to do that by default Nov 24 18:49:40 if you want more than 1 view, you have to write your own getView() Nov 24 18:50:10 yes. So the layout android.R.layout.simple_list_item_2 has two textViews, right Nov 24 18:50:11 the default arrayadapter implementation is only for one string into one id Nov 24 18:50:18 yes Nov 24 18:50:23 And that is why I can modify getView and use both textViews Nov 24 18:50:35 also yes Nov 24 18:50:38 Great...now it is clear. :) Nov 24 18:50:55 Hi, I'm beginning to understand programming with Android, but I can't use the AVD manager from Android Studio. Nov 24 18:50:58 I will try to implement a custom adapter with simple string[] data Nov 24 18:51:22 Thanks a lot danijoo_ s73v3r Nov 24 18:51:54 Here's the situation: I installed Ice Cream Sandwich API for the Nexus AVD, but the AVD didn't start. Nov 24 18:52:52 Because I saw that I used Android 6.0, I instead installed API version 23 (I know that's... not supporting so many devices). And now it doesn't even start: Nov 24 18:53:34 does your bios allow emulation? Nov 24 18:53:35 "could not write file /tmp/android-julius/emulator-xxx", File exists Nov 24 18:53:44 Btw is there some way by which I can view the in built android layouts like android.R.layout.simple_list_item_2 ? Nov 24 18:54:33 rudolf_, position the cursor over the place where you typed it and press Strg+B Nov 24 18:54:38 or google the source Nov 24 18:55:00 Ok Nov 24 18:55:12 Strg+B requires to have the source installed via sdk manager iirc Nov 24 18:55:45 danijoo_, yep it works :) Now I understand the layout clearly. Thanks Nov 24 18:56:48 So for custom thing, I can create my own layout and use whatever I like. Nov 24 18:56:54 That sounds great. Nov 24 18:57:19 you can also use the built in layouts if they serve your needsxz Nov 24 18:57:55 Ok Nov 24 19:04:31 To put it short, I wonder if there is some command for the emulator that turns it on. Nov 24 19:05:55 sammecs, if you click the start button, it should start Nov 24 19:06:50 if it doesnt, something is wrong. for more information you need to show something like a log file Nov 24 19:07:42 danijoo_: Do you mean the start button on the device? Nov 24 19:08:25 no i mean the green triangle in AS Nov 24 19:08:41 the one that opens the emulator window Nov 24 19:08:52 it then takes some time to boot and you are ready to go Nov 24 19:10:45 danijoo_: As I mentioned previously, there are actually two problems; Let's concentrate on one of them. The point is that the emulator actually pops up, but the screen of the smartphone remains black. Nov 24 19:11:15 check if your bios allows emulation Nov 24 19:11:33 some bios/uefi have it disabled by default Nov 24 19:13:06 I'm using Linux on a MacBook. I'm no expert, but I would *guess* that it is enabled because Wine (for example) runs fine. Nov 24 19:14:35 guessing wont help you fix the bug Nov 24 19:15:31 it could be anything if you dont show logfiles. Nov 24 19:15:51 sammecs: Wine is completely orthoganal Nov 24 19:16:01 Wine Is Not an Emulator, after all Nov 24 19:16:11 Oh, I forgot. Nov 24 19:18:22 Where can I get information about whether my BIOS allows emulation? If I google the term, I just get results for 'Running Windows on Mac' :/ Nov 24 19:18:41 no idea for mac Nov 24 19:19:06 on normal PCs you just boot into bios and check if the emulation flag is set to allowed Nov 24 19:19:26 macbook is going to have EFI boot Nov 24 19:19:49 you cant simply boot into it iirc. theres a file or something like that in a seperate partition Nov 24 19:19:55 and I believe you mean Virtualization, not Emulation Nov 24 19:20:07 yes :) Nov 24 19:20:30 which macbook do you have? Nov 24 19:20:55 I think the i7 is the only cpu that ships on the macbook which has Virtualization Nov 24 19:21:33 s73v3r, my super old macbook (2009) allowed virtualization too Nov 24 19:22:09 out-of-the-box iirc Nov 24 19:22:27 Mine is from 2012, I think. Nov 24 19:22:54 naaa even old macbook on intel core2 duo had vt-x Nov 24 19:23:12 sammecs, you need first to check if your cpu has vt-x instructions set Nov 24 19:23:24 i don’t know if the i5s that some of the newer MBPs ship with have it, though Nov 24 19:23:25 then you need to be sure your bios is allowing it Nov 24 19:23:34 I’m quite positive the i3s don't Nov 24 19:24:36 sammecs, what does tell the command: cat /proc/cpuinfo Nov 24 19:24:40 (use pastebin) Nov 24 19:25:01 sammecs, asked you 2 times for a logfile of the emulator... Nov 24 19:25:22 if you have vmx, iirc you're good to go Nov 24 19:25:41 danijoo_: Yes! Problem is, I don't know where they are and the log in android-studio only shows a warning message "skipped version check" Nov 24 19:26:22 i wont google the log file location for you. Nov 24 19:26:55 Hey guys, would you recommend me to use OkHttp library for send and receive HTTP-POST or is there a better option to do this job ? Nov 24 19:27:35 Pastebin for command: http://pastebin.com/4rndawfA I'm a bit busy in the moment, wait a minute... Nov 24 19:28:19 well, you have vmx Nov 24 19:28:51 do you have the driver installed? Nov 24 19:36:32 s73v3r: I installed the package libvirt0 for now, but nothing changed Nov 24 19:36:45 did you install the HAXM driver? Nov 24 19:36:46 rdnt, Hey. I solved the requestCode issue. Nov 24 19:36:57 so much about logs. im out Nov 24 19:38:03 eh watching the tools dev summit session - this is so complicaaaateeeedddd Nov 24 19:38:10 yup Nov 24 19:38:29 s73v3r they need to just write a bunch of docs about this Nov 24 19:39:07 hey :I Nov 24 19:39:09 I think they need to take this as a hint: If they can’t make a reasonable talk about it, and not have it go over most people’s heads, then their system is far too complex Nov 24 19:39:58 if a project has been created/modified in Eclipse, would it make a difference if it is opened in AndroidStudio? Nov 24 19:40:10 when i was doing EE we had a build engineer - really think that position is viable for android too Nov 24 19:40:30 i'm tired of youtube video tutorials Nov 24 19:40:34 what's a build engineer Nov 24 19:40:35 knowing groovy, gradle, and all these little tricks is too damn much :) Nov 24 19:40:41 oh that Nov 24 19:40:46 write first, film later Nov 24 19:40:49 g00s, lots of companies still have build engineers Nov 24 19:40:56 it costs also less time & money to write a decent article Nov 24 19:41:05 and help much more ppl Nov 24 19:41:15 who gonna write it Nov 24 19:41:22 not my problem Nov 24 19:41:32 lol Nov 24 19:43:58 lol. is that hand dockter behind there ? Nov 24 19:44:02 *hans Nov 24 19:45:40 i have to find out more about those flavordimensions, the y used color. i wonder if i could make different tint versions of my app (people ask for NV red and NV green) Nov 24 19:46:04 I'm back! Nov 24 19:46:14 And nothing changed, again. Nov 24 19:47:40 haha, that guys german accent Nov 24 19:47:58 i think my head would explode if he was on stage with yigit Nov 24 19:49:24 Who are you talking about? Nov 24 19:49:31 as a german i always wonder if I have the same horrible accent and just cant hear it or not Nov 24 19:49:46 Ha! Me too! Nov 24 19:51:34 it depends where you from :D Nov 24 19:53:43 danijoo_ i'm german too lol Nov 24 19:54:29 we're everywhere Nov 24 19:54:29 It seems like almost everyone in this IRC channel speaks german ^^ Nov 24 19:54:40 nein ! Nov 24 19:54:44 nicht? Nov 24 19:54:59 sprehen sie android dev? Nov 24 19:54:59 ) Nov 24 19:56:01 So dudes, if a project is written in Eclipse, will transffering it to AndroidStudio make any difference? Nov 24 19:56:47 yeah. compiling will take twice the time :p Nov 24 19:57:12 So you would favourize Eclipse? Nov 24 19:57:24 apart from compiling time Nov 24 19:57:25 no Nov 24 19:58:01 a dude at work uses Eclipse, i'm more comfy with androidStudio so far, will there be "compatibility" issues? Nov 24 19:58:51 considering we'd most likely have to use a version system, like git in this case Nov 24 19:59:15 that will be a problem Nov 24 19:59:26 the eclipse project structure differs from AS Nov 24 19:59:49 standardize on one of them Nov 24 20:00:02 and unless you have a good reason, tell the eclipse user to get bent Nov 24 20:00:08 it should be possible to make gradle use the eclipse structure, but it wouldn't be the most fun to try to maintain both Nov 24 20:00:18 eclipse is pretty much a dead end on android now, officially anyhow Nov 24 20:00:27 I think you can make gradle to accept eclipse structure but that will require a lot of customization in the build file Nov 24 20:00:50 a better option would be to have eclipse take the AS structure, if possible Nov 24 20:01:21 technically Gradle should be able to spit out whatever the ide wants, but I don’t think they ever got the Android structure into any Eclipse gradle plugin Nov 24 20:01:34 okay, if i'd have to justify the dude to start using androidStudio, which argument would have a good weight? Nov 24 20:01:55 Eclipse is dead for Android is a nice argument Nov 24 20:01:58 Official support Nov 24 20:02:21 problem is it's a half finished project, that has been created and developed using eclipse Nov 24 20:02:34 pretty much, unless you’re doing NDK stuff, there is zero reason to stay on Eclipse Nov 24 20:02:55 doesn’t matter. Import into AS and make a clean break Nov 24 20:03:04 would restructuring it under android be a good "investment" in time Nov 24 20:03:11 yes Nov 24 20:03:39 considering ADT is dead at the end of the year, you’re gonna have to do it some time Nov 24 20:03:48 and the import should take care of most of it Nov 24 20:04:14 also its not _that much_ work if you have one being familiar with gradle at work Nov 24 20:04:22 if you are all new to it it might take some time though Nov 24 20:06:18 even if you're doing ndk, there's no reason to use eclipse Nov 24 20:06:27 you can use the ide of your choice for working on native code Nov 24 20:06:38 eclipse does nothing special in integrating ndk into regular app Nov 24 20:07:03 so you don't get any special highlighting or completion or checking Nov 24 20:07:41 i was under the impression that AS’s support for the NDK still paled compared to Eclipse Nov 24 20:08:01 racket scheme 6.3 \o/ Nov 24 20:08:27 not using NDK Nov 24 20:08:43 s73v3r eclipse had CDT, uh has CLion stuff been integrated into AS yet ? Nov 24 20:08:53 some of the clion stuff has Nov 24 20:08:55 and when you mean "dead", what exactly do you mean? no more support for what exactly? Nov 24 20:08:57 doubtful Nov 24 20:09:08 as has syntax support now for c/cpp as i recall Nov 24 20:09:10 n0r: They’re officially dropping support for it by the end of the year Nov 24 20:09:15 no more updates Nov 24 20:10:01 is it just the two of you, or are there more people? Nov 24 20:10:01 anyone know if its possible to do ?attr/actionBarSize in dimens.xml? Nov 24 20:10:05 Off the top of their head Nov 24 20:10:18 so far the 2 of us, maybe another person will connect on-and-off, not set in stone yet Nov 24 20:10:51 hwrdprkns, think so Nov 24 20:11:19 I thought so too. This doge telling me its not Nov 24 20:11:48 by the way, in your experience, are android devs in good demand? Nov 24 20:12:14 i switched to it recently because we had a red alert, and there was an android dev needed Nov 24 20:12:26 they’re in fairly good demand Nov 24 20:12:30 is it really that hard to find one? do most of you work in this field? Nov 24 20:12:31 mobile in general are in demand Nov 24 20:12:56 it’s not so much that it’s hard to find them, its that most companies don’t want to pay for them Nov 24 20:14:24 why not? Nov 24 20:15:01 currently it's as much of a promotion to create apps for your services as it is to create a website, if not moreso, considering the website/app ratio on the market Nov 24 20:15:49 most companies don’t want to pay for websites, either Nov 24 20:16:07 hello guys is there a reason a new app on a blank activity with all latest stable tools/packages and all. and say on latest marshmellow setting in latest android studio should be having rendering issues, if i switch the theme from AppTheme.NoActionBar in layout designer to Material.Light. here is code its details on pastebin. http://pastebin.com/disGmK1E Nov 24 20:17:55 n0r depends on the sector; you see many startups going mobile first - thats the good scenario for a mobile dev, you'll be working on a key product. but other companies , the mobile is afterthought - they get contractors to do it , and then it sits a while Nov 24 20:19:05 Btw I don't get why i have this error when i am following a training video and I do what he does. so shouldn't make sense to have to edit xml or something. i would think Nov 24 20:19:06 * g00s wonders if there will be any full time imployment by 2030 - will we all be working gigs? Nov 24 20:19:24 i guess if you are in coastal city you may be swimming Nov 24 20:19:29 g00s, is that before or after google took over the world? Nov 24 20:19:35 s73v3r: i disagree with your use of the word "most", as it is rare to find a business that does not own at the very least a basic website, and webDevs are in good demand, however java devs have a higher salary (here at least), which means they're more in demand. it might be our separate experiences however Nov 24 20:20:01 higher salaray means more demand? Nov 24 20:20:05 i dont think so Nov 24 20:20:32 how many top managers are in demand out there? :p Nov 24 20:20:35 n0r i read web dev salaries / demand was down last quarter, at least in the US Nov 24 20:20:48 ofcourse, if there was an ambundence of supply, the value of the product, this case a java dev, would be much lower Nov 24 20:20:49 might be oversaturated Nov 24 20:22:03 agree with the oversaturation part, also i'm afraid of the shift that's happening along with globalization and outsourcing of information-field related jobs, as the fucking indians and poor countries can do the same work for a fraction of a price Nov 24 20:23:40 n0r stay calm, not good to single out any groups of people. they're just working too Nov 24 20:24:02 while true that outsourcing the jobs to freelancers/3'rd world companies is much less reliable, their ridiculuosly small asking price for it does and will affect the overall salary in first world countries, making the "dream to work as an engineer in the US" fade :/ Nov 24 20:24:08 next week it will be vietnam or whatever Nov 24 20:24:34 regardless, their prices make ours seem high Nov 24 20:25:44 and i only mentioned india because several years ago, freelancer.com had so many indian making bets on projects and letting employers down, that employers literally started writing NO INDIANS! in their project details ) Nov 24 20:31:33 seems unfair and fair at the same time. sometimes writing code and dealing in absolutes is much less demanding Nov 24 20:33:08 It's just indians, not "fucking indians". Please mind your language :) Nov 24 20:33:08 cool Reto is back doing fireside tonight Nov 24 20:38:01 dammit, every time i reboot i have to rerun haxm install Nov 24 20:38:07 SimonVT: i'm sorry if i offended anybody, the word slipped out, but the point remains valid unfortunately Nov 24 20:39:43 n0r in any case, it has less to do with any group of people "out there" and more to do with global capitalism, which is not the topic of the channel ;) Nov 24 21:01:28 quick question (hopefully), I'm using florent37/PicassoPalette in order to style a amulyakhare/TextDrawable in each row of a ListView, and it just doesn't want to actually work. It works (well) with other views in my app, but it doesn't seem to be redrawing the TextDrawable. what would be the best way to accomplish this? I can furnish a gist of my code if it helps :) Nov 24 21:04:04 here you go :) https://gist.github.com/drinfernoo/326c2fd8a0baca39bb37 Nov 24 21:31:14 CedricBeust did you watch the summit video on tooling with xavier ? Nov 24 21:37:36 I have videos that get displayed in a recyclerview Nov 24 21:38:15 I need to find a way to set an image preview for the videos, for example setting the image in the first frame of the video Nov 24 21:38:30 so that the user sees a still image until the video starts playing Nov 24 21:43:14 hey fellow devs what do you prefer for plotting a graph in android Nov 24 21:43:20 is there any built in stuff or is there a good lib Nov 24 21:50:07 nothing built in Nov 24 21:55:04 Anyone using AS 2.0 preview? Nov 24 21:55:15 Mine has just changed back to IntelliJ default Nov 24 21:55:20 All the Android features are gone. Nov 24 22:00:10 AKK9: yes I'm using it, haven't seen this Nov 24 22:04:12 Hmm, how easy is it to down grade versions? Nov 24 22:07:40 is gradle exit code 1 "execution failed for task ...?" Nov 24 22:07:43 does anyone know? Nov 24 22:08:29 hmm gradlew does exit 1 but only on two cases Nov 24 22:08:43 with that much information all i can tell you is that your built failed ;) Nov 24 22:09:43 yeah Nov 24 22:09:51 or in other words: http://imgur.com/jacoj Nov 24 22:09:52 it didn't look like it failed Nov 24 22:09:54 it ran the tests Nov 24 22:10:11 lol Nov 24 22:10:14 there were none Nov 24 22:10:34 i think i got it though Nov 24 22:10:34 mabe Nov 24 22:10:38 look in the gradle console Nov 24 22:13:55 yeah I think i broke something somehow Nov 24 22:14:17 not sure how it broke but it did... looksl ike the jacoco createDebugCoverageReport task isn't being created anymore Nov 24 22:14:41 rolled back my changes but no dice ;( Nov 24 22:15:24 pastebin some error details Nov 24 22:15:32 there must be a stacktrace/error details Nov 24 22:15:35 and maybe some gradle files and what you are attempting to do Nov 24 22:16:45 oh i got it Nov 24 22:16:50 :/ Nov 24 22:16:52 it was a bug in gradle 1.3.0 Nov 24 22:16:55 the plugin Nov 24 22:17:02 somehow it got changed back to 1.3.0 Nov 24 22:17:08 even though I switched it to 1.3.1 Nov 24 22:17:23 i've been fighting with gradle and jacoco for the last few days Nov 24 22:17:28 it's all a blur ; ; Nov 24 22:17:34 both are outdated Nov 24 22:17:48 is there a newer version? Nov 24 22:18:08 AS should tell you Nov 24 22:18:14 I thought the latest was beta Nov 24 22:18:17 it does not Nov 24 22:18:32 com.android.tools.build:gradle:1.3.1 Nov 24 22:19:56 grekkos, http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.android.tools.build%22%20AND%20a%3A%22gradle%22 Nov 24 22:21:32 AS 2.0 preview has me using classpath 'com.android.tools.build:gradle:2.0.0-alpha1' one day i should take the time to learn some gradle. Nov 24 22:22:07 Hello Nov 24 22:23:20 I am using a ScaleGestureDetector for pinch-zoom and a SimpleGestureDetector for detecting panning. If the user is scaling, I don’t want it to pan through onScroll. I’m not sure how to differentiate between the two? Nov 24 22:29:30 I'd like to repeat my former question: would you recommend me to use OkHttp library for send and receive HTTP-POST or is there a better option to do this ? Nov 24 22:29:53 Almador, I use Okhttp with no issues or complaints Nov 24 22:31:00 ok thanks, i hope i can handle it too. i failed with httpurlconnection Nov 24 22:31:31 I have some code you can look at Nov 24 22:31:36 Its on my GitHub, want a link? Nov 24 22:31:46 yes, please ;) Nov 24 22:32:08 One sec Nov 24 22:34:06 Here you go man http://pastebin.com/3VNScdZG Nov 24 22:34:09 Almador, ^ Nov 24 22:34:38 Depending on how new to java you are, some of that code may look confusing, let me know Nov 24 22:35:33 actually i'm a real newby with java, usually i programm in c, c Nov 24 22:35:44 c++ or c# Nov 24 22:36:22 Can you understand the code I showed you Nov 24 22:38:23 you send a request to a page and get the complete answer. am i right ? Nov 24 22:38:40 Yep Nov 24 22:39:07 Almador: It’s no different than making web requests in other languages Nov 24 22:40:27 g00s, ad vector in AS 1.5 - I knew it wont be cheap this fancy function. Coloring was working for some time, but somhow it stoped working. Now I know why: Nov 24 22:40:28 works -> android:fillColor="#FFFFFFFF" Nov 24 22:40:28 does not -> android:fillColor="@color/color_primary_white" Nov 24 22:48:36 mm and not the only one with same problem - https://code.google.com/p/android/issues/detail?id=186431 #12 kohan...@gmail.com Nov 24 22:52:21 are the videos from the summit going to be posted later on ? Nov 24 22:52:41 bolovanos does doing what #13 says work for the preview if set >=21? Nov 24 22:53:20 drose379: to request a hole page is quite simple, i need to send some params with HTTP Post methode and listen for the answer - i will try it with OkHttp tomorrow, so we will see ^ Nov 24 22:53:27 canvs2321-, do not know - I do not have capability to test it Nov 24 22:53:40 this break music is banging Nov 24 22:53:54 barbs heh :D i like the guitar part Nov 24 22:53:58 canvs2321-, I am writing to discussion "Maybe it is problem with Gradle doing backsupport bitmap versions and not taking references in consideration." Nov 24 22:53:58 Almador, I am making a POST request in what I pasted to you earlier Nov 24 22:54:15 * barbs bops head Nov 24 22:54:35 canvs2321-, but "...But it won't work for our backward support..." Nov 24 22:55:01 i try it out, thanks and bye ;) Nov 24 22:55:54 canvs2321-, he does not say why it won't work, he just states it won't work Nov 24 22:58:49 canvs2321-, am I understanding it right that it is just limitation, and bye, I thing it does not make any sense, another tool, which makes things more obfuscated? Nov 24 22:58:53 g00s, is it a rhetorical question? Nov 24 23:24:45 so where do i see the new emulator? i have android studio 2, i updated the sdk, i dont see the new emulator interface Nov 24 23:25:14 what instructions do their blog post give? Nov 24 23:26:53 nothing Nov 24 23:27:31 did you create a new AVD? Nov 24 23:29:15 yeah Nov 24 23:29:38 Hello Nov 24 23:29:46 let me try again Nov 24 23:30:10 hey guys. for some reason, my adb wifi disconnects after i disconnect my usb cable. using nexus 6p, android 6.0. following the steps of using adb tcpip then connect, and if i do "adb -s shell" everything is fine and dandy, and i disconnect my usb, then my shell dies. any thoughts? Nov 24 23:31:22 ah, the classic android double act... Nov 24 23:32:05 do adb connect, adb -s i believe just connects using serial for device, not sure it connects over wifi or the usb connection Nov 24 23:32:41 i see Nov 24 23:32:55 i may have it wrong though Nov 24 23:34:32 no dice, still the old emulator Nov 24 23:46:56 I’m trying to use the ScaleDetector and SimpleGestureListener together — one for pinch/zoom and the other to pan a view. I don’t want it to pan the view if I’m zooming in, but can’t figure out how to consume the event, or provide exclusion. Any ideas? Nov 25 00:12:22 lol when i listen to these guys, i just think all these issues are because android wasn't designed well Nov 25 00:16:33 fireside chat for tools is up Nov 25 00:17:22 i didn't know the GC compaction only happened when the app was idle Nov 25 00:17:32 awww dats a cute lil fire Nov 25 00:19:35 first question was about eclipse? Nov 25 00:23:52 i would ask for java 9 support now Nov 25 00:23:59 java 10 Nov 25 00:24:11 clap clap for lambdas! Nov 25 00:24:38 I want lambdas, but after using Swift recently, I’m really excited for value types Nov 25 00:26:14 but migrating to d.android.com ... seems where stuff goes to die also Nov 25 00:26:27 just gets out of date Nov 25 00:28:10 this guys is on drugs Nov 25 00:28:51 where are they taking the questions from? Nov 25 00:29:36 not sure i guess google+ Nov 25 00:32:43 I am using android:showAsAction="ifRoom" to show Action menu Items. I have 4-5 items in menu, all of them "ifRoom", but android hides them all in overflow when in portrait mode. Problem is, that there is enough place to show them, at least some of them as documentations says "If there is not room for all the items marked "ifRoom", the items with the lowest orderInCategory values are displayed as actions, and the remaining items are displayed in Nov 25 00:32:43 the overflow menu." Nov 25 00:32:43 What would you do to find out, what is going on? Nov 25 00:34:20 btw - it is of course APP:showAsAction="ifRoom"... Nov 25 00:44:46 stupid question: I have an int, and I want an enum Nov 25 00:45:21 none of those answers helps (setting app:/android:) http://stackoverflow.com/questions/15917973/showasaction-ifroom-doesnt-show-the-item-even-when-there-is-plenty-of-room Nov 25 00:45:28 Did they talk about Java 8 or Kotlin today? I missed it all. Nov 25 00:45:45 someone asked about Java 8, and they basically said you should have asked yesterday Nov 25 00:45:47 TacticalJoke yeah, no story :) Nov 25 00:48:52 * g00s predicts dev summit 2010 tools question: will we get java 8 ? :) Nov 25 00:48:58 *2016 Nov 25 00:49:24 when is Java 9 supposed to come out? Nov 25 00:49:47 how long until we’re asking for Kotlin 2 support? :p Nov 25 00:55:10 they used to have recipes; gradle-samples zip file ... but they removed it from the site Nov 25 00:57:16 wouldn’t that be the Github site now? Nov 25 00:57:20 g00s I dont think we will see it in java8 Nov 25 00:57:29 s73v3r: I think you can use Enum.values. Nov 25 00:57:30 I predict somethign else Nov 25 00:57:32 s73v3r they wouldn't have to answer so many question if they just had better docs ;) Nov 25 00:57:35 they gotta be working on something else Nov 25 00:59:53 trying to make my first apk with android studio. its just a simple full screen with two images, nothing lese. when i install the compiled apk it does not give me the option to open it? and i cannot see it listed in the apps section but it is there in the settings/apps installed packages.. help?! Nov 25 00:59:55 ron_frown they have been putting tons of work in android studio Nov 25 01:00:48 bbt: Just press Run from Android Studio. Nov 25 01:01:18 is the beta2 crap is any better Nov 25 01:01:57 er android studio 2 beta Nov 25 01:01:58 sorry Nov 25 01:02:20 your problems have nothing to do with Android Studio, so you’re getting upset at the wrong thing Nov 25 01:03:11 me/ Nov 25 01:03:44 my problem is that java sucks... and not just java but the jvm... and people fail to recognize it Nov 25 01:03:56 then back up and say we have an even crappier version of java than most people do Nov 25 01:03:56 no, it’s not Nov 25 01:04:05 and then also tack on poorly designed UI toolkits Nov 25 01:04:15 whether that be a side effect of terrible java or what Nov 25 01:04:16 feel free to go work on something else Nov 25 01:04:29 thats the java way Nov 25 01:04:40 ron_frown: Kotlin makes things a little more bearable. Nov 25 01:04:45 I've heard that Nov 25 01:04:53 Though I wonder whether Kotlin will support Instant Run (and maybe other stuff). Nov 25 01:05:09 iirc I actually preferred java's syntax but kotlin certainly seemed more capable Nov 25 01:05:12 and less verbose Nov 25 01:05:27 TacticalJoke, isnt showing in the run either, the app that is. Nov 25 01:05:28 well, instant run is just replacing method bodies Nov 25 01:05:44 does kotlin generics get rid of the type erasure problem/ Nov 25 01:06:45 ron_frown: It supports reified generics, but only when the context is an inline function. Nov 25 01:07:18 hmm Nov 25 01:07:52 These two Tweets from the Kotlin project lead are positive: 1. Addressing an Android Studio 2.0 problem: https://twitter.com/abreslav/status/669150157896839168 2. Supporting Android Lint: https://twitter.com/abreslav/status/669098691400212481 Nov 25 01:08:25 I wish like hell android databinding framework was better Nov 25 01:08:28 it really was the right idea Nov 25 01:08:36 but implementation details Nov 25 01:08:36 ron_frown: https://kotlinlang.org/docs/reference/inline-functions.html#reified-type-parameters Nov 25 01:09:40 why should you have to specify refried type parameter Nov 25 01:10:06 I guess c# has just spoiled me Nov 25 01:10:27 anyone use the new emulators yet? Nov 25 01:10:40 really bitchin generics and type inference Nov 25 01:10:52 because java is garbage Nov 25 01:10:57 just that and reflection apis are fantastic Nov 25 01:11:03 I guess it needs the modifier since this is non-default and not supported by the actual JVM. Nov 25 01:11:24 hmmmm Nov 25 01:14:51 my problem is more the retarded amount of work it is to do something simple vs other mobile os's and other UI toolkits Nov 25 01:15:32 I think the new changes are positive. A faster emulator and Instant Run should take some of the pain away. Nov 25 01:15:46 agreed Nov 25 01:15:57 If we can get HTML-like insta-results, that'll be cool. Nov 25 01:16:02 especially because it seemed that the Preview window could render a CardView Nov 25 01:16:47 faster emulator would be good Nov 25 01:16:56 that true Nov 25 01:17:02 I want a scrolling grid launcher thing Nov 25 01:17:16 heres 10 classes you can implement and bam done Nov 25 01:17:18 what?! Nov 25 01:17:37 it’s not 10 Nov 25 01:19:01 scrolling list adapter Nov 25 01:19:05 and this that and the other thing Nov 25 01:19:08 I dont know Nov 25 01:19:12 one thing I can say Nov 25 01:19:17 its not for lack of experience Nov 25 01:19:24 with android, but more experience with other platforms Nov 25 01:19:41 I honestlyt hink building apps in straight c++ and any number of ui toolkits woudl be easier Nov 25 01:19:54 go for it Nov 25 01:19:59 is android studio 2 part of beta channel or what Nov 25 01:20:05 canary Nov 25 01:20:05 s73v3r oh I do Nov 25 01:21:59 funny that stuff like jetbrains writing their own jvm because oracles could not do what it was supposed to, or support highdpi Nov 25 01:22:59 it was font rendering. And I don’t believe they wront the entire JVM, just branched off one Nov 25 01:25:31 where the hell is the new emulator? Nov 25 01:25:48 just in place of the old one, no? Nov 25 01:25:50 seems fast to me Nov 25 01:25:55 why does my device always show up as offline when I try to use adb-wifi? Nov 25 01:25:56 tweet to the android dev team and ash Nov 25 01:25:56 runs like a native android phone Nov 25 01:25:58 ask Nov 25 01:26:26 pfn do you started it whilst plugged in to USB? Nov 25 01:26:32 I seem to recall that used to be a problem Nov 25 01:26:43 you can only start it while plugged into usb Nov 25 01:26:50 oh Nov 25 01:27:48 ron_frown: so where is the new UI? Nov 25 01:27:57 the problem is only 1 adb can be connected to it at a time Nov 25 01:28:02 I dont know man Nov 25 01:28:04 do you see the new emulator ui? Nov 25 01:28:16 no Nov 25 01:28:20 pfn adb wireless hasnt worked for me since marshmallow Nov 25 01:28:21 strange Nov 25 01:28:52 can you drag an apk into the emulator? Nov 25 01:28:59 this is not the new emulator Nov 25 01:29:27 i can tell, because of the super informative about dialog Nov 25 01:31:47 orbyt_, I haven't tried on marshmallow, I assume it works as well Nov 25 01:34:44 can someone tell me why a marker is not being placed? i do not get any errors. https://ideone.com/mkk8La Nov 25 01:39:30 to be honest Nov 25 01:39:42 I dont know why android project is still using emulators vs simulators Nov 25 01:39:53 skia exists for windows Nov 25 01:39:57 no need to emulate the entire fucking os Nov 25 01:40:00 and hardware Nov 25 01:40:22 hahah Nov 25 01:40:33 is bluestacks any good? Nov 25 01:41:04 I installed when it was just released, seemed buggy but improved Nov 25 01:41:13 honestly this new emulator is decently fast Nov 25 01:41:23 but you know its using more cpu cycles than it should Nov 25 01:41:46 yea Nov 25 01:49:30 Bluestacks is only good for people who want to play games... not for dev Nov 25 01:53:10 how do you use the new emulator? Nov 25 01:54:31 im trying to get some animations going in a recycler view such that there is a delay between each item view animating in. Nov 25 01:55:05 ive seen an example using a GridLayoutManager but i was hoping it would be possible to do with a standard LinearLayoutManager Nov 25 01:55:29 can anyone shed any light on the easiest way to do this? Nov 25 01:57:37 pfn i've been having lots of problem with adb wireless on 6.0 Nov 25 01:57:47 somebody knows why when I run tests I got this: "error: package com.google.android.gms.iid does not exist" Nov 25 01:57:52 i got it working *once*, and then never again haha Nov 25 01:58:03 new emulator is just part of android studio 2.0 correct? Nov 25 01:58:31 I have been using geny for so long that I forgot about google's android emulator existed Nov 25 01:59:12 i'm wondering though if the new emu is based on qemu Nov 25 02:00:25 I have a question on setting alarms and figuring out day offsets. Is someone might be able to provide some input? http://stackoverflow.com/questions/33905874/android-date-determining-future-date-from-today Nov 25 02:01:36 teasp00n it's kind of hacky way to do it but you could use a Handler + for loop and manually set a delay Nov 25 02:01:58 There is probably a cleaner way to do it though Nov 25 02:02:04 can someone tell me why a marker is not being placed? i do not get any errors. https://ideone.com/mkk8La Nov 25 02:04:50 liuwenhao: yeah i was wondering about that too, maybe i can just convert to a GridLayoutManager and do it that way, even if it is essentially still a list Nov 25 02:09:54 g00s, indeed, I just tried on my n9, didn't have any luck Nov 25 02:37:47 I have a question on setting alarms and figuring out day offsets. Is someone might be able to provide some input? http://stackoverflow.com/questions/33905874/android-date-determining-future-date-from-today Nov 25 02:52:33 just ran out of disk space Nov 25 02:52:46 50g in "disk-images" for android sdk Nov 25 02:52:48 nice **** ENDING LOGGING AT Wed Nov 25 03:00:53 2015