**** BEGIN LOGGING AT Mon Nov 04 02:59:58 2013 Nov 04 03:09:07 Hi fellows. I've a question: how can I enable 16-bit transparency without using any app? Is there a conf somewhere I can tweak? And yeah, my test device is rooted. Nov 04 03:15:06 why would you need 16bits for an alpha channel? Nov 04 03:15:08 sounds overkill Nov 04 03:18:58 hi guys Nov 04 03:25:56 pfn: nah, I'm just curious about how some apps are able to enable that. Is it set-able through some text conf file? Nov 04 03:26:12 ...or if it's in a sqlite thingy, where's it? Nov 04 03:29:34 <|0xD34D|> emdete: persist.sys.use_16bpp_alpha Nov 04 03:29:41 <|0xD34D|> set that property to 1 and reboot Nov 04 03:30:57 <|0xD34D|> eMyller: ^^ sorry tab completion failure on my part Nov 04 03:32:09 |0xD34D|: np. I appreciate your help! :) Nov 04 03:32:28 |0xD34D|: I guess one could bundle that into build.prop, right? Nov 04 03:32:36 <|0xD34D|> no problem, I have that setting in my ROM and I looked at the settings and that was what it used Nov 04 03:33:53 <|0xD34D|> you probably can add it to build.prop but it's not a read only property so it should persist between reboots Nov 04 03:35:11 |0xD34D|: that was the idea, thank you :) Nov 04 03:36:10 I'm just packaging a conf-patch to my nexus 4 so I can easily flash any ROM without having to manually set everything up before testing some apps. Nov 04 03:37:10 hi guys, what do i need to program android app Nov 04 03:37:18 can anyone show me books or site Nov 04 03:37:24 <|0xD34D|> d.android.com Nov 04 03:37:25 that show step by step to do something/ Nov 04 03:37:58 ? Nov 04 03:38:05 phong_: yes Nov 04 03:38:26 can u tell me what do i need to do programming Nov 04 03:38:52 1) go to d.android.com Nov 04 03:38:57 in there Nov 04 03:39:08 2) do what it tells you to do to get started Nov 04 03:39:10 seand, do u want to remote to my mahcnie? Nov 04 03:39:12 machine* Nov 04 03:39:17 why would i want to do that? Nov 04 03:39:21 show me Nov 04 03:39:25 :) Nov 04 03:39:58 here's a better link: http://developer.android.com/training/index.html Nov 04 03:40:08 i need the dev tools too man Nov 04 03:40:12 not sure what are the requirement. Nov 04 03:40:26 if you can't get started from there, you shouldn't be programming in android Nov 04 03:40:36 wow Nov 04 03:41:00 outch! Nov 04 03:41:20 i'll be in touch with you soon.... Nov 04 03:41:22 seand: you will find anything you need to develop android apps in there but how tos on programming itself. Nov 04 03:41:39 seand: bad autocomplete, that was for phong_. Nov 04 03:41:40 that sounded ominous Nov 04 03:41:43 oh wells. Nov 04 03:43:06 for real though, i have little patience for people who can't take the initiative and search for the solution to a problem themselves Nov 04 03:43:22 i already have to deal with a few of those at work :/ Nov 04 03:44:50 I feel that. he/she might be a kid looking for easy howtos. :) Nov 04 03:46:23 bankai_, thanks for pointing that Services are singleton by nature, that solved my issue even if it took me a bit of refactoring to clean up :) Nov 04 03:48:20 bedtime, cya. Nov 04 04:36:33 how to stream adio using nanohttpd server in android app? Nov 04 06:05:27 Anybody else unable to change developer name in Google Play? Nov 04 06:27:07 hiya. I have activity that implements OnGesturePerformedListener, have created two simple gestures(left and right) and it seems to work. Except for some reason when swing is STARTED from top of title bar program crash 100% quaranteed. Now obviously it's something from my code but is there some simple pitfall I managed to stumble into? Nov 04 07:01:29 does anyone have experience with using GreenDao ORM? Nov 04 07:07:12 someone? Nov 04 07:52:04 do you have to have a CREATOR in every subclass of a parcleable class? or can you somehow unify it? Nov 04 07:52:32 i have like 50 classes I need to implement, dont particularly want to have to write a creator for each one Nov 04 09:07:55 hello Nov 04 09:08:14 anyone can make a teamspeak server for android application development ? Nov 04 09:12:22 sry changed idea, is it possible to make a Mumble server ? Nov 04 09:16:06 cortexA9: good choice Nov 04 09:16:06 hi Nov 04 09:27:33 So Java is very foreign and hard to understand for me compared to the scripting languages I'm used to. I'm looking for an easy-to-use option for working with simple databases (1 table, pull X items randomly from a ~1000 item db to make an X-item db). Someone suggested ORMLite; is this the best option, or does anyone have another (simpler?) option they'd suggest? Nov 04 09:30:48 Twinge: android.database.sqlite provides fairly simple low-level access to SQLite that might be familiar Nov 04 09:31:26 p_l: I'll take a look, thank you. Nov 04 09:32:11 Twinge: have a look at sqlite, classes like SQLIteHelper, there's a bunch of tutorials out there Nov 04 09:34:56 Alrighty, thanks. I'm used to mostly just being able to look up 'these are the commands to do X', punching out a couple lines, and being able to test it right away, hehe. None of that actually having to know what I'm doing nonsense. Nov 04 09:36:23 yeah sqlite is a little harder, but the tutorials should help Nov 04 09:36:50 Twinge: it's not that much different in Java, you just have to understand the concept of OOP Nov 04 09:37:13 Twinge: invest a day to understand it and all your android endeavors will be much easier Nov 04 09:37:23 OOP is sexeh Nov 04 09:38:46 nb-ben: Looking like I should really do that, yeah. I'm just used to being able to say, look at some Python code and have a decent idea of what ot does even if I don't know the language well; in Java I just see everything repeated in triplicate and it looks like an insane mess ;) Nov 04 09:39:19 Twinge: chinese doesn't look like chinese for the people who understand it Nov 04 09:39:46 Twinge: just as much as plain english looks like chinese for a chinese person that is not familiar with the language Nov 04 09:39:51 nb-ben: Haha, indeed. Nov 04 09:40:55 Past experience has been more like different dialects rather than an entirely different language, so I'm jsut used to picking up the jist of it without too much effort. Clearly there shouldn't be *other* ways of doing things! Nov 04 09:41:16 Twinge: you will do that in Java too then Nov 04 09:41:28 Twinge: well unfrotunately you're going to do that while developing for Android Nov 04 09:41:56 Twinge: just remember that the practices you're going to learn are most likely not the proper way to do it, Java is a beautiful language Nov 04 09:46:05 But yeah, sounds like I probably won't be able to shortcut past everything this time, alas. I'll take your advice and try to get some basics down first. Nov 04 10:08:38 Does anyone has any experience providing beta testing through the play store? Nov 04 10:11:26 Will a beta version be provided instead of the 'stable' version? Or does it have a seperate entry in the play store? Nov 04 10:11:44 it replaces Nov 04 10:13:43 Ok thanks Nov 04 10:13:48 no worries Nov 04 10:14:39 Documentation about beta testing seems really scarce :-/ Nov 04 10:19:51 am I understanding right, that I can use language features of java7/8 as long as they dont require builtin classes/interfaces like try()? Nov 04 11:08:03 hi everyone Nov 04 11:09:22 I am using Google Maps V2, and I'd like to have polylines with gradients, instead of one single colour Nov 04 11:09:31 is that by any chance possible? Nov 04 11:17:34 I mean, something like the first image here: http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm Nov 04 11:31:58 Guys, is there a channel for android app ui? Nov 04 12:00:09 Nope Nov 04 12:00:17 That's pretty much covered by the -dev Nov 04 12:30:14 nobody can help me? Nov 04 12:30:23 morning guys Nov 04 12:32:45 anyone has an idea of how to duplicate a webview without loading the url again? Nov 04 12:33:17 I need to put the same GIF in two places in the screen Nov 04 12:39:58 Android custom ROM dev channel? Nov 04 12:41:52 ls Nov 04 12:45:57 suppose i want to have a user login to my server once and then remember that info, how does that work? Cookies or sth? I'm totally cluesless in this Nov 04 12:48:02 osxorgate, mostly people use oauth Nov 04 12:48:15 osxorgate, basically you generate a token which is then stored in your app Nov 04 12:48:25 and that token (pair) authenticates user Nov 04 12:48:44 the way how you send the token is entirely up to you, most services send it either as HTTP header or as a parameter Nov 04 12:51:11 Mavrik: ok so my app says here's my login+pass, then the server generates a token and remembers it, next time the app sends the token ? Nov 04 12:52:17 osxorgate, usually this works like App: "Here's users username and encrypted+hashed password (!!!!!!)" Server: "Okeh, I've authenticated you, your access token is " Nov 04 12:52:45 osxorgate, read up on proper OAuth 2.0 implementation, it usually also has token expiration and some other stuff that help security Nov 04 12:52:50 also... use HTTPS ;) Nov 04 12:52:59 also... check SSL certificates Nov 04 12:54:33 so suppose i'm running something on gogle app engine, what's the process for checking ssl cert? Nov 04 12:54:56 Hi Nov 04 12:55:09 Could somebody please explain this shit? http://i.imgur.com/dKbLx8P.png Nov 04 12:55:10 osxorgate, you tell GAE to use your SSL cert Nov 04 12:55:26 then in the client you check if the cert hash matches when connecting to server Nov 04 12:55:30 The NDK build script simply cut off the first letter of an object file name Nov 04 12:55:44 ivp_compact_surface.o became vp_compact_surface.o in the linker arguments Nov 04 12:55:53 So I can't link the .so Nov 04 12:55:57 osxorgate, client side certs aren't supported in GAE tho Nov 04 12:56:10 In /objs/local, the name is correct, the .d file with the correct name is there too Nov 04 12:56:18 There were no compilation errors, as you see Nov 04 12:58:34 Mavrik: ok so i generate a cert somehow, then tell appengine to use it, then in my app i have stored a hash that should correspond to the cert Nov 04 12:59:11 osxorgate, yes... that is to make sure you're connecting to your server and not something a guy put between your user and your server on public wifi ;) Nov 04 12:59:59 ok then lastly, ssl. i've seen things like x59 or something? can't figure out how to actually use ssl :/ Nov 04 13:01:54 osxorgate, by calling "https://yourserver" not "http://yourserver" and having SSL certs set in GAE ;) Nov 04 13:02:15 hm that simple huh Nov 04 13:02:22 and not rerouting https to http i read :0 Nov 04 13:02:58 but ok i can download a file, where in the process does the cert come into play? Nov 04 13:09:39 osxorgate, on connection Nov 04 13:10:02 Android will automatically throw IOException if you connect to a server with invalid certificate over HTTPS Nov 04 13:10:21 so downloading a file goes like: connect over https, verify server certificate hash, start transfer Nov 04 13:12:57 has anyone noticed weird behavior with the ExpandableListView recycling? Nov 04 13:16:15 it appears to pass in the incorrect view type Nov 04 13:21:20 Mavrik: ok thanks for the help Nov 04 13:21:30 funkbox: you're probably doing it wrong Nov 04 13:21:35 osxorgate: probably. Nov 04 13:22:02 how about you show us the adapter Nov 04 13:22:25 osxorgate: it's a massively complicated one with many different kinds of views etc Nov 04 13:22:33 and it's not a single class Nov 04 13:25:39 well then we won;t be of much help im afraid Nov 04 13:28:49 osxorgate: it's more of a "is there somethign weird with expandablelv recycling with lots of child view types" than a "omg i just started doing android and i don't get recycling" Nov 04 13:32:22 http://stackoverflow.com/questions/18079304/remove-actionbar-tabs-padding-in-android Nov 04 13:32:38 does anyone have an icea how to solve this? Nov 04 13:33:13 I didn't start the topic, but I'm interested in a solution Nov 04 13:35:42 funkbox: how much is lots? i guess if you propertly specify the type in getChildType Nov 04 13:35:56 osxorgate: maybe 30 view types. yes Nov 04 13:39:10 30.. gotta ask what's your app doing? Nov 04 13:40:58 think like an FB-like activity stream with many different types of items Nov 04 13:41:31 i may just ignore convertView and do my own recycling Nov 04 13:42:47 yeah it looks like the RecycleBin in AbsListView is based on positions and not on child types Nov 04 13:42:58 wait nmv Nov 04 13:54:00 yeah the recycler is fucked Nov 04 13:54:39 aannd doing my own recycling fixes it Nov 04 13:54:40 neat Nov 04 13:57:39 maybe use hasStableIds or what's it called Nov 04 14:03:41 osxorgate: using that Nov 04 14:04:40 osxorgate: stable ids = true, and the ids returned by getGroupId and getChildId are stable Nov 04 14:05:31 osxorgate: although i may have a bug in there Nov 04 14:10:08 where does eclipse new -> android -> android project form existing source derives the project name from? Nov 04 14:10:47 nope, returns correct and stable ids Nov 04 14:23:43 does 4.4 not allow debugging if phone is in a dock? Nov 04 15:24:22 does anybody know where to find genymotion devices with older android versions? Nov 04 15:59:27 does anybody know if the ability to add accounts to the play store app has been removed in newer android versions? Nov 04 16:00:13 http://www.androidcentral.com/android-forums-multiple-google-accounts-one-device-google-play is an example of this feature Nov 04 16:00:27 (not in my 4.3 menu) Nov 04 16:01:59 sabgenton: the new google play app has a menu in the upper left corner, when I tap that I see my accounts listed Nov 04 16:02:44 what device, android 4.3? Nov 04 16:03:01 are sharedpreference "reboot-proof" Nov 04 16:03:46 Ge0rG: oh yes I missed that *slap* Nov 04 16:03:49 sabgenton: galaxy nexus, 4.3 Nov 04 16:04:02 mines nexus 7 Nov 04 16:04:21 Ge0rG: do you see a way to change the account? Nov 04 16:04:23 I'm really hot for the new 4.4 NFC emulation API. I wonder what devices it will be supported on Nov 04 16:05:04 sabgenton: maybe you need to register it in the android prefs first? I'm only using one single account Nov 04 16:05:06 The card emulation? It's in place? Nov 04 16:05:17 Ge0rG: nope done that Nov 04 16:05:28 Thorbear: its part of the 4.4 API Nov 04 16:05:39 Thorbear: I assume this means it will be supported on the Nexus5 Nov 04 16:05:50 not sure though about the code on other devices... Nov 04 16:06:06 https://support.google.com/googleplay/answer/2521798?hl=en-GB says associate google wallet with it Nov 04 16:06:10 Shouldn't it be supported on any device with NFC and 4.4 ? Nov 04 16:06:13 no idea how Nov 04 16:06:32 Thorbear: there is a hardware feature for it. I suppose not all NFC controllers can support it Nov 04 16:06:39 Aha Nov 04 16:07:44 I'd really love to see it in an eventual 4.4 maguro backport though Nov 04 16:22:23 hey guys, this fragmentation problem is killing me.. I'm trying to draw just a single button on my screen so it looks the same on all kind of displays and cannot do it.. Is there's a chance to sucess playing just with xml file? I have a background with picture, so I need my button to be on 2/3screen height, I also want the button to be the same size according screen size Nov 04 16:27:20 trying to run my app on mobile phone, I get the error "out of memory on a 49348624-byte allocation Nov 04 16:27:35 what the hell could be making such an allocation? Nov 04 16:27:50 (works fine on tablet) Nov 04 16:28:38 s/(works fine on tablet)/(works fine on devices with more memory than the one I'm using)/ Nov 04 16:28:41 huh, 50 MB? Nov 04 16:28:52 The stack trace tells you what would make such an allocation Nov 04 16:28:53 JeremieDeNoob, are you loading any awesomely huge images? :) Nov 04 16:29:04 no Nov 04 16:29:18 s/more memory/larger heap/ rather Nov 04 16:29:20 ( i also took ou all the images from the layout file to make sure but this didnt stop the crash Nov 04 16:30:37 JeremieDeNoob, well, check out the stack trace then Nov 04 16:32:46 ah shit you guys are right Nov 04 16:32:52 there was a image that i forgot to comment out... Nov 04 16:33:11 use bitmap scaling -_- Nov 04 16:34:02 so what the hell... is there really that much difference in available memory from mobile to tablet? its a samsung note... I was planning on optimizing regardless but i mean, for testing purposes i expected it to have no problem on either devices Nov 04 16:34:16 neither are shit bottom end devices. Nov 04 16:34:44 whats the prefered type for android? png? Nov 04 16:36:32 hi all , I am on ubuntu , and useing android studio, when i click run i get this : Error: could not access the Package manager, is the system running, can someone assist ? i see how to fix for win but not for lin Nov 04 16:37:47 Heap size depends on device, os version, and whatever the manufacturer thought was appropriate.. It isn't tablet vs phone Nov 04 16:38:08 Higher resolutions usually means larger heap Nov 04 16:39:03 Providing your drawable as another file type isn't going to change anything, it's just loaded as a bitmap that uses width*height*4 bytes memory anyway Nov 04 16:39:13 As Mavrik said, scale your bitmaps Nov 04 16:39:59 hi there, is there something like google cloud messaging which doesn't rely on the google infrastructure? Nov 04 16:40:33 A 50 MB allocation is a pretty large bitmap.. There's no devices that needs that size Nov 04 16:42:51 SimonVT: doubt it Nov 04 16:46:30 hey guys, are there any mobile developers in here? If so I was wondering how you guys handle versioning for android apps. Like if you wanted to deprecate a version and force a user to upgrade, how you go about it Nov 04 16:46:57 have a webservice that dishes out version information and have your app consume that data Nov 04 16:47:06 and then force going to market to upgrade or quit Nov 04 16:47:26 pfn: do you have a minimum version required for your apps? Nov 04 16:47:34 or if the app's version is different, upgrade it Nov 04 16:47:43 ? Nov 04 16:48:18 so for example, when the app boots up it'll query the api and see that the minimum version to run is 1.2 Nov 04 16:48:25 so anything lower than that will be forced to upgrade Nov 04 16:49:12 depends on your business requirements Nov 04 16:49:16 that's for you to figure out Nov 04 16:49:24 Okay. Thanks. Nov 04 17:13:13 Ge0rG: when you click on the three dots in the play store do you see 'accounts' or just 'settings' ? Nov 04 17:13:51 sabgenton: Settings and Help Nov 04 17:15:28 odd me too. but look here http://android.stackexchange.com/a/43597 it's there for some people! Nov 04 17:19:45 4.3 did add multiple logins maybe they removed this feature :( Nov 04 17:21:45 Woot. Nexus 5 will be here tomorrow Nov 04 17:22:37 when i try to create an avd, under target, there is only one option, and it is 4.3 how ever when i create a project for target, build and min version i have more options, can someone assist , Nov 04 17:27:21 saturation: these screenshots are pre-4.3 Nov 04 17:30:16 * Ge0rG is btw looking for creative solutions to http://stackoverflow.com/questions/19769312/android-action-bar-home-button-not-including-activity-title Nov 04 17:37:57 anyone go to the samsung conference ? Nov 04 17:42:40 Ge0rG: Just backport the 4.2 action bar to 4.1 Nov 04 17:42:48 Or stick to platform behavior and stop wasting time Nov 04 17:53:38 the 4.4 action bar has the menu button slide down gesture like in Chrome, so if you're going to backport one you should backport that one Nov 04 17:55:40 meh. Chrome FCs on 4.3 Nov 04 17:56:03 kevinb is that where you drag your finger to open the menu ? Nov 04 17:56:10 yeah Nov 04 17:56:31 i saw a video of that and thought, "is that it? am i missing something?" Nov 04 17:56:56 it's subtle but it's neat Nov 04 17:57:25 i don't think it's actually any technically faster than two taps, but i think it feels smoother. if users remember/know to use it Nov 04 17:57:46 it adds another fluency into the vocabulary of microinteractions Nov 04 17:57:55 how and when does the user know to use it ? Nov 04 17:59:14 well users learn to swipe to scroll or long-press for extended actions Nov 04 17:59:36 they can learn by accident once, but then start using it Nov 04 17:59:45 and the interface doesn't take away from the standard interface at all Nov 04 17:59:54 It's a secondary way to do an action, it doesn't necessarily have to be completely obvious Nov 04 18:00:09 One of those hidden "oh, neat" things Nov 04 18:01:14 * g00s yawns Nov 04 18:02:18 I have a custom view, in which this function *is* called… http://pastie.org/8454985 the purpose is to make subviews clickable and their click events are sent up to the mStudioDrawerViewListener, if it isn't null. When I click these views, however, no log statements are generated… Nov 04 18:03:01 * Nilium giggles in delight at the news that BlackBerry wants to continue riding its dead pony into the void Nov 04 18:03:08 Hey Guys - I have a ListView showing 10 webview rows. Each row is an extended WebView class. I have a custom ListViewAdapter that would serve the correct webview object based on the row index, and it also maintains an array of the current rows. In order to make sure that convertview always matches the right index, I do 2 things: 1. override the getViewTypeCount to 10, and 2. override the getView, so it maintains the correct Nov 04 18:03:49 Nilium its not dead yet; Charlie is only missing one kidney so far Nov 04 18:04:28 * g00s looks over towards candy mountain Nov 04 18:04:33 toofan: You have 10 different WebView subclasses? Nov 04 18:04:38 Charlie? Nov 04 18:04:42 Is this a reference to that.. yeah.. Nov 04 18:04:57 yes - they all do pretty unique things Nov 04 18:05:11 exemplary piece of fine art and literature; surely something Nilium appreciates Nov 04 18:05:30 toofan, ok what was the other part of your question Nov 04 18:06:17 If we're going with nonsensical non-sequitur humor, I'm going to sit in my Invader Zim boat and feel like it's still the early aughts Nov 04 18:06:44 its if this is the right approach - to make scrolling smooth and avoid my webview objects to be recreated, I have getViewTypeCount to 10, and just returning the convertView from getView method in the adapter Nov 04 18:07:14 my other option would be to decouple the logic from extending webview, and then just use the standard webview objects in the adapter Nov 04 18:07:24 toofan: yes that is the correct approach Nov 04 18:07:27 the first one Nov 04 18:08:04 ok thanks! Nov 04 18:08:21 as a followup - is there any chance that the ListAdapter would automatically shuffle around the views? Nov 04 18:08:32 to clarify - Nov 04 18:09:59 lets say if row 1 is set as WebViewRow1, and in getView for index 1, it usually passes the convertView for row 1. However, once in a while, the app doesn't get the same convertView (for example, convertView for row 1 would be WebViewRow2). This happens when the RowType won't match the actual rows, but I wonder if there is anything else that might trigger that Nov 04 18:21:45 anyone can explain how can I display the version of the gradle plugin I am using? Nov 04 18:22:05 not that I am using, that is available to me Nov 04 18:28:17 Guh, any hints on making my custom view clickable... Nov 04 18:28:23 I got no response Nov 04 18:29:41 I would like to create a Hell's Kitchen equivalent of programmers competing to make an app, and I'll be the shouting boss ;) Nov 04 18:30:45 you call this an app? GTFO of here! Nov 04 18:31:46 is there an easy way to print the top three lines of a stack trace to logcat Nov 04 18:32:04 Strictly JUST the top 3 lines? Nov 04 18:32:14 well 2 or 4 might work Nov 04 18:32:17 i do not want the whole thing Nov 04 18:32:20 it takes up too much space Nov 04 18:32:31 check out (new Exception("x")).getStackTrace() Nov 04 18:32:49 it returns a StackTraceElement[] Nov 04 18:33:04 yeah, im familiar with that :( Nov 04 18:33:09 oh Nov 04 18:33:12 well idk! Nov 04 18:33:13 * Ge0rG just misread that as StackTraceExcrement Nov 04 18:33:24 i'll do that though if no one knows of anything better Nov 04 18:33:25 Isn't that what it is, though, usuallyy Nov 04 18:34:27 if I do this.findViewById(R.id.foo).setOnClickListener(myListener) it SHOULD a) make foo clickable and b) call myListener.onClick when the foo is clicked, yes? Nov 04 18:34:48 So why would it not be doing that... Nov 04 18:36:08 explodes: you could use tail -n 3 if you have that command somewhere Nov 04 18:36:27 danieleB try http://gradleplease.appspot.com/ Nov 04 18:36:33 i put in gradle and it said 0.6.3 Nov 04 18:36:52 oops I meant, the head command, head -n 3 Nov 04 18:37:09 shmooz canadiancow is the one asking :p Nov 04 18:37:32 oh yeah, thanks explodes Nov 04 18:38:23 thank you g00s Nov 04 18:40:14 I wish someone else at my job had any android experience Nov 04 18:40:17 I barely have any Nov 04 18:41:41 ContactsContract... I'm adding a RawContact (http://pastebin.com/yt0904it), seeing a no-name contact in the address book, but am unable to query for it (and it should be attached to the contact in question, yes?) Nov 04 18:44:24 I can query for the account type and name and get a list of raw contacts, but I can't constrain the search to the contact in question and still get a result. Nov 04 18:44:33 What am I doing wrong? Nov 04 18:45:23 are you getting a new cursor after doing the edit? Nov 04 18:46:43 somebody help :| Nov 04 18:48:21 none of my .setOnClickListener listeners are doin' a damn thing! Nov 04 18:48:32 Then something else is handling the touch events Nov 04 18:48:33 except for on Button and ImageButton views Nov 04 18:48:34 Find out what Nov 04 18:49:13 hmm Nov 04 18:49:50 Bourbon: I'm applying in batch (the call for that is further down) and am getting no errors as either exceptions, or logcat errors. Nov 04 18:51:01 But there is no cursor coming back from the batch operation, I will check the content provider results, which may help. Nov 04 18:51:21 SimonVT: There is no other point where .setOnClickListener is being called in my, no point in the XML defines onClick or anything Nov 04 18:51:39 Is that something else is capturing the event the only reason it would not work? Nov 04 18:52:41 explodes: Are you trying to set up gesture controls? Nov 04 18:53:14 Yes, something else is handling the events Nov 04 18:53:30 grey, no Nov 04 18:53:38 greymalkin: * Nov 04 18:54:09 Is there some .getListeners that can retrieve anything possibly intercepting the onClicks Nov 04 18:54:10 ? Nov 04 18:55:11 No Nov 04 18:56:01 Well, isClickable is FALSE before I set the onClickListener... Nov 04 18:56:15 hello\ Nov 04 18:56:22 whats a good book for making apps? Nov 04 18:57:43 pogiako: http://www.amazon.com/dp/B00C893P8U Nov 04 18:57:47 There is none that I know of… Look up android tutorials and get familiar with the app structure, then try to create more complicated projects, then more complicated, then more... Nov 04 19:00:30 pogiako also http://www.amazon.com/Building-Mobile-Experiences-ebook/dp/B00A9WE3MK :) Nov 04 19:00:53 you asked building apps, not /coding android/ ;) Nov 04 19:01:46 i'm looking forward to http://www.amazon.com/Mobile-User-Experience-Patterns-ebook/dp/B00F8I2534 also Nov 04 19:05:06 Okay, batch results are showing that I'm getting a raw contact and data uri back. Nov 04 19:07:16 Whelp. Here is some sudo-code for how I am handling the events: http://pastie.org/8455182 Nov 04 19:07:26 pseudo-code :P Nov 04 19:07:50 If there is nothing fundamentally wrong with this paradigm, it must be something else going wrong. Nov 04 19:08:11 hehe, sudo-code. Nov 04 19:08:28 sudo code? Nov 04 19:08:39 pseudocode* Nov 04 19:08:59 pfn: uid0 code Nov 04 19:09:13 i'm an android kernel programme Nov 04 19:09:16 +r Nov 04 19:09:43 explodes: you haven't actually initialized any of those variables -- listener will be null in this case, thus none of your onclicks are handled. Nov 04 19:09:45 it's just a fun typo. :) Nov 04 19:10:06 greymalkin: in the real code they are initialized Nov 04 19:10:26 I am more or less demonstrating the design pattern of how the events are bubbled back to the activity Nov 04 19:10:41 Ah but I see what you're saying Nov 04 19:10:55 I have it in my real code, not in that sample Nov 04 19:10:59 Nothing's wrong with your sudo code Nov 04 19:11:48 in my activity I have this.drawer.setDrawerViewListener(this) Nov 04 19:12:16 explodes: Why not just do new OnClickListener() { public void onClick( View v ) { clickMarket(); } } instead of setting up the drawerviewlistener? Nov 04 19:12:47 Before that line, even, if I do Log.d(TAG, "ALready clickable?" + this.drawer.isClickable()) it prints "ALready clickable?false" Nov 04 19:12:57 cool, this $100 hdmi panel should work with a panda board; seems like a neat little android dev-kit Nov 04 19:13:04 low cost Nov 04 19:13:18 g00s: link? Nov 04 19:13:18 g00s lemme know if you need any tips with that Nov 04 19:13:27 I got intimate knowlege of panda Nov 04 19:14:22 I wonder how this chromium webview shit is going to work versioning whise Nov 04 19:14:24 wise Nov 04 19:14:38 because the one I have in kitkat is basically broke. Nov 04 19:14:56 greymalkin: the actual "wireEvents" looks like this: http://pastie.org/8455202 the first line in the onClicks is never fired (the logging) Nov 04 19:15:17 greymalkin: so, no matter what I do in that function, it's fruitless at this time :P Nov 04 19:16:01 greymalkin one sec ... Nov 04 19:17:30 at least hardware accel looks fucked Nov 04 19:17:32 this is depressing; this project has been nothing but 4 hour problems after 4 hour problems, instead of just 20 minute feature, 20 minute feature D: Nov 04 19:17:45 that will get better Nov 04 19:17:59 greymalkin http://www.kickstarter.com/projects/697708033/hdmipi-affordable-9-high-def-screen-for-the-raspbe Nov 04 19:18:52 explodes: If the isClickable is false, that could be your whole problem -- looks like a customized view, did you override the isClickable, or set it elsewise to false? Nov 04 19:19:03 no i did not Nov 04 19:19:54 it is false because nowhere has an OnClickListener been set on that view Nov 04 19:20:17 god dammit you know what Nov 04 19:20:25 I think I know the problem now Nov 04 19:20:39 this.mDrawerStudio.setStudioDrawerViewListener(this); doesn't make the view clickable. Nov 04 19:20:44 ron_frown is WebView and Chrome using the same shared lib now? i remember it being similar / same code ... Nov 04 19:20:59 .setStudioDrawerViewListener needs to explicilty make the view clickable. Nov 04 19:21:33 let me see if that fixes it :I Nov 04 19:22:30 ugh nope :\ Nov 04 19:22:55 Does a parent view need to be clickable in order to let its subviews become clickable? Nov 04 19:23:02 No Nov 04 19:23:09 Hmmm :\ Nov 04 19:23:34 Ok i'm gonna take a 10min break before i lose my cool Nov 04 19:25:17 greymalkin also http://www.theguardian.com/technology/2013/nov/04/raspberry-pi-monitor-hdmipi-kickstarter Nov 04 19:25:28 Yeah, I'm drooling Nov 04 19:26:43 "The display is slightly larger, but of similar resolution to those found on the Tesco Hudl and 2012 Google Nexus 7 tablet computers, and could be used with other computers and devices - anything with an HDMI output including phones, computers and games consoles." Nov 04 19:26:44 :) Nov 04 19:34:47 hey, been 2 years since I developed java project... wanted to write a small android app... used to write project with a lot of test CI etc Nov 04 19:35:18 for the love of god, can somone point me to simple workign solution to have test that not require emulatro run in Adrnodi studio? Nov 04 19:35:55 You could probably use JUnit from the command line as long as your tests don't require the emulator to run. Nov 04 19:36:12 groundnuty_m i think JakeWharton made a plugin for that Nov 04 19:36:17 explodes: srsly its not basic functionality supported out of the box? Nov 04 19:36:32 https://github.com/JakeWharton/gradle-android-test-plugin Nov 04 19:36:47 https://github.com/JakeWharton/gradle-android-test-plugin Nov 04 19:36:48 if i'm following you Nov 04 19:36:53 dang, tooslow Nov 04 19:36:55 doesn't work in IntelliJ Nov 04 19:37:02 bug the Android tools team Nov 04 19:37:22 yes, I dead about it tried to make android studio to use my junit insted of the one form android.jar for the last 1h... Nov 04 19:37:27 *I read Nov 04 19:38:01 a Nov 04 19:38:21 after that unproductive 1h fight with tools, I decided to ask here - is this functionality not something basic, and why is it not workign? :O Nov 04 19:38:24 groundnuty_m: plain java library for stuff that can be plain java Nov 04 19:38:37 there's stuff like roboelectric but it's suboptimal Nov 04 19:39:02 funkbox: I wanted to test plain java lib that I'm using in android project Nov 04 19:39:15 and I wanted to have unit tests to be the part of android project Nov 04 19:39:39 groundnuty_m: i use maven and have a lib that has all the fancy business logic in there for easy testing etc.. Nov 04 19:39:54 groundnuty_m: if you get genymotion the android UTs aren't horrible Nov 04 19:40:49 funkbox: so like really, really the obvious thing I wanted to do is impossbile out of the box in Android Stuio? :O Nov 04 19:41:23 groundnuty_m: "obvious" isn't obvious. i use maven and it all just works* Nov 04 19:41:32 asterisks for being when you set it up Nov 04 19:42:17 funkbox: ok, so I would be gratefull for few tips if you dont mind ;) Nov 04 19:42:48 funkbox: what is the least pain in the ass setup maven/grade + what IDE + extra services (maby online) etc? Nov 04 19:43:34 is there somewhere a good working tutorial that describes configuring this setup/parts of it Nov 04 19:44:16 when i make one of these custom views clickable, do I need to override the setOnClickListener function so that the listener is applied to all of my custom view's subviews? Nov 04 19:45:05 groundnuty_m: https://code.google.com/p/maven-android-plugin/wiki/Samples the MorseFlash sample Nov 04 19:45:09 it has it all Nov 04 19:45:25 this custome view has a linear layout with a textview and an imageview. do I need to propagate the listener from setOnClickListener to these subviews? Nov 04 19:45:36 s/has a/is a/ Nov 04 19:45:50 No Nov 04 19:45:53 funkbox: thank you :) Nov 04 19:45:57 hmm Nov 04 19:46:45 Touch events travel up the view hierarchy (to let viewgroups intercept them), then down the view hierarchy (so the top most views get a chance to handle them first) Nov 04 19:47:04 So if none of the child views handle the event, the parent will get it (and can act on the click) Nov 04 19:47:14 k Nov 04 19:47:57 ya know what Nov 04 19:48:40 these damn child views are wrap_content x wrap_content… they should be fill_parent x fill_parent Nov 04 19:49:30 maybe this is the problem.. Nov 04 19:50:04 Nope. Nov 04 19:50:58 dude Nov 04 19:51:01 killing me. Nov 04 19:51:44 Could the problem be related to the fact that this view is animating in from off-screen on the left hand size, "pushes" the main content view to the right, and then exists where it lands? Nov 04 19:51:57 left-hand side* Nov 04 19:54:47 Depends on the api level. On older platforms the touch bounds don't follow the animation Nov 04 19:55:01 whelp. that might be the problem Nov 04 19:55:07 what API levels are we talking about Nov 04 19:55:11 Older being pre-HC Nov 04 19:55:49 so, me targeting < 3.0 is the problem.. Nov 04 19:56:12 http://dannyroa.com/2013/10/17/why-its-time-to-support-only-android-4-0-and-above/ Nov 04 19:57:54 :| Nov 04 19:57:59 w00t. my Nexus 5 has arrived Nov 04 19:58:18 Can someone explain the difference between minSdkVersion and targetSdkVersion? Nov 04 19:58:45 I can: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Nov 04 20:00:58 ah ok cool Nov 04 20:01:17 oh look, SimonVT.net Nov 04 20:02:54 SimonVT: that page really should jus thave minSdkVersion=14, targetSdkVersion=19 Nov 04 20:03:18 explodes: minSdkVersion=14. it will save you time and headaches Nov 04 20:03:25 funkbox: That page was written 1.5 years ago, I'm not going to update it Nov 04 20:03:32 But yeah, it should Nov 04 20:03:47 honestly might as well minSdkVersion=15. there are a small handful of 14 devices still out there, and you probably aren't testing against them Nov 04 20:04:16 kevinb: kindle fire Nov 04 20:04:22 but yeah, no reason other htan that Nov 04 20:04:30 oh i didn't know the fire was 14 Nov 04 20:04:46 the first ones were Nov 04 20:04:59 the first ones were 2.3 but i guess they got upgraded Nov 04 20:10:08 ok, 14-19, donezo Nov 04 20:15:02 LOL well I did the 'ol upgrade, but you know what, my click events are still not working Nov 04 20:19:47 Well I hate pasting a ton of code because I think its too much for people to read through, but here is my code. http://pastie.org/8455336 Nov 04 20:19:52 Section one is the activity Nov 04 20:19:56 Section two is the view Nov 04 20:20:05 I'll upload a screenshot as well. Nov 04 20:24:27 If this damn emulator would work :< Nov 04 20:27:21 still starting up... Nov 04 20:28:06 fuck Nov 04 20:28:25 browser shit in kitkat seems jacked Nov 04 20:28:41 how so? Nov 04 20:32:46 You should check if your drawer is intercepting the touch events Nov 04 20:33:01 kevinb, are there actually any 14 devices? :P Nov 04 20:33:07 So... Anyone have enough experience with ContactsContract to help with custom RawContact entries not getting appropriately paired with a contact? Nov 04 20:33:14 iirc, google calendar is minsdk 15 Nov 04 20:33:58 Gingerbread still holding on at 26% Nov 04 20:34:38 hopefully it will go down since K runs on lower memory devices Nov 04 20:34:54 i doubt the G devices will see an upgrade to K, but i imagine new shitty devices will run K instead of G Nov 04 20:35:02 ;) Nov 04 20:35:15 I'm getting a contact by Intent( Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI )... Nov 04 20:35:21 canadiancow: doubt board manufacturers update all their specs for KK Nov 04 20:35:33 those devices on GB will remain there for a while more Nov 04 20:35:54 right... new stuff, maybe Nov 04 20:37:08 Then (on a hunch) I query for the Contacts._ID, and attach that to the RawContacts.CONTACT_ID (along with an account type and name) column when inserting a raw contact. Then later, I can't find a RawContact querying on that CONTACT_ID. Nov 04 20:37:19 Even though the commit gave me back a URI. Nov 04 20:38:14 I just can't figure out why it's working, and the contacts contract stuff seems like a big mess of messes that doesn't make clear sense to me yet (especially how specific Uri's equate to various parts. Nov 04 20:39:19 anyone here got anything running kitkat yet? Nov 04 20:39:50 I ported kitkat over to my hardware, but chrome and webviews have some serious issues with gles2 hardware acceleration Nov 04 20:40:22 ron_frown i dont know anything; but fwiw KK has lots of tuning options; maybe you missed one somewhere Nov 04 20:40:54 tuning where Nov 04 20:40:59 build.prop? Nov 04 20:41:00 Napalm said he got a N5 Nov 04 20:41:05 I havent found any reading info on it yet Nov 04 20:41:14 I havent ported kitkat to my g2 yet =) Nov 04 20:41:17 coming soon Nov 04 20:41:25 I've seen reports of this problem all over the place Nov 04 20:41:36 in all the kitkat roms for existing hardware Nov 04 20:42:13 ron_frown: webview's work fine on my N5 Nov 04 20:42:23 maybe you need to be signed into Chrome to get acceleration XD Nov 04 20:42:27 hahah Nov 04 20:42:29 well Nov 04 20:42:49 E/IMGSRV ( 1431): :0: gralloc_module_map: Mismatching lock usage bits 0xP...FHWR=0x00000033 vs requested usage bits 0xP...FHWR=0x00000100 Nov 04 20:42:49 E/IMGSRV ( 1431): :0: MapBufferObtainParams: Mapping buffer failed Nov 04 20:42:49 E/IMGSRV ( 1431): :0: WSEGL_GetDrawableParameters: Failed to obtain buffer parameters Nov 04 20:43:04 happens every time I see a big block of black n my browser Nov 04 20:43:10 especially scrolling/panning/zooming Nov 04 20:51:15 java 8 has a lot of cool stuff Nov 04 20:51:23 i'd settle for 7! :p Nov 04 20:51:25 we don't even have java 7! Nov 04 20:51:25 for java anyhow :) Nov 04 20:51:41 java 7 was lipstick Nov 04 20:51:54 fork/join and nio.2 were important i guess Nov 04 20:52:04 i think you can probably grab fork/join though Nov 04 20:52:16 one of the jsr166zzzz bundles Nov 04 20:52:22 hi guys Nov 04 20:52:25 Hmm? with all the listeners in Android I'd love lamda expressions Nov 04 20:52:45 the streams feature is nice Nov 04 20:52:54 which one of you has made an app with ads and is selling it on the market? Nov 04 20:53:06 BenOrnstin lambda expressions are hard for listeners to hear ... they're not always good at math. Nov 04 20:53:14 (i'm here all week) Nov 04 20:53:28 Was that a joke? Nov 04 20:53:30 I can't tell haha Nov 04 20:53:48 Denel, me sort of, what's the question? Nov 04 20:54:06 how much you make from ads? Nov 04 20:54:17 It's only semipublished right now Nov 04 20:54:19 and how many people see your ads daily? Nov 04 20:54:24 ah Nov 04 20:54:24 So I can't give a fair estimate Nov 04 20:54:59 That being said, it's also somewhat of an edge case app, and if it catches on at all will make more then the average Nov 04 20:55:04 Okay, I'm abandoning storing this data with the contacts -- back to good-ol slite Nov 04 20:55:32 Is using the SQLiteOpenHelper still the recommended way to deal with database storage? Or has something new come up in the last couple years? Nov 04 20:55:57 ah. what youre making? Nov 04 20:56:13 Can't say :/ Nov 04 20:56:37 greymalkin sqliteopenhelper it is Nov 04 20:56:59 Good. I'm done trying to learn new storage techniques today :) Nov 04 20:59:12 GUGH Nov 04 20:59:24 I am going to become an iOS developer if this keeps up Nov 04 20:59:35 Just kidding. Nov 04 21:00:00 iOS is fun too, not kidding Nov 04 21:00:13 It is.. Nov 04 21:00:22 In a lot of ways it is easier, too. Nov 04 21:04:37 what a pity :/ Nov 04 21:04:45 easier to make money ;) Nov 04 21:05:41 I realize I need to start doing iOS at some point in order to progress along this path, but every time I start working with Objective C I want to cry Nov 04 21:06:13 I wish Windows Phone was a legitamite option :/ Nov 04 21:08:35 I gifted my father lumia 620. that wp is a strange os Nov 04 21:09:39 sometimes it's nice to look at such a clean os, and sometimes it looks so dull and boring without any pictures Nov 04 21:10:07 I like that aspect Nov 04 21:10:20 whats more it's api is quite poor Nov 04 21:10:31 and os lacks some basic features Nov 04 21:10:42 like talk time meter Nov 04 21:11:17 omg youtube is down Nov 04 21:11:56 i got the impression developers like the platform, but are mostly worried about adoption Nov 04 21:12:40 i know 3 people who picked up a lumia 520 or 521 in the past week Nov 04 21:12:42 looks up to me Nov 04 21:12:53 I lost a 900 last week Nov 04 21:13:23 heh Nov 04 21:13:24 gg Nov 04 21:13:29 vOv Nov 04 21:13:38 since MS sees no need to port win8 phone to it Nov 04 21:13:43 it's a useless brick, anyway Nov 04 21:13:45 :D Nov 04 21:13:54 anyway, I love my symbian 9.3 <333 Nov 04 21:13:56 best OS ever Nov 04 21:13:59 Bourbon was that Wp7 ? Nov 04 21:14:03 yeah Nov 04 21:14:16 cute phone, pretty decently responsive Nov 04 21:14:17 no apps Nov 04 21:14:20 no support Nov 04 21:14:33 no roms w/o using a flasher box Nov 04 21:14:55 are you talking about my phone? cause that's exactly how I would describe it Nov 04 21:14:58 fucking symbian Nov 04 21:15:16 apparently, the OS you pick doesn't matter nearly as much for user experience as the app ecosystem you buy into Nov 04 21:15:33 because the OS is gravy as long as it manages to get out of the way and let the phone work enough Nov 04 21:16:01 who cares if the OS is the best one ever of nobody has released an app update in 6 years? Nov 04 21:16:11 amirite? Nov 04 21:16:16 true Nov 04 21:17:22 and btw, does anyone know when wp8.1 is coming out? Nov 04 21:19:22 is there a static way to obtain the same data as Context.getCacheDir()? Nov 04 21:20:51 Nope Nov 04 21:21:32 does anyone he re ca re? Nov 04 21:21:49 static way? expose your application context as a singleton Nov 04 21:22:35 ah good, next AS gets 'clean' . i always wondered why that was missing, like Tor & Co were playing Jedi mind tricks "you don't need a clean function" ... Nov 04 21:22:55 well, you don't Nov 04 21:22:56 ;) Nov 04 21:22:59 :O Nov 04 21:23:04 I never needed one anyway Nov 04 21:23:17 paranoia ;) Nov 04 21:23:53 oh wait, i guess Tor wanted it but .. whatever . so then i wonder if its a NOP under the hood Zharf :) Nov 04 21:24:36 heh Nov 04 21:26:40 i thought make used to do [:clean :assembleDebug] Nov 04 21:35:49 Ok so I created a sample project with the same animation and stuff, and the sub-subviews are collapsable as expected. Nov 04 21:35:51 SO Nov 04 21:35:59 The problem I am looking for is hidden somewhere odd Nov 04 21:36:06 er, somewhere unobvious Nov 04 21:39:47 BUT I CANNOT FIND IT Nov 04 21:42:00 Hi all! I am trying to learn Camera api and I hit a brick wall. Can anyone please point me to a good explaination? What is SurfaceView? Do I need to subclass it or i can just instanciate it? Who is SurfaceHolder and what is the right way to draw on top of the preview? Nov 04 21:52:52 fucking powervr sgx540 Nov 04 21:55:31 my droid-1 had a powervg sgx 530 :) Nov 04 21:55:35 *vr Nov 04 21:55:48 isn't the 540 pretty old ? Nov 04 21:57:42 Nov 2007 :) Nov 04 21:59:38 How nice, my first non-five-star rating and it's from some italian dude complaining that my live wallpaper doesn't work on his device using MIUI or something. Nov 04 22:00:07 No crash logs reported, no emails about it, etc., just a two-star rating complaining that it doesn't work on something he put MIUI on. Nov 04 22:00:09 Wonderful. Nov 04 22:00:39 At what point did it become reasonable to expect something to work on a highly experimental ROM? Nov 04 22:00:40 hey guys Nov 04 22:01:10 does anyone know bout a code generator which is able to use uml diagrams to generate source code for android? Nov 04 22:01:18 lol Nov 04 22:01:40 * Nilium shoots ChampS89 Nov 04 22:01:45 Thank god we could identify the symptoms early and put him down. Nov 04 22:03:27 it would probably be nice if Play only allowed reviews from devices that passed CTS or something Nov 04 22:03:37 i think i got it. http://developer.android.com/guide/topics/media/camera.html#custom-camera Nov 04 22:03:39 and no reviews for betas / alphas Nov 04 22:03:49 (those would be bug reports) Nov 04 22:03:59 whats the matter nilium? Nov 04 22:04:19 I'd like it if I could ban irregular Android builds, but unfortunately detecting those would be hit or miss as hell Nov 04 22:04:19 Actually, hell's pretty on target. Hit or miss as religious references. Nov 04 22:04:32 so what's this ART thing Nov 04 22:04:38 If in my XML I use @plurals/foo as android:text="…", is that why I get these errors?: Skipping entry 0x7f020004 in package table 0 because it is not complex! Nov 04 22:04:45 <|0xD34D|> wabz: new runtime Nov 04 22:04:58 are you a detective? Nov 04 22:05:03 said nothing about a compiling app, i'm speaking about agile software development Nov 04 22:05:18 wabz the Dalvik lead left in 2011, maybe its a reboot. i think ART might be from that french company google purchased Nov 04 22:05:27 flexicore ? Nov 04 22:05:33 ChampS89: What's UML got to do with agile? Nov 04 22:06:10 ah, Dan Bornstein Nov 04 22:06:23 http://sse-tubs.de/publications/Rumpe_AgileModelingUML_RISSEF02_04.pdf Nov 04 22:06:26 All you said was you wanted a program that takes UML — I'm not sure what format since UML has no actual format — and outputs code. Nov 04 22:06:32 You'll have to be more specific about what the UML is and so on Nov 04 22:07:02 Agile and UML are distinctly separate things, just so you know. They can be used together, but neither one necessitates the other. So, no need to mention Agile. Nov 04 22:07:30 Anyway, do you have a specific format you want to generate code from or something? Nov 04 22:07:31 Are we talking class diagrams? Flows? I'm guessing not use cases. Nov 04 22:08:15 ChampS89 judging by the references; that paper is ancient (over 10 years old?) anyhow, regardless, reality has bitch smacked the uml-round trippers Nov 04 22:08:25 doesn't matter Nov 04 22:08:37 just need a generator for android which is using uml diagrams Nov 04 22:08:39 That's true, but really we just need more info to say anything Nov 04 22:08:56 not for a real project Nov 04 22:09:06 So, formats, name 'em Nov 04 22:09:14 IntelliJ does UML stuff, I don't know if it'll update code related to a diagram though Nov 04 22:09:52 http://www.jetbrains.com/idea/features/uml_class_diagram.html ← Referring to that. Nov 04 22:10:10 If you've already got a tool you're using for UML, you should probably say what it is and what format it uses Nov 04 22:10:42 Also still need to know exactly which diagram type you're talking about. Nov 04 22:10:52 * Nilium pokes ChampS89 to see if he's still alive Nov 04 22:10:52 as I said, it is not for a real project so the format is irrelevant Nov 04 22:11:14 .. You are asking for a tool, the format is relevant. Nov 04 22:11:51 It doesn't matter if it's not a real project, just pick something so there's something to go on Nov 04 22:12:55 any generator that can handle any format, that's what i am searching for Nov 04 22:13:17 you make the uml diagram and the generator generates the sourcecode Nov 04 22:13:23 Well, then Google. Nov 04 22:13:23 Are you asking because you don't use UML and don't know what you're looking for yet? Nov 04 22:13:23 not a compiling app Nov 04 22:13:34 Are you a programmer? Nov 04 22:14:11 yes I am and I am asking because I've already googled and found nothing bout a generator which is using uml diagrams to generate source code Nov 04 22:14:28 you mean stubs? Nov 04 22:14:33 or do you mean a full working app Nov 04 22:14:58 Not sure. He keeps saying "UML diagrams" but won't say what kind. Nov 04 22:15:01 Anyway, take a look at IntelliJ (which I linked). Nov 04 22:15:05 said before, no full working app just the classes methods and attributes Nov 04 22:15:17 i will thanks nilium Nov 04 22:15:30 So you're asking about class diagrams. Go look at IntelliJ. Nov 04 22:15:53 every uml diagram which you can use to generate source code Nov 04 22:16:34 Bear in mind that you'll have to buy a license to use the UML stuff in IntelliJ. Nov 04 22:16:45 But if you're talking about UML and Agile crap, I'm assuming you have someone you can convince to cover the cost of a license. Nov 04 22:17:34 i dont want to use it, just want to analyse this tool and write something bout it Nov 04 22:20:40 I FOUND THE PROBLEM Nov 04 22:20:52 After literally 5-6 hours. Nov 04 22:20:54 I found the problem. Nov 04 22:20:55 Finally. Nov 04 22:21:16 My view's subview's XML had android:clickable="true" Nov 04 22:21:20 AND THAT Nov 04 22:21:21 MADE Nov 04 22:21:22 IT Nov 04 22:21:23 BORK. Nov 04 22:26:51 maybe you hit enter too many times Nov 04 22:28:44 I should really figure out how the hell I'm supposed to promote/market my app. Nov 04 22:29:57 anyone how how to make the action bar show up below an overlay status bar? Nov 04 22:31:16 Hello guys. Noob question: Can someone tell me what's the 1 in xml files? I mean I selected android 4.4 as my target api and instead of android:layout_width it's android1:layout_width. is that normal? In the beginners tutorial shows android:layout_width Nov 04 22:32:04 in eclipse tho, when i type android: i don't get automatic completition. if i add the 1 (android1: ) i get completition Nov 04 22:32:34 anyone played with vgmstream on Android? Nov 04 22:35:38 DeusDeceit: Shouldn't be android1. Sounds like you somehow ended up with a different namespace. Just change it back. Nov 04 22:35:45 Unless something weird happened between 18 and 19. Nov 04 22:36:08 because you set your xmlns to be android1 Nov 04 22:36:10 not android Nov 04 22:36:22 the *name* that you use for your attribute namespace is irrelevant Nov 04 22:36:25 api would not matter Nov 04 22:36:27 this is basic xml Nov 04 22:36:40 Just be consistent. Nov 04 22:36:48 the namespace uri is what determines whether or not you get your completion Nov 04 22:36:53 And don't name it pony or something. Nov 04 22:36:56 so if you just do xmlns:android="bullshit" you won't get it Nov 04 22:37:12 If you do, the black guard will come. Nov 04 22:37:16 And they will no look kindly upon your transgressions Nov 04 22:39:19 I wish people who were happy with an app always left a positive review and instead the people who are unhappy were the ones who never leave a review because they can't be arsed Nov 04 22:39:31 Nilium how do i change it back? Nov 04 22:39:51 O_o Nov 04 22:39:51 By fixing your XML. Nov 04 22:42:29 Hello guys I want create sidemenu in my app it's a good idea to open new activity with layout or just load a new layout to existing activity ? Nov 04 22:43:02 What? Nov 04 22:43:10 If it's a side menu, why would you use a new activity? Nov 04 22:43:50 Nilium no no, sidemenu is just a trigger for showing new activity/layout Nov 04 22:44:34 forget about sidemenu (i'm using navigation drawer) Nov 04 22:44:39 So you're asking whether you should launch a new activity if you select something in the menu Nov 04 22:44:51 Depends on what you want to do, really. Nov 04 22:45:44 You could just load a fragment and let it exist on the back stack, or you could use an activity and it'd basically yield the same result, so just pick whatever you think works best given the situation. Nov 04 22:46:19 hmmm…. ok :P Nov 04 22:46:47 Basically, it could be either since it depends on what the thing being loaded is. Nov 04 22:47:07 Nilium activity always have this animation at start? Nov 04 22:47:21 I'd probably use a fragment and then if I wanted to later I could cram it in an activity to house it. Nov 04 23:00:59 hm, so it looks like it kitkat, Google Now is integrated into the launcher ? Nov 04 23:05:47 More like the launcher is Google Now. Nov 04 23:06:01 "The File Picker, which you use to open files and attach them, now has a cleaner and easier to understand interface. It also integrates with cloud services — Google Drive, Dropbox, and others — so you can add files from any service within any app.". Is this an Api or an app ? Nov 04 23:06:07 g00s you are always here Nov 04 23:06:20 This will probably irritate the OEMs that customize the launcher. Nov 04 23:06:22 during the day :) i sleep at night now :| Nov 04 23:06:52 Except Samsung, which seems like it's always trying to escape Google Nov 04 23:07:40 g00s: API Nov 04 23:07:55 well, ContentProvider kind of thing, afaik Nov 04 23:08:26 Nilium i find it irritating; i guess days are numbered where android is useful without being completely submersed in the ecosystem. Nov 04 23:08:36 p_l do you have a link ? Nov 04 23:09:15 not really, but it's described on d.android.com, and seems to work like content provider Nov 04 23:09:26 I have a bunch of things I should work on instead :| Nov 04 23:09:31 hm, this is the first time i read about it but details were fuzzy Nov 04 23:11:49 I'd find it irritating but I'm less interested in an active AOSP and more interested in platform uniformity. Nov 04 23:12:23 If Google moves all the interesting stuff into its services and makes it painful for an OEM to leave them behind, then that's closer to what I want to see. Nov 04 23:12:45 It's not "open," but I couldn't care less. Nov 04 23:13:14 I'm just looking forward to the complete erosion of "open" as a feature. Nov 04 23:14:23 howdy folks - I've got an ActionView that I was leaving expanded all the time, and now I'm collapsing it Nov 04 23:14:40 when I try to expand it by clicking the button, now, the views inside the view end up tiny tiny tiny Nov 04 23:14:48 Is this a confession? Nov 04 23:15:12 not really sure what's going on here - there's something going on in the expansion of action view items from my ActionBar that they're not being sized correctly Nov 04 23:15:18 I'd like to be able to use Android and take piecemeal what services to use; not have everything forced on me. Thats what i'm worried about; since I only use gmail anyhow - and thats only until the dark mail alliance has a product Nov 04 23:15:20 Are calling requestLayout or anything? Nov 04 23:15:40 I don't believe that there are Nov 04 23:15:57 I'm looking forward to seeing what DarkMail produces, since if the protocol is open, it should work out. Nov 04 23:17:07 So, I guess I need to ask what you mean by collapsing the actionbar Nov 04 23:17:39 the actionview is what collapses Nov 04 23:17:49 the actionbar stays put - I touch a button on the actionbar, and the action view expands Nov 04 23:17:59 g00s: As for taking piecemeal, that would be nice, but I think that should just mean allowing to un/install all user-facing apps. Nov 04 23:18:01 I touch the up/home action on the actionbar, and the view collapses Nov 04 23:18:30 Meanwhile ensuring uniformity between android builds in terms of services, capabilities, UI, etc. Nov 04 23:18:42 Nilium i do have a bunch disabled; i guess when they force a Google+ profile thats where i draw the line Nov 04 23:18:57 its probably inevitable Nov 04 23:19:01 So how are you collapsing the actionview? Nov 04 23:19:03 Are you just modifying the layout parameters? Nov 04 23:19:42 I'm okay with Google+, but if I can get a darkmail account eventually, I'm shutting down most aspects of my Google account. Nov 04 23:20:17 The issue I have is that no matter what I do, email's not secure, so I'm just okay with Gmail 'cause it's like anything else. Nov 04 23:20:52 I could use my own hosted email, but it likes to randomly reject my password, so I gave up on it Nov 04 23:21:15 the way the view is being collapsed/expanded is through the default mechanisms Nov 04 23:21:21 I've merely specified an ActionView Nov 04 23:21:40 Default mechanisms meaning..? Nov 04 23:22:12 I've never expanded/collapsed a view using a "default mechanism" so you'll have to actually elaborate on that. Nov 04 23:23:26 Are you just setting a flag and telling it to collapse the view like any other part of an actionbar? Nov 04 23:24:26 Hm, I wonder how many apps are going to just automagically start using the 'immersive' thing without considering whether it makes sense Nov 04 23:25:36 Hi Guys :) Nov 04 23:26:59 Action Views on the ActionBar are defined in onCreateOptionsMenu (in this case, in my menu xml) Nov 04 23:27:36 the Action View is actually specified by class on attribute "actionViewClass" Nov 04 23:28:12 Im new in android and want to find some ways to learn more. Do you guys know some github projects that I can follow or maybe some good blogs to read? Nov 04 23:28:23 read all of them Nov 04 23:28:28 SidGBF you can look at iosched 2013 code Nov 04 23:29:13 I'd say to read my blog, but I wrote about 5000 words about a live wallpaper and I'm pretty sure it's the most boring thing I've ever written Nov 04 23:29:40 <^cheeky> hai, if i am declaring to be a split action bar, do i need to treat it differently if i want to update the titles of the action views, i have run into the problem where when the action bar is stacked. the titles of the action views don't show even though i have declared in menu item always | with text tag. Nov 04 23:30:01 Well, I need somewhere to start. Ive been on web development for like 10 years, I need something new... Nov 04 23:30:41 Web dev for 10 years? It might be too late for you. Nov 04 23:30:41 The rot might be too deep to extract. Nov 04 23:30:46 Insert other jokes about web dev here. Nov 04 23:30:59 insert php jokes, too Nov 04 23:31:06 Nilium: lol Nov 04 23:31:24 Also some Perl jokes. Nov 04 23:31:47 And at least one about ColdFusion that just sort of makes everyone feel deeply ashamed for even knowing about it. Nov 04 23:32:47 I need to find a good way to remove this band-aid without essentially waxing my arm. Nov 04 23:32:48 Nilium: ... I think I'd take Perl over PHP Nov 04 23:33:19 I would too, but only because PHP has too many weird issues. Nov 04 23:33:31 Otherwise, I still have problems with Perl for `use strict` not being the default. Nov 04 23:36:15 so, nothing on ActionBar action views, then? Nov 04 23:37:33 * Nilium shrugs Nov 04 23:37:45 I still think you should call requestLayout again. Nov 05 00:01:16 Nilium: I don't actually call requestLayout ever - what is the context in which it is to be used? Nov 05 00:02:09 when a layout is inflated, is the view considered "VISIBLE, INVISIBLE, or GONE" ? Nov 05 00:02:32 if it's not delcared as INVISIBLE or GONE, then it's VISIBLE Nov 05 00:03:19 Bourbon: alright, thank you Nov 05 00:03:38 I'll drop a requestLayout() into onOptionsItemSelected() Nov 05 00:04:50 I have a GoogleMap is there a more elegant way to listen for zoom in/out events other than using Camera Change Listener ? Nov 05 00:05:13 something that maybe implements a onZoom method directly Nov 05 00:05:24 without having to test each camera change if it's a zoom Nov 05 00:07:24 Bourbon: You call requestLayout when you want a view to know that its layout has been invalidated somehow. Nov 05 00:07:52 doesn't seem to help much Nov 05 00:08:24 I now have what is basically a bandaid shaped bald spot on my arm. Nov 05 00:10:59 remove the rest of the hair with fire, and nobody will be the wiser Nov 05 00:13:10 Well, that wouldn't really make the whole draining-the-wound thing any easier Nov 05 00:13:15 what's interesting is that I can touch the icon to expand the action view, then rotate the phone to rebuild the entire view Nov 05 00:13:17 'Cause that part is just barrels of fun Nov 05 00:13:19 and get it rendered properly Nov 05 00:13:43 Well, yeah, but then like you said it's rebuilding the entire view. Nov 05 00:13:55 right - but it's keeping the actionbar state Nov 05 00:14:00 without a reference to a popup window, can it be determined from the layout within the popup window if the popup window is visible? (eg check insideLinearLayout.getVisibility() is View.VISIBLE) or would popupWindow.isVisible() need to be called? Nov 05 00:14:21 Hm Nov 05 00:15:10 sounds maybe-too-clever Nov 05 00:15:34 <^cheeky> can a split action bar show text if its at the bottom ? Nov 05 00:16:11 <^cheeky> or it just shows the menu items without the text when the action bar goes to the bottom Nov 05 00:16:57 <^cheeky> like this Nov 05 00:16:58 <^cheeky> http://www.auipatterns.com/2013/02/split-action-bar.html Nov 05 00:17:50 is it possible to create tags? Nov 05 00:17:57 <^cheeky> is it because the android system ignores tags such "with text " in the menu layout Nov 05 00:18:51 ^cheeky: is that question for me? Nov 05 00:18:59 SidGBF: What kind of tag? Nov 05 00:19:13 <^cheeky> errm no lol .. thought it was a reply to we what you said Nov 05 00:19:14 <^cheeky> heh Nov 05 00:19:42 Nilium: A listview-type tag Nov 05 00:20:05 I'm not sure how you're using "tag" in this case. Nov 05 00:20:24 well Nov 05 00:20:39 like thing Nov 05 00:21:08 Are you asking if you can dynamically allocate a ListView? Nov 05 00:21:40 Well, in an XML layout, that'd be either for a ListView or another view class. Nov 05 00:22:01 http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml seem that this is what Im looking for Nov 05 00:22:11 For anything else you'd probably have to elaborate on what you want to do Nov 05 00:22:56 Yeah. That's easy enough to do. Nov 05 00:36:46 is there a way to start new activity without animation? Nov 05 00:55:03 overridePendingTransition(0, 0) **** BEGIN LOGGING AT Tue Nov 05 00:59:35 2013 Nov 05 01:34:52 Hi Nov 05 01:35:03 I'm having some real trouble getting parcelable to work Nov 05 01:35:16 I was hoping someone could spare 5 minutes to point me in the right direction? Nov 05 01:36:28 could you paste a link to the code? Nov 05 01:37:09 it's got quite a few classes Nov 05 01:37:24 happy to if the size won't put you off :) Nov 05 01:38:02 the error is "java.lang.ClassCastException" by the way. i'll paste the code now Nov 05 01:41:19 http://pastebin.ca/2473815 Nov 05 01:42:35 I think maybe there's a problem with the in.readTypedList(TaskDetails, TaskDetail.CREATOR); line Nov 05 01:45:42 How do i create a new thread? Nov 05 01:46:48 ir7466: what about in.readParcelableArray(TaskDetail.class.getClassLoader())? Nov 05 01:47:06 TheHackOps: asyncTask, Executors, new Thread(), etc Nov 05 01:47:11 do you want to see TaskDetail as well? Nov 05 01:47:15 not really Nov 05 01:47:27 ok Nov 05 01:47:37 what do you see as the problem in in.readParcelableArray(TaskDetail.class.getClassLoader())? Nov 05 01:48:52 is it better to do that than readTypedList? Nov 05 01:49:01 Bourbon, Thanks Nov 05 01:49:33 dunno, ir7466 - it's just what I use. Nov 05 01:49:56 can I use readParcelableArray even though it is an ArrayList? Nov 05 01:50:12 oh, then use readParcelableArrayList Nov 05 01:50:44 Bourbon, And im assuming the main thread takes highest priority at runtime Nov 05 01:50:45 that's not valid Nov 05 01:51:04 it has to be readParcelable or readParcelableArray - according to the intellisense in Eclipse Nov 05 01:53:47 not necessarily dev related question (although i am an android dev) Nov 05 01:54:10 my current contract runs out in a few months, which is the current 'best' phone out there that i can get, nexus 5? Nov 05 01:54:27 does anyone have details on llibART? Nov 05 01:54:27 i've currently got a galaxy s2 that i am less than satisfied with, and am considering going back to iphone because it sucks Nov 05 01:56:50 otiose, And we care because?, You bought a super old phone. Nov 05 01:57:02 Android for the most part is so much better to use Nov 05 01:57:34 The only thing you might get out of the iPhone is security Nov 05 01:57:46 Bourbon, I tried changing it to in.readArrayList - now in the activity I pass to, it doesn't raise an exception. but the object is returned as null Nov 05 01:57:49 Because the JVM is not very secure Nov 05 01:58:07 TheHackOps: It makes no difference to me if you care. I just want to know what the latest 'best' phones are that I should play with Nov 05 01:59:15 Galaxy S4, S3, HTC's new phones Nov 05 01:59:23 Googles new phones Nov 05 01:59:31 They are all amazing Nov 05 01:59:41 Old generation of android hardware was shite Nov 05 02:00:08 otiose, Also ask aroung #android Nov 05 02:00:12 ir7466: it's just readArrayList Nov 05 02:00:13 whoops Nov 05 02:00:22 yeah, I figured it might have been Nov 05 02:00:25 i made that change Nov 05 02:00:30 and it stops the exception Nov 05 02:00:36 but the object is just null now Nov 05 02:00:42 yeah, the s3 we have at works seems orders of magnitude better Nov 05 02:00:48 so it's either parcelling or unparcelling it incorrectly I guess? Nov 05 02:00:51 yeah, im in #android too Nov 05 02:01:01 do you use writeParcelableArrayList? Nov 05 02:01:19 just writeList Nov 05 02:01:40 there isn't a writeParcelableArrayList Nov 05 02:02:07 otiose, Talk to me in there about it and ill be happy to help, these two are trying to solve an issue Nov 05 02:02:11 oh, wait.. yeah Nov 05 02:02:24 ok Nov 05 02:02:35 I tried commenting out the list stuff, it still returns null Nov 05 02:02:44 so it's not even storing the primitive stuff Nov 05 02:16:26 I am confused about the 3rd parameter to a list view adapter:resource - The resource ID for a layout file containing a layout Nov 05 02:16:33 where in the heck do I get that please? Nov 05 02:31:47 xp_prg, a basic one would be somtehing like android.R.layout.simple_list_item_1 Nov 05 02:31:55 it has a title and a summary Nov 05 02:32:09 in general, you'll be making something custom, and overriding getview Nov 05 02:32:19 at which point, i question the usefulness of those "ready to go" adapters Nov 05 02:32:23 and usually just extend baseadapter Nov 05 02:49:54 Hi ariefbayu Nov 05 02:50:25 I have a question for you ariefbayu Nov 05 02:50:37 Imagine you have a table layout Nov 05 02:50:46 and you want to dynamically add rows to it Nov 05 02:51:00 can you define a default style for that layout in the xml? Nov 05 02:51:07 or does that also have to be done dynamically? Nov 05 02:52:51 ariefbayu? Nov 05 02:55:43 hello people ;) Nov 05 02:56:25 hi pogiako Nov 05 02:56:43 are you an android developer? Nov 05 02:58:47 learning ;) Nov 05 02:58:48 u? Nov 05 02:58:53 yeah Nov 05 02:58:58 cool ;) Nov 05 02:59:01 have you ever dealt with TableLayouts? Nov 05 02:59:06 nope Nov 05 02:59:21 learning as well, I mean Nov 05 02:59:32 so u gotta have a good knowledge of java right? Nov 05 02:59:41 nope Nov 05 02:59:57 if you have come from any object oriented language **** ENDING LOGGING AT Tue Nov 05 02:59:58 2013