**** BEGIN LOGGING AT Sat Sep 01 03:00:02 2012 Sep 01 03:03:35 finally got work to allow a change taht shoul dhave been made long ago, affecting general UX of our app Sep 01 03:04:28 ron_frown: nice Sep 01 03:04:40 yeah Sep 01 03:04:41 ron_frown: was the product manager blocking it? Sep 01 03:05:01 I dont think its so much set in their ways as it is, dont want to go back and do it differently Sep 01 03:05:27 but, its a usability problem we've had for a while, and I think once we put our heads together, we have a much better solution Sep 01 03:07:06 now I just need to fix a couple things with our hardware and we'll be golden Sep 01 04:58:55 Is anybody alive out there? Sep 01 04:59:26 no Sep 01 04:59:34 right... Sep 01 05:03:48 i hate when you need to make so many changes to some piece of software; its not clear whether to refactor (the architecture, like mad) or just start over Sep 01 05:06:09 um...ok? maybe? Sep 01 05:06:50 would a clean slate make it easier? Sep 01 05:08:06 does javac produce byte-for-byte equivalent files across platforms? Sep 01 05:08:12 or may there be variances in the headers? Sep 01 05:09:15 they should be the same, right? Sep 01 05:12:17 i have no idea Sep 01 05:12:26 i don't know what's encoded in the headers Sep 01 05:12:28 maybe somebody in #java can answer Sep 01 05:13:00 i recall differences between hp / sun / blackdoan / jrockit Sep 01 05:13:05 *blackdown Sep 01 05:13:18 yeah. if i'm asking questions in this channel they need to be along the lines of "How can I make the action bar display vertically down the right side of my TabActvity?!?" Sep 01 05:13:22 but never tested same jvm, same version, diff on various platforms Sep 01 05:13:39 AndroidDriver, Robotium, or Other? Sep 01 05:14:28 those are not all even close to the same thing Sep 01 05:15:12 if you asked AndroidDriver vs. instrumentation I would vote instrumentation Sep 01 05:15:41 and then I would tell you that Robotium is somewhat useful when doing instrumentation testing but lacks a lot of core functionality to make it a must-have Sep 01 05:15:50 is AndroidDriver not a Selenium implementation aimed at Browser? Sep 01 05:16:06 genuine.. i'm new at this automated-testing business Sep 01 05:16:23 we use JUnit as much as possible for most testing Sep 01 05:16:59 and where necessary we use the most awful library in the world, Robolectric, to work around the inadequacies of the shipped android.jar Sep 01 05:18:36 JUnit is aimed more at function-level unit tests, right? does it have much support for "make sure this button sends me to that activity with XYZ set up"? Sep 01 05:19:06 we use it for those Sep 01 05:19:28 an Intent is just an object on which you can verify fields Sep 01 05:20:21 you have to use Roblowlectric for that though Sep 01 05:20:47 k, i'll look it up too Sep 01 05:20:56 any alternatives to robolectric, since it sucks so bad? Sep 01 05:21:05 not yet :) Sep 01 05:21:23 i assume robotium maybe..? Robotium seems along the same goal lines as square's KIF framework Sep 01 05:22:02 well Robotrium is only for instrumentation which has to run on the device or emulator whereas Robolectric allows you test on the JVM Sep 01 05:22:03 "hit that button and make sure this label displays XYZ" instead of verifying button.onClick sets label.text = "XYZ" Sep 01 05:22:08 correct Sep 01 05:22:32 haven't had a chance to use KIF yet but I'm going to integrate it into an upcoming open source project Sep 01 05:22:45 i want to end up coming at testing from both ends.. unit tests for each function and such, but also "overall" testing Sep 01 05:23:16 the methodology of "for each bug, develop a test that repros the bug, then fix the bug and verify the test succeeds" seems much more suited to Robotium/KIF-style framework Sep 01 05:23:28 yeah that's basically what we have. hundreds of JUnit/Robolectric-based tests and then about 10 high-level instrumentation tests that walk through the app in larger flows Sep 01 05:23:38 k Sep 01 05:23:50 the instrumentation tests.. what runs those? Sep 01 05:24:05 you've mentioned "instrumentation" a few times now. is it a sdk tool i'm just not familiar with? Sep 01 05:24:17 the aforementioned unreleased open source project to-be Sep 01 05:24:20 but you can run them manually Sep 01 05:24:35 http://developer.android.com/tools/testing/testing_android.html Sep 01 05:24:49 instrumentation tests are what Robotium is built on top of Sep 01 05:25:18 k Sep 01 05:44:44 ladies Sep 01 05:47:05 ron_frown: gent Sep 01 05:48:01 maggots Sep 01 05:48:18 pansies ! Sep 01 05:48:19 JakeWharton: knowing what i'm after, would you think Robotium is along the right path? what core func do you think it's missing? what alternative (Robolectric?) fills that? Sep 01 05:48:27 goos you do cusotm shit with bluetooth, no? Sep 01 05:48:39 I would recommend both Sep 01 05:48:47 you're not going to want to run instrumentation tests constantly Sep 01 05:48:57 JUnit/Robolectric tests you can run all the time though Sep 01 05:49:00 roboelectric tests apps running on straight jvm, not in emu Sep 01 05:49:16 robotium is like a more structured / useful monkeyrunner Sep 01 05:49:20 UI testing etc Sep 01 05:49:48 ron_frown: i use the apis Sep 01 05:50:05 ok, cool Sep 01 05:50:17 shite Sep 01 05:50:24 I need to get to the bottom of my bluetooth woes Sep 01 05:50:26 ron_frown: that's kind of the impression i've gotten of robotium so far Sep 01 05:50:53 I really wish I wasnt one of the most active answerers on google-porting =( Sep 01 05:50:56 er android-porting Sep 01 05:50:56 i noticed 2 new bluetooth profiles were approved this week Sep 01 05:50:57 when you say robotium you should say instrumentation Sep 01 05:51:11 the medical ones? Sep 01 05:51:19 and when you say approved you mean bt standards, or made it into bluez Sep 01 05:51:20 robotium:instrumentation::fest:junit Sep 01 05:51:37 I've found junit testing of my stuff has been... difficult Sep 01 05:51:56 never heard of fest.. but i'm sure by the end of the night i'll know where robotium 'ends' and regular instrumentation begins Sep 01 05:52:15 all the async stuff ended up with a manual reset events Sep 01 05:52:15 robotium is just a bunch of helpers Sep 01 05:52:17 atm i'm not clear which is which, aside from obviously class names Sep 01 05:52:24 it's not an actual testing thing Sep 01 05:52:28 ron_frown: http://gigaom.com/mobile/bluetooth-gets-physical-with-new-fitness-certifications/ Sep 01 05:52:30 hmm Sep 01 05:52:33 it can only be used with instrumentation tests Sep 01 05:52:55 ahh yeah Sep 01 05:53:13 I was reading up on medical one that interfaced with scales, blood pressure monitors etc Sep 01 05:53:30 oh, thats cool stuff Sep 01 05:53:32 I just interfaced a neat ultrasound thickness guage with our android hardware today Sep 01 05:53:33 bbiab, have to walk the dog - and mull over a Big Rewrite Sep 01 05:54:32 my dog's name is Jake :) Sep 01 05:54:35 new .net shit is... amazing Sep 01 05:54:41 I love all the async stuff Sep 01 05:54:55 oh yeah, noticed a new book just on that - have to check it out Sep 01 05:55:29 waiting for the phone sdks to be out Sep 01 05:55:44 not sure what they are waiting for :/ Sep 01 05:55:57 they are worried about how bad its gonna blow up in there face Sep 01 05:55:59 maybe they're waiting for someone to write a book Sep 01 05:56:07 or trying to find people that actually WANT to license it =) Sep 01 05:56:26 heh, the probably will commission Petzold to do that /again/ - he did it with wp7 Sep 01 05:56:40 and it was free for anyone to grab Sep 01 06:00:37 Petzold rules Sep 01 06:00:49 meh, right now i have an even split - 40% users on GB, 40$ users on ICS Sep 01 06:01:28 aolin: yeah, he goes waaaay back. Sep 01 06:04:07 ron_frown: do you know how many simultaneous rfcomm connections your hw can make, what is typical (2-3?) Sep 01 06:04:23 no idea Sep 01 06:04:27 I've only ever tried 1 =) Sep 01 06:04:36 hehe Sep 01 06:06:43 depends on bandwidth usage Sep 01 06:06:57 2 is still somewhat reliable on my devices Sep 01 06:07:23 7 is a protocol maximum Sep 01 06:08:43 Hello, I'm not sure I entirely understand: is there a way to create a content provider based on a sqlite database? If so can someone point me to a link on how to Sep 01 06:08:46 aolin: what effects do you see when you push it above 2 ? Sep 01 06:09:08 g00s: well on some situations you already experience it with 2 devices, loss of data Sep 01 06:09:47 but like I said it all depends on bandwidth usage Sep 01 06:10:27 the problem is the rfcomm gets so slow that the device can run out of buffer Sep 01 06:10:46 if it's pushing for example heart rate info at constant speed Sep 01 06:11:09 ahh, very interesting - ok that makes perfect sense Sep 01 06:11:29 aolin: btw, have you tried any of the bt HR monitors w/android ? Sep 01 06:11:54 that said, I'm working on high interference environments, race cars, motorcycles and such Sep 01 06:12:33 sounds like you are having fun :) Sep 01 06:12:38 g00s: no, not yet, but did that on Symbian and shouldn't be a problem to use same ones on Android Sep 01 06:12:50 as long as they are RFCOMM Sep 01 06:13:02 not sure why android has only RFCOMM API Sep 01 06:13:24 g00s: well it's a hobby that sometimes feel like work :D Sep 01 06:13:51 i'm very grateful it has at least that; iOS required some licensing and wp7 didnt have it (i think wp8 does tho) Sep 01 06:14:04 yep Sep 01 06:14:24 this is the main reason I'm developing my app on Android not iOS Sep 01 06:14:31 heh, me too :) Sep 01 06:14:37 would make ton of money probably on iOS but it wold not be as good as on Android Sep 01 06:14:44 i started on iOS and had to segway to android for this one reason Sep 01 06:15:37 is your app on PlaY? Sep 01 06:16:21 it is, but i keep low profile Sep 01 06:16:34 here's mine https://play.google.com/store/apps/details?id=com.racechrono.app Sep 01 06:16:37 i am frustrated android does not have BT LP though Sep 01 06:17:12 aolin: oh wow, that looks very nice Sep 01 06:17:18 did you use abs ? Sep 01 06:17:39 sure, abs is a lifesaver :) Sep 01 06:18:20 aolin: what lib did you use for the map ? Sep 01 06:18:20 a non-black background and http://jgilfelt.github.com/android-actionbarstylegenerator/ would make your app look 300% better Sep 01 06:18:20 didn't do much of graphics design at all, just tried to use standard google icons etc to save money and work :) Sep 01 06:19:15 JakeWharton: I actually used that style generator, but with the default settings :) Sep 01 06:19:29 o_O Sep 01 06:19:35 yep, I know :) Sep 01 06:19:44 you're effectively using Theme.Sherlock then but bloating your APK with duplicate resources! Sep 01 06:19:46 i want to make something with android that shows a series of bitmaps on a timer in a loop. i'd like to be able to load those bitmaps in externally, maybe from some sort of structured storage like a zip. anyone have pointers? Sep 01 06:20:09 Is there an event that fires when the notification bar is pulled-down, covering the current Activity? Sep 01 06:20:26 aolin: google maps or osm or webview for the map ? Sep 01 06:20:41 g00s: it's a standard google MapView Sep 01 06:20:50 aolin: you make racechrono? Sep 01 06:20:55 tophyr: sure Sep 01 06:20:56 :O Sep 01 06:21:00 aolin: you are famous ! Sep 01 06:21:19 I'm surprised anyone would know about it in HERE ... on a track day, sure :) Sep 01 06:21:26 MontyCarleau: no Sep 01 06:21:32 aolin: www.chrissarbora.com <-- me Sep 01 06:22:12 tophyr: excellent! Sep 01 06:22:18 haven't tried it to be honest.. altho now i'm definitely gonna, just on principle Sep 01 06:22:25 looked at it and wondered for a long time tho Sep 01 06:22:37 ok, actually, i will backtrack, i guess i have to start with something that actually shows a bitmap from itself Sep 01 06:23:29 so... how would I load an image and show it on a surface or something, and maybe detect touching it Sep 01 06:23:32 aolin: can it do split analysis? i can get you a GPS track of the IOM TT course next year, if you don't already have one ;) Sep 01 06:23:52 tophyr: but atleast you knew the product :) you guys who race at isle of man are my heroes, btw ... I never ever would be able to do what you guys do :) Sep 01 06:24:25 tophyr: yep it can, would be very nice to have it Sep 01 06:24:54 JakeWharton: I was using ABS with tab navigation, however some of the tab contents contained multiple fragments/list fragments (which caused me errors get references). So instead on tab selection, I just switch layouts containing all those via xml (I have to remove the corresponding referenced fragments on unselected). I was just curious if this repeated calling on setContentView is a bad Sep 01 06:24:54 idea (assuming I'm making sure resources are cleaned up and accounted for). Sep 01 06:25:19 that's not really an ABS question Sep 01 06:25:21 but yes Sep 01 06:25:23 spectacular, i'll for sure be pretty seriously using it then. they don't allow us XT GPX-style trackers Sep 01 06:25:32 but they do allow us cellphones, in case we break down on course Sep 01 06:25:41 .... i can't help it that my cellphone has a gps radio Sep 01 06:25:55 Yes it's a bad idea to use setcontentview to switch the layouts? Sep 01 06:26:10 finer split analysis than the half-dozen splits they give us would be really good. Sep 01 06:26:19 lasserix: correct Sep 01 06:26:35 setContentView should only be called once Sep 01 06:27:24 tophyr: one thing to remember is that it's all about the GPS reception quality. People use the 5-10Hz bluetooth GPS receivers, as the internal GPS on phones are not nearly good enough Sep 01 06:27:49 mm, that makes sense Sep 01 06:28:21 tophyr: what people do in track days that do not allow this, is hide the GPS receiver :) Sep 01 06:28:43 hehe yeah i was just thinking to myself "there is so much kit shit on a TT bike, what would they know the diff" Sep 01 06:28:50 can just stick it in the tail and be done with it Sep 01 06:28:51 Thanks for answering the trivial question Sep 01 06:29:01 but some new phones like Samsung S3 and Galaxy Nexus have GLONASS support, which makes the data already much better than normal internal GPS ... but still 1 Hz Sep 01 06:29:24 right Sep 01 06:29:59 and at 150mph, 1hz ain't gonna tell me much other than "you went that-a-way" instead of "you started braking 10ft earlier than your prior lap" Sep 01 06:30:11 10hz probably still won't get me to 10', but w/e Sep 01 06:30:53 tophyr: yeah, you would need to integrate many sensors to get any extra data, dont most phones have an accelerometer? Sep 01 06:31:16 now what i (and probably pretty much any other geek racer i know) would be very seriously interested in is a BT or WiFi sensor package that'd sync up with your existing data collection Sep 01 06:31:25 clever: accelerometer could be used, for sure Sep 01 06:31:44 ive also made a wireless (not bt/wifi) gps receiver before for my laptop Sep 01 06:31:47 if the phone's in a pocket on my leathers it'd pick up a lot of noise from body movement however Sep 01 06:31:50 tophyr: yeah, and also isle of man is very hard place for GPS ... I'm sure you'd lose the signal on the villages etc Sep 01 06:31:51 just a bare gps module and an xbee Sep 01 06:32:11 tophyr: yeah, you would mount the phone on the dash in a solid bracket Sep 01 06:32:25 aolin: possible. very heavy tree coverage for a lot of the course. over the mountain would be pretty much perfect however Sep 01 06:32:32 true Sep 01 06:32:35 isnt glonass just russias wannabe gps stuff? Sep 01 06:32:41 the xbee receiver is mounted inside the laptop, directly on an internal usb port Sep 01 06:32:59 ron_frown: yes, but point is that these new gps+glonass receivers use satellites from both Sep 01 06:33:10 so instead of having fix to 7 satellites you might have fix to 15 Sep 01 06:33:38 in racing situations you tend to lose fix because of trees, hills etc Sep 01 06:34:14 so not saying Glonass is better than GPS but GLONASS+GPS is surely better than either one alone Sep 01 06:34:41 I could see that Sep 01 06:34:55 aolin - would you happen to be the person asking about that on android-porting a while back? Sep 01 06:35:00 i would think a kalman filter would be useful here Sep 01 06:36:13 ron_frown: no, havent been on that forum/channel Sep 01 06:36:43 kalman filter is surely the way to go when integrating different data sources Sep 01 06:37:07 g00s - you tend to have experience in some interesting fields Sep 01 06:37:13 problem is that I'm not good enough with this kind of math even though I have related education :) Sep 01 06:37:14 I'd be curious to hear about hte kinda shit you do for a day job Sep 01 06:37:24 figure it out Sep 01 06:38:00 I bought this kalman filtering book that talks about 60's bombers etc Sep 01 06:38:11 and don't understand almost anything :) Sep 01 06:38:20 sounds like me Sep 01 06:38:46 I bought some big data books from this once a year forum that is the big minds discussing new concepts in database/nosql etc etc Sep 01 06:39:05 I found one of my independent ideas was being discussed at a recent one Sep 01 06:39:39 rather it wasnt just my idea, but an idea I came up with, and found big minds just now discussing it Sep 01 06:40:24 what was the idea? Sep 01 06:40:35 aolin: i've gotta hit the hay but i would seriously love to work more closely with you guys than "oh yeah, i use that app" Sep 01 06:40:39 do you have an email or team contact? Sep 01 06:41:38 tophyr: it's just me, email me at aol@racechrono.com, would be great to know more on what you would need of an app Sep 01 06:42:02 right on Sep 01 06:43:23 I'd change my email address if my initials were A.O.L Sep 01 06:43:38 just sent "ping" Sep 01 06:44:36 tophyr: got it :) Sep 01 06:45:13 ron_frown: well I'm Finnish and AOL was never here so it doesn't bother me :) I'm familiar with the company though Sep 01 06:47:14 fair enough Sep 01 06:47:52 lasserix - just a way to handle distributed indexing Sep 01 06:48:12 you could pull nodes offline and not necessarily be without data Sep 01 06:48:52 I mean some of the current nosql db's have some of that built in Sep 01 06:48:58 but done differently Sep 01 06:49:11 casanda used to have 3node data distribution Sep 01 06:49:27 which could be and is problematic when you lose connectivity to a datacenter Sep 01 06:49:39 and you've undoubtedly seen that if your even a moderate facebook user Sep 01 07:29:13 godmorgon Sep 01 07:53:53 I have created one HOME Application, I was able to get all application list also I was able to launch another application, I have used GridView. But when I exit launched application, it doesnt show applications. Sep 01 07:54:11 god damn I could seriosuly wake my entire house up wiht my printer Sep 01 07:54:21 warming up its sitting there clunking and whirring for 5min Sep 01 07:54:28 Sep 01 07:55:50 my Adapter becomes empty, how can make it persistent so that when I exit from launched application its Adapter remain as it is. Sep 01 08:06:22 harpal save state on onpause? Sep 01 08:21:22 damn, apple is asking for even more devices to be banned, including the GN Sep 01 08:21:30 they can go fuck themselves Sep 01 08:21:54 its because google is suing them to block out all ios devices in the US Sep 01 08:21:55 haha Sep 01 08:22:05 oh christ Sep 01 08:22:10 MAD Sep 01 08:22:50 it will probably never happen, but I would buy everyone drinks if it succeeded Sep 01 08:23:02 I think their patent aquisitions with motorola would likely allow them to do it Sep 01 08:23:04 BUT Sep 01 08:23:09 apple is in bed with everyone Sep 01 08:23:21 surely some judge would rather have her personal iphone than uphold the law Sep 01 08:23:57 our govt doesnt appear to be all THAT different from that of the russians Sep 01 08:24:09 shits super corrupt, its just more obvious over there =) Sep 01 08:25:17 i bet you're right ron_frown Sep 01 08:26:00 honestly all you have to do is look at mpaa / riaa legislation and its immediately obvious that any law maker can be bought Sep 01 08:26:11 shits been voted down like 50 times, and yet lawmakers still try and put it forth Sep 01 08:26:33 yeah … Sep 01 08:37:09 ron_frown: along those lines … here in AZ … they have awarded another contract for private prison (1000 + 1000 beds) despite the fact that crime is down in the valley, and there is a vacancy of 2000 beds already. The contracted was awarded to CCA, who employed Chuck Coughlin, who is a confidant of our Mayor Janet Brewer Sep 01 08:37:21 i'm sure they will find a way to fill those beds :| Sep 01 08:38:47 well az has those super controversial show me papers laws still doesnt it? Sep 01 08:39:06 kinda - sb1070 - not sure what parts of that was passed, and what wasn't Sep 01 08:39:08 yup Sep 01 08:40:16 its kinda sad, I think they should make the border crossing a bit more scary, and un-enticing Sep 01 08:40:26 why Sep 01 08:40:31 but at the same time, harassment of what is likely to be regular citizens is Sep 01 08:40:32 I dont know Sep 01 08:40:34 you mean like a haunted house ? :) Sep 01 08:40:38 what did you do to deserve this land any more than the next guy? Sep 01 08:40:50 I make a crapload of cash, and likely support many many many mouths Sep 01 08:41:01 but I am for less govt involvement Sep 01 08:41:20 oh cause you don't work for low wage without social security and healthcare your more entitled than someone who will risk their life to come here and get treated like shit for the hope of a little opportunity? Sep 01 08:41:29 sorry, didn't mean to blow up on you Sep 01 08:41:38 i just don't understand the idea of "its ours not theirs" Sep 01 08:42:04 well, natives here in AZ are not whites or mexicans, they are … natives americans :) Sep 01 08:42:06 thats the problem, there are legal routes to employment and citizenships (although I know they have low emmigration limits) Sep 01 08:42:11 look out how europeans acquired this land in the first place, and now we sit around feeling self entitled Sep 01 08:42:32 hey thats how it works... hate to say it, but europeans stole it from someone who stole it from someone else Sep 01 08:42:50 i don't think the natives stole it. hence the name native. Sep 01 08:43:09 they walked across the land bridge from asia when it existed and no one else was here yet Sep 01 08:43:20 hispanics are not descendents of native americans or native peoples of middle and south america Sep 01 08:43:31 either way, they didn't feel entitled. they were more than willing to share, and then got shoved into territories Sep 01 08:43:39 they are descendents of spainards who basically wiped out civilizations over greed =) Sep 01 08:43:53 hispanics are descendents of both Sep 01 08:44:02 I think some are, not all Sep 01 08:44:05 true Sep 01 08:44:34 anyway, besides the point, I was actually arguing that we as americans should be more humanitarian than to expect people to carry papers, and be questioned/harassed at any moment Sep 01 08:44:52 but either way, my point is, why should one group or ethnicity o anything be more entiteld than the next? i know "its just the way it is" but i mean shit, i don't care who comes here; it's not like hte people born here are all outstanding characters and they are diminishing any quality Sep 01 08:44:56 I live in cali, and god knows we have more than our fair share of illegals Sep 01 08:45:10 Does anyone know how to make a button's text continue on multiple lines instead of stretch the button to fit the text? Sep 01 08:45:15 Preferably in code rather than xml Sep 01 08:45:38 put a line feed in the text? Sep 01 08:45:45 dangit RazielZ i do but i can't remember off the top of my head Sep 01 08:45:56 I know you can set a height/width to prevent from growing, but I think the text just gets clipepd Sep 01 08:46:31 I can't put a linefeed since the text is dynamic and I don't know how much will fit on different devices Sep 01 08:46:46 well button inherits from TextView Sep 01 08:46:46 Hmm Sep 01 08:46:57 I do set minimum width and height, I'll set the max to the same Sep 01 08:47:06 Since I want the button to be exactly that size in all cases Sep 01 08:47:09 so it seems like its likely that if you can do it with a regular textview Sep 01 08:47:20 you can do it with a button Sep 01 08:48:08 Setting max width worked Sep 01 08:48:23 Some of them go on new lines in not-so-pretty ways (in the middle of a word) but at least it works Sep 01 08:49:45 Only happens with the ones that, well, simply don't fit like that Sep 01 08:50:14 dynamically setting buttons, hmm Sep 01 08:50:17 Uuuh, how do I set gravity to bottom AND center_horizontal? Sep 01 08:50:24 | Sep 01 08:50:49 gravity="bottom|center_horizontal" in xml Sep 01 08:50:57 Yay, that worked Sep 01 08:51:03 heroButtons.get(i).setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL); Sep 01 08:51:06 Like that Sep 01 08:51:47 are you asking or saying Sep 01 08:51:56 Saying it worked in code like that Sep 01 08:52:04 cool Sep 01 08:52:18 thats curious Sep 01 08:52:37 Why? Sep 01 08:54:26 well it's two values separated by a pipe Sep 01 08:54:33 didn't think java would be cool with that Sep 01 08:56:02 Apparently it is :D Sep 01 08:56:04 Good to know! Sep 01 08:57:24 never seen that used n syntax before Sep 01 08:59:09 hmm "Specifically, in C and other languages following C syntax conventions, such as C++, Perl, Java and C#, (a | b) denotes a bitwise or; whilst a double vertical bar (a || b) denotes a (short-circuited) logical or." Sep 01 08:59:38 i guess because they are integer constants it works out. Sep 01 09:11:47 heh Sep 01 09:11:52 it wouldn't work out if you used || :P Sep 01 09:12:06 nod Sep 01 09:19:07 hi, how can i check at the start of an activity if a in-app billing item has been bought? Sep 01 09:23:59 Hmmm, is there any way to add a semi-transparent background to the text of a button if that button has a background drawable set? Sep 01 09:24:10 And the text background should only be behind, well, the text. Sep 01 09:46:06 howdy Sep 01 09:49:10 you know, i bought the most recent deus ex, foolishly, for 35 bucks shortly after it came out Sep 01 09:49:16 then never played it Sep 01 09:49:22 and suddenly it was like 5 bucks some months later Sep 01 09:49:25 shouldve waited Sep 01 09:50:14 RazielZ: sounds like you want this http://developer.android.com/reference/android/text/style/MaskFilterSpan.html Sep 01 09:50:26 Oooh Sep 01 09:50:34 I was trying to get it to work with setShadowLayer Sep 01 09:50:37 But it's not doing anything Sep 01 09:52:25 RazielZ: what are you trying to do? add a drop shadow to text or something? Sep 01 09:52:50 Well I'm trying to add a transparent background to the text. But it's not adding a drop shadow or a background or anything at all. Sep 01 09:53:22 sounds like its another issue Sep 01 09:53:33 thats causing your problem Sep 01 09:53:36 Basically I have a button with a backgrounddrawable set, and I want a transparent background behind the text, between the text and the image on the button Sep 01 09:53:36 Hmm Sep 01 09:53:52 At the moment I removed the backgrounddrawable but it still doesn't do anything Sep 01 09:53:58 you know the easiest way Sep 01 09:54:05 create a layered drawable Sep 01 09:54:10 and set it as the background Sep 01 09:54:14 this can be done in xml also Sep 01 09:54:26 I can't use xml because both the image and the text on the button are dynamic Sep 01 09:54:29 Hmm Sep 01 09:54:40 well you can do it in code Sep 01 09:54:44 unless you want something that is exactly sized to the text Sep 01 09:54:44 How would I do a layered drwawable? Sep 01 09:55:06 Well, sized to the text is the point, pretty much Sep 01 09:55:27 http://developer.android.com/reference/android/graphics/drawable/LayerDrawable.html Sep 01 09:55:39 no, i mean if you want something that surrounds the text exactly Sep 01 09:55:45 like a drop shadow Sep 01 09:55:53 then your processing has to be done inline with text Sep 01 09:56:20 Ah Sep 01 09:56:28 No, I want, like, a rectangle behind the text Sep 01 09:56:48 but you want that rectangle to change to the size of the text? Sep 01 09:56:57 can you upload a pic of what you are trying to do Sep 01 09:57:04 like a rough example Sep 01 09:57:30 http://developer.android.com/reference/android/text/style/BackgroundColorSpan.html Sep 01 09:57:33 Sure, sec Sep 01 09:57:34 could be another option Sep 01 09:59:55 http://filesmelt.com/dl/Screenshot_2012-09-01-12-58-55.png Sep 01 10:01:04 I think a layerdrawwable would work Sep 01 10:01:13 Could change it to imagebutton as well Sep 01 10:01:21 imagebutton then textview with background Sep 01 10:02:40 RazielZ: should you just use a framelayout with a textview inside Sep 01 10:02:56 RazielZ: any view can be clickable you know Sep 01 10:02:57 ;) Sep 01 10:03:16 Ah, so use a framelayout with an image and a textview and an onclickevent? Sep 01 10:07:23 whatr you tryin to do Sep 01 10:07:58 Well, see the screenshot above? Sep 01 10:08:05 Trying to get a semi-transparent background behind the text Sep 01 10:08:10 ah Sep 01 10:08:22 Those are buttons with backgrounddrawable Sep 01 10:08:37 ah Sep 01 10:09:01 coudl just use a layered drawable as the background Sep 01 10:09:27 making a game? the color in those little icons is nice Sep 01 10:09:38 It's a Herodex for a game (HoN) Sep 01 10:09:43 Shows info about the heroes and stuff Sep 01 10:09:58 ah ok Sep 01 10:10:00 So a layereddrawable that would contain, uh Sep 01 10:10:41 the image, and another layer with an alpha value Sep 01 10:10:54 But how am I gonna get that other layer right behind the text? Sep 01 10:11:06 or oh, do you only wanti t behind the text, not over the hole thing? Sep 01 10:11:07 The text is different size for every button and a few extend on two lines Sep 01 10:11:10 Yeah Sep 01 10:11:14 ah Sep 01 10:13:44 Hmmm Sep 01 10:13:46 So any ideas for that? :D Sep 01 10:22:57 puttin some thought on it Sep 01 10:23:46 Sure Sep 01 10:23:48 No rush :D Sep 01 10:23:55 framelayout as mentiend may be the way to go Sep 01 10:24:08 TextView with a background as a translucent drawable Sep 01 10:24:22 So a framelayout with an imageview and a textview on top? Sep 01 10:24:26 And an onclickevent Sep 01 10:24:52 then sounds about right Sep 01 10:25:23 pretty sure yuo can set an onclick for the layout as a whole Sep 01 10:26:18 Nice Sep 01 10:28:11 let me check that Sep 01 10:29:28 "You have to set layout attribute android:clickable = true from xml or setClickable(true) from code" Sep 01 10:30:20 Ah, easy enough Sep 01 10:30:25 you also want focusable Sep 01 10:30:40 android:focusable = true Sep 01 10:31:05 RazielZ: pastebin your layout code for each display item here.. your framelayout and its content Sep 01 10:31:21 Didn't make the framelayout yet Sep 01 10:37:06 Don't need an imageview apparently Sep 01 10:37:16 Since setbackgrounddrawable works on framelayout Sep 01 10:37:21 Clickable works as well Sep 01 10:37:26 Gonna code the textviews now Sep 01 10:39:33 cool Sep 01 10:40:40 RazielZ: what device is that screenshot from? Sep 01 10:40:48 Galaxy Nexus Sep 01 10:40:57 With AOKP JB build 1 Sep 01 10:41:17 weird, the soft buttons at the bottom look really small compared to the action-bar Sep 01 10:41:52 Yeah, the soft buttons are smaller than default Sep 01 10:41:55 AOKP lets you change their size Sep 01 10:42:14 More screen space :D Sep 01 10:44:31 RazielZ: something like this should do it: http://pastebin.com/Gmaty9tT Sep 01 10:45:06 Yep Sep 01 10:45:26 Gonna do that in code and set gravity to both horiz center and bottom and that's about it Sep 01 10:53:23 Hmm Sep 01 10:53:37 For some reason gravity.BOTTOM doesn't work on it, but center horiz does Sep 01 10:53:55 oh Sep 01 10:53:57 layout_gravity Sep 01 10:54:20 Uuuh Sep 01 10:54:46 Gotta use layoutparams in code for that Sep 01 11:02:09 It's working fine :D Sep 01 11:02:11 Thanks guys Sep 01 12:07:55 Hello, how do i load a page and do javascript commands on it without actually showing the page to the user? i know there is a visibility gone option, but i mean like no view should be created for this Sep 01 14:24:01 Does anyone have any recommendations on books or resources regarding building an intuitive UI/workflow in a mobile app? most of the resources I find are related to building web sites for mobile. Now that my game is complete, I'd like to focus on building a good UI for new users. Sep 01 14:42:50 Hello, how can I rotate the screen programatically when I'm entring a new fragment ? Sep 01 14:45:53 http://developer.android.com/reference/android/app/Activity.html#setRequestedOrientation%28int%29 Sep 01 15:24:31 Question: I want to build a game for android, but I'm going to build it first for web. Trying to figure out this: http://developer.android.com/guide/practices/screens_support.html Sep 01 15:25:38 What width / height am I looking at maximum for android phones? Sep 01 15:26:27 in pixels. I know they use dps, and I don't understand dps. From what I read it sounds like it's a calculated variable to make stuff appear proportionate on the screen relative to the device's dimensions. Sep 01 15:27:04 Anyone have experience with the mediaplayer crashing on some devices when it draws on a surfaceview outside the screen ? Sep 01 15:29:02 azdin: android uses dip, display independent pixels Sep 01 15:29:16 k... Sep 01 15:29:28 they are indeed independent of physical resolution, as i understand it Sep 01 15:29:34 so confusing Sep 01 15:29:52 What would be good dimensions then for a web game I eventually want to port to android? Sep 01 15:30:08 no Sep 01 15:30:10 it has to stretch Sep 01 15:30:12 scale Sep 01 15:30:17 there are no "fixed dimensions" Sep 01 15:30:22 that's hard to say Sep 01 15:30:56 Anything can be resized, I just need to know what to work with for "maximums" ensuring the best quality Sep 01 15:31:04 there are no maximums Sep 01 15:31:25 i have a 55 inch 1920x1080 android device Sep 01 15:32:05 k, so I'm looking at going for 2000+ pixels in resolution Sep 01 15:32:10 gotcha. thanks Sep 01 15:32:18 that's not the point Sep 01 15:32:23 lol Sep 01 15:32:27 The point is that android comes in every size imagineable Sep 01 15:32:45 Yup, I know, and when I get to porting my stuff to android, I'll make it work somehow Sep 01 15:33:11 Would suck if someone saw a cheap piece of crap 20x20 pixel enlarged sprite wouldn't it? Sep 01 15:33:18 Working in 1920x1080 resolution on a 320x480 device doesn't make sense Sep 01 15:33:33 Well which is standard to phones? Sep 01 15:33:38 I said phones specifically Sep 01 15:33:41 There is no standard Sep 01 15:33:48 that's still a problem Sep 01 15:33:52 Galaxy Nexus then Sep 01 15:33:57 because a lot of phones have hi-res displays Sep 01 15:34:00 hm Sep 01 15:34:15 i don't know, whatever the nexus' resolution is then Sep 01 15:34:15 Really is a braindead simple question here. lol Sep 01 15:34:15 iv seen a watch with android too Sep 01 15:34:21 You guys are overcomplicating what I'm getting at Sep 01 15:34:22 it's really not a simple question Sep 01 15:34:32 your entire question represents a fundamental lack of understanding of android development Sep 01 15:34:35 there is no answer Sep 01 15:34:39 because the question is invalid Sep 01 15:34:39 trufax ^ Sep 01 15:34:57 it is tho: I want to design a game, going to build it for web first, what resolution should I work with that would be more easily portable to android phones? Sep 01 15:35:14 Doesn't even have to be an exact resolution, just a ballpark figure would do Sep 01 15:35:20 azdin: phones with the same physical display dimensions often have varying pixel densities and resolutions Sep 01 15:35:26 I know this Sep 01 15:35:30 i'd personally go 1280x800 Sep 01 15:35:34 or somewhere in that area Sep 01 15:35:35 if you work with ANY SET RESOLUTION Sep 01 15:35:37 Thank you. Sep 01 15:35:37 it will not be easy to port Sep 01 15:35:41 yeah Sep 01 15:35:51 i would work on making your web game resolution independent Sep 01 15:36:09 Anything can be resized, as I said Sep 01 15:36:14 ;D Sep 01 15:36:21 That... wasn't a joke either, just... Sep 01 15:36:28 firefox, chrome, and maybe IE offer information about a user's physical display as well as the size of the browser window's viewable area Sep 01 15:36:28 that was a serious statement Sep 01 15:36:42 so use that info to make your game scalable Sep 01 15:37:02 and make several sets of appropriately-scaled visual resources Sep 01 15:37:11 or use vector graphics Sep 01 15:37:17 that makes it a lot easier Sep 01 15:37:30 if you work with a specific resolution and just resize on android, you're gonna have a bad time Sep 01 15:37:34 Or well, your users are Sep 01 15:37:58 yeah Sep 01 15:38:04 there are a lot of games that do this Sep 01 15:38:09 and they look butt ugly Sep 01 15:38:51 azdin: honestly, android makes it (relatively) easy to make your apps resolution independent Sep 01 15:38:59 so work with that in mind Sep 01 15:39:14 there are webgl/canvas frameworks that do the same Sep 01 15:40:13 The game idea is so incredibly simple, I would literally have to try hard to make it not work for any resolution Sep 01 15:40:45 that's what you think at first ;) Sep 01 15:40:49 But, things like UI need to be balanced. Sep 01 15:40:49 it's never quite so easy Sep 01 16:06:01 speakingcode its more than two values separated by a pipe, its or'ing int values together Sep 01 16:06:06 I know that was hours ago Sep 01 16:12:30 Is there a way from stopping the mediaplayer from drawing on the surfaceview that is outside the bounds of my screen ? Sep 01 16:30:04 hallå Sep 01 17:05:04 ron_frown yeah, looked it up, saw it was a bitwise or, hadn't done any bit operations like that in java in a long time Sep 01 17:10:26 Hello, how can I rotate the screen programatically when I'm entring a new fragment ? Sep 01 17:11:28 it's all in the wrist Sep 01 17:19:33 server split? Sep 01 17:30:47 I have a t-mo sim with data only in a rooted Android device running AOSP, at some point it seems like t-mo decided to leave me a voicemail, either about my bill or some marketing thing. Sep 01 17:31:14 When they do this it seems like they generally dump the voicemail into the voicemail box, instead of attemping to call the number. Sep 01 17:31:40 On my data sim card, I have no way of sending/reciving calls. Sep 01 17:32:09 I've now had this blasted voicemail notification for the past month and can't get it to go away since I can't call 123 to check my voicemail. Sep 01 17:32:45 Is there anything I can tickle in Android to simply not poll for voicemails through the carrier, or not display notifications? Sep 01 17:42:59 rubin110 Sep 01 17:43:03 http://www.askmefast.com/How_to_disable_voicemail_notification_on_droid-qna167341.html Sep 01 17:57:18 speakingcode: That link is totally useless and pretty spammy. Sep 01 17:58:28 scroll down and the solution is there Sep 01 17:58:47 menu - settings- call - voicemail options, top rated answer Sep 01 17:59:31 That option hasn't existed since Android 2.x. Sep 01 18:00:01 If even that. Sep 01 18:00:53 i see it on mine Sep 01 18:13:58 JakeWharton: are you here ? Sep 01 18:14:06 test Sep 01 18:25:48 how can i have more active installs than downloads? Sep 01 18:26:15 does pirated copies get counted somehow? Sep 01 18:26:54 im talking about the publisher stats Sep 01 18:28:05 hmm Sep 01 18:28:09 peoples with more than one device? Sep 01 18:28:22 are you looking at device installs or user installs? Sep 01 18:29:10 ah, active device installs Sep 01 18:29:13 that explains it i guess Sep 01 18:31:10 is the android api reference butt-ugly for anyone else? Sep 01 18:31:32 http://screencast.com/t/wvxLvp5z9o Sep 01 18:39:06 yeah ever since they refaced it to look like ice cream sandwich Sep 01 18:39:16 the nav menu bugs out like woah Sep 01 18:39:59 sweet browser bookmarks Sep 01 18:49:35 whatcha doin with kalman filtering Sep 01 18:50:11 neoakira: briefly Sep 01 18:50:25 getting rid of high frequencies I would guess Sep 01 18:50:40 ? Sep 01 18:51:16 JakeWharton: https://www.dropbox.com/s/m4oj2l0e6fa3f95/device-2012-09-01-200022.png && https://www.dropbox.com/s/bi98ckoqerug6vs/device-2012-09-01-201538.png Sep 01 18:51:34 look this Two screenshot on gingerbread and jelly bean Sep 01 18:51:54 this is the same application on the two device Sep 01 18:52:17 do you see the problem ? Sep 01 18:53:18 i see that your layout isn't scaling properly Sep 01 18:53:31 the spinner listview is too long Sep 01 18:53:48 on ICS too Sep 01 18:53:56 but it's work fine on honeycomb Sep 01 18:53:58 sam kalman filtering isn't for getting rido f high frequencies, you would use a low pass filter for that. kalman is for combining mixed sources of noisy measurements/values with a known uncertainty into a single measurement of higher precision Sep 01 18:54:14 well that's the native action bar on ICS and up Sep 01 18:54:21 so whatever the problem is, it's not ABS Sep 01 18:54:39 never seen something like that though Sep 01 18:54:50 You should make sure to introduce the same issue in ABS Sep 01 18:55:03 ok Sep 01 18:56:19 there is no problem if I remove my 2dp separator view Sep 01 18:57:17 i don't think it's set up to measure different sizes views in the dropdown Sep 01 18:57:38 It's done in gmail application Sep 01 18:59:02 Maybe they use a custom view Sep 01 20:16:38 anyone here using leveldb with android from java? seems like there are still no official JNI bindings ? Sep 01 20:23:33 Can anyone tell me why I'm getting [Accessibility] Missing contentDescription attribute on image even though I do have android:contentDescription attribute as seen in main.xml pastebin: http://pastebin.com/Kk0xrGWN Sep 01 20:23:51 Hi everyone, please, can someone tell me what it takes if i want to publish PAID application to google play ? Sep 01 20:45:11 g00s: not using but I've been curious about it. There's no JNI bindings in their source tree. Are you using any of the 3rd party jni projects? Sep 01 20:45:52 mr6: there is at least one unofficial project, but last i checked it required patches to leveldb, which i dont like so much Sep 01 20:46:31 kinda funny its easier to use leveldb on iOS than android :P Sep 01 20:48:26 heh yeah good point Sep 01 20:48:35 hey guys, i'm loading an image off the internal filesystem into an existing imageview by changing the imageview.setImageDrawable, and i'm losing the layout params for gravity. Sep 01 20:48:54 g00s: someone did a pure java impl too Sep 01 20:49:02 yeeaaahhh ... Sep 01 20:49:06 is this not the right way to load programatically? Sep 01 20:50:50 g00s: heh yeah, he claims it comes 'within 10% of performance' Sep 01 21:18:39 what is the verdict on actionbar drawers? Sep 01 21:19:21 mentioned in the dev guidelines; i don't have any apps that use it (that i can tell) - don't see a standard implementation Sep 01 21:20:04 hi all Sep 01 21:23:48 mr6: re leveldb, they just wanted to stay consistent Sep 01 21:29:05 mh`: nicely done Sep 01 21:40:33 Anyone have any experience with SL4A or AIDE? Sep 01 21:41:11 Or any knowledge of accessing controlling aapt parts via Java ? Sep 01 21:42:05 My objective is to build a 'helloworld' apk , on device, using source on SDCard, from my own application Sep 01 21:42:59 or rather, build the APK onto the SDcard, using source, that is also on sdcard Sep 01 21:51:02 ppl have AIDE make me so sad Sep 01 21:51:08 i donate Sep 01 21:52:53 Does anyone have any experience with Notification.Builder class from ICS ? Sep 01 22:59:52 In a preference activity, how can I pre-populate a preference (i.e. EditTextPreference)? I'd like to avoid casting a preference to a sub type of preference and then handling it that way. I thought that this method: http://developer.android.com/reference/android/preference/Preference.html#setDefaultValue(java.lang.Object) could accomplish this, but it doesn't. Sep 02 00:45:55 Hey, I'm working on a project with a partner and I want us to both be able to export release versions of the application, how do I give him the private key? Sep 02 00:55:45 Ankhwatcher: copy the keystore file on to a flash drive, hand it to him, tell him the passphrase Sep 02 00:57:48 so there's no way to give him the key without the keystore? Sep 02 01:02:40 A key needs to be in a keystore.. Sep 02 01:02:48 I think Sep 02 01:03:13 You can probably make a new keystore for it if you have more than just the one in it Sep 02 01:05:51 Ankhwatcher: there may be a way to export it from the keystore if like SimonVT says you have more than one, try running 'jartool -h' to see Sep 02 01:05:56 err sorry keytool Sep 02 01:06:05 Hi i am building an mp3 player using MediaPlayer, how to get the data of an mp3 file? I mean for example the stock player knows the name of the song, singer and album without needing me to put these information. Plus almost every mp3 file has a picture associated with it. Sep 02 01:19:17 daniel110: it's almost as if you didn't even search the API docs... Sep 02 01:23:50 I just found out that I have 8 months til I can upgrade my droid2 (it's OS is 2.3.6). where can I find either a virtual android machine for eclipse (running ubuntu) or something that can allow me to install a later version? Sep 02 01:25:02 You mean like an emulator? Sep 02 01:25:07 Like the one in the sdk? Sep 02 01:34:33 Anybody happen to know which drawable is dark background with diagonal gray lines in holo? Sep 02 01:34:56 oO Sep 02 01:38:08 Good evening or good morning where ever you may be Sep 02 01:59:49 notify_panel_notification_icon_bg.png << found it Sep 02 02:14:37 Well as i understand if I am using a custom surfaceview and drawing a bitmap on a canvas, and i want to change the bitmap when the screen is touched, i would have to call invalidate(). but when i touch the screen nothing happends, heres the kicker, if i switch to a different app and go back the bitmap is changed. so i know that i'm calling ontouch() properlly(also using log tags). is there any reason why invalid Sep 02 02:14:37 ate() is not working? Sep 02 02:33:21 http://shaunew.github.com/Pac-Man/ Sep 02 02:33:22 XD **** ENDING LOGGING AT Sun Sep 02 02:59:59 2012