**** BEGIN LOGGING AT Fri Feb 03 02:59:57 2012 Feb 03 03:07:59 dammit lte is flaky right now Feb 03 03:11:14 wash it with head & shoulders Feb 03 03:12:13 can't establish new connection s Feb 03 03:12:27 try match.com Feb 03 03:12:38 clever Feb 03 03:13:01 thanks for the looper tips by the way Feb 03 03:13:07 i won't get to experiment for a couple days Feb 03 03:13:17 but, of course, shit's always on my mind about what i'm working on next Feb 03 03:14:36 is there a page where i can download the android source directly? Feb 03 03:15:39 no Feb 03 03:15:42 no, use repo Feb 03 03:15:51 s.android.com Feb 03 03:16:31 r.android.com needs to come back Feb 03 03:16:48 can't type (or remember) the new URL Feb 03 03:17:28 oh the gerrit server? Feb 03 03:18:44 yeah Feb 03 03:18:49 i have it bookmarked at work Feb 03 03:18:54 but i like the little short-urls Feb 03 03:19:31 maybe i'll go in the G+ hangout next week and suggest it Feb 03 03:20:17 ive got romain's 'ad' android search addon installed, so it's 'ad foo' to search d.android.com Feb 03 03:21:28 I could see having 'as' and 'ag' (search source, search gerrit reviews) Feb 03 03:22:40 actually I think I'm gonna pull the source tree and put them up in a cross-reference html format, sick of not being able to reference/link to directly Feb 03 03:23:15 a couple cron jobs should keep it up to date nicely Feb 03 03:23:38 repo it's giving me issues, is it supposed to work on linux, it seems it should Feb 03 03:23:38 and just let google to the indexing ;-) Feb 03 03:23:51 of course it does, what's your issue? Feb 03 03:23:53 konam, it works great Feb 03 03:24:20 put it in your path, make a folder, repo init http://..., repo sync, wait 5 hours Feb 03 03:24:20 * mrenouf is already procrastinating from doing real work Feb 03 03:24:31 haha Feb 03 03:24:34 its not THAT bad Feb 03 03:24:46 maybe not for you on that fat Google pipe Feb 03 03:25:22 I should really get the source one of these days Feb 03 03:25:25 I'm home right now on my lowly 10Mbit Feb 03 03:25:42 I wish we hd a lowly 10Mbit -_- Feb 03 03:25:50 its time to build an empire Feb 03 03:25:58 Age of Empires? Feb 03 03:26:03 * p_l technically sits on 54MBit, but that's pipe dream to actually work Feb 03 03:26:04 no empire of ages Feb 03 03:26:22 54mb? Feb 03 03:26:25 why so slow Feb 03 03:26:29 my work has a worse connection than my house Feb 03 03:26:31 it's sad Feb 03 03:26:31 oh nm Feb 03 03:26:39 fat google pipe? Feb 03 03:26:46 ya i have a crappy internet connection too Feb 03 03:26:52 t0mless, thats been my new metric for filtering out sketchy jobs Feb 03 03:26:56 xbp: wifi :P Feb 03 03:27:18 :P my wifi router is a POS Feb 03 03:27:24 if you can, go near a Google office and sync off the GoogleGuest wifi ;-) Feb 03 03:27:32 what's the username/passwd Feb 03 03:27:40 it routes right into the same backbone Feb 03 03:27:45 nice Feb 03 03:27:47 mrenouf, work at google or something? Feb 03 03:27:49 filters on it? Feb 03 03:27:59 nah, it's open Feb 03 03:28:04 mrenouf : hangin out late on google campus Feb 03 03:28:05 *nod* Feb 03 03:28:09 right right. Feb 03 03:28:14 * mrenouf is @Home Feb 03 03:28:18 * p_l hopefully will work at one ;) Feb 03 03:28:25 I'm across the street from the main google campus, not quite close enough to hijack google's wifi Feb 03 03:28:28 Home as in att home? Feb 03 03:28:29 but work internet is decently fast Feb 03 03:28:32 h0h0 Feb 03 03:28:42 my work internet is slow, i live and work on the oregon coast. Feb 03 03:28:43 I guess if I walk down charleston I could Feb 03 03:28:50 I thought google privided wifi for all of mountain view Feb 03 03:28:54 oh? I will be there 1st week of March for a few days Feb 03 03:28:57 we have corrosive issues here. IT's hard to bring a t1 farther than about 5 miles with repeaters Feb 03 03:29:08 mrenouf, orientation or something? Feb 03 03:29:12 mrenouf, hook me up with some free lunch :) Feb 03 03:29:26 sure Feb 03 03:29:26 ballers. bbl Feb 03 03:29:38 they make it such a pita to tailgate in for free lunch now ;-) Feb 03 03:29:42 some training some collaborating Feb 03 03:29:53 pfn :-P dont do that Feb 03 03:29:56 xbp: use fiber then Feb 03 03:30:18 heh Feb 03 03:31:57 mrenouf, did it once for fun, just to do it, a few years back... Feb 03 03:32:01 i get pissed when people don't check GitHub religiously like I do and neglect my pull requests Feb 03 03:32:06 we dont have fiber, i'd like to setup fsona buoys Feb 03 03:32:12 JakeWharton, they get email notifications... Feb 03 03:32:14 ya hurrrd :) Feb 03 03:32:24 JakeWharton, they just don't /want/ your pull requests ;-) Feb 03 03:32:38 but... but... Feb 03 03:32:44 they dont want to seem desperate Feb 03 03:32:48 so they wait a few days Feb 03 03:32:48 it's not my fault their code is wrong! Feb 03 03:33:14 people need to send me some pull requests for my stuff... meh, I want some contributions, damnit Feb 03 03:33:27 i get tons of issues, very few pull requests Feb 03 03:33:34 indeed Feb 03 03:33:58 I remember the first time someone sent me a patch for something I wrote. I was like. *Acheivement Unlocked: get others to fix code for me* Feb 03 03:34:12 haha Feb 03 03:34:13 but it was like the best day ever Feb 03 03:34:18 it is a good feeling Feb 03 03:34:29 (HINT HINT) Feb 03 03:34:40 lol Feb 03 03:34:42 but even more just hte people so send a note saying, hey thanks for making this it was just what I needed Feb 03 03:34:56 as long as they dont also beg for new features Feb 03 03:35:14 heh Feb 03 03:35:24 * pfn has gotten occasional patches Feb 03 03:35:26 very rarely Feb 03 03:35:43 and didn't come in the form of a pull request Feb 03 03:36:02 well, I got a pull request this morning, though... but it was because I forgot to git push last night :-/ Feb 03 03:36:03 once I climb back out from under this pile of work I'll have some time to really experiment with ABS, etc. But time critical right now so I can't risk delays :-( Feb 03 03:36:33 (update extension to flag as working on firefox 10) Feb 03 03:36:47 stupid 6 week release cycle Feb 03 03:36:52 FF10 !? Feb 03 03:36:55 wtf? Feb 03 03:37:03 Last I heard it was 4 Feb 03 03:37:17 version numbers are arbitrary now Feb 03 03:37:27 I asked this guy to write me a site where people can add each other as friends and you could see their relationship status. Guy never delivered and kept it for himself. Feb 03 03:37:27 they're on a 6 week release cycle which they just recently slowed to like 10 or something Feb 03 03:37:28 they bump the version # every 6 weeks now Feb 03 03:37:30 they're just jealous of Chrome 16 Feb 03 03:37:37 mrenouf, and yes, they are Feb 03 03:37:46 rgravener, that site just IPO'd, go sue Feb 03 03:37:50 so they need to make their # > than crhome Feb 03 03:38:20 pretty much Feb 03 03:38:21 it's annoying having to bump a non-amo hosted extension every 6 weeks Feb 03 03:38:31 I guess I should set it to be some infinitely high version number Feb 03 03:38:48 works on Chrome 1e100 Feb 03 03:38:56 er, FF Feb 03 03:38:57 * pfn has a chrome extension, too Feb 03 03:38:58 it needs love Feb 03 03:38:59 heh Feb 03 03:39:13 https://chrome.google.com/webstore/detail/ompiailgknfdndiefoaoiligalphfdae Feb 03 03:40:14 * pfn wonders how legitimate the # of users is Feb 03 03:41:10 and not to mention, the same extension on firefox only has 1977 users, according to amo Feb 03 03:42:11 ( rgravener ): I found another usb3.0 hd deal Feb 03 03:43:13 t0mless: cool Feb 03 03:43:18 i wish menu creation could be done in a more straightforward manner Feb 03 03:43:25 than? Feb 03 03:43:45 firing an invalidation and updating the Menu in a callback Feb 03 03:43:47 129$ at staples I think, but then there is a 20$ off coupon Feb 03 03:44:02 if you're still looking for a HD Feb 03 03:44:18 I am Feb 03 03:44:37 JakeWharton, you mean updating the actionbar menus Feb 03 03:44:39 indeed... Feb 03 03:45:08 i want to be able to do getWindow().getMenu(Window.FEATURE_OPTIONS_MENU) and get a Menu instance that I can update directly Feb 03 03:45:11 rgravener let me find the links Feb 03 03:46:13 I guess I could hold the Menu instance from the first onCreate firing Feb 03 03:46:27 and then update that synchronously Feb 03 03:46:35 hmmm.... Feb 03 03:46:54 man Feb 03 03:46:59 so glad to be rid of apache http client Feb 03 03:47:06 the native shit is so much better Feb 03 03:47:12 you mean URLConnection? Feb 03 03:47:16 it's very simple to use Feb 03 03:48:09 I was using http client, and something about how it was sending up parameters that caused my app server to throw 500 error Feb 03 03:48:10 which is fine Feb 03 03:48:28 but the connection would crap out at an os level Feb 03 03:48:36 never get a response per say Feb 03 03:48:42 just eventual socket exception at os level Feb 03 03:48:50 how odd Feb 03 03:49:02 it was def a niche case Feb 03 03:49:05 I doubt it failed at an "os level" Feb 03 03:49:15 pfn it did Feb 03 03:49:25 ron_frown, plug in ddms Feb 03 03:49:30 look at the thread stack Feb 03 03:49:34 and you'll see what it's blocking on Feb 03 03:49:50 i don't understand the version number associated with the databases on android Feb 03 03:50:03 like what is an example where it is used? Feb 03 03:50:22 how can i check application process name to theme its icon on go launcher ex? go launcher ex requires more than the apk process name for example. mx video player process name=com.mxtech.videoplayer.ad . and go launcher ex requires = com.mxtech.videoplayer.ad.ActivityVideoList it failed with com.luni.whatever the apache java stuff is.OSNetworkSocket.read Feb 03 03:50:34 something like that Feb 03 03:50:37 sileni, the version number is used by your app Feb 03 03:50:41 it wasnt anything to do with com.apache.commons Feb 03 03:50:45 ron_frown, you need to look at the stack before it fails Feb 03 03:50:51 is it for things like im syncing with a database on a server and i can use the version number in my app to see if i need to update the tables or not ? Feb 03 03:50:51 it fails due to timeout, probably Feb 03 03:51:01 sileni, has nothing to do with a server Feb 03 03:51:07 server was sending 500 Feb 03 03:51:10 sileni, it's used to keep track of schema versions when you change the data structure Feb 03 03:51:17 the client NEVER recieved any response Feb 03 03:51:19 not response code Feb 03 03:51:21 ron_frown, right, which http client is failing to parse correctly for some reason Feb 03 03:51:29 ron_frown, so it just fails immediately as the 500 is sent? Feb 03 03:51:37 yes Feb 03 03:51:45 pfn: schema is just all the tables referred together? Feb 03 03:51:47 I am sure its http client fucking up with the raw sockets from the os Feb 03 03:52:01 http client doesn't work with "raw" sockets from the OS Feb 03 03:52:16 pfn: if so do i need to take care of changing the version number or does android do it ? Feb 03 03:52:19 sileni: schema is how the data is represented, ultimately Feb 03 03:52:30 sileni, you change the version number, and android will call onDatabaseUpgrade Feb 03 03:52:36 sileni, you need to provide a migration path Feb 03 03:53:07 at org.apache.harmony.luni.platform.OSNetworkSystem.createStreamSocketImpl(Native Method) Feb 03 03:53:18 ron_frown, what's the entire stack Feb 03 03:53:22 don't paste a single line at a time Feb 03 03:53:33 I dont have it in front of me Feb 03 03:53:42 where'd that line come from Feb 03 03:54:25 that was the error I was getting... but I grabbed that from stackoverflow Feb 03 03:54:42 http://stackoverflow.com/questions/3791930/android-application-socketexception-permission-denied-no-such-file-or-director Feb 03 03:54:47 it wasnt a permissions issue Feb 03 03:55:02 well, without a full trace, there's nothing to tell Feb 03 03:55:26 well look at that trace Feb 03 03:55:29 thats a permissions problem Feb 03 03:55:36 that's irrelevant to your particular trace Feb 03 03:55:59 its java.net.socket Feb 03 03:56:03 and yes I know Feb 03 03:56:14 you just want to rub my face in something you think I'm wrong about Feb 03 03:56:20 like a dog that shit all over the carpet Feb 03 03:56:35 not my fault you feel that way :p Feb 03 03:57:42 if the exception happens in .createStreamSocket ITS ANDROID Feb 03 03:57:45 * pfn hates blaming random bugs on the system when it isn't conclusively so Feb 03 03:57:51 its not *JUST* apache client Feb 03 03:57:56 * pfn shrugs Feb 03 03:58:10 I dont encounter it with HttpURLConnection Feb 03 03:58:32 then it's an http client problem Feb 03 03:58:49 I think its httpclient bug that causes a problem much lower Feb 03 03:59:10 anyone live in SFO have any leads on places to live? Feb 03 03:59:22 JakeWharton you land something? Feb 03 03:59:25 Square Feb 03 03:59:34 sweet Feb 03 03:59:42 i start in 1 month Feb 03 03:59:47 have to hurry and find somewhere to live Feb 03 04:00:03 whats square Feb 03 04:00:06 JakeWharton, just live in a hotel for a month until you like a particular neighborhood Feb 03 04:00:10 ron_frown, payment processing company Feb 03 04:00:10 http://squareup.com Feb 03 04:00:13 and you've never heard of square? Feb 03 04:00:15 square is awesome :p Feb 03 04:00:19 square up yes Feb 03 04:00:20 how can i get extras from intent on an activity that i have added on intent before starting that activity? Feb 03 04:00:28 but know there are game companies square enix Feb 03 04:00:33 there are shapes that are called squares Feb 03 04:00:42 the site is square up Feb 03 04:00:50 everyone calls 'em square Feb 03 04:01:10 and for that matter, the company is square inc Feb 03 04:01:15 so yes, it's "square" Feb 03 04:01:31 wtf is your deal dude Feb 03 04:01:49 you're a complete fucking cock, and directed soley at me Feb 03 04:01:53 solely Feb 03 04:02:03 ron_frown: relax Feb 03 04:02:08 I'm FUCKING IDIOT BECAUSE I DONT KNOW WHAT SQUARE IS Feb 03 04:02:13 blah Feb 03 04:02:41 you have a serious inferiority problem Feb 03 04:03:11 Yep, you seriously need to relax Feb 03 04:03:13 pfn: you are just fueling it Feb 03 04:03:17 pfn: rofl Feb 03 04:03:24 wow, i can't believe the response you had ron_frown just from that convo Feb 03 04:03:25 lol Feb 03 04:03:38 its like this everywhere Feb 03 04:03:42 im a Qube, its kinda like a square but 3d Feb 03 04:03:45 a legit bug in the framework Feb 03 04:03:51 but I'm automatically wrong Feb 03 04:03:55 no bugs in android whatsoever. Feb 03 04:04:01 QubeZ, you're also plural Feb 03 04:04:02 if it's a legit bug, point out references that support that conclusion Feb 03 04:04:10 file a bug report Feb 03 04:04:11 something Feb 03 04:04:17 JakeWharton: thanks and bad at grammar (Z) Feb 03 04:04:18 just saying it's a bug is rather meaningless Feb 03 04:04:46 well the emphasis ORIGINALLY was that I fixed it using httpurlconnection which actually performed better out of box anyway Feb 03 04:04:54 JakeWharton: have you tried the square product? are they durable? Feb 03 04:05:01 I know httpclient has ridiculous amount of tuning ability Feb 03 04:05:11 i've had my reader since they launched their beta two years ago Feb 03 04:05:21 still works great Feb 03 04:05:34 JakeWharton: wow Feb 03 04:06:17 JakeWharton, you were running it on ios this whole time? Feb 03 04:06:21 sileni, the dongle is free Feb 03 04:06:27 sileni, who cares if it's durable... Feb 03 04:06:31 pfn: oh wow Feb 03 04:06:37 * pfn requested the dongle a few weeks back Feb 03 04:06:48 iOS for like a month or two Feb 03 04:06:49 when I realized that it was finally available on android Feb 03 04:06:51 then I got my Nexus One Feb 03 04:06:54 i'm guessing the software to interact with it is licensed? Feb 03 04:07:01 it's been on Android for a looong time now Feb 03 04:07:04 sileni, free software, you pay a transaction fee Feb 03 04:07:09 JakeWharton, I didn't realize that 'til pretty recently Feb 03 04:07:16 sileni, 2.75% flat rate Feb 03 04:07:19 no minimum Feb 03 04:07:23 no monthly fee Feb 03 04:07:25 dude Feb 03 04:07:26 no other charges Feb 03 04:07:30 sileni, of course, the software isn't open source Feb 03 04:07:32 that is great for small business Feb 03 04:07:37 completely Feb 03 04:07:40 it's so awesome Feb 03 04:07:49 great if you ever want to sell anything /anywhere/ Feb 03 04:07:58 squares reader is not encrypted, should not be hard to reverse engineer ;-) Feb 03 04:08:20 it's basically just a tape deck reader wired to a headphone jack Feb 03 04:08:25 it's a magstripe inductive pickup that translates it into an analog signal Feb 03 04:08:26 right Feb 03 04:08:42 then the software does some dsp to come back out with the original bits Feb 03 04:08:59 very cool little piece of hardware Feb 03 04:09:00 Intuit came out with a competing clone of essentially the same thing] Feb 03 04:09:09 mrenouf: won't you get sued if you do that? i would guess they have all this tech patented? Feb 03 04:09:24 they make a big deal saying, ours is ENCRYPTED. But honestly, I don't really understand the point Feb 03 04:09:28 sileni, there's nothing stopping you from using the reader with another app Feb 03 04:09:41 JakeWharton: oh Feb 03 04:09:44 mrenouf, well, if you can encrypt the transaction info all the way through to the card processor, that's a pretty big advantage Feb 03 04:09:54 that's dumb though Feb 03 04:09:56 i mean, is someone eavesdropping on the headphone jack? Feb 03 04:09:56 mrenouf, especially once you can do away with card numbers on the face of the card Feb 03 04:10:02 i could just memorize your info and enter it manually Feb 03 04:10:10 but encrypted between the reader and the phone?! why Feb 03 04:10:30 I'm assuming BOTH encrypt the card info immediately Feb 03 04:10:36 mrenouf, the wolf cry was that rogue software could steal info Feb 03 04:10:50 rogue software as in unauthorized software interfacing with the card reader Feb 03 04:11:04 sure, it's not worse. and they had to find a way to innovate that couldn't be easily countered Feb 03 04:11:08 e.g. "fake square" and I take a customer's credit card Feb 03 04:11:09 so well done I guess Feb 03 04:11:17 true... true Feb 03 04:11:25 how many people verify the CC readers at any store are legit? Feb 03 04:11:25 pfn, good point Feb 03 04:11:31 of course, that totally discounts the fact that I could memorize the cvv2 and card number Feb 03 04:11:37 there's no reason why that couldn't be done anywhere else Feb 03 04:11:40 outside of the hardware interface Feb 03 04:12:03 so its more like hardware dongle that activates the software, more important than encrypting the card Feb 03 04:12:06 once we can do away with numbers on the card, maybe it'll become a stronger point Feb 03 04:12:11 hell, you hand you CC to waiters and servers and they walk away with it for a few minutes Feb 03 04:12:13 the marketing guy didn't mention that benefit Feb 03 04:12:16 maybe in another 10-20 years the u.s. CC companies will start increasing security too Feb 03 04:12:26 mrenouf, as for encrypting the card, I assume it'd be encrypted through to the processing backend Feb 03 04:12:40 mrenouf, rather than the software on-phone knowing anything about the card info at all Feb 03 04:12:46 I just wave my phone over (not yet existing) NFC terminals everywhere ;-) Feb 03 04:12:46 except last-4 and card owner, probably Feb 03 04:12:56 I've waved my phone over a bunch of nfc terminals Feb 03 04:13:00 none of them worked :-/ Feb 03 04:13:12 the jack in the box by my house has a terminal, but it's not powered... Feb 03 04:13:13 pfn, many countries in europe uses chips on cards and additional online password verifications Feb 03 04:13:22 all the gap stores and old navy's I went to didn't work either Feb 03 04:13:28 CVS, and Mobile (gas station) so far Feb 03 04:13:30 juanez, I've heard Feb 03 04:13:39 chip & pin Feb 03 04:13:53 * pfn is unclear on the security benefit Feb 03 04:13:56 that, and online verification demands you setup a password Feb 03 04:13:58 especially for CNP transactions Feb 03 04:15:04 Where is the p2p payment app for NFC? Seems like Paypal should be up on that Feb 03 04:15:09 pfn, indeed it's useless, once you got the CC#+expdate you can still go shopping in some other part of the world until the fraud detection kicks in Feb 03 04:15:10 :D Feb 03 04:15:19 Like, so I can "beam" you a dollar Feb 03 04:15:27 mrenouf, I think they're totally working on it Feb 03 04:15:31 (and PAypal takes 15 cents) Feb 03 04:15:38 :-P Feb 03 04:15:41 paypal takes like 20c + 2.2% or something Feb 03 04:15:49 guh Feb 03 04:16:11 that's why you select 'Other' Feb 03 04:16:13 JakeWharton: in UK, instead of card readers you get card terminals, and the card itself is part of the signing process iirc Feb 03 04:16:13 no fee Feb 03 04:16:17 I also want to us my phone to board the subway, and rent a zipcar Feb 03 04:17:29 mrenouf, so do I Feb 03 04:17:35 I wish the nfc stuff were more prevalent Feb 03 04:17:54 i wish someone would pay me to hack android shit all day Feb 03 04:18:03 JakeWharton, that's what square's about isn't it Feb 03 04:18:08 with no expectations of me producing any particular thing Feb 03 04:18:59 omgz repo supports colored output finally Feb 03 04:19:02 is anyone familiar with how AndroidAnnotations works? Feb 03 04:19:40 o/ Feb 03 04:19:53 annotation processor Feb 03 04:20:18 what's androidannotations Feb 03 04:20:19 you can basically hook into javac and analyze the source tree and spit out additional sources Feb 03 04:20:30 https://github.com/excilys/androidannotations Feb 03 04:20:44 their repository layout is shit Feb 03 04:20:54 but its a bit lame in that it generates subclasses of your activities, and you must reference those in your manifest Feb 03 04:21:15 is that how it works? Feb 03 04:21:19 yep Feb 03 04:21:27 damn Feb 03 04:21:28 I hate codegen still Feb 03 04:22:08 I believe it should be possible to change it to do bytecode modification on the existing classes Feb 03 04:22:35 I didn't think you could do that on Android Feb 03 04:22:44 no, statically. at compile time Feb 03 04:22:45 JakeWharton, no, bytecode mod on existing code Feb 03 04:22:48 javac Feb 03 04:22:48 using asm Feb 03 04:22:59 prior to dex Feb 03 04:23:05 but doing so statically is tricky, you can't generate a proxy instance, you need to alter the exact same class so you'd need to inject bytecode into existing methods if the're overridden Feb 03 04:23:15 but I dont see any major issues Feb 03 04:23:33 prior to dex is dealbreaker Feb 03 04:23:35 but it doesnt work that way now. it should. I wont use it because it makes my project broken Feb 03 04:23:39 i want to do it on the device :) Feb 03 04:23:59 JakeWharton, wait for next major rev of Dalvik stuff I think Feb 03 04:24:28 JakeWharton, http://www.google.com/url?sa=D&q=http://code.google.com/p/dexmaker/ Feb 03 04:24:31 they want to add the ability create a class from a byte array at runtime Feb 03 04:24:49 you can do that with a DexLoader already Feb 03 04:25:30 yes for dalvik, not java bytecode Feb 03 04:25:50 I guess... if you were crazy you could do runtime Dalvik bytecode generation Feb 03 04:25:59 but I hear dexmaker is crazy slow Feb 03 04:26:09 haha Feb 03 04:26:17 i'm not that crazy Feb 03 04:26:21 mrenouf, see dexmaker :p Feb 03 04:26:28 I thought you couldn't define a new class at runtime? Feb 03 04:26:33 looking Feb 03 04:26:57 mrenouf, i've injected classes from newer API levels into older ones at runtime in Application#onCreate Feb 03 04:27:27 right, from a file Feb 03 04:27:34 or.. oh I guess its the same thing Feb 03 04:27:50 they're dex files, yes Feb 03 04:28:01 defineClass(...) Feb 03 04:28:12 equivelent? Feb 03 04:29:37 oh wow. dexmaker looks wicked Feb 03 04:29:46 it will generate runtime class proxies Feb 03 04:30:02 it is Feb 03 04:30:05 but super duper slow Feb 03 04:30:12 slow? how? Feb 03 04:30:28 it generates a dex, you do that up front, not at run time Feb 03 04:30:35 well, I guess you could Feb 03 04:31:09 the primary interest is doing it at runtime Feb 03 04:31:10 night guys Feb 03 04:31:14 I cant find any help on this, is there any way of setting the stereo location of a sound? Feb 03 04:31:19 i.e. right ear, left ear? Feb 03 04:31:20 if you do it up front, you might as well write java code and dex it Feb 03 04:31:34 well, I guess so Feb 03 04:31:56 hmm, maybe I'll take a look and see if it can be improved. Feb 03 04:32:05 or is it just a case of balancing out the two Feb 03 04:32:12 with volume Feb 03 04:32:12 oh. thats the thing that Jesse was talking about Feb 03 04:32:28 and Hugo... I've worked with that guy a bit. Feb 03 04:32:36 no idea who you namedropped Feb 03 04:32:36 well, corresponded with. Feb 03 04:32:45 sorry, Jesse Wilson Feb 03 04:32:52 I guess they're both googlers Feb 03 04:33:00 He worked on Guice with Bob Lee, and also Guava Feb 03 04:33:05 Jesse rocks Feb 03 04:33:10 Bob rocks too Feb 03 04:33:13 And also Android core Libraries Feb 03 04:33:24 yeah, met Bob once at Google I/O before he left for Square Feb 03 04:33:31 super cool guy Feb 03 04:33:44 anyhow. I'll have to ask them about this Feb 03 04:33:48 indeed Feb 03 04:34:11 but knowing who wrote it, I can only assume it was done as efficiently as possible so far Feb 03 04:35:13 ok, well this will at least be usefule for making EasyMock or Mockito work on android inside an emulator Feb 03 04:35:29 I've only hearsay that it's slow, though Feb 03 04:35:52 haven't actually tried it Feb 03 04:35:58 which is what I actually think the original intent was now. It's incredibly painful to try and generate class mocks Feb 03 04:36:42 only non-private non-final are proxyable :-( Feb 03 04:37:03 mrenouf, that's good enough... Feb 03 04:37:15 do you make all your classes final? Feb 03 04:37:29 no but lots of Android framework stuff is sometimes Feb 03 04:37:38 indeed Feb 03 04:37:51 if you want to intercept to return mock values Feb 03 04:38:12 but I think RoboGuice could be done using this thing Feb 03 04:39:21 I still have yet to try RoboGuice Feb 03 04:39:30 or implement, I should say Feb 03 04:39:39 * pfn hasn't found much reason to do DI in android Feb 03 04:39:49 testing Feb 03 04:39:50 and for that matter, I find next to no reason to use DI with scala Feb 03 04:39:56 <3 DI Feb 03 04:40:03 unit testing to be specific Feb 03 04:40:41 a typical Android activity reaches out to get a ton of stuff on it's own, so it's next to impossible to test it in isolation Feb 03 04:40:51 mrenouf, that's the problem Feb 03 04:41:02 most of what I'm interested in testing is integration/system testing Feb 03 04:41:05 like you dont want your unit tests firing up the GPS or doing Wifi scans Feb 03 04:41:13 on a unit level, my code is generally correct Feb 03 04:41:24 mmhmm Feb 03 04:41:37 it helps at all levels Feb 03 04:41:51 Android needs a proper simulator written in Java Feb 03 04:42:00 or, I should say, executable on the JVM Feb 03 04:42:05 wtf Feb 03 04:42:22 SQLiteOpenHelper.onUpgrade() passes in a read-only db? Feb 03 04:42:23 Simple, just port the JVM to ARM Feb 03 04:42:26 heh Feb 03 04:42:47 rather than bastardizing your code to work with mocking just have an Android framework that's mockable on the JVM Feb 03 04:42:57 or DI-able Feb 03 04:42:58 that just doesn't make sense Feb 03 04:43:00 whatever you want to call it Feb 03 04:43:15 JakeWharton, that's been somewhat attempted too Feb 03 04:43:19 see: AndroidMock Feb 03 04:43:24 RoboElectric too Feb 03 04:43:33 no sorry, yeah thats the one I meant Feb 03 04:43:51 Square uses that Feb 03 04:43:55 AndroidMock is for mocking in Dalvik, Robolectric is for running android code outside the emulator Feb 03 04:44:21 they have a fork so I can only assume they're trying to expand it's usefulness Feb 03 04:44:45 the problem with those approaches is they require shadow libraries and they dont replicate the platform correctly in all cases Feb 03 04:44:50 good night Feb 03 04:44:56 must be developed seperately Feb 03 04:45:30 why not an android.jar with class full bodies, I wonder how far that would get before dying Feb 03 04:45:48 and just port the jni stuff over to x86 Feb 03 04:45:57 mostly in C anyhow Feb 03 04:46:14 people smarter than me i'm sure are working on it Feb 03 04:46:15 android-x86 project seems to have that working Feb 03 04:46:21 or, at least, i hope so Feb 03 04:46:46 so it would be REAL nice do just run on bare JVM, yeah, just for testing Feb 03 04:47:09 indeed, real hard to simulate though Feb 03 04:48:23 not really, the emulator already has all the needed parts Feb 03 04:48:36 that's the emulator, though Feb 03 04:48:42 just runs inside an extra layer of machine/bios/arm emulation Feb 03 04:52:55 I use Robolectric too! Feb 03 04:52:57 Every day. Feb 03 04:53:07 Hey JakeWharton: How'd your interview go? Feb 03 04:53:12 I am developing an application that requires Firefox, which I was going to download from the market. Following http://bit.ly/vZuJ4e , I realize I cannot su: "uid 10022 not allowed to su" How do I fix this in the emulator? Feb 03 04:53:19 VonRath, resignation went in yesterday Feb 03 04:53:30 Meaning, you got the gig, and are moving to SF? :) Feb 03 04:53:39 JakeWharton, where at? Feb 03 04:53:45 Square Feb 03 04:53:50 VonRath, yep Feb 03 04:53:51 oh awesome Feb 03 04:53:54 jake I'll have to roll up that way Feb 03 04:53:58 I know some folks over there. Congratulations! Feb 03 04:54:05 now I know why you were talking about them Feb 03 04:54:07 maybe go visit my old stomping grounds Feb 03 04:54:13 I live in Potrero Hill, and would be glad to buy you a welcome beer when you arrive. Feb 03 04:54:19 Also, my office is 2 doors down from Square's. Feb 03 04:54:24 awesome Feb 03 04:54:28 any leads on places to live?!? Feb 03 04:54:32 VonRath, where's your office Feb 03 04:54:37 ron_frown, for sure Feb 03 04:54:47 JakeWharton, I really think you should come to the city and hang out for a few weeks before deciding on a place to live Feb 03 04:54:47 heh, technically I have a spare room for rent, but I like to keep it open for visitors. Feb 03 04:54:50 I'll keep an eye out. Feb 03 04:54:54 JakeWharton, and for that matter, it really depends on your budget Feb 03 04:54:55 pfn: 2nd and Mission in SoMa. Feb 03 04:55:09 I used to work across the street from att park Feb 03 04:55:12 VonRath, I was kinda more wondering what's the company Feb 03 04:55:36 pfn, I start in one month, i'm not sure I want to live out of a Hotel or something. where would my crap go? Feb 03 04:55:46 my first startup I worked in was in the second floor of a furniture store at 3rd and folsom waybackwhen Feb 03 04:55:51 it was nice for a city Feb 03 04:55:52 real clean Feb 03 04:55:52 JakeWharton, use PODS Feb 03 04:55:53 cost of living/pay scale in SFO is worse than Boston I hear Feb 03 04:56:04 JakeWharton, then once you decide on where you want to live, have the PODS delivered to the place Feb 03 04:56:13 mrenouf - its expensive, but I think its really a lot more sane than it was 5yr ago Feb 03 04:56:17 well, rent is what, $1800/mo for a 1bdrm anywhere "fancy" Feb 03 04:56:21 thats good to hear Feb 03 04:56:22 JakeWharton: Cool if I email you at Gmail? I'll try to be helpful on apartment leads. Feb 03 04:56:35 I remember my old coworoker bought a place downtown for 1mil Feb 03 04:56:36 pfn, thats on par with around here I guess Feb 03 04:56:37 sure, i'm trolling through padmapper.com right now Feb 03 04:56:41 about 5mo later Feb 03 04:56:43 Cool. Feb 03 04:56:45 ouch ouch Feb 03 04:56:49 they were selling places in the same building for 450k Feb 03 04:56:50 haha Feb 03 04:56:55 JakeWharton: until you figure it out, this is nice, it has a small kitchenette as well, http://www.extendedstayamerica.com/ Feb 03 04:57:03 mrenouf, salary is average ~120k for senior-ish pay Feb 03 04:57:27 I was making 120k there as a .net architect Feb 03 04:57:29 yep, so that's evened out ok Feb 03 04:57:33 VonRath, dcc doesn't seem to work well through my bnc Feb 03 04:57:44 used to be 100k was near poverty line, heh Feb 03 04:58:00 No problem. Didn't want to announce my employer publicly. Feb 03 04:58:09 I've worked for a lot of the big startups in SF. Feb 03 04:58:18 I just turned down an Android gig from TaskRabbit. Feb 03 04:58:23 If that helps. ;) Feb 03 04:58:27 there's a bunch of scala shops in the city Feb 03 04:58:33 makes me kinda interested in finding work in the city now Feb 03 04:58:38 Yes there are. Feb 03 04:58:42 Including Twitter, I think. Feb 03 04:58:47 has taskrabbit hit seattle yet? Feb 03 04:58:52 twitter, foursquare, some others Feb 03 04:59:03 neekers: I'm not sure. Feb 03 04:59:16 My lady works there, so I had to decline. Feb 03 04:59:23 what I want to find is a scala android shop, heh Feb 03 04:59:36 I somehow don't think I'd ever find one, though Feb 03 04:59:46 I'm sure they're around. Feb 03 04:59:53 VonRath: why is that grounds for not working there? Feb 03 05:00:08 not a huge fan of scala yet Feb 03 05:00:09 neekers: We just don't want to spend that much time together. Feb 03 05:00:11 not enough experience with it Feb 03 05:00:23 heh Feb 03 05:00:27 lots of my coworkers are married to other coworkers Feb 03 05:00:32 framework scala code is hella scary Feb 03 05:00:41 ron_frown: You must work with a lot of unhappy people. ;) Feb 03 05:00:42 I was digging through Play 2.0 code today, holy hell Feb 03 05:00:57 VonRath - actually I remmeber before I found out Feb 03 05:00:58 JakeWharton, well, that's because framework writers try to follow FP paradigms rather than imperative/OO Feb 03 05:01:05 I saw this girl always talking to this guy Feb 03 05:01:10 JakeWharton, and they also adore using symbols rather than actual names... Feb 03 05:01:13 fuckers Feb 03 05:01:14 I was like ... this dude is TOTALLY banging this chick Feb 03 05:01:19 sure enough... i was right Feb 03 05:01:20 there was like this one part where it was like &> |_| &| Feb 03 05:01:27 "WTF!!!" Feb 03 05:01:32 JakeWharton, that's a bit overkill to me, too Feb 03 05:01:37 jake thats some real perl shit right there Feb 03 05:01:39 @_ Feb 03 05:01:46 JakeWharton, mostly written by people that are infatuated with haskell Feb 03 05:01:55 I liked haskell Feb 03 05:01:58 ron_frown: Hah. That's hilarious. Feb 03 05:02:02 * pfn is trying to figure out haskell now Feb 03 05:02:11 I want side-effects, damnit Feb 03 05:02:16 pfn: why? Feb 03 05:02:26 neekers, because that's how you make stuff happen in the "real world" Feb 03 05:02:39 Any of you dudes played with Roboguice? Feb 03 05:02:42 pfn: why haskell? Feb 03 05:02:45 VonRath I have Feb 03 05:02:51 neekers, I just want to truly understand FP Feb 03 05:02:54 neekers, and haskell is pure Feb 03 05:03:03 and currently in-vogue Feb 03 05:03:04 pfn, ron_frown, https://github.com/playframework/Play20/commit/91b1bb0072430b10412ad9e1839e5f10e5083838#diff-2 Feb 03 05:03:26 ron_frown: Thoughts? I've only barely scratched the surface, but I'm thinking about using it in a new app. Feb 03 05:03:28 reminds me of f# Feb 03 05:03:41 JakeWharton, yeah, a bit too married to their operator symbols Feb 03 05:03:43 VonRath it certainly eliminates potential for fucking stuff up, leaking etc Feb 03 05:03:43 I hate that, personally Feb 03 05:03:47 ><> <- looks like a fish Feb 03 05:03:59 feels a bit heavy (its just google guice with wrappers) Feb 03 05:04:02 pfn: and you don't think scala is a better fit (ae it can be used for android) ? Feb 03 05:04:04 JakeWharton: Yuck. Feb 03 05:04:05 but it def gets the job done Feb 03 05:04:21 neekers, huh? I write android code exclusively in scala now Feb 03 05:04:25 also kinda seems like for DI, its almost purely used for service location etc Feb 03 05:04:34 Iteratee ? haha Feb 03 05:04:35 you mean a fish coming out of a butt: (_ + _) ><> Feb 03 05:04:36 neekers, I want to understand the FP paradigm more, is why I want to truly learn haskell Feb 03 05:04:45 well, (_ + _) is ok Feb 03 05:04:50 _ is a wildcard/placeholder Feb 03 05:04:54 so it means param1 + param2 Feb 03 05:04:58 I think fp has a time and place Feb 03 05:05:11 * t0mless knows nothing about scala Feb 03 05:05:12 t0mless, hahaha Feb 03 05:05:17 ahh Feb 03 05:05:35 neekers, I understand scala well, but I want to understand FP better Feb 03 05:05:40 especially useful in data processing, pattern matching, event filtering Feb 03 05:06:01 makes sense Feb 03 05:06:35 a lot of patterns used/described in scala are taken from FP Feb 03 05:06:46 good for stuff like request handling too Feb 03 05:06:49 of course, it's because scala is designed to work as both FP and imperative at the same time Feb 03 05:07:19 I prefer dysfunctional programming Feb 03 05:07:34 I like c# with its hints of functional programming here and there Feb 03 05:07:42 the only hint of FP in c# is in linq Feb 03 05:07:51 ron_frown, gimme Java 8 and i'll be happy Feb 03 05:08:00 mrenouf is there ever gonna be a java 8? Feb 03 05:08:02 ah few Feb 03 05:08:09 finally finished Feb 03 05:08:12 woopie! Feb 03 05:08:26 i seriously hope so Feb 03 05:08:40 scala should just be the new java... Feb 03 05:08:43 we'll see if Oracle doesn't explode by then Feb 03 05:08:50 haha Feb 03 05:08:59 they're certainly not going to implode Feb 03 05:09:11 it's going to be a hot mess Feb 03 05:09:20 but then again, more fools will take advantage of the utterly incomprehensible operators Feb 03 05:09:25 I dont know about explode, but I'm surprised how many diff java jre installers I've downloaded on idff windows machines and not have them actually be able to instal Feb 03 05:09:47 * pfn hasn't ever had a problem installing java on windows... Feb 03 05:09:55 pfn of course not Feb 03 05:09:59 because *i* have =) Feb 03 05:10:00 use the complete installer if the net installer doesn't work Feb 03 05:10:03 Quick question about casting and subclasses. I've got a subclass of AlertDialog and I'd like to use all the builder functions to build the dialog, but have them return an object of my custom class. Feb 03 05:10:06 They're a law firm, essentially. Feb 03 05:10:24 RMapZero, create your own Builder that'll create your subclass Feb 03 05:10:36 Sometimes my android 2.3.3 goes on GC sweep sprees as shown in ddms - is there anything I can do to find out the cause of it? It's gcing several times a second Feb 03 05:10:42 pfn: I really just want to to return an AlertDialog that I can add stuff to. Feb 03 05:10:54 RMapZero, do you really need to add stuff to it... Feb 03 05:10:58 and I'd love to see oracle give oracle some love too Feb 03 05:11:03 mainly in the tools Feb 03 05:11:08 and client libs Feb 03 05:11:09 vadi2, use the allocation tracker to show you where you're generating extra objects and try to optimzie Feb 03 05:11:09 Well, I mean, methods and such. Feb 03 05:11:16 at an android developer lab atm, teaching us how to create a compatible actionbar ;p Feb 03 05:11:32 wabs are they using ABS? Feb 03 05:11:37 wabz, you should just use aBS and call it a day Feb 03 05:11:37 Can't I just do like (MyClass)builder.create(); Feb 03 05:11:38 ? Feb 03 05:11:40 no :p Feb 03 05:11:44 yeah... Feb 03 05:11:47 RMapZero, because builder.create() returns an AlertDialog Feb 03 05:11:51 RMapZero, you can'tjust cast it Feb 03 05:12:03 mrenouf: can't, it's doing it without my app running Feb 03 05:12:13 and the button to start trackig with only the device selected is disabled Feb 03 05:12:14 Yeah, I figured. Feb 03 05:12:18 RMapZero, maybe you rather want new MyClass(builder.create()) Feb 03 05:12:37 Yeah, actually, that would work. Feb 03 05:12:46 see, the whole reason I wrote ABS was so that people didn't have to waste time dealing with compat action bars Feb 03 05:12:58 Er, no it wouldn't. Feb 03 05:13:09 this is what ddms is showing: http://i.imgur.com/V07nL.png Feb 03 05:13:24 JakeWharton, hey you know about Android Global DevCamp happening in two weeks? Feb 03 05:13:28 single API (that's exactly the same) and a single theme and move on to writing the actual app Feb 03 05:13:31 there are UI problems with this method too Feb 03 05:13:42 I mean, I can think of ways to do it. Feb 03 05:13:49 But if my class implements all the methods that AlertDialog does. Feb 03 05:13:49 some people have devices where it comes up really ugly then flickers to look correct Feb 03 05:13:52 mrenouf, hadn't heard of it, no Feb 03 05:14:16 http://android-dev-camp-2012.blogspot.com/ Feb 03 05:14:17 It seems like there would be a simple way to just implement the builder. Feb 03 05:14:43 Since the builder only needs to build the parts of the interface that AlertDialog is handling for me. Feb 03 05:15:02 write your own Feb 03 05:15:08 it's just a bunch of methods that end in 'return this' Feb 03 05:15:20 Yeah, it's not particularly difficult. Feb 03 05:15:35 But I try to avoid doing that sort of thing if possible. Feb 03 05:15:54 I want Android to handle as much of the UI as possible so I don't create some huge issue when people with 50 different devices and themes use it. Feb 03 05:16:17 RMapZero - thanks to motorola and htc, good luck with that =) Feb 03 05:16:26 JakeWharton, it would be awesome if you could get on a G+ hangout to talk about ABS and why its awesome. There are going to be groups all over the world all doing this the same weekend. Feb 03 05:16:37 one of the guys mentioned how many different android devices there are now, it's 825 or something insane Feb 03 05:16:41 I wonder if I can get a release candidate by then... Feb 03 05:16:47 that would be sweet Feb 03 05:16:57 wabz, console for my app says 900+ Feb 03 05:17:16 mrenouf, i'm knee-deep in apartment tabs right now, i'll bookmark for more investigation tomorrow Feb 03 05:17:20 thanks for the heads up Feb 03 05:17:35 np. living space comes first :-) Feb 03 05:17:44 you just about need to build a custom theme for your app if you want to guarantee it to look right everywhere Feb 03 05:18:03 hey all, can anyone recommend a resource for me to get started in android app development? Book? Website? I'm a noob Feb 03 05:18:07 so glad Holo is part of CTS Feb 03 05:18:27 we had some droid phones, and when they got upgraded to froyo they completely changed button styles and colors for entire thing Feb 03 05:18:29 it was awesoem Feb 03 05:18:31 bradix_14: d.android.com Feb 03 05:18:47 bradix_14, maybe Hello, Android book Feb 03 05:18:59 bradix_14: that is, assuming you know Java... if you don't know Java - start by learning some Java :) Feb 03 05:19:11 please learn Java first Feb 03 05:19:19 it will save you headaches Feb 03 05:19:24 (and us) Feb 03 05:19:52 whats the difference between SharedPreferences x = getSharedPreferences("test", 0); and SharedPreferences y = PreferenceManager.getDefaultSharedPreference(this); ? Feb 03 05:19:55 should I use the latter? Feb 03 05:20:12 next question-- what do you reccomend for Java? Book? website? I've done some web programming, but no Java Feb 03 05:20:23 the latter will get the file that the preferenceActivity defaults to Feb 03 05:20:24 qubez you can have named shared preferences... Feb 03 05:20:39 most cases I'd just use getDefault... Feb 03 05:20:51 ok gotcha, thanks Feb 03 05:21:04 so if your preferences in the pref activity are defined in xml and you use the android:key you can get the values with the latter Feb 03 05:21:23 in my app we have some specific shared prefs we wanted to isolate so we could reset defaults Feb 03 05:21:35 which is super easy to do if you use name set of preferences Feb 03 05:21:38 so if I have a custom one entered that is not in my Settings/Preference activity, I can still use the latter to get the data? Feb 03 05:21:43 which would be a good use for a seperate file Feb 03 05:22:05 t0mless I think hes talking about SharedPreferences, not a specific sharedpref Feb 03 05:22:13 right Feb 03 05:22:36 QubeZ as long as you put it in with the getDefault one Feb 03 05:22:39 right now i have my default preference file that is used for my Preference/Settings activity then I have separate files like searchTerm and firstRun that I just clear out, but with the getDefaultShared... I'd have to actually write a new value to the field or delete the field Feb 03 05:22:43 or used the correct file name Feb 03 05:23:35 Right Feb 03 05:24:22 got it now, thanks all Feb 03 05:24:45 I have an coming out soon: www.todomapr.com Feb 03 05:24:50 an app Feb 03 05:25:17 that is a very uneventful webpage :p Feb 03 05:25:24 oops, lol Feb 03 05:25:31 i forgot i put the wordpress install just now Feb 03 05:26:35 Alright, this might already exist, but I was directed here. Feb 03 05:27:06 I realized that whenever my phone is in my pocket, it is upside down. Feb 03 05:27:24 t0mless: try now, www.todomapr.com Feb 03 05:27:29 damn php was taking over the html page Feb 03 05:27:37 So I want the motion of moving my phone from upside-down to rightside-up to turn the screen on, and unlock the phone. (but still require a pattern) Feb 03 05:27:38 the full site is still being built, should be up in the next week Feb 03 05:28:18 better :p Feb 03 05:31:49 real 72m10.452s Feb 03 05:32:05 time to sync android git with repo starting from nothing Feb 03 05:32:24 not bad Feb 03 05:32:37 that was on ~50mbit, but a vm with slow-ass i/o Feb 03 05:32:39 ok coders help me out Feb 03 05:33:00 I have this game and im trying to determine if I jumped ontop of the platform or if i walked into it Feb 03 05:33:01 so it took almost as long to do the local checkout Feb 03 05:33:09 the problem comes when landing ontop of it Feb 03 05:33:33 idk why I just can't see the answer Feb 03 05:34:11 did you press the jump button? why not set a state, "jumping" Feb 03 05:34:15 ? Feb 03 05:34:32 my best guess, with absolutely no clue as to your situation Feb 03 05:37:32 if i grab the Menu instance on the first onCreate I should be able to hold on to it for the life of the activity right? Feb 03 05:38:27 hmm, maybe. there's no guarantee that onPrepare... doesn't give you a new copy each time Feb 03 05:38:43 on 4.0+ it's only created once Feb 03 05:38:45 but probably not Feb 03 05:38:51 i have to assume it's been that way Feb 03 05:38:58 and i vaguely remember the docs mentioning it somewhere Feb 03 05:42:06 going in playbook-dev makes me feel wierd Feb 03 05:43:14 drink the kool-aid Feb 03 05:43:24 idid t oget the free playbook Feb 03 05:43:38 which dead platform is that for again? I forget Feb 03 05:43:51 was that the BB tablet? Feb 03 05:44:22 fyi, anyone who is doing that sign up now to be a vendor on their App World because it takes some time, like around a week Feb 03 05:44:22 yeah Feb 03 05:44:32 Hi guys, question: I'm new in Android and Java, so, I'm doing a little app with db, so, my problem is that when try to override a method Eclipse show me this error: SQLiteHelper must override or implement a supertype Feb 03 05:44:32 method Feb 03 05:45:14 ei2matrix, put your cursor near the error, and hit Ctrl-1 Feb 03 05:45:25 it will help you fix the problem Feb 03 05:45:40 you guys know about the offer right? Feb 03 05:45:53 not worth it :-P Feb 03 05:45:55 for a free playbook if you modify your app for it? Feb 03 05:45:58 I saw it Feb 03 05:46:00 Pass Feb 03 05:46:04 t0mless: its barely anything Feb 03 05:46:09 i didnt have to modify shit Feb 03 05:46:18 its running a gingerbread runtime Feb 03 05:46:21 wait, huh? it runs Android now? oh Feb 03 05:46:26 its going to Feb 03 05:46:32 oooh Feb 03 05:46:38 thats the new thing they're doing Feb 03 05:46:50 they actually have an online conversion tool to do it for you thats how desperate they are Feb 03 05:46:58 otherwise they have an eclipse plugin Feb 03 05:47:00 cause when I heard they were trying again with it, I thought they were insane Feb 03 05:47:03 maybe i'll look into it once I actually get my tablet layout for my one public app Feb 03 05:47:08 but that makes sense Feb 03 05:47:09 mrenouf: yes, I just did it, but nothing… what suppose that I should see? Feb 03 05:47:19 well sign up to be a vendor so you dont get screwed Feb 03 05:47:29 what method are you trying to override ei2matrix? Feb 03 05:47:49 you need to implement at least the one abstract method Feb 03 05:48:03 t0mless: onCreate && onUpdate Feb 03 05:48:14 I can't seem to understand why I get ---> "SENSOR_SERVICE cannot be resolved to a variable" for the following line ---> mSensorManager = (SensorManager) activity.getSystemService(SENSOR_SERVICE); Feb 03 05:48:24 did you put the paremeters correct? Feb 03 05:48:51 ( aLearner ): try Context.SENSOR_SERVICE Feb 03 05:49:18 t0mless: It was that before...And it worked. But the newer examples use "SENSOR_SERVICE"....What's the difference? Thank you! Feb 03 05:49:40 Quick question. I have a ClickableSpan on part of a TextView which is a cell in a TableLayout. But I can't click it. Any reason why that might be? Feb 03 05:49:44 it looks like you're not calling that line from an activity Feb 03 05:50:13 and since activity inherits from context, it has that constant, but your class must not be a child of Context Feb 03 05:51:22 t0mless: did you see the vid? thoughts? Feb 03 05:51:28 t0mless: mrenouf thanks, I just forgot extend my class… sorry, I'm newbie hehe Feb 03 05:51:45 ( QubeZ ): that woman's voice gets annoying Feb 03 05:52:14 oh really? she's a famous voice over IP voice Feb 03 05:52:21 does voice for Verizon, TMo etc.. too Feb 03 05:52:39 but i'll note the criticism, thanks Feb 03 05:52:52 maybe the vid is too long? Feb 03 05:53:01 maybe Feb 03 05:53:18 I've probably heard her voice other places and thought the same thing Feb 03 05:53:23 my wife is doing the voice for the video tutorials because we can't afford Allison anyhow Feb 03 05:55:05 t0mless: Thank you for the explanation. Actually, I'm trying to redo the 'Amazed App' ---> http://code.google.com/p/apps-for-android/ since it uses the deprecated method 'SensorListener' instead of 'SensorEventListener'...Line # 16 here is throwing an error that I just can't resolve ---> http://collabedit.com/tuyby. It says "The method registerListener(SensorListener, int, int) in the type SensorManager is not applicable for the arguments (SensorEve Feb 03 05:58:08 t0mless: I can paste a bigger stub of code if you'd like...I do have the line "private final SensorEventListener mSensorAccelerometer = new SensorEventListener()" earlier in the code with the two methods "public void onAccuracyChanged(Sensor sensor, int accuracy) " and "public void onSensorChanged(SensorEvent event)" Feb 03 05:59:39 You're trying to pass a SensorEventListner to a method that wants a SensorListener Feb 03 06:01:25 t0mless: Roger that...But isn't SensorListener deprecated? :-? Feb 03 06:01:36 that doesn't mean you can just straight swap it Feb 03 06:01:52 you have to use whatever methods/APIs are required to utilize the new class Feb 03 06:02:29 t0mless: Oh...So, what might those be? I'm just trying to get rid of deprecated methods as an exercise to understand Android better. :-/ Feb 03 06:02:52 looks like registerListener(SensorEventListener, Sensor, int); Feb 03 06:02:56 is the one you're looking for Feb 03 06:03:01 http://developer.android.com/reference/android/hardware/SensorManager.html Feb 03 06:04:10 t0mless: Thank you. I was actually looking at that. But, frankly, I don't see the difference - or rather, I can't understand what the difference is. Feb 03 06:04:48 registerListener(SensorEventListener, Sensor, int) vs registerListener(SensorListener, int, int)... you can't see the difference? Feb 03 06:04:56 you need a intro to java book Feb 03 06:05:46 mreunemoff: you still here? Feb 03 06:05:48 t0mless: I'm learning Java too. Am certainly new to the language. Thank you for laying it out like that. It helps a bunch. Feb 03 06:06:26 when you say set a state jumping, that doesn't full answer the problem because i need to know if i jumped onto the object, or if i jumped into it Feb 03 06:07:25 JavaLover, so its a vector thing, what is your angle of descent Feb 03 06:07:49 ummm Feb 03 06:07:55 or its just collision detection Feb 03 06:08:04 t0mless: So in this call mSensorManager.registerListener(mSensorAccelerometer, SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); we have mSensorAccelerometer is of type SensorEventListener -- so that's good -- SensorManager.SENSOR_DELAY_GAME is an int -- so that's good. I guess I need to understand how to replace the second parameter 'Sensor. :-/ Feb 03 06:08:04 right now I have collission detection Feb 03 06:08:19 at the point where the player first intersects the object, which direction was she travelling in? Feb 03 06:08:28 oh Feb 03 06:08:31 i have that info Feb 03 06:08:34 but that's up to the user Feb 03 06:08:36 it's a 3D map Feb 03 06:08:42 lets just assume Feb 03 06:08:47 aLearner look at the sensor manager doc Feb 03 06:08:49 for easy purposes they're moving on x axis Feb 03 06:08:54 going + 5 per second Feb 03 06:08:59 and when they jump they go + 5 z Feb 03 06:09:10 t0mless: Roger that. Thank you for all your help! Feb 03 06:09:12 and the object is at say 10x 0z Feb 03 06:09:20 i mean if youre going purely x and hit the object, then you've jumped INTO it, purely Y, then your landing atop it, right? Feb 03 06:09:24 and y = 0 throughout it all Feb 03 06:09:41 this is all very abstract so dont expect anything too helpful from me. Feb 03 06:09:43 well it's xyz & i'm using Z for like up and down Feb 03 06:09:50 as in jump axis Feb 03 06:09:51 ok fine Feb 03 06:09:55 and then xy = left right up down Feb 03 06:09:56 same thing Feb 03 06:10:02 yes yes just clarifying Feb 03 06:10:25 well the thing is, my player is going to go ohhhh Feb 03 06:10:35 well that's the thing Feb 03 06:10:37 it's on descent Feb 03 06:10:46 upon landing on it, vs upon jumping into it Feb 03 06:10:48 is where i'm confused Feb 03 06:11:10 so if x > 10 & z = 0 Feb 03 06:11:15 i know i've walked into it Feb 03 06:11:24 but if z = 7 say & the height is 5 Feb 03 06:11:36 i'm to assume i'm landing ontop of it Feb 03 06:11:45 but what happens if i jump right next to the object Feb 03 06:12:04 so it's an X check? Feb 03 06:13:00 so in other words don't ever let the user onto the object unless the z > height Feb 03 06:13:15 sounds good Feb 03 06:13:26 because then if x = 9 and i jump Feb 03 06:13:40 and then z = 3 or whatever he can't be in it Feb 03 06:13:44 i guess idk sounds good Feb 03 06:13:52 try it and see what works Feb 03 06:14:14 kk Feb 03 06:16:07 t0mless: I added the line --> Sensor mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); and then went ahead and called SensorManager.registerListener(mSensorAccelerometer, SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); Feb 03 06:20:24 That's not using the new SensorEventListener though, aLearner Feb 03 06:21:06 you should do SensorManager.registerListener(whateverYourListenerWas, mAccelerometer, SensorManager.SENSOR_DELAY_GAME); Feb 03 06:23:35 t0mless: Thank you very much. But isn't my "listener" actually "mSensorAccelerometer"? :-? Per what I have on Line # 1 ---> http://collabedit.com/tuyby Feb 03 06:23:56 probably, not my fault you named it stupid Feb 03 06:25:03 t0mless: Um, I beg your pardon? Feb 03 06:26:13 your mSensorAccelerometer is an object of class SensorEventListener, if it was meant to listen to accelerometer events you should probably call it mAcceleromoeterListener or something Feb 03 06:26:20 but still Feb 03 06:26:49 SensorManager.registerListener(mSensorAccelerometer, SensorManager.SENSOR_ACCELEROMETER, SensorManager.SENSOR_DELAY_GAME); <--- not right Feb 03 06:27:55 t0mless: The code is from here ---> http://code.google.com/p/apps-for-android/...I'm just trying to understand what's already written. Feb 03 06:28:22 t0mless: You're right. That last line is wrong. I changed it in my code but forgot to update it the online text editor. Feb 03 06:31:13 t0mless: I made the changes you suggested. Feb 03 06:33:25 t0mless: The funny thing now is that the program compiles fine but crashes. Interesting how making even a small change (switching out a deprecated method) can be so interesting (and break things)). Feb 03 06:33:51 well probably because the rest of the app relied on the old method of doing things Feb 03 06:34:05 and to update it requires more than just switching out a method Feb 03 06:37:15 t0mless: Right. I guess you really need to understand all the small pieces. Thanks for your help. I really appreciate it. Feb 03 07:02:34 what technique do people use to keep the images in their drawables folder small as possible? Feb 03 07:03:01 I've seen some beautiful apps that are small in size, wondering how they keep nice images with small apk... maybe the files are downloaded after app? Feb 03 07:10:03 QubeZ: it's a possibility, but would probably make more sense to just keep them in the apk Feb 03 07:13:06 as a general rule I guess you only want to provide the single dpi versions and let android scale them, and it probably helps if your images have a cartoonish complexity, and only use say vertical gradients (because they will compress well) Feb 03 07:16:34 on further thought I suspect that any gradient orientation which results in great regularity of the drawing will compress well, so never mind. Feb 03 07:17:05 I've rotated an imageView using setRotation. Now I want to move up that image (with out change in rotation).. I tried setting Y position.. no effect.. please help.. Feb 03 07:17:09 I imagine this will be any orientation of gradient that is multiple of 45 degrees Feb 03 07:19:30 hey, does anyone know what's up with the transformer prime 64gb? Feb 03 07:19:35 i was looking to pick one up for ics tablet dev Feb 03 07:19:41 but they're pretty hard to find Feb 03 07:24:46 alankila: i have a png in a tutorial with the mapview screenshot and its like 500K Feb 03 07:25:06 trying to figure out how to bring it down without compromising too much quality... maybe bring it down to 250k or something Feb 03 07:52:35 hey guys, ive got a label and an edittext in a linearlayout, i wish for the them to neatly sit next to each other, got them both taking up 50% but the label basically has a black gap since it text wont take up enough space, whts the best way to make it take up only enough space for the text and have the editext fill the rest? Feb 03 07:55:34 give the edittext weight, should be all you need I think Feb 03 07:57:30 thanks, sort of works Feb 03 07:57:42 always afraid to make guis incase they dont stretch properly ;) Feb 03 07:57:54 and thats sortof whats happenign when i go into landscape Feb 03 07:58:18 i end up putting things on their own line and using fill parent, much nicer imho, but sometimes clients dont want it that way Feb 03 07:58:49 the weight seems weird, more like dip or something Feb 03 07:59:27 so yeh basically doesnt work Feb 03 08:02:13 hi im on a galaxy s2 and i want my activity to keep landscape orientation (added orientation no sensor to manifest and configChanges keyboard orientation) then i set setRequestetOrientation to landscape in onCreate and onConfigChanges but when i lock the screen and return to my app for a short time i see the activity in wrong orientation "behind" the lockscreen. is there a way to make it keep the orientation there? Feb 03 08:05:50 Gaz`: if you make the label wrap_content with no weight, and give the edittext weight, that should do what you want Feb 03 08:06:37 yep youre right Feb 03 08:06:50 just did it, i was giving em both weight Feb 03 08:06:54 thanks very much Feb 03 08:07:24 been coding since 12am lol Feb 03 08:07:31 trying to do 2 apps in one day Feb 03 08:07:35 one down, one to go Feb 03 08:08:26 u seen this leeds http://www.codenameone.com Feb 03 08:08:32 im very excited to get my hands on it Feb 03 08:09:03 code in java and runs on all the mobile platforms, iphone included :D Feb 03 08:09:09 the principle of weight is that any unused space in a layout is shared out amongst the contents, weighted by... weight Feb 03 08:09:33 riiight, so often one thing will have no weight, and thatll help Feb 03 08:09:35 ok im getting it Feb 03 08:09:41 only taken me 4 yrs Feb 03 08:09:43 :-} Feb 03 08:09:55 got to get my hands on a book Feb 03 08:09:56 so if you have two views, one has no weight (implied 0) and one has anything non-zero, it takes 100% of the unused space Feb 03 08:10:08 aha, makes sense actually Feb 03 08:10:20 so one can be wrap_content other can have weight 1.0 or something Feb 03 08:10:23 and itll work Feb 03 08:10:38 if you, say, gave weight of 1 to the label and 2 to the edittext, the label would get 1/3 of the unused space, the edittext would get 2/3 Feb 03 08:11:08 cool Feb 03 08:11:11 I'm not actually sure how it interacts with wrap_content :) Feb 03 08:11:11 thats nice Feb 03 08:12:24 yo jahc Feb 03 08:12:38 hey Gaz Feb 03 08:12:42 I got that job :) Feb 03 08:12:50 oh I probably already told you haha Feb 03 08:14:32 no u didnt Feb 03 08:14:34 well done man Feb 03 08:14:44 Leeds - what do you use for sort of empty space? Feb 03 08:14:53 hope its good pay jahc :) Feb 03 08:14:54 and fun Feb 03 08:14:57 this is my 2nd week I guess hehe Feb 03 08:15:00 yeah its pretty good pay Feb 03 08:16:13 Gaz`: you can use a plain View Feb 03 08:16:42 doh, yeh Feb 03 08:16:46 just an empty layout u mean? Feb 03 08:20:06 empty View in a layout Feb 03 08:26:28 GAZ!!! Feb 03 08:27:16 yo!! Feb 03 08:27:36 meeting tons of ppl from yesteryear Feb 03 08:27:46 how are u? Feb 03 08:35:18 How to clear transformation matrix in framelayout? Feb 03 08:41:03 hey everyone... can I get some help understanding android and how it works? lol sorry for being so far behind, just got my first android device, htc view, and im trying to catch up on its inner workings before doing anything to it... Feb 03 08:41:24 probably activity lifecycle is a good place to start Feb 03 08:41:30 google that they have a decent page on it Feb 03 08:41:41 Leeds did u like my zombie extravangza btw (so far...) Feb 03 08:42:05 very violent! Feb 03 08:42:06 awesome, doing this right now. Thanks Gaz! Feb 03 08:42:14 did think the player was prancing a bit though :) Feb 03 08:42:39 lol Feb 03 08:42:43 in what way Feb 03 08:42:50 he walks a bit odd yeh but i think his run is ok Feb 03 08:42:52 well... in a camp way... Feb 03 08:42:55 a few ppl have said that tho Feb 03 08:42:57 lol.. Feb 03 08:43:18 np qtbchin Feb 03 08:43:59 very violent, i like that Feb 03 08:44:11 and wayyy too many zombies was an aim lol theres 600 on level 1 Feb 03 08:44:16 and more come from doors etc Feb 03 08:44:42 maybe i can get the hero re-done a bit to stop him prancing, altho i dont see it really, guess i been working on it too long Feb 03 08:53:42 Gaz', can you suggest looking up something that will explain more about the firmware of android.. im looking for something that will clear up the basics: hboot, rom, kernel... also, how memory is organized/split, e.g. what does nand contain and is it physically separate from the user accessable storage or is it basically the same memory with split partitions... Yeah, im talking REAL basic lol Feb 03 08:53:42 so strange when you get ppl asking for apps with such similarities, this one i could rip half of what i wrote this morning to complete it :D Feb 03 08:53:46 calling getWidth() and getHeight() on a view does not yield a calculation right? So there's no need to cache the values for performance? Feb 03 08:55:18 How to set a Matrix to a framelayout.. any idea? Feb 03 08:55:30 Matrix is a transformation matrix Feb 03 09:01:10 What is this syntax called, with three dots after Integer? "protected void onProgressUpdate(Integer... progress) {" ..reading documentation of ASyncTask Feb 03 09:01:26 Never seen before... Feb 03 09:02:09 varargs Feb 03 09:03:31 ty I'll look that up :) Feb 03 09:06:41 Why use varargs instead of an array? Feb 03 09:06:50 it's automatically constructed by the compiler Feb 03 09:07:07 onProgressUpdate(1, 2, 3) will work just fine Feb 03 09:08:32 I personally think that single-array-argument-methods could get the same compiler help as ... does, so I'd rather see onProgressUpdate(Integer[] foo) work the same as Integer... foo, and no ... at all Feb 03 09:09:12 What compiler help does ... get? Feb 03 09:10:04 To me, when reading about the functionality of varargs it seems just like an array, only that you can specify it as a list of parameters instead :-) Feb 03 09:10:07 well, the method generated by compiler has signature Integer[] in every case. But when compiler knos that the declaration is Integer..., it seems to automatically insert the 'new Integer[] {}' bit into code where it's required Feb 03 09:10:34 ah ty Feb 03 09:11:07 hello :) is there a thread-safe queue class in android? something where i can push on one thread, and pop on another? Feb 03 09:11:16 we did all see the "submit a ported Android app to blackberry, get a free playbook" thing, right? Feb 03 09:11:23 Yep Feb 03 09:11:25 although in this case as it's AsyncTask it's of course Object... behind the scenes Feb 03 09:11:31 generics and all Feb 03 09:11:57 how can i push and pop stuff into an asyncTask? Feb 03 09:12:23 ecraven: BLockingQueue maybe Feb 03 09:12:47 ecraven: note that asynctasks are already queued by android internally Feb 03 09:13:10 so you can just construct an AsyncTask instance per work item you want done, and then choose an executor that has suitable concurrency characteristics Feb 03 09:13:31 alankila: doesn't that create a *lot* of overhead, instantiating asyncTasks all the time? Feb 03 09:13:44 Leeds: Just wondering what the terms are Feb 03 09:13:46 blockingQueue seems perfect, except for the fact that i can't clear it :( Feb 03 09:13:50 probably not. They aren't threads, just objects. Feb 03 09:13:53 guys, i need to make my app to receive Intent from other apps, for instance, like the image-viewers do that. Now i am trying to find out how to make Intent to view image. There is an intent that i see in LogCat: http://goo.gl/x917E could you please tell me how can i build this intent? Is it built "by hand", or is there some other way? Feb 03 09:14:17 SimonVT: they've said they'll publish them soon - I'm waiting for the inevitable geographic limitations Feb 03 09:14:37 Leeds: Yeah, same.. Waiting for the "lol, US only" Feb 03 09:27:14 hi all Feb 03 09:27:43 may I use a 9.png as a normat png to let android resize it ? or there's a different way ? Feb 03 09:29:52 hi. I am using a drawable as an image in a button without text, but the border between the drawable edge and the button edge is too big, making a big button. How do you define the gap between the drawable and the button edge? Feb 03 09:35:45 Given that I could come up with a kernel that supported it, would there be any support for a USB headset in ICS? Feb 03 09:37:29 hi. I am using a drawable as an image in a button without text, but the border between the drawable edge and the button edge is too big, making a big button. How do you define the gap between the drawable and the button edge? Feb 03 09:48:29 gappie: padding perhaps Feb 03 09:52:06 Netham45: ehm, don't think so, android audio is pretty hardcoded I think Feb 03 09:52:19 Hmm, okay. Feb 03 09:52:57 SimonVT: for what it's worth, they did a similar giveaway before they actually *released* the playbook, and it seems it was global Feb 03 09:53:04 it's open source, of course, so you could probably get it to work Feb 03 09:53:15 but it'd be quite a bit of work (I think) Feb 03 09:53:33 I've found a couple things for specific devices, but nothing that really hints towards global ICS support for DAC. Feb 03 09:53:44 Leeds: Oh, then there's hope Feb 03 09:53:45 just like android's hardcoded to support only one wifi device Feb 03 09:54:00 Or well, dunno really what I would use a playbook for.. But wouldn't mind getting one for free :p Feb 03 09:54:07 I mean, you can get mac80211 to work just fine with usb wifi devices Feb 03 09:54:20 you just can't get the built-in interface to manage the interface Feb 03 10:07:47 hmm Feb 03 10:10:21 http://pastebin.com/wWYB0frz java.lang.NullPointerException from at android.widget.MediaController.setAnchorView(MediaController.java:218), anyone have any idea what that could be ? Feb 03 10:11:14 hi guys, what would be a good location to store pictures for my software? There is a possibility to take pictures in the application and I store them in "/sdcard/pictures/[id_number].jpg" at the moment. Feb 03 10:12:14 /sdcard/data/package.name.foo.baa/images ? maybe ? or something like that ? Feb 03 10:12:32 what does this /data/ dir stand for? Feb 03 10:13:51 http://www.businessdictionary.com/definition/data.html ? Feb 03 10:14:13 ;) Feb 03 10:14:53 fanno: how about Context.getExternalFilesDir()? Feb 03 10:15:27 Xperimental: couldwork too i guess its the smae i think tho ? =P is it not ? Feb 03 10:16:03 it maps to /sdcard/Android/data/your.package.name/files Feb 03 10:16:35 close =P Feb 03 10:16:43 but ya that one os better Feb 03 10:16:57 yeah, there seems to be also data for other apps as well like for spotify etc. Feb 03 10:17:11 i dont remember the /Android/ one tho it must have been added in newer sdk Feb 03 10:17:24 working roms will automatically have a .nomedia file at /sdcard/Android/data/ to that your files are not picked up by the MediaScanner Feb 03 10:22:27 this is what I had: Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES) Feb 03 10:23:18 as the method name says, this is for public files. the folders fanno and me mentioned are for files "private" to your application. Feb 03 10:23:27 If the pictures shouldn't be deleted when uninstalling the app, that is fine Feb 03 10:23:49 the pics should be deleted when uninstalling Feb 03 10:24:02 thank you guys for the help! :) Feb 03 10:24:15 nvt: then use Context.getExternalFilesDir Feb 03 10:24:16 Then use getExternalFilesDir Feb 03 10:29:40 How can I auth with google? that is, instead of the user entering username and password he/she is prompted with a dialog about granting access to google? Feb 03 10:50:20 hey guys, its been a long while since ive actually planned any kind of project out or since i took a software engineering class in school.. can somebody refresh me to some software that people typically use to plan out projects and maybe some resources online that i can use to refresh myself on the best methods to plan a project? Feb 03 10:52:31 svchost, I recommend you do some TDD (test driven development), code tends to evolve nicely when doing it and not embarking on a massive project Feb 03 10:53:26 yeah, but at the same time, i have a lot of ideas Feb 03 10:53:33 and id like to organize them, at least vaguely Feb 03 10:53:48 put them into trello.com / pivotaltracker.com Feb 03 10:53:50 something i can look at to see what my ideas are.. maybe ill just do some mind mapping Feb 03 11:14:54 can someone of you give me help with odin? I tried to compiled it but i get problems with the gsl library Feb 03 11:15:14 When, in a Fragment's life cycle, is it safe to call View.getWidth() on a child view within the fragment? Feb 03 11:15:46 in onStart() my getWidth() call returns 0. At a later point in time it says 480 (which is what I expect) Feb 03 11:15:55 perhaps after oncreateview Feb 03 11:15:58 or after onattach Feb 03 11:16:24 i would be interested to know which, if any, of the two i lsited work Feb 03 11:16:59 storkme: onStart() is called later than both of the two methods you suggest, yet getWidth() returns 0. Feb 03 11:17:08 oh really? damn :o Feb 03 11:17:34 pakerfeldt: you need to do this after it finishes layouting Feb 03 11:17:45 MDijkstra: is there a callback for that? Feb 03 11:17:46 we're trying to figure out when that is :p Feb 03 11:17:52 well, ok Feb 03 11:17:58 it's obviously not when the view is created :p Feb 03 11:18:17 presumably some time shortly after the fragment is attached, i woulda thought Feb 03 11:18:42 storkme: but attach is like the first callback a fragment gets, I doubt that. Feb 03 11:18:53 the view hasn't even been created when onAttach is called? Feb 03 11:18:59 you could subclass the view, do a callback on onMeasure Feb 03 11:19:03 *container view Feb 03 11:19:06 I guess Feb 03 11:19:09 out of interest, why do you want to know when the fragment is being laid out? i think conceptually it makes more sense to do such computations on the view Feb 03 11:20:17 I'm placing a couple of views onto an ImageView, and I need the width in order to know which coordinates the view will get, relative the ImageVIew. Feb 03 11:20:33 what about View.measure(...)? Could I call that method? Feb 03 11:20:38 sounds like you should be overriding imageview really Feb 03 11:20:53 storkme: Yeah, you are probably right Feb 03 11:21:00 or use a framelayout with your imageview at the back, and a relativelayout on top you can use to position your views Feb 03 11:21:10 i have done that in the past with good success Feb 03 11:21:56 I have a FrameLayout (actually a DragArea subclass for drag'n'drop support) in which I have the ImageView and all the overlayed views. Feb 03 11:22:33 storkme: I guess that was what you suggested? Feb 03 11:24:04 Anyway, subclassing ImageView has struck me before with other issues I had. So perhaps it's time to actually go about and do it. Feb 03 11:25:45 i would be tempted to do a framelayout with an imageview in it, then a relativelayout on top with views positioned relatively Feb 03 11:26:04 but i can't say for sure what is best for you because i don't know what it is you're trying to achieve :) Feb 03 11:28:49 can't you simply calculate the total screen width and work out the eventual size of the imageview? Feb 03 11:28:55 *screen size Feb 03 11:29:02 bit hacky, but if it works Feb 03 11:29:43 I want an image using the entire view of a fragment. The image will typically be that of a floor planning. Then the user will be able to place buttons (or other views) on top of the view, and position it wherever he/she likes. Feb 03 11:30:22 A button is typically representing on/off of a lamp somewhere in the floor planning. Feb 03 11:31:03 ah Feb 03 11:31:17 sounds like you want to override imageview Feb 03 11:31:59 Like: http://bit.ly/xYasFA Feb 03 11:32:13 damn, wrong screen shot Feb 03 11:32:50 http://bit.ly/x41uvP Feb 03 11:33:12 And the user is able to drag these views around as he likes. Feb 03 11:33:13 i think personally you'd do better with overriding imageview Feb 03 11:33:19 right Feb 03 11:33:25 but i haven't done drag and drop Feb 03 11:33:29 so i really don't know Feb 03 11:33:56 I have the drag'n'drop sorted out already. Feb 03 11:34:16 it might be different if you're overriding imageview Feb 03 11:34:21 oh, ok Feb 03 11:34:45 you might have to implement some draganddroppable interface in your custom view? Feb 03 11:36:02 But the drag and drop view is already custom. Got it from some open source project. Perhaps I should use that instead. Skip the entire ImageView and place the image onto the drag view instead (which is a FrameLayout)? Feb 03 11:36:28 could do Feb 03 11:36:35 maybe even set the image as a background? Feb 03 11:36:44 that's what I meant Feb 03 11:37:04 Not sure what difference that would make (using an ImageView and set the source or use a FrameLayout and set the background). Feb 03 11:37:17 i forgot what the problem is Feb 03 11:40:42 haha Feb 03 11:41:11 I need to get the width of the view containing the image in order to calculate where the buttons should be placed. Feb 03 11:41:17 oh yeah Feb 03 11:41:56 i would go with overriding either imageview, or the drag and drop layout itself Feb 03 11:42:22 out of interest why are you using a custom drag and drop api? i thought there was one built in Feb 03 11:42:30 Can I use an image, loaded from file, as a background to a FrameLayout? Feb 03 11:42:35 Or do I need an ImageView for that? Feb 03 11:42:36 yeah Feb 03 11:42:51 i.e the image itself is not a resource in the apk. Feb 03 11:42:58 ah] Feb 03 11:43:04 To support pre-3.0 Feb 03 11:43:08 oh ok Feb 03 11:44:11 i'd probably still override imageview, and place it behind your buttonss Feb 03 11:44:38 why? Feb 03 11:46:24 when your imageview is laid out, you can callback to the other layout to tell it where your buttons are positioned Feb 03 11:47:16 I mean, when I come to think about, it seems much easier to just do it directly in the custom FrameLayout. That way, I would get rid of the ImageView completly (setting the image as background on the FrameLayout). Feb 03 11:50:02 yeah, that's probably more sensible Feb 03 11:50:31 how does this drag and drop api work? you specify a layout as a target? Feb 03 11:52:25 it claims to mimic the post-3.0 native API (but I haven't looked at the native API yet) Feb 03 11:55:50 hello everyone.. Feb 03 11:56:03 Does anyone know how to make a listitem which contains a button? Feb 03 11:56:36 (so a click on the item itsself would "open" the item, and the button aligned to the right would delete it) Feb 03 11:56:44 (like in so many other standard applications :) ) Feb 03 11:57:00 But afaik, it doesn't give any help actually moving the view. It just says where it was dropped, then I need to retrieve the view and move it myself. So the library is actually very simple. Feb 03 12:40:39 after adding children to a ViewGroup, what is needed for them to be drawn? I've tried invalidate and requestLayout but nothing. If I open the hierarchyviewer the children gets drawn when I press Load View Hierarchy Feb 03 13:17:03 Quick question. I have a ClickableSpan on part of a TextView which is a cell in a TableLayout. But I can't click it. Any reason why that might be? Feb 03 13:20:52 Q: Application with two syncadapters for two different content providers. One shows up in the Sync settings activity one does not. Any ideas what I am missing? Feb 03 13:21:00 NicholasRoge: have you set its "onclick" property? Feb 03 13:21:12 (or "click" or whatever its called again..) Feb 03 13:21:30 or defined a clickhandler for it in your activity Feb 03 13:22:14 Krob: Yes Feb 03 13:22:33 both sync adapters work by the way... Feb 03 13:22:42 If I take the view out of teh Table it works fine. Feb 03 13:22:44 can i obtain the path of an image from the result intent of an MediaStore.ACTION_IMAGE_CAPTURE action, or is the only way to set the uri using MediaStore.EXTRA_OUTPUT and saving it somewhere in my clas Feb 03 13:22:48 s Feb 03 13:24:29 storkme: MDijkstra: A callback in onMeasure was not enough to ensure getWidth() returns correct width for my view. Feb 03 13:24:49 siyb: i query the MediaStore using the uri provided. the path is in the DATA column Feb 03 13:25:07 provided = by the result intent Feb 03 13:25:31 in onMeasure (after super.()) has been called, I send a callback to my fragment, reads the width of the view and it still returns 0. Feb 03 13:25:55 Anyone have built a game using Adobe Flex? Feb 03 13:26:10 onMeasure is called more than once Feb 03 13:26:21 Xperimental: sorry, misformulated my question, i want to get the uri from the result intent without having to save it Feb 03 13:26:48 storkme: yes, but I ignore the callback if the width is 0 Feb 03 13:27:34 which uri? and without saving what? Feb 03 13:27:39 storkme: actually, it seems to be called only once. Feb 03 13:29:22 Xperimental: i am using MediaStore.EXTRA_OUTPUT to specify an uri in the intent that opens the camera app. i was wondering if the result intent i receive in onActivityResult(...) provides this uri or if i have to save it within my activity Feb 03 13:29:45 maybe if it's in a framelayout it's only called once Feb 03 13:29:53 is your framelayout set to match parent width and height Feb 03 13:30:36 siyb: sry, misread. you are getting a new image from the cam not one from the gallery, right? Feb 03 13:30:45 exactly Feb 03 13:31:03 storkme: yes it is Feb 03 13:31:18 currently i am saving the uri, but since i have to make some adjustments, saving the uri gets pretty ugly Feb 03 13:31:21 :/ Feb 03 13:32:02 seems like I didn't find the path in the result intent too. i just use a temporary path which is the same for every call of the intent and then move the resulting image to its final destination Feb 03 13:32:02 how odd Feb 03 13:32:22 Xperimental: sucks imgo Feb 03 13:32:25 imho* Feb 03 13:32:32 it does, yes Feb 03 13:33:40 storkme: yes, it's definitely called only once Feb 03 13:33:55 that fixed it!!! Feb 03 13:34:01 higher turn radious for longer turns Feb 03 13:34:07 shorter turn radious for shorter turns Feb 03 13:34:12 HELLO GRAND TURISMO ASPEC!! Feb 03 13:34:21 is your framelayout parent set to match parent? Feb 03 13:34:54 YES!~! Feb 03 13:34:57 so easy to do now Feb 03 13:34:59 wooohooooooo! Feb 03 13:35:21 http://www.youtube.com/watch?v=YWt4wmZ_EMI cuz i came at 5,9 but i feel like i'm 6'8!!!!! Feb 03 13:38:22 damn that was hard Feb 03 13:38:31 oh woops i'm posting in the wrong room lol Feb 03 13:38:43 u would be better Feb 03 13:38:45 to say nothing at all Feb 03 13:43:27 Hey guys, I have tried cleaning and doing everything but I keep getting NoClassDefFound error. I referenced it in my AndroidManifest, added alll required permissions. Not sure what to do now. Feb 03 13:43:58 rgravener: ndk? Feb 03 13:44:03 VJTachyon: no Feb 03 13:44:19 rgravener: targetting the right version of the sdk? Feb 03 13:44:36 VJTachyon: not sure, i switched it to sdk 14 Feb 03 13:44:39 rgravener: oh hey Feb 03 13:44:56 rgravener: refresh, clean.. Feb 03 13:44:58 rgravener: https://market.android.com/details?id=com.njtransit.rail Feb 03 13:45:00 is this you? Feb 03 13:45:20 rgravener: also, what's the class? Feb 03 13:45:39 lov: that is me Feb 03 13:45:46 rgravener: that is awesome Feb 03 13:45:54 has to be better than the njt mobile website Feb 03 13:45:57 I found that app yesterday and I am DELIGHTED. Feb 03 13:46:06 well the mobile website isn't that bad tbqh Feb 03 13:46:08 nice. how did you know I was associated with that? Feb 03 13:46:22 mobile website is terrible if you don't have internets. Feb 03 13:46:24 I saw "rgravener" as an email contact for one of your apps Feb 03 13:46:34 and though "that name sounds AWFUL familiar...." Feb 03 13:46:39 oh cool, I guess you might have sent feedback Feb 03 13:46:45 I don't think I've sent feedback Feb 03 13:46:48 though while you're here Feb 03 13:46:55 rgravener: did i come in the middle of your classdef question btw? Feb 03 13:46:58 the newark light rail stuff is broken : ( Feb 03 13:47:15 either I'm looking at the wrong broad street station, or your schedule assumes that it comes ever 3 minutes Feb 03 13:47:27 and I can't get it to figure out a connection from Broad Street Station (rail) to Newark Penn Feb 03 13:47:29 the data dump njtransit gave me is bad Feb 03 13:47:38 it is missing some data Feb 03 13:47:41 rgravener: how are you pulling that anyway? Are you using a webservice or something? Feb 03 13:47:48 (njtransit webservice) Feb 03 13:47:52 lov: you just walk between them I think. Feb 03 13:48:06 rgravener: it's like 2 miles :< Feb 03 13:48:08 lov: gtfs data, and I scrape their mobile site for track info Feb 03 13:48:18 through newark :< Feb 03 13:48:20 what does their website say? Feb 03 13:48:37 I automated all the routes via graph theory so some stuff may not be right. Feb 03 13:48:38 about what? their mobile site shows the right info for broad street light rail to newark pen Feb 03 13:48:57 their "route me through everything" mode is horrible because it's totally bus happy Feb 03 13:49:26 "yeah take the train up to newark and then hop on the 4725 for five shankings and then hop on the next train..." Feb 03 13:53:20 storkme: yes, there's a linear layout (match parent) with the framelayout (drag view) set to match parent Feb 03 13:53:30 Perhaps I could skip the linearlayout altogether Feb 03 13:54:01 Well, i'm always trying to improve. Send some feedback and I do keep track of it and try to fix what people point out. Feb 03 13:54:06 not sure what to suggest Feb 03 13:54:33 app earns me money so it is in my best interest to keep you guys happy Feb 03 13:56:39 storkme: no problem. Need to go shopping now anyway. I'll dig into this again later. Feb 03 13:59:12 woohoo. syncadapter issue fixed. ContentResolver.setIsSyncable did the trick. Feb 03 13:59:42 anybody know why one syncadapter was set "synable" automatically on account creation? Feb 03 14:00:25 rgravener: I'm a monster who runs adblock : ( Feb 03 14:00:50 you should buy some ads. Feb 03 14:01:00 i'll sell you 100,000 views for $100 Feb 03 14:01:11 built in Feb 03 14:01:17 ha Feb 03 14:01:26 GPS Notification sales skyrocket; reach 3 per day for 2 days! Feb 03 14:01:31 totally worth it Feb 03 14:03:45 rgravener: I emailed you some feedback Feb 03 14:05:08 Hello guys, how can I prevent LogCat removing lines? Sometimes I want to analize the loggings but after a while it dissapears, can I change that? Feb 03 14:05:46 no Feb 03 14:05:53 The logs are written to a circular buffer Feb 03 14:06:08 use adb logcat at the command line or something Feb 03 14:06:20 you can also do adb logcat -d to write the logs and exit Feb 03 14:06:24 so adb logcat -d > out.txt Feb 03 14:06:42 (there are a variety of options you can pass to logcat, in particular to only look for certain tags or for certain pids) Feb 03 14:10:55 the alarm stuff is fixed in the newer version Feb 03 14:11:12 however my beta testers don't like the new way of selecting alarm time Feb 03 14:12:48 :< Feb 03 14:12:54 would you be willing to make me a beta tester? Feb 03 14:13:10 yeah Feb 03 14:13:24 after work i'll do that, just started a new job as android developer @ mlb.com Feb 03 14:13:39 beta tester for? Feb 03 14:14:09 oh neat, congrats Feb 03 14:18:30 Jug6ernaut: com.njtransit.rail, 99% chance you don't need the app Feb 03 14:19:27 hehe Feb 03 14:19:32 i have been there b4 :P Feb 03 14:19:55 but no i dont lol Feb 03 14:20:16 http://www.androidpit.com/en/android/blog/402152/iphone-banned <--- lol Feb 03 14:21:44 * Jug6ernaut yawns Feb 03 14:22:04 stupid patent lawsuits Feb 03 14:23:44 they're not *all* stupid Feb 03 14:23:48 just...a lot of them Feb 03 14:23:52 true Feb 03 14:24:54 don't forget: courts and lawyers are also a part in this. not just patents... Feb 03 14:25:10 stupid courts/lawyers Feb 03 14:26:30 btw: is the file format of "adb backup" documented somewhere? Feb 03 14:27:03 didn't find anything besides "a few lines of headers then deflate" Feb 03 14:31:23 hi Feb 03 14:31:50 what animation is played, when clicking an item in a listview? Feb 03 14:34:18 lov, sorry I didnt' see your messages. But I understand, yes I assumed it recycles its buffers. Thnx for the info. Feb 03 14:37:56 monsti: none, the default background just contains a pressed state Feb 03 14:41:14 Hello guys, I simply added a small progressbar, what happens is when I want to show it, it first turns one size bigger after a few circulations it returns small as it should be, I'm using Android 2.3. Feb 03 14:42:42 I simply hide or show by using mPB.setVisibility(View.VISIBLE); and mPB.setVisibility(View.GONE); Feb 03 14:45:10 Xperimental: thx can you point me to the file in the android 3.x/4.x source where i can steal this? Feb 03 14:46:14 Xperimental: got it thx - http://stackoverflow.com/questions/4365893/how-to-change-color-of-android-list-item-on-click-or-selection Feb 03 14:48:54 monsti: you're welcome. Feb 03 14:48:57 Any way to easily change the hue of a ProgressBar? The rotating one. Or is it WYSIWYG? Feb 03 14:49:29 shlumph: set a different drawable. Feb 03 14:49:55 lov, will it rotate, though? if the drawable is static? Feb 03 14:50:10 static as in just a png Feb 03 14:50:13 no, you'll have to use an animateddrawable Feb 03 14:50:45 AnimationDrawable, sry Feb 03 14:50:47 Ok, I'll look into that... thanks. Feb 03 14:54:43 Are there any stock images provided with the SDK. I would like to see what is available. Feb 03 14:54:56 I am thinking images for buttons Feb 03 14:55:09 android.R.drawable. Feb 03 14:55:41 thx Feb 03 14:57:14 Anyone knows how to communicate to a webservice from android? Feb 03 14:57:51 A .NET webservice Feb 03 15:00:23 Zenix11: that largely depends on what data-format the service understands... Feb 03 15:01:16 i tried the webservice,but it returns successfully regardless of what i type Feb 03 15:03:57 .... Feb 03 15:04:07 Zenix11: "Hey guys how do I make android use the internet? I can't get it working" Feb 03 15:04:14 That's about how clear your question is Feb 03 15:04:37 How are you trying to communicate with the webservice? XML? JSON? What layer is failing? Feb 03 15:04:42 Are you unable to connect at all? Feb 03 15:04:47 Are you able to connect but get the wrong data? Feb 03 15:04:50 Are you using a custom library? Feb 03 15:05:00 If you're going to give us garbage information we're just going to taunt you. Feb 03 15:06:07 lol Feb 03 15:06:55 I'm able to connect when i test it on my browser,not using any custom libraries.Using XML Feb 03 15:08:45 Zenix11: what happens when you try to connect using code on Android? Feb 03 15:09:35 Leeds : Basically its a login webservice,passing in 2 strings and getting a result of 1 or 0. But i'm getting it successfully each time i try,regardless of whether it's supposed to fail or succeed Feb 03 15:10:09 Hi all Feb 03 15:10:17 and you've debugged it, so you know if the problem is in the request, the processing, the response, or the handling of the response? Feb 03 15:11:26 i would say its the processing of the response,i suppose Feb 03 15:11:58 do you suppose, or do you know? Feb 03 15:12:32 Zenix11: you still have not told us anything. Feb 03 15:12:49 Attach a debugger. Feb 03 15:12:52 Look at the output that you're sending. Feb 03 15:12:56 Look at the output that you're receiving. Feb 03 15:13:20 Alright,i'll try now Feb 03 15:14:09 do, or do not... Feb 03 15:15:10 do or die Feb 03 15:16:26 i apologize if my way of answering questions wasn't what u guys wanted,i'm new to android Feb 03 15:16:39 Leeds there is no try Feb 03 15:30:06 Quick question. I have a ClickableSpan on part of a TextView which is a cell in a TableLayout. But I can't click it. Any reason why that might be? Feb 03 15:30:22 Zenix11: no luck? Feb 03 15:31:54 Leeds : I'm still trying,the string's read correctly but its the processing of the response that has issues Feb 03 15:41:29 Is there a way (with built in functions) to stretch/pinch pixels from one coordinate to another?blending the pixels in-between? Feb 03 15:42:15 Anybody have a decent solution for windows not reSizing for the soft keyboard in fullscreen mode? Feb 03 15:44:08 applimentcell, have you considered OpenGL? Feb 03 15:45:01 or renderscript Feb 03 15:46:25 can you get eclipse to deploy an app to all devices, rather than brining up the dialog? Feb 03 15:47:16 what other screens are xhdpi? Feb 03 15:47:23 becuase only 1.0% are on ICS, but 1.8% are xhdpi Feb 03 15:48:06 are tablets xhdpi? Feb 03 15:48:57 ... Feb 03 15:49:00 please dont start with me Feb 03 15:49:19 don't make him take off his |work and assault you. Feb 03 15:49:26 hahaha Feb 03 15:49:29 lol Feb 03 15:49:52 o no he didnt Feb 03 15:50:07 lol Feb 03 15:50:09 Mrenouf, never thought of opengl for just image mod. I thought it was more for animation and game mechanics Feb 03 15:50:24 the GalNex is the only xhdpi Feb 03 15:50:34 applimentcell: it's simply an API to access the GPU Feb 03 15:51:04 canadiancow|work: I have a feeling those %'s are off Feb 03 15:51:10 canadiancow|work, I would make a script using adb Feb 03 15:51:15 VJTachyon hten how can 1% bc ics and 1.8% be xhdpi? Feb 03 15:51:29 I dont think they are the same sample lot Feb 03 15:51:29 because theres another device with xhdpi? Feb 03 15:51:33 which was my first question Feb 03 15:51:42 adb devices | xargs .... Feb 03 15:51:43 you are assuming they are measuring the exact same set Feb 03 15:51:45 idk if the lg nitro is, but it shoudl be Feb 03 15:51:47 Leeds : Basically its converting the response to a string that i have issues with,for the android side Feb 03 15:52:00 at the exact same time Feb 03 15:52:06 Hmm I'll have to look into it and see if there is anything that can shift pixels. I tried using bitmapmesh at first but didn't get too far Feb 03 15:52:13 oh Feb 03 15:52:17 an CM9 is ICS Feb 03 15:52:18 i think there might be other xhdpi devices shipping GB right now Feb 03 15:52:40 so anybody flashed with CM9 or anybody running AOSP on the Nexus S Feb 03 15:53:18 just got it up on my nook color couple nights ago. Feb 03 15:53:25 thats what she said Feb 03 15:53:45 hmmm... Feb 03 15:53:52 can I compile the Android 4.0 Sourcecode for Samsung Galaxy S 2? Feb 03 15:53:56 How do i draw those nice things like that: http://designreviver.com/wp-content/uploads/2010/08/dr_iphone_sketch_04.jpg ? Feb 03 15:54:05 MarcAurelio: if you rewrite all the drivers.. sure Feb 03 15:54:09 VJTachyon, i put an official ICS build on a nexus s Feb 03 15:54:15 canadiancow|work: me too Feb 03 15:54:18 everythingWorks: with a pencil. Feb 03 15:54:26 moon: i dont think so 0o Feb 03 15:54:37 O.o Feb 03 15:54:54 I thought there were programs for that :) Feb 03 15:54:56 ( . )( . ) Feb 03 15:55:47 And how do I know, VJTachyon? Feb 03 15:56:08 MarcAurelio: you do realize thats basically what CyanogenMod is right? Feb 03 15:56:35 MarcAurelio: Porting AOSP to other devices by porting/rewriting drivers for them Feb 03 15:56:36 no Feb 03 15:57:23 hmmm... Feb 03 15:57:51 CyanogenMod is hardly AOSP anymore :P Feb 03 15:58:03 About as much AOSP as htc sense Feb 03 15:58:23 http://forum.xda-developers.com/showthread.php?t=1393412 Feb 03 15:58:25 SimonVT: uhm, not even close to that extreme Feb 03 15:58:32 it's aosp-like :) Feb 03 15:58:32 SimonVT: true enough Feb 03 15:58:36 dangit... cellphone app crashed. If anyone sent anything about openGL or anything I had typed a moment ago... unfortunately I didnt get to see it :/ Feb 03 15:58:42 thedonvaughn: It looks like AOSP, sure Feb 03 15:59:04 Just because they didn't change the theme doesn't mean it's close to AOSP Feb 03 15:59:39 I really can not program. I wondered if you could just as easily download the source code to compile and then with a few settings could have been. Feb 03 15:59:39 but that's just me ^_^ Feb 03 16:00:58 sooo... Feb 03 16:01:00 I am writing Application which is a Service, the UI of app is some settings. Is there anyway I contribute my settings to OS's settings menu? Not on its own, but in the overall settings? Feb 03 16:01:08 about that ime screen resizing in full screen Feb 03 16:01:44 xbb no Feb 03 16:02:00 moonlightcheese, is that a security feature? Feb 03 16:02:08 its a ... sanity feature Feb 03 16:02:13 why would app settings go in system settings Feb 03 16:02:21 that's...unintuitive and stupid Feb 03 16:03:03 canadiancow|work, why is it stupid? Feb 03 16:03:15 because they are settings for YOUR APP Feb 03 16:03:23 therefore they should go in your app Feb 03 16:03:36 otherwise no one will ever find them Feb 03 16:04:05 that's what doc is for I guess Feb 03 16:04:14 I am coming from Eclipse development and you can either create your own menu or contribute to platform's overall preferences/settings. That's why I am asking. Feb 03 16:04:43 but there you are exnteding eclipse Feb 03 16:04:51 so it makes sense that your settings go in eclipse Feb 03 16:04:56 here, you are making a separate application Feb 03 16:04:59 Imagine the uselessness of settings if ANY app could add their settings to it.. 100 different entries Feb 03 16:05:07 plugin = application Feb 03 16:05:37 ok, no means no. Feb 03 16:05:42 thanks Feb 03 16:07:50 plugin != app Feb 03 16:07:54 plugin == plugin Feb 03 16:08:58 canadiancow|work, I was making a generalization. Plugin has its states and can be stopped, paused, restarted. Feb 03 16:11:14 canadiancow|work, http://wiki.eclipse.org/FAQ_What_is_an_Eclipse_application%3F Feb 03 16:12:19 it does it mean that plugin is application, but it a building block of platform I suppose Feb 03 16:13:13 argh Feb 03 16:13:22 why the hell would they disable resizing in full screen Feb 03 16:13:36 how would you guys handle this? Feb 03 16:14:05 getting a soft keyboard to resize a listview in fullscreen mode Feb 03 16:15:49 VJTachyon: you mean adjustResize? Feb 03 16:16:17 VJTachyon: http://code.google.com/p/android/issues/detail?id=20235 Feb 03 16:16:45 fullscreen supposedly still has that problem, but 3.0+ fixes the general landscape-doesn't-respect-adjustresize problem Feb 03 16:16:56 and i can confirm < 3.0 has the bug in landscape. =/ Feb 03 16:17:05 yeah im not too worried about landscape Feb 03 16:17:13 im in portrait and it wont work Feb 03 16:17:22 im just trying to figure out how to deal with this Feb 03 16:17:46 http://code.google.com/p/android/issues/detail?id=5497 Feb 03 16:18:37 if a .NET webservice returns int,is it possible for a android webservice to process results .toString()? Feb 03 16:18:57 what a pain Feb 03 16:19:23 hah ICS bug Feb 03 16:19:31 the pressed state on my back button (galaxy nexus) is active Feb 03 16:19:33 but im not touching it Feb 03 16:20:05 bah Feb 03 16:21:12 hmm guess no one can help Feb 03 16:22:10 Zenix11: why cant android get the int and turn it into a string? Feb 03 16:23:40 hi Feb 03 16:23:50 HI! Feb 03 16:24:06 wtf is an android web service Feb 03 16:24:11 good question Feb 03 16:24:20 crowd sourced datacenter Feb 03 16:24:22 i wonder if that owuld work Feb 03 16:24:28 hah Feb 03 16:24:28 carrier puts an app on everyones phone Feb 03 16:24:33 then they dont need a datacenter Feb 03 16:24:39 like bittorrent Feb 03 16:24:54 but more than just file transfer Feb 03 16:25:24 how to crash a cellular network in 5 minutes Feb 03 16:25:45 well basically its just web services that return/get data,depends on how i process my data Feb 03 16:26:15 VJTachyon, i think the existing apps already do that quite well Feb 03 16:26:19 trying to communicate through XML between .NET and android using .NET webservices Feb 03 16:28:12 i have a listview with imageviews, but only some items have images. If i scroll the listview the images are not correctly displayed with the items. Do i need to set a resource for all the imageviews? Feb 03 16:29:44 >_< Feb 03 16:29:49 I... I probably don't want to do this Feb 03 16:29:53 but pastebin your code Zenix11 Feb 03 16:29:58 got a question and i can't figure it out on my own... is there an interactive tutorial on how to learn C? i want to start working on updating kernels to 3.x so they're actual ICS kernels, but i can't learn C just by reading, i have to actually DO it to learn Feb 03 16:30:00 also consider using an XML parser library Feb 03 16:30:08 got a question and i can't figure it out on my own... is there an interactive tutorial on how to learn C? i want to start working on updating kernels to 3.x so they're actual ICS kernels, but i can't learn C just by reading, i have to actually DO it to learn Feb 03 16:30:16 Hmm alright,i'll try Feb 03 16:30:19 Hello folks Feb 03 16:30:19 zo1d: hop over to #C and ask for advice Feb 03 16:30:25 though they'll probably just tell you to get K&R Feb 03 16:30:28 I continually get this error in one of my activiites :: Can't create handler inside thread that has not called Looper.prepare() Feb 03 16:30:44 Cpudan80: Don't create a handler inside of a thread that hasn't called Looper.prepare. Feb 03 16:30:48 The UI thread runs on a Looper Feb 03 16:30:51 so it's safe to use a Handler there Feb 03 16:30:59 sorry if i posted more than once, it's not showing that my message posted... :x Feb 03 16:31:07 lov: Right -- but I don't create any handlers in the non UI thread Feb 03 16:31:09 zo1d: it shows up. Feb 03 16:31:16 Cpudan80: what's the stacktrace Feb 03 16:31:44 lov: The stack trace is obfuscated, and my thing to remove the obfuscation is currently broken Feb 03 16:31:57 >_< Feb 03 16:32:01 lov: but let me ask this ---- in the thread it does doneHandler.sendEmptyMessage(0); Feb 03 16:32:03 Build without proguard and try again I guess Feb 03 16:32:09 Cpudan80: that should be fine Feb 03 16:32:14 the issue is with the Handler's constructor Feb 03 16:32:20 lov: Well I cant reproduce it on my dev phone Feb 03 16:32:25 hmm Feb 03 16:32:31 lov: OK so - right, but doneHandler is defined as :: private Handler doneHandler = new Handler() Feb 03 16:32:42 Cpudan80: can you pastebin some relevant code? Feb 03 16:32:51 this might be useful: http://bitgrind.com/~mrenouf/android-4.0.3_r1/ Feb 03 16:32:52 So Im thinking that the secondary thread is actually constructing the doneHandler Feb 03 16:32:59 instead of hte primary thread Feb 03 16:33:12 lov : http://pastebin.com/ReugiZim Feb 03 16:33:20 i made a java xref of all the AOSP java code Feb 03 16:33:35 lov: Do you think that's possible? Feb 03 16:35:23 lov: Here's the general flow http://pastie.org/3310077 Feb 03 16:35:48 Im thinking that somehow doneHandler is created inside run (vs on create) Feb 03 16:36:28 Cpudan80: O_O Feb 03 16:36:51 Where do I download source jar for android 4.0? Or do I need to build it myself? Feb 03 16:36:57 Cpudan80: just.... just use an AsyncTask ._. Feb 03 16:37:28 lov: Well ... that's probably what should be done, but someone implemented it incorrectly Feb 03 16:37:40 Yeah I guess I need to fix it properly Feb 03 16:37:41 ... Feb 03 16:37:49 * Cpudan80 grumbles Feb 03 16:38:02 Quick question. I have a ClickableSpan on part of a TextView which is a cell in a TableLayout. But I can't click it. Any reason why that might be? Feb 03 16:38:05 lov: But I still need a handler for when the async task completes, right? Feb 03 16:38:28 Zenix11: 1) use an AsyncTask for this; don't do networking on the IO thread Feb 03 16:38:38 Cpudan80: not necessarily, everything except doInBackground runs on the UI thread Feb 03 16:38:43 (or just about everything, check the docs) Feb 03 16:38:45 lov: oh right, dur Feb 03 16:38:50 lov : that i know,i'll transfer it over to AsyncTask when the code works Feb 03 16:38:55 OK -- I will fix the broken code Feb 03 16:39:03 I'll do what's right, not what's easy Feb 03 16:39:24 lov : Basically its a android app dependent on webservices,so i'm thinking to do it using XML Feb 03 16:39:29 Zenix11: 2) You should probably just cache getContent Feb 03 16:39:35 and then inspect it Feb 03 16:39:41 and see what you're actually getting back Feb 03 16:39:43 that's really step 0 here Feb 03 16:40:10 if your server has logs, you might ALSO want to inspect what url you end up calling Feb 03 16:40:15 i.e. what gets passed for uname/pass Feb 03 16:40:29 lov : Sorry,but..how do you cache getContent? Feb 03 16:41:12 Oh, I thought you were using something else, 1 sec Feb 03 16:41:21 there's some nice convenience class that just takes the result and turns it into a string Feb 03 16:42:13 lov : its just code snippets i adapted to try,but i'm hoping its not other issues,since i could test the exact webservice on a browser and it returned correct results when the login was wrong Feb 03 16:42:39 lov : Sure Feb 03 16:42:42 * lov shrugs Feb 03 16:42:54 anyone can help me with a problem with imageviews in listviews? if i only set a resource image for some of the items, then when scrolling the listview the images are displayed on wrong items. Do i need to set a resource for every imageview? Feb 03 16:43:08 well,i'm completely new to webservices :/ Feb 03 16:43:09 Create a ByteArrayOutputStream, call response.getEntity().writeTo(baos); Feb 03 16:43:16 Hello... how can i keep a service alive across multiple activities ? in Activity A i use bindService... when i switch to Activity B and dont use unbind, i get an exception.. but if i use unbind the service is closed cause no activity is bound to it Feb 03 16:43:22 Create a new string by using the bytes returned by baos.getBytes(); Feb 03 16:43:25 inspect that string Feb 03 16:43:29 see what the actual output was Feb 03 16:43:40 ressaca: Read the AdapterView docs Feb 03 16:43:46 ressaca: the views that you're creating are going to get recycled Feb 03 16:44:00 so you need to create the viewgroup if it exists, and then set the values of all of the contents Feb 03 16:44:22 so yes, for every getView call you get, you have to set everything Feb 03 16:44:24 ok, so i need to set all of them Feb 03 16:44:26 thanks lov Feb 03 16:44:29 you don't, however, need to create new layouts each time; Feb 03 16:44:30 Morning, I've just started using TabHost with one Activity for each tab but I've heard this is not a good approach, why is that? Feb 03 16:44:33 only if the recycled view is null Feb 03 16:44:43 yes, i'm doing it Feb 03 16:44:46 ANdi``: startService Feb 03 16:45:00 but i only set the resource to the image when i needed it Feb 03 16:45:19 i don't want all the items to show the imageview Feb 03 16:45:21 lov bindservice + startservice ? Feb 03 16:45:22 ressaca: you need to clear out the resource/image when you don't need it Feb 03 16:45:29 lov : Alright,i'll try Feb 03 16:45:31 is it even possible to get a root acces through adb, I have samsung galaxy tab 10.1 Feb 03 16:45:39 ressaca: or hide the view or whatever's appropriate for you Feb 03 16:45:39 evancharlton: ok, thanks Feb 03 16:45:51 nvt: not on the stock build, no Feb 03 16:45:56 ANdi``: yes, read the docs. Feb 03 16:46:05 ANdi``: read the Service lifecycle docs. Feb 03 16:46:17 nvt: you have to root the device first Feb 03 16:46:26 nvt: the emulators should give you root or at least allow you to su Feb 03 16:46:56 ok Feb 03 16:47:06 yes, I got root access with the emulator Feb 03 16:50:01 How do you open a specific Activity within a TabHost using a pending intent? Feb 03 16:50:24 code1: whut Feb 03 16:50:49 thx lov Feb 03 16:50:59 code1: are you trying to have a particular tab set by default? Feb 03 16:51:34 evancharlton: I've created a TabHost layout with one activity for each tab but when I use an intent to launch an activity it loads outside of the tabhost Feb 03 16:52:07 I'm trying to figure out how to load it as a tab within the tabhost view Feb 03 16:52:16 is it's possible? Feb 03 16:54:13 code1: not worth it Feb 03 16:54:15 use fragments Feb 03 16:54:18 and be freeee Feb 03 16:54:53 How would I use Fragments instead? Feb 03 16:56:04 hey guys Feb 03 16:56:22 sqlite3 requires my phone to be rooted? if i want sqlite3 to debug databases my app creates Feb 03 16:56:40 lov : i'm wondering what you meant by creating a new string by using the bytes returned by baos.getBytes(); Feb 03 16:56:53 Zenix11: create a ByteArrayOutputStream called baos Feb 03 16:57:01 have the http entity write the content there Feb 03 16:57:12 then do "String s = new String(baos.toBytes()); " Feb 03 16:57:25 (I think it's toBytes; check what the method is for ByteArrayOutputStream to get the byte array) Feb 03 16:57:45 When you click an Item in a preference screen is it possible for it to take you to another preference screen? Feb 03 16:57:48 with a list of other things? Feb 03 16:57:50 do you guys use anything other than sqlite3 to debug databases that your app writes? Feb 03 16:57:54 lov : Alright i'll try again Feb 03 16:58:21 sileni: grit and gumption Feb 03 16:58:26 perhaps a touch of wit Feb 03 16:58:36 Bear10: sure Feb 03 16:59:02 lov, what is it called? and is there a way to monitor when the data has been changed? Feb 03 16:59:10 lov: i searched on google for grit and gumption Feb 03 16:59:13 because i'd like to update my sqlite info Feb 03 16:59:18 lov: are those tools that comes with the sdk? Feb 03 16:59:40 Bear10: you probably just create your own custom preference dialog or activity or whatever for that item Feb 03 16:59:48 unless you mean "tap an entry on the screen, go to another list" Feb 03 16:59:58 yeah thats what i meant by the first part Feb 03 17:00:02 in which case you're just embedding PreferenceScreens insidePreferenceScreens Feb 03 17:00:07 i see Feb 03 17:00:09 thanks Feb 03 17:00:11 http://developer.android.com/reference/android/preference/PreferenceScreen.html Feb 03 17:00:17 lov : Alright,i did what was asked,now how do i inspect the string? Feb 03 17:00:28 sileni: no, that was sarcasm :< Feb 03 17:00:44 lov: oh...sorry Feb 03 17:01:10 lov: i guess its Toast messages galore! Feb 03 17:01:15 sileni: http://dictionary.reference.com/browse/grit Feb 03 17:01:17 see definition 2 Feb 03 17:01:19 sileni: oh uh Feb 03 17:01:25 sileni: consider using Logcat instead of toasts :P Feb 03 17:01:43 Zenix11: either emit it via logcat or attach the debugger and inspect the variable when you break there Feb 03 17:01:52 lov :Alright,thanks Feb 03 17:03:39 lov: thank you, logcat it is Feb 03 17:05:34 so without root access Í can't access any databases for example the browsers database etc. I can only access my own applications' databases with emulator Feb 03 17:06:26 *web browser's Feb 03 17:06:55 I'm too tired to write, probably time to go to sleep Feb 03 17:09:38 nvt: of course not Feb 03 17:10:30 evancharlton that's silly Feb 03 17:10:35 all apps should be allowed to access evyerhting Feb 03 17:10:40 yeah Feb 03 17:10:42 like webos Feb 03 17:10:51 thats why its so much better than android Feb 03 17:12:24 Any idea on how to fix my buttons shrinking in a dialog whenever I type in a edittext box that expands when so many words are entered? Feb 03 17:13:50 lov, any suggestion on how i could make it so if i click an item it takes me to a whole new screen (a custom one i make and not one that exists)? I'm having trouble finding the correct class. Feb 03 17:14:04 actually Feb 03 17:14:07 i think i found a tutorial Feb 03 17:14:13 Activity? Feb 03 17:15:33 oh no i didnt Feb 03 17:16:05 canadiancow|work, just a simple activity? i can list that as an item in a Preferences xml? Feb 03 17:17:26 Back Feb 03 17:17:58 lov : the result i got was this : System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) Feb 03 17:18:11 Zenix11: welp Feb 03 17:18:18 I have no goddamned clue what that is Feb 03 17:18:25 but it sounds like the start of a stacktrace Feb 03 17:18:34 take a look at what's actually being sent to your server. Feb 03 17:18:37 check your server logs. Feb 03 17:19:00 I'm strongly suspecting that the arguments you're passing are incorrect in some way Feb 03 17:19:15 and the raw logs that your server has for what's actually being sent will probably be the very easiest way to figure that out Feb 03 17:19:37 Hello people. I'm trying to display a SearchDialog when user presses the search button of the device, but it doesn't show up. I even callsed onSearchRequested() manually, and still doesn't work. http://paste.lisp.org/display/127487 Feb 03 17:19:58 lov : hmm how do i check server logs? Feb 03 17:20:22 I'd like to put a custom ListFragment into a Dialog, is there any way to do so? (using compatibility package for fragments) Feb 03 17:22:18 Zenix11: jesus I don't know, it's your server Feb 03 17:22:43 lov : hmm ok Feb 03 17:23:41 lov: hey, i'm going to have tables in my app that might get updated by the server once in a while. Instead of reading all the tables from the server everytime the app is started. I'm thinking about having version number for the tables and an initial call to the server will just compare version numbers. Is this the best route for this problem..or have you run across something else? Feb 03 17:24:08 sileni: this is one way to do things. Feb 03 17:24:13 Look at SQLiteOpenHandler Feb 03 17:24:17 it lets you provide a version number Feb 03 17:24:26 and has hooks to allow you to upgrade when the version is different Feb 03 17:24:28 what is the best way to make a quick and easy android app? Feb 03 17:24:37 Syliss: smash your forehead on the keyboard Feb 03 17:24:47 i can do that ;) Feb 03 17:24:47 press the run button in eclipse and hope for the best Feb 03 17:24:52 lol Feb 03 17:24:53 d.android.com to get started Feb 03 17:25:00 Syliss: there are some tutorials on the android dev pages Feb 03 17:25:04 there are a zillion tutorials and books out there Feb 03 17:25:09 Syliss: you can look at it ... copy paste and run to see how they work Feb 03 17:25:48 okay. wanting to get the free playbook so i can sell it for a Real android tablet ;) Feb 03 17:25:59 or at least towards one Feb 03 17:26:15 lov: thank you, i will look at the SQLiteOpenHandler .. i think that route is much more elegant Feb 03 17:29:59 is there any way to stop edittext in a dialog from squishing my buttons? Feb 03 17:30:11 Anyone here have a Galaxy S II want to help me out for a minute or two? Feb 03 17:30:42 pardom: just ask the question, if someone has it, and they are willing to help... they will. Feb 03 17:31:31 The question is specific to GS II audio sample rates and will require you to run an audio diagnostic app. Feb 03 17:31:53 And report back the supported sample rate. Feb 03 17:32:30 The app is here: http://www.michaelpardo.com/files/AudioDiagnostic.apk Feb 03 17:54:01 I'm launching a new activity with these flags... intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); any idea why i can still press the back button and it takes me to the preference screen? Feb 03 17:54:35 I'm sort of an Android/Java newb, but I've got a question about WebView and WebTextView… I'm making a hybrid app (Java+WebView aka Javascript) that utilizes css3 transitions. I have found that css3 placed divs will break input fields (or WebTextViews) and make them only semi-functional. By "Semi" I mean, selection is broken, auto-complete is broken, and it has lag issues on some keyboards, among other things… I believe this is cause Feb 03 17:54:35 WebView isn't calculating the input fields position correctly and is misplacing the WebTextView and causing the app to freak out… So my question is… Is there a way to grab the WebTextView created then position it properly using my own logic? Or am I on the wrong track and need to do something else… idk, just looking for any help here :\ Feb 03 17:58:28 http://www.h-online.com/open/news/item/90-of-Android-devices-now-running-2-2-and-later-1427803.html Feb 03 17:58:47 " also, many devices are still being sold with Android 2.2, Froyo." Feb 03 17:58:51 froyo FTW ! Feb 03 17:59:56 havent 90% been running 2.2 for a while now? Feb 03 18:02:30 and is shit still being sold with froyo? Feb 03 18:02:33 "Microsoft also highlighted opportunities for developers to "reuse -- by far -- most of their code" when working between WP8 and the Windows desktop" <-- very nice Feb 03 18:02:37 froyo was awesomesauce back in may 2010 Feb 03 18:02:51 canadiancow|work : its still awesome ! Feb 03 18:02:53 g00s, im sure that's true with iOS and OSX Feb 03 18:03:32 Dansl: You might not be able to do anything here, sorry Feb 03 18:03:54 Dansl: There's probably some bugs with webkit that you're running into, so you should submit a bugreport on b.android.com Feb 03 18:04:05 however, even when this is fixed, you'll still have users using phones with broken versions for a couple years Feb 03 18:04:12 so you'll have to worry about people having trouble with that Feb 03 18:04:22 canadiancow|work: I think that stuff is still being sold with it somewhere Feb 03 18:04:25 what i'm curious about though, with phone 8, is what its preferred development language will be. seems like it might actually be c++ Feb 03 18:04:46 although the silverlight stuff will still be compatible Feb 03 18:05:23 i kinda miss c# Feb 03 18:05:39 or as some dumbass calls it, "see pound" Feb 03 18:06:01 lol what an idiot. everyone knows it's see octothorpe Feb 03 18:06:17 hm ok… thanks lov Feb 03 18:07:44 evancharlton: see sharp. see sharp run. run sharp run. Feb 03 18:08:06 c# seemed to be "java with the benefit of a decade or so of hindsight" Feb 03 18:09:25 wow, what's up with google today? Feb 03 18:09:31 ? Feb 03 18:10:06 I'm getting a security certificate error while trying to go to gmail or sign into gchat Feb 03 18:10:57 you got haxd, br0 Feb 03 18:11:04 probably the chinese ;p Feb 03 18:11:21 hmm Feb 03 18:12:34 lov: congratulations Feb 03 18:12:47 oh bah your gps notification bragging was like huors ago Feb 03 18:14:56 Hey guys Feb 03 18:15:02 Is there any reason why C2DM won't always receive messages. I'm using the emulator, and it is registering fine. But it seems to take a while of sending for a message to arrive. Feb 03 18:15:16 any idea how apps are able to stay up high in the charts, are a lot of people advertising and having good luck? Feb 03 18:15:29 you just have to bribe evancharlton Feb 03 18:16:35 evancharlton, uh, I have an envelope I'm gonna slide over to you Feb 03 18:16:53 It also includes a picture of a young demi moore Feb 03 18:18:17 ah, somehow my time got set back to 2000 Feb 03 18:19:24 mikedg: ? Feb 03 18:19:44 you said you had 2 days of 3 sales Feb 03 18:20:24 oh no Feb 03 18:20:36 thenovelist, if you send me $500 i'll put you in the top 500 spot for a day Feb 03 18:20:38 rgravener was suggesting that I buy ads in his app for $100 or something Feb 03 18:20:49 so I was saying "yay that will give me 6 sales for $6" Feb 03 18:20:58 oh :( Feb 03 18:21:03 sorry Feb 03 18:21:13 canadiancow|work: (* - offer only applies if app is currently in top 500 already) Feb 03 18:21:16 forgot your footnote Feb 03 18:21:22 oh thanks Feb 03 18:21:22 yea Feb 03 18:21:26 thenovelist: it's a combination of making a solid app and having a good relationship with google Feb 03 18:21:29 also, not being canadiancow Feb 03 18:21:30 or jasta Feb 03 18:21:50 Seems like the google team is small Feb 03 18:22:12 it's not the size of the development team Feb 03 18:22:20 i have a great relationship with google Feb 03 18:22:25 romainguy and i are like bff's Feb 03 18:22:33 question, I am trying to map screen coordinates into world coordinates using GLU.gluUnProject and I've noticed that if I feed in 0 as the z-value (or a depth_buffer_bit read from gl.glReadPixels) I get -1 back as the z coordinate in the world, which doesn't make any sense. Any idea why this happens? Feb 03 18:22:35 So far I haven't gotten our title very noticed https://market.android.com/details?id=com.batteryacidgames.streetball&feature=apps_topselling_paid#?t=W251bGwsMSwyLG51bGwsImNvbS5iYXR0ZXJ5YWNpZGdhbWVzLnN0cmVldGJhbGwiXQ.. Feb 03 18:23:25 it's screwing up my computation of an implied deltaTheta in a drag-triggered rotation in the GLSurfaceView in question Feb 03 18:23:57 james541: damn, kpreid isn't around :P Feb 03 18:24:02 thenovelist: blast it to lifehacker or phandroid or whatever Feb 03 18:24:06 also, buy ads Feb 03 18:24:08 buy lots of ads Feb 03 18:24:13 I'm getting world coordinates like {0.1740..., 0.065152...., -1.0} Feb 03 18:24:21 anyone know why i can still go back to activites in the history even though im launching a different one with, intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Feb 03 18:24:22 ? Feb 03 18:24:23 admob ads or just google search ads? Feb 03 18:24:24 aww Feb 03 18:24:32 thenovelist: yes. Feb 03 18:24:45 thanks evancharlton, was hoping he or some other OpenGL android guru would be around Feb 03 18:24:46 Bear10: look at your manifest, see what your activity is configured for. Feb 03 18:24:48 is it singleTask? Feb 03 18:24:57 lov, its the main task Feb 03 18:25:06 not really what I asked. Feb 03 18:25:28 http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Feb 03 18:25:31 this fellow Feb 03 18:25:40 default then heh Feb 03 18:25:51 bear in mind that if you're going from task A to task B Feb 03 18:25:55 and this is the only thing on task B Feb 03 18:26:00 pressing back is going to take you right back to task A anyway Feb 03 18:26:05 this is good and expected. Feb 03 18:26:17 lov, well what im trying to do is the following Feb 03 18:26:38 my main screen is a registration screen (if its registered it takes you to another one immediately and you shouldnt be able to come back to it. this works fine) Feb 03 18:27:07 however i then added a preference that says "unregister this account" which deletes an sqlite db and returns you back to that registration screen Feb 03 18:27:20 sinc you're no longer registered it should not allow you to press back and go back to any activity (should be nothing in the history) Feb 03 18:27:22 Bear10: set your activities as singleTask Feb 03 18:27:42 lov, okay all? or just the main one Feb 03 18:30:08 lov, well setting it on the main didnt seem to help Feb 03 18:37:30 www.todomapr.com ... app should be out soon, finishing up the real website and web service Feb 03 18:38:04 QubeZ: whoa Feb 03 18:38:08 QubeZ: is that all done by you ? Feb 03 18:38:31 i wrote the app.. the video is my graphic designer partner who is also doing the real website Feb 03 18:38:52 the voice is someone we hired, Allison, she does voice for tmo, verizon, and voice over ip companies Feb 03 18:39:26 QubeZ: was about to say.. that vid looks off the charts Feb 03 18:39:32 QubeZ: how much did she charge for that clip? Feb 03 18:39:46 sileni: the audio was $180 Feb 03 18:40:20 that was his first video, he usually does just graphic design for websites but we needed a promo vid so he took a crack at it Feb 03 18:40:59 QubeZ: dang man, can he do websites in general or just design Feb 03 18:41:04 QubeZ: i need someone this good Feb 03 18:41:19 he does html/php (wordpress) Feb 03 18:41:46 Bear10: all of the activities that you want to be in that task Feb 03 18:41:47 he goes through the whole wireframe to adobe illustrator mockup to html/wordpress Feb 03 18:41:51 where you want there to only be one task for it Feb 03 18:41:55 i.e. your registration flow Feb 03 18:42:04 consider also using singleTop for that registration activity Feb 03 18:42:13 registration sucks Feb 03 18:42:19 pragma_: +1 Feb 03 18:42:26 you sucks Feb 03 18:42:31 suck me Feb 03 18:42:43 kinda gay Feb 03 18:44:23 QubeZ: looks very cool, hope it goes well man! Feb 03 18:44:50 thanks, we're going all out on it with tutorial vids and such... it'll be a product im proud of Feb 03 18:45:07 should see an early release program later this month Feb 03 18:45:08 QubeZ: it's a neat app idea. I hate the voice though. Feb 03 18:45:14 I feel like I'm watching a commercial Feb 03 18:45:23 there's no energy there Feb 03 18:45:35 really there's no range in the tone of voice. Feb 03 18:45:40 lov: lol yea... thats why the tutorial vids are being voiced over by my wife Feb 03 18:45:46 hah Feb 03 18:45:47 she has range Feb 03 18:45:56 i have girth Feb 03 18:45:58 lol Feb 03 18:46:13 pragma_: you are QubeZ's wife? Feb 03 18:46:37 sileni: its your fantasy Feb 03 18:46:40 my wife is an accountant... she wouldn't be here Feb 03 18:46:51 oh Feb 03 18:46:59 props to Qubez, sweet idea Feb 03 18:47:05 (just saw the vid) Feb 03 18:47:10 you mentioned , your wife is doing the voice and she said she has girth so i thought it was your wife Feb 03 18:47:24 * lov rolls his eyes Feb 03 18:47:37 james541: thanks, so far it also handles regular tasks too without location data and sync with Google Tasks bi-directional Feb 03 18:48:00 lov, i'm still getting history and the back button still works, maybe i should just overwrite the back button functionality on that screen? Feb 03 18:48:01 hmm, can it email task lists? Feb 03 18:48:12 that would be a nice feature, and is pretty simple to do with Intents Feb 03 18:48:16 going to have a special activity to allow users to access 30-45 sec video tutorials on anything in the app... if you get lost in an actiivty you go Menu -> Video Tutorial and watch the short clip streamed from youtube using the android-youtube activity lib Feb 03 18:49:04 maybe have a text version of the instructions too? In case the user gets stuck without signal? Feb 03 18:49:05 james541: we are actually going to use c2dm to do real-time pushing of tasks... so let's say your wife sets up a task for a grocery store with items to pick up... it can be shared to you by her and then as you mark items off, her task is updated Feb 03 18:49:19 and she can also add items which will populate into your task after the fact Feb 03 18:49:32 has there been any information about new yet-to-come things coming to the android market? like private betas / commenting on user comments / coupons. etc ? Feb 03 18:49:32 that's even better than the idea I had, lol I like it Feb 03 18:49:33 james541: yup, already covered. Have two options: See Video or Read FAQ Feb 03 18:49:40 sounds good Feb 03 18:50:04 well 3rd option too: Never Show Again -- but I'm hoping people dont use that until they get good at the app Feb 03 18:50:54 anyone have any insight into why Eclipse sucks so hard with deploying/launching onto a real device? Eclipse runs out of memory and has to be restarted manually about once every 3 deployments, and half the time it won't actually launch the apron the phone without me killing the app (at which point it restarts within seconds.) it would be nice if I could just compile and launch in < 5 minutes without manual intervention... Feb 03 18:51:23 best of all, the app will be free ... just web service will cost if you want to share tasks Feb 03 18:51:39 kids today and their videos and faqs. back in my day we just had a textfile README that said "use at your own risk" Feb 03 18:51:43 er… that was supposed to be "app on", not "apron" :-) Feb 03 18:51:57 PeteS how big is your app? Feb 03 18:51:58 PeteS: I can't say I have that issue. Eclipse is heavy on memory, but nothing out of the ordinary Feb 03 18:52:16 I mean Eclipse is a bloated, bloated thing but I'm not getting compile-> deploy times that long Feb 03 18:52:27 with 14+ activities Feb 03 18:52:48 its fast enough where i don't use the emulator, and just deploy to a device Feb 03 18:52:57 looks like right now it's around 5 MB Feb 03 18:53:13 +1 to bryan1, the emulator is wayyy slower Feb 03 18:53:26 yeah... my app is a little over 10MB Feb 03 18:53:34 how much RAM is on your dev machine? Feb 03 18:53:41 Hello Feb 03 18:53:48 what model android phone are you using for testing? Feb 03 18:54:00 it takes a minute to build sometimes, which to me seems nuts but that would at least be tolerable. it just seems to always choke on actually uploading and restarting the app. if I kill it manually it speeds things up tremendously, but it's like… why can't Eclipse just do that automatically? Feb 03 18:54:09 HTC Rhyme. android 2.3 Feb 03 18:54:41 right now Eclipse is on "waiting for build" with no indication of WTF it's doing… >-O Feb 03 18:55:33 do you use source control? Feb 03 18:56:07 PeteS: I have no idea what the hell you're doing Feb 03 18:56:12 but I don't have these problems Feb 03 18:56:15 Anyone having an idea on how to debug this ? http://paste.lisp.org/display/127487 (search dialog doesn't show up) Feb 03 18:56:19 the amount of max memory eclipse will use is generally low though Feb 03 18:56:29 open up the eclipse.ini file and change the Xms value from 256 to like 768 or 1024 Feb 03 18:56:34 ok the Rhyme has plenty of RAM Feb 03 18:56:37 I don't think it's that Feb 03 18:56:56 Bear10: .... please don't override the back button. Feb 03 18:57:01 well Feb 03 18:57:02 you can Feb 03 18:57:08 but you really should be handling this appropriately on the task stack Feb 03 18:57:13 also are you getting any errors from the "Console" while it's uploading? or is it just really slow? Feb 03 18:57:17 lov, i'm trying to Feb 03 18:57:33 i mean all i want is everything in the history to disappear, and to show the Main.java, only Feb 03 18:57:39 ... Feb 03 18:57:40 (the Main activity) Feb 03 18:57:44 ok so Feb 03 18:57:46 in your manifest Feb 03 18:57:52 set your Main activity to be singleTop Feb 03 18:57:56 have your other activities to singleTask Feb 03 18:58:08 sileni: i just re-read your comments, the vid clip wasn't charged for... he's my partner in the LLC to make apps. The audio we outsourced and was charged $180 for the 1 1/2 minute clip. Feb 03 18:58:12 when an intent for your Main activity comes in, make sure you're using CLEAR_TASK or whatever flag that is Feb 03 18:58:17 that should clear the task stack Feb 03 18:58:18 yeah Feb 03 18:58:21 i do use that let me try again Feb 03 18:59:37 QubeZ: i see Feb 03 18:59:47 QubeZ: what does LLC stand for ? Feb 03 18:59:57 LLC is a Limited Liability Company Feb 03 19:00:09 Controlled Senility, LLC <-- my company Feb 03 19:00:19 thanks, will try increasing the max men in eclipse.ini and see if that helps at all Feb 03 19:00:27 http://www.irs.gov/businesses/small/article/0,,id=98277,00.html more info on LLCs Feb 03 19:00:57 If I build a view Feb 03 19:01:03 for more hit up wikipedia Feb 03 19:01:04 lov, still has the issue Feb 03 19:01:06 ok i gotta head out but please sign up for the notification list for updates on the app Feb 03 19:01:07 or something that extends View Feb 03 19:01:16 Can I use it as a layout Feb 03 19:01:21 ? Feb 03 19:01:21 thanks for the feedback, hopefully in next few weeks we'll have more to get a real test out in the field from users Feb 03 19:01:35 and did as said, all activities use siingleTask and the main one uses singleTop Feb 03 19:01:36 Bear10: pastebin your manifest and relevant code. Feb 03 19:01:45 try to distill this to a test case Feb 03 19:04:07 lov, http://pastebin.com/7sVPH3U1 Feb 03 19:04:08 hey, was dBus deprecated for ICS? Feb 03 19:06:51 gandhijee_: it was never exported so... Feb 03 19:07:05 and at least some system parts used it Feb 03 19:07:37 p_l: does ICS use it for any of its system ports? Feb 03 19:07:38 *parts Feb 03 19:07:56 probably Feb 03 19:08:05 I don't think they replaced BlueZ, for example Feb 03 19:08:06 I don't think dBus was ever a published API. Don't rely on it ever being there Feb 03 19:08:36 it's used by BT api, but it's not exported Feb 03 19:10:55 holy crap, apple + samsung account for 91% percent of the profit share among phone vendors Feb 03 19:11:09 (apple 75%, sammy 16%) Feb 03 19:13:44 * g00s ponders whether to use libreoffice or openoffice. ibm says they will back openoffice, but they also backed harmony ... and we know how that went Feb 03 19:15:31 Bear10: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK Feb 03 19:15:40 g00s: libreoffice seems to be where the majority of open source folks are going Feb 03 19:15:50 and/or http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Feb 03 19:15:57 i did the clear top Feb 03 19:16:19 trying it with both Feb 03 19:17:49 I wonder why ibm backed harmony when they had their own jvm Feb 03 19:18:10 and libreoffice is where all the real OOo people went Feb 03 19:19:28 I have spammed this question a few times over the past few days, but I am hoping that there might be another person that may have some online that can help: is there a built in function that might be able to help stretching/pinching of pixels based on coordinates and warp the pixels inbetween? Feb 03 19:19:50 asking on stackoverflow is your best bet Feb 03 19:19:55 lov, still has the issue Feb 03 19:20:32 its okay i think ill place the back button as a temp solution Feb 03 19:20:35 and revisit it later Feb 03 19:21:04 p_l: ok, thanks Feb 03 19:23:08 Appliment: like a 9patch? Feb 03 19:23:17 your question is a little vague Feb 03 19:23:35 honestly that sounds like some sort of graphics filter that you'd want to do at the GL level anyway Feb 03 19:23:46 filter/shader/something Feb 03 19:24:41 simple problem, I think but having issues on using ImageView...but I always crash when I open app Feb 03 19:25:00 Lyte101, so examine your crash and figure out why Feb 03 19:25:05 * pfn wonders how crittercism works Feb 03 19:25:53 pfn, I always get allocation too large for process but image is 500kb Feb 03 19:25:54 has anyone written an "internet of things" type app sharing data with sites like pachube.com? pachube looks nice, just wondering if anyone has had any experience with it, or has tried something else Feb 03 19:26:07 Lyte101, you need to ignore compressed image size Feb 03 19:26:20 Lyte101, you need to keep in mind uncompressed image size, because that's how rendering works Feb 03 19:27:39 pfn, i guess next is how do I determine its uncompressed image size Feb 03 19:27:42 Appliment do you mean scaling the size of the pixels (like zooming in, or making them k time larger) or actually transforming them (stretching them nonuniformly, twisting them, blurring them, etc)? Feb 03 19:27:48 *k times Feb 03 19:28:30 Lyte101: width*height*bpp Feb 03 19:28:48 they turn into raw bitmaps for display. Feb 03 19:30:09 lov, ah ok! Feb 03 19:30:40 if you have a super large image you want to display, consider tiling it or something and handling things that way. Feb 03 19:31:06 remember, 1024x800 is a couple of megabytes, so you almost certainly don't want a very large image to display on these devices. Feb 03 19:31:22 even 800x400 gets huge Feb 03 19:31:49 +1 at lov, especially if you are talking about 24-bit color Feb 03 19:31:58 OOM errors == bad Feb 03 19:32:17 lov, ya it is a large image but looks like I'll look more into tiling it if I can Feb 03 19:32:51 hmm, how can i remount / readwrite in the emulator Feb 03 19:33:11 birbeck: adb remount should do the trick Feb 03 19:33:15 at least for /system Feb 03 19:33:24 i tried `mount -o rw,remount /' but / isnt mapped Feb 03 19:33:39 well that's correct. Feb 03 19:33:40 and /etc/fstab and /etc/mtab dont exist Feb 03 19:33:52 you want /system, no? Feb 03 19:33:58 * evancharlton just joined the conversation Feb 03 19:34:03 i want to replace /etc/hosts on the emulator Feb 03 19:34:05 Are you trying to remount / for some reason or can you use something else Feb 03 19:34:08 oh Feb 03 19:34:11 look at what /etc is mounted under then Feb 03 19:34:34 how can i check? /etc/fstab and /etc/mtab dont exist Feb 03 19:34:39 hmm Feb 03 19:34:44 good question! Feb 03 19:34:45 and /proc/devices dont show the fs Feb 03 19:35:00 well Feb 03 19:35:02 adb shell mount Feb 03 19:35:07 I am looking at some Android source code ( AnalogClock to be precise ). There is some variable which that start with m ( mDial, mChanged ) for which I can't tell where they come from Feb 03 19:35:08 peek at the output for / Feb 03 19:35:20 ahhh, mount Feb 03 19:35:21 peipito: the parent class? Feb 03 19:35:24 thats what i was looking for Feb 03 19:35:29 rootfs Feb 03 19:35:34 birbeck: you already used mount >_< Feb 03 19:35:49 yeah, not without any arguments Feb 03 19:35:59 i needed to know the block device of / so i could remount it Feb 03 19:36:28 lov, sorry was afk.. its a bit hard to explain. I am building a small app for my girlfriends kid where he can place markers on a bitmap and each marker would warp pixels. (one would pull pixels down, one would pull them to the left etc) Feb 03 19:36:39 peipito: "m" prefix is used for member variables. Feb 03 19:37:13 Appliment: there's transform classes you can apply to views, I'm not sure quite how you're going to handle things for just PARTS of the drawable. Feb 03 19:37:14 I would need to be able to have all of the pixels between that warp stay in the picture. Any face warping would be basically what I am looking at. Feb 03 19:37:21 You might end up having to make your own class. Feb 03 19:37:28 Frankly this is a very, very good candidate for shaders and gles Feb 03 19:37:38 your small app requires its own graphics engine! :D Feb 03 19:38:29 birbeck: mount rootfs -o rw,remount / Feb 03 19:38:29 yay! ... heh I was hoping that there might be something that could simply stretch/skew and then save... I tried bitmap mesh but didnt get the best result. Feb 03 19:38:31 that seemed to work for me Feb 03 19:38:34 lov, it extends View. And there isn't an mChanged variable in View. Feb 03 19:38:36 (I haven't tried writing anything) Feb 03 19:38:45 peipito: is it anywhere else in the class? Feb 03 19:38:49 can you pastebin the relevant code? Feb 03 19:39:15 I am stupid, sorry to bother. Feb 03 19:39:46 It was class variable :( but when I clicked on it, Eclipse didn't show Feb 03 19:41:02 @Appliment you can also actually just move the pixels up/down/left/right Feb 03 19:41:06 a bit tricky but very doable Feb 03 19:41:34 if you want to be able to drag them diagonally, or anything more complicated I'm with lov, opengl es and shaders Feb 03 19:41:37 Yeah, depends. Feb 03 19:41:45 Appliment: do you want to modify just part of the bitmap, or all of it? Feb 03 19:41:51 you want to modify just part, right? Feb 03 19:42:46 yeah. in total the person moving the app would be moving 4 points... so I would have 4 x,y pairs to work with... each with their own bitmap modifiation... such as stretching up, pinching in etc Feb 03 19:42:50 am thinking he could make a bounding box with an onTouch event, and then just modify those pixels in memory and modify the displayed canvas of the activity or something Feb 03 19:43:09 ahhh Feb 03 19:43:29 gl es, don't pass go Feb 03 19:43:33 haha Feb 03 19:43:34 mostly because of the pinching in Feb 03 19:43:46 it's not a bad idea tbqh Feb 03 19:43:46 would be wayyy to slow with anything else Feb 03 19:43:51 you just need to make the dirty rect a little larger Feb 03 19:43:58 take a look at SurfaceView Feb 03 19:43:59 hmm, maybe Feb 03 19:44:02 but yeah Feb 03 19:44:07 this is generally a GL domain Feb 03 19:44:26 shouldn't be too hard to do with gl transformations Feb 03 19:44:36 might not even need shaders, depending Feb 03 19:44:54 any good place to start learning how it works? how I can use it to work with these transformations?... or just google and hope for the best? Feb 03 19:44:56 Is there any way to start an Activity from a service? Feb 03 19:45:09 I want to create a set of MVC components with controllers being services. Feb 03 19:45:52 But I need a way to get around the chicken-egg problem in that Activities can create services and bind to them, but services seem to be unable to directly instantiate activities. I could write some kind of a SpawnActivity class to do this, but was hoping to avoid it. Feb 03 19:46:48 well are you looking for photoshop-ish effects? Feb 03 19:48:02 Fallout2man: call startActivity. Feb 03 19:48:20 you can call startActivity from services; they're contexts. Feb 03 19:48:24 yeah pretty much. Fine if I post a link to a common sample? Feb 03 19:48:36 sure Feb 03 19:49:07 lov: Hrmm, weird I hadn't seen that for some reason, thanks! ^_^;; Feb 03 19:49:18 http://photoediting.dphotojournal.com/images/screenshot/face-warp.jpg Feb 03 19:49:25 thats just a googled face warp Feb 03 19:49:47 but I made this around coordinates of the markers so he can simply take a picture and have it warp Feb 03 19:50:34 hello, how can I get a resource having it's name in String value? Feb 03 19:50:44 ? http://swisscodemonkeys.appspot.com/app/warp/android-face-effects-create-fun-face-effects.html Feb 03 19:50:57 seems similar to what you want to do, and it's free Feb 03 19:51:27 http://swisscodemonkeys.appspot.com/app/fxbooth/android-effect-booth-get-fun-real-time-image-effects-on-your-phone.html Feb 03 19:51:44 pretty much. I just wanted to have it done in the background and show a result. Feb 03 19:51:51 hmm, ok Feb 03 19:51:57 someone knows why in the notification bar there's no mpore the resizing of the image of the notification intent ? Feb 03 19:52:09 in 4.0.* Feb 03 19:53:16 We have an app that uses the BluetoothHeadset class and targets ICS. Is there a way to target Gingerbread and still have our code compile? I know there are the compatibility packages, but they don't have anything for Bluetooth? Feb 03 19:53:24 you could use this, not sure if it has photobooth effects, but it's the sort of library that would make your life easier Feb 03 19:53:26 http://opencv.willowgarage.com/wiki/ Feb 03 19:53:32 you'd have to use the NDK though Feb 03 19:53:39 as the Java interface isn't done yet Feb 03 19:53:55 I could check SDK versions, but the imports are still broken. Feb 03 19:54:03 jrgarcia: yes! Feb 03 19:54:10 hi lov Feb 03 19:54:23 jrgarcia: http://developer.android.com/resources/articles/backward-compatibility.html Feb 03 19:54:46 jrgarcia: fun fact: due to the way java is structured, your class is lazy loaded. Which means that if you never attempt to reference or instanciate your class, it's never loaded and won't barf at runtime. Feb 03 19:55:02 the core of this is in C++, should be amenable to porting to Java or NDK use http://code.google.com/p/simple-iphone-image-processing/ Feb 03 19:55:04 so, you can use "compatability" classes to shield code that doesn't exist yet if you're not happy with reflection Feb 03 19:55:18 just to give you a flavor of the direction you want to go in Feb 03 19:55:41 jrgarcia: so, set your build target at ICS, and set the minSdk to GB or whatever you want the min target to be. Feb 03 19:55:44 for background processing, if you want to do it interactively you'll need gl transforms Feb 03 19:56:46 yeah itll all be background processing. Feb 03 19:56:57 lov: How do you handle it if the BluetoothHeadset class didn't exist until v11? Feb 03 19:56:58 thanks James... now I just need to figure out how to work with the NDK Feb 03 19:57:11 I tried that a little while ago and definitely didnt do something right Feb 03 19:57:27 lov: The imports blow up Feb 03 19:57:46 whut Feb 03 19:58:04 imports are purely for IDEs; they get compiled out Feb 03 19:58:06 lov: Is that a case where I'll have to use the reflection trick? Feb 03 19:58:17 that is to say, in the bytecode, everything is fully-qualified iirc Feb 03 19:58:33 jrgarcia: you should never need to use reflection to use published APIs Feb 03 19:58:36 evancharlton: So Eclipse will have errors, but I can compile it just fine? Feb 03 19:59:05 hm? Feb 03 19:59:18 your targetSdkVersion should be at the level of the APIs you want to use Feb 03 19:59:30 and then you have to make sure to guard calls to new APIs so older devices won't execute them Feb 03 20:00:12 Appliment, then life gets a little easier Feb 03 20:00:20 jrgarcia: ok, so. Feb 03 20:00:22 Ok. Thanks. I'm *completely* new to Android and Java. I've mostly done .NET/Ruby/Python. Feb 03 20:00:24 open your project properties Feb 03 20:00:31 set the build target to 4.0.3 Feb 03 20:00:36 that's what you'll COMPILE against. Feb 03 20:00:43 open up your AndroidManifest.xml file Feb 03 20:00:50 there will be a tag with minSdk and targetSdk Feb 03 20:00:56 minSdk says "This is the minimum api level I support" Feb 03 20:01:04 targetSdk says "This is the maximum api level that I tested at" Feb 03 20:01:15 (so if the device is newer, compatability code will be used for layouts, etc) Feb 03 20:01:17 check this out, uses opencv http://stackoverflow.com/questions/6525375/how-would-i-map-a-camera-image-to-create-a-live-funhouse-mirror-using-opencv Feb 03 20:01:25 so, set your compile target at ICS and you'll compile just fine Feb 03 20:01:26 .net should be an easy transition to java Feb 03 20:01:26 shows roughly how to make the effect you want Feb 03 20:01:29 Thanks lov and evnan! That helped a lot. Feb 03 20:01:43 you just need to make sure on earlier devices that you don't actually take the codepath where you'd try to use that code that doesn't exist Feb 03 20:01:46 jrgarcia: no problem Feb 03 20:01:50 The syntax is fine, but using the Android apis for multiple devices is new. Feb 03 20:01:51 what you want is actually easier, this guy was trying to do it in real time from the camera Feb 03 20:01:52 or load a class that references code that doesn't exist Feb 03 20:02:02 so create a compatability class that contains the bluetooth whatever, stick all the stuff in there Feb 03 20:02:07 and then instanciate it if your sdk is high engouh Feb 03 20:02:29 jrgarcia: again, read the backwards compatability link I gave you Feb 03 20:02:32 it explains exactly how to do this Feb 03 20:02:33 lov: Got it. That'll be easy. Thanks for the help! Feb 03 20:02:36 although it emphasizes reflection Feb 03 20:02:38 I'd try and build a basic NDK app and take opencv for a spin Feb 03 20:02:42 I prefer the factory approach Feb 03 20:02:56 assuming you know/are willing to learn c++ Feb 03 20:03:28 amount of C++ needed for OpenCV is small... mainly the "references vs. pointers" Feb 03 20:04:22 I should be able to pick it up. I just need to figure out how the NDK works in order to utilize openCV Feb 03 20:06:17 having trouble playing mp3s in a webview app. If I pull them from a remote server, they work fine, but when included locally, I get nothing. Feb 03 20:06:50 I see in the logs something about isProtectedFile, not sure if that's the problem with trying to stream the files locally Feb 03 20:08:00 p_l: what about lvalues, glvalues, rvalues, prvalues, xvalues... Feb 03 20:08:12 p_l: rval refs, refs, pointers, shared ptrs, unqiue ptrs... Feb 03 20:08:20 I hope none of that is in OpenCV :P Feb 03 20:08:27 dylukes: I said amount necessary to *use* OpenCV Feb 03 20:08:32 Ah.. *use*. Feb 03 20:08:33 XD Feb 03 20:12:15 lol, yeah not enough to write it, hehe Feb 03 20:12:29 I mean he'll/she'll probably have to learn basic pointer information Feb 03 20:12:42 and how to allocate/deallocate with new/delete, malloc and free Feb 03 20:12:59 that's it as far as super-gnarly C++/C features... I think Feb 03 20:13:14 most of the other syntactic monstrosities it shares with Java Feb 03 20:13:28 except template programming which is.... special Feb 03 20:15:56 anyone have any idea why I can play a remote mp3 in a webview app, but not a local one? Feb 03 20:18:50 hmm, amazon is hiring a fuckton of android devs in seattle Feb 03 20:22:11 D: Feb 03 20:22:25 I applied there, and did 2 phone interviews, then never heard back from them Feb 03 20:23:03 but i'm not really happy with what amazon is doing to android Feb 03 20:23:13 is there an intent fired off when the charging cable is unplugged? Feb 03 20:23:33 wraithguard01: from what I've read about their work environment, you should probably consider yourself lucky Feb 03 20:24:16 killring: yeah, and that "leaked" steve yegge post a few months ago was kinda interesting Feb 03 20:24:28 Yeah, I've heard it's high pressure Feb 03 20:24:35 from what I understand, amazon is hard at work tivo-izing Android into something with a power button and a "Buy on Amazon" button Feb 03 20:24:56 sounds like an absolute meat grinder of an organization Feb 03 20:25:05 james541: yeah, i would not be surprised Feb 03 20:25:39 james541: isn't that basically what the fire already is? Feb 03 20:26:28 not that there's anything wrong with it for their purposes... it is what it is Feb 03 20:26:43 Hello, I developing an app that have huge media resources therefor I pre load everything on to the system before hand and look into the folder to access the media. Can I move that folder into the application folder upon install? Feb 03 20:31:15 what is it with people that type in a way you think they are beating up their keyboards Feb 03 20:31:29 i hate you enter button! Feb 03 20:31:37 I usually _am_ beating up my keyboard Feb 03 20:31:42 bam! fuck you space bar ! pow ! Feb 03 20:31:43 if it wasn't for this stupid thing, I wouldn't write bugs Feb 03 20:32:19 i'm waiting for this lady beside me to just start punching the damn thing Feb 03 20:33:24 buy a mechanical keyboard and you'll understand why Feb 03 20:33:34 it's so fucking satisfying Feb 03 20:33:46 s/satisfying/tiring/ Feb 03 20:33:52 o.O Feb 03 20:33:55 you get tired typing? Feb 03 20:34:05 with stiff keyboards? sure Feb 03 20:34:15 O.o Feb 03 20:34:33 when you're at your computer for 12+ hours, it's not very hard to believe Feb 03 20:35:02 i had my mechanical keyboard at work for a couple of days Feb 03 20:35:05 yea but your fingers will get really buff. you could make pamela anderson climax with those fingers and not even break a sweat. Feb 03 20:35:06 never noticed any tiredness Feb 03 20:35:11 same here, I like the apple-style keyboards Feb 03 20:35:15 with the flat keys Feb 03 20:35:24 * g00s loves apple keyboards, low travel tactile Feb 03 20:37:01 I am want to send email from my app using gmail. I have everything setup but get error: java.net.ConnectException: failed to connect to smtp.gmail.com/74.125.91.109 (port 465): connect failed: ECONNREFUSED (Connection refused). I am using Eclipse SDK on Ubuntu. Does this error mean Ubuntu is blocking, Android does not allow or google does not accept? Feb 03 20:39:23 Can My app move a file from sdcard to its private app folder? Feb 03 20:39:31 killring, yeah that's what I was talking about Feb 03 20:39:36 roger_padactor: sure, if you have the permissions Feb 03 20:39:44 and the basic non-Android kindles are even more locked down Feb 03 20:41:12 xbb: sounds like you misconfigured your gmail client in the emulator/test device Feb 03 20:41:29 MDijkstra: permissions on the sdcard custom folder? I place the folder there before installing the app. Because its so big. And for security reasons I would like to move it into the app folder... (I know its not the best security but its better then nothing) Feb 03 20:41:36 james541, how do I configure it? Feb 03 20:42:00 roger_padactor: no I mean android app permissions to access the sdcard Feb 03 20:42:01 http://support.google.com/mail/bin/answer.py?hl=en&answer=78799 Feb 03 20:42:03 hey guys Feb 03 20:42:13 roger_padactor: everything on the sd card is world read-writable Feb 03 20:42:16 the thing is, can you check and send mail from the gmail app? Feb 03 20:42:24 (independent of your custom android app) Feb 03 20:42:35 MDijkstra: right. so why wouldn't I have permissions? Feb 03 20:42:48 roger_padactor: so you can pretty much do whatever you want if you request the appropriate permissions in your manifest Feb 03 20:42:58 MDijkstra: thanks Feb 03 20:43:11 i have a db defined as such http://pastebin.com/RbJN87VR and i call it from somewhere else as such http://pastebin.com/WGZuJEF9 . for some reason i only get upto the log messages of being in the constructor. It never reaches the onUpgrade(). am i missing the point of how the version process works? Feb 03 20:43:29 But then if they uninstall the app. the folder goes bye bye... There must be hooks for install and uninstall... Feb 03 20:43:46 I don't know Feb 03 20:43:57 james541, I don't I don't have it loaded Feb 03 20:44:04 that's not possible, I'm fairly sure Feb 03 20:44:20 xbb ? do you not have the emulator up/device up? Feb 03 20:44:27 yes Feb 03 20:44:35 roger_padactor: why do you want to move it private app storagE? Feb 03 20:44:37 you mean gmail is there by default? Feb 03 20:44:46 if you are using the emulator, make sure you have a google account associated with the gmail app or it won't work Feb 03 20:45:02 in the stock emulator avd, I think so Feb 03 20:45:04 not sure Feb 03 20:45:06 cuz then the user doesn't have access to its contents unless they root their device... Feb 03 20:45:07 checking Feb 03 20:45:34 roger_padactor: ok, but what are you worried about specifically? Feb 03 20:45:46 what version of the android sdk are you targeting xbb Feb 03 20:45:49 roger_padactor: people seeing data they shouldn't, or people modifying data they shouldn't? Feb 03 20:45:59 4.0.3 Feb 03 20:46:14 mostly seeing... Feb 03 20:46:22 from my code, the log message of being in onUpgrade() should print once correct? Feb 03 20:46:49 ahh Feb 03 20:46:51 roger_padactor: you could write an encrypted backup to sd occasionally Feb 03 20:46:52 ok Feb 03 20:46:52 james541, if I try supplied app I get "Couldn Feb 03 20:47:03 couldn't connect to server" sorry... Feb 03 20:47:28 roger_padactor: but meh, the added protection isn't large enough imo Feb 03 20:47:33 ah, are you on the internet? silly question I know, but occasionally firewalls, intermittent connectivity can be the culprit Feb 03 20:47:43 to justify such a large time investment getting this to work Feb 03 20:47:54 sileni: onUpgrade only gets called if onCreate didn't get called. Does the database already exist? Are you passing in a higher version than the one it was created with? Feb 03 20:48:04 I was thinking of doing a simple ROT13 to the text files.... and water marking the images slightly so if they pop up anywhere we would know. Feb 03 20:48:15 it's a game? Feb 03 20:48:16 yeah, but I am behind firewall, so this could be the reason Feb 03 20:48:22 james541 Feb 03 20:48:23 BenVonHandorf: well, i call it three times... so the first time it should have created the database Feb 03 20:48:58 is this what everybody's using for mail: http://code.google.com/p/javamail-android/? Feb 03 20:49:10 *majority* I should say Feb 03 20:49:22 roger_padactor: if it's a data pack for a game, simply ship it to the device as an encrypted zip file Feb 03 20:49:23 MDijkstra: digital manual... a glorified slide show really. 3 gigs of text,videos, and images. All our own stuff. Feb 03 20:49:34 and unpack it in the private app storage Feb 03 20:49:35 am firing up 4.0.3 in an avd, will check what the default mail client is Feb 03 20:49:50 thanks Feb 03 20:50:12 roger_padactor: but 3gb will never fit in private app storage Feb 03 20:50:22 except on an ICS device I guess Feb 03 20:50:40 Its on Transformer Prime. Will not be going on the store. Feb 03 20:50:53 ah Feb 03 20:51:02 we put everything together in house then ship it with a kit. Feb 03 20:51:15 well then, if you don't mind 6gb of storage usage Feb 03 20:51:25 simply do what I said above Feb 03 20:51:33 encrypted zip, unzip to private app storage Feb 03 20:51:55 yeah, xbb, make sure the relevant port is open (469 or whatever it was) some corporate firewall block non web-based email access Feb 03 20:52:05 BenVonHandorf: hmm onCreate never gets called.. Feb 03 20:52:14 ok :( Feb 03 20:52:20 BenVonHandorf: how do i delete all the databases and try again? Feb 03 20:52:27 will have to try it at home Feb 03 20:52:34 MDijkstra: just have to make sure the zip encryption program is compatible with what android can decrypt? Feb 03 20:53:01 sileni: If you uninstall the app, that should do it, unless you've put it somewhere odd. Feb 03 20:53:13 BenVonHandorf: i've tried uninstalling Feb 03 20:53:20 BenVonHandorf: it never logs that it got into oncreate Feb 03 20:53:22 sileni: adb uninstall com.foo.bar Feb 03 20:53:38 sileni: Hmm. Feb 03 20:53:45 BenVonHandorf: uninstalling it from phone itself won't work? Feb 03 20:54:00 One more question. When I start emulator and my app runs when I want to retest certain parts I force close it (for now) and start it again, but breakpoints are not hitting. I need to restart emulator for debugger to work. What am I doing wrong? Feb 03 20:54:12 BenVonHandorf: were you able to look at the code i posted? Feb 03 20:54:14 sileni: Either/or. Or clearing the app data on the phone. Feb 03 20:54:29 xbb running the emulator. Feb 03 20:54:35 that's what you're doing wrong. Feb 03 20:54:36 roger_padactor: sure, you don't have to use zip encryption Feb 03 20:54:48 moonlightcheese, how do you mean? Feb 03 20:54:52 roger_padactor: you could use whatever's available Feb 03 20:54:56 also i had the same problem using Eclipse. Feb 03 20:54:59 MDijkstra: thanks. Feb 03 20:55:03 afaik you can use the debugger with the emulator Feb 03 20:55:04 i hated the debugger in Eclipse. Feb 03 20:55:12 IntelliJ was so much better. Feb 03 20:55:22 you just have to hit the "bug" icon and then switch to the DDMS workspace Feb 03 20:55:27 in Eclipse Feb 03 20:55:30 it works ok Feb 03 20:55:31 roger_padactor: what will frustrate a would-be pirate more is using the encrypted zip as random-access storage Feb 03 20:55:47 roger_padactor: since the unencrypted files will then never be found on the device Feb 03 20:55:47 the only issue I had is that Eclipse will randomly "de-sync" from adb Feb 03 20:55:54 roger_padactor: but that might cause performance issues Feb 03 20:56:09 james541, right, but once instance of Emulator is running, stopping/starting and debugging Activity does not hit the breakpoints. I need to restart emulator and thought I don't have to do this. Feb 03 20:56:09 forcing you to restart adb from the command-line, and occasionally forcing you to re-start Eclipse Feb 03 20:56:20 hmm Feb 03 20:56:47 in Eclipse, do the bright blue circles of the breakpoints look bright? or faded? Feb 03 20:56:56 they should not be faded, or they will be skipped Feb 03 20:57:09 james541, i know they are blue. Feb 03 20:57:09 MDijkstra: decrypt it to open something then re encrypt it? Loose lots of performance. Feb 03 20:57:27 what happens when you right click on them? Feb 03 20:57:34 what has a checkmark next to it? Feb 03 20:58:43 roger_padactor: no, randomly seek through the file Feb 03 20:58:57 roger_padactor: exactly like android does to get to the assets inside an .apk Feb 03 20:59:28 james541, here is what I am doing, and may be I am wrong in my understanding. I launch emulator with breakpoints set (blue) and when by activity is installed and running those breakpoints are hit. Let says I change some code or want to re-debug this activity, if I do it in the same instance of emulator by closing my app and starting again nothing happens - breakpoints are not hit. If I close emulator and start again then it works. I don't know, may be shoul Feb 03 20:59:28 d work like that with Android emulator? Feb 03 20:59:52 ahh Feb 03 20:59:54 ok Feb 03 21:00:01 you don't have to restart the emulator Feb 03 21:00:19 so, try detaching the debugger after you make the code change, and then debugging again Feb 03 21:00:25 MDijkstra: ok. still kinda confused.... Feb 03 21:00:30 the button looks like a stop sign Feb 03 21:01:02 if that doesn't work, go into systems settings on the AVD, uninstall the app from within the emulator and then try debugging again Feb 03 21:01:14 roger_padactor: I don't know how the file format works precisely, but generally you don't need to decrypt the entire archive just to get to one file Feb 03 21:01:38 roger_padactor: ie, if you have an index saying 'file x starts at offset y', you decrypt the index, look up the file offset Feb 03 21:01:43 decrypt those blocks only Feb 03 21:01:46 and return the data Feb 03 21:02:00 Ahhhh! I was wrong in my assumption. I thought if I stop the app and restart then debugger will re-initialize and start from the top. Ok. Feb 03 21:02:07 that's what android does if you open an app resource Feb 03 21:02:24 xbb: it tries to, but if you make any non-trivial changes it won't work Feb 03 21:02:27 (whether it is a layout or a drawable or whatever) Feb 03 21:02:28 stop from android app manage that is Feb 03 21:02:41 yeah Feb 03 21:02:57 right, in eclipse hot replace doesn't always work either. Feb 03 21:03:00 MDijkstra: I see. That sounds like too much work right now. Maybe some other time.. tight deadline approaching. Feb 03 21:03:01 try it after that and if it doesn't work uninstall it (using that same screen) and give it another shot Feb 03 21:03:06 exactly Feb 03 21:03:08 alright :) Feb 03 21:04:11 yes, I just tried and it works as you suggested. Thanks. I was stopping/starting emulator the whole day (just started learning Android today) and it's very time consuming to restart emulator. Feb 03 21:04:56 oh god that must have been awful Feb 03 21:04:57 :( Feb 03 21:05:03 * james541 gives xbb a hug Feb 03 21:05:30 ... holy fuck, that must have hurt Feb 03 21:09:17 speaking of 4.0.3, my app still won't install to it, it gets an "Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE" even though it works fine with gingerbread/honeycomb and is a whopping 10.2MB in size Feb 03 21:09:45 this is using the emulator, a stock AVD, and the latest revision (rev 2) Feb 03 21:10:13 I tried uninstalling the API demos from the AVD to no avail Feb 03 21:10:19 any ideas? Feb 03 21:11:19 I build an ICS emu once by default and it had 16MB storage... I had to use the dropdown to choose GB. You sure yours is set to that? Feb 03 21:11:39 hmm? Feb 03 21:11:51 QubeZ, which field is that? Feb 03 21:12:05 in the emulator, when you're creating the avd... edit the details Feb 03 21:12:11 k Feb 03 21:12:22 at least when i saw that error, i had my storage set wrong.. too low Feb 03 21:12:28 that fixed it for me but who knows Feb 03 21:12:38 sd card is set to 128MB Feb 03 21:12:44 ram is set to 512MB Feb 03 21:12:50 k Feb 03 21:13:00 heapSize is 48 Feb 03 21:13:07 not sure what that means sizewize Feb 03 21:13:37 A nick so nice, he typed it twice Feb 03 21:13:48 I think that's the 48MB limit that ICS sandwich has before it kills an app with OOM Feb 03 21:14:36 BenVonHandorf: The mistake i was doing was...even though i declared the handle..the functions only get called if i do getWritableDatabase or gerReadableDatabase. Everything working now. Thanks :D Feb 03 21:15:28 QubeZ: hey does your freind do webdesign for others or just for you ? Feb 03 21:16:12 k, upped the data partition and system partition size, will see if it helps Feb 03 21:16:41 james541, haha Feb 03 21:19:10 can someone tell me the difference between PackageManager.getInstalledPackages / PackageManager.getInstalledApplications Feb 03 21:19:19 sileni: others as well Feb 03 21:20:12 james541, just tried sending email from the driver class and same deal. Definitely blockage Feb 03 21:20:15 sileni: keep an eye on todomapr.com, it should be finished in the next week or so. It's beautiful from the pdf's he's sent me thus far. Feb 03 21:20:44 yairgo: not all packages are applications Feb 03 21:20:47 there you go xbb, had the same issue with an overzealous IT admin a while back Feb 03 21:20:53 yairgo: but all applications are packages Feb 03 21:21:24 yeah the ultimate test is to try and send an email through a desktop app on the same network, (thunderbird/exchange/outlook/mail.app/etc.) and see if that works Feb 03 21:21:31 if not, that's your culprit Feb 03 21:21:32 yairgo: write a quick test to see what the difference between the sets is Feb 03 21:21:37 QubeZ: What if I'm a traveling salesman? Feb 03 21:21:40 ;) Feb 03 21:22:28 dylukes: hehe, perfect app for you :) Feb 03 21:22:36 QubeZ: I think you're missing the joke. Feb 03 21:22:47 http://en.wikipedia.org/wiki/Travelling_salesman_problem Feb 03 21:22:48 dylukes: then you should use a 2-approx to get an acceptable approximation ;) Feb 03 21:22:48 http://en.wikipedia.org/wiki/Travelling_salesman_problem Feb 03 21:22:53 haha i win. Feb 03 21:22:55 I'm a comp sci major... I know the problem. Feb 03 21:22:59 =) Feb 03 21:23:19 It's a solvable problem for a small subnet of points (10,000) Feb 03 21:23:52 evancharlton, I just ran into some code that is looping over packageManager.getInstalledPackages(0), then checking packageManager.getLaunchIntentForPackage(currentPackage.packageName) and if it is valid adding it to a list, so I looked up getInstalledPackages and found getInstalledApplications and I'm confused as to why Feb 03 21:23:55 so you're saying your app is find for Jake, not so fine for the operations center at UPS ;) Feb 03 21:24:31 james541: lol, ya... we're not looking to run fleet services. Just small guys like us and small businesses. Feb 03 21:25:29 Can I turn off Android device programmatically? Feb 03 21:25:32 no Feb 03 21:25:44 weak Feb 03 21:25:59 can you do that in Windows? Feb 03 21:26:09 i guess you can. Feb 03 21:26:13 but it's not very nice. Feb 03 21:26:16 well, you can issue command Feb 03 21:26:23 and in linux Feb 03 21:26:25 if you're root, sure Feb 03 21:26:26 of course you could use the http://en.wikipedia.org/wiki/Christofides_algorithm if you wanted to scale it up a little more Feb 03 21:26:32 xbb: you can issue the request for shutdown, iirc Feb 03 21:26:40 if you were a user, would you want an app shutting your device down without your permission all willy nilly? Feb 03 21:26:47 assuming maps are Cauchy Feb 03 21:26:56 but unless you have root, at best you get the shutdown menu Feb 03 21:27:08 moonlightcheese, if app specifically requests these permissions Feb 03 21:27:09 is it safe to say if tid = pid it's the UI thread? Feb 03 21:27:18 MikeJansen: no Feb 03 21:27:31 MikeJansen: Looper.myLooper() == Looper.mainLooper() or whatever Feb 03 21:27:53 xbb: why do you want to shut down the device programmatically? Feb 03 21:27:59 to conserve battery? Feb 03 21:28:18 MikeJansen: Android doesn't have OSX's "must call UI from initial thread" ;) Feb 03 21:28:33 evancharlton, on our device there are no differences between the two(or at least it seems that way) Feb 03 21:28:39 evancharlton: that's reliable (no konwn exceptions) ? Feb 03 21:28:45 p_l: thanks Feb 03 21:29:17 MikeJansen: yeah Feb 03 21:30:06 evancharlton: thanks. just need to ID my UI thread in my log... Feb 03 21:30:40 Why do all the tutorials on sqlite databases on android put the database version in the same class. Wouldn't it be better if you pass the version you are creating as an argument to the constructor? Then you can do upgrades to the databases alone without having to upgrade the whole app ? Feb 03 21:31:07 james541, well I have touchpad and the freaking usb wire can die at any moment, a lot of people had issue that it just dies for no apparent reason. Let's say your device is charging and power supplies dies or power goes down in the morning you will have a uncharged device. I am writing as exercise and app that is a service and will ping battery status. Once it reaches certain threshold (20%) it sends you email that battery is low. At some other value (10%) Feb 03 21:31:08 with your permission it will shut down device so at least you have SOME power when you wake up or reach the device. Feb 03 21:31:12 sileni: db version may not change with app version Feb 03 21:31:35 sileni: and your db class (version) will be tied to a specific app version Feb 03 21:31:44 xbb: you should be able to do the email thing Feb 03 21:31:49 right Feb 03 21:31:56 sileni: reverse -- app is tied to one specific db version Feb 03 21:32:01 as long as other apps aren't being punks the phone should go to sleep to conserve power Feb 03 21:32:08 but shutdown is the nice feature I think Feb 03 21:32:12 MikeJansen: yes, but lets say you have it as a member variable..don't you have to upgrade the app version to upgrade database? Feb 03 21:32:17 yeah, but wicked ripe for abuse Feb 03 21:32:27 xbb: wouldn't it be better to just get a charger that doesn't die .. ? Feb 03 21:32:27 i understand Feb 03 21:32:58 ^ Feb 03 21:33:12 evancharlton: I think he means places where the grid isn't reliable Feb 03 21:33:14 Hey, I'm having trouble with eclipse not recognizing R for the android native music player source code that I downloaded online Feb 03 21:33:20 evancharlton would you say that if a package does not have a launch intent then it is not an application? Feb 03 21:33:24 Does anyone know how to get it to work? Feb 03 21:33:26 yairgo: no Feb 03 21:33:30 sileni: i think that's just a matter of preference in how you want to structure your upgrade Feb 03 21:33:36 MikeJansen: right now i just want the app to check with server to see if the database has any new rows. if so it should update its tables accordingly as info is given from the server. I don't understand how to do this other than have a check outside that sets a variable to be the server's database version, which also gets passed to the database classes's constructor Feb 03 21:33:46 yairgo: it could still expose content providers and so on Feb 03 21:33:47 coding around a poorly engineered device. Feb 03 21:33:55 Gotcha Feb 03 21:34:10 yairgo: let me go look at the docs and refresh my memory Feb 03 21:34:21 such charger does not exist. But touchpad's usb input is sucky in way that is bends the pins inside usb hub. The wire would be undamaged and still wouldn't charge. I recycled already three wires this way. Feb 03 21:34:35 Basically it says R cannot be resolved to a variable and wants to import R, which I know isn't right Feb 03 21:34:44 evancharlton that makes sense. This function is just trying to get all of the launchable applications and seems overly complex, I'm trying to wrap my head around it Feb 03 21:34:55 xbb: sounds like your usb hub sucks Feb 03 21:34:58 sileni: getting new data isn't necessarily a new database version. i think the version / upgrade for sqlite/android is intended to support upgrading a database when you upgrade the app Feb 03 21:35:02 yeah Feb 03 21:35:06 they are like $10 I'd get a better one Feb 03 21:35:13 sileni: which is why their examples are that way Feb 03 21:35:17 newegg/amazon ftw Feb 03 21:35:22 MikeJansen: oh i see Feb 03 21:35:29 yairgo: I can't think of an example off-hand of a package that is not an application, but I'm sure one must exist. Maybe some of the DrmProviders or something? Feb 03 21:35:34 james541, no not usb hub, but usb connector on end of the wire. Feb 03 21:35:39 ? Feb 03 21:35:41 MikeJansen: i mean i can use it for this purpose also right? Feb 03 21:35:51 noah023: it's not in the same package. Feb 03 21:35:53 MikeJansen: or do you have any better method? Feb 03 21:36:01 why is that getting bent? the USB side? or the part that goes into the phone? Feb 03 21:36:15 moonlightcheese: how do I get it to work? Feb 03 21:36:25 noah023: android.music.player.R or something like that. whatever the name of the package is, reference it by it's full name. Feb 03 21:36:32 part that goes into the phone. Feb 03 21:36:48 sileni: it really depends on your app needs. i can see why you would want to do this. do you actually get an updated db version from the server? or are they dynamic rows that are getting updated? Feb 03 21:36:55 I am not the only one with this problem. Other people reported it as well Feb 03 21:37:36 not much to do then, except be extra careful unfortunately Feb 03 21:37:38 sileni: my perspective is that the "norm" of using the update is if you are updating schema and static data Feb 03 21:37:44 yup Feb 03 21:37:50 I guess I am just used to delicate ports, I have a nexus one myself Feb 03 21:38:07 or get the induction charger, but that thing is $50 Feb 03 21:38:08 sileni: and it probably works best for that, but frameworks aren't laws of nature Feb 03 21:38:26 MikeJansen: hmm i don't understand what you mean by dynamic rows Feb 03 21:38:26 hehe, $50, or peace of mind.... up to you Feb 03 21:38:40 sileni: but if you do something outside of the norm, just be sure you understand why you are doing it :) Feb 03 21:38:59 moonlightcheese: Where do a reference to it? Within the program, as an import? Usually on the creation of android programs they just know where R is Feb 03 21:39:05 MikeJansen: lets say we have a states table.. and the states initially in app only contains Alaska, and then in the server i add Alabama to the table .. i want to add Alabama to the app's table Feb 03 21:39:06 sileni: static data = lookups, dynamic = live data Feb 03 21:39:15 *I not a Feb 03 21:39:38 sileni: i would see that as a db version update if it affects your application Feb 03 21:39:45 ok Feb 03 21:39:52 MikeJansen: thanks so much for clarifying all this for me Feb 03 21:40:44 noah023: the library you included has a package name. use the fully qualified package name... Feb 03 21:40:48 sileni: this is just my perspective :) don't necessarily walk away thinking you were approaching it wrong. if the upgrade pattern fits for what you need, use it, but i'm guessing you can get away with just updating your data and not "upgrading" your db Feb 03 21:42:21 Does anyone here have exp with UrlConnection and a ResponseCache implementation? I am trying to make my implementation stored XSL transformed body bytes, rather than what the server returned directly, but I can't work out exactly where the cache is reading from the response buffer. Feb 03 21:42:25 Hi guys newbie question, how can I initializate a empty String? Feb 03 21:42:28 Is it even possible? Feb 03 21:42:29 noah023: look in the lib files, get the package name from the top, and place the fully qualified name in place of 'R'. Feb 03 21:42:37 ei2matrix: "" Feb 03 21:42:39 ei2matrix: String temp = ""; Feb 03 21:42:41 noah023: in your package. Feb 03 21:43:33 thanks, I was using simple quotes :S Feb 03 21:44:35 moonlightcheese: what are lib files... I have a feeling my being new to android is going to keep me from doing this... I only wanted to modify the player to make it better Feb 03 21:44:54 sileni: in general app design, an app version is compatible with a specific db version. you can use that as a guideline. you may also have different "versions" for your db: the version which i understand the sqlite android stuff is dealing with is the schema/static data that your application depends on. meaning if db isn't at version X, app version Y won't work. there's also other lookup data that enhances the app (i.e. addi Feb 03 21:45:36 noah023, lib = library, common development term Feb 03 21:45:56 noah023: it's not that hard man. you said you downloaded source for the media player. in those source files, a package name is defined. all apps have a package name. all of those source files should be in the same package. open one of the source files and find the package name at the top. Feb 03 21:45:57 MikeJansen: i see Feb 03 21:46:14 MikeJansen: so to be what the framework intended for i shouldn't use the onUpgrade for my situation Feb 03 21:46:33 MikeJansen: i just figured this way, i can have all the users to be using the latest values Feb 03 21:46:41 noah023: then, in your app source, reference 'R' using the fully qualified name, like 'com.android.mediaplayer.R' or whatever the package name is. Feb 03 21:46:49 moonlightcheese: I know the package name, it's com.android.music Feb 03 21:47:03 noah023: so then com.android.music.R Feb 03 21:47:04 Excuse me, if I have a bit of ClickableSpan text inside of a TextView, and that TextView is inside of a TableLayout, what would cause me to not be able to click it? It works fine when it's not in the TableLayout. Feb 03 21:48:29 sileni: you can always use the framework in ways it wasn't intended -- that's called being creative. just be sure you understand how your upgrade path is going to work -- that's called being wise :) Feb 03 21:48:55 moonlightcheese: except for even if I use com.android.music.R instead of just R.something, it still says R cannot be resolved to a variable Feb 03 21:49:38 noah023, because eclipse doesn't know how to generate R Feb 03 21:49:39 because it can't. why would you just reference R? Feb 03 21:49:42 for aosp projects Feb 03 21:49:54 at least, I assume that is what the problem is Feb 03 21:50:22 sileni: and to re-iterate, this is just _my_ view of what they were likely intending. i've worked with db stuff for a couple decades, so i have a decent feel for it, but your situation may be totally valid and it doesn't scream "wrong", like I said, just think through how your upgrades are going to work down the road Feb 03 21:50:57 pfn: how do I get eclipse to generate R Feb 03 21:51:06 noah023, I don't know for aosp projects Feb 03 21:51:30 noah023, first build the project from the commandline Feb 03 21:51:35 then R will have been generated Feb 03 21:54:40 pfn: I'm not sure how to build it in the commandline, I mostly just use eclipse for programming Feb 03 21:57:35 noah023: http://developer.android.com/guide/developing/building/building-cmdline.html Feb 03 21:58:06 noah023, by using . build/envsetup.sh; lunch; make Music Feb 03 21:58:07 etc. Feb 03 21:59:45 pfn: well I be able to use it in eclipse? Feb 03 21:59:51 pfn: *will Feb 03 22:04:37 is there a simple way to get a vertical, not horizontal, seekbar? Feb 03 22:06:29 yeah, write one :) Feb 03 22:06:33 it's a pretty simple control Feb 03 22:07:52 pretty much what i figured Feb 03 22:08:14 i have a feeling thats not the answer he was hoping for... :) Feb 03 22:09:00 hehe nope. but, bout what i expected. i found some code to wrap a view and then rotate it via a matrix, but with a seekbar it'd end up requiring a pretty large square to do so Feb 03 22:09:05 less ideal Feb 03 22:09:19 with creating my own, i can at least control the graphics Feb 03 22:09:21 yeah that's definitely not the way to do this :) Feb 03 22:09:25 exactly Feb 03 22:09:41 tophyr: use a horizontal one and ask the user to rotate the screen XD but lock screen orientation XD XD Feb 03 22:10:06 Excuse me, if I have a bit of ClickableSpan text inside of a TextView, and that TextView is inside of a TableLayout, what would cause me to not be able to click it? It works fine when it's not in the TableLayout. Feb 03 22:11:03 http://www.fiercedeveloper.com/story/android-or-ios-which-platform-better-html5/2012-02-03 Feb 03 22:12:23 question, are there any tablets that ship with ICS, my company is looking at requisitioning one to test my app Feb 03 22:12:39 I know the nexus S has ICS Feb 03 22:12:55 I think the Transformer Prime might be shipping with ICS. Feb 03 22:13:03 is it out yet? Feb 03 22:14:07 been out. Feb 03 22:14:17 nice, sweet thanks Feb 03 22:16:06 is the ICS update out for the Xoom? Feb 03 22:16:17 am looking for a low specced tablet for testing Feb 03 22:16:40 james541: buy a nook and hack it with CM9 Feb 03 22:16:50 james541: I use this http://keyable.blogspot.com.au/2011/12/try-android-x86-40-on-virtualbox.html Feb 03 22:17:00 james541: took me all of an hour to do a couple days ago. Feb 03 22:17:13 I need it to be able to access the android marketplace, will CM9 let me do that? Feb 03 22:17:16 james541: yes, it's out for the wifi xoom Feb 03 22:17:19 transformer prime doesn't *ship* with ICS, but it has an immediate upgrade available Feb 03 22:17:22 k Feb 03 22:17:25 Guys, question, how can I generate a random value between 0 && 4? Feb 03 22:17:26 i got one last week and upgraded it immediately Feb 03 22:18:08 james541: yes. Feb 03 22:18:34 nexus s "has" ics like france "has" an army Feb 03 22:18:41 i'm sure it's out there somewhere but i sure ain't f'in seen it Feb 03 22:18:43 ... wat Feb 03 22:18:43 use random, it can take a bounds variable and will give you a number between 0 and the param Feb 03 22:18:49 france is the 2nd world power... Feb 03 22:19:10 ah, good to know tophyr, so that isn't out yet? Feb 03 22:19:17 oh woops. Feb 03 22:19:17 ... 2nd behind italy, maybe Feb 03 22:19:22 they dropped to the number 8 spot. Feb 03 22:19:29 http://www.globalfirepower.com/ Feb 03 22:19:56 james541: not for mine at least. depends on your carrier as far as i can tell. Feb 03 22:20:16 chomchom: Yes, I used it to jump randomly between recordset results from a db query, but I think tha in't working since I don't get any result Feb 03 22:20:26 ah Feb 03 22:20:27 thanks Feb 03 22:20:56 am trying that image in VMWare Feb 03 22:21:06 http://www.globalfirepower.com/defense-spending-budget.asp Feb 03 22:22:09 does that ICS image work with eclipse/adb? Feb 03 22:24:55 silly question, but ICS is 2.6.x, no? Feb 03 22:26:00 james541: No. ICS is 4.x Feb 03 22:26:17 I mean it's kernel Feb 03 22:26:27 Oh. rofl. My fault. Feb 03 22:26:28 sry should have made that clear Feb 03 22:26:30 it's 2.x I think Feb 03 22:26:31 erm Feb 03 22:26:33 3.x Feb 03 22:26:46 yep ^ Feb 03 22:26:51 ah ok Feb 03 22:27:33 How could I stop a ViewGroup from consuming my clicks and not giving them to it's children? Feb 03 22:28:07 override and return false Feb 03 22:28:10 requestDisallowInterceptTouchEvent Feb 03 22:28:49 I'm going to set up a webservice on the server and app is going to "upload" picture to the service. Is encoding image to bytes then string and then uploading to server and decoding on server into image the recommended route? Feb 03 22:29:50 sileni: encode using base64, if you're sending via a string-based method Feb 03 22:30:05 if you're using a raw http post, just send the bytes themselves Feb 03 22:30:10 no encoding necessary Feb 03 22:30:20 tophyr: yea, i saw a tutorial that does that. I just want to get input if it is a decent/ok method Feb 03 22:30:53 make sure to use chunked encoding explicitly if you are using UrlConnection to do the upload Feb 03 22:31:04 or android will buffer the post body Feb 03 22:31:08 tophyr: what would you suggest, raw http post or base64? Feb 03 22:31:13 my server uses SOAP and embeds files within the soap envelope (which is terrible design, don't do it if you have control), so i have to base64 encode them Feb 03 22:31:42 tophyr: i have all the control Feb 03 22:31:44 if a REST-ful api is appropriate for you then post'ing the image is much better Feb 03 22:32:11 base64 increases the data size by 25% Feb 03 22:32:14 tophyr: i want to do REST-ful api. but the problem is how would i send the picture from phone to the service Feb 03 22:33:00 http post to https://www.yourservice.com/name/userid/photo_desc/all/other/pertinent/info Feb 03 22:33:24 basically any parameters/metadata goes in the URL you're posting to, and the request body (the POST data) is the binary Feb 03 22:33:25 tophyr: i would http post the bytes to the dynamic url? Feb 03 22:33:30 correct Feb 03 22:33:36 ok Feb 03 22:33:47 wow that seems like it would be much easier Feb 03 22:34:09 funny, how the simple solutions are usually the best ones ;) Feb 03 22:34:12 tophyr: when you say binary, you mean the bitmap bytes? Feb 03 22:34:15 correct Feb 03 22:34:25 tophyr: thank you , thats elegant and easy Feb 03 22:34:33 tophyr: don't have to encode or anything haha Feb 03 22:35:09 like satori99 said, make sure you use chunked encoding Feb 03 22:35:21 what is chunked encoding? Feb 03 22:35:26 i thought i'm not encoding anything Feb 03 22:35:26 or set a content length on the body Feb 03 22:35:33 does anyone know if there's any good docs on building android apps that are 'wrappers' for web sites? Feb 03 22:35:43 chunked encoding is for the HTTP transport Feb 03 22:35:52 Android will buffer your POST bytes by default (not good)...so you need to tell it to stream the upload Feb 03 22:35:54 it determines how the framework sends your data Feb 03 22:35:59 ^^^ that Feb 03 22:36:03 by setting chunked encdoing or a contentlength for the post Feb 03 22:36:44 if Android buffers your request, you will quickly run out of memory, before you're able to send the file. you need to tell android to send in chunks, or you need to tell it the total amount of data you'll be sending Feb 03 22:37:21 oh Feb 03 22:37:42 ok i will remember to look into that Feb 03 22:37:51 I don't really know how to do that yet, so i have to read up on that Feb 03 22:37:51 *also*, if you do decide to use HTTPS (which you should; there is no excusable reason to use http anymore in my head), there's a bug in pre-3.0 android that will always buffer your output Feb 03 22:38:06 gotta use reflection to get around it Feb 03 22:38:10 SimonVT: Well, now the TextView IS getting the touch, but it's still not running the ClickableSpan that's set within it. Feb 03 22:38:15 sileni: Its not difficult just setting a length or a cheucking flag, but it's the first thing ppl run into when trying to uplaod images efficiently Feb 03 22:38:30 satori99: oh ok Feb 03 22:38:47 thanks so much guys for helping me Feb 03 22:41:45 CQN: For wrapping web sites without API's, I have used XSL stylesheets as raw resources, and used them with tag soup to parse xhtml pages.... works well if you cache the compiled stylesheets. Feb 03 23:15:45 Is there a drawable-large ?? Feb 03 23:16:18 Yes Feb 03 23:16:26 The qualifiers work for any folder Feb 03 23:21:20 When I set a custom title bar in a searchable activity, a black rectangle area is displayed where the titlebar should be drawn Feb 03 23:21:28 Same exact layout + code in other activities works fine Feb 03 23:21:35 Any direction to follow ? Feb 03 23:27:14 satori99: what about dealing with JS? Feb 03 23:28:27 weird issue here, i'm setting on onitemclicklistener in a spinner, however the spinner wasn't even displayed and its receiver on itemselected events. Feb 03 23:28:28 Is there a way to see if a phone can play a certain video, before trying to play it... Feb 03 23:39:07 Is there a way to see if a phone can play a certain video, before trying to play it... Feb 03 23:39:32 As in, a VideoView Feb 03 23:47:31 this ought to help move a few devices: http://www.electronista.com/articles/12/02/03/us.near.federal.android.use/ Feb 03 23:47:58 JakeWharton: you around? Feb 04 00:03:08 I've just imported an android app that my company inherited. Feb 04 00:03:15 wonderful! Feb 04 00:03:19 I get an error in "import java.io.IOException". Feb 04 00:03:32 In fact, java.io.anything errors. Feb 04 00:04:04 I'm using Eclipse Classic. Feb 04 00:04:16 When I create a view in java code, i can use .setId(int) to set its id. It expects an int. So if you want to set the id to android:id/message then how do you generate that int from that textual id? Feb 04 00:04:44 generate? Feb 04 00:04:50 just use android.R.id.message? Feb 04 00:05:09 jasta, yes that's what i was thinking about Feb 04 00:05:32 jasta, but how do i make the environment to create android.R.id.message? Feb 04 00:05:45 make the environment? wtf are you talking about? Feb 04 00:06:10 seems like you dont need to make it Feb 04 00:06:27 android.R.id.message - such a thing seems to exist without anything to do Feb 04 00:06:42 of course it exists. Feb 04 00:06:45 it's part of the API Feb 04 00:06:46 good to know Feb 04 00:06:52 okay Feb 04 00:09:59 So will the title dialog of a DialogPreference the same as the android:title string? Feb 04 00:10:28 Any reason why something simple like java.io.IOException would cause an error in my android project? Feb 04 00:10:29 I was hoping it would be android:dialogTitle but looks like it's android:title. Feb 04 00:10:34 Do I need to manually import the Java SDK? Feb 04 00:11:24 Never mind. Feb 04 00:11:26 Sorry I even asked. Feb 04 00:11:33 Eclipse made the solution very obvious. Feb 04 00:12:04 Pritchard: ...type less, think more. Feb 04 00:12:12 heh Feb 04 00:12:25 jasta: I never expected the day where java.io.something would error. Feb 04 00:12:32 Excuse me for having been taken aback by this. Feb 04 00:12:51 you're excused, but in case you had trouble reading my last comment, it said "be quiet." Feb 04 00:13:21 i found my answer, i shall think more too Feb 04 00:32:59 will String.valueOf(double) always use a . for decimal ? Feb 04 00:33:30 xorgate: probably not, but I have no idea Feb 04 00:33:38 http://vimeo.com/36171967 what say you of this! Feb 04 00:33:42 it seems like that'd be set somewhere Feb 04 00:33:47 i dont see how i can force it to use a . Feb 04 00:34:17 maraz: we don't care, esp since you just uploaded the video yourself Feb 04 00:34:23 maraz i'd say it's only slightly colder in finland than in holland Feb 04 00:34:33 jon-: that I did Feb 04 00:34:45 I believe I'm also the first to discover that the Tell HTC logging includes gpiomatrix states Feb 04 00:34:52 aka. keyboard input. Feb 04 00:36:29 xorgate: the ##java channel would probably know that answer Feb 04 00:36:46 hm yes Feb 04 00:37:02 just figured i'd let you guys know if you don't already... Feb 04 00:37:04 it seems to be left out of the documentation for some reason Feb 04 00:37:09 http://androidandme.com/2012/02/news/develop-an-android-app-submit-it-to-blackberry-app-world-and-get-a-free-playbook/ Feb 04 00:37:28 not saying i condone giving your apps to blackberry, but for a free playbook, why not... then come back to android market :D Feb 04 00:37:45 Tommy: -any- app? Feb 04 00:38:27 hey Feb 04 00:38:29 this is nice Feb 04 00:38:47 jon-: that's what it says, look into it more Feb 04 00:39:02 i'm not a developer, i simply joined this channel to give you guys the heads up Feb 04 00:39:50 well how nice Feb 04 00:40:11 I guess its worth a shot Feb 04 00:40:23 but... Feb 04 00:40:25 I might shit myself if I actually get one in the mail though Feb 04 00:40:30 you submit the android app? Feb 04 00:40:35 WAT! Feb 04 00:40:47 Sicp: blackberry playbook can run android apps Feb 04 00:40:51 what're they going to do with t...OOOOh Feb 04 00:40:54 I think up until 2.3 or something Feb 04 00:41:20 but then just let their users get stuff from the market Feb 04 00:41:33 they want apps on their market clearly Feb 04 00:41:40 tsk tsk tsk Feb 04 00:41:54 proprietary thought patterns are proprietary Feb 04 00:42:09 its sort of a shitty situation Feb 04 00:42:20 nobody wants a tablet with no apps for it but nobody wants to develop for a tablet with no users Feb 04 00:43:18 being here makes me excited to work on my app Feb 04 00:43:30 come spring, it'll be done and ready Feb 04 00:46:00 old, but priceless! https://www.destroyallsoftware.com/talks/wat Feb 04 01:02:48 hey all, can someone help me figure how to auto add libraries that are missing in my project with eclipse Feb 04 01:08:55 would it be command g on os x? Feb 04 01:11:39 Well, that was fun. Apparently on these 3.2.1 Thrives I can only write to a flash drive formatted as ExFAT. Feb 04 01:14:27 RTFM. Apparently it's mentioned in the manual even though Toshiba's support couldn't help =/ Feb 04 01:20:42 anyone? Feb 04 01:34:52 There we go. The IRCd error response of "Cannot change nickname while banned on channel" worried me :x Feb 04 01:35:14 Ended up being I couldn't /nick to my NickServ reserved nickname to auth and +c in here filters to only authed' users. Feb 04 01:35:51 Right, to my question: Is there a general consensus regarding what position the adbar should be placed on apps.? Feb 04 01:36:23 Top or bottom. I want to ensure my accidental clicks are low, so my view is they should be at the top to avoid the hardware buttons at the bottom. Feb 04 01:36:54 I couldn't find any discussion online for this for Android, nor views by developers on reddit.com or via a blog query Feb 04 01:37:34 i'd say top Feb 04 01:37:48 you have the notification bar, of course, but it's dragged on, not clicked Feb 04 01:37:54 Indeed. Feb 04 01:38:22 I have two focual navigational buttons there shoud, a forward and back button to aid the user to go to the next entry. Feb 04 01:38:32 there though* Feb 04 01:41:41 do you think a good way to get women to have sex with you is to just be honest, approach them and say 'if i could just have two minutes of your time"? Feb 04 01:42:46 And the only women just fleed from the channel. Feb 04 01:47:50 Hi there, could someone take a look at http://pastie.org/3312822 and tell me why its returning unable to instantiate activity ComponentInfo runtime errors? Feb 04 01:49:14 Have you declared the reciever in the app manifest? Feb 04 01:49:32 Why are you calling a broadcastreceiver an activity Feb 04 01:49:39 satori99: shouldn't that be done automatically? Feb 04 01:49:52 (by eclipse?) Feb 04 01:50:07 nidada, you must define all android entry points in the manifest Feb 04 01:50:14 You snippet extends from BraodcastReciever....it needs to be declared in the maifest manually Feb 04 01:50:36 oh dear, right I'll go read up on that Feb 04 01:50:48 SimonVT: It's just sample code - I was trying to get a better idea of intents Feb 04 01:50:56 thanks for all your help :) Feb 04 02:09:56 how can i change a home screen widget so that instead of calling "onUpdate()"a service defined inside the WidgetAcivity is called, if thats even possible Feb 04 02:10:17 every time android:updatePeriodMillis calls update Feb 04 02:10:41 so from your onUpdate call, call your service **** ENDING LOGGING AT Sat Feb 04 02:59:58 2012