**** BEGIN LOGGING AT Mon Jun 01 02:59:59 2015 Jun 01 03:02:40 Zenger: it happens to me too Jun 01 03:02:53 Sometimes I noticed it helps if I terminate the app via the red X button on the ADB log sidebar Jun 01 03:03:02 Also killing it from my device Jun 01 03:03:10 Foxhoundz: I tried that no luck Jun 01 03:03:16 Hm maybe killing from the phone helps Jun 01 03:03:27 Zenger: tried rebooting the phone? Jun 01 03:03:39 Napalm: countless times Jun 01 03:04:59 Well back to my question: I'm continuing to learn Android and so far so good. I've began learning about Fragments. I was wondering if Fragments are the more acceptable way of building the UI as opposed to a pure activty method Jun 01 03:05:10 Unless there is yet another, unleared method of building the UI Jun 01 03:09:14 Foxhoundz: yes, but Fragments are not required. You can do things with other systems of managing compoents in your UI. Jun 01 03:10:13 Alright seems I got the error figured. So the problem is if you keep the app open it won't update, you either have to restart the app yourself or wait until adb does it (which sometimes fails for some reason) Jun 01 03:14:22 Hi Everyone, quick question - i'm trying to override the default back button click function but the onBackPressed() method is never called when the back button is pressed Jun 01 03:14:24 Any ideas? Jun 01 03:21:00 if i'm implementing a state machine with android are there any resources i should refer to? Jun 01 03:21:52 i have an activity that will proceed through various states and work with android media Jun 01 03:22:41 is the undocumented GraphicBuffer C++ class in the NDK still the only fast way of creating shared GPU/CPU textures? as far as i can tell, after hours of googling, it's the only gateway. i need a fast bidirectional tunnel between Bitmaps and GL textures of some kind... Jun 01 03:22:43 the states include playing mp3's and recording mp3's. i've implemented the same thing in angular Jun 01 03:24:16 digging through the API docs yesterday, i came across Surface/SurfaceTexture and anativewindow as a possible path, but it seems one-way only? Jun 01 03:26:48 if i could make the two GPU/CPU transitions in my subroutine instantaneous, i'd shave off 10 ms from it, and i mean, i'm not even using very big images here. Jun 01 03:33:44 dcunit3d: https://github.com/android/platform_frameworks_base/blob/master/core/java/com/android/internal/util/StateMachine.java Jun 01 03:34:41 ThJ: I have done all that myself.. and yes.. SurfaceTexture uses GraphicBuffer's Jun 01 03:36:31 Napalm i checked out that class, but i'm not sure how to import it Jun 01 03:36:33 ThJ: https://github.com/android/platform_frameworks_base/blob/master/core/jni/android/graphics/SurfaceTexture.cpp Jun 01 03:36:49 dcunit3d: you have to copy it into your project.. you cant import it.. its internal Jun 01 03:37:05 dcunit3d: you'll also need the State.java file in the same package path Jun 01 03:37:16 ahh ok cool, i'll look into that. thanks Jun 01 03:39:17 Napalm|afk, Jun 01 03:39:23 oh Jun 01 03:46:02 ayee it works :D Jun 01 04:13:37 thought this was interesting http://www.imore.com/apple-customers-look-google-io-2015 Jun 01 04:22:49 watching Google I/O is like going to a comic con Jun 01 04:23:00 either ellipsize doesn't do what i am expecting or i am using it wrong Jun 01 04:23:03 i mean, it's entertaining to watch the nerds play with their light sabres Jun 01 04:23:15 is it not responsible for putting the 3 dots if the length of text exceeds the width of the parent? Jun 01 04:23:50 but apple people aren't about to start cosplaying Jun 01 04:28:58 that's actually super apt, now that I think about it Jun 01 04:29:15 Google can make the Iron Man suit, but Apple is the actual Tony Stark Jun 01 04:30:01 do i have to create a custom activity to show an image in full screen? Jun 01 04:30:48 i have a ListView with an image and some text. when you click the image, i want it to go fullscreen and when you click it, it goes back to being a thumbnail Jun 01 04:31:09 right now i can only expand it to the entire width and height of the row Jun 01 04:32:00 aspire https://developer.android.com/training/system-ui/status.html Jun 01 04:32:31 Levite, i don't see how this is relevant? Jun 01 04:32:55 that describes how to programmatically let your activity utilize the entire screen Jun 01 04:33:16 take a look at http://paste.ofcode.org/VFgXECY8rLpzCbYZQcUmrL Jun 01 04:33:37 i'm trying to make the image take up the entire list view Jun 01 04:33:42 when it is clicked Jun 01 04:34:39 ayy Jun 01 04:35:24 this code is placed inside my ArrayAdapter in getView Jun 01 04:35:37 cbot`, you know how to do this? Jun 01 04:35:58 why not just cover the list view with another image-displaying view Jun 01 04:36:25 by using either fragments or layouts Jun 01 04:36:39 https://developer.android.com/training/system-ui/immersive.html aspire does this not help Jun 01 04:36:54 just use a fragment to contain your image or something I guess Jun 01 04:37:41 i'm not too concerned if the action bar is visible - in fact i prefer if it is because there are some buttons in my action bar Jun 01 04:37:49 but i can display a fragment on top of my listview? Jun 01 04:38:02 of course you can Jun 01 04:38:10 listview's job is to display lists, not do your bidding Jun 01 04:38:26 so i can display a fragment on top of my listview? Jun 01 04:38:45 can you link me to a tutorial to help me accomplish this? Jun 01 04:39:27 well not on top, you replace a listview-containing fragment with an imageview-containing fragment, or you overlay an imageview using a frame- or relativelayout Jun 01 04:39:56 sure they're tutorials, but they're from 2011 and are written by a non-native english speaker. this is ANDROID after all Jun 01 04:40:45 mhmm... maybe it should just be easier to open the image in the galley? Jun 01 04:40:47 gallery* Jun 01 04:43:27 it would be easier but your users would hate you Jun 01 04:44:04 mhmmm it is for personal use for now Jun 01 04:44:22 i gtg, thanks for your help Jun 01 04:44:49 it's a pity, it really is. but since android is a photocopy, no thought went in to the actual design of it Jun 01 04:45:30 is there any reason a glReadPixels() straight into an AndroidBitmap_lock() wouldn't work, when a glReadPixels() into a malloc()'ed buffer memcpy()'d into the same locked Bitmap would work? Jun 01 04:45:33 no problem. you'll have to either fragments or the drawing system to accomplish anything of merit Jun 01 04:46:06 layout system* Jun 01 04:47:15 unless there's some weird bug in my code, could it be because maybe the locked Bitmap memory is GPU backed already, so the function call balks at doing a GPU-to-CPU transfer on memory that's in the GPU? Jun 01 04:47:50 android is essentially a cargo cult Jun 01 04:48:24 except the directors are geniuses Jun 01 04:49:02 i wish they'd bring over some iOS people to whip the Android people into exposing some documentation and high perf APIs... Jun 01 04:49:08 yeah Jun 01 04:49:27 the only problem was that even if they did, the carriers still have the platform by the short and hairies Jun 01 04:49:31 curlies Jun 01 04:49:42 better documentation would be much appreciated, especially the javadoc stuff Jun 01 04:49:59 they need an actual designer to tell the nerds "NO" Jun 01 04:50:07 and it would be great if they stopped putting stuff all over the interwebs, like google+, medium, blogs, SO, etc Jun 01 04:50:12 a lot of the docs don't amount to more than 90s era doxygen files for a C++ project. Jun 01 04:50:27 ThJ lol ... i used doxygen :D Jun 01 04:50:31 "there is a class. it has these methods." Jun 01 04:50:44 yeah Jun 01 04:50:56 writing crap in XML is awesome except it's not. Firefox learned that with XUL Jun 01 04:51:06 i used doxygen to reverse our legacy C++ codebases, i am in great debt to that tool Jun 01 04:51:15 there's no point in being flexible if nobody knows how to use any of it Jun 01 04:51:42 i've owned PCs and Macs, Android phones and iPhones, so it is with some practical experience that i dare claim that it's nicer to code on iOS. so shoot me. Jun 01 04:51:43 but google presses forward, with their fingerse in every little pie Jun 01 04:51:46 It's interesting to see all these people pester against XML and now complain that in their build.gradle, auto completion mostly never works Jun 01 04:52:36 like on iOS, how do you present an image in full screen view when a table cell is clicked? Jun 01 04:52:55 simple. write a delegate method and present a view controller, that is designed in a WISYWIG editor Jun 01 04:52:59 i had a good time coding iOS too - just not lately. i used the older Xcode 3.x stuff, with terrible obj-c autocompletion. but it was fun. i thought the APIs were *much* better thought out Jun 01 04:53:07 on android? you'll be working through lunch Jun 01 04:53:39 ah, i barely touched ObjC and i'm kinda glad. i've been coding for many years, but i didn't really like iOS stuff all that much until they made a cleaner language (swift). Jun 01 04:53:45 then it all started making more sense to me... Jun 01 04:54:00 ObjC/Swift is a just an implementation detail. the real power is UIKit itself Jun 01 04:54:22 it was designed by people who thought about things before they coded and shipped Jun 01 04:54:24 right, i guess what i'm saying is that the language itself, it was a show stopper for me personally. Jun 01 04:54:55 but once that was out of the way, yeah, nice API. Jun 01 04:55:25 the other nice thing is, once you get your mobile piece done, you can easily go on to make the desktop version reusing a lot of code Jun 01 04:55:42 libgdx ;) Jun 01 04:55:43 so its extra money, phone, tablet, desktop Jun 01 04:57:26 i have a soft spot for layouts in XML, i like the way google did that. Jun 01 04:57:33 xaml also looked nice to me Jun 01 04:58:42 CedricBeust_ i wonder if the 'next generation' gradle plugin is more java, or still lots of groovy Jun 01 04:58:59 will be interesting, i guess DSL changes again Jun 01 04:59:46 I liked it at first but then you realize that it's a chore to make new files for this and that Jun 01 05:00:04 xcode is much better than android studio Jun 01 05:00:05 I should be able to pop up a dialog without having to write XML Jun 01 05:00:16 iOS emulator is much better that android emulators Jun 01 05:00:33 macos, macbooks also Jun 01 05:00:38 yep yep yep Jun 01 05:00:41 Levite ThJ also just my subjective observation, do you guys get the impression that apple just puts more effort into things ? i always feel google does the bare minimum with android (except maybe intellij, they've been working hard on that) Jun 01 05:00:45 Levite: ok? Jun 01 05:00:49 :) Jun 01 05:00:54 absolutely Jun 01 05:01:02 apple needs to entice people to give them money Jun 01 05:01:14 google just has to wave free shit at people and then own their digital lives forever Jun 01 05:01:14 g00s: i get the impression that google is dominated by engineers who mostly add functionality because they need it for themselves. Jun 01 05:01:29 g00s: and they're not really held accountable to the customers, just to themselves. Jun 01 05:01:36 android is just a branch of the google ecosystem Jun 01 05:01:52 i just feel apps are not in google's DNA and google is doing this just for the time being; they probably want to bring everything back to the web where they are more invincible Jun 01 05:02:05 the ultimate problem is that Google does not have good taste Jun 01 05:02:07 I'd mark android as ecosystem of late '90 Jun 01 05:02:09 it is very bad Jun 01 05:02:22 they'll ship something that works without considering the actual product or end user experience Jun 01 05:02:29 I don't like very very much Jun 01 05:02:40 if something is ugly or obtuse it offends no one in mountain view Jun 01 05:02:40 android studio is terrible Jun 01 05:02:44 java is shit Jun 01 05:02:47 they only act if it appears in their bug tracker Jun 01 05:03:01 java vs clang (objc) is uncomparable Jun 01 05:03:06 Guys, take this to a debate channel Jun 01 05:03:23 they're basically a much-better-funded version of Mozilla Jun 01 05:03:28 wow, and i was trying to be 'politically correct' in here... Jun 01 05:03:29 no actual direction class or sensibility Jun 01 05:03:49 i guess i needn't have worired. Jun 01 05:04:15 meh. this channel is beholden to no one Jun 01 05:04:31 ThJ: you should be politically correct because as you said “i barely touched ObjC” Jun 01 05:04:43 Yet this channel has a topic and I'd like people to stick to it Jun 01 05:04:49 ThJ: so your opinion should be hidden from us Jun 01 05:05:23 squ: don't see a problem with basing my opinion on working a lot in swift, really. just entered at a later stage in apple's life cycle. Jun 01 05:05:50 how much a lot, it appeared couple of months ago Jun 01 05:07:03 squ: a couple? it's been well over half a year now. i'd say that's enough to get a good general impression. Jun 01 05:08:46 part of android development is coping with stress, essentially this is a self-help group Jun 01 05:08:47 i mean, i've been programming since the early 90s, so i'm not entering as a beginner. Jun 01 05:08:52 i'm actually enjoying coding in android studio Jun 01 05:09:00 and in java, which is a huge surprise to me Jun 01 05:09:18 we have to talk each other down from the ledge from time to time Jun 01 05:09:31 don't stick that knife in your sternum! Jun 01 05:10:18 being the designated graphics programmer on the team, i'm working across ios and android a lot... and i'm noticing a trend where things never work out the way i think on android. :/ Jun 01 05:10:48 yeah, forget about pixel perfect on android ;) Jun 01 05:11:40 i'm in the process of C'ing, OpenGL'ing and NDK'ing myself away from the API as much as possible. working on an iOS/Android portable library for 2D graphics. Jun 01 05:12:01 i hope google can do something about upgrade delays. I think Material is good enough in most people's eyes, that OEMs are less likely to mess with it much Jun 01 05:12:12 well, not only iOS/Android, but that's where i'm starting. Jun 01 05:12:25 someone please add this to the topic Jun 01 05:12:28 https://www.youtube.com/watch?v=GtkST5-ZFHw&feature=youtu.be&t=24s&html5=1 Jun 01 05:13:15 i've taken the NanoVG 2D painting library as a starting point, and i've designed stuff around it, like native/GL image conversion, fast OpenGL blur/bloom, and tools for polygon manipulation. Jun 01 05:13:22 Levite: that actor died last year Jun 01 05:14:32 yeah, RIP Jun 01 05:14:35 right now i'm facing the issue of slow texture transfers. i solved it on iOS with a public API, but Android's proving harder to crack. Jun 01 05:15:56 and for some reason, all my code just plain old runs slower on a modern Android device than it does on a modern iPhone... Jun 01 05:17:24 i've had a few people go thru the "it's not your fault" bit wit me lol Jun 01 05:18:26 not your fault … it is android ? Jun 01 05:19:26 well, greed ultimately Jun 01 05:19:40 but yes, the blame lies with google Jun 01 05:20:12 sometimes, i start to wonder if some thing my customer wants simply isn't possible on android, even though they planned the same feature set for both apps. Jun 01 05:20:18 *both platforms Jun 01 05:22:31 working with graphics for a customer as opposed to myself has taken me down paths i'd never even consider. Jun 01 05:24:09 but uttering these truths does not gain one karma points, so it's better to keep them to yourself Jun 01 05:24:34 say "different strokes for different folks" and keep your friends Jun 01 05:26:40 ah, the art of shutting up... Jun 01 05:26:55 i stink at that. far too talkative. Jun 01 05:42:35 hmm Jun 01 05:42:40 just reading https://github.com/zeromq/jeromq Jun 01 05:42:49 "ipc:// protocol with zeromq. Java doesn't support UNIX domain socket." Jun 01 05:43:04 but android does have LocalServerSocket ... Jun 01 05:43:26 would be an interesting experiment to modify it using that, maybe use 0mq across process bounderies for IPC ? Jun 01 05:45:33 unix domain socket Jun 01 05:45:43 and local server socket Jun 01 05:45:48 are probably different things Jun 01 05:46:09 "Non-standard class for creating an inbound UNIX-domain socket in the Linux abstract namespace." Jun 01 05:46:49 it does have some shitty bugs though, like closing the socket hangs the thread Jun 01 05:47:13 if you can leave it open forever thats the best bet Jun 01 05:47:42 waddup Jun 01 05:47:44 does anybody know if any emulator, genymotion/default can use the host wifi so i can scan for actual wifi networks? Jun 01 05:47:47 hey thepoosh Jun 01 05:48:34 putzing around with rxjava RefCountSubscription Jun 01 05:50:09 cool, how do you like it? Jun 01 05:52:43 well, i'm trying an experiment now. At the moment i have one service babysit many 'Connectables' which are bt br/edr , ble, and mqtt clients. Wnen a client is created it installs some hooks so that, if the service is unbound - and it disconnects, it goes through a process to possibly shut down the service if not other things are connected Jun 01 05:53:20 but i hate the whole binding to service thing, it makes code shitty in activity / fragments Jun 01 05:53:49 so i just have some static methods in the service now so i dont bind to it, but there must be some refcount mechanism where client knows its not being used any more Jun 01 05:54:31 so i am looking at this RefCountSubscription - like all Subscriptions, you can have an action fire when it reaches 0. this action is necessary in my case Jun 01 05:54:46 to initiate the cleanup Jun 01 05:58:59 wow, I've never seen g00s talk this much before :p Jun 01 05:59:11 at one time Jun 01 06:07:29 I usually read such texts bottom to top Jun 01 06:08:04 g00s: it looks like you need a proper design first Jun 01 06:08:41 weren't you trying async loop ? Jun 01 06:08:57 no ... wasn't me Jun 01 06:09:29 could it work? as a service? Jun 01 06:10:34 haven't tried zeromq or loops, just giving ideas where to investigate :) Jun 01 06:11:38 oh, the 0mq was just thought experiment Jun 01 06:12:01 wondered if it would be feasible to do IPC with 0mq rather than bullshit like content providers or bound services Jun 01 06:12:13 I see Jun 01 06:12:21 i dont have that in my project atm Jun 01 06:12:56 i vote content providers one of the worst ideas evar Jun 01 06:13:32 hello all Jun 01 06:13:36 hi g00s Jun 01 06:13:45 i think someday we'll look back at android, as a collection of all the worst ideas evar :) Jun 01 06:13:55 hello t2mkn :) Jun 01 06:13:55 g00s: +1 Jun 01 06:14:21 there a Loader class Jun 01 06:14:28 content providers are good. if u have content hungry projects. example a stock market update app. there u may need it. else no use for general things. Jun 01 06:14:40 http://developer.android.com/guide/components/loaders.html Jun 01 06:15:02 Introduced in Android 3.0, loaders make it easy to asynchronously load data in an activity or fragment. Loaders have these characteristics: Jun 01 06:15:06 i do use content providers actually, but internally - not for IPC. yeah i use loader sometimes , its convenient for that reloading scenario of stuffing into listview Jun 01 06:15:11 They provide asynchronous loading of data. Jun 01 06:15:11 They monitor the source of their data and deliver new results when the content changes. Jun 01 06:15:23 all that is pretty nifty Jun 01 06:15:41 where providers are bad IMHO, is exposing the data model to other applications in a very brittle way Jun 01 06:16:16 thats why we dont do that shit in enterprise, letting a bunch of apps hit a db - we write services to decouple Jun 01 06:16:44 but if you are using providers for IPC in android, you are basically just letting everybody fuck with the database Jun 01 06:16:57 permissions aside, it seems very brittle Jun 01 06:17:23 you advice to avoid using databases? Jun 01 06:17:38 unless you need it Jun 01 06:17:41 no i just commenting on the IPC aspects of using databases via providers Jun 01 06:17:50 i use sqlite all the time ;) Jun 01 06:18:31 that's another PITA with android, no easy way to persist objects Jun 01 06:18:56 iOS has property lists which isn't great but at least it works Jun 01 06:19:19 iso i try again, any one knows if any android emulator supports bridged network adapter? Jun 01 06:21:12 I'm glad they bought Firebase, I hope they just integrate that into Android Jun 01 06:21:30 yeah i was hoping at i/o they would have done that this year Jun 01 06:21:45 <_rm> sorry, i'm missing some context, but if you're talking about saving small bits of data to disk, you could go with json Jun 01 06:22:41 <_rm> (that's what i did :) Jun 01 06:23:00 Levite: what do you mean “isn't great” Jun 01 06:23:04 ? ? ? ? ? ? Jun 01 06:23:18 well of course there are solutions, but there's no "easy" button Jun 01 06:23:31 iOS has Core Data, i guess thats interesting Jun 01 06:23:43 steep learning curve there Jun 01 06:23:46 <_rm> we've avoided core data like the plague since 2011 Jun 01 06:23:56 any data on hands about binary plist size, read speed ? Just to support your statement Jun 01 06:23:59 ? ? ? ? ? Jun 01 06:23:59 squ well you still have to shoehorn your objects into the plist Jun 01 06:24:06 yeah core data is pretty polarizing :) Jun 01 06:24:10 core data, disaster Jun 01 06:24:16 my friend got core data in his leg last summer Jun 01 06:24:20 terrible terrible experience Jun 01 06:24:28 I like these people who just paste random statements Jun 01 06:24:34 Odaym i think you got it in your brain Jun 01 06:24:44 :) Jun 01 06:24:50 in that context, I'll take it as a compliment :D Jun 01 06:24:53 all the complexity of SQL with none of the benefits Jun 01 06:25:00 what Jun 01 06:25:03 ? ? ? ? ? Jun 01 06:25:23 plist is xml Jun 01 06:25:27 SQL what Jun 01 06:25:29 where Jun 01 06:25:30 ? Jun 01 06:25:31 I dont know about that, a colleague of mine at a previous job was working on the exact app I was working on for iOS, his way of working with DB was extremely easy Jun 01 06:25:34 <_rm> squ: he's talking about core data now Jun 01 06:25:39 but the guy is fairly intelligent Jun 01 06:25:40 anyone here uses full version of genymotion? Jun 01 06:25:41 <_rm> squ: and plists aren't necessarily xml :) Jun 01 06:25:45 so maybe he knew how to use it better Jun 01 06:25:51 _rm: core data is not SQL Jun 01 06:25:59 + Jun 01 06:26:01 it isnt Jun 01 06:26:02 ok, that guy just paste random things Jun 01 06:26:06 it happens Jun 01 06:26:06 <_rm> squ: well, it is when you use sqlite for the backend Jun 01 06:26:11 yeah. but most people use the SQLite version Jun 01 06:26:23 Levite: have a break Jun 01 06:26:27 what.... Jun 01 06:26:51 <_rm> squ: and chill, plists are fine Jun 01 06:27:01 and binary plists Jun 01 06:27:04 <_rm> squ: the point is that you just need to a bit of work to save your data as plist Jun 01 06:27:25 plists aren't great, but you don't have to write as much glue code compared to JSON Jun 01 06:27:26 xcode packs plists into binary plist when doing iOS “apk” Jun 01 06:27:29 <_rm> there's no (built-in) [self saveAsPlist] for NSObject Jun 01 06:27:52 <_rm> anyway this is probably the wrong place for this discussion :) Jun 01 06:28:10 Levite: Jun 01 06:28:14 :) Jun 01 06:31:11 i'm talking conceptually, not actual bytes-on-disk Jun 01 06:31:41 I leave that expertise to you folks Jun 01 06:31:44 thepoosh have you looked at the new topic structure stuff in GCM ? Jun 01 06:34:55 oh, don't get me started on GCM Jun 01 06:35:23 this ain't Oprah man Jun 01 06:35:42 talkin about "chiiiiiild dem GCM got my knees hurtin!" Jun 01 06:35:52 I'd *hope* you are more intelligent than Oprah's audience Jun 01 06:36:20 dem GCM's gat meh! Jun 01 06:36:31 also Nancy Grace is probably a more up-to-date comparison Jun 01 06:36:53 Levite, what is your android app? Jun 01 06:37:11 just a niche productivity app Jun 01 06:37:21 What is your android app? Jun 01 06:38:33 Of course it's obscure and niche, what does it do? is it just a port? Jun 01 06:38:49 absolutely not, it's completely native Jun 01 06:39:04 Still dodgy, what is it, or what is the niche Jun 01 06:39:28 a time and task tracker Jun 01 06:40:04 How's it going, got lifecycles and the such underwraps? using fragments or any AppCompat stuff? Jun 01 06:40:14 I'm a Mac developer by nature which I why I protest so much Jun 01 06:40:28 v13 with fragments, yes Jun 01 06:41:06 g00s: I read it briefly, but we decided to wait until our next sprint before restructuring Jun 01 06:41:13 the biggest thorn in my side is the crappy implementation of WebView Jun 01 06:41:15 we have some updating work to do Jun 01 06:41:17 Should shelf the protest :) Android can be very responsive and have a great product, the lack of knowledge is where the hate comes out Jun 01 06:41:23 it leaks like a sieve Jun 01 06:41:35 + canvs2321 well said Jun 01 06:41:41 Don't rely on WebView Jun 01 06:41:50 +1 Jun 01 06:41:58 <_rm> Levite: you could try crosswalk, which is also a huge pain in the ass, but in different ways! Jun 01 06:42:04 I feel WebView is almost always overkill Jun 01 06:42:20 oh I know, the interface isn't WebView-based. the nature of the work performed deals with viewing webpages, though Jun 01 06:42:24 god no Jun 01 06:42:38 and executing scripts within said WebVIews Jun 01 06:42:59 <_rm> oh yes Jun 01 06:43:04 <_rm> such fun Jun 01 06:43:08 Scripts todo what with Task and Time tracker? gotta be better alternatives, are you being paid for this, or is this a hobby? Jun 01 06:43:10 Apple's UIWebView was awful too, but they rectified that in iOS 8 with the new WKWebVIew Jun 01 06:43:28 <_rm> WKWebView, which can't load local pages :) Jun 01 06:43:44 there was a guy here that tried to spawn a webview just to parse some simple json - if that's not an overkill I don't know what is Jun 01 06:43:47 <_rm> like the windows 8 webview Jun 01 06:44:50 Levite, more asking are you on a time table, or are you free todo what you want when you want, meaning you are willing to learn the quirks of android&java? Jun 01 06:45:03 free as a bird, man Jun 01 06:45:42 Should post some of your needing of scripts here, and some others can probably give ya some hints on going full java and 86ing WebView Jun 01 06:46:05 * wakelock hopes it's not json parsin Jun 01 06:46:13 <_rm> we use webview for executing javascript Jun 01 06:46:15 it is full java, don't misunderstand. WebViews are just used as a viewport to perform the work Jun 01 06:46:16 <_rm> without ever showing the view Jun 01 06:46:31 <_rm> it's not great, but it was also a fast way of running javascript without external dependencies Jun 01 06:46:36 WebView shouldn't be used for anything though :) Jun 01 06:46:46 but that's just me i guess Jun 01 06:47:21 <_rm> that's right, but that's just because the implementation varies so damn much between os versions Jun 01 06:47:24 <_rm> it has its uses Jun 01 06:47:28 I agree. The web is complete garbage. Google knows it too Jun 01 06:47:48 WebView should be used for viewing web pages, not for apps Jun 01 06:48:00 or not for the content of an app Jun 01 06:49:26 Bring in data, and use/convert/parse that data to your own custom objects to be used in whatever style is needed. Jun 01 06:49:29 I know. Let's say, if my app were a sports recruiter, the WebView would be its binoculars Jun 01 06:49:44 How do you mean? Jun 01 06:50:13 <_rm> canvs2321: that's easier said than done Jun 01 06:50:33 Huge likeness of apps is in displaying lists of data, do you know about customizing and extending Adapters and using ListView GridView RecycleView etc? Jun 01 06:50:43 _rm, how so? Jun 01 06:50:43 <_rm> there are use cases where a webview is simply the best solution for some things Jun 01 06:50:58 RecyclerView all the way Jun 01 06:50:59 _rm, easier maybe, best i doubt it Jun 01 06:51:04 not really Jun 01 06:51:07 because of the free animations Jun 01 06:51:12 webview suck Jun 01 06:51:16 <_rm> canvs2321: well yeah, on an infinite time scale, you could always go native with everything Jun 01 06:51:23 horrible API, though Jun 01 06:51:23 <_rm> but it's not realistic :) Jun 01 06:51:29 _rm, he says he has infinite Jun 01 06:51:38 RecyclerView + CardView Jun 01 06:51:45 <_rm> canvs2321: oh i'm not talking about him, i'm talking about the product i'm working on :) Jun 01 06:51:49 Levite, have you used those yet? Jun 01 06:51:56 <_rm> (vigorously defending our use of web views i suppose) Jun 01 06:51:57 _rm, then ok :) Jun 01 06:52:11 yep! Jun 01 06:52:18 if on a time table, and being paid to make it work fast, then yes the easy way works Jun 01 06:53:03 I'm a Mac developer, ergo I have good taste, ergo I hate WebView as much as anyone Jun 01 06:53:12 Levite, if you get a chance you should test the people here to help you move away from WebView. it's doable, just gotta ask and know how to ask Jun 01 06:54:12 <_rm> and to be clear, i'm not advocating replacing native views with web views :) Jun 01 06:54:28 main thing is pastbin code, pastebin stacktraces, pastebin pastebin & pastebin, and google first then pastebin :) Jun 01 06:54:31 <_rm> our apps are native, but we use web views for displaying cross-platform content as overlays on native views Jun 01 06:54:53 You're just trolling me now. My app is full native Jun 01 06:55:05 Who's trolling? Jun 01 06:55:12 The webviews are just used to display third-party webpages Jun 01 06:55:38 What data is needed from those webpages? Jun 01 06:55:47 I'm a "troll" like a preacher is a "troll" for telling people not to sin Jun 01 06:55:50 can't you take the data and display it yourself? Jun 01 06:56:18 if they have an API Jun 01 06:56:18 no. the webpages are the data Jun 01 06:56:26 link? Jun 01 06:57:06 If you insist. https://play.google.com/store/apps/details?id=com.raterware.rateraide Jun 01 06:57:09 are they interacting with the pages, or just viewing? Jun 01 06:57:19 no link to the webpages that are the data Jun 01 06:57:33 subscription-only so don't bother downloading Jun 01 06:58:10 that UI reminds me of IOS Jun 01 06:58:19 think it's the colors Jun 01 06:58:23 thanks! Jun 01 06:58:40 :) Jun 01 06:58:47 Levite get rid of the Keyword stuff Jun 01 06:59:02 in the store listing, bottom Jun 01 06:59:03 Where is the WebView in those pics? Jun 01 06:59:15 I mean, I wish Google offered a non-in-band way of including the keywords Jun 01 06:59:28 it's not shown, because it's not integral to the app Jun 01 06:59:42 then you are trolling me :) Jun 01 07:00:54 I shouldn't have brought it up, but it's just such a piece of trash Jun 01 07:01:26 WebView gets updated separately from Android now though, so there's hope for the future Jun 01 07:01:46 i was mostly curious about how you said you needed the webpages as the data, i wanted to see how could translate the page to an object Jun 01 07:02:04 <_rm> except when there are exotic layout changes in one of those updates :) Jun 01 07:02:16 you can just bundle your own webview implementation Jun 01 07:02:19 if you access WebView, then it is PEGI 17+ Jun 01 07:02:39 no need to depend on webview being updated independently Jun 01 07:02:59 <_rm> pfn: is there a simple way of building webview yourself, or do you mean something like crosswalk Jun 01 07:03:02 Levite, i'll stop for now, just remember to ask questions and find a way to keep it android :) Jun 01 07:03:10 sure thing Jun 01 07:03:28 DAE Hate Android? Jun 01 07:03:30 kidding Jun 01 07:04:05 _rm, what you said Jun 01 07:05:08 <_rm> uh so the latter? :) Jun 01 07:29:44 oh, there's finally a FAB in the new support library Jun 01 07:31:55 i hate that damn thing Jun 01 07:32:18 g00s: the support library or the FAB or both? Jun 01 07:32:44 fab in general, but the support lib FAB isn't like the one in Keep which is slighty interesting Jun 01 07:32:54 I think it's a horrible design decision, honestly. your controls shouldn't overlap your content. unfortunately Android has no better UI paradigms Jun 01 07:33:18 it looks pretty though Jun 01 07:33:48 wait, fab in support lib? Jun 01 07:34:00 you mean ripple effect, eleveation? Jun 01 07:34:06 they added some new Design Support Library http://developer.android.com/tools/support-library/index.html Jun 01 07:34:28 I dunno if it's actually in the real support libraries though? Jun 01 07:34:38 I've been using this: https://github.com/futuresimple/android-floating-action-button Can the design/support library collapse/expand? Jun 01 07:34:59 can't find Ripple keyword Jun 01 07:35:13 how is it material fab without ripple Jun 01 07:35:34 what makes button a fab? if not riiple Jun 01 07:35:46 the support lib version is just a dumb circular view Jun 01 07:36:59 g00s: stupid they even added it then. Jun 01 07:37:05 they're so dumb for lettting the carriers dictate the upgrade cycle. I guess they didn't have enough clout at the time Jun 01 07:37:07 what supportive in circular views if exists long ago Jun 01 07:38:18 Levite that is, one of the reasony i suspect Windows Phone didn't quite take off; MS wanted to be more like apple and not give so much control over bloatware and customization. the carriers retaliated by not pushing the products Jun 01 07:38:42 Right. And now MS completely backtracked and is going to do updates themselves Jun 01 07:38:43 often times, there were no WP devices in store - they had to be orderd Jun 01 07:39:05 carriers love android Jun 01 07:39:11 which ... should say something Jun 01 07:39:16 android should wait with material Jun 01 07:39:32 but fix all the bugs, errors, make support Jun 01 07:39:54 recently Google gave OEMs / carriers an easier way to add their bloatware shit without modifying the system image Jun 01 07:39:59 i'm sure they said, no fucking thanks Jun 01 07:40:00 They would just give everyone free phones and watches if the accountants would let them Jun 01 08:00:49 it's me or android sdk server is very slow today? Jun 01 08:01:17 I'm downloading files at 80KBps Jun 01 08:03:46 quit torrenting game of thrones and see if it spees up Jun 01 08:14:30 Levite: lol I'm at work Jun 01 08:14:44 hope no one is downloading from torrent Jun 01 08:44:27 who cares about game of thrones Jun 01 08:44:42 I bet g00s doesn't watch it Jun 01 08:45:05 hm what happened to the android tools talk at youtube.. seems to be removed Jun 01 08:50:47 How can I make a ListView item catch an event and change its text color? This will all happen after it has been created and layed out. Jun 01 08:51:21 What would you guys recommend for a chat system - Google GCM XMPP or firebase? or maybe something else? Jun 01 08:51:48 if you find out, tell me Jun 01 08:51:52 I'd like to know an answer to that Jun 01 08:52:46 I have tried firebase once, it was good, but never the gcm xmpp Jun 01 08:53:11 i was trying to implement custom Adapter also it was working fine until i tried to implement refresh on Swipe here is my code http://paste.ubuntu.com/11492210/ Jun 01 08:55:23 good means realtime? Jun 01 08:55:30 fast and everything? Jun 01 08:55:54 I only tried with a Node page on the server and me talking to ti Jun 01 08:55:55 it* Jun 01 08:56:15 yeah realtime. Jun 01 08:56:47 was getting text message pretty nicely. This time I need image support too Jun 01 08:57:06 are you trying to clone slack for someone? Jun 01 08:57:31 Nah. Its just an inbuilt chat. Jun 01 08:58:43 can you just base64 encode them? Jun 01 08:59:23 what? Jun 01 08:59:28 the pictures? Jun 01 08:59:35 he can yea im sure Jun 01 09:00:28 Yeah planning to do that only. Jun 01 09:00:40 Base6Fo Jun 01 09:00:57 it encodes while its encoding Jun 01 09:05:08 Firebase really is amazing. It handles crappy network connections like a champ, and they just added offline support Jun 01 09:06:58 it's just expensive Jun 01 09:11:38 can anybody please help me i need help Jun 01 09:11:49 with what Jun 01 09:14:16 yes we can Jun 01 09:14:35 anyone know how to make an item in a listview catch an event? For example, the listview is a list of music pieces, when a player in a different fragment plays the next song, I want to color the text of the song played in the listview. Jun 01 09:14:59 eventbus Jun 01 09:15:09 i was trying to implement custom Adapter also it was working fine until i tried to implement refresh on Swipe here is my code http://paste.ubuntu.com/11492210/ i dont know where did i go wrong Jun 01 09:15:17 yep Jun 01 09:15:29 claint, use a messagebus pattern to communicate between fragments / activities Jun 01 09:15:36 and the player fragment sends a "track changed" event Jun 01 09:15:46 and the listview fragment receives it and updates listview accordingly Jun 01 09:16:20 hmm, ok, yeah, I need to catch at the fragment level. Jun 01 09:16:21 the custom adapter is working on a dataset that is not the same as the one you are editing, boodllebat Jun 01 09:16:48 I was wondering if I could catch at the item view level. Jun 01 09:16:53 Odaym: yeah i know that but i dont know what data part should be made comman Jun 01 09:17:00 thats your stuff Jun 01 09:17:04 (already using Otto by the way) Jun 01 09:17:05 too easy Jun 01 09:17:17 claint, yes you can catch at the view level of course Jun 01 09:17:30 claint, just don't know how that would help really since it's the adapter that controls the listview :) Jun 01 09:18:01 Mavrik: right, I also need to decolor the song that stopped playing, so yeah. Jun 01 09:18:42 Odaym: can you give me hint , i'm newbie Jun 01 09:18:54 there is no hint, the problem is the answer Jun 01 09:19:03 dont make that problem, you end up with the solution Jun 01 09:20:01 Odaym: i got it i need to make a constructor and pass the data their Jun 01 09:20:08 yep Jun 01 09:24:34 Odaym: do i have to pass other things too ? or just data ? Jun 01 09:24:52 do you have to pass other things too or just data? Jun 01 09:25:29 if you need to pass other things pass them Jun 01 09:26:20 Android M? Jun 01 09:28:20 Preparation H? Jun 01 09:29:29 Hey, messing aroudn with the Wifi/networking APIs. I care about connection to a wifi with a specific SSID, so Im trying to inspect the connectivity state of the Wifi. which of the states reported in Wifi info represent “connected” ? I looked at the source and there is no mapping from any of the supplicant states to DetailedState.CONNECTED… Jun 01 09:30:28 WifiManager.getConnectionInfo() ? Jun 01 09:31:38 Im sitting with eclipse MET and I see a that i have a potential leak because SpellCheckerSession is keeping references to my view Jun 01 09:31:53 SupplicantState.ASSOCIATED is the state of a working wifi Jun 01 09:32:10 or COMPLETED, need to check -_- Jun 01 09:32:17 In connection to a MaterialEditText. I googled and added textNoSuggestions but that didn't work Jun 01 09:32:53 yep, COMPLETED is the one. Jun 01 09:34:14 Mavrik: completed is mapped to “obtaining_ipaddr” Jun 01 09:34:20 yes Jun 01 09:34:26 which means that wifi is connected and ready Jun 01 09:34:33 Odaym: i changed the code added custructor still it crashes on my phone can you please take a look http://paste.ubuntu.com/11493444/ Jun 01 09:34:54 and any 801.11X auth is done Jun 01 09:35:02 samskiter, what is it exactly that you want to know? Jun 01 09:35:06 Mavrik: doesn’t sound like it, lol. so will networkinfo.isconnected() never be true? Jun 01 09:35:20 crashes how, man Jun 01 09:35:23 whats the error Jun 01 09:35:28 Mavrik: I want to know when the user is connected to a particular SSID and when they are not Jun 01 09:35:46 what does that have to do with isConnected() Jun 01 09:35:47 ? Jun 01 09:35:59 you need to check if WIFI is associated with that SSID via WifiInfo Jun 01 09:36:12 Odaym: app crashes and says "unfortunaely app has stopped working" on my device Jun 01 09:36:17 oh my god Jun 01 09:36:22 duuuupe Jun 01 09:36:25 wifi is connected and ready when it enters COMPLETED state Jun 01 09:36:32 afterwards only the DHCP client must run to get IP Jun 01 09:36:40 but that shouldn't concern you if you care about SSDI Jun 01 09:36:43 there should be big red message in your Android Studio window, at the bottom Jun 01 09:36:43 *SSID Jun 01 09:36:53 it jumps up when a crash happens, that's the message you need to look at Jun 01 09:36:54 Odaym: i dont use android studio Jun 01 09:37:04 what do you use? Jun 01 09:37:11 Odaym: terminal Jun 01 09:37:15 right. networkinfo.isConnected() I assumed was an abstraction of that. most of the docs say you shouldn’t need to look at supplicant state. The internal mappings from wifiinfo.supplicantState to networkinfo.detailedState to networkinfo.state are all private Jun 01 09:37:16 Odaym: i mean CLI Jun 01 09:37:18 haha Jun 01 09:37:19 good luck man Jun 01 09:37:24 I can't help you Jun 01 09:37:31 Odaym: what i can show you exception using logcat Jun 01 09:37:44 ok I'll be here in an hour when you finish grabbing the log Jun 01 09:37:49 samskiter, why do you keep talking about supplicant state? Jun 01 09:37:55 Odaym: no i have it with me Jun 01 09:37:58 Odaym: wait Jun 01 09:37:58 ah really Jun 01 09:37:59 ok good Jun 01 09:38:01 you have a wifi status API publicly available via WirelessManager Jun 01 09:38:05 Mavrik: because tthat’s what you’re talking about Jun 01 09:38:11 which returns you it's own mapping of wifi status via WifiInfo object Jun 01 09:38:19 which may or may not reflect the underlying supplicant status Jun 01 09:38:30 Mavrik: yes, wifinfo reports the supplcantstate Jun 01 09:38:30 if you care about SSID then you must use that API. Jun 01 09:38:43 Odaym: here are the logs http://paste.ubuntu.com/11493516/ Jun 01 09:38:56 Odaym: some sort of fatal exception Jun 01 09:39:03 Mavrik: indded, I was considering using wifinfo to check the SSID and also check networkInfo.Type and networkInfo.isConnected() Jun 01 09:39:26 Odaym: on line 8 of log file Jun 01 09:39:47 samskiter, yeah, the thing about NetworkInfo is that it's an abstraction of all data connections Jun 01 09:39:48 so i could say (pesudocode): if (wifinfo.ssid.equals(“SSIDICAREABOUT”) && networkInfo.type == WIFI && networkInfo.isconnected() Jun 01 09:40:05 sure Jun 01 09:40:45 it's again the question of what you're looking for - if I read the source correctly, isConnected() will be true when the device confirms that outbound traffic is available Jun 01 09:40:54 and when does this crash happen? upon start? Jun 01 09:41:08 Odaym: as soon as it starts Jun 01 09:41:09 which is way later than when WIFI is established Jun 01 09:41:16 Mavrik: maybe that’s what I care about. is that outbound traffic in general, or outbound traffic to google’s servers? Jun 01 09:41:16 the problem is too easy also Jun 01 09:41:20 ah I see Jun 01 09:41:38 note that you'll probably get isConnected() false if the wifi gives captcha portal Jun 01 09:41:41 until the auth is done Jun 01 09:41:45 (this is a private access point that won’t have general internet access) Jun 01 09:41:46 ah ok Jun 01 09:41:47 (Not 100% sure on that) Jun 01 09:41:50 that’s me then Jun 01 09:42:32 the other thing I noted was that when I manuall select the wifi network from my settings, my phone stays on it. but if i connect from the wifi apis, it will often connect onto the SSID I care about and switch away from it within about 5 seconds Jun 01 09:42:33 Odaym: what Jun 01 09:42:46 Odaym: what is the problem ? Jun 01 09:42:51 if you dont do what the exception says you are doing, you solve it Jun 01 09:42:56 i.e. manually selecting a network is more “sticky” that using the apis Jun 01 09:43:11 we probably need to do some work with the captcha portal Jun 01 09:43:25 think it 404’s most requests atm Jun 01 09:43:29 maybe the priority is set differently? Jun 01 09:44:13 Odaym: i'm new to java so i'm bad at grasping exceptions can you give me hint Jun 01 09:44:43 to grab the exception you read its title Jun 01 09:44:47 to grasp* Jun 01 09:45:08 java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference Jun 01 09:45:12 Mavrik: yea, I think that’s private (or at least its not exposed for api <21) Jun 01 09:45:14 line 10 Jun 01 09:45:15 not 8 Jun 01 09:45:34 then at line 22 you have "Caused by:" to tell you again why it happened Jun 01 09:45:34 Odaym: yeah i see that but i have no clue what does it want to say Jun 01 09:45:52 thats beyond the scope of this channel, you need to know what the word null means Jun 01 09:45:59 Odaym: i know null Jun 01 09:46:04 samskiter, hmm, looks public API 1 in WifiConfiguration Jun 01 09:46:06 doesnt look like it Jun 01 09:46:21 Odaym: is something does not holding thing which it is supposed to hold ? Jun 01 09:46:27 no Jun 01 09:46:29 that means empty Jun 01 09:46:31 Odaym: i mean pointing to nothing Jun 01 09:46:39 yes Jun 01 09:47:17 to need to use a pointer-creator thing on it to make it not null Jun 01 09:47:50 Odaym: but which pointer or object is null Jun 01 09:48:12 line 22 says Jun 01 09:48:25 Odaym: got that is it userPost Jun 01 09:49:07 Odaym: or "this" pointer Jun 01 09:49:16 Mavrik: ah yes, i see the priority field. not well documented. guess I’ll just go for 99,999 Jun 01 09:50:18 there is no "or" Jun 01 09:50:27 only 1 thing is wrong at a time Jun 01 09:50:51 Odaym: yeah but i'm not sure which one is that so i was asking you Jun 01 09:50:57 Hello, I have a problem with the subscription with test account. The subscription should be a daily subscription, but the next renewal date is one month after the first day. and i can't cancel it. Some one have a idea ? Thanks in advance. Jun 01 09:51:03 line 22 says which one caused an error Jun 01 09:51:17 it tells you what it was trying to do when your program exploded Jun 01 09:51:51 So, coming back to my previous question, how would you catch an event at the single view level (as in an item's view in ListView)? Jun 01 09:51:51 Odaym: oh it has no size Jun 01 09:52:07 Odaym: is that cause my list is empty ? Jun 01 09:52:19 if you don't want to do it at the adapter/fragment level, that is. Jun 01 09:52:19 nope Jun 01 09:52:26 only 1 thing is wrong Jun 01 09:53:21 Odaym: wait let me find out myself Jun 01 09:53:33 Odaym: but if i fail please do tell me Jun 01 09:53:36 no Jun 01 09:54:54 Odaym: i got that userPost is null ? isn't it ? Jun 01 09:55:25 is it? Jun 01 09:55:45 Odaym: :\ maybe tell me if i'm close Jun 01 09:56:00 man its not a fucking riddle on tv show Jun 01 09:56:12 Odaym: lol Jun 01 10:00:47 Odaym: is that list ? Jun 01 10:01:28 claint, same as you do for anywhere else? Jun 01 10:01:43 You register as a listener, which part is confusing? Jun 01 10:04:10 when I would register is the confusing part. In a fragment, I usually register at onResume() and unregister onPause(). But since this is a view, a single item in a listview, I am not sure at where to make it register. Jun 01 10:04:55 Odaym: oh i give i'm not even getting close Jun 01 10:05:48 claint the problem is the views shouldn't be handling this at all. you can make it work, but you'll just have to refactor it down the line Jun 01 10:05:57 Odaym: i need help Jun 01 10:06:25 claint, what Levite said - you’re just going to end up having your fragment/activity tell your view “hey, you’re visible now” Jun 01 10:06:34 ai gang! Jun 01 10:07:02 Odaym: i got it Jun 01 10:07:41 Odaym: i guess i forgot to make a list at starting Jun 01 10:08:28 Odaym: fixed it thanks man Jun 01 10:08:42 yea Jun 01 10:09:20 Odaym: i missed this List userPost = new ArrayList(); Jun 01 10:09:26 yea, NEW Jun 01 10:09:52 Odaym: Thanks ! Jun 01 10:09:57 you dont need to give it the type again Jun 01 10:10:31 :) oh Jun 01 10:10:41 when you use a terminal you cannot click on the exception to go to the line that caused it Jun 01 10:10:57 you won't get far in the terminal Jun 01 10:11:06 Odaym: but i like terminal Jun 01 10:11:15 does android studio have automatic break on exception? Jun 01 10:11:19 Odaym: also android studio lags too much Jun 01 10:11:26 your computer is slow Jun 01 10:11:35 boodllebat: yep it lags Jun 01 10:11:39 Odaym: hmm i have 4GB ram Jun 01 10:11:42 I have 8 Jun 01 10:11:43 Odaym: i3 Jun 01 10:11:43 I have 16 Jun 01 10:11:45 doesn't lag Jun 01 10:11:46 i5 Jun 01 10:11:55 squ: does it lags in your too ? Jun 01 10:12:00 YES A LOT Jun 01 10:12:03 i hate java Jun 01 10:12:06 hate android studio Jun 01 10:12:10 noob Jun 01 10:12:21 ios is much better than android Jun 01 10:12:29 squ: thats not true Jun 01 10:12:35 "much better" is the keyword here :P Jun 01 10:12:35 you know its true Jun 01 10:12:39 scientific comparison Jun 01 10:12:40 haha Jun 01 10:12:52 Odaym: "it lags" — better? Jun 01 10:13:00 it crashes Jun 01 10:13:01 Levite, samskiter: I am just looking for the clean way. Listening at the fragment level is doable, but then it becomes necessary to pass the "currently playing" item to the Adapter as well. Jun 01 10:13:03 it hangs Jun 01 10:13:04 Hello! Jun 01 10:13:08 nah Jun 01 10:13:11 you just fail at life Jun 01 10:13:13 squ: you should do it on terminal then like me Jun 01 10:13:14 it does things wrong way Jun 01 10:13:26 it does everything bad it could possibly do bad Jun 01 10:13:39 claint, you could have a fragment just manage your ‘now playing’ view Jun 01 10:13:50 (i dont think you can put a fragment into a listview though, so you’ll need to worry about that Jun 01 10:13:56 headerview, maybe... Jun 01 10:14:04 squ: man you really hate android , even i dont love JAVA that much but android as a whole sum looks great too me Jun 01 10:14:20 boodllebat: this is temporary confusion Jun 01 10:14:28 it will pass with time Jun 01 10:14:29 he doesnt know how to leverage it, hate arises Jun 01 10:14:41 we all were like that Jun 01 10:15:20 samskiter: there is already an independent player fragment. But when it plays, the music list's item (another fragment) needs to get highlighted for example, showing the playing item. Jun 01 10:15:28 squ: what do you hate there android SDK development environment ? Jun 01 10:15:32 Odaym: hmm maybe ! Jun 01 10:15:36 claint that's just how it's done. just pass your "song ID" or its equivalent to the adapter and then it handles finding the row and updating it Jun 01 10:15:53 boodllebat: we were talking that android studio lags Jun 01 10:15:57 if you needed 20 more minutes to figure out the null error, you would have started feeling hatred too :P Jun 01 10:16:06 but you didnt, so you are still okay Jun 01 10:16:15 hi, guys is raw text passwords in the apk shown during apk decompilation process? Jun 01 10:16:16 Levite: thanks, I can do that. I was just wondering if it would be possible to do it at the single item level in a list view. Jun 01 10:16:21 the more you suck, the more you try to blame other factors for your failure Jun 01 10:16:23 thank you all. Jun 01 10:16:30 claint: I see. i think you are gonna need to do it in the fragment that houses the listview. the items can’t all be fragments…. Jun 01 10:16:47 Odaym: yeah it happens ! Jun 01 10:16:52 I have a lil question. My phone is a Mediacom (some chinese phone rebranded) they won't release kernel source, and we're stuck with a 4.2 'cause they don't want to update the phone too. The kernel version is 3.4.5, I can port only rom <=4.2 ? Jun 01 10:17:02 samskiter: right, the items are elements of a listview with their adapter and everything, and the whole thing is housed by a different fragment. Jun 01 10:17:04 claint: i understand ur frustration, I’ve tried to put fragments in listviews before, it just doesn’t work Jun 01 10:17:53 samskiter: I had my own problems with Fragments inside fragments as well. all that backstack mess up and stuff. Jun 01 10:19:18 claint: yea, nested fragments are still broken for some edge cases. you have to be careful which fragment manager you are using sometimes Jun 01 10:19:28 Nobody has an answer? :) Jun 01 10:19:30 “getChildFragmentManager()" Jun 01 10:19:46 not the right room T3-800K Jun 01 10:19:55 T3-800K: wrong channel man. Jun 01 10:20:22 Were am I supposed to go? LMAO Jun 01 10:20:36 some phone hackers channel probably T3-800K Jun 01 10:20:39 first room on the left, downstairs Jun 01 10:20:51 in the filing cabinet, behind the tiger Jun 01 10:21:01 don’t forget ur towel Jun 01 10:21:02 samskiter: right, even with that. anyway, I thought a view item level solution would be a nice hack (even though you would have to take care of the view item being refreshed and stuff) so I was wondering about that. Jun 01 10:21:28 I know that for spam reasons, nobody could write a ch name here probably so, please could you PM it samskiter if ya know? Jun 01 10:21:31 Odaym: LMAO Jun 01 10:21:34 claint: yea if you want isolated behaviour, you generally need to use a fragment Jun 01 10:21:41 T3-800K: ##android Jun 01 10:21:50 try #android-root Jun 01 10:21:53 T3-800K: writing channel names is fine, yea ##android might be fine Jun 01 10:21:59 ah yes, that looks better Jun 01 10:22:16 thanks :) Jun 01 10:22:21 a lot Jun 01 10:29:11 squ, if you prefer obj-c over java, ur doing it wrong Jun 01 10:30:04 granted, the dev environment is a little slow on android. gradle is apparently going to be a lot faster in v1.3 of android studio (if you believe the keynote) Jun 01 10:32:58 hello Jun 01 10:33:06 using appcompat v22, Theme.AppCompat. I set android:colorBackground and get this (5.1) http://i.imgur.com/Int7oD5.jpg Jun 01 10:33:14 wtaf Jun 01 10:33:45 attempting to take screenshot via adb disconnects the device Jun 01 10:34:32 that's 3 Toolbars too many Jun 01 10:34:36 Whats the difference between CardView and android.support.v7.widget.CardView Jun 01 10:34:38 Thorn: looks broken to me… yup… that’s broke Jun 01 10:35:07 Thorn: try a different version of appcompat, could be a bug with appcompat Jun 01 10:35:21 kanso: the latter is from the support library, which backports functionality to older versions of android Jun 01 10:35:25 and is generally awesome Jun 01 10:35:34 older appcompat doesn't have themed widgets Jun 01 10:36:05 Oh alright, so if I want backwards functionality always use support? Jun 01 10:36:18 kanso, go read about the support libraries Jun 01 10:36:44 Thorn: is there like a slightly lower/higher subversion you could user? e.g. 22.0.1 - > 22.0.2 ? Jun 01 10:36:47 Okay. Is it even worth it now days to support older devices, with all the new stuff coming out Jun 01 10:36:47 use* Jun 01 10:37:12 kanso: https://developer.android.com/about/dashboards/index.html?utm_source=suzunone you need to make a decision about the min version you are supporting Jun 01 10:37:28 thanks Jun 01 10:37:31 based on APIs you need, popularity of devices, estimated release date etc Jun 01 10:50:56 updated to 22.2.0, same crap (looks a little different) Jun 01 10:51:18 how do you set window background with the material theme anyway? Jun 01 10:55:21 same way you set it without material Jun 01 10:55:21 thorn, not sure, check the appcompat material gyiude, cant you just set it as before Jun 01 10:55:34 what are you setting it to? Jun 01 10:55:40 Jun 01 10:56:23 looking at it, it looks like youa re setting it to null or something, so you are just seeing like raw frame buffer junk Jun 01 10:57:25 the line that causes it is: #585 Jun 01 10:58:24 thornw try, just android color white or something Jun 01 11:00:59 <_rm> is there a way to bundle an aar dependency in your own aar? Jun 01 11:01:55 #585 is a color? Jun 01 11:01:59 _rm: maybe put it in /libs? like you do with jars Jun 01 11:02:25 @color/background_material_light worked fine. why can't I use literal colors? Jun 01 11:02:32 you can Jun 01 11:02:43 <_rm> samskiter: i've tried that but didn't get it to work. maybe i did it wrong :) Jun 01 11:02:46 but first you have to know how literal colors look like Jun 01 11:04:11 is #558855 bad literal color syntax? it works in all other places but causes crazy shit here Jun 01 11:04:33 you mentioned 585 not 558855 Jun 01 11:04:39 tried both Jun 01 11:05:16 _rm: i don’t actually know about that. maybe look at some more instructionals for including jars. and also double check you *can* put aars in Jun 01 11:05:45 <_rm> samskiter: yeah i'm not sure you can Jun 01 11:05:45 Thorn: it might be one of those places where you can’t directly enter a color - you need to refer to a color. i’ve seen that before Jun 01 11:05:56 try adding #585 into your colors.xml file Jun 01 11:06:03 andf then refering to it from the background item Jun 01 11:06:23 yeah testing it now Jun 01 11:08:58 hey guys, I have kind of a "architecture" question for you. Jun 01 11:09:17 works, thanks Jun 01 11:09:46 no idea at all why it's required in this particular place and not others though Jun 01 11:09:57 My app exists in a "free" and a "pro" version. Both come with about 20 individual graphics. So the free version has 20 pngs and the pro version has 20 pngs for imagery Jun 01 11:10:17 where the pro-images usually are exactly the same but more polished and "branded" (pro-banner). Jun 01 11:10:45 Now, you can in-app purchase pro! Jun 01 11:11:20 How can I quickly replace all these graphics? Do I need to do it programmatically? -> if(pro) {...} else {...} ? Jun 01 11:11:47 It would be just too awesome to REPLACE the source resource folder, such that I have "drawables-pro" and "drawables-free" Jun 01 11:11:58 completely freeing me of ~20 if/else constructs Jun 01 11:12:16 Is anything alike possible, or is there no way around these many if/else's? Jun 01 11:12:26 sounds dodgy.. one could just rename to get pro "4free" Jun 01 11:12:54 or load them from the web Jun 01 11:13:01 ktwo: yeah, if you disassemble and rename them. Jun 01 11:13:18 but then again, you could also edit the preference file to manipulate the "unlocked"-boolean :s Jun 01 11:14:39 no Jun 01 11:15:07 unsigned_long: and that's one of the reasons you shouldn't store it in preference file. the other reason is that user can have more then 1 device Jun 01 11:15:10 you reset that boolean each startup from google play Jun 01 11:15:15 Okay, I just thought it be a lot of work setting all the pictures programatically instead of using the xml-layouts now Jun 01 11:15:22 if someone changes it, you change it back on start :) Jun 01 11:15:28 unsigned_long: instead you should verify in-app purchase each time Jun 01 11:15:53 icedp: thank you, I will! Jun 01 11:18:21 What do you think on the main question, here? Jun 01 11:20:46 Thorn: yea, if you read the details of android:backgroundColor it will say something like “a reference to a color" Jun 01 11:21:35 unsigned_long: well why do you need to put if in 20 places, put a single if in one helper class Jun 01 11:30:27 ok Jun 01 11:49:15 i have a button attached to every element of listview , how can i get postion of row of listview when a button is clicked from anay row in listview Jun 01 11:54:06 unable to resolve symbol AdapterView what should i do i've already imported these http://paste.ubuntu.com/11495531/ Jun 01 11:55:57 you should learn how to java :) Jun 01 11:57:29 i dont know java @danijoo :p Jun 01 11:57:39 danijoo_: fixed it :) Jun 01 11:57:47 after this app im going away from android pl0x Jun 01 11:57:49 :p Jun 01 11:57:58 back to PHP for me! Jun 01 11:58:00 please do! Jun 01 11:58:06 :p Jun 01 11:58:49 i have a button attached to every element of listview , how can i get postion of row of listview when a button is clicked from anay row in listview , event to perform only on that respective row of listview Jun 01 11:59:54 like many rows are in listview , each row has button associated to it , if button is clicked i want color of respective row to be changed Jun 01 12:00:35 use google to find answer? Jun 01 12:00:52 as an android noob myself.. I tend to use google first to find the answe before asking here.. Jun 01 12:01:09 if its one thing i learnt from here.. people would generally tell you google for an answer first Jun 01 12:02:02 DarkChaoz: hmm i should first try google Jun 01 12:03:40 hey guys, is there any tool to build CWM recovery from a stock .img since the Recovery Builder on the website doesn't work any more? Jun 01 12:04:58 yeah you'll probably find a similar answer on stackoverflow Jun 01 12:05:29 I know I can build CWM from source Jun 01 12:05:41 type something like get button position in listview stackoverflow @boodllebat Jun 01 12:06:07 DarkChaoz: yeah doing that only :) Jun 01 12:08:16 DarkChaoz: what is wrong in this line Toast.makeText(getBaseContext(),str,Toast.LENGTH_SHORT).show(); Jun 01 12:20:56 Hello i have a custom ListView with custom adapter and i've successfully created a onitemclickListener() but it looks like my listview elements are not clickable Jun 01 12:21:44 hey, i'm trying to set a progressbar to indeterminate=false but for some reason it remains indeterminate, any ideas what i could be missing? Jun 01 12:24:50 for (User user : channel) { person.postCode(); } Jun 01 12:24:55 s/person/user/ Jun 01 12:24:56 nevermind Jun 01 12:24:58 (Refactoring error. Grr.) Jun 01 12:31:01 I hate this toolbar shit. I update to the latest support lib and the toolbar is going behind the status bar, its pushed up and the title, overflow, everything is under status bar....arghhh! Everything was just fine before... Jun 01 12:33:17 have you set any flags on the window? Jun 01 12:33:21 What did you update to? Jun 01 12:35:14 nothing new. I went from 22.1.0 to 22.2 Jun 01 12:35:30 support libs Jun 01 12:35:43 22.1.1* Jun 01 12:37:34 i tried every thing my code is all fine but there is some conceptual error i cannot click any listview , any body wanna check out code ? Jun 01 12:43:20 Solved it , i think if any clickable item is in listview , listview becomes unclickable Jun 01 12:44:38 WantToCode: Might as well post the code. Jun 01 12:45:17 after years of thinking I've finally come up with a perfect name for my media player, GoodPlayer! Jun 01 12:45:41 well done! Jun 01 12:45:49 JakeWharton: seems like google looked at butter knife and created binder in tools Jun 01 12:47:35 gordon_, sshhh. jw dont like data binding :p Jun 01 12:51:49 i think if it will increase performance - why not? Jun 01 12:55:11 danijoo_: well binding like in xaml is nice Jun 01 12:55:34 i like it too ;) Jun 01 12:55:39 just saying jw doesnt Jun 01 12:56:15 well Jun 01 12:56:24 at least dagger2 is out too Jun 01 12:56:30 and gradle seems to be more faster Jun 01 12:56:49 so maybe finally android development will be done right Jun 01 12:57:13 I want to register callback to MediaSessionManager that runs on background from device booting. How do I do that? context.startService() from broadcast receiver of boot? Jun 01 13:02:42 are all google io sessions recorded ? I would like to see testing sessions Jun 01 13:03:51 sandboxes aren't Jun 01 13:03:53 others are Jun 01 13:07:35 guess what, all testing talks are sandboxes :D Jun 01 13:08:15 how can I send data over other apps (whatsapp/telegram) so that it'll open the contents on my own app? Jun 01 13:10:26 vompatti, https://support.google.com/websearch/answer/134479?hl=en Jun 01 13:11:50 danijoo_: all I can find is how to send binary data(images) or textmessages to another app but I want to send data (be it text or binary) so that it'll guide the user to open up a specified app with contents received Jun 01 13:12:06 I doubt you can Jun 01 13:12:28 oh you want to send "something" over whatsapp and if the user clicks it your app opens? Jun 01 13:12:36 Data urls maybe Jun 01 13:12:44 thats called deep linking Jun 01 13:12:46 https://developer.android.com/training/app-indexing/deep-linking.html Jun 01 13:13:15 basically you send an url and the app registeres itself as corresponding app Jun 01 13:13:37 sweet thanks! I'll look into it Jun 01 13:22:18 I just included the espresso contrib library, and now my tests fail because it can't find the static method 'isLaidOut(android.support.v4.view.View) in class android.support.v4.view.ViewCompat. Tests were running just fine before adding contrib lib. Jun 01 13:26:50 Any of you on non-Ubuntu linux distro having problem with starting Android M emulator? It is stuck on black screen on my Fedora 22 box. Jun 01 13:36:15 Hey there! Apparently the new power saving mode in android lollipop disables all animations (or at least the duration is 0). Is there any way i can disable this behaviour as i am dependent on these animations? Jun 01 13:37:46 i'm using property animation... Jun 01 13:42:13 Josef_Filzmaier, I dont think so. Jun 01 13:42:46 hey guys in a spot of bother with wifi/bluetooth after ota update on a galaxy s5 Jun 01 13:43:00 anyone got a workaround for this yet ? Jun 01 13:43:17 killa2, wrong channel Jun 01 13:43:30 hi Jun 01 13:43:32 this is android application development Jun 01 13:43:55 figured if anyone would have the snawer or knowlage im after it would be the dev team Jun 01 13:43:55 hey man Jun 01 13:44:05 answer Jun 01 13:44:19 killa2, try #android :) Jun 01 13:44:31 in there already ;) Jun 01 13:44:37 slow responces Jun 01 13:44:42 So I downloaded the repo for Cyanogenmod, but I ran out of HD space as it was checking out the files. can i restart that process or do i need to start over from scratch? Jun 01 13:44:59 Helsinkiii, also wrong channel. Jun 01 13:45:17 guys, is this raywenderlich tutorial correct in terms of layout margins in activity_main.xml ? http://www.raywenderlich.com/78576/android-tutorial-for-beginners-part-2 Jun 01 13:45:36 danijoo_, sorry mate. just tried $cyanogenmod but nobody is there Jun 01 13:45:44 Helsinkiii try #android-root Jun 01 13:45:45 I keep adding new elements to my view, as per the tutorial adding layout_marginTop/Left with values 20dp Jun 01 13:45:54 ah ok thanks Jun 01 13:46:10 Helsinkiii, there are more than 450 guys in #cyanogenmod.. Jun 01 13:46:11 and all I get is that every element is placed relative to the top left corner of the view, not in relation to each other Jun 01 13:46:36 so every element gets being scrambled in one place Jun 01 13:46:53 I know I can just up the dp values in the .xml but shouldn't this be sort of automatic/relative? Jun 01 13:47:56 hey, i'm trying to do a release build with gradle, and i have unit tests. for some reason, the proguard task is trying to pull in the unit test libraries as well. is there a way around that? Jun 01 13:49:16 junit or androidTest tests Jun 01 13:49:19 hey guys, I am working in a project that has a debug module, that overrides activities and has custom classes Jun 01 13:49:30 I never worked with this before Jun 01 13:49:34 junit Jun 01 13:50:00 rossimo, disable junit for producation build via as might help Jun 01 13:50:03 can you point me to the documentation of this module, thats only compiled in the debug builds but not in the release builds? Jun 01 13:50:33 hmm, i'd like the test to run though, can i move proguard after tests? Jun 01 13:51:23 anyone? it's hard to learn something new when you go by a tutorial and you get different output with same code Jun 01 13:51:42 jvrodrigues, https://developer.android.com/tools/building/configuring-gradle.html Jun 01 13:52:08 rossimo, hwo do you build? Jun 01 13:52:36 ./gradlew assembleRelease Jun 01 13:52:54 danijoo_, that tutorial does not explain on how to build release code in a debug environment Jun 01 13:53:16 jvrodrigues, use different flavours Jun 01 13:53:50 meh, im just going to delete the debug module Jun 01 13:53:59 rossimo, you can just chain different gradle commands to first test and then build Jun 01 13:54:13 gradlew test assembleRelease Jun 01 13:54:42 ok Jun 01 13:55:36 renderscript + build toold 23.0.0_rc1 :((( finished with non-zero exit value -1073741515 Jun 01 13:56:50 23.0.0-rc1 does not work for me too adq Jun 01 13:57:05 no Idea whats wrong but it gives me rnd compile errors Jun 01 14:00:17 ah, now I get my error Jun 01 14:00:32 no worries, managed to fix things Jun 01 14:00:47 anyone had trouble with wifi/bluetooth after firmware upgrade on andriod? Jun 01 14:01:14 think its a kernel fault seems to be across a wide range of devices Jun 01 14:01:14 how do you assert a hint value in a TextInputLayout with espresso? Looks like the EditText doesn't actually have the hint anymore if you wrap it in TIL Jun 01 14:04:04 killa2, you wont get an answer here. Jun 01 14:05:43 i find it strange that the one place that should be the most likely place to get an answer ( the guys that build the os ) is the place telling me theres no chance Jun 01 14:05:53 disheartining Jun 01 14:06:23 because its not the right place. we are app developers. we dont care about whats outside of our apps Jun 01 14:07:19 killa2, try #android-root Jun 01 14:07:26 read the topic, it's not a place where "guys build the os" Jun 01 14:08:28 i know if i was an app dev id be willing to help out people that have been shafted by upgrades to the os i build on Jun 01 14:09:53 time to become a dev then :p Jun 01 14:10:04 we're willing to help you in redirecting you in the appropriate channel, stop complaining we're not the one who defined this place Jun 01 14:10:50 maybe you should also ask in #cars. I mean.. theres android for navigation systems and im pretty sure they want it to work.. Jun 01 14:11:17 cheeky cunts Jun 01 14:11:21 fuck the lot of ya Jun 01 14:11:30 ^^ Jun 01 14:11:35 is there a one place fits all solution to prevent a button from being clicked a million times before it can act out what it's supposed to do? Jun 01 14:11:53 Syzygy, disable it until the action is performaed Jun 01 14:12:10 I assume that's per button :/ Jun 01 14:12:36 yo Jun 01 14:13:50 Syzygy, thats why we can extend :) Jun 01 14:14:00 danijoo_, I just got my android-auto head unit working this weekend, actually Jun 01 14:14:43 dragorn, sweet. are you planning to build something for it? Jun 01 14:14:46 or just private use? Jun 01 14:14:50 danijoo_, eventually Jun 01 14:14:57 joshkovach, maybe you can use reflection to access the mHint field of TIL class? Jun 01 14:15:06 partly I wanted it because it does stuff i want in the car, partly I have some ideas Jun 01 14:16:08 joshkovach, anyway why are you trying to assert the hint on the edit text? can you explain the case? Jun 01 14:16:28 quick question, i'm using the design support library, and I was wondering if it was possible to change the background tint of the FloatingActionButton in the xml? Jun 01 14:16:32 when I use android Jun 01 14:16:44 :backgroundTint, it says it's only used in 21 Jun 01 14:17:01 danijoo_, is there another possibility than a flag that is set to false and then reenabled with a postDelayed? Jun 01 14:17:07 does the support library have an alternative? Jun 01 14:17:15 Syzygy, no Jun 01 14:19:22 KaylieG, try using app:backgroundTint Jun 01 14:19:32 Is it just me or is this a horrible solution? Jun 01 14:19:52 and the only one i can think of Jun 01 14:20:03 has anyone tryed to use ConnectivityManager's setProcessDefaultNetwork() ? Jun 01 14:20:06 that's what i used Jun 01 14:20:15 nyuszika7h, what would be a solution that you like Jun 01 14:20:20 oh wait i'll try that Jun 01 14:20:25 ups Jun 01 14:20:29 Syzygy, i mean Jun 01 14:20:40 it seems like if i use it to make lollipop to read from captive network, i don't get network connectivity once i remov wifi Jun 01 14:20:41 KaylieG, it's app: prefix Jun 01 14:20:50 yeah testing now, thanks Jun 01 14:21:47 System.GestureListener.waitForOnClicksToFinish(true); would be neat :D (pretty sure it doesn't exist though) Jun 01 14:22:14 hey, someone know how can I style the "three dots" in the CompatActivity ActionBar? Jun 01 14:22:15 KaylieG, if you are using AS, decompile the FAB class and in the constructors you can see the available attributes starting with R.styleable.FloatingActionButton_ Jun 01 14:22:25 I couldn't find this property :( Jun 01 14:22:34 How does Gmail App implement in-app refreshing while still using SyncAdapter? Jun 01 14:23:02 I couldn't find a stable solution to get SyncAdapter's state Jun 01 14:23:52 oh i'm using eclipse for now until this project is done by next week, and after that i'll switch permanently to AS Jun 01 14:25:55 AlmogBaku, you have to override the style with actionOverflowButtonStyle of your theme. Jun 01 14:26:35 using app: doesn't seem to have worked Jun 01 14:28:25 strike that, cleaning the project worked Jun 01 14:28:55 KaylieG, ok, didn't knew it'd work ;-) Jun 01 14:29:06 haha thanks! Jun 01 14:29:16 Syzygy, pretty easy to implement this on your own if you override Button and add 4-5 lines of code Jun 01 14:29:48 Through most of our app we're using textviews with on click listeners instead of buttons. Jun 01 14:29:57 but yes, you're right. Jun 01 14:30:32 you could even do it in your onClicklistener class Jun 01 14:30:54 AlmogBaku, see https://github.com/android/platform_frameworks_base/blob/a6ed1b9547dcd592031a415739cc7e672c068f7c/core/res/res/values/styles.xml#L1266 Jun 01 14:31:03 override this to call setEnabled(false) on the attached view and (true) as last call on onClick() Jun 01 14:31:11 then just extend that custom OnClickListenre Jun 01 14:31:20 then you can use it on any view you want Jun 01 14:32:14 where where are all the android gurus? huh? Jun 01 14:32:22 i'm facing a real issue here ? :) Jun 01 14:32:36 KaylieG, note that this is an unofficial attribute; can cause issues in the future. Jun 01 14:32:37 jk Jun 01 14:32:44 Nick-S, I am too Jun 01 14:33:05 aatish910: hmm Jun 01 14:33:11 I just found a blog that suggested using "android.support.design:backgroundTint" Jun 01 14:33:13 Hello folks! Jun 01 14:33:16 would that be more future proof? Jun 01 14:33:30 Nick-S, What's yours? Jun 01 14:33:46 Is it possible to load a real image of a sdCard into an emulator? Jun 01 14:33:59 KaylieG, blog link? Jun 01 14:34:06 http://baroqueworksdev.blogspot.in/2015_05_01_archive.html Jun 01 14:34:15 i'm trying to use ConnectivityManager's setProcessDefaultNetwork() Jun 01 14:34:31 but there's no documentation that sais what happens if used reconnects to another netowrk. Jun 01 14:34:34 user Jun 01 14:35:03 Nick-S, never had to use that. Jun 01 14:35:19 have anyone used it here? (pfff... :( _ Jun 01 14:35:58 Nick-S, doc says " All host name resolutions will be limited to network as well. Note that if network ever disconnects, all Sockets created in this way will cease to work and all host name resolutions will fail" Jun 01 14:36:54 Nick-S, looks like it will cease to work if user connects to another network Jun 01 14:37:14 KaylieG, i'd say still use it with your own risk, the app:backgroundTint is neither mentioned in the docs nor in the blog. So it seems to be a hidden attribute. Jun 01 14:37:21 the network will seize to work? why do you think so? Jun 01 14:38:00 true, i'll make sure to keep it monitored in the future Jun 01 14:38:03 all host name resolutions will fail Jun 01 14:39:52 aatish910, about your question, it looks like they are using a database sync state for this. Jun 01 14:40:56 avinashrbhat, can you elaborate? Jun 01 14:42:34 It seems to easily handle network unavailability, Jun 01 14:42:56 as well as pending syncs. Jun 01 14:42:57 aatish910, the database entry will have an extra field say 'nw_state' for tracking the network state. in the sync adapter before syncing the data, the db entry is updated to reflect the state of the entry. Jun 01 14:43:30 aatish910: where do you see that documentation? Jun 01 14:43:33 while the n/w is down the existing method will give error, during this you can update the state to reflect this Jun 01 14:43:55 Nick-S, developer.android.com/reference/android/net/ConnectivityManager.html#setProcessDefaultNetwork(android.net.Network) Jun 01 14:44:16 aatish910, this kind of logic is mentioned in the 2010 IO talk (https://youtu.be/xHXn3Kg2IQE) Jun 01 14:44:21 oh i see Jun 01 14:44:48 i need to wait for the other network to become available Jun 01 14:45:26 avinashrbhat: Just seems like something to test. I removed it since I wanted to move on with my life Jun 01 14:45:43 avinashrbhat, What if the sync goes on pending and takes too long to be active? Jun 01 14:46:06 Anyone else seen the issue where including espresso-contrib makes your tests unable to inflate RecyclerView? Jun 01 14:46:15 hi , how can replicate toolbar transition from hamburger icon to back arrow icon? Jun 01 14:46:41 devuser, https://github.com/balysv/material-menu Jun 01 14:47:21 avinashrbhat, thanks... but is there some official animation ? Jun 01 14:47:25 avinashrbhat, how to handle that? Put a timer or something like that? This feels hackish Jun 01 14:47:39 aatish910, you mean when the n/w request is taking too much time Jun 01 14:47:41 ? Jun 01 14:48:21 i'd like use a official animation Jun 01 14:48:37 devuser, better look at the source then :-) Jun 01 14:49:38 avinashrbhat, No, isn't the sync request put on queue and depending on previous sync, it may take some time before it actually executes? Jun 01 14:50:19 aatish910, then you can update the db row before pushing to the sync queue then. Jun 01 14:50:39 Hi everyone Jun 01 14:52:22 aatish910, does that answer your question? Jun 01 14:52:51 Having problems with battery charging and won't go past %80 after total discharge. Jun 01 14:52:51 adb shell shows this when running dmsg Jun 01 14:52:51 <6>[15207.562749] healthd: battery l=30 v=3793 t=41.4 h=2 st=2 c=181 chg=u Jun 01 14:52:51 but I just wanted a bit of help explaining each value. Jun 01 14:53:19 I get that L = Current Level what is the T? Jun 01 14:56:17 temperature Jun 01 14:56:38 (in celcius) Jun 01 14:58:59 What stops the battery from charging past 80% Jun 01 14:59:34 this is not related to android development Jun 01 15:00:26 I wanted to know if you can reset the charge through ADB Jun 01 15:01:02 Is that not a dev thing as ADB is used for dev Jun 01 15:01:07 lol Jun 01 15:02:43 your battery health value indicates: BATTERY_HEALTH_GOOD Jun 01 15:02:56 all that is controlled by the charge controller, which generally isn't addressable from the OS - because if the OS sets it wrong, the battery explodes. So there's not much you can do, call customer support on the manuf and try to get them to send you a new battery or a replacement unit if it's a unified battery. Beyond that, this channel is appdev focused, so you're not likely to find much more info. Jun 01 15:02:59 so i'm not sure you understand what you are reading and understand from it Jun 01 15:05:35 heh - "no one on #v8engines is talking ... can you tell me how to time my crankshaft" ? :p Jun 01 15:13:12 Yooo! do calling (someObservableChain).cache() return a HOT observable? Jun 01 15:13:39 Does* :) Jun 01 15:17:31 thanks avinashrbhat Jun 01 15:18:17 line 22 and 29 explain what I'm trying to do: http://pastebin.com/7r6ebQiH It would seem if I just add a basic operator, and maybe keep reference to the observable, I could make this pre-loading of retrofit stuff work cleanly Jun 01 15:39:22 hey guys...I have the Stock ROM for my phone and I need to check if there is a way to increase the ear speaker volume from the ROM itself? Jun 01 15:40:13 Hey guys. I'm looking for someone who can help me with my ringtone issues. Figured I'd ask here because #android can't figure it out. Jun 01 15:40:50 Android used to hide audio placed in /sdcard/ringtones (alarms, and notifications) from the music player .. this is not the case anymore Jun 01 15:40:51 If anyone cares how I made the pre-loader observer: http://pastebin.com/sXHFdiix Jun 01 15:41:29 Gryd3`Shop: Ayyy that's not really a question mate Jun 01 15:41:52 Forgot the Q mark. sorry. How do I hide ringtones from my music player? Jun 01 15:42:08 Mmm, which music player are you talking about? Jun 01 15:42:21 I know that some have settings as to where it searches for music Jun 01 15:42:26 Others do not have that setting Jun 01 15:42:31 I looked at source code for the Media Scanner and it does flag Ringtones/Alarms/Notifications based on the directory, but my phone does not appear to behave this way Jun 01 15:42:56 Ive used the stock music player. As well as sideloaded a music player from a custom rom that didnt play ringtones Jun 01 15:43:22 Ok... This is a longshot: but which phone, which version of lollipop, and can you link that source code? Jun 01 15:44:11 Gryd3`Shop: As of KitKat there is a little bit different way of getting to the Music and Ringtones directory in code Jun 01 15:44:12 Samsung Gal S5 . I'm still on KK (nervous of LP) 4.4.2 Jun 01 15:44:13 https://android.googlesource.com/platform/frameworks/base/+/cd92588/media/java/android/media/MediaScanner.java Jun 01 15:45:55 Ah that's the stock scanner, I see. Jun 01 15:46:21 If I had a nickel for every problem Samsung had with AOSP, I'd have a lot of nickels Jun 01 15:46:22 hey guys...I have the Stock ROM for my phone and I need to check if there is a way to increase the ear speaker volume from the ROM itself? Jun 01 15:46:36 so. it seems as though it's a Samsung fubar Jun 01 15:47:11 ReGiStRaS you'll probably need to root your phone Jun 01 15:47:15 Gryd3`Shop: possibly... I hate to recommend this as a solution, but picking a different player could solve your issue Jun 01 15:47:47 explodes . I've tried a few players, very few have directory selection support. It does seem as though that's my only way out of this though Jun 01 15:47:50 aspire: I already have the Stock ROM Jun 01 15:47:56 Gryd3`Shop: UNLESS! Jun 01 15:48:20 ReGiStRaS but it's not rooted Jun 01 15:48:26 what phone do you ahve Jun 01 15:49:03 ?? If you recommend using .nomedia it also hides the tones from the selection pop-up (And will also unset any tones I hide using a .nomedia file) Jun 01 15:49:15 Sounds like you have an idea though explodes Jun 01 15:49:24 Gryd3`Shop: is your phone rooted by chance? Jun 01 15:49:40 Gryd3`Shop: If you have your ringtones in "/system/media/audio" then you might be golden Jun 01 15:50:02 aspire: Actually my aim is to modify the ear speaker on the Stock ROM itself before loading it onto the phone Jun 01 15:50:09 volune* Jun 01 15:50:30 explodes . I can root it to do so . Irritated at Android's change in behavior though :s Jun 01 15:50:40 Blame samsung yo Jun 01 15:50:50 ^ good call Jun 01 15:50:53 They don't conform to Android, they expect Android to conform to them Jun 01 15:51:06 Well. Perhaps it's custom Rom time instead Jun 01 15:51:09 It's a pain for a lot of people here in #android-dev :P Jun 01 15:51:20 I can see why :p Jun 01 15:51:35 Let me try something brash Jun 01 15:52:01 I recently upgraded by phone and swapped the microSD over... on my ride back into town with my bluetooth music playing I had to listen to almost all of my custom tones ... was ready to break it Jun 01 15:52:13 ReGiStRaS no idea then Jun 01 15:54:12 Gryd3`Shop: stay connected for about 20 min Jun 01 15:54:44 ok explodes ... Jun 01 15:54:52 does anyone know why is giving me a dark brown color instead of the material design amber700 ? Jun 01 15:55:15 (If I disco. I'll be back. Internet here can be unstable at times) Jun 01 15:57:16 hey all Jun 01 15:57:41 what's the Right Way to lay out dynamically-loaded elements? Jun 01 15:57:58 i'm looking for something like an HTML templating system for web development Jun 01 15:58:25 but there doesn't seem to be anything like an android XML templating library out there Jun 01 15:59:35 Gryd3`Shop: do you have directory that isn't on the sdcard called /Ringtones? Jun 01 16:00:00 Gryd3`Shop: also, is your /sdcard/ringtones directory lower-case? Jun 01 16:00:09 (as opposed to Ringtones) ? Jun 01 16:01:14 explodes . I do not have a ringtones folder on the root directory of the device. It only exists in the /sdcard/ and external_sd both directories have originally been proper case (Ringtones) but since reading the course I linked, changed the names to lower case Jun 01 16:01:53 placing tones in /sdcard/ringtones or /sdcard/media/audio/ringtones used to be methods that worked. but no longer do regardless of case Jun 01 16:06:42 explodes . bit of a head scratcher? Jun 01 16:10:17 Is there a way to see all shared preferences for an app? Jun 01 16:10:42 I'm trying to use the loop in http://stackoverflow.com/a/9310697 but I'm getting a NullPointerException. Jun 01 16:11:53 did you read the comment? Jun 01 16:12:28 explodes. I appreciate your help. This certainly feels like a Samsung Fubar, so I'm unlikely to get an answer that does not involve root or some other stupid trickery. (I've already had to convert my mp3s to ogg and set the ANDROID_LOOP tag to make my alarm play more than once... I've missed waking up a few times when they made that change) Jun 01 16:12:46 For now, I'm downloading the source from Samsung : http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=g900w8 Jun 01 16:12:59 I'll revisit if I find something useful Jun 01 16:14:31 canvs2321: Oh, I see ... I did read the comment but misunderstood it to mean that it could return null for the whole list. Jun 01 16:15:30 you never said what was null, so my aswell start there Jun 01 16:15:58 your stacktrace should tell you exact line in code Jun 01 16:16:04 then do some debugging Jun 01 16:16:10 I don't know what's null. Checking for if (entry != null && entry.getKey() != null) before logging doesn't help. Jun 01 16:16:28 what line does your stacktrace say Jun 01 16:16:43 Attach a debugger then, inspect variables Jun 01 16:16:46 It's on the Log.d line. Jun 01 16:17:02 the getValue.toString() is usually a good one to check Jun 01 16:17:31 Run on lollipop, art tells you what method you're trying to call on a null value Jun 01 16:17:44 getValue is probably returning null and you are trying to toString on it Jun 01 16:18:37 Yep, checking for entry.getValue() != null fixed it. Jun 01 16:18:50 akk the entry and the key will never be null Jun 01 16:18:55 only the value can be null Jun 01 16:19:20 btw, you don't need that explicit toString() call on getValue - just remove the toString() and it should be fine Jun 01 16:21:58 Thanks, canvs2321 and aspire. Working now, and I removed the toString(). Jun 01 16:22:10 :) Jun 01 16:24:00 i have a listview i want to align text to center of particular row how can i do that ? Thanks Jun 01 16:25:00 is it some kind of header/seperator view? is everything the same about the row except alignment? are you using a custom adapter? Jun 01 16:26:41 can use a flag in getView, can use mutiple view types, etc... Jun 01 16:26:47 canvs2321: yes i'm using custom adapter but row contains two textview only Jun 01 16:27:29 canvs2321: i did'nt got you second point can you please explain it to me Jun 01 16:28:31 here's an quick link http://android.amberfog.com/?p=296 Jun 01 16:29:11 main thing is public int getViewTypeCount() && public int getItemViewType(int position) Jun 01 16:29:24 canvs2321: is this for me ? Jun 01 16:29:30 yes Jun 01 16:29:45 canvs2321: but i just want to align textview at center Jun 01 16:29:52 then do that in getView Jun 01 16:30:08 have a flag to tell you to adjust the alignment based on the object that is in that row Jun 01 16:30:15 canvs2321: can't it be done by xml ? Jun 01 16:30:25 are you asking how to actually do the alignment? Jun 01 16:31:01 actually i'm asking about layout Jun 01 16:31:19 s73v3r: layout thing like margin n all Jun 01 16:31:20 if so, then you’ll probably want to wrap your two textviews inside some viewgroup, either a linearlayout or a relativelayout, and set that to centered Jun 01 16:31:46 s73v3r, he doesn't want every row, just a particular one to be centered, is what i got from his qustion Jun 01 16:31:51 s73v3r: yeah how to set that at center ? the parent view Jun 01 16:31:56 i got that he wanted every row Jun 01 16:31:57 canvs2321: no i want every row Jun 01 16:32:06 [12:24] i have a listview i want to align text to center of particular row how can i do that ? Thanks Jun 01 16:32:08 anybody try using the official SwipeDismiss? Jun 01 16:32:15 via the CoordinatorLayout Jun 01 16:32:20 that changes things then :) Jun 01 16:32:43 anyways, you’ve got your two textviews. wrap them in a horizontal linearlayout, and set the linearlayout’s gravity to center Jun 01 16:32:43 canvs2321: oops my bad , i did that wrong "particular" was wrong word Jun 01 16:32:44 "of particular row" to mean means not every row :) Jun 01 16:32:58 s73v3rs gots ya Jun 01 16:33:26 canvs2321: lol that's why you were telling me everything and i thought is it that hard ! Jun 01 16:33:32 hahah yeah Jun 01 16:33:46 canvs2321: sorry my mistake and i wasted your time Jun 01 16:34:00 no problems, check out s73v3rs thoughts Jun 01 16:34:07 hmm Jun 01 16:34:18 his suggestions would be for if you only wanted to change the alignments of certain rows Jun 01 16:35:30 s73v3r: is this ok http://paste.ubuntu.com/11500190/ Jun 01 16:36:03 i don’t think you want to set gravity on the textviews. Jun 01 16:36:46 also don't need that extra relative layout Jun 01 16:37:04 s73v3r: oh i'm not getting things at center they all stuck to left Jun 01 16:37:50 do you want the two side by side, or one on top of the other? Jun 01 16:37:58 boodllebat, he's saying gravity is for the text alignment not position, so your textview are wrap_content so no visible centering, and position is left in parent Jun 01 16:38:04 s73v3r: one on top and other below it Jun 01 16:38:26 canvs2321: oh so how do i take relative div to center ? Jun 01 16:38:38 then you dont need the inner Relative layout Jun 01 16:39:02 plus android:layout_alignBottom="@+id/textView1", there is no textView1, but that'd just keep it positioned ontop of textView1 Jun 01 16:39:30 layout_below="@id//tvResult" Jun 01 16:39:51 minus that extra / Jun 01 16:40:04 canvs2321: ok Jun 01 16:40:34 canvs2321: how do i make it all to center Jun 01 16:40:55 how long is the text? anything that'd be longer than one line? Jun 01 16:41:05 canvs2321: no i guess no Jun 01 16:41:53 think you should go with s73v3r original linear layout suggestion and play with the alignment of the textviews text Jun 01 16:42:24 canvs2321: ok Jun 01 16:42:25 otherwise,just have the textviews width match parent, set the gravity to center and put the second textview below the first Jun 01 16:42:36 http://paste.ubuntu.com/11500286/ Jun 01 16:43:01 s73v3r: let me try that Jun 01 16:43:11 relative layout, with the children set to centerHorizontal Jun 01 16:45:48 s73v3r: Looks great thanks ! :D Jun 01 16:55:04 so i'm spinning up a MediaRecorder to record audio and getting a failure in native code with no indications as to why it's failing Jun 01 16:55:39 just getting "start failed" Jun 01 16:56:56 any idea as to how i can track this down? i tried looking at the MediaRecorder source, but it's implemented natively Jun 01 16:58:54 i've tried it on both genymotion and android emulators. tried AAC at 44.1khz, 48khz and 8khz Jun 01 16:59:03 trying AMR_NB at 8khz now Jun 01 16:59:22 you should have some error messages Jun 01 16:59:36 the error message is literally "start failed" Jun 01 16:59:41 and PCM should work "everywhere" Jun 01 16:59:43 there's nothing higher up the thread Jun 01 16:59:53 modulo some samplerate not supported (but you can retrieve or test the supported samplerates) Jun 01 17:00:04 dcunit3d, MediaRecorder won't work in emulators Jun 01 17:00:09 AMR_NB at 8khz seems to work, but i want the full audio data, not data encoded specifically for voice Jun 01 17:00:09 take an actual device Jun 01 17:00:53 Mavrik really? it should. Genymotion lists "camera" in it's features. Jun 01 17:01:01 unfortunately, i don't actually have a phone =/ womp womp i'm broke Jun 01 17:01:02 omg camera has nothing to do Jun 01 17:01:19 camera means thing that records video Jun 01 17:01:25 but he's right that many emulators have issue with recording audio (they don't have the codec most of the times but it works in pcm anyway) Jun 01 17:02:06 right, but i'm assuming it's the whole package, as video/audio recording is intertangled Jun 01 17:02:23 nope Jun 01 17:03:02 For more information about how to use MediaRecorder for recording video, read the Camera developer guide. For more information about how to use MediaRecorder for recording sound, read the Audio Capture developer guide. Jun 01 17:03:05 http://developer.android.com/reference/android/media/MediaRecorder.html Jun 01 17:03:13 ugh how do people develop audio/video apps with hardware Jun 01 17:03:18 but i only saw you talking about audio recording, anyway Jun 01 17:03:47 adq i'm only working with audio, but using MediaRecorder Jun 01 17:04:00 i was never able to test audio recording on emulator (or genymotion) with the mic because it's not supported (recently a new options appeared in wear devices called "audio injector" but no clue how to use it) Jun 01 17:04:17 however it records/listen in raw PCM on a supported samplerate (even on emulator but it does nothing) Jun 01 17:04:28 so you better move to a real device Jun 01 17:04:43 dcunit3d, you should use audiorecorder if so Jun 01 17:05:02 -er Jun 01 17:05:03 http://developer.android.com/reference/android/media/AudioRecord.html Jun 01 17:05:19 your issue will probably be the same Jun 01 17:07:44 adq thanks for the advice, i'll try switching to audiorecorder Jun 01 17:08:01 you should, especially if you don't need any video thing Jun 01 17:08:25 but again, you will have issue with codec availability, supported samplerate values, etc on emulator/genymotion Jun 01 17:09:34 is PCM the default audio encoding? Jun 01 17:10:10 PCM is raw audio without encoding Jun 01 17:10:18 just plain samples Jun 01 17:10:30 yup, and there are no default because you specify in the constructor the audio format Jun 01 17:10:41 are most of the codecs available on all devices? Jun 01 17:10:47 and read the doc Jun 01 17:10:48 http://developer.android.com/reference/android/media/AudioFormat.html#ENCODING_PCM_16BIT Jun 01 17:10:52 Audio data format: PCM 16 bit per sample. Guaranteed to be supported by devices Jun 01 17:10:56 dcunit3d, https://developer.android.com/guide/appendix/media-formats.html Jun 01 17:10:59 this is one, this one even works on emu Jun 01 17:11:03 dcunit3d, it says what's available where Jun 01 17:12:04 awesome, thanks mavrik & adq Jun 01 17:15:05 I hope this is the right place for a little help. I cracked my screen yesterday, one part of the crack is over my proximity sensor. When someone calls my whole screen blacks out, no way to answer or end the call. Is there a way to disable the proximity sensor function all together, or set it so it thinks there is always nothing near it? Jun 01 17:15:16 at this point, i'm mostly setting up a visualizer for audio from the mic, but i'm also going to visualize some samples the user can play. and i'll need to export the recorded audio to an API in a consistent format Jun 01 17:15:16 eventually, right now i'm just getting the audio wired up Jun 01 17:15:58 Rooted of course Jun 01 17:16:10 excellent, PCM is working, emu no longer crashing Jun 01 17:16:15 dcunit3d, just so you know, the visualizer api will give you RAW PCM 8bits @ 8kHz lol Jun 01 17:16:45 which is sufficient for displaying a voice waveform but will definitely lack of info on a higher samplerate with more bits Jun 01 17:17:00 it's also old and suffer of many issue Jun 01 17:17:02 s Jun 01 17:17:18 hmmmm.. these are all problems i'll need to solve later Jun 01 17:17:21 if you already have issue with just recording, good luck Jun 01 17:17:32 cause it's not going to fly (been there ;)) Jun 01 17:17:45 lol thx Jun 01 17:17:45 and among other things, performance Jun 01 17:18:42 i'm hoping to get funded, so i can hire smarter people to solve these problems lol, but i need some kind of demo first Jun 01 17:19:00 hiring is good Jun 01 17:19:02 i have one in angular, but canvas/webaudio is slow on mobile Jun 01 17:19:17 you will cry on canvas/surfaceview too Jun 01 17:19:33 it's another issue, displaying your audio data at a decent framerate Jun 01 17:19:48 but you will need to solve that later too :p sorry for the sarcasm Jun 01 17:20:53 there arent tools to port apps to ios is there? Jun 01 17:22:17 DarkChaoz . There are tools that allow you to dev for both iOS and Android at the same time .. Unsure if you can take an APK and simply build it for iOS though but I would certainly assume the answer is no Jun 01 17:22:26 i was hoping to avoid using opengl. Jun 01 17:22:28 DarkChaoz, RoboVM? :) Jun 01 17:22:47 dcunit3d, I think canvas should be more than fast enough to render a waveform at 60fps Jun 01 17:23:01 dcunit3d, worst case scenario you use canvas on a SurfaceView Jun 01 17:23:28 i think im way past that gryd3 shop Jun 01 17:23:47 since im mid way of my app development on android Jun 01 17:24:18 but redoing app for ios would be the logicial option .-. Jun 01 17:24:37 though i dont have mac so not sure how things gunna work out >.> Jun 01 17:26:58 Well. that RoboVM Mavrik linked looks promising. I'm curious how well it works, and what kind of access to system resources you get. Jun 01 17:27:28 mhmm Jun 01 17:28:05 it says i need a mac.. Jun 01 17:28:10 there goes that option D: Jun 01 17:28:50 You'll need a Mac in any case. Jun 01 17:29:37 hello Jun 01 17:29:42 how often do you update your apps? Jun 01 17:30:09 I keep getting ideas, I almost update everyday Jun 01 17:30:30 eh Jun 01 17:30:41 it's not worth updating for a miniscule change Jun 01 17:31:21 how do you disable the proximity sensor? Jun 01 17:31:42 paulo_ I'd update it every 3 months imo (though i dont have any apps on the play store yet) so im not in the position to tell u tbh :P Jun 01 17:32:01 Mavrik adq i've got the basic visualization code set up, but nothing's streaming to the visualizer yet. i've been referring to this project mostly: https://github.com/felixpalmer/android-visualizer Jun 01 17:32:23 that's the one everyone copies and start with, i even remember lineRenderer from it Jun 01 17:32:24 as well as this one, the "CryDetector" lol, which processes audio data: https://github.com/kmmbvnr/crydetector/blob/master/CryDetector/src/cc/wthr/crydetector/CryDetector.java Jun 01 17:34:04 cry detector seems to be based on high pitch detection + amplitude, maybe THETA corresponds to some typical formant related to baby cry Jun 01 17:34:55 dcunit3d, you will remember to use the cry detector on yourself, when you will start crying :) Jun 01 17:37:00 lol. Perhaps crydetector can automatically dial 'mommy' Jun 01 17:39:22 what are we talking about? someone is writing a cry detector? Jun 01 17:40:42 adq LMAO Jun 01 17:41:15 :'D Jun 01 17:49:30 Where should I look to learn about Android UI design? Jun 01 17:50:11 GodOfNaps: i watched this video a few days ago: https://www.youtube.com/watch?v=Jl3-lzlzOJI Jun 01 17:50:23 it's a little dated, but it's a good overview of your options Jun 01 17:52:53 GodOfNaps: http://androidniceties.tumblr.com/ Jun 01 17:53:22 should i be using fragments over activities ? Jun 01 17:53:32 instead of activities* Jun 01 17:53:53 depends on the situation Jun 01 17:54:24 well right now i am using activities all of which have a launchMode of singleInstance Jun 01 17:54:44 i think i should be using fragments instead Jun 01 17:55:09 switching some of those to fragments might make things a little better Jun 01 17:55:30 however fragments have their own problems Jun 01 17:55:32 using fragments is going to be complicated, so if you're just getting started you might want to focus on activities first Jun 01 17:55:49 why are all your activites set to singleinstance? Jun 01 17:56:11 because i don't like how onCreate is called Jun 01 17:56:20 that’s not a good reason Jun 01 17:56:23 multiple times Jun 01 17:56:27 :/ Jun 01 17:56:55 i run into a lot of problems Jun 01 17:57:14 you may want to re-evaluate what you' Jun 01 17:57:31 what you’re doing in onCreate, and maybe try to change some stuff Jun 01 17:57:32 lol I just used canvas Jun 01 17:57:44 mhmm Jun 01 17:58:13 like I literally draw PNGs of buttons on the screen Jun 01 17:59:00 mhmmm Jun 01 17:59:38 onSaveInstanceState - when is this method called? Jun 01 17:59:59 and whatever you put in the bundle is passed to onCreate ? Jun 01 18:00:03 somebody knows a library to multiply matrix? Jun 01 18:00:04 hi. is it possible to test the navigation drawer layout on the android emulator? Jun 01 18:00:17 when the activity is going to be killed Jun 01 18:00:20 i added one to my app but don't seem to be able to open it Jun 01 18:00:22 I could implement it, but if there is already, it's surely better Jun 01 18:00:41 s73v3r, define 'killed' Jun 01 18:00:48 is the acitivty killed if i start another activity? Jun 01 18:00:56 the OS is going to destroy it to reclaim memory Jun 01 18:00:58 what happens if i press the back button on the activity that it opened Jun 01 18:01:10 will onCreate be called on that activity again Jun 01 18:01:53 this is what my main_activity.xml looks like. Please help! Jun 01 18:01:56 http://pastie.org/10218025 Jun 01 18:02:45 who's used the new design library, specifically the coordinator layout? Jun 01 18:06:25 Hello. How do you people manage beta app distribution? Jun 01 18:06:44 For play store there is a lot of friction for beta testers Jun 01 18:08:05 dcunit3d: thanks. That video says "Android design for UI Developers", though. So is that geared towards people who already know how to do UI design? Jun 01 18:09:11 I'm a programmer, never done UI design before, so I'm looking to learn how to design a UI, not just how to use Android's UI tools. Jun 01 18:09:11 GodOfNaps, https://developer.android.com/design/index.html Jun 01 18:09:24 read and absorb the most you can, not only on this url above Jun 01 18:12:08 GodOfNaps: read about material design Jun 01 18:12:42 and other UI design principles Jun 01 18:31:59 can a gradle subproject define the repositories to find its dependencies? Jun 01 18:42:28 hey, wifimanager is reporting itself as enabled immediately after calling enabled. shouldn’t it move through the enabling state? im trying to force connection to a particular SSID and even though it reports itself as enabled, it seems to ignore my request to enableNetwork(id, true) Jun 01 18:42:50 […] after calling enable() * Jun 01 19:00:36 huh strange, MS buys 6Wunderkinder? a todo list ? Jun 01 19:03:44 Hello, Jun 01 19:04:10 Can someone point me in the direction of some resources to use swagger in my application? Jun 01 19:06:12 just got android studio and upgraded it to support the Android M preview, but for some reason whenever I try running my project in the emulator it segfaults Jun 01 19:06:22 I'm on OS X 10.10, anyone ran into a similar problem? Jun 01 19:06:46 one day google will design an API that is simple to use Jun 01 19:07:12 burntcookie90, i dont think so ;p Jun 01 19:07:28 well, if it happens, i might have moved into the mountains due to frustration Jun 01 19:08:03 the material design library is one of the least impressive things they've released yet Jun 01 19:08:16 burntcookie90 headache from android vs headache from alutitude sickness ... tough choice Jun 01 19:08:24 *altitude Jun 01 19:08:52 altitude, you can get used to that Jun 01 19:08:54 design lib seems to be nice stuff though Jun 01 19:09:01 even the api is well done so far Jun 01 19:09:05 danijoo_: have you seen how jank it is? Jun 01 19:09:17 why is there no intent.getObjectExtra(name) ? Jun 01 19:09:17 danijoo_: somethings render differently, even on nexus devices Jun 01 19:09:24 aspire, there is Jun 01 19:09:28 burntcookie90: which lib? the design support one, or appcompat? Jun 01 19:09:35 groxx: design support Jun 01 19:09:36 getSerializeableExtra, thats what its called Jun 01 19:09:52 burntcookie90: I haven't yet looked deeply at it :| what's news there? bugs? Jun 01 19:09:56 oh Jun 01 19:09:58 groxx: yeah Jun 01 19:09:59 I like the design-library. they added some really cool stuff and the api seems fine from what I did with it yet Jun 01 19:10:03 is it worth supporting android 4.0+ if you're using material design? seems like ~10% of android's userbase is actually using lollipop which is worrying Jun 01 19:10:04 groxx: and missing functionality Jun 01 19:10:06 how about getPercelableExtra ? Jun 01 19:10:08 didnt used all of it though Jun 01 19:10:12 ie. no onDismiss listener for a snackbar Jun 01 19:10:12 not sure which versions I should target as a newbie dev Jun 01 19:10:19 aspire, one is for serializeable, one for parcelable Jun 01 19:10:28 depends on what your custom object implements as interface Jun 01 19:10:30 o Jun 01 19:10:32 burntcookie90: ah. interesting omission. I suppose it's forkable, but still :\ Jun 01 19:10:44 well actually i'm just trying to put an enum value Jun 01 19:10:47 attempting to implement the SwipeDismissBehavior seems way overly complicated Jun 01 19:10:50 i guess i'll just put the index Jun 01 19:11:03 aspire, if its enum, just send them as integers Jun 01 19:11:20 seems like you need to wrap your layout in a CoordinatingLayout and then modify the layout params to adda behavior ( i found this out via looking at SnackBar source code) Jun 01 19:11:21 your_enum_instance.ordeal() to get them as int Jun 01 19:11:26 but that doesn't work in a RecyclerView Jun 01 19:11:31 Hi, anyone who installed Intel HAXM on Windows Vista 64bit successfully after having same problems as described by Oleksan V. here https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager ? Jun 01 19:11:33 heh Jun 01 19:11:35 and YourEnum.values[int] for the other way Jun 01 19:11:36 heh that funny, the FAB is a square button on JellyBean N7 Jun 01 19:11:40 g00s: yep Jun 01 19:11:43 lol Jun 01 19:11:55 everybody was like, "its just a circular view, do it yourself" Jun 01 19:12:14 obviously how clueless to getting things looking consistent on versions of android Jun 01 19:12:18 g00s: and even google fucked it up Jun 01 19:12:26 is it possible for getIntent() and the savedInstanceBundle to both be != null? Jun 01 19:12:35 how this should end the debate, "just do it yourself" Jun 01 19:12:54 g00s: it's getting embarassing Jun 01 19:13:03 bolovanos: the comment above Oleksandr links to https://software.intel.com/en-us/forums/topic/537144 does that work? Jun 01 19:13:20 groxx, no Jun 01 19:13:24 the amount of time of people bitching about the FAB is ridiculous Jun 01 19:13:33 seems there are other bugs https://medium.com/android-bites/first-steps-with-the-design-support-library-8dcf06230ddd Jun 01 19:13:44 breaking: first version of thing has bugs Jun 01 19:13:47 they fucked up the arrow there in the toolbar Jun 01 19:14:05 this entire channel should be euthanized Jun 01 19:14:12 groxx, even this https://software.intel.com/en-us/forums/topic/537144 does not help Jun 01 19:14:23 no gyroscope in browser? :/ Jun 01 19:14:38 JakeWharton we'll follow you Jun 01 19:14:46 as long as you're coming Jun 01 19:14:47 worth it Jun 01 19:14:57 i'll fall on that fucking sword Jun 01 19:15:05 bolovanos: dunno then :\ I'm not on windows, can't really duplicate it. Jun 01 19:15:40 groxx, this is really pain in the ... :/ day of work without solution Jun 01 19:15:52 JakeWharton: then they should have released this as preview, or something, at the moment it seems like it's production ready until you start using it Jun 01 19:16:13 and it is obvious intel is having problems with this installation at least from 2012 Jun 01 19:16:43 burntcookie90: there'd be endless complaints in here either way Jun 01 19:16:57 burntcookie90 yeah but ... you have to remember everything google releases is preview /until proven to work/ Jun 01 19:17:03 the version number should just be an emoji of Chris Banes' middle finger Jun 01 19:17:10 lol Jun 01 19:17:15 bolovanos: just run it without acceleration then. a small device runs reasonably well. Jun 01 19:17:49 or use genymotion Jun 01 19:18:01 bolovanos: is it possible that an overly-intrusive virus scanner is blocking things? maybe disable it temporarily? Jun 01 19:18:28 yeah, or probably genymotion. Jun 01 19:18:33 Chris said the issue was fixed prior to I/O Jun 01 19:18:36 didn't make the cut Jun 01 19:18:40 so eat your fucking hat Jun 01 19:18:51 (╯°□°)╯︵ ┻━┻ Jun 01 19:19:44 groxx how many tables left do you have to throw around :D Jun 01 19:19:55 you must be losing 2-3 tables per day Jun 01 19:20:23 groxx, reason why am I doing this is that I need to show View tree for some project, because I am having issues with mine solution. On normal (not developer devices) is this functionality suppressed or usable with some hack library from somebody on stackoverflow. Jun 01 19:20:51 g00s: there are plenty in the office, and the whole building has cleaners every day or two. I can probably keep this pace up forever. Jun 01 19:20:54 groxx, who knows - every installing and cleaning round with restarts tooks me at least 40min :/ Jun 01 19:21:09 Really simple question (I hope): I have a pathname to a (not yet existing) path on the SD card, /mnt/.../a/b/filename. Jun 01 19:21:15 groxx, " just run it without acceleration" - how? Jun 01 19:21:27 bolovanos: I've almost never had the built-in hierarchy viewer work. use the ViewServer.java file. Jun 01 19:21:38 I want to create the directory with mkdirs. Do I need to strip off filename? And if so, is there a call similar to dirname() to do that? Jun 01 19:22:08 bolovanos: it's possible it doesn't work with an intel image? arm images will be slow but functional. Jun 01 19:22:09 Web searching isn't much help because everybody names their directories dirName. Jun 01 19:22:49 groxx, ViewServer.java - thats the exact solution I have found on stack, but it was for higher Android version Jun 01 19:23:02 groxx, I will test some arm image Jun 01 19:23:21 bolovanos: higher? I think it works down to 4.1 or something, maybe lower Jun 01 19:25:13 bolovanos why not try genymotion ? Jun 01 19:27:42 groxx, I was hoping in some more straingt forward solution, but it seems to me that I have spent enoug time on that Jun 01 19:28:32 anyone else having some serious usability issues with the new adb? no blinking cursor, no command history, etc? Jun 01 19:28:32 g00s, btw - genymotion is mentioned on same page I have diverged to HAXM install :/ Jun 01 19:28:34 http://stackoverflow.com/questions/7801427/hierarchy-is-not-working-for-my-device Jun 01 19:29:35 Chainfire there is a new adb? is it in SDK platform-rools 23rc1 ? Jun 01 19:29:44 groxx, yes u r right, but you have to implement something else in code - I thought that this will be easier Jun 01 19:31:18 well not sure if its from 23rc1, but it's new-ish Jun 01 19:31:25 annoying as hell Jun 01 19:31:35 bolovanos: yeah, you'd hope so. but even though they claim it works, I don't know if it ever has for me, even when I specifically built a userdebug rom for my phone. ViewServer is quick and way more reliable. Jun 01 19:32:46 groxx, so instead of genymotion you suggest try of implementing ViewServer.java at first place? Jun 01 19:33:54 bolovanos: if what you need is hierarchyviewer, yes. Jun 01 19:34:15 Hello guys, its possible to get for example 4$ per month from advertising ? Jun 01 19:34:16 if you need an emulator, genymotion will probably work Jun 01 19:35:29 just hirearchyViewr - my actual devices are sufficient for normal testing Jun 01 19:35:35 thx all Jun 01 19:36:00 i am bit less frustrated... Jun 01 19:36:21 for a few moments anyhow Jun 01 19:36:27 Chainfire: owrking fine for me, have you tried buying a new computer? Jun 01 19:36:30 that won't last long :D Jun 01 19:36:45 Chainfire yeah, mine seems to work too Jun 01 19:37:18 not sure where adb comes from though, is it the sdk tools, or platform tools Jun 01 19:37:25 might be using a different one Jun 01 19:37:42 mikedg wtf, i thought they would have had glass 2 at I/O Jun 01 19:37:44 bolovanos: it generally seems like hierarchyviewer is abandoned. I don't think it has been touched in years, and it has never been particularly stable (though it's nice when it works) :/ Jun 01 19:37:48 me too :( Jun 01 19:38:02 there were more apple watches than glass Jun 01 19:38:12 i only saw 1 glass on the stream Jun 01 19:38:40 there were a handful in the in-between interviews / clips /e tc Jun 01 19:38:46 mikedg its weird because, they announced brillo which isn't ready yet ... Jun 01 19:39:08 yeah, the lack of brillo talk annoyed me too, it reminds me of when they originally announced andorid@home Jun 01 19:39:12 i think brillo will be great assuming it doesn't have java :D Jun 01 19:39:50 for IoT go would be good as systems language on it Jun 01 19:40:19 not that i care too much for go but, low level stuff like that should be fine Jun 01 19:40:33 i dont get brillo if it doesnt have java Jun 01 19:40:39 why build it on android? Jun 01 19:40:45 is there a way to use mediacodec to compress a video and get back a useable video file? everything im reading on google is erring towards no Jun 01 19:40:58 unless it means the ndk will get more api's Jun 01 19:41:06 I was under the impression that brillo was a _protocol_ more than anything else? libs for language X will just take time. Jun 01 19:41:13 groxx thats Weave Jun 01 19:41:20 aah. gotcha Jun 01 19:41:36 non-descriptive terms getting mixed up in my head :| Jun 01 19:41:42 and Thread Jun 01 19:41:53 Weave, Thread, grox it ? Jun 01 19:42:08 after Thread, hopefully they'll release Object Jun 01 19:42:19 probably Yarn Jun 01 19:42:38 which is produced by the Alphaca framework, yeah Jun 01 19:42:45 s/p// Jun 01 19:42:47 * g00s loves Alpacas Jun 01 19:42:53 s/h/p/ Jun 01 19:43:11 yawn Jun 01 19:43:46 * g00s stuffs some Alpaca fur in mikedg 's open mouth Jun 01 19:44:14 bet your google glass didn't predict that one mikedg ! Jun 01 19:44:55 nope, but it got a picture, and offered to post it to G+ Jun 01 19:45:07 lol Jun 01 19:45:51 groxx, yes it suxx - btw "We are planning on integrating hierarchy viewer into Studio itself, at which point this issue will go away. However, that will not happen until early next year." https://code.google.com/p/android/issues/detail?id=75395 Jun 01 19:46:19 bolovanos: yeah, which will be great to have, when it finally exists :) until then, the ancient half-broken tool. Jun 01 19:46:40 hv is a pos, i think the worst of all the tools Jun 01 19:46:54 that would be a good project, rewriting it from scratch Jun 01 19:46:58 i am doing android dev with intellij 14 and as of lately it has been running extremely slowly Jun 01 19:47:08 i have a couple of updates that i still need to do - hopefully that fixes this Jun 01 19:47:43 aspire maybe you need a new computer too Jun 01 19:47:58 yeah, just like chainfire Jun 01 19:47:59 give it more rams Jun 01 19:48:04 g00s, my laptop isn't the problem :p Jun 01 19:48:21 it never used to be this slow Jun 01 19:52:02 Chainfire: what's the version? I should have the RC tools installed, I get 1.0.32, and it Works For Me™ Jun 01 19:53:14 hey Jun 01 20:02:19 If I want to create a native Android app to just display a website, what's the best way to do that? If I go with a webview, I would have to implement all the controls. Is there anything out there that is quicker to implement? Jun 01 20:02:59 Chainfire yeah 1.0.32 works for me too Jun 01 20:05:04 I want to send an http request when the user taps a notification, can anyone give my any pointers on what kind of intent I should make? Jun 01 20:05:21 can I make an intent to run some code in the background? Jun 01 20:06:17 Darkwater: probably a service Jun 01 20:09:54 Darkwater, android docs, intentservice Jun 01 20:10:03 Darkwater, should be everything you want Jun 01 20:11:36 thanks dragorn Jun 01 20:15:03 whoa there, since when are the docs squashed to 1000px\ Jun 01 20:15:05 width Jun 01 20:24:26 Am I the only one getting a warning that I have to call AppCompatActivity's super.onCreate() when I clearly am? Jun 01 20:24:59 https://i.imgur.com/5iw324m.png Jun 01 20:26:35 Muchoz: manually save file / 'invalidate cache & restart' don't help? Jun 01 20:28:09 Muchoz: I've gotten that too Jun 01 20:28:19 it's not a compile error, so w/e Jun 01 20:29:25 icedp, nope. has been since the latest update yesterday. Jun 01 20:29:30 https://code.google.com/p/android/issues/detail?id=174964 Jun 01 20:29:38 quick search, remember you are never the first :) Jun 01 20:30:53 canvs2321, there's a reason I don't post on those issue trackers anymore. It's because I have never gotten a response on any of them and I will not post on them again until I get a response on one of my previous ones: at least 20 issues and 0 response. Jun 01 20:31:20 no i'm saying about your question of "am i the only one" Jun 01 20:31:23 Just a simple 'thank you for reporting' would be nice, fixing it would make it even better. Jun 01 20:31:36 Ya, I have just lost faith in it. Jun 01 20:31:38 :) Jun 01 20:32:16 I also hate it that my email address is shown in those issues. Jun 01 20:32:46 If my email address is muchoz@gmail.com, it isn't hard to figure it out when they show mucho...@gmail.com Jun 01 20:32:51 good, d.android.com search autocompletion works again Jun 01 20:33:18 use zohcum@gmail.com Jun 01 20:33:23 Google should completely switch to Github or something else. Jun 01 20:34:03 Just burn Google Code right now and don't let it ember like they're doing now. Jun 01 20:34:17 ahoy. so as of android 5.1, android will disconnect from a network if it does not have WiFi. is there any way of preventing this behaviour? I would like my app to configure a connection to a wifi connection that doest *not* have internet connection Jun 01 20:36:37 samskiter, I don't believe that's exposed to apps. It looks like a system-wide setting for avoiding connections with poor connectivity, and those are usually protected by the system properties Jun 01 20:37:16 dragorn: doh! that’s made experience in my app worse…. the one thing i did see was you can bind your process to a ntetwork object Jun 01 20:37:39 samskiter, the "better" way is to do something like wifi direct which can share with a normal wifi connection on some devices Jun 01 20:37:55 since I assume you're talking to an embedded device or some other endpoint that's not quite a traditional AP Jun 01 20:38:13 but of course if you're talking to embedded you probably have less control over the endpoint Jun 01 20:38:48 dragorn: im talking to a tiny little router access point Jun 01 20:38:51 you can probably read the setting, but not change it. I'd test and see if setting tht (under wifi, advanced) helps, if it does, you can detect it and throw an alert and send the user to the wifi settings page w/ an intent (dont' know if off the top of my head) Jun 01 20:39:04 which at least would help Jun 01 20:39:33 yea, i can certainly detect it. i have a nice friendly “configure” button in the app Jun 01 20:39:44 and i was really hoping i could get that to sort things for the user Jun 01 20:39:58 on 5.0 i seem to stay on the network for about 1/2 minutes and then drop off Jun 01 20:40:05 on 5.1 its <10 seconds Jun 01 20:40:12 but i really want to persist Jun 01 20:40:21 so you say wifi direct is more likely to persist? Jun 01 20:42:59 dragorn: also, doesnt wifi direct have the equivalent of WPS going on but in software? i can’t have that unfortunately. this AP won’t be accessible Jun 01 20:44:02 wifi direct is definitely intended to handle connecting to non-router devices, so it won't require an internet link. it introduces all sorts of knock-on effects like setting up direct in the first point, and using wifi direct service discovery, etc Jun 01 20:44:19 no good for projects, but probably required for commercial products; not sure what you're doing Jun 01 20:44:49 do you control everything about the router you're connecting to? You could try lying to the android connectivity check Jun 01 20:45:04 which i think is a query to google.com/generate_204 Jun 01 20:45:23 which looks for a return code 204 (instead of 200 which a URL rewriter would typically give it) Jun 01 20:45:37 dragorn: thats in the plan Jun 01 20:45:45 (to return the 204) Jun 01 20:45:58 I don't know if they added any other checks, but that's the primary one Jun 01 20:45:59 dragorn: yea we do control everything about the router (commercial) Jun 01 20:46:02 yea Jun 01 20:46:44 dragorn: using one of these guys”: http://www.tp-link.com/lk/products/details/?model=TL-MR3020 Jun 01 20:47:01 yup, i'm familiar with those Jun 01 20:47:02 dragorn any idea how wifi direct is on android these days ? Jun 01 20:47:11 in the beginning it was notoriously bad Jun 01 20:47:20 g00s, not really, i haven't implemented a wifi-d stack on anything since it sucked in the beginning Jun 01 20:47:56 dragorn: can’t see much about setting up wifi direct on one of those Jun 01 20:48:01 g00s, i haven't had nearly as much time to work on cool projects, been working on work code and system stuff. I've got some plans tho. Haven't decided if I'm going to go with bt rfcomm or wifi-direct for them. Jun 01 20:48:29 dragorn i might sign up for the opengarden sdk Jun 01 20:48:39 let me know what you choose and how it goes :) Jun 01 20:49:03 samskiter, you'd be doing a bunch of custom stuff, for sure. Something like https://thangamaniarun.wordpress.com/2013/03/03/how-to-use-wi-fi-direct-on-androidubuntu-part1/ ... Obv tht's for ubuntu, but assuming you're running openwrt or something the basic tools are the same Jun 01 20:49:35 g00s, I wish the esp8266 could talk wifi-direct, that'd make things simpler to decide on Jun 01 20:49:41 yea, we’re running openwrt Jun 01 20:50:00 and i suppose it’s only a punt that android won’t treat it the same.... Jun 01 20:50:12 maybe i need to set up another android device up as a wifi direct point and try Jun 01 20:53:09 Hi, This channel is about AOSP platform development? I have a question about the ART/compiler in Android 5.1.1. Jun 01 20:53:28 hey, I've noticed that SupportMapFragment appears to leak the context (or one of its internals), has anyone experienced this? I can't seem to find a fix for it Jun 01 20:53:31 samskiter, yeah. it's a linux-level config so other than any obstacles presented by the busybox variants of tools, it should be more or less the same. You can even test with just a laptop. Jun 01 20:53:37 dragorn: oh man, if I went down that route I’d end up having to mess around with all my low level sockets too Jun 01 20:54:02 samskiter, and with the netlink stuff in the modern drivers, it's the same code, so busybox is even less of an issue Jun 01 20:54:05 http://developer.android.com/guide/topics/connectivity/wifip2p.html#transferring Jun 01 20:54:30 this would be a fairly big redo :P Jun 01 20:54:34 yeah it could be Jun 01 20:54:36 herriojr how did you find that ? Jun 01 20:54:40 or, id need to intercept a bunch of stuff low down Jun 01 20:54:47 g00s: LeakCanary Jun 01 20:54:52 wifi p2p is more like btle, it's much more structured than just "here's a connection" Jun 01 20:54:57 yikes - anyone know why the SDK proguard version is so old? it reports 4.7, which is from _2011_ Jun 01 20:55:41 Does someone know a good service (I'm willing to pay) for a web API documentation? I've tried many and I'm currently stuck with Python Sphinx, but it's making me write so many redundant code and makes me use a lot of links so you need to have a lot of tabs open to get info about a request. I cannot even tell it to create multiple methods for that same request, I have to copy paste. Jun 01 20:55:53 Muchoz: RAML? Jun 01 20:56:06 (i haven’t used it but i saw it recently) Jun 01 20:56:12 samskiter, let's have a look. Jun 01 20:57:15 Muchoz: swagger too. and apiblueprint Jun 01 20:57:34 samskiter, tried Swagger, nope. Haven't tried APIBluePrint. Jun 01 20:57:52 like RAML? it has json schema built in which i like Jun 01 20:58:00 I'm watching RAML's tutorial, it looks very great so far. Jun 01 20:58:19 i think you can do RAML -> retrofit generation. and i know you can do json schema -> pojo generation. so you could automate a lot Jun 01 20:58:43 I just hope it scales cause I have 100 or so requests atm. Jun 01 20:58:44 yea, a potential client is using it, so im excited to have a play Jun 01 20:58:51 groxx maybe pfn knows, i thought it was 5 Jun 01 20:59:01 what? Jun 01 20:59:08 oh, I don't use the sdk proguard version Jun 01 20:59:09 wouldn't know Jun 01 20:59:12 heh Jun 01 20:59:19 g00s: the shitty thing is the leak is in obfuscated code, so it's difficult to see if I can do a workaround Jun 01 20:59:22 well, that's one way :) non-sdk works fine? Jun 01 21:00:02 groxx when i watched AS download gradle-plugin 1.2.3 i thought i saw it grab proguard 5 Jun 01 21:00:34 Is gradle plugin 1.3 beta out yet? Jun 01 21:00:43 hm. I suppose it kinda could make sense to have it as part of the plugin version... Jun 01 21:00:57 sublimate: i think so yea, they said something about android studio 1.3 being int he canary channel. i think that uses gradle 1.3? Jun 01 21:01:43 hey Jun 01 21:01:45 samskiter, 1.3 is out, so are the new build tools, but the gradle plugin the new build tools require isn't out. Jun 01 21:02:03 hey guys, if I want to update a textview every second as a timer would it be the best if I take an Alarmmanager ? Jun 01 21:03:07 because when I am closing the application and return back to it, the textview should still updating the time Jun 01 21:04:19 mrfreemanblack, if you're looking for updates every second use a CountDownTimer http://developer.android.com/reference/android/os/CountDownTimer.html Jun 01 21:04:24 mrfreemanblack: definitely not an alarm manager Jun 01 21:05:03 does the CountDownTimer work, also if I am minimize the application ? Jun 01 21:05:33 it'll keep running in the background, but you should stop it if they minimize the app. just update it in onResume when they come back, there's no need for it to do things that aren't going to be seen. Jun 01 21:05:49 thx groxx and quinnjn for the fast answers ! ;) Jun 01 21:06:30 I'll take a look at, thanks ! Jun 01 21:25:11 groxx, yes, proguard 5.1 works fine Jun 01 21:25:23 5.0 does as well Jun 01 21:25:30 there's some minor bugs in 5.0 Jun 01 21:26:01 pfn: seems odd that they're resistant to upgrading: https://code.google.com/p/android/issues/detail?id=65916&q=proguard&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Jun 01 21:26:27 (slightly) Jun 01 21:26:33 minor bugs = ? Jun 01 21:26:52 in 5.0, base classes with generic members lose the type parameter signature Jun 01 21:27:09 5.1 fixes that Jun 01 21:27:19 but I don't use 5.1 because it requires scala 2.11.5 Jun 01 21:27:27 and I don't want to force my users onto 2.11.5 Jun 01 21:28:27 samskiter, I've tried Apiary but it's a pain in the ass. RAML seems to be what I need. Jun 01 21:29:56 Muchoz: sweet, that’s reassuring Jun 01 21:30:52 groxx, the bug in 5.0 is a showstopper for one of my apps, but I bump proguard to 5.1 for that Jun 01 21:32:46 'lo.. I'm normally a C/asm dev, trying to build https://github.com/MK-42/deskcon-android/ with android studio, got an .apk, but at runtime: java.lang.ClassNotFoundException: Didn't find class "net.screenfreeze.deskcon.MainActivity" .. probably pebkac, or need to ship the other files emitted other than the .apk somehow? Jun 01 21:33:27 pfn: interesting bug. thanks :) Jun 01 21:33:42 holy crap, have you seen how powerful thenew android studio annotations are? Jun 01 21:34:03 samskiter, show? Jun 01 21:34:03 I haven't found them yet :| just seen the IO talks Jun 01 21:34:12 http://tools.android.com/recent Jun 01 21:34:15 its an io talk Jun 01 21:34:25 any of all of type stuff Jun 01 21:34:35 I'm going to be all over the threading annotations, at the very least Jun 01 21:34:37 you could practically right a json schema validator with the annotators Jun 01 21:35:01 also, I totally missed when they mentioned this (or maybe they didn't, but still worth copy/pasting): "New quickfixes, such as automatic generation of a Parcelable implementation" Jun 01 21:35:14 I just hope they make some improvements to the core of IntelliJ. Some stuff is just slow and unresponsive. Jun 01 21:35:31 hopefully. they've done wonders with gradle so far. Jun 01 21:36:44 groxx: think i missed that too. the NDK stuff is impressive too Jun 01 21:36:52 im so excite Jun 01 21:37:09 in a "finally" kind of way :) but yeah, the integration sounds very nice, especially the JNI stuff Jun 01 21:37:20 i stopped using xcode after i switched to an ios project a while back. had to go use appcode (based on intellij) Jun 01 21:41:23 samskiter, I can't seem to find some good API docs that use RAML. Jun 01 21:41:46 Muchoz: as in you are worried it’s underused? Jun 01 21:42:45 samskiter, I just want to look how it actually looks when I use it. I plan to use the python parser. Are there any themes or something? Jun 01 21:43:51 you UI should probably be written in java using Android APIs if you want it to look like the rest of the OS Jun 01 21:44:17 samskiter, the website doesn't explain any of that stuff.. Jun 01 21:44:21 Muchoz: remember that i’ve never used it. you’re now ahead of me ;) Jun 01 21:44:28 Ah ya right Jun 01 21:44:38 let me know :P Jun 01 21:44:44 Damn, #raml doesn't exist. Jun 01 21:46:48 lol Jun 01 21:46:56 holy shit android studio is getting a WHOLE lot better Jun 01 21:47:56 theme editorrrrrrrrrrrrrrr Jun 01 21:48:24 samskiter, if only they included a damn theme for Material Design god damnit. Jun 01 21:48:35 huh? Jun 01 21:48:53 Lists etc all not included nicely. Jun 01 21:49:16 using FusedLocationProviderApi, do I have to filter locations myself? i remember that LocationManager had something like 'minDistance' Jun 01 21:49:16 Is there a preference in AS that allows me to always go to the text pane for layouts? Jun 01 21:49:19 Want to make a nice list? Read the material design 'specs' and good luck. Jun 01 21:50:17 lol Jun 01 21:51:04 samskiter, amirite? Jun 01 21:51:21 not had to Jun 01 21:51:26 Nice button? Make a drawable and shit for that, we're not giving it to you. Jun 01 21:51:32 but list isnt very materialy? Jun 01 21:51:34 oh yea Jun 01 21:51:38 custom button color Jun 01 21:51:45 beyond ColorPrimary Jun 01 21:51:50 you cant just set button color :( Jun 01 21:52:02 but maybe now you can with the material design library? Jun 01 21:52:02 The raised button isn't included. Jun 01 21:52:07 You need to do that yourself. Jun 01 21:52:17 Animation? Yup that too. Jun 01 21:52:19 FAB is Jun 01 21:52:26 FAB != raised Jun 01 21:52:28 ah ok Jun 01 21:52:34 whats raised button? Jun 01 21:52:53 primaryColor background, white text and a shadow. Jun 01 21:53:11 samskiter, https://www.google.com/design/spec/components/buttons.html Jun 01 21:53:20 you just have to turn on the material theme right? Jun 01 21:54:00 You wish Jun 01 21:54:10 Hello! Jun 01 21:54:21 ive use the button Jun 01 21:54:56 And AppCompat? Jun 01 21:55:13 The only thing you get is 'light' Jun 01 21:55:22 huh? Jun 01 21:55:27 yea appcompat buttons have two colors Jun 01 21:55:30 which is annoying Jun 01 21:55:52 you have to just copy paste the xml in from the android source for the material button and switch it depending on sdk Jun 01 21:55:57 I just wish we had some basic styles we could use for lists and such. Jun 01 21:56:06 yea Jun 01 21:56:08 samskiter, just give us the damn thing. That is A LOT of work. Jun 01 21:56:23 with rxjava retryWhen, is there a way I can simply trigger an onNext manually. I don't have any observable that I need to use to get results from since the throwable in the Observable parameter for retryWhen has the data I need to know when to retry Jun 01 21:56:26 iOS has it 10x easier for design. Jun 01 21:56:53 yea, but if you hit a problemt, you can just go dig the source Jun 01 21:57:16 What if they change it? What if a spec changes? Jun 01 21:57:39 Just give us the damn thing and be done with it. Jun 01 21:57:53 This is the most irritating thing about Android design imo./ Jun 01 21:58:05 That's why I hate having to dive into my layouts and styles. Jun 01 21:59:17 samskiter, good luck having to create a parent and 2 child classes for these buttons: https://i.imgur.com/XO1lIZb.png Jun 01 21:59:25 styles* Jun 01 21:59:53 You could do with one child, but let's just over engineer it because we're using Java. Jun 01 22:00:06 Muchoz: yes those buttons are impossible to make with appcompat Jun 01 22:00:16 samskiter, I did it. Jun 01 22:00:45 i mean without copy pastting the xml for th layout in Jun 01 22:00:46 samskiter, (these aren't finished, I'll leave the design till the end) https://i.imgur.com/D6WdgrB.png Jun 01 22:01:01 O.o Jun 01 22:01:18 https://medium.com/google-developers/developing-for-android-iii-2efc140167fd Jun 01 22:01:21 or maybe you subclassed and then forced a certain theme Jun 01 22:01:23 *coughs* I know, I'LL DEAL WITH IT LATER Jun 01 22:01:23 part III Jun 01 22:01:42 Muchoz, stop being a lazy fuck Jun 01 22:01:43 // TODO: DEAL WITH THIS LATER Jun 01 22:01:47 Apps won't write themselves. Jun 01 22:01:48 ^ seen 5 years later Jun 01 22:01:59 "Avoid RelativeLayout Near the Top of the View Hierarchy" interesting Jun 01 22:02:08 RelativeLayout is SLOOOW Jun 01 22:02:13 Well I'm first gonna do the 'backend' then the 'design' Jun 01 22:02:22 constraints resolution can take awhile :) Jun 01 22:02:23 'frontend' Jun 01 22:02:26 Let's call it that even though it's not. Jun 01 22:02:27 yea, i got on one of my colleagues back about a TODO. we aren’t at demo stage any more. no more TODOs that are blatantly never gonne get done Jun 01 22:02:39 I just make Github issues Jun 01 22:02:54 Mavrik: i dont see how you change the color of those buttons Jun 01 22:03:08 are you hijacking textcolor or something? Jun 01 22:03:10 samskiter, custom drawable. Jun 01 22:03:19 ah yes, that’s what i had to do to Jun 01 22:03:26 i think there’s a SO about it Jun 01 22:03:35 yes. Jun 01 22:03:40 Just the fact that we have to do that is a pain in the ass. Jun 01 22:03:42 or tint it Jun 01 22:03:46 voila http://stackoverflow.com/questions/26519979/coloring-buttons-in-android-with-material-design-and-appcompat Jun 01 22:04:04 yea, thats what i meant when i said those buttons are impossible from appcompat Jun 01 22:04:05 Mavrik, isn't that 21+? Jun 01 22:04:10 more like a PITA Jun 01 22:04:19 No, adding a color filter isn't. Jun 01 22:05:06 infact mavrik, that;s my comment from january 19th: “Very annoying that this isn't supported out of the box” Jun 01 22:05:07 lol Jun 01 22:05:26 *sigh* Jun 01 22:05:27 Almost nothing is supported out of the box with Android design. Jun 01 22:05:59 Do you use any lib to help you save things to the sqlite db or bundle a UI component to the db? Jun 01 22:06:08 any MVC framework or the like? Jun 01 22:06:16 Mattx, Realm.io? Jun 01 22:06:19 although, apparently it’s now fixed? http://stackoverflow.com/a/29053700/1137254 Jun 01 22:06:47 Realm.io im interested in, but not sure it’s ready yet. i think they are working their butts of on sync Jun 01 22:06:53 Mattx, but it's quite limited atm and I have workarounds in place until Realm supports it. Jun 01 22:07:11 https://github.com/realm/realm-cocoa/issues/913 lol so many thuumbsup Jun 01 22:07:12 samskiter, I'm currently passing Parcelables through activities :p I hate myself. Jun 01 22:07:14 hmn, any other idea? Jun 01 22:07:23 Muchoz: why? Jun 01 22:07:33 oh rather than use a DB? Jun 01 22:07:34 Mattx, what kind of functionality do you expect? Jun 01 22:07:46 Mattx, are you looking for an ORM, raw SQL datastore or something else? Jun 01 22:07:55 samskiter, this is why: https://github.com/realm/realm-java/issues/909 Together with no null support. Jun 01 22:08:35 samskiter, like WHY are they not letting us use those? Jun 01 22:08:49 Is there an explanation for it? Come on this is totally retarded imo. Jun 01 22:08:49 an ORM would be great, I used ActiveAndroid in the past but I had to change it a little bit in order to get cursors to populate lists and some other changes Jun 01 22:09:12 oh dear Jun 01 22:09:19 . Jun 01 22:09:32 :D getting "JNI: pin count on array 0x418160c8 ([C) is now 12" with rxjava Jun 01 22:09:36 * g00s waits for somebody to say just save json to disk Jun 01 22:09:41 also, I used retrofit together with activeandroid, but they don't play that well Jun 01 22:09:43 then boom, phone dies Jun 01 22:10:34 g00s: what’s wrong with that ;) Jun 01 22:10:39 do you even use Retrofit? How do you connect with your servers? Jun 01 22:10:43 samskiter, that's why you should hold off with Realm. The developers seem to be new to Java for some reason, this is like against the principles of Java. Jun 01 22:10:47 retrofit is so good Jun 01 22:10:50 Mattx, I heard a lot of good things about Sugar Jun 01 22:11:02 Muchoz: yea, no proper type safety Jun 01 22:11:07 i really want to see how raml goes Jun 01 22:11:28 my boss hates me using code generation, he’s very opinionated, but having a full build system from spec to code would be awesome Jun 01 22:11:37 g00s, well damn that Google for not saving all the data automatically! Jun 01 22:11:59 g00s, why do you even have to deal with storing data! It should just be displayed on screen and that's it like in javascript! :P Jun 01 22:12:10 Sugar looks nice! Jun 01 22:12:15 samskiter, I'm still looking at it. But I can't for the love of God find anything regarding how to get everything going with themes and in a proper environment. All of the examples are small. Can they please tell me how I can use this with an already big API with 100 requests heavily split? Jun 01 22:12:34 Muchoz: themes? Jun 01 22:12:53 Like Sphinx themes samskiter https://github.com/snide/sphinx_rtd_theme Jun 01 22:13:16 It's not even explained properly how everything works together.? Jun 01 22:13:19 Muchoz: can you ELI5> Jun 01 22:13:21 the documentation is not that good though. it doesn't say much about relationships for instance Jun 01 22:13:32 samskiter, ELI5 what? Jun 01 22:13:56 themes Jun 01 22:13:57 so I should keep using Retrofit? is anyone against it? :P Jun 01 22:14:18 Mattx, there shouldn't be a developer not using Retrofit atm for REST :P Jun 01 22:14:26 yup Jun 01 22:14:29 its basically the best Jun 01 22:14:30 Mavrik, I use OkHTTP..... Jun 01 22:14:37 you can use retrofit and okhttp Jun 01 22:14:41 Anyone familiar with where android stores the results of the mediascanner? (Is this a file I can copy to my PC to look at?) Jun 01 22:14:44 OkHTTP is different Jun 01 22:14:51 samskiter, why would you do that? Jun 01 22:14:59 mattx to do request interception Jun 01 22:15:11 retrofit has request interception Jun 01 22:15:11 e.g. to mock stuff out Jun 01 22:15:19 i beliebe that’s more recent Jun 01 22:15:20 okhttp and Retrofit are different pieces of the stack Jun 01 22:15:23 yes Jun 01 22:15:26 what s73v3r Jun 01 22:15:33 so you would do that when you needed to do it Jun 01 22:15:39 s73v3r, tell us more please Jun 01 22:15:44 huh Jun 01 22:15:47 e.g if you needed to mess with headers or Jun 01 22:15:51 Retrofit will use OkHttp by default if available :P Jun 01 22:15:54 what s73v3r said* is what i meand :P Jun 01 22:16:03 I've tried Retrofit, but I found it a bit limiting and I had to work around it. I just made my own REST Client for my application. Jun 01 22:16:07 Mavrik: only if you have it included in your project on android Jun 01 22:16:13 "if available" Jun 01 22:16:20 :P Jun 01 22:16:21 anyone know if it's possible to make android studio wipe & clear the app before running my build again? Jun 01 22:16:26 OkHttp is the bottom layer that does the actual HTTP requests. Retrofit sits on top of that Jun 01 22:16:45 Muchoz, that just means your REST API is probably terrible. Jun 01 22:17:18 Mavrik, or I just haven't looked at it enough. Jun 01 22:17:23 Mattx: i dont believe you can use the interceptor in retrofit to mock requests? Jun 01 22:17:25 Muchoz: REST is one defined protocol, and Retrofit does not restrict your from performing anything REST so there shouldn't need to be any work around Jun 01 22:17:44 samskiter, not to mock request, I don't think so. but you can intercept it to add a header for instance Jun 01 22:17:50 yes, Jun 01 22:17:53 yiati, I'll give it another go perhaps. Jun 01 22:18:30 but, if for example, you wanted to perform other requests prior to sending your first request, okhttp might be better Jun 01 22:18:45 (e.g. for AUTH2 token refresh) Jun 01 22:18:54 that's where you use RxJava with Retrofit Jun 01 22:18:54 ^ I do that Jun 01 22:19:06 Trying to troubleshoot some issues with custom ringtunes caused by MediaScanner, can someone help be read the database it write to? Jun 01 22:19:06 Mavrik, you came in between damnit! Jun 01 22:19:10 (althought i found google http client already had support for that so i just put that undernead rertrofit) Jun 01 22:19:33 And I couldn't get pagination to work with retrofit some time back. Jun 01 22:19:56 https://github.com/square/retrofit/issues/333 Jun 01 22:19:58 but as was, said, OkHttp and Retrofit are differents parts of the stack, OkHttp is a HTTP library, Retrofit does REST/JSON data <--> POJO binding Jun 01 22:20:04 (and some more) Jun 01 22:20:04 Mavrik: how would you use RxJava there? Jun 01 22:20:27 anyone using Otto? Jun 01 22:20:29 Mavrik, totally. But if I build my own JSON data handler. Jun 01 22:20:46 samskiter, I have an observable that returns the auth token and then chains into retrofit request Jun 01 22:21:15 the auth token observable may refresh the token, load if from storage or fail if no authentication was made Jun 01 22:21:18 But for now it'll stay like that. Jun 01 22:21:26 That REST Client is a pearl of my app. Jun 01 22:22:03 Mavrik: how do you delay the request? Jun 01 22:22:12 delay? Jun 01 22:22:14 i have bever used reactive x before... Jun 01 22:22:28 Mavrik: when it’s ‘time’ to refresh Jun 01 22:22:29 hmm, why would you want to delay the request Jun 01 22:22:53 samskiter, you build a chain, and until auth token is available, the next part of the chain (actual API request) won't continue Jun 01 22:23:08 i believe there’s also a fail response you can get where attempting a refresh of the token and then retrying the original request is appropriate Jun 01 22:23:18 Mavrik: magic! Jun 01 22:24:14 mavrik, i think when you get a 401 you are supposed to attempt a refresh and retry Jun 01 22:24:17 Gson plugs just fine into OkHttp and the other way around for me right now. Jun 01 22:24:20 Yeah, that depends on the API - for most of mine, failing to refresh token means you need to do UI stuff Jun 01 22:24:37 which has to be handled a bit differently due to Android lifecycles Jun 01 22:25:32 samskiter, :( https://i.imgur.com/U08imbQ.png Jun 01 22:26:52 Mavrik: here’s the logic i wanted: https://github.com/google/google-oauth-java-client/blob/c7815388b75de6a55a149a6cc64cc9cc37894787/google-oauth-client/src/main/java/com/google/api/client/auth/oauth2/Credential.java#L232 Jun 01 22:27:53 so i had to bind google http client under retrofit Jun 01 22:28:02 was good fun Jun 01 22:29:40 wow I seriously cannot break through this Jun 01 22:30:14 I have this imageview that has a drawableview ontop of it, I draw on the drawableview and upon save a create a canvas with the imageview's loaded bitmap dimens and I then join the two bitmaps together on that canvas Jun 01 22:30:41 send the picture back to the viewpager to load, my masterpiece is out of dimensions, it's not where I originally drew Jun 01 22:31:12 Im setting the canvas size to that of the loaded bitmap's dimensions, I get those dimensions inside Picasso's onSuccess callback Jun 01 22:32:36 it seems so easy to fix but i dont know Jun 01 22:33:39 but I do know that with Picasso if you want to centerInside you have to resize first, and so you do resize(2000,2000) and then centerInside. onSuccess you grab height and width, they are 2000 by 1500, not 2000 by 2000 Jun 01 22:33:46 then why you want me to resize, you figure out how to resize Jun 01 22:33:59 if you're not going to keep the integrity of the resize anyway Jun 01 22:35:21 updated dashboard http://developer.android.com/about/dashboards/index.html Jun 01 22:37:40 Lollipop at 12% ... hmm Jun 01 22:39:24 JakeWharton anything that can help? Jun 01 22:39:36 why does it behave like above? Jun 01 22:40:11 I'm not reading. Ask a specific question and mention me. Mobile. Jun 01 22:40:54 but I do know that with Picasso if you want to centerInside you have to resize first, and so you do resize(2000,2000) and then centerInside. onSuccess you grab height and width, they are 2000 by 1500, not 2000 by 2000. JakeWharton why do I have to resize then, if the numbers will I set for hte resize will change after centerInside? Jun 01 22:42:10 Because what if it's a 10k x 10k image? Jun 01 22:42:27 We're not going to waste pixels on those extra 500 Jun 01 22:42:28 of course, that's my case, large image. but I am counting on those numbers Jun 01 22:42:32 They'd just be transparent Jun 01 22:42:40 Counting how? Jun 01 22:42:54 center inside means one dimen is 200p Jun 01 22:43:04 And the other is 2000 or less Jun 01 22:43:22 Unless the image is a square, one will be less Jun 01 22:43:23 I had to figure out that I have to account for the centerInside, I didnt know that it will take it upon itself to do more resizing. I am counting on those numbers to construct a canvas that will host the original image plus a new image that Ive drawn on DrawableView (a view that I place right ontop of the imageview) Jun 01 22:43:36 so the canvas is set to the ffinal dimens of the image Picasso ended up loading Jun 01 22:44:09 You're use case is not the common one which is why we don't waste pixels on it Jun 01 22:44:10 it isnt the fault of Picasso what's going wrong, just was asking why it did that, it's understandable now Jun 01 22:44:23 Best to do a custom transformation Jun 01 22:44:32 And do both operations at once Jun 01 22:45:15 loading of the image and construction of the canvas? Jun 01 22:47:18 there's something terribly wrong going on, I am no longer sending the image back to the pager, im loading it where it sits and its still happening Jun 01 22:47:51 I cant believe im sitting around waiting for that drawableView library guy to get the setCanvas function to behave as expected Jun 01 22:47:59 I would've wrote it 3 times Jun 01 22:48:01 :( Jun 01 22:48:33 If I have a layout that extends beyond the height of the xml preview pane, is tehre some way to scrol dowN (it is in ascrollvie already)? Jun 01 22:48:56 to cause the view to scroll in code? Jun 01 22:49:20 oh at preview time? Jun 01 22:49:34 in the preview, i want to be able to scroll down Jun 01 22:49:42 it should resize the preview Jun 01 22:49:42 high-end feature brah Jun 01 22:49:49 choose a bigger phone Jun 01 22:49:51 instead of setting GONE to all the elements near the top just to see the bottom part of the layout Jun 01 22:49:53 to show the whole content Jun 01 22:50:06 well you should know how its going to look like singularly Jun 01 22:50:12 adding it shouldnt change anything Jun 01 22:51:20 in the preview Jun 01 22:51:26 i want to be able to scroll down Jun 01 22:51:32 so i can see the stuff at the bottom Jun 01 22:51:36 u cant. Jun 01 22:51:48 but the preview should resize so its not neccessary. Jun 01 22:51:49 as far as i can determine, the preview for the XML layout won't scroll down Jun 01 22:51:53 yes Im saying that you dont need to, see it on its own and then add it to the layout and it must still look the same.. Jun 01 22:51:56 why would you need reassurance for it Jun 01 22:52:22 i dont Jun 01 22:52:32 if i put a scrollview in a preview, and it exeeds the phone size, the preview just gets bigger so i can see everything Jun 01 22:52:34 i need to go through and make a list of all the dynamic widgets ineed to id Jun 01 22:52:42 danijoo_: not on mine Jun 01 22:52:45 gets bigger? Jun 01 22:52:47 the phone stays the same size Jun 01 22:52:49 it doesnt.. Jun 01 22:52:53 here also same Jun 01 22:55:33 ugh Jun 01 22:55:45 does not seem possible Jun 01 22:56:08 http://stackoverflow.com/questions/13007489/scrollview-how-to-scroll-down-while-designing-layout-in-eclipse Jun 01 22:58:04 oh shit im resizing after resizing Jun 01 22:58:06 waaat Jun 01 22:58:55 so after i centerInside and resize I assume that it was just for the preview, I didnt think it would permanently change the dimensions of the image Jun 01 23:10:18 danijoo_ so you finally adopted appsites I see :) Jun 01 23:10:45 I have an activity that starts on NFC intent. This intent has 2 extra packages that I would like to be used by other activities. So I want them saved in some global app variable. What might be a good variable to store these in? Jun 01 23:11:09 Im not sure where to look. Is there a name of an android global app variable that I can set and reset each time a certain activity starts? Jun 01 23:11:32 any keyword suggestions taht I can look on on the developer site would be awesome Jun 01 23:13:28 something to do with sharedpreferences I think Jun 01 23:13:39 the use case is probably wrong though, im sure you need something else Jun 01 23:14:59 Odaym, no Jun 01 23:15:05 why do you think so Jun 01 23:15:06 damn it, trick question Jun 01 23:15:10 :p Jun 01 23:15:59 Odaym: why wouldn’t shared preferences work. it looks fairly appropriate Jun 01 23:16:20 I meant that what you need to achieve seems awkward Jun 01 23:16:23 I realize its a weird use case seeing as its set via an intent from an activity Jun 01 23:16:43 oh. well is there a better way to save strings given from an nfc tag? Jun 01 23:17:04 depends on so many things I dont know, but I use DB always Jun 01 23:17:34 oh shoot. sounds more complicated Jun 01 23:17:41 its just database Jun 01 23:18:11 anyone know how I can tell gradle to run unit tests before producing a release apk? Jun 01 23:18:31 hm, WeakHashMap impl is interesting Jun 01 23:18:42 dont know why I would tell you database in that case Jun 01 23:19:06 heyi have a complicated view group with lots of custom views and widgets, some of them are grouped (and if i can, grouped ones will be made intoa custom view) but for declaring the widget references as class members Jun 01 23:19:11 can i do something like this? Jun 01 23:19:11 http://pastebin.com/QmL9r3vF Jun 01 23:19:35 as long as I say, set the inner class instances to null in onDetachedFromWindow Jun 01 23:20:06 yea..you need to listen to this https://www.youtube.com/watch?v=b21zIF3lAZo Jun 01 23:20:07 idea here is to be able to use namespace to more easily read the code, since this layout/viewgroup is really, quite complicated Jun 01 23:20:16 it will give you the answer Jun 01 23:20:48 Odaym: did you forget your anti troll pills this morning? ;p Jun 01 23:21:01 no man its ganja smuggling Jun 01 23:21:03 best Jun 01 23:21:25 cause what you're talking about is complamacated Jun 01 23:21:32 Eek-a-mouse is so simple Jun 01 23:21:46 he smokes weed, wins at life Jun 01 23:22:37 how do I get the "selected" item from a custom drop-down spinner so I can "send" it to another activity? Jun 01 23:23:15 Sort of like this method: https://developer.android.com/training/basics/firstapp/starting-activity.html#RespondToButton Jun 01 23:23:25 but with an item "selected" by a drop-down spinner Jun 01 23:24:34 getSelectedItem? Jun 01 23:24:46 Thanks, I'll look in to that Jun 01 23:24:52 you could've just typed ".selec" and pressed ctrl + space Jun 01 23:24:55 seriously Jun 01 23:24:59 god damnit! Jun 01 23:25:04 :( Jun 01 23:25:08 yea, feel bad Jun 01 23:25:14 * Vercinger slaps Vercinger around a bit with a large trout Jun 01 23:26:04 oh wait.. Odaym Jun 01 23:26:20 not what you wanted? Jun 01 23:26:21 still your fault Jun 01 23:26:23 ;D Jun 01 23:26:24 if I'm using this method for custom spinner: http://mrbool.com/how-to-customize-spinner-in-android/28286 Jun 01 23:26:26 :P Jun 01 23:26:28 What then? Jun 01 23:26:47 this method? that's a whole page Jun 01 23:26:47 I can't do "String message = main_text.getSelectedItem().toString() Jun 01 23:26:53 Well.. :/ Jun 01 23:27:03 you're overriding this spinner? Jun 01 23:27:05 instead of c/p my own to parsebin Jun 01 23:27:21 ah well if you override a class usually you dont get access to its methods Jun 01 23:27:30 so you cant getSelectedItem on an overridden Spinner Jun 01 23:27:35 the method is just gone Jun 01 23:27:50 you have to write the class again Jun 01 23:27:56 that's why you overrode it Jun 01 23:28:02 sigh.com Jun 01 23:28:30 yea basic java Jun 01 23:28:35 all I wanted was a sub item Jun 01 23:28:41 override means you are rewriting, not extending functionality Jun 01 23:28:44 makes sense yea? Jun 01 23:29:00 Yes yes.. just didn't know I was doign that Jun 01 23:29:07 you seriously are agreeing Jun 01 23:29:25 man if you override it means you have access to all the methods that the class you're overriding has, you can override the getSelectedItem Jun 01 23:29:39 and return what you want from it, even in custom Spinner or custom whatever! Jun 01 23:29:51 like ONCREATE! Jun 01 23:29:59 why do I want to override it? can't I just "reuse it"? Jun 01 23:30:27 if its of class Spinner it will have getSelectedItem available to it Jun 01 23:30:45 extending a class and not overriding its methods doesnt mean they lost their functionality Jun 01 23:31:06 it means what they do is still being assigned to the parent class, not to your custom needs Jun 01 23:31:29 when you override it means you want to do something different, or you can call the super class of that same method to do its usual things, then add yours Jun 01 23:31:31 JUST LIKE ONCREATE Jun 01 23:31:39 super.onCreate(), then your own shit under it Jun 01 23:32:58 that guy is not extending the class Spinner Jun 01 23:33:05 he is making his own spinner view Jun 01 23:34:02 I dont fucking know what Im saying man Jun 01 23:34:05 leave me alone Jun 01 23:34:16 ahh ok Jun 01 23:35:04 since he is using an arrayadapter to feed the spinner, he can use its getDropDownView to feed it the custom view for the spinner and it just loads it instead of the default one Jun 01 23:35:25 then the usual getView is called Jun 01 23:35:48 nothing is actually being overridden or anything that would prevent you from using the spinner as you usually would Jun 01 23:36:33 I don't get any "getSelectedItemId()" or anything when I try to do as the tutorial on AS Jun 01 23:37:19 I don't know how to "get whatever is selected".. Jun 01 23:39:15 then you are calling it on something that is not a spinner! Jun 01 23:39:26 its a spinner object it must have the spinner class methods Jun 01 23:40:11 shouldn't it be something like: "String message = main_text.getSelectedItem().toString();" Jun 01 23:40:14 ? Jun 01 23:40:25 or have I misunderstood something? Jun 01 23:41:19 you call the spinner object "main_text"? Jun 01 23:41:49 no mySpinner (unless I'm mistaken? you're making me question my entire existence) :P Jun 01 23:42:07 what is main_text then? Jun 01 23:42:15 what is its type Jun 01 23:42:20 it's textview Jun 01 23:42:22 ok Jun 01 23:42:25 TextView main_text = (TextView) mySpinner.findViewById(R.id.room_no_seen); Jun 01 23:42:36 main_text.setText(spinnerValues[position]); Jun 01 23:42:36 then you do main_text.getSelectedItem Jun 01 23:42:49 IDE says it's wrong Jun 01 23:42:52 *cough* Jun 01 23:42:53 strange Jun 01 23:43:07 hi Jun 01 23:43:09 look at this page http://developer.android.com/reference/android/widget/TextView.html Jun 01 23:43:17 can you see getSelectedItem() there? Jun 01 23:43:59 can anyone lend me a hand? im trying to compile the stock kernel from sources for the ZTE Blade Apex 2, and im getting an error thato stops the build Jun 01 23:44:07 no, Odaym Jun 01 23:44:18 http://pastebin.com/rf3BzFEW <-- there's the output on the shell Jun 01 23:44:35 so you cannot say textViewObject.getSelectedItem Jun 01 23:44:42 cause thats not one of its methods Jun 01 23:44:49 that method is for spinner objects Jun 01 23:44:50 getText instead? Jun 01 23:44:57 depends what you want to do Jun 01 23:45:11 just know which object is which Jun 01 23:45:20 just like no spinner.getText Jun 01 23:45:21 I want to get the text that is selected in the spinner Jun 01 23:45:26 ok, easy Jun 01 23:45:38 how do you figure this can be achieved, Dr. Feynman Jun 01 23:46:01 Wait.. wasn't he has physics guy Jun 01 23:46:24 yeah.. he was mentioned in that movie "Primer" Jun 01 23:46:30 Great movie, imo.. Jun 01 23:47:17 but Odaym, if I use getText, "main_text" is still "red" in the IDE.. Jun 01 23:48:00 does anyone here code android form a text editor and not an IDE Jun 01 23:48:10 just kind of curious if anyone has managed to do it Jun 01 23:48:39 I know some people do Jun 01 23:48:46 I definitely wouldn't want to Jun 01 23:48:56 yea I talked to a guy today who did Jun 01 23:49:23 if you do String message = main_text.getText(); it errors? Jun 01 23:49:49 Odaym, yes.. Jun 01 23:49:53 why.. Jun 01 23:50:00 is it because MyAdapter is in it's own class? Jun 01 23:50:06 or not declared before? Jun 01 23:50:07 what a strange reason :o Jun 01 23:50:15 are you mocking me?! Jun 01 23:50:17 that MyAdapter could be interfering with getText! Jun 01 23:50:21 yes sir! Jun 01 23:50:25 okay thats fine Jun 01 23:50:32 you dont even hover over the red line man ? Jun 01 23:50:47 it has the reason Jun 01 23:50:52 I do! :P Jun 01 23:50:58 but you're making me questioning everything! Jun 01 23:51:03 that I know Jun 01 23:51:05 no, you would've told you what the error was Jun 01 23:51:10 it would've* Jun 01 23:51:26 it has been saying "cannot resolve symbol ..." Jun 01 23:51:43 if I declare mySpinner before onCreat, I can do this: "String message = mySpinner.getSelectedItem().toString();" Jun 01 23:51:47 shouldn't that work? Jun 01 23:52:03 wow Jun 01 23:52:22 heureka? :P Jun 01 23:52:51 why you are doing toString on it? Jun 01 23:53:03 I don't want the object I just want the string? Jun 01 23:53:13 oh so you KNOW its an object that's returned! Jun 01 23:53:29 well a spinner is objects, no? Jun 01 23:53:33 contains* Jun 01 23:54:04 yea but I mean the same reasoning you are applying here you dont apply before Jun 01 23:54:12 it's all talking about the same things Jun 01 23:54:56 things work for some things and not for others, things return things that are not returned for other things Jun 01 23:55:58 all in all, my whole problem was i didn't declare it earlier so I couldn't access them in another method, and I guess that's what confused this newbie? :) Jun 01 23:56:21 no you were doing other things Jun 01 23:56:33 main_text.getSelectedItem() mainly Jun 01 23:56:40 calling a spinner method on a textview Jun 01 23:56:54 true dat Jun 01 23:57:10 but I'll write that off to ripples of my mistakes Jun 01 23:57:21 yea you should be perfect like me Jun 01 23:57:36 I strife to achieve suchness.. :P Jun 01 23:57:36 I believe that onStart is called before onCreate Jun 01 23:57:47 cause Im pro Jun 01 23:57:54 I don't have an onStart :P Jun 01 23:57:58 can anyone help me? Jun 01 23:58:05 I mean in typical activity lifecycle Jun 01 23:58:14 I answered that in an interview question Jun 01 23:58:43 the guy almost doubted himself haha Jun 01 23:58:47 My answer would have been "I'll go to android webpage and check their lifecycle diagram".. Jun 01 23:58:55 yea but you dont answer wrong first :P Jun 01 23:59:00 cause I said that too in the end Jun 01 23:59:36 blammo: http://i.stack.imgur.com/LXnx7.png Jun 02 00:00:01 then he asked me an algorithm question, print out the elements that are uncommon in array A and array B Jun 02 00:00:12 sounds like my exams Jun 02 00:00:28 I wrote for (array length A) { for (array length B) { if (a[i] != b[i]) print it Jun 02 00:00:39 he laughed Jun 02 00:00:51 that's a classical question iirc Jun 02 00:00:59 yea I was trying to get rejected Jun 02 00:01:03 :) Jun 02 00:01:08 I hated the place Jun 02 00:01:18 but it did leave me with a bad image in their minds nevertheless Jun 02 00:01:35 I mean if I knew the answers directly I would've wrote them of course, I just didnt want to put any effort, plus they werent obvious to me Jun 02 00:01:39 meaning, you suck. Jun 02 00:01:40 :P Jun 02 00:02:01 So.. congratulations on that job Jun 02 00:02:09 haha no I never heard from them again Jun 02 00:02:14 ;) Jun 02 00:02:20 I am very happy where I am Jun 02 00:02:26 why apply? Jun 02 00:02:39 well it isnt marriage.. Jun 02 00:02:44 you look around Jun 02 00:03:11 my DIL is on the 10th new job last 3 years Jun 02 00:03:32 DIL Jun 02 00:03:32 ? Jun 02 00:03:51 he's being offered a better pos and higher paygrade every 4rd month in a new place :| Jun 02 00:03:53 dad in law Jun 02 00:04:10 yea, so you go there Jun 02 00:04:28 of course I want to sit in a job for a long time, but that job hasnt come yet Jun 02 00:06:44 my next big idea is a social network for search engines Jun 02 00:06:51 combining Facebook and Google, bro Jun 02 00:07:26 wat Jun 02 00:07:31 waat Jun 02 00:07:34 haha Jun 02 00:07:41 So.. what do u want to search for? Jun 02 00:07:59 you search for search engines Jun 02 00:08:05 wow Jun 02 00:08:12 meta Jun 02 00:08:15 yes Jun 02 00:08:26 so I will make meta-money Jun 02 00:08:37 that's a b away from beta money Jun 02 00:08:41 no actual paper Jun 02 00:08:45 just the thought of money Jun 02 00:09:12 oh.. I have a lot of meta-money, I guess Jun 02 00:11:20 dafuq is meta money? Jun 02 00:11:32 he just defined it Jun 02 00:11:36 [02:08:46] just the thought of money Jun 02 00:11:48 ah, missed it Jun 02 00:12:45 does anyone know if there will be an api for the tethering ? Jun 02 00:14:00 I sure don't, but I'm curious for what :) Jun 02 00:15:10 im currently using (exploiting) it for my project http://blaubot.henning-gross.de/ Jun 02 00:15:33 using reflection to get to the api Jun 02 00:15:59 wifidirect was too unstable Jun 02 00:16:04 so i toyed around with this api ^^ Jun 02 00:16:54 looks cool! Jun 02 00:17:06 I'm a network technology student, so that is interesting to me ^^ Jun 02 00:17:24 :) where are u studying ? Jun 02 00:17:30 its my master thesis Jun 02 00:17:33 DTU Jun 02 00:17:44 Danish Technological University Jun 02 00:17:52 ah cool Jun 02 00:18:01 bachelor or master ? Jun 02 00:18:04 working on my bachelors project atm. Jun 02 00:18:12 mobile application for positioning Jun 02 00:18:17 ah nice Jun 02 00:18:19 triangulation ? Jun 02 00:18:31 yeah, but then again not really Jun 02 00:18:43 via eduroam Jun 02 00:18:45 if u have that Jun 02 00:18:50 yep have it Jun 02 00:18:57 Odaym: I already got the BLE Module Dev Kit, nrf51822 ble device. Where should I start from here? Jun 02 00:19:01 but there isn't enough eduroam routers in the building to triangulare Jun 02 00:19:14 oh pity Jun 02 00:19:19 we had such a project too Jun 02 00:19:21 so I just made empirical path loss models Jun 02 00:19:21 read about BLE Jun 02 00:19:30 and get NRFControl Panel app Jun 02 00:19:41 Master Control Panel Jun 02 00:19:47 its on the store Jun 02 00:19:50 and are using thoose to get the distance in the hall-ways and then position the user by knowing the position of the specific router Jun 02 00:19:52 Odaym: I also tried its CPs for Android/Windows Jun 02 00:19:59 the MInfotainment project http://www.mi.fh-wiesbaden.de/~barth/hsrm/mobile/ws1011/index.rst Jun 02 00:20:05 but did not work very good tbh Jun 02 00:20:39 I can get ~5 meters circa Jun 02 00:20:41 Odaym: And also tried to read its given data. Jun 02 00:20:44 wasn't my project (mine was the drumsticks thingy) but it were a good team Jun 02 00:20:56 and what happened when you tried Jun 02 00:21:05 They have a much nice UI than I have though :P Jun 02 00:21:08 that was roughly their accuracy too Jun 02 00:21:14 :) Jun 02 00:21:33 I don'thave a "map" Jun 02 00:21:34 Odaym: Everything seems fine Jun 02 00:21:43 then great Jun 02 00:21:46 gladly we didn't need an ui :D https://play.google.com/store/apps/details?id=de.hsrm.mi.mobilecomp.drumsticks&hl=de Jun 02 00:21:53 If I had time I'd implement it, but right now I'll just use numeric distance Jun 02 00:22:00 Odaym: Do I need to create a new Application with Keil and program my BLE device? Jun 02 00:22:14 Odaym: My goal is to read tire air pressure Jun 02 00:22:17 the ui was just an image view with overlay if remember correctly Jun 02 00:22:27 program it for what Jun 02 00:22:34 it is programmed Jun 02 00:22:38 Have to finish the app by tomorrow and start writing the report for the 26th this month :) Jun 02 00:23:03 communicates with array of 20 bytes Jun 02 00:23:05 the reports are the boring part :/ Jun 02 00:23:06 Odaym: Flashing the device with specific characteristics? Jun 02 00:23:12 you dont flash Jun 02 00:23:13 you write Jun 02 00:23:33 heNNa-, gonna be rough for me.. because I'm just a below average student :P Jun 02 00:23:39 if you try to flash it you can overwrite something essential and not be able to reprogram it Jun 02 00:23:47 you flash your own device maybe, which you've written the firmware for Jun 02 00:24:38 all your device has to do is give it power Jun 02 00:24:55 it starts broadcasting itself Jun 02 00:25:01 Vercinger: there is no such thing; just motivation and no motivation - if you are motivated, grades will fall in line ;) Jun 02 00:25:12 ah I think you have to tell it what to broadcast as, meaning a name Jun 02 00:25:24 the rest you dont touch I think Jun 02 00:25:34 heNNa-, we can't all be perfect A student :P I've accepted it ^^ Jun 02 00:25:47 android development is so exciting Jun 02 00:26:18 Vercinger: never resign Jun 02 00:26:28 yea im gonna orgasm from android development Jun 02 00:26:29 aspire replace "android development" with "pokemon training" and you got yourself a quote from the pokemon games, there.. Jun 02 00:26:30 Odaym: Yes, you're right. But when I tried different BLE App and write it on the device, it does give me different services in which I think I need to do an App in order for me to read the air pressure stuff. Am I getting this right? Jun 02 00:26:51 I only think I barely passed my Machine Learning and Data Mining course :P Jun 02 00:27:00 lol Jun 02 00:27:01 the chip itself cannot know air pressure Jun 02 00:27:10 wait, I dont know Jun 02 00:27:21 but what you need to get your hands on a characteristic that you will use to read from Jun 02 00:27:26 and write to Jun 02 00:27:45 Vercinger doesn't matter if you understood it Jun 02 00:27:46 so get something that will list all characteristics Jun 02 00:27:50 NRF Master Control Panel Jun 02 00:28:34 heNNa-, well.. I understood enough to pass? :P Jun 02 00:28:48 if I ever had to apply it it would take me ages, though :P Jun 02 00:28:58 Odaym: NRF Master Control Panel just reads battery status, I write the ble_app_approximity sample from nordic Jun 02 00:29:27 battery status? Jun 02 00:29:44 Odaym: I think it is because of what I write on the device with Keil and J-Link Jun 02 00:29:54 I used J-Link too Jun 02 00:29:57 I compiled the app with Keil Jun 02 00:30:00 its C firmware Jun 02 00:30:21 Vercinger well, depends on the level of your professor I think - but why learning the parts of it to pass? Don't you want to be able to use it? Jun 02 00:30:30 *just the parts to pass Jun 02 00:30:45 if NRF app doesnt show several charactersitics, I think that means that the guys I worked with wrote them to the chip before I got there Jun 02 00:30:54 but I really dont think so.. Jun 02 00:31:13 should be at least one characterestic Jun 02 00:31:18 ofcourse I would, but I just don't learn quite as fast/good as others, so I have to just pass, and then worry about being able to apply it later.. Sucks, yes.. but yeah.. gotta get'em ECTS points first.. Jun 02 00:31:25 that you can expand, in the app they have them in an expandablelistview Jun 02 00:32:41 Vercinger maybe less courses? Jun 02 00:33:34 heNNa-, our government has made a new law that says we have to do 30 ECTS points every semester or we won't get any funding (governmental support-money) Jun 02 00:33:53 Vercinger ah, that sucks. Jun 02 00:33:54 they call it the "fast track" law Jun 02 00:34:21 when instead it just forces people like me to get below average knowledge in exchange to get me faster to the working force Jun 02 00:34:27 heNNa- you working on getting pressure from a BLE device ? Jun 02 00:34:30 Vercinger its idiotic and just designed to get bachelor students faster into the industry -doesnt help Jun 02 00:34:50 heNNa-, that's what we're all saying, but .. politcians.. Jun 02 00:34:52 g00s no, sry. Jun 02 00:35:51 g00s bhans was that? i think Jun 02 00:36:43 ah. conversation was confusing. i just see a wall of Odaym mixed with other stuff Jun 02 00:37:26 g00s, yeah 2 conversations was going on :P Jun 02 00:37:46 please see this, doesnt this get you an image that has 2 images exactly ontop of one another? http://pastie.org/10218495 Jun 02 00:38:04 the 2nd bitmap (the drawing) is always at the wrong position from where I originally drew it Jun 02 00:40:12 the first one is exactly the same, doesnt get moved like the second one Jun 02 00:54:22 ok got it, the idiot and his idiot setCanvasHeight/Width is still broken Jun 02 00:55:28 isn't Canvas backed by a bitmap? does doing those methods just recreate a bitmap? Jun 02 00:56:15 there's this part that I didnt show http://pastie.org/10218511 Jun 02 00:56:24 hey guys Jun 02 00:56:26 whats going down? Jun 02 00:56:32 his drawableView doesn't understand what pixels mean Jun 02 00:57:03 I can scroll to see the bounds, they are being set to outside the bounds of the screen Jun 02 00:58:36 Is it possible to run java2objc on windows even though it requirement says use a mac? Jun 02 00:58:58 is there a windows binary? Jun 02 00:59:02 Cuz i want to run it on windows since i dont have a mac Jun 02 00:59:16 darkchaoz: probably not.. it probably uses the xcode binaries to acheieve it Jun 02 00:59:43 Odaym: what you trying to do? Jun 02 00:59:45 Damn -_- Jun 02 01:00:02 make a bitmap out of an image and a drawableview's resulting bitmap Jun 02 01:01:03 Wish apple just make xcode for windows as well -_- Jun 02 01:01:23 canvas of the drawableView is not matching the size of the first bitmap, so you get the drawableView's final bitmap and add it to the canvas that has the dimens of the original image, everything shrinks and you see the lines you drew being drawn way to the left Jun 02 01:01:36 so at least width must be fixed, that I know Jun 02 01:02:15 Odaym: why not just get the largest size? Jun 02 01:02:33 of what Jun 02 01:02:55 of the two images you want to draw? Jun 02 01:03:01 oh Jun 02 01:03:20 and according to that set the canvas size? Jun 02 01:03:27 Odaym: you also dont need those paints Jun 02 01:03:58 ah, no, you see the bitmaps both return the same size Jun 02 01:04:01 Odaym: set the size of the output bitmap Jun 02 01:04:07 because I set them to be the same values I got in that callback Jun 02 01:04:16 k Jun 02 01:04:51 how can i make my layout scrollable? Jun 02 01:05:13 aspire: what type of layout and what type of scrllable Jun 02 01:05:17 *scrollable Jun 02 01:05:23 aspire: just scroll up and down? Jun 02 01:05:41 yeah Jun 02 01:05:44 it's not showing everything Jun 02 01:05:46 verticallayout Jun 02 01:05:51 linearlayout with vertical orientation* Jun 02 01:06:10 nestedScrollingEnabled ? Jun 02 01:06:11 so put it in a ScrollView Jun 02 01:06:43 aspire: Jun 02 01:07:21 oh Jun 02 01:07:43 java2obc? this actually works?? Jun 02 01:07:53 gn Jun 02 01:07:54 Guys im having an issue with my AS Jun 02 01:08:12 drose379: ... Jun 02 01:08:18 Whenever I try to run an app, it sees my device fine, but then I get ADB refused a command Jun 02 01:08:40 Napalm, it is forcing me to fill in layout_width and layout_height Jun 02 01:08:49 drose379: do you have the latest platform-tools? Jun 02 01:08:55 Dont know Jun 02 01:08:58 how can I check? Jun 02 01:08:58 mman macs are pos Jun 02 01:09:05 drose379: omg... open the SDK manager Jun 02 01:09:16 drose379: its on the top toolbar Jun 02 01:09:19 drose379 AS -> top right Jun 02 01:09:44 aspire: yes.. everyl ayout requires them Jun 02 01:09:48 Very out of date Jun 02 01:09:51 lol Jun 02 01:10:19 mhm ok good point Jun 02 01:10:31 Napalm could this be why its not working? Jun 02 01:10:40 drose379: you dont want to use the preview tools.. 23.. you want 22 at least Jun 02 01:10:45 drose379: probably Jun 02 01:10:51 I just installed all the packages Jun 02 01:10:57 lol Jun 02 01:10:59 everyone one? Jun 02 01:11:03 Is that bad? Jun 02 01:11:13 drose379, what command was refused? did you accept the key on your device to allow adb to run? Jun 02 01:11:21 well its probably not needed. Jun 02 01:11:24 Yeah, its the device I always use to test Jun 02 01:11:29 Just randomly stopped working Jun 02 01:11:33 drose379: you also dont want the preview tools Jun 02 01:11:37 Why? Jun 02 01:11:43 Oh, theyre just a preview Jun 02 01:11:46 they are unstable Jun 02 01:11:53 drose379 turned it off and on again? ;) Jun 02 01:11:56 for testing by devs ready for M Jun 02 01:12:10 Ok, the IDE will tell me if I try to use them Jun 02 01:12:21 And I just unchecked it Jun 02 01:12:25 So it shudnt download anyways Jun 02 01:12:37 drose379: after you download the changes close AS and reopen it Jun 02 01:12:42 ok Jun 02 01:13:03 And whenver I go into my file explorer and try to look at mt device Jun 02 01:13:08 It says "Cannot mount" Jun 02 01:13:54 I'm working on a website that renders fine on 10" android tablets, but it hasn't been tested on a lot of devices. Is there a way to build a native android app that would render this site the same for all Android devices, even if it's scaling is needed? Jun 02 01:14:28 raisen, why not just use android emulator? Jun 02 01:15:04 or genymotion Jun 02 01:15:17 Trinity, I'm afraid the emulator might not show exactly what happens on a real device, this site has a lot of html5 (webgl/audio,...) Jun 02 01:15:44 I tried both actually, I liked genymotion better, android emulator somehow runs terribly slow on my machine Jun 02 01:16:06 raisen: if you start an android emulator from the google api's image. you can install chrome or the latest webview updates. so it will be exactly what devices are like. Jun 02 01:16:17 But coming back to my question, is there a way? I heard people suggestion cocoonjs, not sure if it would fit my need Jun 02 01:16:34 I mean, i'd assume if emulator runs fine then it's fine... Jun 02 01:17:05 I don't know if the site owner would agree with this assumption though :) Jun 02 01:17:13 on a webdesign perspective, i'd just test for browser version and check if it supports webgl or audio? Jun 02 01:17:21 raisen: html isn't exactly known for its 100% identical rendering across all devices Jun 02 01:17:37 raisen: to run the emulator right.. you need to enable VT-x (Virtual instructions) cpu option in BIOS, then install HAM-X from the SDK manager and then folder. and finally make sure you choose the right image file for your machine. you dont want arm or mips.. you want x86 for 32bit and x86_64 for 64bit Jun 02 01:17:43 groxx, exactly.. maybe building an app on top of chrome's source? Jun 02 01:18:21 if you want extremely-predictable rendering, yes. you can bundle your own webview implementation. I think it's something like 30mb, but it exists Jun 02 01:18:25 raisen: no need.. thats what a WebView is Jun 02 01:18:27 Napalm, great, thanks. I think I was using arm. Jun 02 01:18:42 Napalm, but with webview, I'd need to build the controls as well? Jun 02 01:18:49 implement* Jun 02 01:19:14 yes.. but thats not exactly much .. here https://github.com/slightfoot/android-web-wrapper Jun 02 01:21:02 Napalm, the scroll view is cutting the bottom part of my layout off Jun 02 01:21:06 some of the text is off Jun 02 01:21:24 aspire: then you've not done it right Jun 02 01:21:29 lol Jun 02 01:21:46 aspire: pastebin some code and we'll see wont we Jun 02 01:21:46 i think ik y though Jun 02 01:21:59 actually i'm pretty sure i know why Jun 02 01:29:20 anyone here run ubuntu? Jun 02 01:29:21 or linux Jun 02 01:30:50 Napalm that update just took like 20 GB wtf? Jun 02 01:31:18 well i did say Jun 02 01:31:28 Can we go through and delete some stuff Jun 02 01:31:42 if you want Jun 02 01:32:09 wow.. I've been getting windows-*beep*-sound for a while now and was going NUTS why it was happening.. just realised that it was mIRC that was doing it because I didn't scroll down :| Jun 02 01:32:11 just tick and delete all the android platforms you dont develop for... say everything before 15 Jun 02 01:32:20 Ok Jun 02 01:32:26 Dude do you run linux? Jun 02 01:32:32 Vercinger: thats why I change the beep sound for mIRC Jun 02 01:32:46 drose379: and then remove all the system images for arm and mips Jun 02 01:32:55 that should save you 20GB Jun 02 01:32:55 lol Jun 02 01:33:08 do you run linux? Jun 02 01:33:13 drose379: not for dev Jun 02 01:33:26 i have 3.4 down, 0.3 down.. I only ticked a few in the SDK :P Jun 02 01:33:33 0.3 up* Jun 02 01:33:38 Im randomly getting an error where it "Cannot mount my device" Jun 02 01:33:46 and now I cant test apps on phone Jun 02 01:37:55 woah.. split? Jun 02 01:38:07 net.split Jun 02 01:38:09 :( Jun 02 01:38:28 remember those from the good old quakenet days Jun 02 01:51:56 I have created a custom spinner (using this method: http://mrbool.com/how-to-customize-spinner-in-android/28286), and now I want to pass the selection to another activity (using this method: https://developer.android.com/training/basics/firstapp/starting-activity.html#BuildIntent). However, I can't get it to work, I get error message: "Attempt to invoke virtual method 'java.lang.Object Jun 02 01:51:56 android.widget.Spinner.getSelectedItem()' on a null object reference.".. I suspect it's because it doesn't actually "get" the selected. I've tried using "String office = mySpinner.getSelectedItem().toString();" and "String office = main_text.getText().toString();" and still get the null object reference. Jun 02 01:52:53 when binding to a service via bindService(), when exactly is the Service created so it's onCreate() method is invoked? Jun 02 01:53:54 huh, reading through WakeLock.java : 993 ... mHeld obviously isn't true if there was a RemoteException Jun 02 01:54:06 damn Jun 02 01:54:26 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/os/PowerManager.java Jun 02 01:55:05 a perfect example why you shouldn't swallow exceptions Jun 02 01:57:13 Strat sometime after bindService ;) Jun 02 01:57:25 that will be $2 Jun 02 01:59:08 Annyyyyone? It's a very low-level question :D Jun 02 01:59:26 (I guess).. however I don't know how to fix :( Jun 02 01:59:53 Vercinger: whats the question? Jun 02 02:00:01 I have created a custom spinner (using this method: http://mrbool.com/how-to-customize-spinner-in-android/28286), and now I want to pass the selection to another activity (using this method: https://developer.android.com/training/basics/firstapp/starting-activity.html#BuildIntent). However, I can't get it to work, I get error message: "Attempt to invoke virtual method 'java.lang.Object Jun 02 02:00:01 android.widget.Spinner.getSelectedItem()' on a null object reference.".. I suspect it's because it doesn't actually "get" the selected. I've tried using "String office = mySpinner.getSelectedItem().toString();" and "String office = main_text.getText().toString();" and still get the null object reference. Jun 02 02:00:03 hey Napalm Jun 02 02:00:14 How to I parse on the selection from my spinner? Jun 02 02:00:18 to another activity Jun 02 02:01:04 Vercinger: pastebin your code Jun 02 02:01:36 Vercinger: also pastebin your stacktrace of your two crashes Jun 02 02:01:45 http://pastebin.com/SnTx8mLv Jun 02 02:02:06 Stacktrace: http://pastebin.com/GnHDTs3F Jun 02 02:02:49 hello Jun 02 02:03:06 I'm wondering if it's possible to play audio directly from a listView, without opening a different activity Jun 02 02:03:23 Vercinger: it really says it all Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.widget.Spinner.getSelectedItem()' on a null object reference at appdev.vercinger.n343.MainActivity.next_button(MainActivity.java:98) Jun 02 02:03:29 recyclerview doesn't seem to like my use of MediaController Jun 02 02:03:51 Yeah, but doesn't that mean that I'm trying to parse a null object? Jun 02 02:03:51 Vercinger: line 98 of your MainActivity the object you call getSelectedItem on is null Jun 02 02:04:00 but it shouldn't be! Jun 02 02:04:03 but it is Jun 02 02:04:05 lol Jun 02 02:04:07 it's filled out IN my app etc. :P Jun 02 02:04:25 so I'm clearly using the wrong method of getting the selected stuff from the spinner? Jun 02 02:04:47 Vercinger: yes Jun 02 02:04:53 toally Jun 02 02:04:55 totally Jun 02 02:05:03 Got any idea what to do instead? :P Jun 02 02:05:39 wait Jun 02 02:06:17 ArrayAdapter for the LOOSE Jun 02 02:06:34 loose? Jun 02 02:06:44 I'm confused Jun 02 02:06:49 ArrayAdapter for people who are not tight Jun 02 02:06:58 lol Jun 02 02:07:02 that's why I'm confused CedricBeust! Jun 02 02:07:20 How do I become "tight"? Jun 02 02:07:35 and does it come with "swag"? Jun 02 02:08:59 Can I use a listview and have a play, pause, stop and delete button for every new row, and play directly within the listview? Or is this not feasible? Jun 02 02:09:21 Vercinger: wait Jun 02 02:09:56 Napalm: I am :) Jun 02 02:12:24 Vercinger: http://pastebin.com/k0dSk8jy Jun 02 02:12:37 I've fixed up your Adapter.. it now actually recycles its views :| Jun 02 02:12:51 and you'll see in next_button how you get the value. Jun 02 02:13:15 Vercinger: getSelectedItem() will return he object returned by getItem() in your adapter Jun 02 02:14:01 Napalm you there? Jun 02 02:14:04 yus Jun 02 02:14:13 hey Jun 02 02:14:20 so im looking at the sdk folder Jun 02 02:14:23 can I delete "Samples" Jun 02 02:14:37 remove the packages in the sdk manager.. yes.. if you want Jun 02 02:14:44 drose379: i suggest you keep sources Jun 02 02:14:58 sources? Jun 02 02:15:06 Ok I see that Jun 02 02:15:16 also, you can do ln -s sources/ documentation/ Jun 02 02:15:16 drose379: did you remove all the un-ndeeded system images for the emulator? Jun 02 02:15:16 what about samples? Jun 02 02:15:28 No, wheres that Jun 02 02:15:47 the system images Jun 02 02:15:54 drose379: i said earlier all the system images in the sdk manager that have arm or mips in the name Jun 02 02:16:04 oh I can delete those Jun 02 02:16:05 g00s: good call Jun 02 02:16:12 yes Jun 02 02:16:23 drose379: those are what eat up all the space Jun 02 02:16:27 ok, what are they Jun 02 02:16:32 i just said Jun 02 02:16:33 And why are they there if I dont need them Jun 02 02:16:36 system iamges for the emulator Jun 02 02:16:38 lol Jun 02 02:16:49 drose379: they are there because you downloaded them :| Jun 02 02:16:57 :( Jun 02 02:17:01 >_> Jun 02 02:17:20 Samples for SDK Jun 02 02:17:23 Can i delete that Jun 02 02:17:33 Thanks Napalm :) Jun 02 02:17:41 yes if you want to delete them Jun 02 02:17:47 Vercinger: working? Jun 02 02:17:51 with the change in the next_button, I don't have to do "toString()"? Jun 02 02:17:59 Napalm , testing Jun 02 02:18:02 So I can delete Intel x86 atom system image Jun 02 02:18:07 Vercinger: why would you? you get back a string from getItem Jun 02 02:18:07 arm eabi system image Jun 02 02:18:10 android wear system image Jun 02 02:18:12 all those? Jun 02 02:18:35 drose379: why are you asking me.. you decide.. do you want them or not? Jun 02 02:18:37 omg Jun 02 02:18:43 Napalm, I thought I was getting an object :) Jun 02 02:18:45 I dont know what they do Jun 02 02:18:55 Vercinger: a string is an object Jun 02 02:18:56 :| Jun 02 02:18:59 Do I need the system image if I want to develop for wear? Jun 02 02:19:14 :| Jun 02 02:19:16 i said. Jun 02 02:19:24 but an object isn't necessarily an string, no? Jun 02 02:19:27 they are system images for the emulator? i mean seriously Jun 02 02:19:38 oH OK Jun 02 02:19:41 if you want to emulate that type of system.. you'll need an image to emulate Jun 02 02:19:56 nah, no emulator Jun 02 02:20:09 drose379: then remove all system images Jun 02 02:20:13 holy shit Jun 02 02:20:17 freed up so much damn space Jun 02 02:20:25 Vercinger: correct.. but we ensure the adapter returns a String Jun 02 02:20:28 drose379: exactly Jun 02 02:20:31 :| Jun 02 02:20:36 * Napalm shoots himself Jun 02 02:20:46 why you mad guy Jun 02 02:21:29 drose379: just for you https://www.youtube.com/watch?v=QH2-TGUlwu4 Jun 02 02:22:04 ok ill check it out Jun 02 02:22:25 tf is that Jun 02 02:22:28 Gaw damn Napalm Jun 02 02:23:13 lol Jun 02 02:23:19 http://tools.android.com/recent/androidstudio13preview2available Jun 02 02:23:20 yay Jun 02 02:23:25 bug fixes to Android Studio Jun 02 02:23:29 g00s: & Jun 02 02:23:31 g00s: ^ Jun 02 02:23:48 Napalm oh thanks; i'm staying on the stable channel Jun 02 02:24:00 now AS is underlining my file red when theres no error Jun 02 02:24:03 g00s: same Jun 02 02:24:29 Napalm, didn't work - stacktrace: http://pastebin.com/HG2Y71bt Jun 02 02:25:09 erm Jun 02 02:25:22 Vercinger: look at the error.. thats your caligraphy use Jun 02 02:25:31 further down Jun 02 02:25:42 is the same null object reference Jun 02 02:26:04 Vercinger: see your onCreate.. Spinner mySpinner = (Spinner) findViewById(R.id.spinnerDestination); Jun 02 02:26:10 remove Spinner from that line Jun 02 02:26:16 so its: mySpinner = (Spinner) findViewById(R.id.spinnerDestination); Jun 02 02:26:19 then everything is fine Jun 02 02:26:19 ye Jun 02 02:26:23 okay Jun 02 02:26:24 thanks napalm Jun 02 02:27:00 sweet.. new error, but not the same :P Jun 02 02:27:07 so that's a start ;) Jun 02 02:27:17 any idea what's wrong with my calligraphy btw.? Jun 02 02:27:37 I have the font in "src/main/assets/fonts/" Jun 02 02:27:48 still it says it can't find it Jun 02 02:28:08 g00s: i might use 1.3 since they fixed a bug in 1.2 that really is annoying me.. the default to MNC in the preview Jun 02 02:28:13 layout preview Jun 02 02:28:26 Vercinger: remove the slash from the start Jun 02 02:28:56 Napalm lol. you're trading one bug for 20 more Jun 02 02:29:00 Vercinger: its fonts/bebas.ttf not /fonts/bebas.ttf Jun 02 02:29:08 I've tried ("/fonts/bebas.ttf") / ("bebas.ttf") / ("fonts/bebas.ttf") Jun 02 02:29:10 g00s: i dunno. maybe. Jun 02 02:30:18 http://i.imgur.com/l5zCVDC.png Jun 02 02:31:58 Vercinger: the icon on your fonts directory looks weird to me.. delete it.. right click assets and choose new directory Jun 02 02:32:14 Vercinger: different icon? great.. copy your ttf font into it and try running again Jun 02 02:33:48 I choose: "new>folder>assets folder" Jun 02 02:33:57 no Jun 02 02:34:03 just plan old directory Jun 02 02:34:14 otherwise its a assets folder like your top-level assets folder Jun 02 02:35:05 Vercinger: create a new directory now? different icon Jun 02 02:35:07 ? Jun 02 02:35:08 icon looks the same no matter how Jun 02 02:35:14 no.. even if I do it in explorer Jun 02 02:35:23 same icon Jun 02 02:35:36 call the directory a different name Jun 02 02:36:13 Vercinger: what version of AS are you using? its in the Title bar Jun 02 02:36:18 1.1.0 Jun 02 02:36:22 :| Jun 02 02:36:31 :'( Jun 02 02:36:38 well i think theres a newer one Jun 02 02:36:42 1.2.1.1 Jun 02 02:36:50 updating Jun 02 02:37:41 Vercinger: in your gradle config.. what version of calligraphy are you using? looks like your version is old too Jun 02 02:37:52 7+, something Jun 02 02:37:57 ompile 'uk.co.chrisjenx:calligraphy:2.1.0' Jun 02 02:38:00 you guys send me a link yesterday Jun 02 02:38:01 compile 'uk.co.chrisjenx:calligraphy:2.1.0' Jun 02 02:38:03 is the latest Jun 02 02:38:06 not that one, that one didn't work Jun 02 02:38:15 didnt work how? Jun 02 02:38:19 but.. I guess neither did the other Jun 02 02:38:26 https://github.com/chrisjenx/Calligraphy < read this page Jun 02 02:38:32 it even gives you an example :P Jun 02 02:38:45 Will take a look Jun 02 02:39:02 but I'm getting null object reference in my new activity when I try and use the string sent to "setText()" Jun 02 02:39:36 your not getting it from your intent's extra's correctly then.. are you Jun 02 02:39:56 I'll play around with it to see before I start asking for more help :P Jun 02 02:40:04 right now I'm updating.. internet isn't great Jun 02 02:40:08 only 3.4 down Jun 02 02:40:24 String office = getIntent().getStringExtra("appdev.vercinger.n343.MESSAGE", "its blank :("); Jun 02 02:40:27 tada Jun 02 02:40:28 :P Jun 02 02:40:52 wasn't using anything after MESSAGE part Jun 02 02:40:59 String office = getIntent().getStringExtra("appdev.vercinger.n343.MESSAGE"); Jun 02 02:41:04 that's how I used it Jun 02 02:41:17 same difference Jun 02 02:41:21 okay :) Jun 02 02:41:23 its just the default value Jun 02 02:42:14 hmm, Paul Eremenko, ARA's team lead left. I guess after 2 years + extension there wasn't enough progress so he was going one way or the other Jun 02 02:42:47 should you expect "progress" after "only" 2 years? Jun 02 02:43:05 i guess thats the way ATAP works, 2 years from theory to viable Jun 02 02:43:09 I'm not in the working force/professional, so I wouldn't really know :P Jun 02 02:50:17 Followed the guide, got this error: http://pastebin.com/LXbrBdkN Jun 02 02:51:50 what am I missing in the SDK? Jun 02 02:53:51 API 22? Jun 02 02:54:33 open your sdk manager Jun 02 02:54:39 already is Jun 02 02:54:51 scroll to the bottom section.. what version do you have on Android Support Repo Jun 02 02:55:01 does it require an udpate? Jun 02 02:55:26 current: 11, update avail: 15 Jun 02 02:55:30 so, ye Jun 02 02:55:32 tada Jun 02 02:55:33 :P Jun 02 02:55:41 I thought it was just eh support lib Jun 02 02:55:45 that was the only one I installed yesterday Jun 02 02:55:51 support lib is just the source Jun 02 02:55:53 so I don't have to install API 22? Jun 02 02:55:56 and eclipse stuff Jun 02 02:56:06 no Jun 02 02:56:11 because that is a huge b**** Jun 02 02:56:19 Vercinger: erm.. no its not Jun 02 02:56:24 How do people get their app icon next to the "hamburger" menu on their actionbar? Jun 02 02:56:31 for my internet, it is :P Jun 02 02:56:35 Vercinger: wait Jun 02 02:56:40 you dont need everytingh Jun 02 02:57:06 Vercinger: you only need "SDK Platform" from that package. but i would also recommend "Sources for Android" Jun 02 02:57:22 I have SDK platform Jun 02 02:57:25 not sources Jun 02 02:57:29 well its not needed Jun 02 02:57:31 so your fine Jun 02 02:57:33 you have v"" Jun 02 02:57:35 V22 Jun 02 02:57:39 so whats the problem? Jun 02 02:57:41 :P Jun 02 02:57:59 I guess I need to get the 15 of android sup. rep. Jun 02 02:58:03 make sure you have the latest sdk tools, platform tools and build tools from the top section Jun 02 02:58:11 Vercinger: yes Jun 02 02:58:39 but not from the preview, right? Jun 02 02:58:50 correct, not from preview **** ENDING LOGGING AT Tue Jun 02 02:59:58 2015