**** BEGIN LOGGING AT Tue Apr 03 02:59:58 2012 Apr 03 03:13:52 so, i have a ListView. my problem is that the selection indicator is not shown when an item is pressed. i see it displayed if i use my mouse wheel on the emulator, though. any ideas why this could happen? Apr 03 03:15:35 is there a exec-shield built into android ? Apr 03 03:16:04 or something similar ? Apr 03 03:16:20 how can i turn it off temorarily ? Apr 03 03:18:33 what is an exec-shield? Apr 03 03:18:33 wbooze: arm has a XN bit but I don't think it's used. check the kernel source for android to see if they turn it on. Apr 03 03:18:42 Leeds: it's redhats name for non-exec memory Apr 03 03:18:47 wbooze what are you trying to do Apr 03 03:18:49 ah Apr 03 03:19:12 wbooze: I believe android4 turns on aslr Apr 03 03:19:30 age sex location ready? Apr 03 03:19:39 oh man Apr 03 03:19:40 and I wouldn't expect you can turn it off; definitely not w/out rooting Apr 03 03:19:47 ron_frown: address space randomization Apr 03 03:19:51 i can't compile some program... Apr 03 03:20:11 wbooze - based on my experience, nothing in android 3.x or 4 is gonna be problematic for that reason Apr 03 03:20:14 and it tells me some sort of exec-shield is on Apr 03 03:20:29 what are you compiling Apr 03 03:20:35 emacs Apr 03 03:20:52 hmm Apr 03 03:20:58 in a chroot Apr 03 03:21:16 with an arm compiler Apr 03 03:21:31 gentoo Apr 03 03:21:51 ambitious. you might try #android-root for some hints, this is much more of an appdev channel using the SDK Apr 03 03:22:05 ok thank you tho Apr 03 03:22:09 I suspect it's wrong though; maybe you have an issue w/ /proc not being mounted in your chroot? Apr 03 03:22:18 or maybe the android kernel is just wacky Apr 03 03:22:26 it is mounted Apr 03 03:22:39 hm, I copied an old project, and refactored it so that I could branch off some guff; When I try to run the app it's throwing a class not found error for the main class (which is named properly) any ideas for troubleshooting it? Apr 03 03:22:41 i've had good luck with small native things, I haven't tried anything as large as emacs Apr 03 03:22:42 kernel is 2.6.39.4 ics rom Apr 03 03:22:51 b0nn: manifest? Apr 03 03:23:30 dragorn: manifest seems ok Apr 03 03:23:41 I havent tried compiling emacs... but I've compiled a LOT of shit that wasnt ever designed to be on android, into android Apr 03 03:24:06 ron_frown: tho he isn't using the android toolchain, he's using a native toolchain in a chroot. Lots of opportunities for weird there. Apr 03 03:24:23 yeah Apr 03 03:24:24 shane.NZBarcodes Apr 03 03:24:28 oops Apr 03 03:24:57 Caused by java.lang.CLassNotFoundException: shane.NZBarcodes Apr 03 03:25:02 uemacs is working tho.... Apr 03 03:25:05 but that class exists :| Apr 03 03:25:49 b0nn: that's a weird class name; I don't know how strictly it enforces the tld.org.class structure but you're not following it Apr 03 03:26:02 b0nn: that's my only guess besides typo somewhere Apr 03 03:26:38 oh, sorry, I edited it for brevity Apr 03 03:26:51 b0nn: check capitalization Apr 03 03:26:57 ok Apr 03 03:26:59 I'm pretty sure nothing actually enforces that com.foo.bar structure - it's just convention Apr 03 03:27:12 a reasonably easy way to ensure unique package names Apr 03 03:27:12 Leeds: fair. I wasn't sure how much android cared. Apr 03 03:27:30 dragorn: ics has aslr, but apparently its a failure Apr 03 03:27:37 oh hang on Apr 03 03:27:48 the package in manifest.xml is wrong Apr 03 03:27:51 Leeds: yeah; I'd believe it either doesn't care or there's something in the android loader scheme that wouldn't work without it. Never tried, tbh. Apr 03 03:27:59 g00s: I recall reading something about that too Apr 03 03:28:03 b0nn: doh? Apr 03 03:28:17 on top of it all.. .every dist is its own, any company can come along and bastardize the shit out of the kernel / android core etc Apr 03 03:28:39 Leeds: kind of, put too much faith into eclipse refactor tool Apr 03 03:28:40 one of our hardware suppliers had their own android we started off with Apr 03 03:28:47 ron_frown: yuh huh. And then you get into the vendor flavors of custom APIs on top of that Apr 03 03:28:52 man they didnt use much of the stock aosp build system AT all Apr 03 03:28:52 I know it's patronising, but this is the sort of reason why you *don't* edit error messages to hide stuff which you *know* is right... if you don't know what the error is, it could probably be anything Apr 03 03:29:52 they didnt understand u-boot/fastboot, so they jsut ripped fastboot out of the mix Apr 03 03:30:04 they didnt understand system restore stuff.... recovery partition stuff Apr 03 03:30:06 and ripped it out Apr 03 03:30:30 ron_frown: did they use the boot time for the device id? that's a hilarious common trick for shitty hardware manufs Apr 03 03:30:50 no... I would have been fine with that Apr 03 03:31:14 every device has a HARDWARE id of 123456789abcdefg Apr 03 03:31:20 burned into processor Apr 03 03:31:20 hahaha Apr 03 03:31:38 that's like seeing MAC addresses on a network which are all 0 Apr 03 03:31:41 ron_frown: it's the same race to the bottom wifi hw manufs have been doing Apr 03 03:31:58 any suggestions on using a radial gradient drawable that is screen-density independent? It seems you can only specify the radius in pixels Apr 03 03:32:14 Leeds: that's... quality. :P Apr 03 03:33:00 . Apr 03 03:33:10 pretty sketchy Apr 03 03:33:27 ron_frown: i've got *quality* wifi gear which has fun quirks like... we forgot to connect the usb2 irq :P Apr 03 03:33:33 got some newer hardware I'm helping finish up the engineering on and its going a lot smoother Apr 03 03:34:20 ron_frown: so usb1, works fine. usb2? not so much, unless you generate a fake interrupt in the kernel at, say, 100hz. 'cause that's efficient. Apr 03 03:34:32 I got better for you Apr 03 03:34:59 we had this weird shit where *IF* something was pugged into HDMI, when you booted the hardware, it'd register clicks ALL over the fucking touchscreen Apr 03 03:35:12 ron_frown: wow nice. bad grounding? Apr 03 03:35:13 come to find out they fucked up and compiled kernel with touchscreen driver that our hardware didnt hae Apr 03 03:35:14 have Apr 03 03:35:16 no big deal Apr 03 03:35:27 ron_frown: oh. that's odd. nice that it was all sw Apr 03 03:35:30 THEY GAVE IT THE SAME GOD DAMN I2C address as the HDMI transmitter Apr 03 03:35:35 HA Apr 03 03:35:39 ok that's beautiful Apr 03 03:35:55 last 6 mo is full of beauties like taht Apr 03 03:36:00 wow i2c, really? or are you just using that for the control path Apr 03 03:36:46 I dont know enough abotu that details on that to be honest, I ripped out the driver and ba Apr 03 03:36:47 bam Apr 03 03:37:18 I suppose you can pump i2c pretty fast, but i've only seen it used on lower bandwidth stuff. Apr 03 03:37:25 oh yeah Apr 03 03:37:30 I am sure it was for control shit Apr 03 03:37:39 i2c is awesome, except for the bit about how i2c address work.. that bit is junk Apr 03 03:37:41 basically the medialink communications on initialization Apr 03 03:37:54 ron_frown: that makes sense Apr 03 03:38:20 Drakonite: i usually use SPI for high-bw stuff, mostly because I can clock the shit out of it Apr 03 03:39:22 well, I wasn't mentioning bw Apr 03 03:40:47 I was trying to get a diff display then what they wanted us to use... better quality AND lower prices Apr 03 03:41:00 their configuration was way way way way diff than anything I've ever seen Apr 03 03:41:46 what does <> mean in AsyncTask? (sorry im REALLY new to java) Apr 03 03:42:07 generics Apr 03 03:42:11 http://docs.oracle.com/javase/tutorial/java/generics/genmethods.html Apr 03 03:42:13 gonna need to read up on that Apr 03 03:42:15 kk Apr 03 03:42:43 dragorn: I like i2c for applicable stuff because it's 2 wire (as opposed to SPI's 4 for example) and you can connect and address lots of devices without needing individual signal lines or active daisy chaining -- just the 2 wire bus :) Apr 03 03:42:45 swarley: are you familiar with c++ templates? Apr 03 03:42:56 only slightly Apr 03 03:43:22 swarley: they're like that. yeah; go read. too complex to really explain easily, basically they let you insert dynamic types Apr 03 03:43:30 oh Apr 03 03:43:31 okay Apr 03 03:43:41 same kind of thing, but just the basics, not as much of the extreme stuff Apr 03 03:44:43 templates arent really a good analogy Apr 03 03:44:44 reading this feels weird o_o Apr 03 03:44:51 I mean they look similar, work completely diff Apr 03 03:45:02 OH Apr 03 03:45:04 i get it now Apr 03 03:45:06 ron_frown: if you understand templates you're not far off from understanding generics Apr 03 03:45:21 basically Apr 03 03:45:35 dragorn not to sound like an ass but if he had no idea <> was generics, wouldnt you make the assumption c++ would be foreign to him as well? =) Apr 03 03:45:37 class Box where within it, T is of type Apr 03 03:45:55 simplest example is List Apr 03 03:45:58 i've used C, but not much of C++ Apr 03 03:46:04 ron_frown: well that's why i asked :P Apr 03 03:46:12 it just ensures whaty ou stick in and take out are of type t Apr 03 03:46:16 without boxing/unboxing Apr 03 03:46:21 i see Apr 03 03:46:24 I think java's generics are still lame Apr 03 03:46:32 but better than nothing Apr 03 03:46:34 so how is it used in Asyncs? Apr 03 03:46:40 first type is input Apr 03 03:46:45 second is progress increments Apr 03 03:46:51 last is return type Apr 03 03:46:57 so Apr 03 03:47:06 the return type of execute()? Apr 03 03:47:12 you are going to be passing in ints in execute(), you are going to publishprogress of type int Apr 03 03:47:22 and you are going to return someobj in executinbg Apr 03 03:47:34 if you dont need one or more of those things Apr 03 03:47:37 just set the type to Void Apr 03 03:48:05 i see Apr 03 03:48:11 thank yuo, that clears up a lot Apr 03 03:48:13 you* Apr 03 03:48:21 np Apr 03 04:01:10 i have an imageview inside a fullscreen relativelayout that is on top of the main relativelayout. this is for splash screen purposes, etc. the image i'm using for a splash is larger than the screen, which is intentional...but it's scaling the width of the image to the width of the screen. is there a way to explicity tell it not to do so? Apr 03 04:04:55 dualMoon: get rid of the splash screen; problem solved ! Apr 03 04:05:13 my goodness, you just know how to solve every problem! Apr 03 04:05:39 :) Apr 03 04:05:42 splash screens are an annoying relic of the 90's Apr 03 04:06:10 good thing i was asking what the channel thought of splash screens, huh? Apr 03 04:06:30 splash screens are generally only useful if you have a crappy inefficient slow-loading app -- as long as the splash screen includes a decent progress bar Apr 03 04:06:39 otherwise they're just a sign of a crappy app that should be avoided. Apr 03 04:07:14 i provided the context of my question simply to help clarify what i'm asking for. i don't care what your thoughts on the outside details are, i simply need to know if anyone knows how to prevent an imageview from scaling the image to the view. Apr 03 04:07:59 dualMoon: did you try reading the docs ? Apr 03 04:08:11 i mean, for ImageView Apr 03 04:08:25 g00s: no, i never considered scanning through the 8 tabs of android sdk reference docs i have open. Apr 03 04:08:43 yes, of course i did, but i have not found what i have managed to consider the answer to my problem. Apr 03 04:09:09 look at android:scaleType Apr 03 04:10:31 I would attack you for having 8 tabs of documentation open, but the android reference and api docs both suck unbelievably. Apr 03 04:11:16 g00s: thank you. the docs are a bit confusing when it comes to elements of various xml files that make up a project, and that was more than a little bit out of the way Apr 03 04:11:29 so, i have a ListView. my problem is that the selection indicator is not shown when an item is pressed. i see it displayed if i use my mouse wheel on the emulator, though. any ideas why this could happen? Apr 03 04:11:41 pragma_: oh by all means, go ahead. i wouldn't want to ruin your reputation as elitist genius of android development irc channels. ;) Apr 03 04:12:28 pragma_: just don't fool yourself into thinking that i'm too stupid to know that everyone develops differently, and your opinion on how I do means nothing Apr 03 04:13:12 Hey guys I'm doing Android Junit tests. I was wondering how I can put information into a bundle when the activity starts up within the junit test Apr 03 04:13:18 If anyone could help that would be awesome Apr 03 04:13:32 Because if I dont have information in the bundle the activity fails Apr 03 04:13:52 fwiw, the only reason i'm bothering with the splash is to give something pretty to look at while the app's mediaplayer object prepares, which takes a little while no matter how slim the app is Apr 03 04:15:54 dualMoon: please be nice Apr 03 04:16:21 Leeds: apologies. i should know better than to stoop. Apr 03 04:16:28 you're asking for help in a public place, from random people, who may express opinions as well as answer your specific questions - telling them you're not interested in their opinion is rude Apr 03 04:17:30 Leeds: again, I apologize. I figured that was a two-way street, and I thought I understood nitpicking at someone's style of doing something while providing no useful help was also rude. Apr 03 04:18:05 nope, not a two-way street - you're the one asking for help/advice Apr 03 04:18:31 Leeds: things are indeed different here. i shall remember my place. Apr 03 04:18:58 it's one thing if you're chatting, another thing if you're asking Apr 03 04:19:07 lol Apr 03 04:19:38 Leeds: it's all a matter of opinion, to be honest, but i'll assume you hold some sort of authority, and try not to expect too much from the channel. Apr 03 04:20:26 indeed... Apr 03 04:20:27 Probably simple but this has me a bit lost -- if I have a local, bound service and I want to push events from the Service back to the binding Activity, how do I do it? If I just store a reference to my Activity I guess that's fine, but I can't modify the UI from that thread I think? Apr 03 04:20:34 the authority of being right Apr 03 04:21:14 Leeds: considering I'm no longer asking a question, I think I'd like to be so bold as to say that your haughty attitude is, well, offputting. Apr 03 04:21:29 stop bickering Apr 03 04:22:01 dualMoon: did g00s answer your question? Apr 03 04:22:09 did that work? Apr 03 04:22:19 jeppy: indeed he did, and I'm quite thankful. Apr 03 04:27:05 LordXe-gnu: I'm not sure if it is the best way to do it, but you could post a Runnable to the view you want to change Apr 03 04:27:19 hm Apr 03 04:27:24 http://developer.android.com/reference/android/view/View.html#post(java.lang.Runnable) Apr 03 04:27:35 i.e. via .runOnUIThread()? Apr 03 04:27:50 ah Apr 03 04:27:52 yes sort of Apr 03 04:28:02 hm, let me have a look Apr 03 04:29:17 LordXe-gnu: assuming i'm understanding you correctly, i've been doing a bit of something similar and used messengers Apr 03 04:30:54 dualMoon, oh, neat. The android dev page mentions "between processes" -- would it still be something appropriate if they're in the same process do you think? Apr 03 04:31:00 http://pastebin.com/MJPuT1Hj When I click the button, the touch event is mentioned in the logs (logcat) but nothing happens (no line of hashes.. nothing) why? Apr 03 04:32:07 LordXe-gnu: from my understanding they're appropriate either way, but maybe not the simplest thing. Apr 03 04:32:42 b0nn: dont use System.println(), use Log.d(tag, msg) or Log.[letter](tag, msg) Apr 03 04:32:54 ok Apr 03 04:33:49 recommended tag? Apr 03 04:33:59 class name Apr 03 04:34:58 b0nn: I use the name of my class or something similar that's easily identifiable. also I think it's common convention to store it as a private final class variable named "TAG" Apr 03 04:35:27 ok Apr 03 04:35:33 Nothing in the log Apr 03 04:36:10 http://pastebin.com/F5GTPJ7a Apr 03 04:36:26 hallaue all Apr 03 04:38:16 Barnes and Noble has provided the source for the kernel they use in their Nook's stock OS. The issue is, they failed to include the modules that interface some of the more proprietary parts (like the screen and WLAN drivers) Apr 03 04:38:29 these modules are quite hard to track down Apr 03 04:39:13 is it possible that I could somehow take the modules from the kernel's build and integrate them into a newer kernel and userland Apr 03 04:39:22 (say ICS (^: ) Apr 03 04:40:08 enthdegree: you might want to contact the peopole here http://forum.xda-developers.com/showthread.php?t=1480586 Apr 03 04:40:26 this is the nook tablet Apr 03 04:40:37 I was thinking of the nook touch, the b+w e-ink one Apr 03 04:40:52 but thanks for the link, yes I am active on these forums. Apr 03 04:41:03 How have people resolved this sort of issue in the past Apr 03 04:47:04 So, nothing is going to the logcat http://pastebin.com/8J5jPYd1 Apr 03 04:50:33 what's a layout type that lets me specify x, y, w, h for each child? Apr 03 04:50:50 absolute? Apr 03 04:50:51 one that will give you headaches Apr 03 04:51:11 ya, all I see is absolutelayout, but it claims to be deprecated, suggesting there's something else Apr 03 04:51:21 I mean, I know it's annoying, but it's what I've gotta deal with for now Apr 03 04:51:33 what triggers nightlies to be built? there hasnt been a new maguro nightly in a few days, but there have been some changes Apr 03 04:51:46 bah wrong chan Apr 03 04:51:50 should I just use AbsoluteLayout even though it's deprecated? Apr 03 04:51:54 no Apr 03 04:52:11 the whole point of layouts is that you dont set x/y Apr 03 04:52:47 right, I totally understand that Apr 03 04:53:00 I'm writing the android half of a framework that allows for cross platform ios/android stuff Apr 03 04:53:34 so the common denominator is x/y/w/h, and I actually already wrote some javascript for the ios part that essentially is a layout engine, so I don't program x/y/w/h directly Apr 03 04:53:39 that's just what I need to hook up to android Apr 03 04:53:58 thats not how android works Apr 03 04:54:25 what's not? Apr 03 04:54:52 absolute positioning Apr 03 04:54:53 the idea is the same code will run on android and ios, so I can't use one layout engine for one platform and one for another, so I need the common denominator for now Apr 03 04:55:04 it wont work on android Apr 03 04:55:13 because how's it going to behave when you have a different screen? Apr 03 04:55:14 why not? it's not possible to specify x/y? Apr 03 04:55:18 big black bars at the bottom and right? Apr 03 04:55:27 I have my own layout engine in JS Apr 03 04:55:48 theres no gaurantee AbsoluteLayout will exist in the next version of android Apr 03 04:55:52 you can say put these 3 views in this horizontal space, grow 2 out of the 3 to fill the space, etc. Apr 03 04:55:54 deprecated stuff has been removed in the past Apr 03 04:56:44 which is why I'm hesitant to use something deprecated, but also why I figured there'd be a replacement Apr 03 04:56:47 but I can't seem to find it Apr 03 04:56:59 I mean, I could write my own ViewGroup subclass I guess Apr 03 04:57:02 there isnt Apr 03 04:57:18 they deprecated it because they dont want you using x/y Apr 03 04:57:27 so they're not going to replace it with something that does just that Apr 03 04:58:33 I totally understand the reasoning, but I guess I'll use AbsoluteLayout for now and then deal with it when it breaks Apr 03 04:58:47 definitely not the first or most frustrating part of this project, hehe Apr 03 04:58:51 thanks for the help Apr 03 05:08:40 god i feel old, they are remaking Total Recall already ? Apr 03 05:10:53 http://www.flickr.com/photos/brad_frost/7030374923/ Apr 03 05:11:56 finally sorted the problem out, changing android versions was the fix Apr 03 05:13:32 looks like Square got one of the google wallet guys Apr 03 05:45:42 so whos working on something neat Apr 03 05:46:18 I'm working on an idea machine Apr 03 05:49:06 ron_frown, hi Apr 03 05:49:14 readme Apr 03 05:49:16 good job Apr 03 05:49:25 you come up with the ideas, I'll build em Apr 03 05:49:26 and $$$ Apr 03 05:49:52 ideas are way harder than code Apr 03 05:49:57 :( Apr 03 05:50:03 actually I have a lot of good ideas Apr 03 05:50:05 just need funding Apr 03 05:50:10 ron_frown: I had an awesome idea, but someone showed me it's a moot point because someone already is doing it Apr 03 05:50:17 just happened today, really devastated Apr 03 05:50:19 http://notifo.com Apr 03 05:50:23 doesnt matter if someone is already doing it Apr 03 05:50:24 do it better Apr 03 05:50:26 they're coming out with android version in just a few weeks Apr 03 05:50:34 I can't do it better, I don't have the time, resources, mac, and iphone Apr 03 05:50:49 then kill them Apr 03 05:50:51 haha Apr 03 05:50:59 xorgate: i won't say I didn't consider it, lol Apr 03 05:51:04 honestly only case I've seen where the first company to really do it Apr 03 05:51:10 thats still the bst Apr 03 05:51:11 ebay Apr 03 05:51:15 and I think its just the name Apr 03 05:51:21 people dont go looking for other auction sites Apr 03 05:51:27 ebay have failed in a bunch of regions Apr 03 05:51:29 at this point ebay is MOSTLY just a universal market place Apr 03 05:51:35 not at all Apr 03 05:51:41 auctions suck cock, no deals to be found anymore Apr 03 05:51:45 go to HK, or TW, nobody uses ebay Apr 03 05:52:04 ebay have bailed out of a bunch of those markets Apr 03 05:52:10 in anycase all I meant to say Apr 03 05:52:19 its just like etsy for non arts and crafts shit Apr 03 05:52:31 imo amazon has kicked ebay's ass. ebay may be a different model, but it seems the same customers are still making a choice between amazon and ebay for the same means to their ends Apr 03 05:52:32 nobody bids cept on cars/collectibles Apr 03 05:52:47 I have bought 2 cars on ebay Apr 03 05:52:52 I got a killer deal on a vw golf Apr 03 05:53:00 because at least on amazon they arent trying to disguise what they are Apr 03 05:53:15 readme - try something thats old Apr 03 05:53:24 ron_frown: of what? ideas? Apr 03 05:53:28 I wanted to buy an old beater 1932 model a Apr 03 05:53:34 ah Apr 03 05:53:34 to soup it up Apr 03 05:53:36 haha Apr 03 05:53:42 the vw was like, 90s Apr 03 05:53:43 hi Apr 03 05:53:45 a car that should be worth around 1500 Apr 03 05:53:48 TOPS Apr 03 05:53:57 everyone thinks they got solid gold Apr 03 05:53:59 yeah, that's how much I paid for this car, and it had hardly any milage, only ONE owner Apr 03 05:54:10 and, records of all the oil changes and repairs Apr 03 05:54:12 from day 1 Apr 03 05:54:16 it was amazing Apr 03 05:54:18 I sold it though Apr 03 05:54:46 one of those old person cars, you know.. never really driven Apr 03 05:55:58 I was gonne build something like craigslist for very specific markets Apr 03 05:56:09 because while craigslist seems to get the job done, its a total pos Apr 03 05:56:10 haha Apr 03 05:58:26 it has been tried by many Apr 03 05:58:38 I know Apr 03 05:58:49 check these out: http://carsabi.com http://padmapper.com Apr 03 05:58:54 both just syndiacate craigslist feeds Apr 03 05:59:02 syndicate* Apr 03 05:59:25 I've build something that did that before Apr 03 05:59:57 any specific function Apr 03 06:02:17 haha Apr 03 06:02:24 too hard to describe Apr 03 06:02:38 good data source for ai analysis Apr 03 06:02:45 testing Apr 03 06:03:08 sadly I've all but forgotten anything to do with that stuff Apr 03 06:03:23 hmm, weird.. my externalCacheDir() disappears when i reinstall my app Apr 03 06:03:37 but only in the emulator Apr 03 06:05:22 hmm, no, seems to be a bug in my code.. Apr 03 06:05:25 weird weird.. Apr 03 06:07:21 hmm, actually no.. the whole cache directory disappears.. and my code should never do that.. Apr 03 06:07:24 weird weird weird Apr 03 06:10:06 Eclipse spazzed out and is refusing to render my button text (that comes from a string). Android is rendering is fine. Restarting didn't fix it. What could I try to fix this? Apr 03 06:10:30 clean Apr 03 06:10:31 drag eclipse to your trashbin Apr 03 06:10:38 project clean Apr 03 06:11:05 adt is a little horse bangin skank when it comes to handling resources Apr 03 06:11:10 yourapp.R Apr 03 06:11:28 ok Apr 03 06:12:22 Nah not working out, cleaned and restarted several times. Very odd Apr 03 06:13:03 In the outline, it says the button is set to @string/etc instead of the actual text as well Apr 03 06:13:15 And that @string reference is valid - I selected the string via the menu it offered me Apr 03 06:23:05 wow, the android dev guide and sdk are both truly amazing... Apr 03 06:23:16 ... amazing at being pieces of crap Apr 03 06:23:23 http://developer.android.com/guide/topics/resources/more-resources.html#IntegerArray Apr 03 06:23:27 Fail. Apr 03 06:23:55 Syntax is garbled, and it says its elements are "string-array" instead of "integer-array" Apr 03 06:24:08 And that's only the obvious errors. Apr 03 06:24:11 pragma_: http://code.google.com/p/android/issues/detail?id=15462 Apr 03 06:24:29 over half a month later, still uncorrected. Apr 03 06:24:51 oh, not even 2012. Apr 03 06:24:54 over a *year* later Apr 03 06:24:58 Indeed. Apr 03 06:25:12 and that's my bug, BTW :) Apr 03 06:25:20 bug report, I hope you mean. Apr 03 06:25:26 yeah, yeah Apr 03 06:25:38 Yeah, I kind of missed the fact that you needed to use fragments in modern development completely, and I was going off the docs only all the time Apr 03 06:25:54 I only stumbled on them by accident when I wanted to get my app to preserve state on orientation change :-/ Apr 03 06:26:05 (and what I read was the old outdated document that was not marked as such) Apr 03 06:27:59 http://stackoverflow.com/questions/9984083/ics-show-black-preview-screen-in-task-manager Apr 03 06:40:13 * pragma_ swears loudly when he discovers ListPreference cannot be used with integer-array Apr 03 06:42:44 oooh, i think i know what might be the problem.. Apr 03 06:42:55 when i press run in eclipse, the app gets uninstalled first, right? Apr 03 06:42:59 before being reinstalled? Apr 03 06:44:19 Bah, I'll just create the ListPreference programmatically. Apr 03 06:44:22 it seems the uninstall lags a bit.. so my new build runs while its external cache dir is being removed Apr 03 06:44:47 so i see parts of the cache dir while starting up and when it's finally running the cache dir is gone Apr 03 06:45:18 i never expected the spanish inquisition Apr 03 06:45:32 erm i mean a race condition while installing and running a new build of an app ;D Apr 03 06:48:54 i wonder: where do i find the adt plugin source, to be able to see what it does when i run a new build? Apr 03 06:53:02 hi Apr 03 06:53:37 any suggestions on how to RECORD an app? so you can show it without people have to install it? Apr 03 06:54:12 ive used a screen-recorder, but well.. any other methods you guyz use? Apr 03 06:54:14 beStKodeReveR: run in emulator and record your screen? Apr 03 06:54:33 tapas done that.. is there not any other ways? Apr 03 06:54:52 a device with HDMI out and a recorder? Apr 03 06:57:37 Ha. I was typing when a co-worker passed by. I was in the midst of typing "todo" and I had glanced up at the co-worker. When I looked back down at my screen, I realized I had typed "dodo". Epic Fruedian-slip. Apr 03 06:58:02 my phone is 2.3.5 Apr 03 06:58:08 i only see a sdk for 2.3.3 Apr 03 06:58:12 should that be okay? Apr 03 06:58:34 Leeds what about an app that can run other apps, and record them.. :-/ Apr 03 06:58:55 gah.. Apr 03 07:01:45 djshotglass: yeah, no issue - what matters are API levels, not minor OS revisions Apr 03 07:02:53 hackkitten: why do I find pictures of you in a bikini when I google you Apr 03 07:03:09 now my colleagues think I am a pervert Apr 03 07:03:48 u arent? Apr 03 07:04:36 i don't think so Apr 03 07:06:55 Snuffel: y u no work at work Apr 03 07:07:32 i have to wait a lot during deployments Apr 03 07:08:14 i work with Weblogic Apr 03 07:08:18 and that is slooooooooow Apr 03 07:08:42 http://www.componentowl.com/blog/2012/02/zen-coder-vs-distraction-junkie/ Apr 03 07:09:03 hopefully OS X 10.7 compilation of Android source will be fixed soon... Apr 03 07:09:19 my HTC one X is on its way to me Apr 03 07:09:20 yay Apr 03 07:09:31 Snuffel: I've been on the phone arguing with HTC about that Apr 03 07:10:03 they sent an email last night to pre-orderers, saying it was now available - when I called to confirm, they said that they meant to say "on Thursday" Apr 03 07:11:02 which country? Apr 03 07:11:06 Hong Kong Apr 03 07:11:17 i have a track 'n trace number saying it's in the mail Apr 03 07:11:19 in NL Apr 03 07:11:57 they 'launched' it yesterday, but as of this morning shops were still saying they didn't know when they'd get stock... complete cock-up of a launch Apr 03 07:12:10 big fail Apr 03 07:12:38 presumably if I'd gone to *collect* my pre-order, the shop would have simply turned me away... and turning away the most interested consumers is exactly the right way to launch a new flagship device... Apr 03 07:13:30 quite literally a case of "shut up and take my money" Apr 03 07:15:55 going to the UK tomorrow to see the family for Passover (i.e. Easter) - I think what I'm going to have to do is find a shop in the UK which will sell it to me out-of-contract, *and* which will handle the paperwork for me to claim back the tax on it, since I'm not resident in the EU Apr 03 07:16:34 i can't wait Apr 03 07:16:37 i have a Desire now Apr 03 07:16:41 it has like 100mb for apps Apr 03 07:16:45 it totally blows Apr 03 07:16:55 i'll give it to my daughter :) Apr 03 07:17:39 I sold my Desire and my N1 - to the same guy... he had a drink spiked and the N1 stolen about a week after I gave it to him... Apr 03 07:18:17 I'm using an SII now, which isn't really that bad - compared to the Magic I used for a few weeks after my gnex got stolen... this is a rough part of the world, in some ways :) Apr 03 07:19:01 Hong Kong, right? Apr 03 07:19:13 what is the difference between binding a service and just start a service ? Apr 03 07:19:24 yeah Apr 03 07:19:41 wow, wouldn't have thought it Apr 03 07:19:49 S0lign0c: don't quote me on this, but I think if it's bound, it's tied to your Activity's lifecycle Apr 03 07:19:50 i considered the SII but I didn't like the screen resolution Apr 03 07:19:56 since my husband has a nexus Apr 03 07:20:04 i wanted that res too :) Apr 03 07:20:08 AND a good camera Apr 03 07:20:10 S0lign0c: http://developer.android.com/guide/topics/fundamentals/bound-services.html Apr 03 07:20:12 i think the Once X has both Apr 03 07:20:15 -c Apr 03 07:20:17 alex_PP: well, the N1 was stolen in a bar... the gnex was stolen out of my pocket in Shenzhen, not in HK Apr 03 07:21:15 Snuffel: I wouldn't buy an SII for myself now, but until the One X ships I think it's probably the best all-round phone available... my gf has a gnex now :) Apr 03 07:22:07 i heard the only downside it that it doesn't have a camera button Apr 03 07:22:42 I've heard some negative stuff about the battery life... some people don't like Sense at all... and some worries about the camera lens (cover) getting scratched Apr 03 07:23:20 also, the gnex got cheap recently - 350EUR or less for a new one on a grey import Apr 03 07:24:01 man, it is so easy to deadlock my droid 3 Apr 03 07:24:31 only takes about 100 forks of cat /dev/zero > /dev/null... I was using them to increase the CPU usage on purpose Apr 03 07:24:55 there's a reason why that's called a forkbomb Apr 03 07:25:04 forkbomb is typically not just 100 forks Apr 03 07:25:11 usually infinite, no? Apr 03 07:25:22 anyway, the CPU didn't even max out Apr 03 07:25:25 and it still locked the phone Apr 03 07:26:49 would be nice if I had sysrq magic Apr 03 07:37:27 I'm trying to connect to a secure Wifi network. How can I detect that the authentication phase failed? So far, I haven't seen anything useful in the API. Any help? Thanks! Apr 03 07:38:58 arakn0: http://developer.android.com/reference/android/net/ConnectivityManager.html#EXTRA_REASON Apr 03 07:41:03 that one sounds a bit flakey Apr 03 07:41:27 NetworkInfo.State perhaps? Apr 03 07:41:52 reason? Apr 03 07:42:01 el flako, definitely Apr 03 07:42:38 xorgate: seems that getReason() in NetworkInfo.State should point to the same data, but whatever you say man. Apr 03 07:42:51 stacktrace no good? Apr 03 07:43:13 readme: I'm checking your suggestion Apr 03 07:43:37 any of you guys tried any apps of your own on Samsung Young? that small one? Apr 03 07:44:43 arakn0: nah, try xorgate's Apr 03 07:44:52 that seems more like it's for programmatic consumption Apr 03 07:46:19 I already use NetworkInfo.State. And when it fails...I get DISCONNECT through the intent, but.. It's too generic. Apr 03 07:46:26 looks like you could probably see if FAILED comes after AUTHENTICATING Apr 03 07:46:35 is it possible to add some extra text to a textview you've connected to a cursor in an adapter? Apr 03 07:46:43 you'd have to monitor multiple states to draw a good conclusion Apr 03 07:47:53 like I use a SimpleTreeCursorAdapter for an expandablelistview, and you connect a cursor column to a certain textview, is it possible to add some extra text after it? Apr 03 07:48:12 so that you see like "value:" Apr 03 07:52:35 hmm I think I can do that with ViewBinder right? Apr 03 07:53:29 why does the emulator show "crappy" graphics..? Apr 03 07:53:48 is it because of the dpi? Apr 03 07:56:43 hm, I have a little bit of data I am trying to dynamically add to a tablelayout, I want it to be Key: Value Apr 03 08:01:34 the problem is getting multple textviews b=]per row Apr 03 08:02:51 well you did define 2 textviews per row Apr 03 08:04:30 yeah I'll show the crap(tm) coding I have at the moment Apr 03 08:05:37 http://pastebin.com/FZHAcFPG Apr 03 08:06:56 Any1 familiar with robolectric? Apr 03 08:07:13 I have some problems with java threads and robolectric Apr 03 08:07:30 you add the row twice? Apr 03 08:08:00 yeah, it's crashing the ideas atm Apr 03 08:08:15 I did try adding the view to the row first, but it came out as multi rows Apr 03 08:08:35 hm, I wonder if it was because the combined text was too wide for the screen Apr 03 08:13:27 Fixed it Apr 03 08:13:30 thanks Apr 03 08:31:58 Snuffel > my bikini pics are the most popular for some reason Apr 03 08:32:03 Snuffel > I have no idea why Apr 03 08:32:04 :P Apr 03 08:33:08 hi, is there any good way to create a Google profile from my Android application? Apr 03 08:33:16 what is a google profile? Apr 03 08:33:33 my application uses picasa to upload pictures, but the problem is that if there's no profile, it can't use picasa ... so I need to create google profile first. Apr 03 08:33:34 a google account, I guess Apr 03 08:34:12 pragma`, http://shrani.najdi.si/?1M/f5/2l5cHDEB/picasaauto.png this Apr 03 08:34:15 no not a google account Apr 03 08:34:25 a google account is already present, just a google profile Apr 03 08:34:41 bikini pics_ Apr 03 08:34:45 there's probably an API for that Apr 03 08:34:52 for science i need to see them Apr 03 08:35:03 Snuffel, I've looked around and didn't find any function calls ... Apr 03 08:35:43 http://code.google.com/p/iptableslog/ -- I just added those last two images (and the implementation therewithin). Progress! Apr 03 08:36:48 Now to significantly improve what those graphs can do... Apr 03 08:36:50 evelyette: http://www.java2s.com/Open-Source/Android/Client/picasadroid/app/droid/picasa/ConfigureProfileActivity.java.htm Apr 03 08:36:53 like this? Apr 03 08:38:18 Snuffel: is that your app ? Apr 03 08:38:19 tapas > yes :P Apr 03 08:38:24 hi g00s :D Apr 03 08:38:34 hello hackkitten :) Apr 03 08:38:40 * hackkitten gotz her new phone :o Apr 03 08:38:51 Snuffel, I don't know, I will have to investigate further and try it Apr 03 08:38:51 which one ? Apr 03 08:39:09 Huawei U8850 Vision Apr 03 08:39:11 on second thought.. i succesfully recovered my pr0n collection from my failing HDD. so no need for the bikini pics ;D Apr 03 08:39:16 ^-^;;; Apr 03 08:39:23 * hackkitten likes being pr0n-free~ Apr 03 08:39:36 why? Apr 03 08:39:46 * hackkitten shrugs Apr 03 08:39:50 dun care about pr0n~ Apr 03 08:39:57 why'd I want to look at other people being naked? Apr 03 08:40:00 that's just icky~ Apr 03 08:40:16 * hackkitten dons her thick-rimmed glasses and pocket protector~ Apr 03 08:40:17 depends.. Apr 03 08:40:17 :3 Apr 03 08:40:18 Clothes are icky~ Apr 03 08:40:34 I love the passwords-do-not-match dialog. Apr 03 08:40:45 "Passwords dont match?" [Yes] Apr 03 08:40:52 Lovely. Apr 03 08:41:04 (from Snuffel's link) Apr 03 08:41:10 how do I find rows in a table if I created them earlier dynamically (I want to delete all rows) Apr 03 08:41:18 * g00s smooches alien bug on wall, but it falls in his backpack x.x Apr 03 08:41:22 *smooshes Apr 03 08:41:24 interesting case on "Profile Couldnt be Created" too Apr 03 08:41:54 Snuffel, this uses ClientLogin, but I use OAuth2 ... so if it's possible that I still use OAuth so I don't mix ClientLogin with OAuth .. ? Apr 03 08:42:00 b0nn: using a cursor? Apr 03 08:42:13 * pragma` cringes at the broken indentation and weird white-space as well. Apr 03 08:43:26 Is SharedPreferenced ment to save data only inside one activity? So I can't save data with SharedPreference in activity1 and then retrieve it in activity2? Apr 03 08:43:44 Someone criticize my code! :) Apr 03 08:43:53 Be as mean as I am. Apr 03 08:44:25 tapas: no Apr 03 08:44:59 found something: http://stackoverflow.com/questions/3327599/get-all-tablerows-in-a-tablelayout Apr 03 08:45:05 Hi, I'm going through the source of Settings.apk, and I've found there is a line that says ( in my mod ) mEnableVolumeOptions.setChecked(Settings.System.getInt(getActivity().getContentResolver(), Settings.System.ENABLE_VOLUME_OPTIONS, 0) == 1); Apr 03 08:45:16 http://code.google.com/p/iptableslog/source/browse/#svn%2Ftrunk%2Fsrc%2Fcom%2Fgooglecode%2Fiptableslog -- there, unleash your worst criticisms on me for it shall only make me and my app stronger! Apr 03 08:45:28 but Settings.System.ENABLE_VOLUME_OPTIONS isnt defined anywhere, I grepped the entire tree of Settings.apk Apr 03 08:48:55 Snuffel, and this code doesn't work anyway, I've tried it just now Apr 03 08:52:27 hey guyz.. how you do a demo of your appz to people without having them to install it? video..? Apr 03 08:53:22 beStKodeReveR: I send a dance-gram. Apr 03 08:53:37 ive recorded my app.. but since its in vertical mode.. and most videos are horizontal the app get smaller.. to fit Apr 03 08:54:15 Interpretative-dance is an excellent way to advertise. Apr 03 08:55:58 I find that a discussion of the interprative dance routine you would use, if you could dance, is helpful. Apr 03 08:56:48 i think i can dance.. Apr 03 08:57:11 huh! Apr 03 09:00:48 there should be a record function to the emulator..! Apr 03 09:00:54 why why why.. Apr 03 09:01:59 if you use a screen recorder the videoformat the chances are the format will come out wrong.. to big..and then you can see the video on your phone :-/ Apr 03 09:02:14 * Gumboot realises what Seidr's problem is, and wonders how they got so far implementing bad advice which would require that they did the correct thing incorrectly over and over. Apr 03 09:12:18 the style actionMenuTextColor doesn't seem to do anything Apr 03 09:18:17 what is the style used when a theme is not set? Apr 03 09:23:59 Hi. how is the app name set on android market? I used android:lable on manifest file. is it going to be same or can I give a different name on the market? Apr 03 09:24:28 You decide name when it is uploaded Apr 03 09:25:05 Mikellip: thank you Apr 03 09:25:08 Why would you give it a different name? Apr 03 09:26:12 Disconnected... Apr 03 09:26:14 vudu: also the package name will be used as a unique id in the url so you should chose that carefully too. If you work for a company you'd want to include your company name. A good idea is this form: com.company.appname Apr 03 09:26:21 And: You decide name when it is uploaded Apr 03 09:27:24 unless your company's website is company.net or something entirely different... Apr 03 09:28:01 when i have multichoice dialog w/out buttons, where would i perform any actions when i close the dialog with back button? Apr 03 09:28:07 Mikellip: thank you for the tip. Apr 03 09:28:33 tobib: onDialogDismissListener or something similiar Apr 03 09:28:49 how do i change the action menu text color? i've traded android:actionMenuTextAppearance, android:actionMenuTextColor, and android:actionDropDownStyle Apr 03 09:28:53 tried* Apr 03 09:29:17 ah cool thx Apr 03 09:33:41 other question. if i use setcolumncollapsed, can i somehow avoid "restarting" the activity? Apr 03 09:33:43 i set android:actionMenuTextColor to white but it is still black Apr 03 09:41:00 morning Apr 03 09:41:35 i am having lots of problems trying to authenticate with oauth2, does anybody know any good tutorials? Apr 03 09:42:10 is it possible to use account manager for my own company? Apr 03 09:44:20 Hello people. I am having trouble with the recents list and an application with multiple activities. Apr 03 09:44:24 When I open an activity from the main activity it replaces the main activity in the recents. Apr 03 09:44:27 When I mark the second activity as excludeFromRecents my application is lost from the recents altogether. Apr 03 09:52:24 How can I make an notification bring my application to front, without launching a new activity? Apr 03 09:53:12 http://www.reuters.com/article/2012/04/02/us-app-wealthy-idUSBRE83108920120402 Apr 03 09:55:39 Does android really kill the process when you swipe right ? Apr 03 09:55:40 Lachezar: perhaps you've set something strange in your manifest for the secondary activity? Apr 03 09:57:41 hi :) Apr 03 10:00:52 Hey there. Apr 03 10:01:51 Hello, Is it possible to have 3 different APK for the same app, based on the CPU and ABI and not on the SDK version? Apr 03 10:02:17 appel1: I think it may have to do with the launchMode='singleInstance' Apr 03 10:03:02 appel1: I removed that, but now my notifications open a new instance of the main activity... Apr 03 10:03:13 I am totally lost here... Apr 03 10:03:51 I won a book: http://j.mp/HcGff1 Apr 03 10:03:59 Lachezar: so for your secondary activity you don't have for example action set to main or category set to launcher for example? Apr 03 10:04:28 appel1: No, I only have one activity as main. And I have a pretty deep stack... Apr 03 10:05:32 And I have a notification. It is supposed to bring the applcaition to front, but instead it starts a new main activity instance :0 Apr 03 10:05:49 shouldn't tablelayout.requestLayout() help my case? but nothing happens :/ Apr 03 10:07:37 hmm, should a PreferenceActivity display the values in the preferences without having to set this up manually? Apr 03 10:07:48 it is possible to include binaries on APK ? (i can include java class, .so file but i did not find how to put actual binaries) Apr 03 10:08:40 using the old style deprecated apis Apr 03 10:08:43 [target 2.2] Apr 03 10:09:55 Lachezar: juding by the content of http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html singleInstance isn't what you want at least :) Apr 03 10:13:37 I've just started using WiFi, is there a simple telnet esque method i can use to quickly test my app's development (if it reaches a particular port, the computer has been set up to inform me[i hope :P])? Apr 03 10:16:04 how do I add a google ad in my eclipse project? Apr 03 10:16:34 joepezT: just guessing into the blue: using a webView? Apr 03 10:20:26 perhaps, I am totally new to this, and just have one test so far, just some random hello world app Apr 03 10:20:33 but you might have a point there:) Apr 03 10:23:57 Has anyone here successfully used the camera with MediaRecorder to record video *without* a surface? Please, don't google for me. I already have. Apr 03 10:24:25 Why would I google for you? Are you someone famous? Apr 03 10:24:56 Billions of hits for "readme", wow Apr 03 10:25:00 who ARE you? Apr 03 10:25:24 pragma`: you'll have to talk to my agent Apr 03 10:26:56 hey guys, a quick question in regards match_parent/fill_parent, is this taken care of with the compatibility library, or is fill_parent the recommended one to use if I'm targetting from 2.1 on? Apr 03 10:30:54 napoleoncomplex: recommended way is to use match_parent if targeting 2.1+ afaik Apr 03 10:31:55 atermenji: thanks! Apr 03 10:36:34 Anyone here been the first person to publish a major piece of software? Apr 03 10:37:47 readme: I don't even understand the component words of that sentance. Apr 03 10:38:42 Ankhwatcher: i.e. being the first to implement a big idea Apr 03 10:39:35 woohoo through the marvel of fragments I have replaced my working interface with a big blank white screen Apr 03 10:43:09 you mean is Larry Page here? Apr 03 10:44:28 When is it a good idea to make variables static? Apr 03 10:46:49 Ankhwatcher: make a variable static when you know it's absolutely not going to change (make it final too, while you're at it) OR make a variable static when you absolutely need it to persist beyond the life of an instance, and be available for all classes... You can also use static fields to create global state, but I don't recommend getting carried away with that, since it will make your program spaghetti. Apr 03 10:47:09 that is, available for all instances. Apr 03 10:48:18 you also might want to make something static if you want it to be processed when the class is loaded by the JVM Apr 03 10:48:19 static variables are also needed when you are creating a Singleton class Apr 03 10:48:20 readme: okay so say I have a button and I'm worried that the button will become null if the application falls of the stack, will making it static solve this? Apr 03 10:48:34 Ankhwatcher: no Apr 03 10:48:42 Ankhwatcher: you should be getting a new handle to the button each time Apr 03 10:48:56 okay Apr 03 10:49:00 readme: thansk Apr 03 10:49:04 *thanks Apr 03 10:56:54 In Fragments should onCreateView be called automatically, or should I invoke it from the onResume? Apr 03 10:57:18 it is called by the system Apr 03 10:57:40 you can override it to provide your view to fragment. Apr 03 10:58:07 see the fragment lifecycle diagram in docs Apr 03 10:58:36 atermenji: I'm trying to figure out why I'm getting a white screen Apr 03 10:59:07 Ankhwatcher: have you inflated your view from .xml layout file in onCreateView? Apr 03 10:59:32 Yes, or at least I tried to Apr 03 11:00:00 I find the whole lifecycle diagram of both activity and fragment weird Apr 03 11:00:54 Ankhwatcher: I hope you did smth like this : View view = inflater.inflate(R.layout.my_view); return view; Apr 03 11:01:06 @Override public void onCreate(Bundle savedInstanceState) { Apr 03 11:01:06 super.onCreate(savedInstanceState); Apr 03 11:01:07 /* Supress the default Title Bar because we will be using our own */ Apr 03 11:01:07 this.requestWindowFeature(Window.FEATURE_NO_TITLE); Apr 03 11:01:07 setContentView(R.layout.fixview_fragment); Apr 03 11:01:09 } Apr 03 11:01:11 public void onResume() { Apr 03 11:01:14 super.onResume(); Apr 03 11:01:16 } Apr 03 11:01:16 Dude, pastebin Apr 03 11:01:19 public View onCreateView(LayoutInflater inflater, ViewGroup container, Apr 03 11:01:21 Bundle savedInstanceState) { Apr 03 11:01:24 Apr 03 11:01:26 captureRouteLayout = (LinearLayout) inflater.inflate(R.layout.captureroute_list, container, false); Apr 03 11:01:29 captureButton=(Button)captureRouteLayout.findViewById(R.id.capturelButton); Apr 03 11:01:32 Is there a way to use notifications without completely destroying my activity stack? Apr 03 11:01:32 captureProgress = (ProgressBar) captureRouteLayout.findViewById(R.id.capturelProgress); Apr 03 11:01:35 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); Apr 03 11:01:38 if (settings.getBoolean("capturingRoute", false)) { Apr 03 11:01:40 captureButton.setText(R.string.stop); Apr 03 11:01:43 captureButton.setOnClickListener(stopCapture); Apr 03 11:01:45 captureProgress.setVisibility(0); Apr 03 11:01:48 } else { Apr 03 11:01:50 captureButton.setOnClickListener(startCapture); Apr 03 11:01:52 there should be an autokick here... Apr 03 11:01:53 } Apr 03 11:01:55 return captureRouteLayout; Apr 03 11:01:58 sorry, that was meant to be this http://pastebin.com/5dX2uDPw Apr 03 11:02:07 lulz Apr 03 11:02:09 Ankhwatcher: nice Apr 03 11:02:15 how many lines was that total Apr 03 11:02:30 Is there a way to use notifications without completely destroying my activity stack? Apr 03 11:02:47 Eh.. is this your fragment, Ankhwatcher ? Apr 03 11:02:51 Fragments don't have setContentView Apr 03 11:02:52 Lachezar: you don't even need activities to have a notification, so what do you mean? Apr 03 11:03:12 Ankhwatcher: setContentView is supposed to be called from Activity Apr 03 11:03:44 and your fragment has to be in that layout. Or it should be added via FragmentManager Apr 03 11:04:37 readme: I want the notification to bring my application's activity stack to front without completely breaking it, and without starting a new copy of the application... Apr 03 11:05:10 CLEAR_TOP Apr 03 11:05:43 how to get filename after the last slash, in: images/weather/sunny.gif ? Apr 03 11:05:50 readme: Yeah _RIGHT_! I am going to COMPLETELY wipe out my user's work to work around a quircky Android? Apr 03 11:07:09 hm, can you declare the activity as a singleTask? Apr 03 11:07:26 http://developer.android.com/reference/android/R.styleable.html#AndroidManifestActivity_launchMode Apr 03 11:07:37 readme: then it actually starts a new activity, and puts it ON TOP of the user's current stack... DOH the pain! Apr 03 11:07:57 atermenji: wait, my fragment needs to be in which layout? Apr 03 11:08:15 Lachezar: "If, when starting the activity, there is already a task running that starts with this activity, then instead of starting a new instance the current task is brought to the front. " Apr 03 11:08:16 maxagaz from a uri or what..? Apr 03 11:08:25 readme: nope... Apr 03 11:08:27 or String? Apr 03 11:08:34 Doesn't work that way :-/ Apr 03 11:08:43 alowaniak: just from a string like this: images/weather/sunny.gif Apr 03 11:08:52 Lachezar: the documentation clearly states that it *doesn't* start a new activity Apr 03 11:09:04 but, good luck, I've got stuff to do Apr 03 11:09:20 Listen to readme :< Apr 03 11:09:37 filename = theString.substring(theString.lastIndexOf("/")) Apr 03 11:09:38 ? Apr 03 11:09:52 atermenji: this is the layout being set with setContentView http://pastebin.com/yZSAPEwV Apr 03 11:09:54 possibly you need to do a +1, never sure on that Apr 03 11:10:03 and you can do the same for removing the .* Apr 03 11:10:50 except then obviously by theString.substring(0, theString.lastIndexOf('.')) Apr 03 11:11:36 alowaniak: thanks! Apr 03 11:11:49 alowaniak: yes, with +1 Apr 03 11:11:54 k:p Apr 03 11:13:12 propeller beanie ? Apr 03 11:15:21 Lachezar: have you read http://developer.android.com/guide/topics/ui/notifiers/notifications.html ? Apr 03 11:15:55 lol no, just "k" with ":p" smiley after it xD Apr 03 11:16:48 oh, I thought you just said kip Apr 03 11:17:42 oh goddammit java :D Apr 03 11:17:58 Y U NO COMPARE STRINGS WITH ==? Apr 03 11:18:22 tapas: that's what they want you to think. Apr 03 11:18:33 just discovered a bug in my code where i forgot to use .equals() Apr 03 11:18:43 argh Apr 03 11:19:00 now i'll check all cases of == in our complete code base, just to make sure Apr 03 11:19:03 since i'm a pedant :D Apr 03 11:19:25 SimonVT: this is a FragmentActivity Apr 03 11:19:34 Ankhwatcher: wat do you mean? that the java language standards comittee is EVIL(tm)? Apr 03 11:19:53 Ankhwatcher: I think you need to read the article on Fragments on the dev page Apr 03 11:20:02 onCreateView is a Fragment method Apr 03 11:20:06 That you can override Apr 03 11:20:08 I've got an expandable listview Apr 03 11:20:09 Not Activity Apr 03 11:20:23 which uses a SimpleCursorTreeAdapter Apr 03 11:20:30 SimonVT: http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html#onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet) Apr 03 11:20:48 when I rotate my screen the expanded items are collapsed Apr 03 11:20:52 any way to not let this happen? Apr 03 11:21:01 the expandablelistview is in a fragment btw Apr 03 11:21:28 or maybe i can configure Lint to wanr everytime two objects are compared with == Apr 03 11:21:47 as in almost all cases, that's not what should be done (unless checked against being null ;D) Apr 03 11:21:55 Oh, right. That method is used to add extra functionality to the layoutinflater Apr 03 11:22:01 or you wanna check if you've got the same instance Apr 03 11:22:42 SimonVT: are you starting or ending your day :P Apr 03 11:23:07 onCreateView in Activity is called for each xml tag to return the corresponding View Apr 03 11:23:11 SimonVT: I'm obviously using this wrong, I'm not sure how exactly Apr 03 11:23:14 Not the whole layout like in Fragment.onCreateView Apr 03 11:23:27 g00s: It's 13:20 .. So in the middle of it? :p Apr 03 11:23:51 SimonVT: ah, for some reason i thought you were in the US Apr 03 11:24:10 alowaniak: stop it from rotating or stop it from collapsing Apr 03 11:24:33 g00s: its the VT Apr 03 11:24:41 I thought he was from vermont Apr 03 11:24:50 Ankhwatcher: http://developer.android.com/guide/topics/fundamentals/fragments.html Apr 03 11:25:01 It's my middle and last name >.< Apr 03 11:25:10 hehe Apr 03 11:25:42 I used to go by my real name on irc but it's far too easy to get in a flamewar here Apr 03 11:26:22 I'll tell people my name in private, I just don't want it on every irc logger that google indexes. Apr 03 11:26:31 stop it from collapsing when i rotate Ankhwatcher Apr 03 11:26:35 or was that an answer? Apr 03 11:26:38 my name is Wendy :) Apr 03 11:27:42 i'm not sure if collapsing is the correct word though..? when an expandable list group item is collapsed, is it showing it's children or not lol...? Apr 03 11:27:57 readme: I try to stay away from flamewars instead :p Apr 03 11:28:21 ah guess collapsed means it isn't showing it's children Apr 03 11:28:25 SimonVT: me too Apr 03 11:28:35 Is there a direct email for the developers who work on the in app billing? Apr 03 11:29:02 anyone can find my real name on the googles if that really want to know, I think my /whois has it to Apr 03 11:29:05 so anywho; how to let the expandablelistview "keep it's state" when I get a screen rotation? Apr 03 11:29:31 alowaniak: store a reference to the data source that backs the listview adapter in a static field Apr 03 11:29:35 * g00s used to get into heated debates, but simply doesn't care much anymore Apr 03 11:29:55 g00s: if you scroll up you'll see I quickly dismissed the opportunity for one a few mins ago Apr 03 11:30:04 heh Apr 03 11:30:09 and proud of it, because i used that time to buy a donut instead Apr 03 11:30:11 delicious Apr 03 11:30:12 alowaniak: I feel this is something that the expandablelistview should handle, and everything should work if you just populate your adapter in onCreate Apr 03 11:30:29 just like ListView handles its state Apr 03 11:30:48 i'm using a SimpleCursorTreeAdapter and the expandablelistview is in a fragment (SherlockFragment that is) Apr 03 11:30:58 i remember having some general revulsion to expandablelistview, but i can't remember what it was Apr 03 11:31:40 alowaniak: it sounds like you have a working version of what I'm trying to make Apr 03 11:31:42 so the data source is a cursor (from a contentprovider (from a database)) Apr 03 11:32:46 hmmye i don't know too much about fragments and all Ankhwatcher, I more or less copied the existing code xD Apr 03 11:33:12 alowaniak: what guide or tutorial did you follow? Apr 03 11:33:34 none really, app i'm "working" on was already existing Apr 03 11:33:41 with SherlockFragments Apr 03 11:34:05 i'm merely changing a normal List (or SherlockListFragment for that matter) to contain an ExpandableList Apr 03 11:34:57 didn't have any problems with making the fragment show though... just a alowaniak: I'm trying to get from a tableview to a listview and somehow I've ended up fragment and cursorloader hell Apr 03 11:35:32 alowaniak: so you used an existing layout with a fragment in it? That was how I thought it was supposed to work Apr 03 11:35:49 the existing layout is nothing more than a fragment in it Apr 03 11:36:15 I only got the fragment, nothing else in it Apr 03 11:37:59 so an activity sets content to a fragment, and the fragment loads an xml and the xml invokes the fragment? Apr 03 11:40:03 the activity does setContentView(someLayout) someLayout contains (which has a link to MyFragment) and MyFragment does inflater.inflate(theFragmentLayout) in the onCreateView Apr 03 11:41:05 alowaniak: so the name quality of the fragment tells it which java class to run? Apr 03 11:41:48 Ankhwatcher: yep Apr 03 11:42:11 ^^ Apr 03 11:42:46 hmm eclipse doesn't have an alt selection in the editor? Apr 03 11:43:02 or does it use a different hotkey? Apr 03 11:43:24 so in my case I can put the code for displaying and managing my listview into a seperate fragment class which the fragment will invoke for me... I'll go try this. Apr 03 11:43:44 ye i think sos Ankhwatcher Apr 03 11:43:48 so* Apr 03 11:44:52 Hi, how do i run a compiled source tree in the emulator??? Apr 03 11:45:05 nachos: click run, no joke Apr 03 11:45:10 okay, fuck you Apr 03 11:45:19 nachos: i'm serious. are you working from the command line? Apr 03 11:45:22 yes. Apr 03 11:45:28 well you should have said so. Apr 03 11:45:36 okay, my bad. Apr 03 11:45:37 adb install bin/apkname.apk Apr 03 11:45:43 no, wait Apr 03 11:45:53 then you can start the main activity with adb shell am start -n packagename/.MyActivity Apr 03 11:45:59 im trying to emulate the entire os, im not developing a app, im working on a rom Apr 03 11:46:08 #android-root Apr 03 11:46:09 Then go to #android-root Apr 03 11:46:16 okay Apr 03 11:46:23 lol Apr 03 11:46:38 What a nice guy Apr 03 11:47:02 SimonVT: what do you expect from a fraud? ;) Apr 03 11:48:31 SimonVT you think putting something like "count(columnName) AS something" in the projection array for sql query would work too? Apr 03 11:48:48 Probably Apr 03 11:49:01 iirc it just comma seperates the entries in the array Apr 03 11:49:17 Like SELECT projection[0],projection[1],... WHERE bla bla Apr 03 11:49:36 k Apr 03 11:51:04 any idea how I could add a join by? Apr 03 11:51:08 in the table string? xD? Apr 03 11:51:49 I'm back. Notifications suck. Apr 03 11:52:00 liek table = "table1 JOIN BY table2 on table1._id = table2.table1_id" Apr 03 11:52:20 With singleTask it just wipes out the current task, destroying the stack. Apr 03 11:52:20 Yep, in the table string :p Apr 03 11:57:45 hello guys, i would like to know wether or not it is a good idea to use the SharedPreferences to store variables that should only live during a user's session. Apr 03 11:58:05 otherwise, how should i proceed ? what is the proper/safer way ? Apr 03 11:58:26 No, it is not a good idea. Apr 03 11:58:36 you probably want to pass these around as Intent extras Apr 03 11:58:59 You should write to a cookie via a multithreaded amplifier. Apr 03 11:59:01 readme: not around intents, but arounds activities Apr 03 11:59:10 i want to pass variables around activities Apr 03 11:59:22 s/around/between Apr 03 11:59:23 paissad: you use Intents to navigate between activities Apr 03 11:59:40 so you can put the extras in the intent Apr 03 11:59:49 okay Apr 03 11:59:51 see getIntent(), setResult(), etc Apr 03 12:01:17 ok, thanks Apr 03 12:01:47 Hi, I am working on a painting thing using html5 canvas. It works fine in chrome and firefox, but android is giving me the center point for event.clientX/Y in the first "touchmove" event and NaN every time after Apr 03 12:01:52 http://hookerbots.com/drawing/ Apr 03 12:01:59 is anyone here familiar with workarounds or incompatibilities that might apply here? Apr 03 12:02:27 I just have to say that I heart "hookerbots.com" Apr 03 12:02:31 :D Apr 03 12:06:25 hmm if i just touch it doesn't give NaN root66 Apr 03 12:06:37 well, the first click will log as P 0 0 Apr 03 12:06:47 not for me Apr 03 12:07:00 what did you get when you touched? Apr 03 12:07:03 in the data field Apr 03 12:07:17 i think correct points... Apr 03 12:07:28 P 259 557|R|P 331 276 Apr 03 12:07:30 etc. etc. Apr 03 12:07:37 only dragging will give NaN Apr 03 12:07:40 well, the mouse is constantly assigning lastX and Y so I didnt assign them in the initial onPress Apr 03 12:08:12 so I don't see how you could get anything other than P 0 0 on the very first press after refreshing unless yo use a mouse Apr 03 12:08:22 ah i think i resetted or something Apr 03 12:08:35 first is indeed 0 0, next one is normal though Apr 03 12:08:42 good to know Apr 03 12:08:42 and it seems to do 2 after one touch Apr 03 12:09:24 like you log the lassed when pressed Apr 03 12:09:28 the last* Apr 03 12:09:42 and log the last (so which it just pressed) as soon as you release Apr 03 12:10:12 yeah but you can see in the code, onPress and onRelease don't assign anything Apr 03 12:10:16 they just set drawing true or false Apr 03 12:10:23 only onMove ever sets those values Apr 03 12:10:30 ah k Apr 03 12:10:59 so to be honest, I have no idea why when you only click and release without moving, it has assigned values Apr 03 12:11:03 I don't know where it is getting them Apr 03 12:12:41 hey friends what are adb drivers ? Apr 03 12:13:00 jennie: you need the usb driver for your phone to plug it in and use adb Apr 03 12:13:05 which is part of the android sdk Apr 03 12:13:23 first find the drivers from your manufacturer for your device Apr 03 12:13:30 it stands for android debug bridge iirc Apr 03 12:13:43 but i didnt installed any drivers in my pc win 7 and the device is detected and working fine in usb Apr 03 12:13:54 well root66 i guess android calls onMove when you press somewhere? Apr 03 12:13:56 "working fine in usb" Apr 03 12:13:59 have you tried adb yet? Apr 03 12:14:06 how to try adb ? Apr 03 12:14:16 if you don't know, then you probably don't need to Apr 03 12:14:20 what are you trying to do jennie? Apr 03 12:15:04 she probably fails to realize that just because you plug it in and mount the sdcard doesnt meant you have the drivers installed to use the debug bridge Apr 03 12:15:12 she is probably trying to make her first app following a tutorial Apr 03 12:15:15 and can't connect Apr 03 12:16:16 ok these are two drivers of adb how to install AdbWinApi.dll and AdbWinUsbApi.dll Apr 03 12:17:02 iirc there's a quite easy tut on android site about that Apr 03 12:17:13 jennie: why not just download and install drivers for your device from the manufacturer? Apr 03 12:17:20 there is also adb.exe with them , i ran it but i suspect that are they installed ? Apr 03 12:17:30 no adb.exe is used for adb commands Apr 03 12:17:35 no cd/dvd came with my phone Apr 03 12:17:54 alowaniak how to install that two dlls ? Apr 03 12:18:03 back Apr 03 12:18:10 what did I miss? Apr 03 12:18:20 what I had to do is go to hardware management thingy on my computer, then "install driver" for the usb device (which was my phone obv) Apr 03 12:18:28 and then navigate to the folder where the dll's were iirc Apr 03 12:18:42 i'm not too good with that stuff though Apr 03 12:18:45 jennie: so you installed drivers from a cd/dvd? Apr 03 12:18:58 jennie: if so you probably only need to enable usb debugging on your phone Apr 03 12:19:11 i enabled Apr 03 12:19:36 i doubt it appel1, (s)he said "no cd/dvd came with my phone" Apr 03 12:19:44 and then i connect then it just open both storage drive of mobil Apr 03 12:21:13 I mean right click computer->properties->device manager-> Apr 03 12:22:05 then right click on the phone or w/e -> properties->driver Apr 03 12:23:47 http://developer.android.com/sdk/oem-usb.html#InstallingDriver Apr 03 12:23:49 for more info Apr 03 12:26:22 Right... Has anyone ACTUALLY succeeded in making notifications work with Activities stacks more than one activity deep? Apr 03 12:49:04 DOH! For those hitting weird issues with notifications and multi-activity stacks: Leave everything on default, make the notifications open the main activity, and in the main activity do a finish() in onCreate() if !isTaskRoot(). Apr 03 12:52:43 I guess it'd be easier just to look at what the launcher does, and duplicate that Apr 03 12:52:58 Hello guys, is it normal to have multiple fragments within a fragment? Cause I'll use navigation tab to switch between fragments, but within a fragment I can have a ListFragment on the left pane and detail fragment on the righ pane of the screen. Is that a normal design? Apr 03 12:53:33 No Apr 03 12:53:47 SimonVT, can you explain why? Apr 03 12:54:14 I think because a Fragment needs to be attached to an Activity? not another Fragment? Apr 03 12:54:28 just a wild guess though Apr 03 12:54:29 that's a good point Apr 03 12:55:17 any1 worked with ViewBinder & SimpleCursorTreeAdapter? Apr 03 12:55:42 on the other hand, what if I have several UI on each fragment? Apr 03 12:56:09 Fragments are meant to contain a part of an activitys view/logic, and be completely managed by the activity. As alowaniak said, you're attaching a fragment to an activity, not another fragment Apr 03 12:56:15 make Views for that instead of fragments? Apr 03 12:56:36 SimonVT, ok I agree with you. Apr 03 12:56:44 Putting a fragment in a fragment is not something that's supported, and will most likely lead to issues along the way Apr 03 12:57:39 alowaniak, yes, that's possible, but android developers recomment to use fragments as much as possible Apr 03 12:58:03 And Fragments should really only have 1 layout. If you need another layout, put that in a new fragment and add that Apr 03 12:58:06 maybe I have to review my design thinking Apr 03 12:58:53 G+ for example use navigation tab as one big list of items Apr 03 12:59:16 I mean the content of a tab is one big list Apr 03 12:59:33 I need more UI examples using fragments... Apr 03 13:02:18 SimonVT: you _can_ put fragments inside other fragments Apr 03 13:02:35 Didn't say you couldn't Apr 03 13:02:37 Said you shouldn't Apr 03 13:02:46 i herd you like fragments Apr 03 13:03:20 http://thepseudocoder.wordpress.com/2011/10/04/android-tabs-the-fragment-way/ something like this for example Apr 03 13:04:54 Where does he put a fragment in a fragment Apr 03 13:05:11 how would I go about implementing OAuth2.0 in my app. I have been researching for a day and really have no idea Apr 03 13:05:22 storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ OR THIS ONE (SHAMELESS SELF PROMOTION, U MAD?) Apr 03 13:05:25 I only see him use an Activity with a TabHost, switching out the Fragment displayed when tabs are clicked Apr 03 13:05:50 putting fragments inside fragments is pretty damn useful Apr 03 13:06:22 I'm getting a Java Lang Null Pointer in here somewhere, can anyone see where I screwed up? http://pastebin.com/qGffEQAE Apr 03 13:06:39 somewhere? Apr 03 13:06:42 try a line number Apr 03 13:07:11 Well, savedInstanceState can be null.. That's the obvious error Apr 03 13:07:17 storkme_: nice site. most android blogs are unreadable spam. Apr 03 13:08:05 I'm going to go check that cursor Apr 03 13:08:14 make sure it has what I need in it. Apr 03 13:09:00 my site would be unreadable spam except that it only has two posts Apr 03 13:09:56 storkme_, so is it encouraged to use fragments as musch as possible even if it's fragments inside fragments? Cause that was my original question. Apr 03 13:10:15 storkme_: nah, your lawyout is awesome Apr 03 13:10:34 I am very picky about layout too... 99% of the time I visit a webpage I close it because it makes my eyes bleed. Apr 03 13:10:35 ok, so apparently javascript touchmove fires with the coordinates of the center of your canvas every time it fires touchstart Apr 03 13:10:46 * SimonVT shrugs Apr 03 13:10:52 either go with no css, or do it right Apr 03 13:10:54 The details of the implementation is my responsibility, but I concern more about the technical design Apr 03 13:11:11 * Ankhwatcher mutters something about fragments being so encouraged he smashed his laptop with a hammer. Apr 03 13:11:27 i smashed an eeepc last week Apr 03 13:11:30 :D Apr 03 13:11:47 readme, I have one too, but it's too lite for running eclipse on it Apr 03 13:11:53 I got smashed with a HTC Sensation last week Apr 03 13:11:57 Number5: except, I don't have one Apr 03 13:12:03 Number5: but I did get eclipse to work on mine Apr 03 13:12:11 ran linux with hardly any ui Apr 03 13:12:15 readme, oooh I understood as you have one Apr 03 13:12:30 Number5: nah, smashed is when you destroy something Apr 03 13:12:42 i'm confused with the activity flags :/ i use one activity to display different data in a table, so i f i change the data i start the activity again with different extras (maybe not the best option), but i want to have only the most recent instance in my activity stack Apr 03 13:12:51 readme, you kind of collapsed it :) Apr 03 13:12:54 i this what singleInstance in manifest is for? Apr 03 13:13:14 Intent.FLAG_NO_HISTORY is not the right one ;P Apr 03 13:13:28 is there a shortcut in ADT for switching between the graphical layout editor and XML Apr 03 13:13:35 ? Apr 03 13:13:50 tobib there is something like flag reorder or something Apr 03 13:17:19 Say, how complex would it be to bundle device vitals along with a vnc stream? Apr 03 13:17:48 Okay, this is weird: Caused by: java.lang.IllegalArgumentException: column '_id' does not exist Apr 03 13:18:05 kinda straightforward... Apr 03 13:18:15 there's no "_id" column in your cursor Apr 03 13:18:29 well no, I never asked for one Apr 03 13:18:35 CursorAdapter does Apr 03 13:18:41 aaaaaah Apr 03 13:18:43 ta Apr 03 13:18:43 documentation ftw Apr 03 13:18:45 psychuil: do you want the android device to be the client, or the server (vnc) Apr 03 13:20:18 okay, no-longer crashing Apr 03 13:20:26 readme, The device is the server Apr 03 13:20:26 not displaying anything either Apr 03 13:20:39 mh Apr 03 13:20:51 psychuil: search android vnc server on github, I was looking at one this morning. it needs to have root because it grabs the framebuffer. it's a lot of native code. Apr 03 13:20:57 psychuil: vnc as a spec, is relatively simple Apr 03 13:21:04 rfb, that is Apr 03 13:21:20 Already using it's code, i wanna add vitals to my client's gui :) Apr 03 13:21:27 what's a vital Apr 03 13:21:40 CPU etc? Apr 03 13:36:13 I have three horizontal aligned LinearLayout, I'd like the 1st and 3rd to have the same size, but the middle one to have the same width as the ImageView it contains Apr 03 13:36:18 how to do that ? Apr 03 13:36:45 Middle to wrap_content, other two weight 1 Apr 03 13:37:26 SimonVT: thanks! :-) Apr 03 13:38:01 SimonVT: I had weight 1 for the middle one Apr 03 13:38:56 Hello, is there's any simple way to resole snap or paging problem in scrollView, i mean via xml layout, not via. class Apr 03 13:41:47 Lets say i have various buttons in my scrollview, and i wan them to snap to the horisontal center, is theres such an attribute Apr 03 13:42:05 in OnCreateLoader, what is the ID meant to be used for? Apr 03 13:44:36 (Ankhwatcher) we are alone in the dark man, just rwo of ass... darkness of dontknowing... Apr 03 13:44:53 Of us, im sorry Apr 03 13:44:54 ) Apr 03 13:46:18 Defuera: you didn't idle very long before asking your question, did you? Apr 03 13:47:20 Ankhwatcher: The id you passed initloader Apr 03 13:49:17 Not so long, some googling and some docs reading, i need a simple answear, like, no u cant do it in xml file, because if its so i know how to do it other way, but dont wanna spend time on it if theres a simplier way Apr 03 13:49:27 Why do u ask? Apr 03 13:49:30 SimonVT: so if say I only wanted the Routes with route_id 6, I can pass it there? Apr 03 13:50:05 Defuera: just because you seemed to think that this was an empty channel, when actually it's jumping! Apr 03 13:50:13 It's the ID of the loader.. Not whatever it queries.. Apr 03 13:50:23 if you need to pass some data, put it in the bundle Apr 03 13:50:47 SimonVT: ah, thank you Apr 03 13:51:35 Sometimes its really quite in here, u know) Apr 03 13:52:36 sup folks Apr 03 13:52:51 Defuera: I suppose sometimes that is quiet true. Apr 03 13:52:58 hi snooplsm Apr 03 13:53:27 If anyone likes baseball and visits the stadiums, please check out the new app I helped make: https://play.google.com/store/apps/details?id=com.bamnetworks.mobile.android.ballpark Apr 03 13:53:36 lol. Apr 03 13:56:22 So, if theres a way to do it in xml file, somebody knows? Apr 03 13:56:34 Defuera: what you trying to do? Apr 03 13:57:05 Snap the scrollView item to horisontal center Apr 03 13:58:03 oh Apr 03 13:58:05 If theres any android:snap="center" attribute Apr 03 13:58:16 ? Apr 03 13:58:20 put a relativelayout in it, and center everything inside that? Apr 03 13:58:37 I've got a problem where i need to add a library to my eclipse project. Reading through the documentation, i find the page that tells me how to choose the right USB accessory API, then go to the page about how to install the google apis add on, then install everything under API10 just to be sure. then i'm to editing the manifest file and i get lost. what all is required here, a entry with a usb accessory m Apr 03 13:58:37 odel (which it's custom, so who knows) and aintent filter and some metadata? Apr 03 14:00:18 (snooplsm) ok, ill try that, thx, at the moment im using TableLayout Apr 03 14:04:15 so i get all that in there (cross my fingers that it's right) and it says it can access the library (the one i specified in the manifest) so i'm not sure where to go next, i dont see any direction in the docs. Apr 03 14:06:41 (snooplsm) i tried gtavity= center and layout gravity = center, but theres no snapping at all Apr 03 14:08:20 So it seems thats not what i need to, im afraid i have to whrite a mountain of code to do it via .class file.. Apr 03 14:08:45 Snoop, Thanks anyway Apr 03 14:14:28 wait, seriously? Apr 03 14:14:39 he couldn't figure out layout_gravity so he's doing it programmatically? Apr 03 14:14:49 Has anyone tried GridLayout with support file v7 ? Apr 03 14:15:19 Is Admob still the best way to make ads? :D Apr 03 14:26:40 i've got the required library in the tree under Referenced Libraries, and it's in in AndroidManifest.xml what else needs to happen? Apr 03 14:28:19 its under Referenced Libraries/usb.jar/com.android.future.usb and in AndroidManifest.xml Apr 03 14:29:17 I don't think you need or want Apr 03 14:30:59 evancharlton: it makes no difference, there or not, same error. Apr 03 14:31:29 anyone ever had a problem with a revue where it doesnt seem to work with ethernet? Apr 03 14:32:05 just says "not connected" Apr 03 14:32:15 but the ethernet lights are flashing, and my laptop works fine with the same cable Apr 03 14:33:59 jnewt: what's the error? Apr 03 14:34:24 canadiancow|work: I had problems with it rejecting my wifi network the other day after I unplugged ethernet Apr 03 14:34:34 three-finger salute fixed it though Apr 03 14:34:34 this is the opposite Apr 03 14:34:51 try the ol' windows solution Apr 03 14:34:59 i'll try rebooting again Apr 03 14:35:01 evancharlton: Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY from the console, then package blah requires unavailable shared library com.android.future.usb.accessory; failing Apr 03 14:35:07 it cant see our corporate wifi network Apr 03 14:35:11 and its not working over ethernet Apr 03 14:35:14 which makes it...not useful Apr 03 14:35:55 jnewt: isn't it com.android.future.usb ? Apr 03 14:36:02 yeah Apr 03 14:36:03 it is Apr 03 14:36:17 which i don't know where it's getting the .accessory Apr 03 14:36:30 well the docs have Apr 03 14:36:34 but I think that's wrong Apr 03 14:36:42 me too Apr 03 14:37:39 can you pastebin your manifest? Apr 03 14:37:47 yup,1 min Apr 03 14:39:11 RE. Next problem: I want to start an activity if my current activity is not active for a certain period. I made it work, however it does not work if my activity has been paused and hidden. Is there any way to do this without resorting to services? Apr 03 14:39:19 evancharlton: http://pastebin.com/SmnvGjAz Apr 03 14:41:27 Lachezar: that is usually something you're not supposed to do, bad design Apr 03 14:42:26 appel1: Which one? Using Activity to perform synchronisation with the server, or starting an activity at regular intervals? Apr 03 14:42:41 Lachezar: start activity Apr 03 14:42:43 jnewt: ... huh. Apr 03 14:43:04 evancharlton: stumped? Apr 03 14:43:06 Lachezar: you should use notifications if you want to alert the user that they need to do something Apr 03 14:43:25 jnewt: very weird. I assume you've made sure you're installing that version? (cleaned & rebuilt) Apr 03 14:43:41 evancharlton: i've had my full of notifications. Apr 03 14:44:03 evancharlton: i've done a build all and build project, no clean, not sure where that's at Apr 03 14:44:16 Lachezar: I can't wait for your users to uninstall your app and give you terrible ratings Apr 03 14:44:24 evancharlton, found it. Apr 03 14:44:48 evancharlton: I have an activity that connects to the server and performs data interchange (synchronisation). I am not willing to invest into complete rewrite to use services. Apr 03 14:45:04 Lachezar: yeah, makes sense to make your users suffer, then. Apr 03 14:45:35 evancharlton: Don't worry. It's not in the market, and the request has come FROM the users :-/ Apr 03 14:45:51 im factory resetting the revue Apr 03 14:45:51 sigh Apr 03 14:46:17 evancharlton: I've been trying to get it into their thick heads, that background processes that lock the system are bad things, but they INSIST, that I'm wrong... Apr 03 14:46:53 Lachezar: lock the system? Apr 03 14:47:02 appel1: The application anyway. Apr 03 14:47:31 Hey, I'm getting Unable to get provider ie.appz.shortestwalkingroute.sqlite.FixProvider. Apr 03 14:47:40 I've pretty much given up making the app good, so I'm in do-what-you-are-told-to mode. Apr 03 14:48:00 Manifest declaration: http://pastebin.com/2SJqmas7 Apr 03 14:48:21 FixProvider: http://pastebin.com/uV3pSrQH Apr 03 14:48:57 Which bit is screwed up? Apr 03 14:49:13 Ankhwatcher: pastebin your logcat Apr 03 14:49:18 hii.. Apr 03 14:49:38 anyone knows a good 'MediaPlayerDemo_Video' tutorial? Apr 03 14:49:51 or some other tut for showing video on android?.. Apr 03 14:49:57 evancharlton: nope, clean / build / re-import, and that .accessory is a mystery, is there a different library, or is that wrong and referenced somewhere in my project...could be anything. Apr 03 14:50:16 jnewt: ... huh. I'm stumped, sorry :-/ Apr 03 14:50:40 evancharlton: is there some trick for getting the right stuff out of logcat and into the clipboard? Apr 03 14:50:53 Ankhwatcher: select -> copy -> paste Apr 03 14:50:55 bam! Apr 03 14:52:40 http://pastebin.com/VDwdw8p6 Apr 03 14:53:01 Ankhwatcher: lines 11 & 12 Apr 03 14:53:06 I had to go into the unfilter log and select in there then go back and select what I wanted again and then it worked Apr 03 14:53:53 evancharlton: so the problem is the database calls in FixProvider? Apr 03 14:54:03 where to find android-support-v4.jar Apr 03 14:54:05 ?? Apr 03 14:54:20 Ankhwatcher: your problem is that there's a nullpointerexception in your logcat and you're not seeing it :) Apr 03 14:54:26 beStKodeReveR: you downloded it with the sdk tools, right? Apr 03 14:55:02 evancharlton: I'm so used to seeing nullpointerexception in logcat I'm blind to it. Apr 03 14:55:07 uh Apr 03 14:55:13 that speaks volumes about your code quality. Apr 03 14:55:18 +1 Apr 03 14:55:44 Ankhwatcher i have download the latest stuff..but its not in : C:\Program Files\Android\android-sdk\tools\lib Apr 03 14:56:16 sdk/extras/android/support Apr 03 14:56:52 beStKodeReveR: C:\Program Files (x86)\Android\android-sdk\extras\android\support\v4 is where mine is Apr 03 14:57:16 if you're using eclipse you can right-click on the project and do Android Tools > Add support library Apr 03 14:58:50 nice: C:\Program Files\Android\android-sdk\extras\android\support\v4 Apr 03 14:59:19 wierd windows dident find it :-/ thankz Apr 03 15:05:25 evancharlton: I think I found where I screwed up. trying to pre-declare stuff. Apr 03 15:06:50 minimize scope and try to keep declarations near first use Apr 03 15:06:53 it's not C :P Apr 03 15:07:26 there's no place like C, there's no place like C... Apr 03 15:07:41 hah Apr 03 15:07:48 Hi, I'm trying to set a shared preference value but it doesn't seem to be saving...I think it's something wrong where I'm trying to get the context. Could anyone tell me if there's something wrong with this code: http://pastebin.com/0JX8g1jB Apr 03 15:08:38 On other activities I can set and get sharedpreferences because I'm extendin "GameActivity" Apr 03 15:10:03 Solirify: just use whatever your local Context is - the whole point of SharedPreferences is that they're application-wide Apr 03 15:10:31 "GAME_PREFERENCES_LBPREFS" <- Did you mean to reference a constant? Apr 03 15:10:39 Leeds: I tried that, but it still didn't seem to work Apr 03 15:10:51 then you did it wrong... Apr 03 15:12:02 SimonVT: Not sure what you mean... This is how my GameActivity.java looks like: http://pastebin.com/uiq8b6f7 Apr 03 15:12:39 you put your constant name in quotes Apr 03 15:12:45 Solirify: You're saving it under the key "GAME_PREFERENCES_LBPREFS" .. That exact string.. Not the variable you defined in gameactivity Apr 03 15:13:19 SimonVT: But if I remove the " " then I get the error "GAME_PREFERENCES_LBPREFS cannot be resolved to a variable" Apr 03 15:13:34 Of course, you need to reference the field Apr 03 15:13:36 GameActivity. Apr 03 15:14:02 putting things in quotes is not the proper way to resolve compiler errors Apr 03 15:15:07 SimonVT: How can I do that...? Apr 03 15:16:13 the funny thing is your first paste has an example of how to do it Apr 03 15:16:17 t.t Apr 03 15:16:24 you already did it properly once :P Apr 03 15:16:27 You don't know how to reference a static final field in another class? You already did it once Apr 03 15:16:35 Anyone knows an app that can send a stream of vitals? as is cpu/mem usage? Apr 03 15:16:44 anyone know if python is required during compilation of android source code? Apr 03 15:17:38 gaara_akash: i believe repo requires it Apr 03 15:17:46 Oh, lol. I understand now. :P Apr 03 15:17:53 wongk: i've finished repo sync Apr 03 15:18:04 wongk: is it required during the "make" process? Apr 03 15:18:13 What calls onCreateLoader, where is the cursorLoader returned to? Apr 03 15:19:24 wongk: but apart from that its not required is it? Apr 03 15:19:38 gaara_akash: i can't say for certain, i thought i ran into issues before that step Apr 03 15:19:46 it's been a while, though Apr 03 15:20:26 gaara_akash: grep the source tree for python if it's that important to you Apr 03 15:21:41 hmm.. when the orientation is changed, the activity is recreated and as a result, the active tab in the action bar jumps back to tab 0, anyone know the easiest way to avoid that when each of the tabs have their own TabListener ? Apr 03 15:22:01 is it possible to upgrade a kernel? I have ICS, but it's running kernel 2.6.34, and i think i need 2.6.35 or newer (seems that this mismatch is not normal, as Honeycomb started using 2.6.35, and I have one older than that. Apr 03 15:22:27 dragorn: awright tx Apr 03 15:22:56 Ok, I guess I still don't get it... I tried this, but now I get an error: http://pastebin.com/xLK17EWY Apr 03 15:22:57 jnewt: yes tho unless you're careful you might screw it up worse; probably a question for #android-root Apr 03 15:22:58 jnewt: no Apr 03 15:23:03 jnewt: sure, it's possible Apr 03 15:23:10 with root Apr 03 15:23:14 jnewt: it's definitely not a normal operation for users not hacking their phones Apr 03 15:24:29 drogorn: i assumed it would not be normal, but i've upgraded many linux kernels, and it was fairly straight forward, and few commands to prep, pull the new kernel down, install, reboot, done (almost that easy...) Apr 03 15:24:36 jnewt: depending on the phone you don't need root but you do need it unlocked Apr 03 15:24:48 drogorn: it's a tablet Apr 03 15:24:56 jnewt: android kernels can be finicky because vendors modify them. Depending on your device it can be extremely finicky. Apr 03 15:24:57 jnewt: the kernel tree with not have drivers and firmware for your phone Apr 03 15:25:13 jnewt: and if you break binary module compatibility you're sunk for any drivers you don't have Apr 03 15:26:34 you also have to cross-compile for arm Apr 03 15:27:00 Anyone know what I did wrong? Apr 03 15:28:18 Solirify, lBPrefs is SharedPreferences Apr 03 15:28:38 and Editor.putString expects (String, String), not (SharedPreferences, String) Apr 03 15:29:27 Solirify: you probably need to take a step back and learn the basics of java Apr 03 15:29:44 zhulikas: Yes, but why would it expect (String, String) Apr 03 15:29:53 because that's it's definition Apr 03 15:29:58 ... Apr 03 15:30:09 why would it expect SharedPreferences? Apr 03 15:30:10 I am calling startActivityForResult, however my onActivityResult is getting called right away, not when the second activity performs the setResult/finish calls. Has anyone seen this before? Apr 03 15:30:21 "In the board/product specific *.mk files add the following " -> what does this instruction mean? Apr 03 15:30:25 wongk: Alright, I'll do that... Any special site where I can learn the basics? Apr 03 15:30:49 "In the board/product specific *.mk files add the following " -> what does this instruction mean? what are the files that are being spoken about ? [context is compilation of source code] Apr 03 15:30:54 i'd recommend a book, i've used Big Java, it was alright, anyone else have a good recommendation? Apr 03 15:31:33 zhulikas: I'm trying to modify a SharedPreference and from what I've read that's how you do it Apr 03 15:31:39 no Apr 03 15:31:46 putString takes two values Apr 03 15:31:50 a key and a value Apr 03 15:32:05 putString("MyKey", "MyValue"); Apr 03 15:32:18 then you can get "MyValue" by getting a string with "MyKey" Apr 03 15:32:45 wongk: Alright, from the book where I've been learning they just wrote that it was enough if you read the basics of java on a site Apr 03 15:33:16 Solirify: i don't doubt one exists, i just can't recommend one Apr 03 15:33:18 Solirify, if you know how to program - reading the basics is enough Apr 03 15:33:36 as Java shares programming concepts with other languages Apr 03 15:33:46 they probably can in ##java if no one else here can Apr 03 15:33:50 you can just learn the syntax and are good to go Apr 03 15:34:00 Not sure what I screwed up this time: http://pastebin.com/te2fFBfU Apr 03 15:35:25 Caused by: java.lang.NumberFormatException: Invalid int: "@2131165186" Apr 03 15:35:45 wongk: yeah, is that an android id? Apr 03 15:35:57 Ok, I'll try looking up the basics on Java, but what exactly did I do wrong...? Apr 03 15:36:05 i don't know Apr 03 15:36:18 Solirify: they already answered that question Apr 03 15:36:23 in quite some depth Apr 03 15:37:46 wongk: Okey.. Apr 03 15:40:26 Solirify: have you fixed your shared preference? Apr 03 15:40:43 Ankhwatcher: No, not yet... Still trying Apr 03 15:42:06 Solirify: well come up with a key for your variable. The key must be a String. Apr 03 15:42:54 test Apr 03 15:43:02 Ankhwatcher: I've done that. And when logging from inside the same activity then it looks like it's been set. But then when trying to retrieve it in a different activity it's not working. :\ Apr 03 15:43:05 john_doe_jr: success! Apr 03 15:43:56 You pull it out with something like this: settings.getBoolean("capturingRoute", false) Apr 03 15:44:39 where settings is a SharedPreferences and "capturingRoute" is the key for the value. The false in this case is a default value in case no value has been set. Apr 03 15:45:32 Ankhwatcher: That's what I'm doing but I always get the default value back Apr 03 15:46:32 Cus you're not using the same String as the key Apr 03 15:46:33 Are you definitelly using the same string for your preferences name? public static final String PREFS_NAME = "ROUTE_PREFS"; Apr 03 15:46:47 SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); Apr 03 15:46:56 Yes I am :\ Apr 03 15:47:12 You weren't in the first pastebin, and you most likely aren't now Apr 03 15:48:25 hey guys :D Apr 03 15:48:45 hey guys if i download the android source can i use an IDE such as eclipse to compile it Apr 03 15:48:47 You mean in the GameActivity (where I declare it) and when I set it, right? Apr 03 15:49:08 Solirify: why don't you give it another look and make sure that you have a key for your sharedpreferences and another for the valuable you are storing in them. Apr 03 15:49:31 Ankhwatcher: Ok, I'll try to look through everything again, thanks for your help :) Apr 03 15:49:59 Solirify: no problem, it's nice to be able to help someone for a change. Apr 03 15:53:48 Wait a sec, I have a fragment and a layout object I'm trying to put into it, should there be a listview declared somewhere? Apr 03 15:57:51 Omg... I think I know what the problem is now... Apr 03 16:01:32 Will Uri.withAppendedPath automatically add a dividing slash? Apr 03 16:04:11 yes Ankhwatcher Apr 03 16:04:28 alowaniak: then that's not the problem Apr 03 16:05:49 I see in my logs that google location services are being called. However, onLocationChanged is never being called. What is the deal? Apr 03 16:05:57 what's the problem then Ankhwatcher? Apr 03 16:08:04 this: http://pastebin.com/te2fFBfU Apr 03 16:10:06 There's something wrong with the xml layout you're passing your ResourceCursorAdapter Apr 03 16:12:22 This is what I'm passing it: http://pastebin.com/cN7QuEAT Apr 03 16:12:50 int[] uiBindTo = { R.id.latitudeText, R.id.longitudeText, R.id.accuracyText, R.id.speedText }; Apr 03 16:12:53 hello, all Apr 03 16:12:59 hi enthdegree Apr 03 16:13:16 How do you copy a device's storage through ADB? Apr 03 16:13:18 The error is on the textview at line 7 Apr 03 16:13:32 adb pull /dev/mmcblkp0 doesn't work because mmcblkp0 is a special file Apr 03 16:13:53 One of your text* tags is wrong Apr 03 16:15:04 It most likely can't resolve the resource you're referencing Apr 03 16:16:13 SimonVT: wouldn't that give me an error from lint? Apr 03 16:16:20 Caused by: java.lang.NumberFormatException: Invalid int: "@2131165186" Apr 03 16:16:28 No idea Apr 03 16:16:30 no idea how it gives you that error though Apr 03 16:17:19 Is there a permission/feature i need to add to the manifest that isn't listed here: http://developer.android.com/reference/android/net/wifi/package-summary.html for something like "Socket socket = new Socket("192.168.1.10", 1001)" to work? my phone is catching a stacktrace with "java.net.SocketException:Permission Denied" topping the list :-\ tyia Apr 03 16:17:30 enthdegree: more a question for #android-root Apr 03 16:18:22 SimonVT: I think it doesn't like the style declaration Apr 03 16:19:26 Brian125: i would guess INTERNET Apr 03 16:19:37 SimonVT: Holy crap! I took all the style out and now it kinda works! Apr 03 16:19:55 :) Apr 03 16:26:58 had my head wrapped around the networking aspect i didn't even think about it, tyvm, wongk <3 you. Apr 03 16:27:58 Hi, has anyone already used APV PDF Viewer? Apr 03 16:28:47 I'm trying to compile it, but I'm receiving an error :/ Apr 03 16:30:13 isn't std::string available in android? Apr 03 16:30:42 you mean through the ndk? Apr 03 16:31:22 yeah Apr 03 16:32:02 how can I do a T9 search in my app? I'm having problems with number separator when the user change the language of the phones. Can I do a regex replace in the SQLite? Apr 03 16:33:50 yeah Apr 03 16:33:54 oeps :) Apr 03 16:33:58 How do you create columns eclipse using .xml file? Apr 03 16:35:02 gerdmestdagh__: http://stackoverflow.com/questions/7140705/trouble-w-stdstring-when-building-c-code-in-ndk-environment Apr 03 16:36:08 anyone figure out how to deal with distorted bitmaps that are tiled? Apr 03 16:37:16 distorted in what way Apr 03 16:40:24 abaratican, looks like it is zoomed in 1000 times Apr 03 16:40:49 happening on gingerbread and lower. one instance of the image is fine and all others are distorted in the app Apr 03 16:41:01 Hmm... Let's say I have a a TabHost and have two Tabs called "1" and "2". If both tabs are set to start the same activity, then it won't restart it every time I click on one of the tabs (running the onCreate method again), right? Is there somehow I can make it run onCreate when I click on a different tab? Apr 03 16:41:26 michaelnovakjr: iirc, you have to do the tiling in code (there was a bug or it just wasn't supported or something?) Apr 03 16:41:34 I might be confusing it with an HC issue Apr 03 16:42:31 someBitmapDrawable.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT); someView.setBackgroundDrawable(someBitmapDrawable); Apr 03 16:42:35 looks like that's API 11 though Apr 03 16:43:13 hm Apr 03 16:43:37 I probably just sent you down the wrong path, though Apr 03 16:44:02 good morning Apr 03 16:44:19 ^ if you are in a morning timezone :P Apr 03 16:44:37 evancharlton, lol Apr 03 16:44:54 evancharlton, I haven't seen much in a google search about it Apr 03 16:45:22 might just have to use a color background instead for 2.x Apr 03 16:45:24 is it possible to change the size of the icons used in ActionBar = Apr 03 16:45:35 rvsjoen, generally a bad idea Apr 03 16:46:32 hm, alright Apr 03 16:47:17 how can I do a T9 search in my app? I'm having problems with number separator when the user change the language of the phones. Can I do a regex replace in the SQLite? Apr 03 16:47:49 evancharlton: There was a bug in HC when defining tiled bitmaps in XML Apr 03 16:48:00 As in, it didn't tile, it just stretched a single instance of the bitmap Apr 03 16:48:23 Tho I think it was just with the actionbar? Not sure Apr 03 16:48:48 thanks wongk Apr 03 16:48:52 SimonVT, interesting, haven't seen that with my scenario. Looks fine on HC Apr 03 16:49:03 but this isn't in the actionbar... so you could be right about that Apr 03 16:51:30 so is it more likely that my revue is fucked, or that for some reason it doesnt like my ethernet cable Apr 03 16:52:01 It doesn't support canadian ethernet cables :p Apr 03 16:52:47 accidentally used a cross-over cable? Apr 03 16:53:54 dunno Apr 03 16:53:58 would a laptop work with that? Apr 03 16:54:24 canadiancow|work: maybe Apr 03 16:54:27 try another cable? Apr 03 16:59:03 hey guys is it possible to compile the android source code from within eclipse? Apr 03 16:59:14 or are some tool chains that are in linux needed? Apr 03 17:00:31 Is there a tag or something similar in android? Apr 03 17:01:00 no, just table rows Apr 03 17:01:25 the row determines the cell behavior Apr 03 17:01:38 eagles0513875_: uh..... Apr 03 17:01:48 eagles0513875_: you will need to do this from the command line. Get a computer with 16GB. Apr 03 17:01:49 ? Apr 03 17:01:51 source.android.com Apr 03 17:02:00 how can i put files in the same directory as the "executable" ? Apr 03 17:02:03 You can use eclipse to reference and aid hacking on the frameworks but you can't compile the whole thing Apr 03 17:02:04 is 16 gb really necessary Apr 03 17:02:07 yes. Apr 03 17:02:08 i wonder if i can do it via mac command line Apr 03 17:02:09 it actually is. Apr 03 17:02:16 lov: can it be done on a mac? Apr 03 17:02:17 eagles0513875_: Why don't you go to source.android.com and find out? Apr 03 17:02:25 16GB? that must cost at least $3 now?! do you think I'm made of money!? Apr 03 17:02:26 loi have and it says ubuntu Apr 03 17:02:31 welp Apr 03 17:02:32 answer given. Apr 03 17:02:37 glhf Apr 03 17:02:44 gerdmestdagh__: I don't understand what you're asking. Apr 03 17:03:05 * eagles0513875_ is tempted to try on mac osx for shits and giggles Apr 03 17:03:05 lov i want to be put the file in the rom Apr 03 17:03:29 lov so i can load it with c++ code without having to specify a map Apr 03 17:04:18 gerdmestdagh__: you from what i understand would need to use the NDK to hook the c++ code in with your native java android code Apr 03 17:04:39 eagles : duh :) Apr 03 17:04:55 my apologies i shall shut up and return to my corner now lol Apr 03 17:05:30 I totally thought gerdmestdagh__ and eagles0513875_ were the same person throughout this conversation Apr 03 17:05:40 if i put something in the raw res folder is it deployed on the phone in the same map as my "exceutable" ? :) Apr 03 17:05:41 your nicks look basically identical Apr 03 17:05:58 gerdmestdagh__: ... "map"? Apr 03 17:06:01 i can spot a difference or two :D Apr 03 17:06:08 directory Apr 03 17:06:12 later dudes, thanks for all your help. Apr 03 17:06:23 gerdmestdagh__: no; you're looking for the assets/ folder Apr 03 17:08:55 hey.. asked on #android but maybe it wasn't the right channel. After a google supported update, my phone is being mounted directly to the camera folder, not the data folder as before Apr 03 17:09:03 how can I change that? Apr 03 17:09:36 kmels: nope, you had the right channel the first time Apr 03 17:10:07 kmels: but I suspect it has to do with MTP/PTP if this is an ICS phone Apr 03 17:10:14 hi all Apr 03 17:10:20 evancharlton, it's not mounted as MTP/PTP Apr 03 17:10:26 as I see on s.sndroid.com i found bug reporting section and there are lots of bugs reported but if android is open source why dont bug reporters fix bugs at their own ? why they want android persons to fix bugs ? Apr 03 17:11:05 evancharlton, I mean, not with MTP, but as a "camara" (PTP) Apr 03 17:11:18 anyway, guess that's kind of a boring topic here, thanks Apr 03 17:11:24 kmels: right, so you need to switch it :) Apr 03 17:11:53 awesome_guy: because not everyone has the time, knowledge, or dedication to correctly fix bugs? Apr 03 17:12:35 so knowledge required in finding bugs is less than fixing it Apr 03 17:12:51 clearly Apr 03 17:13:21 users find bugs Apr 03 17:13:23 devs fix them Apr 03 17:13:35 devs pretend to fix them by calling them features. Apr 03 17:13:40 i really don't understand what is necessary when importing classes. i import a .jar to the project (right click on project -> import), and then type import package.class; then in get a package.class cannot be resolved error. i am very new to this, but that seems how it should be done. Apr 03 17:14:02 jnewt: you need to add it to the build path Apr 03 17:14:12 no idea if that's what project -> import does Apr 03 17:16:02 evancharlton: how to i see what is already included in the build path? Apr 03 17:16:32 right-click on project > build path > configure build path Apr 03 17:16:44 make sure it's in the [Libraries] tab Apr 03 17:17:09 anyone know where i can get motoblur, to add on to any of my roms using a zip file. (in same way i can get google apps) . ive looked and cant find it anywhere . Apr 03 17:17:26 dragonkeeper: #android-root Apr 03 17:19:02 hmm.. I have to projects that include a library project to create two different applications. However, I also need separate preference files, but the preference activity is in the library project. How can I reference the xml/preferences depending upon application? Apr 03 17:19:09 s/to/two/ Apr 03 17:20:27 PreferenceManaget.getDefaultSharedPreferences ? Apr 03 17:20:51 nah addPreferencesFromResource(R.xml.preferences); Apr 03 17:21:39 R.xml.preferences is in the application NOT the library, so the preference activity can't reference it via R.xml.preferences Apr 03 17:21:43 can't the apps just override the resource by specifying their own res/xml/preferences.xml ? Apr 03 17:21:52 What evancharlton said Apr 03 17:21:54 When working with table layouts....how do I put something in a third column? ....It automatically defaults to the 2nd column b/c nothing has been added in the 2nd column....I'd like to put something in the 3rd column...how do I do that? Apr 03 17:22:00 what SimonVT said evancharlton said Apr 03 17:22:04 that is what I did, but how does the library reference it? Apr 03 17:22:08 +1 canadiancow|work Apr 03 17:22:09 john_doe_jr: add something to the second column Apr 03 17:22:36 litewait: put a blank one in res/xml/preferences.xml and real ones in the calling applications Apr 03 17:22:49 and/or just use inheritance and don't put all the things in the library project Apr 03 17:22:51 evancharlton: I don't want to add anything though....It is suppose to be blank in the UI Apr 03 17:23:00 yikes Apr 03 17:23:08 john_doe_jr: .add("") Apr 03 17:23:36 evancharlton: I don't understand what your saying Apr 03 17:23:40 john_doe_jr: are you sure you should be using a table layout for this, though? Apr 03 17:23:53 john_doe_jr: add a blank view in the second column... Apr 03 17:24:13 canvas.getHeight() seems to return the height of the canvas plus the height of the title bar... is that right? Apr 03 17:24:31 evancharlton: why can't I just add it where I want it?..why do I have to add a blank view? Apr 03 17:24:32 i just want the height of the canvas Apr 03 17:25:20 what canadiancow|work said SimonVT said evancharlton said. Apr 03 17:25:36 john_doe_jr: I don't know; rtfm? Apr 03 17:25:41 oh nevermind. i should just getHeight on the view not the canvas Apr 03 17:26:31 evancharlton: alright....thanks Apr 03 17:26:38 is there a method somewhere to convert from px<->DIP? should I just do it myself? Apr 03 17:27:17 evan: that worked but why? Apr 03 17:27:26 litewait: what do you mean? Apr 03 17:28:03 How is Application/res/xml/preferences overriding Library/res/xml/preferences Apr 03 17:28:30 Bonkers: Do it yourself Apr 03 17:28:34 Bonkers: there is http://developer.android.com/reference/android/util/TypedValue.html#applyDimension(int, float, android.util.DisplayMetrics) Apr 03 17:28:56 Since at compile time Library is looking at it's own R.xml.preferences. Apr 03 17:30:03 ahhh Apr 03 17:30:04 Since resources of your lib project and your main project are merged at compile time Apr 03 17:30:20 I see public static int preferences=0x7f040000; is generate as the same int Apr 03 17:30:57 so at runtime application loads it's resource Apr 03 17:31:07 Yeah Apr 03 17:31:26 and ignores (although I am not sure how) the libraries version of it. Apr 03 17:31:43 The library version is ignored at compile time Apr 03 17:31:51 You can't have two preferences.xml in the same folder Apr 03 17:32:01 So it throws away the lib one, and keeps your main Apr 03 17:33:56 Q: I'm having trouble with getting the data item out of a ListView, my code only returns null, but there are items in the list. Anybody got an idea, or know how to get the data item from a ListView? https://gist.github.com/2293914 Apr 03 17:38:15 Your adapter is returning null in getItem? Apr 03 17:38:58 listView.getItemAtPosition(i) is returning null Apr 03 17:39:13 so does the getItem() method Apr 03 17:39:28 listview.getitematposition calls adapter.getitem Apr 03 17:39:34 So fix your adapter Apr 03 17:39:44 but the adapter works in the onClick method Apr 03 17:40:01 there i can get a hold of the object i want Apr 03 17:40:29 So just call adapter.getItem instead of listview.getitematposition if that works Apr 03 17:41:20 If I add a menutItem and pass "android.R.drawable.ic_menu_add" it display the resource path as a text instead of the icon ... anyone had that before ? Apr 03 17:41:42 shroomyreader: pastebin Apr 03 17:41:57 MenuItem plus = menu.add(0, 1, 0,android.R.drawable.ic_menu_add); Apr 03 17:41:58 thats it Apr 03 17:42:23 well Apr 03 17:42:27 the fourth parameter is title Apr 03 17:42:29 soo.... Apr 03 17:42:38 its an int Apr 03 17:42:41 yes Apr 03 17:42:44 I have this urge to get my androidism back up and operating Apr 03 17:42:46 ah crpa Apr 03 17:42:50 shroomyreader: int titleRes Apr 03 17:42:54 * shroomyreader is retarded Apr 03 17:42:55 I wrote a badass geo-caching app yesterday im excited about it Apr 03 17:42:56 <3 Apr 03 17:43:03 maybe a million dollar app :D Apr 03 17:43:10 that would be fantastic Apr 03 17:43:11 evancharlton: thanks you kind sir Apr 03 17:43:17 if only it were that easy... Apr 03 17:43:28 shroomyreader: anyway, I would recommend that you use XML-based menus Apr 03 17:43:31 viralosity is the biggest obstacle Apr 03 17:43:41 writing good apps isn't that hard, but getting them seen is Apr 03 17:44:19 audience matters Apr 03 17:44:35 why ? Apr 03 17:44:38 you could write a fantastic app that's loved by every geocacher, but that's like, what, hundreds of users? Apr 03 17:44:53 is there a real problem ? or just a best practice ? Apr 03 17:45:05 shroomyreader: well, you avoid stuff like this :) Apr 03 17:45:20 yeah ^^ but it works perfect now, thanks again Apr 03 17:45:26 xml is almost always best practice Apr 03 17:45:46 SimonVT: whoa let's not go that far Apr 03 17:46:05 J2EE is the counter-point to that Apr 03 17:46:05 haha Apr 03 17:46:08 evancharlton: Just talking about stuff that can actually be defined as an xml resource :p Apr 03 17:46:21 SimonVT: Yes, it worked through the getListAdapter(), but shouldn't it work through the getListView() as well? Apr 03 17:46:37 it should yes Apr 03 17:46:45 But you're doing it wrong somewhere Apr 03 17:46:48 So it isn't Apr 03 17:47:23 hi all Apr 03 17:47:50 does anyone have any code that can create a pdf? Apr 03 17:49:01 yeah, check it out at lmgtfy.com Apr 03 17:59:11 *cough* http://stackoverflow.com/questions/9994668/admob-redirected-to-admob-com-when-creating-a-new-site-app Apr 03 18:02:52 everythingWorks: it worked for me Apr 03 18:02:58 (just went through the flow) Apr 03 18:05:36 evancharlton: do you log in via googlemail too? Apr 03 18:06:08 everythingWorks: well I made a new account Apr 03 18:06:38 Just retried, nope, didnt work :/ Apr 03 18:06:43 I already have 4 active apps Apr 03 18:15:34 hey guys, noob needs help, so i got myself a listview showing elements from a sqlite db, using a arrayadapter to show the elements in ym listview .. how would i go about registering list items for context menu so i can make different options to the list elements ? Apr 03 18:19:06 set an onclick item listener Apr 03 18:19:23 and in there registerContextmenu and en open it and unregister it Apr 03 18:25:44 Where a javadoc with all the OpenGL descriptions filled in? This one is sort of stripped: http://developer.android.com/reference/javax/microedition/khronos/opengles/GL11.html#glTexCoordPointer(int, int, int, int) Apr 03 18:26:05 oh fuck off logitech revue - ethernet, boot up, it downloads the update, applies it, reboots, OH YOUR ETHERNET IS NOT CONNECTED Apr 03 18:27:00 can someone tell me a bit what's the problem here ? http://pastesite.com/33867 Apr 03 18:27:07 I can;t seem to find it :| Apr 03 18:27:18 I'm pretty new to android Apr 03 18:28:29 luci1093: line 31 in your StartingActivity Apr 03 18:29:16 gridbag: the methods generally map straight to the C calls. Look up the definitions for glTexCoordPointer for GLES in general Apr 03 18:29:21 how do I set up table columns in android? Apr 03 18:29:36 witch line of the log tells you that's exactly line 31 of my starting actiivty ? O.o Apr 03 18:30:11 luci1093: line 72 Apr 03 18:31:12 this is line 31 in my activity Plus.setText(PlusItem); ... I don't know ... I'm trying to set the text to the int PlusItem Apr 03 18:31:34 Plus is a textview Apr 03 18:31:37 setText(int) takes a resource id Apr 03 18:31:41 hey all.. looking for some perspective. how difficult do you think it would be to prevent the user from being able to change the backgroud? Apr 03 18:31:47 Not a random int Apr 03 18:31:48 say for a vendor Apr 03 18:31:57 Convert it to a string if you want to display an int Apr 03 18:32:09 as in assuming you rolled your own android os and deployed it and had full access to everything Apr 03 18:32:22 pff ... well I'm trying to make soem kind of enchanting application (like in online games) and it's kinda based on random numbers lol Apr 03 18:32:41 setText(String.valueOf(yourInt)) Apr 03 18:34:51 ok, It's working now, tho It seems I made a mistake because the text doesnt change .... need to check again :) Apr 03 18:37:59 Plus.setText(String.valueOf(PlusItem)); ... where Plus is a textview ... why it doesn't change the text acording to the int value PlusItem ? :| Apr 03 18:40:53 Where is the android:layout_span in eclipse? Apr 03 18:45:19 Do anyone know how to make a list view only display a certain amount of items? Apr 03 18:46:02 Trying to make the listview only have two items in and be that exact height. Apr 03 18:46:10 It always seems to be a bit bigger than that. Apr 03 18:47:26 that's ... not how you use a ListView Apr 03 18:47:35 =-) Apr 03 18:47:48 Couldn't think of a better way to display the data. Apr 03 18:48:02 LinearLayout? Apr 03 18:48:25 ... Apr 03 18:48:45 Yeah I still don't have a good idea for displaying the data. Apr 03 18:48:52 if you only have two items, why are you using a ListView? Apr 03 18:49:00 I see how it is being displayed on IOS and can't figure out a good way. Apr 03 18:50:51 Well each list item would have been a little different for example one item would have been [Operation Tap At Center] Apr 03 18:51:24 That way I could click on the operation and view even greater details. Apr 03 18:52:00 I don't have the slightest clue what you're talking about, so I hope you do :) Apr 03 18:52:07 haha. Apr 03 18:52:13 Meeee too Apr 03 18:54:16 Madhatt5r: use a linearlayout, orientation vertical, and put your two items in there. Apr 03 18:54:22 problem solved????????? Apr 03 18:54:26 (also read up on viewstubs) Apr 03 18:54:28 == lov Apr 03 18:56:21 I dont see run as android app in eclipse at all :/ Apr 03 18:57:34 azm: then perhaps your story ends here. Apr 03 18:57:41 * lov waves as the boat of smartphone development pulls away Apr 03 18:57:55 azm: is ADT installed? Apr 03 18:58:31 evancharlton, sure it is Apr 03 18:58:36 I tried to configure run Apr 03 18:58:51 create new android app /check the avd in target Apr 03 18:58:56 and then run as.. Apr 03 18:59:33 lov, your so mean x< Apr 03 18:59:41 you're* Apr 03 19:00:01 you're, sorry. Apr 03 19:00:31 I did spell it right before I started reading USA boards Apr 03 19:00:40 like reddit. Apr 03 19:01:13 s/USA boards like// Apr 03 19:03:12 hm, how do I add this programmatically? android:numeric="decimal" Apr 03 19:04:49 by looking at the api docs on textview Apr 03 19:04:53 and see how android:numeric is defined Apr 03 19:04:59 you will see how to do it programmatically Apr 03 19:05:29 oh, I was looking at the textdoc for edittext and it wasn't mentioned at all :) Apr 03 19:06:37 b0nn: edittext extends textview, see the API docs on textview Apr 03 19:07:22 yeah Apr 03 19:07:24 or the "inherited methods" list in edittext docs Apr 03 19:07:26 am reading them now Apr 03 19:07:28 ;) Apr 03 19:07:47 but I cant (yet) see how to do it programmatically, I can see it in XML Apr 03 19:08:26 http://developer.android.com/reference/android/widget/TextView.html#setKeyListener%28android.text.method.KeyListener%29 Apr 03 19:09:26 inputType :) Apr 03 19:09:31 You want this method: http://developer.android.com/reference/android/widget/TextView.html#setInputType(int) Apr 03 19:10:47 should have let him find it on his own :p Apr 03 19:11:21 give a man a fish, he will eat for a day Apr 03 19:11:44 teach a man to fish, and you'll find him camped in your favorite spots for the rest of your life Apr 03 19:12:06 Meh, when I see people giving wrong information I can't help it.. Or well, not necessarily wrong, but definitely not right Apr 03 19:12:09 give a man a fire, he will be warm for the rest of the night. Apr 03 19:12:15 set a man on fire, he will be warm for the rest of his life. Apr 03 19:12:33 plus ninjas can't catch you if you're on fire Apr 03 19:12:48 his brief, painful, life Apr 03 19:12:58 ( http://www.topatoco.com/merchant.mvc?Screen=PROD&Store_Code=TO&Product_Code=RB-FIRE&Category_Code=RB ) Apr 03 19:14:18 Is there a way to implement a "pure" MVC application in Android? Would the Fragments API make this possible? Apr 03 19:14:47 )) Apr 03 19:14:58 SimonVT: thanks, I wouldn't have found it, I was looking at the wrong doc http://developer.android.com/reference/android/R.attr.html#inputType Apr 03 19:14:59 feel free to write your own MVC framework? :) Apr 03 19:15:25 the parts out of your control are the contact points between your app and the wider system Apr 03 19:15:42 mostly, everything that comes through Context and its subclasses Apr 03 19:15:54 right Apr 03 19:16:10 oh, and ViewRoot and friends Apr 03 19:16:47 since the viewroot is where the tie with the system-provided window is Apr 03 19:17:03 beyond that, literally everything is open to be reimplemented however you want Apr 03 19:17:19 yeah, I have seen AndroidBinding as an example of MVVC framework which is nice Apr 03 19:17:50 I have ported the PARI/GP mathematics library to Android Apr 03 19:17:53 all that said, there is a teensy smidgen of "have you considered writing an *Android* application?" that comes along with this conversation :) Apr 03 19:17:54 trying to write a good interface for it Apr 03 19:18:17 Yes, I have written a proof of concept application it is in the market (paridroid) Apr 03 19:18:30 but I want to write a more functional and extensible CAS with a proper user interface Apr 03 19:18:46 and MVC framework makes this more natural I think Apr 03 19:18:55 especially since 90% of the actual work is done in native code Apr 03 19:19:27 err? Apr 03 19:20:00 are you talking about some specific framework built around an MVC model? the sudden appearance of "native code" here was a complete surprise to me :) Apr 03 19:20:21 generally when someone says "MVC" i think "Smalltalk," just so you know where i'm coming from Apr 03 19:21:16 controller is PARI/GP library, model is arraylist of input/output history, view is command prompt and listview of output Apr 03 19:22:15 Hm, So I've done this: final EditText tv10 = new EditText(this);tv10.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL); But when I try to enter non numeric characters they are accepted, am I misreading the docs? Apr 03 19:22:44 Yes Apr 03 19:22:45 =) Apr 03 19:22:46 ah okay; you're talking about a specific application set then. okay, now i get it. Apr 03 19:23:25 b0nn: "Supported classes may be combined with variations and flags to indicate desired behaviors." Apr 03 19:23:27 b0nn: you've created a new edittext and set it to be numeric. you have not placed this edittext on screen, so whatever you're typing into is *not* that particular edittext. Apr 03 19:23:40 So a CLASS is required. FLAG/VARIATION is optional Apr 03 19:23:43 assuming you really did quote all the relevant code :) Apr 03 19:23:58 so earlier today in a meeting, we started talking about putting buttons in buttons Apr 03 19:24:07 it got to a "yo dawg" state very quickly Apr 03 19:24:15 Wtf, canadiancow|work ? :P Apr 03 19:24:29 ==SimonVT Apr 03 19:24:47 ctate, you do not equal SimonVT Apr 03 19:24:51 how many times have we gone over this! Apr 03 19:25:03 anyway, PM wanted a buttonj in a button Apr 03 19:25:04 la la la +q la la Apr 03 19:25:11 or rather, a clickable region in a clickable region Apr 03 19:25:19 so he could click while he clicks Apr 03 19:25:20 canadiancow|work: the solution here is clear. fire the PM. Apr 03 19:25:31 ok the PM was relaying a request from someone Apr 03 19:25:41 ctate can you fix my revue? Apr 03 19:25:48 okay, when you say "clickable region" it is less wtf Apr 03 19:25:51 ever since the honeycomb update, the ethernet has stopped working Apr 03 19:25:58 not wholly without wtf, but less so Apr 03 19:25:59 and that's on two different revues Apr 03 19:26:14 Send me one of them canadiancow|work, I'll investigate! Apr 03 19:28:00 ok, found an example: Apr 03 19:28:06 http://gradedroid.blogspot.co.nz/2009/09/edittext.html Apr 03 19:28:20 setInputType(InputType.TYPE_CLASS_NUMBER|InputType.TYPE_NUMBER_FLAG_DECIMAL); Apr 03 19:29:59 And it works! :) Apr 03 19:30:15 and it's hardly needlessly circuitous! Apr 03 19:30:21 :P Apr 03 19:31:23 canadiancow|work: re the == notation, that's a borrowing from MUD-land Apr 03 19:31:51 wehre it makes more sense, as it always comes through as somehting more like 'ctate says, "==canadiancow|work"' Apr 03 19:31:52 anyway Apr 03 19:33:21 how do people deal with extending 2 classes Apr 03 19:33:22 NERD ALERT Apr 03 19:33:29 hkhalid: you don't Apr 03 19:33:45 hkhalid: a) refactor, b) composition, c) interfaces Apr 03 19:33:45 easy Apr 03 19:33:47 take your pick Apr 03 19:33:54 you want to extend A and B, right? Apr 03 19:33:59 so... class C extends A, class D extends B Apr 03 19:34:00 done Apr 03 19:34:11 C extends B extends A Apr 03 19:34:13 !!11 Apr 03 19:34:34 sheesh you guys Apr 03 19:34:37 I have a class that lists sqlite entries, and a reciever class that listens to incoming sms, I want to extend listactivity and broadacase so that when I get an sms I can add it to sqlite db Apr 03 19:35:07 the traditional way to handle this is by observer patterns Apr 03 19:35:37 you'll note that most of the observers defined/used by the Android framework are *interfaces*, not first-class classes Apr 03 19:36:24 does anyone have a module that can create a pdf with text and images? Apr 03 19:36:41 I'm happy to buy it if needs be :) Apr 03 19:36:45 MickeySoFine: google.com Apr 03 19:36:51 this isn't #android-whine Apr 03 19:37:05 there's a bevy of pdf viewers available on market, contact their teams. Apr 03 19:37:41 lov, already did and found none that can be easily used Apr 03 19:38:01 Coding is hard :( Apr 03 19:38:03 remove easily from your vocabulary and then all is well with the world. Apr 03 19:38:06 So your solution is to just ask every hour in #android-dev until someone magically fixes this for you? Apr 03 19:38:06 I'm not whining either lov, its called asking for help ;) Apr 03 19:38:21 sorry, I'm being kind of harsh here. Apr 03 19:38:24 No, i don't know of any products Apr 03 19:38:37 the pdf format is fixed; you can probably create your own. Apr 03 19:38:53 or you can refactor some existing OSS project and use it instead Apr 03 19:39:41 anyone have a preference for androidplot vs achartengine ? Apr 03 19:39:57 i think androidplot's name is less retarded looking in all lowercase. Apr 03 19:40:29 I'm sure that weighs heavily in your business decision. Apr 03 19:40:51 :| Apr 03 19:46:04 hi all Apr 03 19:46:45 Hello Apr 03 19:46:50 hey, is Class.forName allowed? i need to switch between java sound and android's media api according to where it's running Apr 03 19:47:27 Why aren't you able to resize each item in a row inside a table layout without it affect every column? Apr 03 19:47:48 Q: I presume I cannot pass to my Runnable Button object from main thread? Button.setEnabled(false); - blows up when Button is passed to Runnable in a constructor ... ? Apr 03 19:48:35 silur: maybe that's an order-of-initialization thing? Apr 03 19:49:10 ishmal, well, all values are initialized..... Apr 03 19:50:04 My idea it to pass to Runnable the button object that is supposed to be disabled at the beginning, and re-enabled just before the end of run() Apr 03 19:50:19 silur: you're looking for AsyncTask Apr 03 19:51:04 evancharlton, not exactly. I do: Thread t = new Thread (new MyRunnable(btn_to_be_disabled)); Apr 03 19:51:23 right Apr 03 19:51:35 you can't touch the UI from off the UI thread Apr 03 19:51:40 I think you want AsyncTask :) Apr 03 19:51:46 hm, adding a spinner to a tablerow, is it possible programmatically? Apr 03 19:52:18 viewgroup --> linearlayout --> tablerow Apr 03 19:52:35 reason i was thinking of Class.forName, is to use this lib either in the jvm or android, wrap the two audio apis in interfaces, and load the interfaces with Class.forName like loading a jdbc driver Apr 03 19:52:59 evancharlton, ok got it. But I can access from runnable private Button b defined in outer class though? Apr 03 19:53:07 abaratican: I add it to a viewgroup then add that to a linearlayout then add it to the tablerow? Apr 03 19:53:08 silur: sure Apr 03 19:53:15 Why can't I use "this" as a parameter to initLoader() when using the v4 compatibility classes ? Apr 03 19:53:35 b0nn: tablerow extends linearlayout which extends viewgroup; you can add things to each of the three. Apr 03 19:53:36 It's the third parameter. I'm implementing the LoaderCallbacks in the same class Apr 03 19:53:48 b0nn: it's my way of sayign "of course, and here's why" Apr 03 19:53:56 You can, dansul Apr 03 19:53:58 evancharlton, just curious why it wouldn't work from thread? Is this a matter of Button and Main() sharing the same UI queue or so? Apr 03 19:54:16 You're probably implementing the wrong LoaderCallbacks, or this doesn't refer to your Activity Apr 03 19:54:33 I'm implementing the correct one, I already checked Apr 03 19:54:43 why shouldn't this refer to my activity ? Apr 03 19:54:51 Anonymous inner classes? Apr 03 19:54:57 No Apr 03 19:55:10 initLoader() goes in onCreate() Apr 03 19:55:13 Calling the wrong initLoader? Apr 03 19:55:55 As I said, I'm importing the correct one. I know eclipse can get confused over which to import Apr 03 19:56:15 Well you're doing something wrong Apr 03 19:57:35 Yeah, I'll keep looking, thanks Apr 03 19:57:57 abaratican: the reason I ask is because I tried and got the following error the method addview(Spinner) is undefined for the type TableRow Apr 03 19:58:27 @Override is yor frend Apr 03 19:58:27 You could also just pastebin and I could tell you what you're doing wrong, but each to his own Apr 03 19:58:37 b0nn: http://developer.android.com/reference/android/view/ViewGroup.html#addView(android.view.View, int, android.view.ViewGroup.LayoutParams) Apr 03 19:58:54 http://pastebin.com/179NXJWZ Apr 03 19:59:05 maybe becuase it's addView rather than addview ? Apr 03 19:59:09 b0nn: and spinner extends view, so it should work. Apr 03 19:59:19 ^ or what ctate said Apr 03 19:59:43 oh Apr 03 19:59:46 maybe.... Apr 03 19:59:50 :) Apr 03 19:59:58 that specific code would crash anyway Apr 03 19:59:59 Thanks Apr 03 20:00:02 you never assign mSpinner. Apr 03 20:00:11 Yeah, it's not initialised Apr 03 20:00:33 1 error at a time :) Apr 03 20:01:09 speaking of audio. is sampling audio as easy as on java sound? i need 16bits signed at 11025ksps . that sound reasonable? Apr 03 20:02:06 you can do it Apr 03 20:02:09 dunno; read the docs? starting with http://developer.android.com/guide/topics/media/audio-capture.html Apr 03 20:02:40 ack. i am actually on the site, but didnt see that. sorry! thanks! :) Apr 03 20:03:44 hm. says i cant test it on the emulator. well, that's ok. Apr 03 20:05:32 what i am working on is an sdr (software defined radio) app Apr 03 20:10:39 first test will be to sample the audio, perform an FFT on it, and display a waterfall display of the spectrum from 0-3khz Apr 03 20:11:03 oh shit, the radio station here is talking about sacrificing virgins in the old days, saying that you wouldn't want to sacrifice the slutty girls, because they put out.. Apr 03 20:11:27 of course the volcano wouldn't like that Apr 03 20:12:09 i guess the Vestal virgins in Rome were periodically re-certified Apr 03 20:12:35 what the hell is happening in here? Apr 03 20:12:51 armageddon Apr 03 20:12:54 we're trying to not offend the volcano god Apr 03 20:14:26 this is 2012, not Joe vs the Volcano Apr 03 20:22:58 my canvas draws fine on 2.3 device, but on my ics tablet, DashPathEffect lines show up solid when i drawLine, but show up dashed (as intended) when i use drawPath Apr 03 20:23:01 any ideas? Apr 03 20:24:03 emit maybe it's the hardware accel? try setting the view to software to see if the problem persists Apr 03 20:25:08 yup... that was it Apr 03 20:25:19 not everything is supported in hw accel, i believe Apr 03 20:25:20 i guess i should just use paths instead Apr 03 20:25:25 even for just simple horizontal lines Apr 03 20:25:27 my solution lov is to ask later in the day when others who were not here before might get to know what I'm asking and maybe help :p Apr 03 20:26:40 http://developer.android.com/guide/topics/graphics/hardware-accel.html yeah but the things you mention aren't on that page Apr 03 20:32:57 are there any large (3 days+) Android conferences besides AnDevCon and Google I/O? Apr 03 20:33:39 xorgate: file bugs! Apr 03 20:39:53 im trying to refresh my listview with adapter.notifyDataSetChanged(); but it doesnt seem to work...only when I close the app and reopen it, then the list is updated... Apr 03 20:41:16 hkhalid: works fine here Apr 03 20:42:29 wongk: I have some buttons that add/delete items in db, after clicking them, the view is updated just fine as it uses adapter.notifyDataSetChanged();....but I have a recievr listening to incoming sms and they do get added to db...but when it happens, the listview doesnt update, so i made a refresh button and it doesnt do anything Apr 03 20:42:49 noob question guys, if i listview some content from my db, use an array adapter, use contextmenu, how can i findout the array position of the item i just long pressed ? sorry if double posted, timed out Apr 03 20:42:57 only when I close the app, then reopen it, I do see the sms entries Apr 03 20:43:14 So, i get this error Apr 03 20:43:17 hkhalid: do your buttons go through the adapter? Apr 03 20:43:26 04-03 16:40:17.681: W/System.err(637): java.net.UnknownHostException: Unable to resolve host "stabbyspazzout.net": No address associated with hostname Apr 03 20:43:34 but that host exists Apr 03 20:43:45 csid: if content is coming from your db, use cursoradapter Apr 03 20:44:08 wongk: see how I added line 15/16 Apr 03 20:44:10 http://pastie.org/3723123 Apr 03 20:44:16 can anyone help with what i may be doing wrong? Apr 03 20:45:07 hkhalid: so the answer to my question is yes Apr 03 20:45:14 wongk: sorry Apr 03 20:45:21 the buttons update the view because they go through the adapter Apr 03 20:45:31 csid: main channel, please Apr 03 20:46:00 after the DB is updated, if it's not done through the adapter, then the DB needs to be requeried Apr 03 20:46:01 sorry, my bad, how should i use the cursor adapter ? yeah content is comming form db Apr 03 20:46:14 Does anyone know if I can use ActionBarSherlock to fire up the CAB when I long-press on an item in a listview? I want it to perform a different action when I click on an item. I'm trying to replicate the getListView().setMultiChoiceModeListener(new AbsListView.MultiChoiceModeListener() {...}); Apr 03 20:46:14 http://pastebin.com/nJ5rcVSt Apr 03 20:46:17 wongk: ok sweet I saw a fucntion for this, thanks you rock! Apr 03 20:46:28 awesome name btw Apr 03 20:51:49 CursorAdapter is used when you want your backend data to come directly from the database Apr 03 20:56:01 dansul: You can't Apr 03 20:56:26 Not with that method Apr 03 20:56:52 SimonVT, Is there some other way to do it ? Apr 03 20:57:45 Well, you just want to show an ActionMode when you long-press an item, right? Apr 03 20:57:50 Handle that yourself Apr 03 20:58:06 Multiple items Apr 03 20:58:20 Same answer Apr 03 20:59:47 I dropped using listviews choice mode, and manage it myself in the fragment/adapter Apr 03 21:01:19 in bindView() ? Apr 03 21:04:19 You can keep a list of selected items in your adapter. On long click, tell the adapter you're in multi select mode (often you have some extra views to display), and start your actionmode Apr 03 21:04:31 When user clicks an action item, get the list of selected items from the adapter, and do your stuff Apr 03 21:04:39 When user clicks done, clear the selected items list Apr 03 21:08:29 Hey y'all. What should I name a layout folder for a specific version? The documentation is totally unclear. layout-v7, layout-v15, etc? Apr 03 21:08:40 OS version, that is. Apr 03 21:09:52 Chronax, Yes, the API version Apr 03 21:09:57 What would be the most cross platform way to write an opengl es engine? By cross platform i mean can be compiled/made to work for Android, Desktop, Web, and *shudders* iOS? Apr 03 21:10:03 Any way to specify a very specific version? Apr 03 21:10:19 IE: 2.3.4 vs. 2.3.2? Apr 03 21:10:33 Well, since 2.3.4 is API10 and 2.3.2 is API9, sure :p Apr 03 21:10:37 But otherwise, no Apr 03 21:11:32 yea if you're doing it for something that specific, im guessing you're tyring to fix an OEM fuckup Apr 03 21:11:39 in which case, you dont want to force it upon everyone Apr 03 21:11:47 (or rather, maybe you do? but then you still dont need the qualifier) Apr 03 21:12:07 Q: Anyone knows how to find the last line (Stack?) of my code before exception occured while debugging? I cannot seems to find anything like "Stack trace" .... Apr 03 21:12:59 I just get new tab "Source not found", but no way to trace it back to my code Apr 03 21:13:40 silur: Exceptions have a method called getStackTrace(). Apr 03 21:13:52 silur: you're in the uncaught exception handler. Apr 03 21:13:58 silur: When you catch an Exception, you can use that method to get at it. Apr 03 21:14:10 Chronax: "while debugging" Apr 03 21:14:17 Silur: Otherwise, you can use Thread.currentThread().getStackTrace(). Apr 03 21:14:19 Ugh, well. Apr 03 21:14:30 or e.printStackTrace() Apr 03 21:14:33 yes yes Apr 03 21:14:46 So there is no way to trace back to source code that caused unhandled expection, besides modifying the source code? Apr 03 21:15:14 silur: you could just look at the log ... Apr 03 21:15:17 or set a breakpoint Apr 03 21:15:57 hey hey hey Apr 03 21:16:32 or you know Apr 03 21:16:40 you could look at the stack trace in the debug view Apr 03 21:17:22 canadiancow|work, in debug view there is LogCat, but no "stack trace" Apr 03 21:17:41 theres a big debug section Apr 03 21:17:43 with all your threads Apr 03 21:17:47 and the stack in each thread Apr 03 21:17:57 hi...lets say my app has two frames like....ice cream sandwiches settings page? Apr 03 21:18:19 canadiancow|work, any "menu way" to get to that? Apr 03 21:18:29 im in Debug view Apr 03 21:18:33 window->show view->debug ? Apr 03 21:18:34 would i do a base linear layout, horizontal? Apr 03 21:18:44 looopy, like ICS on a tablet? Apr 03 21:19:20 damnit sammy, where's ics for the galaxy 10.1 Apr 03 21:19:32 pfn: http://get.cm/?device=p4wifi Apr 03 21:19:46 canadiancow|work, im in Debug view, but cannot see any way to see "all threads" ? Apr 03 21:19:54 has it moved out of a nightly status yet, looks like now Apr 03 21:19:56 s/now/no Apr 03 21:20:02 it's called "Debug" Apr 03 21:20:09 and all your threads are there Apr 03 21:20:13 canadiancow|work, oops, sorry found threads Apr 03 21:20:15 and your paused threads show stack traces Apr 03 21:20:17 [17:17:41] theres a big debug section Apr 03 21:20:17 [17:17:43] with all your threads Apr 03 21:20:17 [17:17:47] and the stack in each thread Apr 03 21:21:48 There is one thread suspected with RuntimeException with no any traces to my code whatsoever Apr 03 21:22:08 canadiancow|work: yeah Apr 03 21:22:26 i wonder if i should just create a table row and two table columns... Apr 03 21:22:40 looopy, it's fragmented Apr 03 21:22:45 but...well this is my first app so i'm wondering how i'm going to deal with the sliding on the right side. Apr 03 21:22:53 http://developer.android.com/guide/topics/fundamentals/fragments.html Apr 03 21:23:21 canadiancow|work: sweet...thanks. had no clue where/what to look for Apr 03 21:23:44 read the whole fundamentals site Apr 03 21:28:31 17:23:54 < canadiancow|work> read the whole fundamentals site Apr 03 21:28:35 seriously though, do this. Apr 03 21:28:48 Android really isn't quite like what you're used to. Apr 03 21:29:12 lov: you mean I can't code my app like I coded my J2EE website? Apr 03 21:31:09 AbstractFactoryFactoryAbstractFactoryInterfaceMethodApplicationActivityFactory? Apr 03 21:31:37 not enough Providers Apr 03 21:31:39 and Builders Apr 03 21:31:57 fuck Apr 03 21:34:48 but we're still in the kingdom of the nouns, right ? Apr 03 21:36:28 anyone know what instagram is using for its actionbar ? Apr 03 21:38:07 how do you detect when the power button has been held and that menu pops up Apr 03 21:40:18 who cares what instagram is using, but if you do care, just dexdump classes.dex and see what it's using Apr 03 21:40:25 assuming it's not obfuscated Apr 03 21:40:50 I have an HTC Desire HD/Inspire 4G, and Im unable to find a working ADB driver... help? Apr 03 21:40:58 if it is obfuscated, you can probably still manage to figure it out with some work Apr 03 21:41:10 g00s: something screwed up? Apr 03 21:41:15 g00s, I really don't understand your aversion to abs Apr 03 21:41:20 i'm wondering if they are using abs Apr 03 21:41:34 ctate: no, everything is fine Apr 03 21:41:43 you spend more time wondering what people use than just picking one and using it Apr 03 21:41:44 Instagram strikes me as a reasonably good exemplar of how taking an iOS UI and halfassedly Androidifying it does not result in a smoothly Android-happy UI Apr 03 21:41:55 * pfn isn't bothering to run instagram Apr 03 21:41:58 doesn't sound interesting Apr 03 21:42:00 ctate: +1 Apr 03 21:42:04 maybe it's cuz I have no friends or something Apr 03 21:42:06 not that ive used instagram Apr 03 21:42:58 so...no way to detect when the power dialog is showing (press and hold power) Apr 03 21:43:08 the screenshots are terrible Apr 03 21:43:30 canadiancow|work: as opposed to when some other UI is showing? Apr 03 21:43:37 like an ANR dialog or whatever? Apr 03 21:43:48 no Apr 03 21:43:49 just in general Apr 03 21:43:54 im not getting normal callbacks when that comes up Apr 03 21:43:59 i.e. onPause Apr 03 21:44:04 so my game isnt pausing Apr 03 21:44:08 it's a system dialog; they're special Apr 03 21:44:19 suppose i wish to make a simple game where i toss a ball and it bounces around the screen.. should i use andengine or something? Apr 03 21:44:20 so i have another game that does pause when i do this - i know it's possible Apr 03 21:44:30 huh Apr 03 21:44:32 and i dont care if it's special - i still need to pause my damn game Apr 03 21:44:41 at the window level you can probably tell if your window has been covered Apr 03 21:44:52 g00s: I made my jar that iterates through folders in art/ and copies/generates to res/ \o/ Apr 03 21:44:52 but i dont want volume control to pause the game Apr 03 21:45:09 oh hm. Apr 03 21:45:10 SimonVT: \o/ indeed ! Apr 03 21:45:20 ctate, i do have a game installed that behaves properly - pauses for power, not volume Apr 03 21:45:30 that's the behaviour i want Apr 03 21:45:30 i have no clue offhand Apr 03 21:45:38 SimonVT: do you have any idea if instagram is using abs ? Apr 03 21:45:41 can you tell dan galpin to reply to an email if i send him one? Apr 03 21:45:46 he knows Apr 03 21:45:49 g00s: I can even put svg's in drawable-v10 and it outputs to drawable-xhdpi-v10 etc Apr 03 21:46:04 g00s: Copy to computer, unpack, check for abs__ prefixed resources Apr 03 21:46:13 SimonVT: ok, thanks Apr 03 21:46:35 Tho looking at it, I doubt they use the android action bar at all Apr 03 21:46:52 SimonVT: you left your build system such that each svg file has a single icon , correct ? Apr 03 21:46:53 SimonVT: that sounds interesting, you generate your drawables from svg? automatically? Apr 03 21:47:07 g00s: Yeah Apr 03 21:47:28 Napalm: Stuff like menu icons, yea Apr 03 21:47:40 SimonVT: would you mind sharing some details? Apr 03 21:47:45 I added the values for the Desire HD into the adb driver file, and Windows is giving me this http://nasutek.com/~alex/05365c7e-2e2d-419a-993e-ceb3378cb3d8.jpg Apr 03 21:47:47 it works great Apr 03 21:47:57 (generating your assets from svgs) Apr 03 21:48:03 Napalm: inkscape can be called from command line to generate png's from svg's Apr 03 21:48:09 With a width and a height Apr 03 21:48:17 ah didnt realise that, i use inkscape for my SVGs Apr 03 21:48:30 04-03 17:46:45.780: D/skia(1380): --- SkImageDecoder::Factory returned null Apr 03 21:48:37 why would it return null? Apr 03 21:48:42 Napalm: you can also specify an ID for an object to export (via inkscape command line) Apr 03 21:48:56 So I name my icons ic_action_icon.32.32.svg for a 32dp*32dp icon.. And my jar applies density multipliers, copies to each dpi dir etc Apr 03 21:49:05 g00s: i still think you should be able to include svg in your drawables and when the package manager optimizes your dex code for the device it should generate drawables from your svg Apr 03 21:49:16 Napalm: i agree Apr 03 21:49:25 Please help? :/ Apr 03 21:49:53 g00s: when im at I/O i want to talk to the tools/adt guys about that Apr 03 21:50:19 Napalm: its been brought up a few times here Apr 03 21:50:22 at least if the tools could do the parsing it would be better than what we have now Apr 03 21:50:29 yeah, i agree Apr 03 21:50:37 Napalm: why not just submit patches? Apr 03 21:51:07 SimonVT: so you've done a java app, exported as jar and it executes from your ant build script? Apr 03 21:51:24 Napalm: For now I call it manually Apr 03 21:51:27 i was thinking about writing an ant task that consumes a simple config file, in an easy to read DSL, that generates your icons Apr 03 21:51:32 Eventually, ant will Apr 03 21:51:54 evancharlton: it might be nice to do that actually, first we would need to find a decent SVG renderer that works multi platform, perhaps just adding a setting to ADT for the location of inkscape would do Apr 03 21:52:25 Napalm, so... shall we setup some source repo? Apr 03 21:53:02 perhaps, we'll have to talk about it another time in more detail, im a little preoccupied at present Apr 03 21:53:12 i think as displays get better (dpi wise), the common rasterization issues with horizontal and vertical lines will become irrelevant Apr 03 21:53:41 SimonVT: theres some stuff i saw around that talks about making SVG files nicer for multiple resolutions, it would help a lot android.. one moment and i'll find a link Apr 03 21:53:45 of course, there is still the re-authoring by changing the icon more significantly ... Apr 03 21:54:14 but for most of us, who can't afford a designer to create whole new icons at each dpi, this should be enough Apr 03 21:54:43 a designer probably balks at creating multi-dpi assets Apr 03 21:54:51 http://my.opera.com/ODIN/blog/2009/10/12/how-media-queries-allow-you-to-optimize-svg-icons-for-several-sizes Apr 03 21:54:58 very intersting stuff Apr 03 21:55:07 like simplifying your icons for smaller resolutions Apr 03 21:55:20 removing thin border lines or making them thicker for smaller resolutions Apr 03 21:55:24 that type of thing Apr 03 21:55:27 useful if you write your svg by hand maybe Apr 03 21:55:50 I don't think any drawing tools actually exposes stuff like that Apr 03 21:55:53 its easy to edit the xml in inkscape Apr 03 21:56:09 well perhaps it would be nice to have one svg file with multiple resolutions in it and some sort of attribute to define the res, mdpi, hdpi so on Apr 03 21:56:11 is it... never looked until after I saved it Apr 03 21:56:37 Hm, could I use this to generate 9patches from svg's? :p Apr 03 21:56:47 that would be interesting Apr 03 21:57:41 its definitly what ADT requires, some mechanism to convert vectored graphics to resources Apr 03 21:58:25 and for the most part, most designers don't even create vector graphics Apr 03 21:58:26 i think the build system needs to be changed too, since the converted resources are generated, and the res/ tree has non - generated stuff. its kind of a mess mixing Apr 03 21:58:32 they all seem to universally work in photoshop Apr 03 21:58:39 like gen/drawable-* Apr 03 21:58:49 g00s, generate into bin/res like I told you before Apr 03 21:59:01 the build already reads resources out of bin/res currently Apr 03 21:59:11 g00s: nice idea Apr 03 21:59:26 pfn: i use the adt, how would the ids get generated ? i can use aapt -S anyhow Apr 03 21:59:32 i.e. pngcrunch and renderscript both generate into bin/res Apr 03 21:59:38 and the IDs are generated off of bin/res as well Apr 03 22:00:22 g00s, default ant scripts do aapt -S bin/res -S res by default Apr 03 22:00:25 er Apr 03 22:00:29 remove redundancy Apr 03 22:00:52 pfn: but can i get the adt to do that … thats my question Apr 03 22:00:56 i use both Apr 03 22:01:01 g00s, adt should be doing so as well Apr 03 22:01:05 yo peeps Apr 03 22:01:18 g00s, i.e. whatever ant does, adt should be mirroring Apr 03 22:01:22 and vice versa, imo Apr 03 22:01:48 ok, so under the hood adt is calling at to build ? Apr 03 22:01:51 *ant Apr 03 22:01:52 no Apr 03 22:02:01 they call similar apis in sdklib.jar Apr 03 22:02:59 ok, i will have to try that Apr 03 22:03:12 fuck logitech Apr 03 22:03:16 i thought we established the previous time this was discussed, it did not work, but i will try again Apr 03 22:03:18 why's that? Apr 03 22:03:20 they just told me to keep my revue connected directly to my modem Apr 03 22:03:22 no router, no switch Apr 03 22:03:27 oh Apr 03 22:03:31 just lie and tell them that it is Apr 03 22:03:32 You're connecting it wrong! Apr 03 22:03:38 pfn: i should have Apr 03 22:03:42 it doesnt support PEAP for wifi Apr 03 22:03:48 and since the honeycomb update, wired isnt working Apr 03 22:03:51 so it's... a brick Apr 03 22:03:59 no wired connection? lame Apr 03 22:04:11 they probably only tested it with linksys equipment Apr 03 22:04:20 so corporate networks dont do so well Apr 03 22:04:22 g00s, an alternative is to use something like sbt Apr 03 22:04:35 i just stick to the official stuff Apr 03 22:04:39 g00s, then you can modify it all you want, and have sbt run continuously in the console Apr 03 22:04:49 and you don't need eclipse to do any building Apr 03 22:05:00 "official stuff" Apr 03 22:05:07 :) Apr 03 22:05:09 in that case, you shouldn't care about actionbars on pre 3.0 :p Apr 03 22:05:15 because you want to stick to official stuff Apr 03 22:05:21 you are such a pain :) Apr 03 22:05:23 SimonVT: would it be possible to get a copy of the source that does your svg-to-png using inkscape? Apr 03 22:07:38 Napalm: Maybe later Apr 03 22:07:51 Napalm: here is what i do Apr 03 22:07:53 http://pastebin.com/3C5MvwCK Apr 03 22:08:04 The source is a complete mess right now, not sure if I dare share it :P Apr 03 22:08:29 if i can release my unused res detector... Apr 03 22:08:54 Haha Apr 03 22:09:05 SimonVT: fair enough, i know that feeling Apr 03 22:09:10 oh noes, python Apr 03 22:10:38 Napalm: and sample config file, http://pastebin.com/9LgCSZxg Apr 03 22:11:14 thanks g00s, i'll look into this Apr 03 22:11:36 the difference between what I and SimonVT do, is that i have multiple icons in a single SVG Apr 03 22:11:49 hi. Maybe somebody knows an answers. http://pastebin.com/pMEUvwP6 - my xml, that i download is in UTF-8. But returned string don't shows special characters. setLocale() - doesn't help. Apr 03 22:12:06 each icon is given an ID, and the config file says what its mdpi size is (which comes from the icon design guidelines) Apr 03 22:12:28 Can anyone suggest on OMX initialization for HE-AAC rendering of ADTS bitstream please? Apr 03 22:14:18 g00s, so fancy :p Apr 03 22:14:49 wow sshdroid really takes its time the first time Apr 03 22:15:28 i love Python, mostly because i can be away from it for a few years and then one day write a little script in like 30 minutes without much hassle Apr 03 22:15:42 i could never do that with perl Apr 03 22:15:49 g00s: you know a way to run python on droid? Apr 03 22:15:53 *drool* Apr 03 22:15:57 oh, no idea Apr 03 22:16:02 damn :) Apr 03 22:16:19 running python on android is easy Apr 03 22:16:24 get sl4a Apr 03 22:16:28 and presto, you can run python Apr 03 22:16:37 or you can embed jython into any android app Apr 03 22:17:07 ohh Apr 03 22:17:10 ofcourse Apr 03 22:17:13 didnt think of that Apr 03 22:18:33 i've had a lot of wine... Apr 03 22:18:49 and i've got my first android phone just weeks ago Apr 03 22:18:56 * pfn has javascript embedded in one of his apps Apr 03 22:19:17 so i'm looking for the big picture if thats ok... would it be possible someday to run vmware machines on the phone? Apr 03 22:20:06 it can already do opengl es 2 wich is awesome Apr 03 22:21:03 and if i do 'ps' on a local terminal i see a great unix with that app_344 stuff Apr 03 22:21:08 its just so well done Apr 03 22:21:43 the only thing is that my battery doesnt last long :( Apr 03 22:21:53 my old dumbphone had a week uptime Apr 03 22:22:31 but it didnt really do anything i guess Apr 03 22:31:49 I came across an app on Play that said it required "INTERNET ACCESS mandatory to hook into the communications system" - is this true? Apr 03 22:32:14 depends on what "communication system" it's talking about Apr 03 22:32:17 you probably can't communicate over the internet if you're not on it Apr 03 22:32:28 if it's a free app, it's probably the "ad server's" "communication system" Apr 03 22:32:41 if it plays something from the network or has any sort of network connectivity, it would be using that. Apr 03 22:32:57 regardless, this isn't really a -dev question Apr 03 22:33:01 you might want to go to #android Apr 03 22:33:38 recommendations on an XML library? Apr 03 22:33:59 swarley: burn it with fire Apr 03 22:34:02 that's my recommendation Apr 03 22:34:10 k Apr 03 22:34:13 how about HTML Apr 03 22:34:15 agreed Apr 03 22:34:23 webkit? idk. Apr 03 22:34:24 json might be better suited Apr 03 22:34:27 no Apr 03 22:34:32 its for parsing site data Apr 03 22:36:24 oh man i got the android-script-language or so.... Apr 03 22:36:36 and installed bean-shell along with python and perl and lua Apr 03 22:36:48 but the keyboard gets in the way... Apr 03 22:37:00 i get totally different chars for ( for example.... Apr 03 22:37:04 so useless.... Apr 03 22:37:25 i can't even put a help() in python Apr 03 22:37:53 and the cursor change too .....to something like M shaped or so Apr 03 22:50:02 swarley: whats the matter with the built in xmlpull stuff ? Apr 03 22:50:20 wasnt aware of it Apr 03 22:50:24 but i dont need it anymore Apr 03 22:50:26 thank god Apr 03 22:50:43 could someone tell me what's wrong with this??? https://gist.github.com/2296083 Apr 03 22:51:53 Hello Apr 03 22:51:53 I am having slight difficulties with my app where i try and set a list adapter and the app closes and no debug messages or anything Apr 03 22:52:04 kieran491: nothing in the log?! Apr 03 22:52:43 ctate: nothing that i can see Apr 03 22:53:00 hm , so apple puts out an update for java, but since i'm using the jdk seems like the os doesn't know about it Apr 03 22:53:05 looopy: does that even *compile*? a Fragment isn't a Context, is it? Apr 03 22:53:53 whats a Copying /data/tombstones/tombstone_08? Apr 03 22:54:10 Is there any way to set the textColor of all children TextView controls inside a linearlayout, at the linearlayout level? Apr 03 22:54:14 Once, instead of... N times? Apr 03 22:54:15 sweet, you segfaulted didn't you :> Apr 03 22:54:47 ctate: nope, it seems as if textviews aren't allowed Apr 03 22:55:16 ahh.. *writes context down* i'm still working through my book but i'm hacking around to get an idea of what NOT to do... Apr 03 22:55:21 looopy: you're in a Fragment Apr 03 22:55:23 not an Activity Apr 03 22:55:40 How could i possible cause a segfault Apr 03 22:56:07 kieran491: what *does* show up in the log when your app is run and then vanishes? Apr 03 22:56:09 i see, i was just testing to see if that would allow me to force something on the screen in that manner Apr 03 22:56:22 ehh *goes back to chapter 3* i have my answer now Apr 03 22:56:38 looopy: you can certainly do that, but the code has to be in Activity not Fragment Apr 03 22:56:41 :) Apr 03 22:57:23 ctate: their is no message displayed by android Apr 03 22:57:24 hmm Apr 03 22:57:32 kieran491: i didn't say on the phone Apr 03 22:57:33 i said in logcat Apr 03 22:57:50 looopy: (or in Fragment lifecycle code where you have a Context object to work with) Apr 03 22:58:09 ctate: One tick Apr 03 22:59:37 I think i know what i have done Apr 03 23:00:44 can you recommend a book with a good combination of example apps and detailed info Apr 03 23:03:42 Squarepy: i would wait for Reto's 3e Apr 03 23:05:55 i want to add a fragment dynamicly to a view. This fragment contains several spinners. The fragment is added by button push or if data is available in a loop creating a fragment for each set of data. the add via button works well and the data is set in the spinners. if i add the fragment in onResume() the spinners are shown as empty though the data in the spinner's ArrayAdaper is set. Apr 03 23:06:53 g00s, you mean Professional Android 2 Application Development? Apr 03 23:07:08 yeah, but the new one which should be out soon Apr 03 23:07:13 i know, doesn't help much yet Apr 03 23:07:25 maybe they have a beta program Apr 03 23:07:32 but you had good experience with 2? Apr 03 23:07:38 What about commonsware ? Apr 03 23:08:09 All of his examples are on github too. Apr 03 23:08:18 Squarepy: well, when i read it, a while ago all of the android books sucked Apr 03 23:08:35 Programmin Android (oreilly) and Reto probably sucked the least Apr 03 23:08:40 all the others were garbage Apr 03 23:08:41 g00s, Have you read what I just mentioned ? Apr 03 23:08:47 yes Apr 03 23:08:55 i know longer have a subscription :) Apr 03 23:08:59 *no Apr 03 23:09:12 I've looked at some older editions and I thought they were pretty good. Apr 03 23:09:26 YMMV though Apr 03 23:10:24 yeah, I haven't found a well paced and thorough book yet, thanks for the suggestions Apr 03 23:12:11 one of the better books, was 'Android in Practice' … but this is not an intro book Apr 03 23:12:41 its not systematic, more like advanced topics Apr 03 23:12:42 thks Apr 03 23:13:03 ok, prob not what I need now ;) Apr 03 23:15:07 you can get the early release of programming android 2e i guess http://shop.oreilly.com/product/0636920023005.do Apr 03 23:16:08 hey Apr 03 23:16:54 wow, 864 pages now . http://www.wrox.com/WileyCDA/WroxTitle/Professional-Android-4-Application-Development.productCd-1118102274.html Apr 03 23:17:06 android noob here, Is there a way i can use Spoiler type buttons in a app? Apr 03 23:17:12 How I can make an application to send the GPS position every 5 minutes? Using a service? Apr 03 23:17:39 I want to have a bunch of buttons in a list, and when clicked they drop down some text Apr 03 23:17:53 g00s, I'm kinda new to the early release thing Apr 03 23:18:23 so, a press repackages the commons ware stuff … here is their version Apr 03 23:18:48 http://www.amazon.com/Beginning-Android-4-Apress/dp/1430239840/ref=sr_1_2?s=books&ie=UTF8&qid=1333495073&sr=1-2 Apr 03 23:18:58 oh i guess it has a new author now, so fucking bizarre Apr 03 23:19:10 well, looks like it still sucks Apr 03 23:20:37 yeah looking at 'pro android' the companion book and it is kinda all over the place Apr 03 23:20:53 pro android sucks too, i think the author is really clueless Apr 03 23:21:47 ;) Apr 03 23:22:05 Reto works for google, so it makes sense he will be more authoritative than the others … if he has a question he can just talk to ctate :D Apr 03 23:22:19 heh Apr 03 23:23:21 that explains Apr 03 23:24:26 Can anyone help me with a simple problem? Apr 03 23:24:29 SimonVT: where does you sag to png thing throw stuff, into res/ … ? Apr 03 23:24:40 *svg, damn auto spell have to fix this Apr 03 23:24:43 Im trying to teach myself anroid Dev, dont really have much pior coding experience Apr 03 23:24:59 I need soem kinda of Spoiler button or something Apr 03 23:25:01 g00s: yeah Apr 03 23:25:20 But it takes the res dir as a parameter Apr 03 23:25:27 sure Apr 03 23:25:32 What would i call it? and what should i google. Ive been googling Spoiler button for XML Apr 03 23:25:47 any ideas on how to resize a bitmap and retain proportions? Apr 03 23:25:51 I want to have the user click on a button that will drop down some text Apr 03 23:25:59 swarley: look at ImageView scaleType :) Apr 03 23:26:17 moonunitzappa: you mean a Spinner ? Apr 03 23:26:26 perhaps Apr 03 23:26:30 moonunitzappa, start reading a book ;) Apr 03 23:26:39 Im reading tons of tuts right now Apr 03 23:26:45 http://developer.android.com/resources/tutorials/views/hello-spinner.html Apr 03 23:26:59 I think im getting the hang of it, i just dont what the word what im looking for Apr 03 23:27:07 thing g00s got it for me though :) Apr 03 23:29:42 g00s, not quite like that, For example say it was a medical app that has guides on how to tend wounds and what not Apr 03 23:30:16 ? Apr 03 23:30:17 and you click nosebleed and it revles text that would explain what to do in a situation Apr 03 23:30:39 so kinda like a html spoiler tag Apr 03 23:30:42 but not quite Apr 03 23:30:47 just dont know the word for it Apr 03 23:31:18 naimean? Apr 03 23:31:33 ok, i see Apr 03 23:31:40 put the text block into the layout, marked GONE Apr 03 23:31:46 whent he button is clicked, make it visible Apr 03 23:31:54 bonus for using the spiffy new view animation stuff Apr 03 23:32:02 so it'll animate into existence or whatever Apr 03 23:32:25 Is their a namefor that type of button, or situation Apr 03 23:32:58 popup? Apr 03 23:33:02 also im using android 2.2 sdk, Not sure why, am i limiting myslef on how esy this could be? Apr 03 23:33:10 i have a new favourite devrel Apr 03 23:33:17 and i no longer have the same opinion of devrel Apr 03 23:33:18 :) Apr 03 23:33:27 lawl Apr 03 23:33:55 im using, scaleType="fitXY" Apr 03 23:34:03 but its not fitting the parent object Apr 03 23:34:09 its fitting to the screen Apr 03 23:34:41 I'm gonna guess, so does the parent object Apr 03 23:34:50 canadiancow: belated, i suspect that for the "pause on longpress-power" case you will need to watch window focus Apr 03 23:34:53 and when your window loses focus, pause Apr 03 23:35:04 ctate, that will pause on volume too Apr 03 23:35:07 it's possible that the volume controls twiddle the window focus explicitly for this kidn of reason Apr 03 23:35:17 i dunno; just thinking otu loud a bit Apr 03 23:35:19 test it! :) Apr 03 23:35:39 the parent, has no scale, but it matches parent Apr 03 23:35:56 moonunitzappa: i suppose you could use an expandablelistview too Apr 03 23:36:04 or whatever its called Apr 03 23:36:19 depending on how many different types of nose bleeds you have :) Apr 03 23:37:10 ty Apr 03 23:56:24 nosebleeds? http://www.youtube.com/watch?v=-CE83argFvY Apr 03 23:57:29 whats a good dev phone that comes with stock GB these days ? Apr 03 23:57:53 stock GB? Apr 03 23:57:56 as in 1gb of ram? Apr 03 23:58:24 i figure its time to let go of my froyo phone, GB seems to be becoming the lowest common denominator worth spending time with (or will be soon) Apr 03 23:58:39 oh you mean gingerbread Apr 03 23:58:40 derp Apr 03 23:58:45 derp, indeed Apr 03 23:58:48 :) Apr 03 23:59:13 nexus s is the obvious choice but that is in the process of upgrading to ICS Apr 03 23:59:43 i guess i can get a n1 Apr 03 23:59:52 y Apr 03 23:59:56 yeahh Apr 03 23:59:57 $289 roughly Apr 04 00:00:05 g00s what u looking for Apr 04 00:00:05 To set a sound from within your res>raw folder, do you have to save it to the sd card first? Or can you set sounds that are inside your package as ringtone/notification sounds Apr 04 00:00:32 Jug6ernaut: just a good dev phone with stock GB Apr 04 00:00:42 stock? Apr 04 00:00:45 :\ Apr 04 00:00:50 * Jug6ernaut was going to say get an hd2 Apr 04 00:00:56 put w/e android u want on it Apr 04 00:00:59 bu stock... Apr 04 00:01:11 the nexus phones are really the only stock android phones :P Apr 04 00:01:37 and only if they are unlocked gsm Apr 04 00:01:45 oh Apr 04 00:02:47 and except for the nexus one, i wouldnt call any of them "good" Apr 04 00:02:51 birbeck: so this, right http://www.amazon.com/Google-Nexus-One-Unlocked-Android-U-S/dp/B00332YPHQ Apr 04 00:03:33 so...exepensive... Apr 04 00:03:40 yeah, fuck. Apr 04 00:03:40 g00s: yeah, but if you wanna use it in the us you will get 2g speeds Apr 04 00:03:48 nah, i won't use it. just for dev Apr 04 00:03:49 * Jug6ernaut agay says get an hd2 Apr 04 00:03:54 says Apr 04 00:03:54 lol Apr 04 00:04:00 Don't you already have an outdated phone, g00s ? Apr 04 00:04:07 xD Apr 04 00:04:09 yeah, froyo. moto droid-1 Apr 04 00:04:09 just for dev, buy a used one on swappa.com Apr 04 00:04:18 * Jug6ernaut sold his galaxy nexus Apr 04 00:04:20 WHy you need another ;d Apr 04 00:04:34 lol Apr 04 00:04:41 how would I define that an item should always be on the split-actionbar Apr 04 00:05:06 SimonVT: don't you think its good to have a froyo and gb device ? Apr 04 00:05:22 no Apr 04 00:05:23 lol Apr 04 00:05:25 g00s: Not really Apr 04 00:05:26 i havent used froyo in a year or more Apr 04 00:05:32 There's an x86 emulator now Apr 04 00:05:35 Plenty speed Apr 04 00:05:46 x86 emulator? Apr 04 00:05:49 where! Apr 04 00:05:50 oh yeah, forgot. i use bluetooth so i can't use the emu Apr 04 00:05:56 i have an emulator for froyo and i have a g1 with froyo, but i havent booted it up in a very long time Apr 04 00:05:59 -.- Apr 04 00:06:10 Jug6ernaut: Only for api10 Apr 04 00:06:22 bluetooth apis, obviously Apr 04 00:06:27 what os version is that... Apr 04 00:06:28 birbeck: why would you get 2g speeds from a Nexus One in the US?! Apr 04 00:06:34 * ctate gets 3G on his Nexus One.... Apr 04 00:06:51 ctate if u have the wrong version Apr 04 00:06:53 * Jug6ernaut guesses Apr 04 00:06:54 g00s: I bet you're more likely to get issues with specific GB devices, rather than GB in general Apr 04 00:06:57 you'll only get 2G *with AT&T*, but that's because AT&T uses an unusual band for 3G Apr 04 00:06:58 well thats the only reason Apr 04 00:07:04 ctate: lies :( Apr 04 00:07:11 at&t uses the one used by the big three up here Apr 04 00:07:17 but thats why i <3 maguro :) Apr 04 00:07:19 assuming this is an international / T-Mobile-type N1, not the AT&T variant Apr 04 00:07:41 * ctate happily gets 3G on both T-Mobile and in England / France with his N1 Apr 04 00:07:58 ctate u still use the n1? Apr 04 00:08:01 yep Apr 04 00:08:04 nice Apr 04 00:08:05 wow Apr 04 00:08:06 * Jug6ernaut loved his Apr 04 00:08:08 its got no storage Apr 04 00:08:08 although these days almost exclusively for its GPS Apr 04 00:08:10 its slow Apr 04 00:08:12 lol Apr 04 00:08:19 my wife uses a G1 :) Apr 04 00:08:25 :o Apr 04 00:08:56 [it's a better cellphone than any of the later devices, alas] Apr 04 00:09:24 * Jug6ernaut likes his note...but its kinda verging on not being a phone xD Apr 04 00:09:42 the g1...the hing mechanism... Apr 04 00:09:45 yeah seriously dude Apr 04 00:09:58 the Note is like holding a Trapper Keeper up to your head as a phone Apr 04 00:10:07 xD Apr 04 00:10:12 i <3 mine Apr 04 00:10:23 keeps me from carrying around a tablet & phone Apr 04 00:10:33 tho i do want the galaxy note 10.1 when ever it comes out Apr 04 00:10:48 I need a tablet :| Apr 04 00:10:57 SimonVT sell u my xoom Apr 04 00:11:02 But want to wait for tf700 Apr 04 00:11:04 i would replace my laptop and phone with an ultra book if they pan out Apr 04 00:11:07 Give it to me for free Apr 04 00:11:08 !!11 Apr 04 00:11:12 :o Apr 04 00:11:15 I'll tell you where to find the x86 emulator! Apr 04 00:11:21 * Jug6ernaut doesnt have enough money to do such things Apr 04 00:11:34 anyone know how to refresh a listview from an arrayadapter? Apr 04 00:11:38 also, complaining about $280 for an unsubsidised smartphone? Apr 04 00:11:43 notifydatasetchanged Apr 04 00:11:45 (a) they don't make them any more so there's scarcity Apr 04 00:11:52 Jug6ernaut: it doesnt work Apr 04 00:12:00 for refreshing stuff I added to the db Apr 04 00:12:03 (b) that's probably not much about the raw cost of production + shipping to the vendor Apr 04 00:12:14 then ur data set hasnt changed correctly lol Apr 04 00:12:27 smartphones are expensive to make Apr 04 00:12:32 Jug6ernaut: when i close the app and reopen it, the list is updated Apr 04 00:12:40 s/about/above/ Apr 04 00:12:41 hkhalid: thats because your arrayadapter doesnt use the database directly then.. so you would need to create a new arrayadapter and assign it to the listview Apr 04 00:12:42 * Jug6ernaut paid full price for his note hehe Apr 04 00:13:00 hkhalid of course because it re sets teh adapter Apr 04 00:13:13 u "could" do that if your list isnt huge, but its not the right way Apr 04 00:13:27 indeed Apr 04 00:13:32 Nonono, Napalm.. You just swap out the cursor Apr 04 00:13:37 hkhalid: are you updating the db directly instead of through the provider, or something? Apr 04 00:13:48 SimonVT: ? Apr 04 00:13:48 so can I make it where it just read db directly? Apr 04 00:13:53 ctate: I do it directly Apr 04 00:13:54 i don't know that stuff well but it sort of feels like you're doing your updates wrong Apr 04 00:13:56 Oh wait Apr 04 00:14:06 SimonVT tahts if ur using a curseradapter? Apr 04 00:14:06 i do it via smsreciever class for listening to incoming sms Apr 04 00:14:13 Using arrayadapter for database results :( Apr 04 00:14:21 sad panda Apr 04 00:14:25 * Jug6ernaut uses a custom adapter Apr 04 00:14:29 for everything! Apr 04 00:14:34 if you're updating the db behind the adapter's back, how's it supposed to knjow it needs to redraw?! Apr 04 00:14:45 i shall redo this and use cursoradapter correct? Apr 04 00:14:57 ctate lol Apr 04 00:15:01 why cant I tell the adapter to refresh its data Apr 04 00:15:07 * g00s hates arrayadapter Apr 04 00:15:09 lol Apr 04 00:15:18 because the adapter doesnt know what data ur talking about /me assumes Apr 04 00:15:19 * SimonVT +1's g00s times infinity Apr 04 00:15:25 haha Apr 04 00:15:32 * Jug6ernaut says again...custom adapter ftw Apr 04 00:16:05 hkhalid: if the data is coming from a sqlite database you might aswell use a cursoradapter, if its not then a do your own adapter Apr 04 00:16:15 ok cool Apr 04 00:16:16 night all Apr 04 00:16:17 thanks all Apr 04 00:16:25 is the "microbes live wallpaper" is not open source right?... Apr 04 00:18:04 ctate: if the nexus one wasnt an at&t or tmobile phone Apr 04 00:18:28 * SimonVT laughs at carrier-specific devices Apr 04 00:18:36 carriers Apr 04 00:18:38 suck Apr 04 00:18:51 if it wasnt registered to their network and support their 3g frequencies it would operate slower Apr 04 00:18:57 * Jug6ernaut used his upgrade to buy his dad a wp7 device for his dad xD Apr 04 00:19:02 birbeck: it was available in TMO and AT&T versions, adn at least the TMO version was available subsidised with contract just like TMO-store sales. Apr 04 00:19:14 birbeck: thats why i like the galxay nexus. it works on all north american networks Apr 04 00:19:20 or rather, all north american UMTS networks Apr 04 00:19:29 canadiancow: yes, but the galaxy nexus still sucks Apr 04 00:19:31 ctate are u sure? i thought the n1 was never subsidiesed? Apr 04 00:19:33 birbeck: blame idiots who couldn't standardize spectrum nationwide Apr 04 00:19:37 gee thanks birbeck :) Apr 04 00:19:44 Jug6ernaut it was Apr 04 00:19:47 even in canada Apr 04 00:19:50 Jug6ernaut: i could be wrong. i was pretty sure at least TMO participated. Apr 04 00:19:51 ctate: i hope you dont take that personal Apr 04 00:20:08 maybe, att definitly wasnt lol Apr 04 00:20:08 ctate: if it wasnt made by samsung it could be a good phone, just like the nexus s Apr 04 00:20:10 i like my GN although it's too big. Apr 04 00:20:19 i loved my GN Apr 04 00:20:38 I assume the N stands for Nexus and not Note? :p Apr 04 00:20:40 ctate: that didnt stop me from buying either, i always have the latest nexus as well as a personal phone Apr 04 00:20:58 wabz i loved my Galaxy Nexus, i love my galaxy note :P Apr 04 00:21:02 birbeck: ... Nexus S was also Samsung made Apr 04 00:21:03 :D Apr 04 00:21:10 samsung just doesnt know hot to make good devices like htc and moto Apr 04 00:21:13 lol Apr 04 00:21:21 wabz: ugh yeah shaem on Samsung subverting our acronyms :) Apr 04 00:21:27 moto...arg Apr 04 00:21:29 p_l, yeah, the nexus s was a horrible device Apr 04 00:21:32 lol Apr 04 00:21:39 moto's *radios* are awesome Apr 04 00:21:41 nexus s was outdated when it was released :\ Apr 04 00:21:43 I didn't have issues with samsung quality on android devices... HTC... slipped a lot Apr 04 00:21:57 moto is to good at locking down there bootloaders :P Apr 04 00:22:02 htc just.. spammed the market too much Apr 04 00:22:11 Jug6ernaut: besides the large screen and no capacitive buttons, what was new about the nexus? Apr 04 00:22:12 SimonVT only recently Apr 04 00:22:18 SimonVT: err, compared to *Samsung*? Apr 04 00:22:28 haha Apr 04 00:22:29 Jug6ernaut: how does he like his wp7 device? i am really curious about the lumia 900 Apr 04 00:22:33 it's a general issue I guess Apr 04 00:22:40 Jug6ernaut: actually,they aren't - they use the *exact* same functionality available in virtually any relevant ARM chip Apr 04 00:23:06 Jug6ernaut: it's just that certain manufacturers have different approaches. Apr 04 00:23:14 g00s he came from an absolute dumb phone, hes good with computers tho. But he loves it. Apr 04 00:23:28 ctate: is your galaxy nexus on verizon? Apr 04 00:23:32 Samsung only later added JTAG write lock, then an "unauthorized flash count" Apr 04 00:23:33 yes Apr 04 00:23:35 (verizon) Apr 04 00:23:39 p_l well they do something right where others go wrong lol Apr 04 00:23:52 i have a GSM one at home in the box that i'll move my primary sim to eventually Apr 04 00:23:52 Jug6ernaut: well... they are a little *too* open Apr 04 00:23:55 ctate: must suck to be an android core dev and not be able to have the latest version on your device Apr 04 00:24:09 gsm > cdma Apr 04 00:24:09 ah, see Apr 04 00:24:25 Jug6ernaut: I have no idea how they pass certification due to how easy it is, for example, to change IMEI :> Apr 04 00:24:31 when you're an android core dev you can get the builds before verizon releases them through carrier cert Apr 04 00:24:32 * Jug6ernaut wishes there werent so many versions of the galaxy nexus Apr 04 00:24:35 yeah yeah, i know, you would never have to wait for ota Apr 04 00:24:42 pul haha yea Apr 04 00:24:47 it's out of our hands bigtime Apr 04 00:25:10 [has 4.0.4 not shipped for verizon GN's yet?] Apr 04 00:25:19 is there any version of the galaxy nexus that gets its updates straight from google, not the carrier ? i'm totally clueless obviously Apr 04 00:25:23 ctate, it has not Apr 04 00:25:32 ctate, rumor says 4.0.5 will ship for vzw this month... Apr 04 00:25:33 only xoom i think Apr 04 00:25:48 * Jug6ernaut is usually wrong tho Apr 04 00:25:50 g00s: Yep, there is Apr 04 00:26:13 g00s, the yakju or something gets updates directly from google Apr 04 00:26:21 again Apr 04 00:26:25 the international GSM model, maybe Apr 04 00:26:30 i dunno Apr 04 00:26:34 * Jug6ernaut wishes there werent so many versions of the GNex Apr 04 00:26:43 Jug6ernaut: WORD Apr 04 00:26:52 2 is way too many, heh Apr 04 00:26:56 i used to equate nexus == updates from google, now it seems a little bit trickier Apr 04 00:26:57 one cdma, one gsm Apr 04 00:26:59 Jug6ernaut: it's because of carrier requirements Apr 04 00:27:09 ctate yea i figured :\ Apr 04 00:27:11 damn carriers Apr 04 00:27:17 nessary evil i guess Apr 04 00:27:35 also gawd help us if we had to put ALL the languages in one build :) Apr 04 00:27:51 xD Apr 04 00:28:57 Tss, lazy Apr 04 00:29:44 arg Apr 04 00:29:49 * Jug6ernaut should be working Apr 04 00:29:54 * Jug6ernaut is to lazy atm Apr 04 00:29:59 * SimonVT should be sleeping Apr 04 00:30:21 i didn't' think SimonVT ever slept Apr 04 00:30:22 or well, not really Apr 04 00:30:48 g00s: Finishing my bachor in a few months, just have my final project left Apr 04 00:30:51 ctate: couldn't split update be used? Like Samsung's that have separate "base OS" and "language and carrier mods" packages? Apr 04 00:30:52 bachelor Apr 04 00:30:57 So I can irc while I write :P Apr 04 00:31:12 p_l: factory reset FTL Apr 04 00:31:19 i mean yeah, it's vaguely doable Apr 04 00:31:27 but in practice carriers want more intrusive stuff Apr 04 00:31:32 SimonVT me to :D Apr 04 00:31:42 and by "want" i mean "require" Apr 04 00:31:46 tho i have 3 weeks lol Apr 04 00:32:05 aosp ftw Apr 04 00:32:48 SimonVT also have final project :S Apr 04 00:33:23 ctate, the official builds never have en-CA Apr 04 00:33:24 :( Apr 04 00:33:30 lol Apr 04 00:33:37 who lives in CA ? Apr 04 00:33:40 :P Apr 04 00:33:43 you can just append ", eh?" to everything yourself. Apr 04 00:33:53 tell me aboot it Apr 04 00:34:01 but 4srs Apr 04 00:34:02 Jug6ernaut: I find it scary..:p That in a few months I have to start looking for a job :s Apr 04 00:34:06 it's nice to be able to choose en-CA Apr 04 00:34:17 what would be different? Apr 04 00:34:20 SimonVT i know right? Apr 04 00:34:22 * Jug6ernaut is scared Apr 04 00:34:39 Jug6ernaut: you mean in a few months you have to start *working* Apr 04 00:34:43 ctate, colour, neighbour, etc Apr 04 00:35:04 ctate ive been working for the last 3 years, and i dont mean school lol Apr 04 00:35:28 canadiancouw|wourk: you can add all the superfluous "u"s yourself, too. Apr 04 00:35:30 * Jug6ernaut life = no time Apr 04 00:35:52 2 jobs & 20 hours of class :S Apr 04 00:36:28 * SimonVT has no job Apr 04 00:36:42 SimonVT lucky, i had to pay for my college lol Apr 04 00:36:58 Jug6-afk: Free education here, yay Apr 04 00:38:34 ctate: it's still handled by the CSC package instead of the PDA Apr 04 00:39:01 OTA update can contain just one of the parts Apr 04 00:39:29 or so I seem to recall Apr 04 00:44:42 ctate: to answer your prior question, no, 4.0.4 is not available for gnex in the us (verizon), it also is not available for verizon xoom or sprint nexus s 4g (no official ics is available for ns4g) Apr 04 00:45:00 yeah. carrier stuff. Apr 04 00:45:08 [wimax! wheeeeeeeee!] Apr 04 00:45:22 i haz maguro Apr 04 00:45:29 Can anyone suggest a doc to OMX decoder initialization for ADTS bitstream? Tnx! Apr 04 00:45:39 what is OMX? Apr 04 00:45:41 what is ADTS? Apr 04 00:46:00 lmgtfy, canadiancow :0 Apr 04 00:46:59 what is lmgtfy? Apr 04 00:47:33 canadiancow|work: OMX - mulitimedia openmax standard between applicaiton/framework/codecs; ADTS - AAC packetization. Apr 04 00:47:37 SimonVT: http://lmgtfy.com/?q=lmgtfy Apr 04 00:48:03 That just takes me back to the page you linked Apr 04 00:48:16 lol ctate Apr 04 00:48:24 you have script turned off in your browser or something? Apr 04 00:48:52 SimonVT free education? not bad Apr 04 00:49:13 alot better then me paying to learn nothing Apr 04 00:49:17 more directly, https://www.google.com/search?q=lmgtfy Apr 04 00:49:19 ctate: I was joking ;s since lmgtfy is the first link when googling for lngtfy Apr 04 00:49:23 whew Apr 04 00:49:34 april 1 is so two days ago, dude. Apr 04 00:49:44 lol Apr 04 00:49:50 Jug6ernaut: They pay me to educate myself :p It's a good deal Apr 04 00:49:59 lmao Apr 04 00:50:00 nice Apr 04 00:50:14 i pay to educate myself xD Apr 04 00:50:28 I get roughly $1k a month from the state while I'm in school Apr 04 00:50:37 :| Apr 04 00:50:41 nice deal Apr 04 00:50:42 lucky Apr 04 00:50:48 thats more then i make working :\ Apr 04 00:50:56 well no Apr 04 00:50:56 ;d Apr 04 00:50:57 nm Apr 04 00:51:00 lol Apr 04 00:51:04 lawl Apr 04 00:51:11 When making the text of a button, how can you do a line break and force the text to go under the previous text? (like what a
does in html, or a n\ does) Apr 04 00:51:12 yea i only get 10k/year Apr 04 00:51:51 zanga no pay to well? Apr 04 00:53:16 lol Apr 04 00:53:36 canadiancow|work works for the chinese zynga clone, zanga Apr 04 00:54:01 WHO TOLD YOU Apr 04 00:54:03 did i spell it wrong xD Apr 04 00:54:26 woops hehe Apr 04 00:54:45 * Jug6ernaut can not spell Apr 04 01:02:39 can I use webview with html5 to display stuff and sqlite entries instead of doing it progmatically via adapters? Apr 04 01:11:29 My application is complaining that a cursor or database was not closed, but I can't figure out where. Apr 04 01:12:23 It complains when I exit my interface by pressing back Apr 04 01:12:54 it should be obvious Apr 04 01:13:03 look at everywhere you obtain or open a database Apr 04 01:13:17 http://pastebin.com/qzEKekmH Apr 04 01:13:21 and make sure that it's closed for every instance that it's opened Apr 04 01:14:08 To set a sound from within your res>raw folder, do you have to save it to the sd card first? Or can you set sounds that are inside your package as ringtone/notification sounds Apr 04 01:14:39 the database is opened by my activity, which closes in it's onDestroy and in the cursorloader which should close everything automatically and the SqliteOpenHelper which should do the same. Apr 04 01:15:10 you open it in onCreate but it isn't closed by the time the finalizer runs Apr 04 01:16:03 either you lost the reference, or you didn't close it by the time your activity is collected Apr 04 01:16:15 there is a cursor opened and passed to a SimpleCursorAdapter in the onCreate Apr 04 01:16:31 that cursor is not expicitly closed. Apr 04 01:16:46 and the database? Apr 04 01:17:36 no database is opened in the onCreate for the fragment Apr 04 01:17:45 or anywhere else in the fragment Apr 04 01:17:52 well, you opened the database to get the cursor Apr 04 01:17:57 you didn't close the database then Apr 04 01:20:36 ah I didn't close my instance of my OpenHelper Apr 04 01:20:51 fixed now Apr 04 01:20:56 thanks Apr 04 01:21:07 now if I could just get it to show the data I want Apr 04 01:22:53 I screwed up my ContentProvider somehow so that no matter what I request, provided it's formatted right I get the entire table Apr 04 01:27:01 Hi all. Apr 04 01:30:02 Why can't you put folders inside like drawable/raw? Apr 04 01:30:06 And actually use them Apr 04 01:30:30 because that's not how it works Apr 04 01:30:30 T-Dub|DlolPics: Android simply ignores them Apr 04 01:30:34 if you want folders, use assets Apr 04 01:30:41 Is there any way around it? Apr 04 01:30:57 ^^ assets folder. Apr 04 01:31:02 I want to orginize my files. For example, having 5 folders with 10 sounds inside the raw folder is easier then 50 files inside raw Apr 04 01:31:08 What's that Apr 04 01:32:15 it's a seperate folder you can use. it allows for subfolders Apr 04 01:33:21 T-Dub|DlolPics: http://goo.gl/z9dqh Apr 04 01:33:29 Can you call the assets folder just like R.assets.subfolder.maybeanothersub.file Apr 04 01:34:30 no Apr 04 01:35:08 T-Dub|DlolPics: http://goo.gl/z9dqh Apr 04 01:35:50 Does anyone know how to hide keyboard popups? Apr 04 01:36:05 I'm reading thanks. How efficient is it to run off assets rather than the intended folders? I'm making a soundboard app that will have 100+ sounds. Should I just suck it up and have a ton of files inside raw and just name them really good, rather than having to manually make the reference every time in assets? Apr 04 01:36:48 If performance is a concern, I'd stick to the raw folder Apr 04 01:36:57 Ok thanks. Apr 04 01:37:04 Super long awesome names it is Apr 04 01:37:12 Can I do caps in the raw folder? Apr 04 01:37:18 I forget which is bad to do caps in and which isn't Apr 04 01:37:22 I don't think so ... Apr 04 01:37:25 K thanks Apr 04 01:38:28 So, hiding the popups on keyboards? http://goo.gl/VmZVB Apr 04 01:40:06 whitby i wonder how relevant your q is. seems like it depends on what keyboard you have installed Apr 04 01:40:13 if you dont want to do a popup, then don't Apr 04 01:40:34 how should i go about setting the background from the string "#D00000"? Apr 04 01:40:47 I'm writing my own, and I'd like to hide them. Apr 04 01:41:14 How are you showing them? Apr 04 01:41:16 swarley if you mean you fetch that string somewhere, remove the # and to stringtoint (or whatever) with a radix of 16 Apr 04 01:41:43 swarley: Color.parseColor(String) Apr 04 01:41:45 s/to/do Apr 04 01:41:58 ah Apr 04 01:42:13 even better Apr 04 01:44:04 Should this create a usable URI? baseUri = Uri.withAppendedPath(FixProvider.CONTENT_URI, Uri.encode(FixProvider.ROUTE + "/" + routeNo)); Apr 04 01:45:59 In fact, I know it isn't Apr 04 01:46:12 I'm just not sure how to make it work Apr 04 01:46:17 Is it just me or is a bit too young as a platform (dev-wise) Apr 04 01:46:25 Android* Apr 04 01:46:54 just you Apr 04 01:46:57 whitby: I agree Apr 04 01:47:07 lets move to something more established? Apr 04 01:47:10 how about go? Apr 04 01:48:13 xorgate, with or without the #? Apr 04 01:49:05 pfn: there just seems to be few resources, good resources Apr 04 01:49:24 swarley use that parseString Apr 04 01:51:01 By resources, do you mean tutorials you can copy paste? Apr 04 01:53:53 I mean resources about the less popular dev topics, not specifically tuts, just anything Apr 04 01:55:14 Like? Apr 04 01:56:05 In my case keyboards. There's the sample keyboard, but nothing about how they actually work. Apr 04 01:56:36 If someone wants to stray from the norm, there's nil Apr 04 01:58:44 I'm using /sdcard/media/audio/ringtones/ to try and save something to my sd card, on my droid 1 it worked, saved it to my sd card w\ those folders. But on my droidx2 it created media/tdubstudios/ringtones in my internal phone storage, anyone have any suggestions? Apr 04 01:59:27 Different versions? Apr 04 01:59:48 Is the api not explained? The sample? Apr 04 02:00:01 Is there a way to get the sdcard path Apr 04 02:00:11 yo dawg, i heard you like scrolling Apr 04 02:00:12 Rather than putting /sdcard/ within the path string Apr 04 02:01:10 getEXternalBlarghDir Apr 04 02:03:05 SimonVT: I guess I just can't find an answer to my full quest. http://goo.gl/VmZVB the API seems not to have an ans. Apr 04 02:11:12 Maybe it's just not supported with the native class Apr 04 02:11:20 Then you gotta write your own Apr 04 02:19:54 i want to change the root background color outside of the main thread, can i create a runnable in the main thread and call it?... Apr 04 02:21:11 You can create a runnable if you want, just be sure to run it on the main thread Apr 04 02:22:54 kk Apr 04 02:48:29 What is the new method for getContext() Apr 04 02:52:35 any idea what theme to use for an activity that should look like a dialog, have a min width and height, use the holo theme where available and work on 1.6 and up? Apr 04 02:57:33 Can someone help me with debug Apr 04 02:57:41 How to see my logs and stuff Apr 04 02:57:57 I have a method that uses a try and catch, and it's catching an exception, how can I see what that exception is Apr 04 02:58:19 e.printstacktrace() or sth Apr 04 02:58:29 then you look in logcat Apr 04 02:58:46 oh awesome, thanks **** ENDING LOGGING AT Wed Apr 04 02:59:58 2012