**** BEGIN LOGGING AT Fri Mar 30 02:59:58 2012 Mar 30 03:03:30 hi Mar 30 03:05:53 I managed to run clone and run this: https://github.com/bookwormat/segcontrol.git, but I don't understand how it should be used, should I add it as a library to my project ? Mar 30 03:23:36 I got it working Mar 30 03:24:02 but still wondering how make a button pressed Mar 30 03:24:12 (by default) Mar 30 03:32:23 Which package contains tools/support/annotations.jar? Mar 30 03:34:15 i'm new to android dev and just installed dev kit. when running the emulator i get the interface but it doesn't seem to load a system.img Mar 30 03:36:19 the emulator takes a fair while to boot... Mar 30 03:36:30 nightrid3r: it will take a very long time to boot the emulator the first time. Did you get the 'android' text? Mar 30 03:36:43 yes got the android text Mar 30 03:36:47 let it sit Mar 30 03:36:50 for like 10-15 minutes Mar 30 03:36:54 ok Mar 30 03:37:00 wow thats long Mar 30 03:37:02 it will take less time in the future Mar 30 03:37:07 but the emulator is never really fast Mar 30 03:37:17 Ive seen both GL_UNSIGNED_BYTE and GL_UNSIGNED_SHORT used for the index count in glDrawElements(). Is GL_FIXED used when my indexBuffer is 4-byte ints? Mar 30 03:48:07 so i pose this question, about this article http://www.guardian.co.uk/technology/2012/mar/29/google-earns-more-iphone-android … if Google gets more revenue from iPhone than Android, it should be pretty clear for me, that would extend to developers also, right ? Mar 30 03:57:42 g00s, i dont buy that Mar 30 03:58:10 it says they make $10 per device per year Mar 30 03:58:20 even assuming ALL thier money was made in 2011 Mar 30 03:58:28 that would mean there are only 55million android devices Mar 30 03:58:31 and that's simply not true Mar 30 03:58:43 so at least one number in that article is completely inaccurate Mar 30 03:59:37 canadiancow: even if the $10 figure is wrong "Android generated less than $550m in revenues for Google between 2008 and the end of 2011, if figures provided by the search giant as part of a settlement offer with Oracle" Mar 30 03:59:50 ... Mar 30 03:59:55 "figures provided by google ;) Mar 30 03:59:57 "if you win this case, all the moeny we owe you is $550mil" Mar 30 04:01:37 i'm trying to figure out what video formats and encodings i can use Mar 30 04:01:48 the videoview documentation sucks Mar 30 04:06:48 goddard: http://developer.android.com/guide/basics/what-is-android.html Mar 30 04:07:07 (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) Mar 30 04:07:26 so i would guess the video ones of ^^^ :) Mar 30 04:08:49 yeah, looking at the docs for that class - they suck Mar 30 04:09:14 not like they didn't have time to fill them out; api 1 Mar 30 04:09:47 readme: support v4 ? Mar 30 04:10:18 maxagaz: it was in android sdk tools r17 Mar 30 04:10:23 but thanks for your answer Mar 30 04:11:03 How to change buttons style in https://github.com/bookwormat/segcontrol.git ? Mar 30 04:13:42 https://github.com/bookwormat/segcontrol/blob/master/res/values/segcontrol_styles.xml Mar 30 04:14:21 rename it to styles.xml Mar 30 04:14:36 i think it may be that way to preserve it without including it for regular development purposes Mar 30 04:15:34 goddard: didn't I link you to the list of supported formats/encodings yesterday? Mar 30 04:18:31 there are apparently many different mpeg4 versions and it also says h.263 but it doesn't work Mar 30 04:19:28 readme: oh thanks, I copy-pasted the button style I needed to my style.xml, it works, but do you know how to have a button set as "unselected" ? Mar 30 04:20:42 H.264 also doesn't seem to work on certain version of android Mar 30 04:21:14 also does AAC audio work? Mar 30 04:21:44 can't believe ogv or ogg doesn't work Mar 30 04:22:50 readme: this parameter: android:checked="true" does make a button checked by default Mar 30 04:23:00 I mean "pressed" Mar 30 04:30:15 diff media codecs for diff versions of android Mar 30 04:30:23 afaik its all just got better Mar 30 04:31:26 maxagaz: unselected I believe is the default state for a button. Mar 30 04:31:51 haha Mar 30 04:31:54 :P Mar 30 04:32:09 what you'd expect and what it is are very different things Mar 30 04:32:09 readme: yes it is, can I change it in my xml or programmatically ? Mar 30 04:32:21 in android "selected/unselected" usually refers to non touchmode Mar 30 04:32:30 you mean deliberately move the focus off a button? Mar 30 04:32:38 programmatically, during the flow of execution? Mar 30 04:32:41 what is the use case Mar 30 04:32:45 readme: yes Mar 30 04:33:46 readme: I have 3 charts, 3 buttons, I'd like the default chart's button to be pressed Mar 30 04:34:01 hello, question about byte order when you run Android on ARM is the byte order set by Android to something? Mar 30 04:34:04 you are trying to build a tab bar selector? Mar 30 04:34:07 maxagaz: ah, i've done this before Mar 30 04:34:10 let me check my code Mar 30 04:34:10 big endian or little endian, and can it change? Mar 30 04:34:12 readme: pressing a button switches to its chart Mar 30 04:34:32 in java in my network transport handling was big endian Mar 30 04:34:37 I dont know if that changes Mar 30 04:36:00 i'm trying to figure this out, cause i have developed a component (native component) on x86 port of android and the on arm device that i tried it on was actually configured to run in LE Mar 30 04:36:10 maxagaz: first call setFocusableInTouchMode(true), then follow it up with requestFocus() Mar 30 04:36:13 whaa? Mar 30 04:36:19 i'm wondering if the customer if its possible for some other board to run in BE mode Mar 30 04:36:33 well I would say it sounds like it is absolutely possible Mar 30 04:38:22 maxagaz: to complete your solution, you'll need a StateListDrawable like this one I used Mar 30 04:38:24 readme: it still doesn't get inital focus Mar 30 04:38:25 http://pastie.org/3695969 Mar 30 04:38:27 it *does* Mar 30 04:38:30 I have working code that does this Mar 30 04:39:10 What's a decent guide to refactoring? Not the mechanics of it, more like guiding principles. Mar 30 04:40:05 freecandy: http://www.youtube.com/watch?v=Qi_AAqi0RZM watch the whole video, he mentions a famous book on refactoring. Mar 30 04:40:12 freecandy: dont do it, or if do you take babay steps and do a lot of unit tests (; Mar 30 04:40:45 maxagaz: taking from my definitely working code Mar 30 04:40:49 http://pastie.org/3695981 Mar 30 04:41:15 personally i dont refactor after certain point in the life span of the project, its just not worth it. unless there are really architectural problems that need to be fixed in order to accomodate a new feature Mar 30 04:41:33 but little cosmetic refactoring... meh, whats the point ti will just break it Mar 30 04:41:46 Thanks. Mar 30 04:41:47 the compiler doesnt know/care if the code is pretty or not! Mar 30 04:41:59 as long as it is correct Mar 30 04:42:11 Well, this is not yet released, so nobody will care if I mess it up. Mar 30 04:42:47 i find that a good design from ground up can mitigate a lot of the issues with refactoring Mar 30 04:43:23 cosmetic refactoring as fine, but it should be done in its own changeset with its own commit message Mar 30 04:43:30 it shouldn't just be done as you go Mar 30 04:45:26 i like to design a lot of small building blocks that are really independent and then unit test the shit ouf of them Mar 30 04:45:49 and then i build a one big glue component that is typically the complicated piece Mar 30 04:46:09 but i find that this disgn gives a lot bette rresults than the typical spiwerweb Mar 30 04:46:51 ensi: thats the way unix and linux was build Mar 30 04:48:00 its also very easy to make even quite large changes in the system Mar 30 04:48:21 cause the changes are then typically isolated to the glue component and maybe max 2 of the smaller components, all the other ones are shielded Mar 30 04:51:48 readme: whre should I add your piece of code ? Mar 30 04:52:46 maxagaz: the way I did it was I made a bas activity class Mar 30 04:52:56 maxagaz: in that class, I kept a static member "int mTabSelected" Mar 30 04:53:01 which stored which tab was selected Mar 30 04:53:17 then, each time I started an activity that inherited from it, the proper tab was selected with focusTab Mar 30 04:57:10 hi all Mar 30 05:09:57 hello all Mar 30 05:10:04 good morning to all Mar 30 05:10:07 hi Mar 30 05:10:35 anyone have idea about SIP ? Mar 30 05:24:21 oi oi oi Mar 30 05:24:25 QubeZ - get your shit together? Mar 30 05:25:54 ron_frown: ya, was frustrating but finally got it Mar 30 05:26:08 good good Mar 30 06:04:01 now, how do i push a patch? Mar 30 06:04:57 to? Mar 30 06:05:45 to the ... *puts on sunglasses* ... android repository Mar 30 06:06:09 you have to submit through their review stuff Mar 30 06:06:17 I havent checked lately but it was MIA for a while Mar 30 06:07:13 yeah, it's back Mar 30 06:07:24 nvm, i'm reading the instructions. Mar 30 06:07:37 Afzal: ooh patch for what? Mar 30 06:07:41 what bug did you find? Mar 30 06:07:56 minor patch Mar 30 06:07:59 too minor :p Mar 30 06:08:06 Afzal: do explain Mar 30 06:08:19 will do, just a sec Mar 30 06:15:50 if you sign off a commit with your email address, how do you prevent spam :/ Mar 30 06:16:50 what is the patch anyway Mar 30 06:17:32 lol, go to ICS > Settings > data Usage Mar 30 06:17:57 click one of the limits. the number picker's width is fixed so it can't display more than 5 digits properly XD Mar 30 06:19:35 ohwtf Mar 30 06:19:38 i'm not a contributor Mar 30 06:35:05 can anyone tell me how to change my repo email address? Mar 30 06:37:48 \o/ 4.0.4 flashed Mar 30 06:38:31 SimonVT, :D Mar 30 06:38:59 do you notice any animation changes? Mar 30 06:39:09 yeah Mar 30 06:39:17 I noticed the calendar widget changed :p Mar 30 06:39:30 SimonVT, what kind of yakju did you have? I got a yakjuxw Mar 30 06:39:40 and I read, there's fixes to the radio for better reception Mar 30 06:39:44 Same, but flashed yakju as soon as I got it Mar 30 06:39:48 don't wish to fuck that up Mar 30 06:40:16 hrm, SimonVT, where you from? (I wonder where yakjuxw is being sold) Mar 30 06:40:50 You can't really fuck it up unless you pull the battery when it's flashing Mar 30 06:40:59 I'm from Denmark Mar 30 06:41:06 ah, mine is from finnland Mar 30 06:41:11 finland* Mar 30 06:41:17 I believe xw is for scandinavia/nordic countries Mar 30 06:41:25 yeah i think so too Mar 30 06:41:54 SimonVT even then the bootloader usually has your back Mar 30 06:42:11 Well, yeah Mar 30 06:42:20 You have to pull the plug while flashing the bootloader to fuck it up Mar 30 06:42:25 can you ever go back to the xw yakju builds though ? Mar 30 06:42:28 SimonVT, heh, I don't use the stock Calendar widget. Do you notice an animation missing? Mar 30 06:42:29 And flashing the bootloader takes.. ½ a second Mar 30 06:42:41 I have no idea, Insayne Mar 30 06:42:41 I know some of my dev boards have 2 stage bootloader Mar 30 06:42:45 Never going back :p Mar 30 06:42:47 stage1 never gets overwritten Mar 30 06:42:55 ron_frown, know how to change the email address associated with repo? Mar 30 06:43:07 thats just git profile bs Mar 30 06:43:10 is there a changelog for 4.0.4 ? Mar 30 06:43:19 git configure global blah blah Mar 30 06:43:24 Insayne, /r/GalaxyNexus Mar 30 06:43:26 k Mar 30 06:43:35 I run custom roms... Mar 30 06:43:36 ron_frown, k, will look into that Mar 30 06:43:42 what was the update btw Mar 30 06:43:56 Afzal? Mar 30 06:43:58 There's just the git commit log, Insayne Mar 30 06:44:15 just a width fix, Data Usage numberpickers have fixed width so they can't accomodate more than 5 digits Mar 30 06:44:31 I'm just excited because it's my first patch :p Mar 30 06:44:37 nice Mar 30 06:44:47 Afzal: I don't really pay a lot of attention to what animations there are.. As long as it looks pretty :p Mar 30 06:45:08 I've got a hybrid of ethernet configuration patches etc I'd like to submit, but google has never accepted other peoples patches for similar submits Mar 30 06:45:13 SimonVT, when you move your finger away from a button or item, the background used to fade away. Now it doesn't Mar 30 06:45:32 ron_frown, did they give a reason? Mar 30 06:45:41 no... just never makes its way in Mar 30 06:45:54 I think until recently there wasnt much more than phones with ethernet hardware Mar 30 06:46:17 ron_frown, according to this http://source.android.com/source/life-of-a-patch.html Mar 30 06:46:19 they added ethernet DEVICE support, and now the dhcp dns addresses actually function correctly with vanilla ICS Mar 30 06:46:23 you should get some notification Mar 30 06:46:33 Hah, I think you're right, Afzal Mar 30 06:47:09 SimonVT, of course I'm right. All I did yesterday was look for changes :p Mar 30 06:47:11 wonder if romain had anything to do with UI Guideline docs Mar 30 06:47:17 ~_~ Mar 30 06:47:29 brightness transition is smoother, i don't know how i feel about that Mar 30 06:47:47 I think they improved the software buttons as well Mar 30 06:47:52 Seems more responsive Mar 30 06:47:58 I also have patches for screen orientation bugs, patches for enabling/disabling screen lock, and screen timeouts Mar 30 06:48:12 The tastk switcher particularily Mar 30 06:48:24 Yup, they do feel more sensitive Mar 30 06:50:04 SimonVT, bah Mar 30 06:50:11 you tempt me to do it Mar 30 06:50:17 is there an easy way to backup stuff ? Mar 30 06:50:26 i always got issues with MTP/Windows not backing up properly Mar 30 06:50:30 easy is a relative term :p Mar 30 06:50:44 well, alternate to using the MTP connection Mar 30 06:50:48 They added that adb backup, but I haven't used it.. No idea how useful it is Mar 30 06:51:05 easy is what you say things will be before you actually go to do it :) Mar 30 06:51:13 haha Mar 30 06:51:30 going to camera from lockscreen is also faster Mar 30 06:52:06 hi ron_frown Mar 30 06:52:16 adb backup -f will backup all your app's data Mar 30 06:52:18 hello Mar 30 06:52:21 so you can factory reset and restore Mar 30 06:52:28 I don't think it takes /sdcard stuff though Mar 30 06:52:29 pfn, it works fine though ? Mar 30 06:56:12 :D yes! Mar 30 06:56:14 done Mar 30 06:57:13 https://android-review.googlesource.com/#/c/34750/ Mar 30 06:57:30 gz Mar 30 07:02:21 Hi there! Mar 30 07:02:35 Hi Mar 30 07:17:41 Wonder why they didn't include the new play store apk Mar 30 07:18:25 probably an oversight Mar 30 07:18:33 was it official ota? Mar 30 07:19:14 ota packages can be full blown os installs, or can be just upgrades to certain aspects of the OS Mar 30 07:19:26 I downloaded the full factory image google uploaded Mar 30 07:19:37 SimonVT, and you got no issues with reception ? Mar 30 07:20:10 no :o Mar 30 07:20:44 plus it seems like store apks are FREQUENTLY out of sync with os releases Mar 30 07:21:26 SimonVT, did you use any guide on how to do it ? Mar 30 07:22:05 Nope :p Mar 30 07:22:26 all i need to do is unlock the bootlader, then flash it, no ? Mar 30 07:23:28 fastbooem oem unlock, fastboot flash bootloader , fastboot flash radio , fastboot -w update Mar 30 07:23:57 Speaking of bootloader Mar 30 07:24:02 Or well, fastboot oem unlock, double-click flash-all.sh Mar 30 07:24:02 I can't get the usb drivers to work on my netbook Mar 30 07:24:06 :/ Mar 30 07:24:18 For the GSM Nexus Mar 30 07:26:04 RazielZ: I used these for win7 x64: http://dl.dropbox.com/u/100261/drivers.zip .. just browse the device manager to the folder Mar 30 07:26:53 thats one area I really appreciate working on a mac Mar 30 07:27:03 never installed any drivers to connect to any of my android hardware Mar 30 07:27:22 Heh yeah, annoying as fuck Mar 30 07:27:58 Always have to browse the entire internet for this stuff Mar 30 07:28:05 Samsung is no help, their website is useless Mar 30 07:28:12 i got the driver from their site Mar 30 07:28:15 worked flawless Mar 30 07:28:27 Couldn't find it there Mar 30 07:28:49 I thought ICS emulator was supposed to be significantly faster now Mar 30 07:29:13 SimonVT any for x32? Mar 30 07:29:21 Don't have 64 on the netbook :< Mar 30 07:29:28 It wouldn't be too efficient Mar 30 07:29:30 <.< Mar 30 07:29:53 RazielZ: I actually think that package includes both Mar 30 07:29:57 Oh ok. Mar 30 07:29:58 :D Mar 30 07:30:13 At least there's 64 and 86 in it Mar 30 07:30:30 * RazielZ tries Mar 30 07:31:26 ron_frown: Have you tried enabling gpu emulation on your avd? Added in r17, doesn't work for me Mar 30 07:32:16 where? Mar 30 07:32:57 http://developer.android.com/guide/developing/devices/emulator.html#accel-graphics Mar 30 07:33:24 Hi. I'm feeling stupid, so please help me: I want the following vertical layout: button at the top, an image at the bottom. I tried the naive approach and used an LinearLayout, then a Button and an ImageView, where I specified layout_gravity="bottom" for the ImageView. But the image is not displayed at the very bottom, but is centered vertically in the remaining space. Do I need some kind of spacer item in between the two? Mar 30 07:34:23 SimonVT oh hey, it's working Mar 30 07:34:28 Thanks Mar 30 07:34:43 oh Mar 30 07:34:53 virtual machine optimization Mar 30 07:34:56 thats what I want Mar 30 07:34:56 And fastboot sees it Mar 30 07:34:57 ggwp Mar 30 07:36:15 SimonVT, since i am on a yakjuxw, can i just flahs the 4.0.4 ? Mar 30 07:37:00 yes Mar 30 07:37:21 installing haxm Mar 30 07:37:28 thanks Mar 30 07:38:00 ron_frown: haxm is just for the api10 x86 emulator, I was talking about the gpu acceleration I linked Mar 30 07:39:12 its not just api10 Mar 30 07:39:58 It is Mar 30 07:40:07 The x86 images are seperate Mar 30 07:40:12 So far, only one for api10 Mar 30 07:40:28 I see what your saying Mar 30 07:41:17 testing with gpu Mar 30 07:41:43 didnt error but everything seems same performance as last launch Mar 30 07:42:40 surprised google istn doing more about the emulator Mar 30 07:42:50 sorry to say but ipad emu is lightning fast Mar 30 07:42:57 simulator Mar 30 07:42:59 whatever Mar 30 07:42:59 because it's not an emulator, it's.. yeah Mar 30 07:43:02 I get the differences Mar 30 07:43:18 but jst saying the emulator really isnt viable for development Mar 30 07:43:19 its ok, intel is doing it Mar 30 07:43:25 thanks intel Mar 30 07:44:00 next time I will buy intel instead of amd, since they were nice enough to do this. Mar 30 07:44:08 yep Mar 30 07:44:10 hrmm Mar 30 07:44:15 gpu did help actually Mar 30 07:44:32 bah :| Mar 30 07:44:37 shit I gotta go relearn the new abs shit Mar 30 07:45:55 There's nothing to relearn.. If you can use the native actionbar, you can use abs Mar 30 07:46:35 I've used it Mar 30 07:46:42 but totally forgot about the implementation Mar 30 07:46:46 it just works =) Mar 30 07:52:26 actionbar, smactionbar ... Mar 30 07:53:54 Come join us in 2012 some time, g00s :p Mar 30 07:55:30 i'm still using froyo :) Mar 30 07:56:06 hm a new version of jarjar Mar 30 07:56:13 froyo baggins Mar 30 07:56:24 :) Mar 30 07:56:25 stupid fat hobbit Mar 30 07:56:27 :P Mar 30 07:56:32 :( Mar 30 07:56:35 not you! Mar 30 07:56:40 *hugs* Mar 30 07:56:40 :) Mar 30 07:56:46 you're my prrrrecious Mar 30 07:56:57 can't wait to see that movie Mar 30 07:57:07 haven't seen lord of the rings? Mar 30 07:57:13 oh, the Hobbit Mar 30 07:57:15 ah Mar 30 07:57:22 can't be arsed to see it :P Mar 30 07:57:45 Is it even out yet? Mar 30 07:57:51 fuck it Mar 30 07:58:07 brain not functional enough to troubleshoot these ABS probs =) Mar 30 07:58:53 there is some new navigation thingy in the latest compat lib, i haven't looked at it yet Mar 30 07:59:15 So I wanna start developing STUFF for android. Good/bad/gtfo? Mar 30 07:59:26 diffmerge rocks Mar 30 08:01:05 RazielZ: go do it? Mar 30 08:01:16 its a pretty low barrier to entry... Mar 30 08:01:29 peace Mar 30 08:01:34 war ! Mar 30 08:01:48 how was that again pfn? to backup my settings ? Mar 30 08:01:58 readme, yay! Mar 30 08:24:58 SimonVT, how did you get root on 4.0.4 ? Mar 30 08:26:51 What's the tool that checks an APK for the versions it supports? Mar 30 08:26:59 devices / screens / apis, etc Mar 30 08:29:53 pretty sure its a cli tool that comes in the sdk but can't remember the name Mar 30 08:36:41 anyone? xd Mar 30 08:38:49 looks like aapt Mar 30 08:49:42 hello all: is it possible to filter the contents of a widget.gallery? Mar 30 08:49:59 Hi all, noob question: I've made a test app in Eclipse/Android, which works just fine in AVD (virtual device), but how can I test it on my real Galaxy S2 Android device, I mean I plug it in through USB to the computer then what's next? Mar 30 09:02:26 what do i need to implement in my class to get dispatchkeyevent()? Mar 30 09:06:24 hi Mar 30 09:07:19 or onKeyDown Mar 30 09:09:04 oh it's from activity Mar 30 09:09:05 ok Mar 30 09:23:35 hello Mar 30 09:28:09 hi Mar 30 09:29:20 Probably my first time complaining about a lack of ads, but why don't I get any internationalization services advertising to me when I search for internationalization or i18n? Mar 30 09:29:33 how i may change text size in ProgressDialog Message without using HTML code ? Mar 30 09:30:21 I want to hand them a bunch of strings and contexts, check off the relevant languages, and they have their network of native speakers translate them and send me a zip of xml files. I'd pay for that if I could find that. Mar 30 09:47:25 Hi, i'm writing a program which interacts whith usb device. I'm stuck at the part, which is sending data - doing as in missile launcher example, but how can i get the actual result of sending command? Mar 30 09:55:59 is it possible to use like an abstract fragment in android? I'm trying to pop up a dialog box and capture the result in a fragment without it being too unweildy Mar 30 09:59:55 SimonVT, if a new OTA comes, will we get it (now that the phone is yakju) ? Mar 30 10:06:36 hi, is there a guide on how to place an image on top of camera, much like the ebay app -- when you scan the barcode? Mar 30 10:09:32 Insayne: Yes, as long as you flashed everything from the factory image Mar 30 10:12:44 I accidentally removed "Android dependencies" from my java build path. How can I get it back? :/ Mar 30 10:15:18 I'm trying to change the backgroundcolor of a row depending on its state. therefore i created a color state list and added it to the specific row. but the color doesn't behave like its defined. here's my code: http://pastebin.com/RjmKsVe8 . anyone has a suggestion? Mar 30 10:16:54 hello Mar 30 10:17:38 hello Mar 30 10:20:43 hello Mar 30 10:22:42 hello Mar 30 10:22:52 hello, yes! Mar 30 10:23:56 romainguy how do I add the "Android dependencies" again to the project if I accidentally removed it? :( Mar 30 10:23:58 chriss_cross,do you know about sip because since last week i have search about my query but not solved so i need help Mar 30 10:24:42 don't even know what you mean with sip Mar 30 10:24:58 hello Mar 30 10:25:15 i am starting into android dev application, i am looking for few advice Mar 30 10:25:17 ok then u can not give my any answer about sip right? Mar 30 10:25:52 what is sip? Mar 30 10:25:57 i want to develop an application that could manage the cam, the microphone and the sms/gprs Mar 30 10:26:10 could i use the java interface for hardware management? Mar 30 10:26:32 or should i dig into the libc interface? Mar 30 10:26:39 i mean C developpement Mar 30 10:27:08 lapdis,you can add through command prompt .. Mar 30 10:27:41 no, can't help you :D Mar 30 10:28:46 anybody there who know about sip calling? Mar 30 10:33:19 hi guys, I have this weird problem, I'm using a HorizontalScrollView for a Facebook-style menu, that slides out from the left. Now whenever a dialog or something popups, my scrollview automatically scrolls to position 0, showing the menu, without me doing anything. Anyopne know how I can prevent that / why its doing that? Mar 30 10:45:40 Anyone want a 50 bounty on StackOverflow? I have a question on testing which needs answering: http://stackoverflow.com/questions/9824065/how-do-i-run-an-androiddriver-test-with-junit# Mar 30 10:48:42 Hi, anyone wanna join my start-up android game project, wich is semi-finished? I just wanna find a partner, cause working alone is sad sometimes, you know ... -) Mar 30 10:50:30 May be you suggest me where i should look for? Mar 30 10:50:50 well I suggest making a better sales talk ;) Mar 30 10:51:08 i wonder about google talk. if video chat isn't available then it also doesn't support voicechat Mar 30 10:51:36 flexman, have you tried google + hangouts Mar 30 10:52:03 Better sales, what do u mean by that? Mar 30 10:52:22 hello guys can we play recorded file on call back in sip calling? Mar 30 10:52:34 Squarepy: whats that? i don't think google talk has to do with google+ Mar 30 10:53:03 flexman, I know, but I think these are video/voice capable Mar 30 10:54:50 google+hangouts?? is this an app for android? Mar 30 10:55:51 Its g+ service, smthng like skype Mar 30 10:56:35 can't find it in the market Mar 30 10:56:45 Try it and you'll get it, was saying my grand fother... Mar 30 10:56:54 how to start timer with our own value like10:00 instead of 00:00 stared Mar 30 10:56:54 however this just will work with g+ contacts, will it? google talk is based on jabber which is nice Mar 30 10:57:38 Cdk Mar 30 10:57:41 *dk Mar 30 11:00:08 is it possible to get nethwork position info and provide it as gps info? Mar 30 11:00:28 Jagtuti, System.CurrentTimeMillis()? Mar 30 11:01:36 Flexman, let's join ma project, bro, ee will answear all your questions together! Mar 30 11:01:40 -) Mar 30 11:02:08 Defuera, but it is give me current time but i want to start the timer with specific value like timeer.settext() or any method... Mar 30 11:02:13 Defuera: is it opensoure? Mar 30 11:02:28 Nope Mar 30 11:03:08 Im thinking in cut some money, someday..) Mar 30 11:03:09 all my questions? just have three of them :) Mar 30 11:04:15 Flexman, quatnyity of questions is growing with your professionalism Mar 30 11:04:36 Nxbtch, why? Mar 30 11:04:41 Defuera,money is really important Mar 30 11:05:01 Defuera,just ask,nothing Mar 30 11:05:15 Not interested? Mar 30 11:05:49 i'm just a noob, i need practice Mar 30 11:06:04 Me too, man! Mar 30 11:06:16 -) Mar 30 11:06:34 I'm working on it like a hakf a year Mar 30 11:06:48 just 1 month Mar 30 11:07:12 And its really simple game, but it isn't finished yet Mar 30 11:07:33 But i got huge progress,i think Mar 30 11:07:37 what kind of game? Mar 30 11:07:42 Defuera: i was professional enough to screw my system with link2sd so that CWM backup did not help at all Mar 30 11:08:12 i mean.. my phone works. but what kind of backup is it if nothing works after a restore... Mar 30 11:09:01 Defuera, got a website? Mar 30 11:09:01 Flexman, i bricked my phone that way one time... Mar 30 11:09:48 Nxbtch, nope, do u know any java? Mar 30 11:10:36 yeah , i've done some tiny app Mar 30 11:11:19 Do u know patterns, threads? Mar 30 11:11:48 yes Mar 30 11:12:13 Flexman, use rom manager next time, it helps me a lot with my passion to try nightly bilds.. ^^ Mar 30 11:13:20 Nxbtch, would u like to chat in skype so i tell u about my project trying to interest u) Mar 30 11:13:58 sure Mar 30 11:15:35 Skype : Gipsy_Mickey Mar 30 11:15:51 Defuera: i did not even try nightly builds i just wanted to have video support in google talk. but i'll try rom manager next time. problem was that link2sd refused to work after restoring the backup, and since i had my market on sdext2 too... :( Mar 30 11:17:19 Im sorry man, hope it won't hit u again Mar 30 11:19:03 yep... i really miss the good old Palm OS and there is still no Palm OS Emulator for Android :( Mar 30 11:25:55 Uff, sorry, its hard to chat via mobile phone... Mar 30 11:26:13 Defuera: not if you have an keyboard Mar 30 11:26:58 True, but if its not a virtual keyboard Mar 30 11:27:23 Defuera:online? Mar 30 11:30:38 Defuera: with the HTC Chacha chatting via phone is easy. it's the best keyboard i ever had Mar 30 11:31:00 Im on n1 Mar 30 11:35:16 Defuera: however, i suggest you an app that mixes all your contact info Mar 30 11:35:23 For my buttons, I use setFocusableInTouchMode and requestFocus, but then I have to click tice on the button, one time so it gets the focus and one more time so it will execute what's in the onClick, how to fix this strange behaviour ? Mar 30 11:35:31 Defuera: i mean to create this app Mar 30 11:35:46 twice Mar 30 11:39:17 hey there! Mar 30 11:39:41 What's the right way to remove the top activity when the user clicks something in a dialog? Mar 30 11:39:54 (the dialog doesn't know the activity) Mar 30 11:40:34 basically, the dialog button should behave like a back button. Mar 30 11:41:37 Pass the activity then Mar 30 11:41:57 So I pass the activity to the dialog and the dialog calls finish on it? Mar 30 11:42:10 That's one way Mar 30 11:42:18 Or, use DialogFragment and have the Activity passed for you Mar 30 11:42:24 What's the best way? Mar 30 11:42:57 DialogFragment is the way, but what you're trying to do seems strange Mar 30 11:45:21 Well, it's like this: You select an item in a catalog, which launches an activity that displays the product details. When you purchase it you get a dialog where you can choose between "use product right now" or "continue browsing". Continue browsing should close the details activity and go back to the catalog. Mar 30 11:48:25 I guess you could boil it down to "clicking a certain button in the alert dialog closes the activity". Mar 30 11:50:08 Well, then just pass the activity so you can finish it.. Or somehow make a callback so it cna finish itself Mar 30 11:50:09 how to change position of the spiner in ProgressDialog ?? Mar 30 11:50:42 Should probably go with the callback.. DialogFragment makes this easy Mar 30 11:50:58 Then you can handle both buttons from the Activity Mar 30 12:00:04 If I'm to draw a few rects in my canvas, should I be keeping a reference to them (in some way) so that I can do .intersect()? Mar 30 12:01:05 I want to be able to do the collision detection, and I guess it's better to use .intersect than some homebrew Mar 30 12:01:36 * n20 waves at SimonVT. Mar 30 12:01:36 :D Mar 30 12:04:22 I have no idea :p Mar 30 12:35:20 hello. In my class that extends AppWidgetProvider in the on update I check for new data from a remote server but when there is not internet connection it shows a warning. I thought I would check to see if there is an internet connection before checking. The way im doing it in my app uses getContext().getSystemServices but those are both undefined... what should I be doing? Mar 30 12:37:07 roger_padactor: what are the argument types for onUpdate? Mar 30 12:37:40 I’m to interest how to check internet connection Mar 30 12:38:09 :) thanks Mar 30 12:38:12 kselos: using the ConnectivityManager Mar 30 12:38:46 2 Q's 1. If a service started with START_STICKY or START_REDELIVERY_INTENT is killed, and then gets killed again, and again, will an infinite loop of service restarting form? 2. If a service started with START_STICKY or START_REDELIVERY_INTENT is killed and then stopService() is called on said service between the time it is killed and restarted, will the service still be restarted? Mar 30 12:41:34 did anyone ever experience HH:mm:ss in DateFormatter not working? Mar 30 12:42:30 oh found the stackoverflow post Mar 30 12:42:38 readme: why do you think thats a loop Mar 30 12:42:57 mikedg: the loop is created by the service getting launched and killed Mar 30 12:43:22 imagine a phone low on mem, where the service just gets killed repeatedly Mar 30 12:43:31 but it is restarted Mar 30 12:43:34 hello Mar 30 12:43:46 a sticky service being killed should be abnormal condition Mar 30 12:43:57 yeah, i'm thinking about abnormal conditions Mar 30 12:44:19 I've used services a lot.. I am just thinking more critically about it this time. Mar 30 12:44:22 but it would be very strange to have it happen over and over again Mar 30 12:44:28 but, in theory it could Mar 30 12:44:39 no, it shouldnt be able to happen imho Mar 30 12:44:40 I am connected to wifi and wifi is not connected to internet, I am making a http call which has timeout set, but the problem is it doesn't time out Mar 30 12:44:41 do you think that is a case to opitimize for? Mar 30 12:44:42 does that sound theoretically plausible, at least Mar 30 12:44:45 if you are killed, its for a reason Mar 30 12:45:18 like low mem, etc - your service won't be spawned again until the situation clears up Mar 30 12:45:38 there is no guarantee of that in the documentation Mar 30 12:46:02 I could set up an alarm to go off every 2 minutes and suck up all the available ram if I wanted to Mar 30 12:46:13 readme: sure, but you could spending a lot of time working around a problem that won't actually affect any users Mar 30 12:46:18 I am connected to wifi and wifi is not connected to internet, I am making a http call which has timeout set, but the problem is it doesn't time out Mar 30 12:46:53 readme, then ppl would just uninstall your app ^^ Mar 30 12:47:03 faeezkadiri: it is impossible to help you because you don't specify anything about the code, what you are using, etc... you will have to read the docs how to set a timeout properly Mar 30 12:47:13 wongk: I am writing an application that requires realtime access to data that will be provided by several services, if the service fails, my users have to know. Mar 30 12:47:33 faeezkadiri: your error description is as good as this answer: I have set a timeout and it works for me, so use the way I do it Mar 30 12:47:38 what kind of application design is that readme ? Mar 30 12:48:03 (not saying "IT SUCKS" , but i really wonder why you designed it that way) Mar 30 12:48:16 Mikellip: first time when i do so it fails, Mar 30 12:48:26 Insayne: /ignore'd Mar 30 12:48:32 readme: the service failing and the loop scenario you've described seem independent of one another Mar 30 12:48:55 Mikellip: but when i am using my app and during in between i remove the connection it works perfectly fime for me Mar 30 12:49:23 Mikellip: but i cant figure it out y it doesn't work for the first time Mar 30 12:49:25 @wongk : thx for advice Mar 30 12:49:31 anyway, there's not point in me discouraging you further, i don't have the answer you're looking for :P Mar 30 12:49:41 I use myButton.setSelected(true) to show it pressed, but when setting false, my app crahses, how to make it unselected ? Mar 30 12:49:46 wongk: well, thanks for lending me some of your consideration Mar 30 12:49:53 I know it's not an easy one Mar 30 12:50:03 woop woop woop Mar 30 12:50:44 Mikellip: here is the code snippet Mar 30 12:50:44 HttpParams httpParameters = new BasicHttpParams(); Mar 30 12:50:44 int timeoutConnection = 3000; Mar 30 12:50:44 HttpConnectionParams.setConnectionTimeout( httpParameters, timeoutConnection ); Mar 30 12:50:44 // Set the default socket timeout (SO_TIMEOUT) Mar 30 12:50:45 // in milliseconds which is the timeout for waiting for data. Mar 30 12:50:45 int timeoutSocket = 3000; Mar 30 12:50:46 (it returns a null pointer exception) Mar 30 12:50:46 HttpConnectionParams.setSoTimeout( httpParameters, timeoutSocket ); Mar 30 12:50:46 client = new DefaultHttpClient( httpParameters ); Mar 30 12:51:04 >.< Mar 30 12:51:07 caught NoPastebinUsedException Mar 30 12:51:11 faeezkadiri: use pastebin please Mar 30 12:51:13 BANHAMMER Mar 30 12:52:17 Mikellip: Mar 30 12:52:23 Mikellip: wil do Mar 30 12:52:29 <`z> faeezkadiri, or pastie Mar 30 12:52:39 <`z> pastie isn't cluttered like pastebin Mar 30 12:53:53 faeezkadiri: your code is probably never timing out, interrupting your connection is a different thing Mar 30 12:54:35 faeezkadiri: you provided insufficient code, too, as there is no request object and no line of code where you assign your params.... AND no pastebin :-P Mar 30 12:55:33 GOOGLEZ IO Mar 30 12:56:12 im actually using the chromebook from last year right now Mar 30 12:56:58 ingame.xml: Failed to convert @color/mikasa_blue into a drawable what does this mean? i don't know why this makes an error it worked before like that Mar 30 12:57:14 TachyonDev: why, for a cobol job? Mar 30 12:57:27 here is a pastebin of the Error Log: http://pastebin.com/vLjMLPD3 Mar 30 12:57:31 readme: lol Mar 30 12:57:43 Mikellip: http://pastebin.com/azE315Ze# Mar 30 12:58:05 Mikellip: i using the code in xmlrpcclient Mar 30 12:58:25 readme: vacation Mar 30 12:58:36 Surfer2010: Color value '@color/mikasa_blue' must start with # .. where did you define your color? Mar 30 12:58:37 readme: heading to Borgata in Atlantic City this afternoon Mar 30 12:58:48 chromebook = off the grid Mar 30 12:58:50 Mikellip: sorry for the inconvenience as i am new ti irc Mar 30 12:59:06 in a color.xml like this: #000080 Mar 30 12:59:39 faeezkadiri: just doing that will never set the params ...you simply create a BasicHttpParams object that you never use Mar 30 12:59:44 faeezkadiri: read the documentation please Mar 30 12:59:56 TachyonDev: nice, say hi to snookie for me Mar 30 13:00:13 I don't know, blame eclipse.. Try adding the alpha channel as well Mar 30 13:00:32 readme: funny you should say that, im in Jersey City right now Mar 30 13:00:48 readme: I randomly was eating at a restaurant for brunch a few weeks back .. happened to be next door to their new house in jersey city Mar 30 13:01:04 awesome Mar 30 13:01:05 faeezkadiri: directly upon joining the channel you should see the topic of the channel, it usually describe important guidelines for the channel.... and don't direct questions to someone specific if you want help from the channel as a whole Mar 30 13:01:10 you get to travel a lot huh Mar 30 13:01:35 Mikellip: sorry Mar 30 13:01:39 readme: well im off to chicago next week Mar 30 13:01:39 :P Mar 30 13:01:53 mhh ok i try that SimonVT thanks Mar 30 13:02:24 faeezkadiri: your request object have a method for setting the params you create, looking to that (setParams)... read the documentation and it all becomes much more clear... Mar 30 13:03:06 looking = look into* Mar 30 13:03:22 raulcp: hello? Mar 30 13:05:01 raulcp: you able to send to channel yet? Mar 30 13:05:29 Mikellip: http://pastebin.com/5PKP4jdH HAV hav updated the code Mar 30 13:22:45 hello Mar 30 13:22:47 Hello Mar 30 13:23:34 does anyone have any documentation of Samsungs STOCK recovery? I'm mostly interested about what partition names "write_raw_image(file, partition)" uses. boot, recovery, system? or maybe /dev/bmlXX? Mar 30 13:23:51 silur,do you know can we keep the timer running when we go from one activity to another and come back? Mar 30 13:24:09 delac: you want to ask in #android-root Mar 30 13:24:13 delac: this is probably not the appropriate place Mar 30 13:24:36 (and any documentation you find about how samsung's internals work is going to be from people disassembling it; samsung would never give this info out) Mar 30 13:24:46 Q: When i call Thread.start() second time (after thread finished first time) - it blows up with exception: IllegalThreadStateException - Thread has been started before. Do I need to create new Thread(my_runnable_worker) again instead of reusing existing Thread? Mar 30 13:24:53 silur: yes. Mar 30 13:24:59 silur: when a thread is done, it's done. you can't reuse it. Mar 30 13:25:14 silur: if you want to reuse code, strongly consider creating Runnables that can be reused. Mar 30 13:25:25 lov: they do have nice opensource thing going on. infortunately it doesn't seem to include recovery... Mar 30 13:25:36 hello lov Mar 30 13:25:57 Having fun with p4, lov? :p Mar 30 13:25:59 lov, thanks. Do i need to-new both MyRunnable + Thread ? Mar 30 13:28:46 silur: You can reuse Runnable, but you need to create a new Thread each time Mar 30 13:29:28 SimonVT, lov. thanks, appreciate your help! Mar 30 13:31:31 SimonVT: P4 fills me with total rage Mar 30 13:31:52 I'm maintaining a script that will port SVN content over to P4 daily, for reasons I won't get into Mar 30 13:31:58 periodically, it poops out with little problems like this. Mar 30 13:32:08 then I have to nudge it along by hand! Mar 30 13:32:09 ctate loves p4 Mar 30 13:32:12 :)O Mar 30 13:32:13 I know he does Mar 30 13:32:15 I have no idea why Mar 30 13:32:31 well yes I do Mar 30 13:32:45 his environment had plenty of handholding and decent admins maintaining things Mar 30 13:32:52 and he's also institutionalized Mar 30 13:33:50 ;d Mar 30 13:34:16 I'm going to spend the next fucking hour comparing the repos because I don't trust this script at this point, where it's gotten to the point of utterly pooping out Mar 30 13:38:15 oh DOUBLE FUCK. Mar 30 13:38:22 I forgot to sync the p4 side so I've just utterly fucked it up Mar 30 13:38:41 oh my :p Mar 30 13:42:14 http://www.wired.com/geekdad/2012/03/words-with-friends/ Mar 30 13:42:20 I’m a casual Words With Friends player, usually on my phone in bed at night, and I reciprocated with the very exciting story of my best play — the word “prejudice” off an existing “re” while playing against the computer a couple months ago. Mar 30 13:42:25 apparently we added an AI mode? Mar 30 13:45:40 You didn't know? :p Mar 30 13:46:59 didn't you get the memo? Mar 30 13:48:51 avec les cailloux Mar 30 13:49:15 <`z> canadiancow, Mar 30 13:49:18 <`z> Very nice article, but unfortunately, not all top 40 words are accepted by WWF. Mar 30 13:49:18 <`z> zo, ja, oo, io, euoi, yu, fy, ee, exo, ou.. all not acceptable. Mar 30 13:49:28 you sure? Mar 30 13:49:29 <`z> ^ a comment Mar 30 13:49:34 if i go look this up and...oh Mar 30 13:49:37 <`z> "19 hours ago" Mar 30 13:50:05 hmm Mar 30 13:50:09 "zo" is not valid Mar 30 13:50:13 *sigh* Mar 30 13:50:22 im no longer convinced this guy was playing WWF Mar 30 13:50:51 How long should it take an update app to show up in the market? Mar 30 13:51:12 instantly to some hours Mar 30 13:51:19 It's been over an hour now Mar 30 13:51:20 :> Mar 30 13:51:22 ah okay Mar 30 13:51:23 thanks Mar 30 13:51:55 when's the best time to make app updates / publish a new app? Mar 30 13:53:00 hi Mar 30 13:53:07 is it possible to anamte a widget ? Mar 30 13:53:16 animate Mar 30 13:53:54 is there any place i can ask opengl es questions about? Mar 30 13:54:42 Hmm, Am I right in assuming that calling clear() on a ArrayAdapter without calling onNotifyDatasetChanged() means that the listview still displays the entire list? Mar 30 13:55:11 aN ArrayAdapter* Mar 30 13:55:38 go check the source :) Mar 30 13:55:47 its not infeasible that it would call notifyDataSetChanged() for you Mar 30 13:56:16 canadiancow: Yeah, I guess I'm going to have to make head and tails of downloading that so I can check it out. Mar 30 13:56:26 clear should be smart enough to update the view Mar 30 13:57:10 ive got a screen in landscape with 5 tabs along the bottom, how do i get the image son the tabs to actually scale to the right size and fit along the bottom, up til now its all worked in portrait but that must have been luck.. lol Mar 30 13:57:23 Why doesn't Service have an onStop callback? Mar 30 13:57:25 I'm getting some "flickering" behaviour from my list when calling clear() in onPreExecute() and notifyOnDatasetChanged() in onPostExecute()... And I can't really seem to figure out why. Mar 30 13:57:55 drlaban: are you clearing the whole list and then re-adding all the elements to it? Mar 30 13:58:27 readme: Yeah, and it's some 100+ items. Let me guess: It's taking too long to update? Mar 30 13:58:36 maybe Mar 30 13:58:47 Why not wait with clearing til you have new items to display Mar 30 13:58:56 the adding of items on the list should be in doInBackground, I hope Mar 30 13:59:00 otherwise they're on the UI thread Mar 30 13:59:36 hmmm it ain't possible to somehow calculate a value in the xml layout right? like with some kidn of function or something i'm quite sure (99.99~%) it ain't just asking to be sure Mar 30 13:59:45 readme: Yeah, the adding of items is done in the background, so I'm pretty fine there Mar 30 13:59:55 SimonVT: I'll see if that quickens things up. Mar 30 14:00:14 so i mean liek android:layout_height="someFunctionThatCalculatesHeight()" lol Mar 30 14:00:24 idunno why i'm even asking it... Mar 30 14:00:40 when u make an xml drawable can u still use layout_width etc? Mar 30 14:00:46 alowaniak: you get two: wrap_content and fill_parent Mar 30 14:00:50 Eh, I don't think you should be touching the dataset from a background thread Mar 30 14:01:03 Sounds like something that could cause issues Mar 30 14:01:11 alowaniak: you even get a third.. layout_height="0dp" layout_weight="" Mar 30 14:01:17 well ye i know Mar 30 14:01:28 alowaniak: describe what you want the height to consume Mar 30 14:01:33 alowaniak id like to do that too but dont think u can as such Mar 30 14:01:36 in my case i want layout_marginBottom="-layout_height" though Mar 30 14:01:50 alowaniak: if you want to set the height dynamically, do it in code. Mar 30 14:02:23 alowaniak: setting a marginBottom to the inverse of the layout height would theoretically result in a view that takes up no space at all. Mar 30 14:02:31 well, the negative, not the inverse. Mar 30 14:02:31 ye i know Mar 30 14:02:37 readme, do you know if I can animate a widget ? Mar 30 14:02:39 so use android:visibility instead. Mar 30 14:02:42 aLeSD: i dunno Mar 30 14:02:45 ok Mar 30 14:02:49 so anyone know how i make an xml drawable im specifying for my tabs fill the area its given? Mar 30 14:02:54 it's a dirty hack for making it slide in animation Mar 30 14:03:17 so when i hide/unhide it slides by changing margin Mar 30 14:03:21 I think android already has an animation that does this Mar 30 14:03:54 yeh u can specify transitions like overridePendingTransition(R.anim.slide_left,R.anim.slide_right); Mar 30 14:03:58 hmye i should do some more research on it, but that was just the first thing I found, except they pre-set the margin to 50dip (since that was their layout height) Mar 30 14:04:12 I've got a problem where I don't get a options menu to show in activities in a tabhost Mar 30 14:04:31 alowaniak: sounds creative good luck Mar 30 14:04:41 is there anyone that has had the same problem Mar 30 14:04:42 ? Mar 30 14:05:11 triptec: nope worked fine for me Mar 30 14:05:27 also using a activitygroup Mar 30 14:05:36 if that might be the problem Mar 30 14:05:43 triptec: Your problem is you're using activities in a tabhost Mar 30 14:05:52 it was probably asked many times but does anyone know when the code drop for maguro's kernel source will be ? Mar 30 14:06:06 SimonVT: nope, I use activities and it works fine Mar 30 14:06:11 anyone know how i can fix this ->> http://dl.dropbox.com/u/4194619/tabsmessy.png Mar 30 14:06:15 SimonVT: what should I use? Mar 30 14:06:18 d-d-d-deprecated Mar 30 14:06:22 Fragments! Mar 30 14:06:36 SimonVT: depends what API you're using! ;) Mar 30 14:06:57 triptec: I haven't used activitygroup so maybe that's the problem Mar 30 14:06:58 code1: Sure, if you need to support 1.5 you might have to use activities Mar 30 14:07:21 Fragments was introduced in API 11 I believe Mar 30 14:07:27 so < 2.2? Mar 30 14:07:30 Support lib supports them down to 1.6 Mar 30 14:08:41 I had problems using the compat lib, so just stuck with what worked Mar 30 14:09:02 Is there any way to tell a service to do something when I stop it, other than sending multiple start intents and binding? It would be sooo nice, if there was onStop. Mar 30 14:09:07 seems fine to me, but I will look at using Fragments when I up the minsdk level Mar 30 14:09:39 SimonVT can u take a look at that screenshot for me pls? just wondering how i fix it http://dl.dropbox.com/u/4194619/tabsmessy.png Mar 30 14:09:51 readme: onDestroy? Mar 30 14:10:18 code1: onDestroy is called by the system when "The service is no longer used and is being destroyed" Mar 30 14:10:26 This is a different event from when it is "stopped" Mar 30 14:10:42 I need my action to happen immediately as soon as the stopService() call is processed by the framework. Mar 30 14:10:50 (yes, I know stopService gets queued up) Mar 30 14:10:57 yeah, seems a bit strrange they left out onStop! Mar 30 14:11:02 I knorite Mar 30 14:11:57 JakeWharton: you around? Mar 30 14:11:59 I've not had this issue yet, as usually the service is destroyed after it is stoped Mar 30 14:12:47 sadly, I guess I'm going to have to use multiple start intents Mar 30 14:12:50 readme, SimonVT: Seems like moving the clear closer to when stuff actually changes, fixed it pretty good. Mar 30 14:13:00 readme: Services are meant to utilize the onBind and onUnbind what it is it that you want to do Mar 30 14:13:17 wmbest2: can't bind from BroadcastReceiver, which is where I am starting it from. Mar 30 14:13:29 gaz`: uh, no idea. Doesn't seem like tabs that follow the design guidelines :p Mar 30 14:13:54 I think the only real problem is that the name "startService" is a semantically incorrect name Mar 30 14:13:59 same with "onStartCommand" Mar 30 14:14:18 they should be called "sendMessage" and "receiveMessage", since not every time I call them is something actually being started Mar 30 14:14:25 maybe someone can explain this... I've seen a project where project.properties specified the target sdk as android-14, but the manfiest specified targetsdk as 15... how does that make sense? Mar 30 14:14:33 SimonVT - im "cloning" an iphone app and design unfortunately, just trying to get these to scale to fit the space their given :-(... Mar 30 14:14:44 abaratican: project.properties specifies the build target Mar 30 14:14:51 gaz`: Yeeah...:p Mar 30 14:14:54 abaratican: the manifest value only specifies whether compatability paths get run Mar 30 14:15:16 but why would you ever want your target in the manfiest higher than the build target? Mar 30 14:15:31 I asked earlier about themes and the general consensus was use the device's theme. So is it possible for the colours of your text and backgrounds to clash with a user-set theme? Mar 30 14:15:33 readme can you accomplish what you are trying to do with an IntentService? Mar 30 14:15:38 If you know the app works on api15 with no compat Mar 30 14:15:52 Tho usually you'd set build target to 15 as well Mar 30 14:15:57 it's in no way required Mar 30 14:16:27 interesting Mar 30 14:16:30 ABS does this, btw Mar 30 14:17:32 Well, probably just an oversight, but there can be reasons for it Mar 30 14:17:47 e.g. ABS3 required you to build against api13 Mar 30 14:17:58 Else you'd have to add some overrides due to interface changes Mar 30 14:18:04 wmbest2: nah, I specifically need the ability to process the next intent before the first is finished Mar 30 14:18:09 ah Mar 30 14:18:13 I think I see what you mean Mar 30 14:18:13 However, targeting 13 would mean the compat menu button was displayed on ICS phones Mar 30 14:18:21 That would make no sense Mar 30 14:18:37 Service is good, the naming isn't.. I guess I'll deal. I'm already extending it and writing "betterservice" Mar 30 14:19:01 So building against 13, targetSdk 14, and it'd work as expected Mar 30 14:23:09 Has anyone tried the IDE Intellij? Mar 30 14:24:57 yup Mar 30 14:25:22 Madhatt5r: having problems ? Mar 30 14:25:40 No just haven't used it before so I was curious Mar 30 14:25:49 On how it worked compared to eclipse Mar 30 14:25:52 yeah I prefer it to eclips Mar 30 14:26:02 I am having a lot of issues currently with Eclipse. Mar 30 14:26:08 but I think its mostly because I used it back in school Mar 30 14:26:14 try both Mar 30 14:26:21 although intellij isn't free Mar 30 14:26:26 eclipse is, I think Mar 30 14:26:47 Madhatt5r: make sure you install the latest tools, because they are much, much better.. update eclipse tools, update sdk Mar 30 14:27:16 Yeah, but the newest tools is what is causing all the issues. Mar 30 14:27:36 try reloading the ide Mar 30 14:27:39 helps, sometimes Mar 30 14:28:20 Any ideas on setting colors to text and backgrounds when using device theme? i.e. can it end up looking awful? I'm not sure how to test. Mar 30 14:28:44 Its making an exact copy of my main project resource file R. My library project that I am building with it is copying my main projects resource folder so when I open up the R file inside my project it has all the same ids as my main project. Mar 30 14:28:50 At the moment I've designed the screen with the default black background Mar 30 14:28:54 So it is giving me Resource errors. Mar 30 14:29:10 build it Mar 30 14:29:14 shroomyreader: intellij is free Mar 30 14:29:18 no it isn't Mar 30 14:29:22 shroomyreader: yes, it is. Mar 30 14:29:30 we are going to loop here Mar 30 14:29:35 shroomyreader: there is a free and paid edition. and the paid edition is really only for grails Mar 30 14:29:37 then why do I have to buy a license key ? Mar 30 14:29:48 grails ? Mar 30 14:29:54 However, the community edition is really all you need for android dev. Mar 30 14:30:43 shroomyreader: yes, grails. I use the community edition (free one) and it's pretty chill. Mar 30 14:30:52 … Anyone have an idea why my project might be doing this? Mar 30 14:31:15 Damnit, these license are fucking expensive Mar 30 14:31:32 I feel like fool now Mar 30 14:31:47 I've tried cleaning many times. I have tried restarting and making the id something different. Mar 30 14:31:56 I don't know what else to try. Been at it for hours. Mar 30 14:32:04 so the problems is that your id's are wrong ? Mar 30 14:32:12 not as described in the xml ? Mar 30 14:32:13 Madhatt5r: what are the actual errors you are getting Mar 30 14:32:26 check the syntaxes and build the project Mar 30 14:32:41 the resources files like the id's are only updated when build Mar 30 14:32:47 else it will show missing id's etc Mar 30 14:33:08 I understand that but it fails when running the application because it thinks the id's are not there. Mar 30 14:33:25 paste bin it Mar 30 14:33:51 ^ Mar 30 14:34:26 when i set an image to use as a background for my tab host its darker than it should be, whys this Mar 30 14:35:02 is there an "unselected tint" being applied? Mar 30 14:35:38 hmm maybe, how do i turn it off Mar 30 14:35:55 http://pastebin.com/896FVspv Mar 30 14:36:22 gaz`: I dunno. I was just throwing an idea out there. Maybe make a state list drawable that just references the same image in each state? Mar 30 14:36:25 That is the log cat error I am getting. Mar 30 14:36:39 and the xml ? Mar 30 14:36:46 for the id you are getting Mar 30 14:37:00 Its a shape, hold on. Mar 30 14:37:16 so you are getting an object by the id Mar 30 14:37:26 Yes Mar 30 14:37:28 god Mar 30 14:37:29 grr Mar 30 14:37:31 does the IDE see the id in R. ......id ? Mar 30 14:37:36 Yes Mar 30 14:37:36 Madhatt5r: that looks like te kind of thing that can be fixed with build clean Mar 30 14:37:51 I've done a build clean 100's of times. Mar 30 14:37:51 Madhatt5r: maybe reference…. yourPackage.R.id ? Mar 30 14:38:00 I will try that. Mar 30 14:38:06 Again, just throwing ideas out there…. Mar 30 14:38:50 http://pastebin.com/fXQWykjJ Mar 30 14:39:02 Well I have tried everything else. Mar 30 14:39:07 and the code ? Mar 30 14:39:37 I don't see a reference to an id Mar 30 14:40:00 http://pastebin.com/ibxgwLhX Mar 30 14:40:06 Thats the code that is calling it. Mar 30 14:40:40 are you sure new apks are being pushed to the device or emulator? Mar 30 14:40:46 maybe your 100 build cleans were in vein Mar 30 14:40:55 do a manual adb uninstall of your apk Mar 30 14:41:11 Mar 30 14:41:11 android:id="@+id/verfication_shape" Mar 30 14:41:11 android:shape="rectangle" > Mar 30 14:41:11 Mar 30 14:41:12 Mar 30 14:41:12 Mar 30 14:41:16 doesn't it need to be that ? Mar 30 14:41:32 nah, because it's a drawable Mar 30 14:41:45 id creates things in R.id, drawables are in R.drawable Mar 30 14:42:05 thanks shroomyreader Mar 30 14:42:07 appreciate it Mar 30 14:42:07 That's what I thought, but I can also give that a try. I uninstalled it completely from my device and reinstalled it so the new builds should be getting to it. Mar 30 14:43:02 Madhatt5r: happening on more than one device/emulator? Mar 30 14:43:20 shroomyreader: please use pastebins when you have more than 2 lines to paste. Mar 30 14:43:24 yeah sry Mar 30 14:43:46 Madhatt5r: in what are you placing that drawable ? Mar 30 14:44:48 Im placing it in a standard view, I built another application to test this before I put it in my current app and it works perfectly in the other application. Mar 30 14:45:04 So I think the concept is fine but something seems to be messed up with my resources... Mar 30 14:45:32 And yes it has the same issue on more than one device. Mar 30 14:46:36 Madhatt5r: I guess the next step is to try to isolate the problem in a test Mar 30 14:46:44 sounds pretty hairy, god speed Mar 30 14:47:18 Should have never updated my tools. Mar 30 14:47:33 Uh, so.. You have a shape in your library project, and you're using it in your main project? Mar 30 14:47:48 No Mar 30 14:48:25 I have nothing in my library project but when it builds the library resource file in my main project it looks exactly like my projects resource. Mar 30 14:48:43 sup devs :3 Mar 30 14:48:53 is there a way to have density-independent radial gradient drawables? It seems like you can only spec the radius in pixels Mar 30 14:48:54 nothing in my library project resource file that is. Mar 30 14:50:02 uh, what? It's copying res IDs from your main project to your library project? Mar 30 14:52:47 Okay so when I am building my main application it builds the resource files for both the application and the library and inside my application Mar 30 14:52:52 SimonVT: dependencies reversed? Mar 30 14:53:31 'gen' folder it has two listings one for the library project and one for the application.. But the both look like this exactly.. Mar 30 14:53:34 http://pastebin.com/E2Tst6Ak Mar 30 14:55:09 And those resources are from your main project? Mar 30 14:59:40 ok, i have an old style android PreferenceActivity. and it works quite nicely. There's one thing that puzzles me though: Mar 30 15:00:15 that is the name of the sharedPreferences file that it uses Mar 30 15:00:58 i looked into the filesystem with my rooted device and after a while i found out that the name is packagename_preferences Mar 30 15:01:24 is there a doc for the android fs layout ? Mar 30 15:01:43 it seems pretty different than of linux i know of.... Mar 30 15:01:48 hmmmm Mar 30 15:02:16 tapas: Why does that puzzle you? :p Mar 30 15:02:33 or rom fs layout ? Mar 30 15:02:48 see i'm confused now.... Mar 30 15:03:34 wbooze: there are probably unofficial ones, blog posts or something Mar 30 15:03:49 ok, will hunt then.... Mar 30 15:04:14 #android-root can probably answer specific questions Mar 30 15:04:20 Is it possible to set the padding in the parent view so that there is padding around all child views? Mar 30 15:05:14 SimonVT: because i had to dig into the filesystem to find that out.. Mar 30 15:05:22 tapas: Anyway, manifest package is the one constant thing about your app Mar 30 15:06:01 SimonVT: and i have the feeling that this is an implementation detail that might change with any android version Mar 30 15:06:03 because at the moment android:padding in LinearLayout does nothing Mar 30 15:06:11 SimonVT: Yes theses are the resources from my main project. Mar 30 15:06:12 and then my ap will fail cause i hardcoded the string Mar 30 15:06:12 tapas: it isn't Mar 30 15:06:20 mmm lov idempotency Mar 30 15:06:22 android: padding Mar 30 15:06:27 SimonVT: is that documented somewhere? Mar 30 15:06:32 tapas: Why are you hardcoding the string? PreferenceManager.getDefaultSharedPreferences(Context) Mar 30 15:06:59 SimonVT: aaah, that was the missing piece of information :D Mar 30 15:07:33 Madhatt5r: I don't know, mine doesn't put main project resources in lib project R Mar 30 15:07:49 Hmm Mar 30 15:08:00 I figured that it was not correct. Mar 30 15:08:03 you can also specify your own preferences file name Mar 30 15:08:04 Lib project resources are put in main project R, but that's supposed to happen Mar 30 15:08:16 Anyway, did you update to intellij11.1? Mar 30 15:08:51 I use eclipse but I did just update all my plugins/tools that android release and I have been having the issue since than. Mar 30 15:09:21 Oh, just assumed since you started by mentioning intellij Mar 30 15:09:43 No I was asking people about it cause I was considering trying it. Mar 30 15:10:30 i have tried it, very briefly, i wasn't impressed Mar 30 15:12:24 Hey, can just quickly ask a question about structure, it's not really critical, but I can't see an easy way to do something which I'm sure there is an easy way to do... Mar 30 15:12:24 In my code, I have a method called facebookShare, at this point, it will authorise, and then show a dialog - it's to share achievements. If someone activates a minigame, I want to show this share dialog, and then after, continue to the minigame activity. However, there are different achievements for various things. I don't want the dialog to show, and the minigame to start in the background, so it needs to stop wh Mar 30 15:12:24 facebook share work, then continue where it was. The achievement only shows the first time the user triggers a particular minigame. So, my current structure is that it saves a value for the method ( such as startMiniGame() ) that it was about to provess, shows the achievement stuff instead, then comes back to a method continueAfterShare(), which reads the value of where it was and then continues that method ( such Mar 30 15:12:26 in C++ I would use a method pointer here. It just seems over complex, sorry for the long explanation, any ideas? Is this normal? Mar 30 15:14:14 NutterzUK: irc has a line length limit of 500 characters. A regular method on java (to work around lack of method references) are single-abstract-method classes such as Runnable. new Runnable() { @Override public void run() { doSomething(); }; --- now you pass this instance around and when you want to execute there you do foo.run() Mar 30 15:14:22 NutterzUK: well you kept getting cut off, but I think I get what you're saying Mar 30 15:14:50 NutterzUK: where you'd use a simple function pointer in C++, in Java you use a big bloated anonymous class instance to accomplish the same thing Mar 30 15:15:01 and yes, that's normal Mar 30 15:15:05 thanks :) Mar 30 15:15:09 Ah, sorry about getting cut off Mar 30 15:15:14 Just seems a bit messy Mar 30 15:15:20 welcome to java :P Mar 30 15:15:35 As anyone expierence TextView issues on KindleFire.. as in it doesnt wrap lines in a TextView? Mar 30 15:15:36 * alankila disagrees it's "bloated" though. No idea what the byte cost of one of these things is, but probably goes in 100s of bytes at most Mar 30 15:15:44 It's part of my dissertation, i'm just conscious it's going to be read by someone when i'm done with it :) Mar 30 15:15:55 the instances are cheap in any case. Mar 30 15:16:00 same layout works on all other major android devices including ICS but just not on the Kindle Mar 30 15:16:12 and its not about the resource qualifiers Mar 30 15:17:33 alankila: evancharlton: thanks Mar 30 15:18:16 Hmm... Looks like ~900 bytes for regular java, at least on disk Mar 30 15:18:18 alankila: a pointer is what, 4 bytes? Mar 30 15:18:22 More than I expected Mar 30 15:18:34 that's for the class files Mar 30 15:18:47 alankila: yeah, that doesn't translate to 900b in memory Mar 30 15:19:01 yeh but that's fatter than I expected for sure Mar 30 15:19:07 I forget off the top of my head what the memory footprint of new Object() is Mar 30 15:19:25 The types in there are fully qualified Mar 30 15:19:48 so there's a lot of long names even in the simplest classes probably, especially if it's your own stuff Mar 30 15:19:53 alankila: all java gets compiled to be fully-qualified Mar 30 15:20:57 I suppose new Object() is going to appear in a few tables... could test this with some accuracy, or just read it from internet Mar 30 15:21:08 yeah Mar 30 15:21:28 IBM used to have a fantastic presentation about this, but it appears that they made it private now :( Mar 30 15:22:34 i just code with the mantra: every object is cheap in java! Mar 30 15:22:53 yeah! Mar 30 15:22:54 it makes developing so much simpler! Mar 30 15:23:00 there's a garbage collector Mar 30 15:23:04 so it's impossible to leak memory Mar 30 15:23:06 it's great! Mar 30 15:23:32 Anyone mind doing a quick theoretical evaluation of this idea, a service that can be started and stopped, and also execute a callback onStop() Mar 30 15:23:35 https://gist.github.com/9b617c9681d6d0f5bd60 Mar 30 15:23:45 [11:23:04] so it's impossible to leak memory Mar 30 15:23:48 is that sarcastic Mar 30 15:23:59 haha Mar 30 15:24:03 canadiancow|work: super cereal Mar 30 15:24:04 or are you pointing out that what people call a "memory leak" in java is the opposite of a traditional memory leak Mar 30 15:24:16 I believe it's both sir Mar 30 15:24:30 sarcasm, through and through Mar 30 15:24:45 come on, look at my service base class and tell me if its stupid Mar 30 15:24:50 plz Mar 30 15:24:56 just got an email from a recruiter at google mountainview D: Mar 30 15:24:58 * alankila guesses every java object takes at least 2 references of worth Mar 30 15:25:07 readme: dude, your comment:line is like 4:1 Mar 30 15:25:18 no idea how it could be less: need to know the dynamic type of the value, so pointer to class, and need to have the reference to object itself somewhere even if the object itself had no fields Mar 30 15:25:26 evancharlton:well, it's a new idea. I was thinking a lot Mar 30 15:26:04 readme: I don't see the point of it Mar 30 15:26:10 quite likely there's more to it than this, but based on this reasoning I'd guess the smallest java object on 64 bits is 16 bytes of memory consumed Mar 30 15:26:27 evancharlton: the use case is that I want to start and stop a service using start and stop broadcasts that will be received by a BroadcastReceiver. Mar 30 15:26:36 the service should do work until it is stopped Mar 30 15:26:44 hmm, ok for some reason my eclipse project now fails to find commons-lang-3-3.1.jar Mar 30 15:26:52 readme: why not just call stopService(..)? Mar 30 15:26:57 even though it shows in the Android Dependencies thing Mar 30 15:27:04 and it's placed in libs/ Mar 30 15:27:14 evancharlton: beause there is no onStop() callback. The onDestroy documentation does not explicitly state when onDestroy will be called. Mar 30 15:27:47 also starts and stops always need to happen in order Mar 30 15:28:03 and the code associated with each event must be executed before the next start or stop happens Mar 30 15:29:31 Is there another way to get what I want? Mar 30 15:32:37 ok, even manually adding the jar to the build path deosn't make the error go away Mar 30 15:32:43 eclipse is screwed i think :D Mar 30 15:33:31 i got a structual question about the combination of the xml-layout file and the java class for it Mar 30 15:34:11 well, pushed it here if anyone sees something useful in it. I'm going to use it. Mar 30 15:34:15 https://github.com/tom-dignan/android-switched-service Mar 30 15:34:17 ok Surfer2010, but first let me ask you this... Mar 30 15:34:33 are you aware that rabbits and hamsters take 2 different kinds of poos, but only eat one of them? Mar 30 15:35:05 root66 what the heck ?! ... is that really neccesary? :-O Mar 30 15:35:15 Gotta eat to survive Mar 30 15:35:20 yeah Mar 30 15:35:28 it is essential for their intake of vitamin b-12 Mar 30 15:35:30 maybe the poo is like compressed nutrients Mar 30 15:35:56 wouldn't likely be true for humans although it's not quite energy-free, so do not anthropomorphize Mar 30 15:36:08 there's really only one way to be sure Mar 30 15:36:53 Be my guest and find out Mar 30 15:37:01 facepalm Mar 30 15:37:05 i have 6 "fields" of 2 "columns" each containing 4 Buttons ... = 48 Buttons in the Java class i could "group them" in Button Arrays ... but is there a better way to structure all this because each of those 6 "button-fields" represent one player ... and different actions of him Mar 30 15:38:12 ok, completely broken it is it seems :( Mar 30 15:39:20 Surfer2010: was there a question in there somewhere? Mar 30 15:39:27 Surfer2010: arrays of arrays? Mar 30 15:39:30 *shrug* Mar 30 15:39:30 oh right Mar 30 15:39:39 umm Mar 30 15:39:56 you have a class that represents a set of 6 fields and 4 buttons Mar 30 15:39:58 as long as you don't copypaste 47 times 'Button button1_2 = findViewById(R.id.button1_2); ..." Mar 30 15:40:13 the buttons can be public Mar 30 15:40:31 or rather, you have a public function that returns the button Mar 30 15:40:49 then if you want to store a list of references to them, you have access Mar 30 15:41:00 but this sounds like bad design to me Mar 30 15:43:22 anyone ever have a problem where their app isnt in the search results in the play store app, but it owrks fine on the web? Mar 30 15:45:14 canadiancow|work: or to put it differently: has anyone ever observed the market working well enough that results are consistent across a few minutes, never mind across multiple platforms? Mar 30 15:45:23 lolol Mar 30 15:45:45 haha Mar 30 15:45:48 true dat Mar 30 15:46:23 sry was on the phone ... Mar 30 15:47:05 root66: do you know kinda what my layout and "problem" is? ... since i don't wanna copy&paste 47times the same line with findVieByID ... Mar 30 15:48:44 or is that to easy of a problem to think about :) ... i'm not sure if there is a structural way to simplyfy all this ... Mar 30 15:49:07 since all the onClick Cases ... will basically call the same evaluation-method Mar 30 15:49:35 is there a way to have density-independent radial gradient drawables? It seems like you can only spec the radius in pixels Mar 30 15:49:47 canadiancow|work: yes. Mar 30 15:49:58 canadiancow|work: that's actually the situation with Audible right now :X Mar 30 15:50:20 i wish irc had group chat Mar 30 15:50:25 oh wow Mar 30 15:50:28 i cant bleieve i just said that Mar 30 15:51:10 hah! Mar 30 15:51:58 is there a layout to slide view horizontally ? Mar 30 15:52:13 aLeSD: check out ViewPager Mar 30 15:52:18 thanks Mar 30 15:52:30 hmm I made an Animation Mar 30 15:52:54 for swiping views left and right? Mar 30 15:52:56 but it's not working as i expect Mar 30 15:53:19 nobody really wants to talk about my 48 buttons :( ^^ (yes i can understand that but still would be nice to maybe get some ideas how to simplyfy it) Mar 30 15:53:35 can I make simple, preferences like, listview with xml only? eg. populate listview with xml? Mar 30 15:54:01 because arrays of arrays of buttons is not very nice ;) ... might work but will end up in a lot of repeating code Mar 30 15:54:12 pastebin.com/NqgfnZkC Mar 30 15:55:10 any1 knows why it's not expanding? it's as if it doesn't redraw until after the animation ended Mar 30 15:55:24 like it does expand and collapse, but not with the animation Mar 30 15:55:47 In my contact list, when I slide a persons name left, it turns the background 1 color, and does one action. If I slide it right, it turns it another color and does another action. If I want to add this type of thing to my phone, what would I google to find an example? Mar 30 15:55:50 Is this a common pattern? Mar 30 16:03:36 hmm Mar 30 16:03:37 I am the current owner of the Samsung Nexus S 4g and soon to be owner of the Samsung Epic 4g Touch. Will I continue to be able to use fastboot to flash the new device or is it so different that I will have to familiarize myself with Heimdall? Mar 30 16:03:49 can you ask a view how large it should be? Mar 30 16:04:13 liek a getHeightIfYouWouldDrawYourself Mar 30 16:04:14 ? Mar 30 16:04:30 SlackGuru, ask in #android-root Mar 30 16:04:48 thanks canadiancow|work Mar 30 16:06:03 Surfer2010: try generating and keeping track of the buttons programmatically Mar 30 16:06:03 storm717, but it has to be inside a lyout , is it ? Mar 30 16:06:13 what? Mar 30 16:06:50 storm717, the ViewPager Mar 30 16:07:08 I want a viewpager and inside put many layouts Mar 30 16:07:19 use a FragmentViewPager Mar 30 16:07:27 I mean now I have 2 different activities ... and I want to be one with something like viewpager Mar 30 16:07:31 have each seperate pane be a fragment Mar 30 16:07:59 JakeWharton has a nice library that makes it work on older platform versions Mar 30 16:08:01 Anyone know the proper way to add a library project to a project? Mar 30 16:08:24 Do you just set isLibrary on the library project and add it in the same place on the project you are importing it too Mar 30 16:08:26 ? Mar 30 16:08:33 yep Mar 30 16:08:39 *sigh* Mar 30 16:08:46 aLeSD: https://github.com/JakeWharton/Android-ViewPagerIndicator Mar 30 16:08:50 I think I might have to redo the whole project. Mar 30 16:09:13 Could it maybe be a namespace issues. Mar 30 16:09:15 even if you don't need the indicator widget it will show you how to deal with paging fragments with the compat library Mar 30 16:10:27 storm717, so I have to use FragmentActivity Mar 30 16:10:29 https://plus.google.com/108967384991768947849/posts/inEo3fuiQxp Mar 30 16:10:40 Translator toolkit :o Never heard of that Mar 30 16:11:08 aLeSD: I did when I implemented a paging pattern Mar 30 16:12:31 storm717, thanks Mar 30 16:13:57 ugh...i have enough moeny in my account for my next month of phone service, but i just got two texts telling me how i can top up Mar 30 16:13:58 Hi how can I make my application place a shortcut on the home screen? For example the catch.com app allows me to create a shortcut to any note. Mar 30 16:15:19 storm717, but if I want I can insert the viewPager in a linearLayout , is it ? Mar 30 16:15:32 I have imported this library: http://code.google.com/p/android-batsg/wiki/SegmentedControl. But I always get this error in my xml when using it: No resource identifier found for attribute 'middleButtonBackground' in package 'com.chauhai.android.batsg.demo' Mar 30 16:18:25 I can't find anything about it on Google but I know it can be done. I guess I'm not using the right words. Mar 30 16:18:45 maxagaz: Have you updated all the android tools? Mar 30 16:18:51 In my contact list, when I slide a persons name left, it turns the background 1 color, and does one action. If I slide it right, it turns it another color and does another action. If I want to add this type of thing to my phone, what would I google to find an example? Is this a common pattern? Mar 30 16:19:59 can someone with a lot of patience explain me how to use sql databases in android? Mar 30 16:20:19 Q: What the difference between android:id="@+id/btn_click" and android:id="btn_click" ? Mar 30 16:20:26 Madhatt5r: what do you mean ? Mar 30 16:21:10 gesman: the first one refers to a resource id, the second one is a plain string Mar 30 16:21:36 ricvail, thanks. So i presume seconds is impossible to find programmatically Mar 30 16:21:45 I can use the 3 lines like this one: segmented:firstButtonBackground="@drawable/segmented_button_background_first" Mar 30 16:21:48 I can't Mar 30 16:22:03 but it works if I remove it Mar 30 16:22:24 gesman: i guess you can use findViewById("btn_click") Mar 30 16:22:24 so, the library is properly imported Mar 30 16:22:48 gesman: but it is a string, so i don't think it will work Mar 30 16:22:49 ricvail, Eclipse complained :) Mar 30 16:23:03 Anyone ever gotten the error "getEntry failing because entryIndex is beyond"? Mar 30 16:23:12 ricvail, I wonder why Eclipse won't assign id's to layouts Mar 30 16:23:23 Right before getting a resource not found error? Mar 30 16:23:53 gesman: I am new to android as well, so i can just guess, but you can access them via R.layouts Mar 30 16:24:10 gesman: i think Mar 30 16:26:05 so, is there any kind-hearted guy willing to explain me how to use databases in android? Mar 30 16:27:22 ricvail: What are your goals? Mar 30 16:27:54 I dont yet have any experience with working with a database on an android device, but I have used parse.com before. That may suit your needs as well. Mar 30 16:28:43 ricvail: following this is a good start http://developer.android.com/resources/tutorials/notepad/index.html Mar 30 16:29:30 ElevenSquared. i wanted to do a sample app. I have a scroll view and a button. If you press the button you start another activity with an edit text and a "confirm" button. if you press the confirm button, you get back to the first activity, and an element in the scroll view is added, Mar 30 16:30:40 Take a look at the link readme advised. Alternatively, what you want to do can be done using Parse.com. Im not sure if you're keen to the idea of using a 3rd party database though. Mar 30 16:31:04 aLeSD: look at the project I linked you, you should have no problems integrating the view pager pattern into your app with all of those examples Mar 30 16:31:27 that is the first page i stumbled upon googling, but i could not understand the examples Mar 30 16:31:42 ricvail: that is about as simple as it gets. Why do you think you didn't understand? Mar 30 16:32:17 The listview stuff, perhaps Mar 30 16:32:18 readme: I didn't know what I was doing... some parts make no sense Mar 30 16:32:28 ricvail: did you go through any of the other android tutorials yet? Mar 30 16:32:55 readme the ones before the notepad tutorial, yes Mar 30 16:33:03 before you learn to use a database, you should at least know how to use activities, buttons, textviews, edittexts, and listviews Mar 30 16:33:20 because withotu those your database is going to be pretty useless Mar 30 16:33:42 I am guessing the listviews confused you. read up on those more Mar 30 16:34:05 ok, I'll try Mar 30 16:34:20 before you try to write a database to back the listview, make a program that displays a list of items in static memory and can add an element to it Mar 30 16:34:35 try modifying the listview example with the countries to add a country to the list Mar 30 16:35:16 what do you mean by static memory? arrays declared in the res folder? Mar 30 16:35:34 ricvail: static reference Mar 30 16:36:24 android assumes a little java.. if you aren't proficient you should read the tutorial on oracle.com at the very least. Mar 30 16:36:37 it would take less than a week to read and the reward will be immense. Mar 30 16:38:48 i know java, maybe not very well, but i have made a quadratic equation solver with swing Mar 30 16:39:30 i was just wondering, if I extend ListActivity, the whole screen becomes scrollable, right? Mar 30 16:40:03 ricvail no it depends on your layout Mar 30 16:41:24 ricvail: I think you're looking for ScrollView Mar 30 16:41:35 yo dawg Mar 30 16:41:38 i heard you like scrolling Mar 30 16:41:39 xorgate: the example does not even set a layout Mar 30 16:41:47 so my old team lead actually wanted to put three listviews in a scrollview Mar 30 16:41:48 actually Mar 30 16:41:54 ricvail: ListActivity is really just for convenience Mar 30 16:42:04 canadiancow|work: ... wat Mar 30 16:42:11 like Mar 30 16:42:14 i lol'd Mar 30 16:42:16 so hard Mar 30 16:42:21 ricvail: you'll do just as fine to put a in your XML and call findViewById to get it, then set the onItemClickListener in many cases. Mar 30 16:42:57 We all did, canadiancow|work :p Mar 30 16:42:57 yeh don't actually use listactivity, normal activity is more transparent Mar 30 16:43:05 canadiancow|work: haha Mar 30 16:43:16 canadiancow|work: the worst I have done is put two listviews on one screen that didn't scroll Mar 30 16:43:27 the listviews themselves of course did scroll. Mar 30 16:43:32 the screen itself did not. Mar 30 16:44:10 this guy couldnt figure out how to do anything remotely "complicated" with adapters Mar 30 16:44:18 so he wanted separate lsitviews Mar 30 16:44:23 how did he become a team lead? Mar 30 16:44:30 hes old? Mar 30 16:44:31 i hope this wasn't at zynga Mar 30 16:44:39 our team lead code Mar 30 16:44:46 canadiancow|work: :( Mar 30 16:44:50 readme... you cant tell me you've never worked with a bad dev Mar 30 16:45:02 needless to say we convincd him to not work on that part Mar 30 16:45:13 canadiancow|work: yeah, I worked with a dev who made us use RAW SQL as a data interchange format for REST calls Mar 30 16:45:40 hes not a team lead any more Mar 30 16:45:43 but he still outranks me :) Mar 30 16:45:50 what happened, did he get demoted Mar 30 16:45:52 no Mar 30 16:45:57 just moved to a diff project Mar 30 16:46:17 that sucks, how come you are not the big cheese Mar 30 16:46:37 well they can only promote me once every 3 months Mar 30 16:46:40 or other people get jealous Mar 30 16:48:11 Why is a Criteria asking for Criteria.HIGH_ACCURACY for horizontalAccuracy giving me "network" instead of "gps", and more importantly, why is http://pastebin.com/zMBCGSjE not getting any updates? Location updates are requested on line 78. Mar 30 16:49:04 kamoricks, because you're not moving 10 metres? Mar 30 16:49:08 because you're not waiting 100 seconds? Mar 30 16:49:59 canadiancow|work: docs say that min time is in millis. So yes, I'm waiting 100 ms. Mar 30 16:50:15 10 metres? Mar 30 16:50:35 and...you're...tracking pork? Mar 30 16:50:37 like flying pigs? Mar 30 16:50:46 mikedg you need to get in on this :) Mar 30 16:50:46 Not flying. Mar 30 16:51:55 you're tracking piggies? Mar 30 16:52:13 do you strap actual android phones to them? because a guy I know strapped one to a horse. Mar 30 16:52:31 readme: It's more of a "I see one!" "Hit the button, Jeff." Mar 30 16:52:41 lol Mar 30 16:53:15 kamoricks: i bet them rural folk wouldn't want to use some fancy city slicker ios to track their pigs Mar 30 16:53:15 so it is like pig hunting Mar 30 16:53:26 good thing android has such a great reach. Mar 30 16:53:34 anyone ever got a listview to update in a fragment? Mar 30 16:54:26 readme: iOS version is under simultanious development. Mar 30 16:54:27 tansaku: that's perhaps the worst-asked question I've seen all day Mar 30 16:54:54 o-) Mar 30 16:54:57 cyclops smile Mar 30 16:54:59 thanks evan: I try hard to exceed - I have read the four detailed stack overflow posts on the issue and am going a bit nuts Mar 30 16:55:01 bet you've never seen that one Mar 30 16:55:41 https://www.google.co.uk/search?q=notifyDataSetChanged+not+updating+listview+in+fragment Mar 30 16:55:53 anyways, if you only need to track position at a button press, what's the point with updating it every 100 ms? Mar 30 16:56:09 ricvail: Because a GPS fix takes some time to acquire. Mar 30 16:56:27 There is no issue with updating listviews in fragments, just wrong code (that probably wouldn't work in an activity either) Mar 30 16:56:34 anybody develop Android apps using Eclim and Vim? Mar 30 16:57:17 SimonVT: I'm quite willing to accept that my code is wrong, it's just that every potential solution in stackoverflow has bombed for me so far, so it would be great to talk in real time to someone who had got it working ... Mar 30 16:57:36 tansaku: where is your code? Mar 30 16:57:40 Well, show some code Mar 30 16:59:09 If the task isn't going to take long and the only thing I want to do the task is my code, what other concerns should I have when changing the model from A launches Intent picked up by B to A directly calls B? If that makes sense. Mar 30 16:59:54 here's my latest attempt: http://pastebin.com/YEgJS46N Mar 30 17:01:10 tansaku: what code calls addToFaves? Mar 30 17:01:17 that needs to be on the UI thread. Mar 30 17:01:31 so, I am going trough the notepad codelab tutorial, and I was wondering... am I supposed to understand all the database management stuff? because here: http://saigeethamn.blogspot.it/2009/10/android-developer-tutorial-part-12.html it looks different (and much easier), but I am having some troubles with implementing it Mar 30 17:01:46 that gets called from the main parent activity when an action bar button is clicked Mar 30 17:02:17 Hi Mar 30 17:02:40 Okay, even with MIN_TIME = 0L and MIN_DISTANCE = 0.0F, I'm getting no updates. Awesome. I may have to get an actual device to test this. Mar 30 17:02:44 I'm new to Android development and I've been learning about the different layouts you can use like LinearLayout and GridLayout etc, but what if I want to have widgets placed outside the screen (if I'm making a platform game, for example) what layout should I use then...? Mar 30 17:03:38 I hope you understand what I mean... Mar 30 17:04:06 so this needs an AsyncTask somewhere then ... Mar 30 17:04:16 tansaku: this.faves.toArray(new String[0]) Mar 30 17:04:29 the array used by your adaptor is created on that line Mar 30 17:04:29 Solirify: if you're making a game you should probably be using a SurfaceView or GLSurfaceView and doing all of the drawing directly. Mar 30 17:04:33 tansaku: Okay, so.. You're not actually passing your list Mar 30 17:04:36 As wongk said Mar 30 17:04:45 Lov: Aha, okay. Thanks. Mar 30 17:04:49 ArrayAdapter has helper methods for you to add items Mar 30 17:04:51 ha, oh doy Mar 30 17:04:53 called add Mar 30 17:04:57 Are you familiar with the book "The busy coder's guide to android development"? Mar 30 17:05:06 So just do adapter.add("woo"); Mar 30 17:05:16 well the "argh" element shows up - the String[0] shouldn't be a problem Mar 30 17:05:17 Anyone know if they'll go through GLSurfaceView or SurfaceView in that book? Mar 30 17:05:30 I did do adapter.add("woo"); but got an exception Mar 30 17:05:33 tansaku: that's not the point Mar 30 17:05:39 Solirify: not really. if you want to learn GL you should get a book about OpenGL es 2.0 that covers android. Mar 30 17:05:53 your "faves" ArrayList is not bound to your adaptor Mar 30 17:06:03 SimonVT: I tried that but it wouldn't compile. Something about unknown symbol "adapter". Could you advise? Mar 30 17:06:04 there is no relationship between them Mar 30 17:06:10 Ok. Do I need to learn GL to do something like that? Mar 30 17:06:15 Solirify: I have no idea. There's nothing special about them; you use them to do direct drawing. Mar 30 17:06:17 Solirify: to use a SurfaceView? no Mar 30 17:06:25 Solirify: you'll want to know GLES to use a GLSurfaceView. Mar 30 17:06:31 for a regular SurfaceView, no Mar 30 17:06:32 The adapter does not know about "faves". it knows about the array created from toArray Mar 30 17:06:59 evancharlton: Known bug most larger projects run in to. Start over Mar 30 17:07:10 wongk: that makes sense but when I call this.adapter.add("woo") I get a UnsupportedOperationException Mar 30 17:07:26 lov: If I want to make an application that will be bigger than the screen, should I use a SurfaceView? Mar 30 17:07:32 .... Mar 30 17:07:43 you won't make an app that's "bigger" than the screen Mar 30 17:07:44 I'm not 100% sure about the thought behind thte new "collaborative console" Mar 30 17:07:47 at least, not generally Mar 30 17:07:54 technically you could have layouts of really weird dimensions Mar 30 17:08:04 what you should do, to be totally honest, is read about HOW game engines work Mar 30 17:08:16 you don't have this humongous canvas thats drawing every single thing ever Mar 30 17:08:27 tansaku: you don't need to call toArray anyway Mar 30 17:08:27 you're determining what to draw and where, and anything that wouldn't actually be on screen you're culling from the drawing process Mar 30 17:08:36 Ok... Thanks :) Mar 30 17:08:38 this isn't android specific Mar 30 17:08:43 this is a very general concept Mar 30 17:08:43 ArrayAdaptor can handle a List Mar 30 17:08:49 tansaku: Well, then just pass in your list directly Mar 30 17:08:53 oh, wongk got it Mar 30 17:08:54 when you use a SurfaceView, you have a raw canvas onto the screen Mar 30 17:08:59 you now have to figure out what to draw, when, and how. Mar 30 17:09:13 if you draw things that are out of bounds, they just won't be drawn, most likely. Mar 30 17:09:21 but it's possible that you'll still take some sort of rendering hit. Mar 30 17:10:00 lov: That's what happens with a canvas, yes. Mar 30 17:10:10 lov: That it appears "outside" of the view field Mar 30 17:10:11 Uh-huh, thanks Lov. I guess I'll try learn some more about Android development then Mar 30 17:10:51 so, about databases... I am using a book as a reference for the SQL language, but what is shown in the notepad codelab example looks completely different. Mar 30 17:10:59 SimonVT/wongk: yay! working now - many thanks - no AsyncTask required then - seems like toArray() call was screwing with the adaptor.add then ... Mar 30 17:11:24 ricvail: you only want to know about SQLite for android, so if your book is about microsoft sql, postgres, mysql, or something like that, don't use it for this. Mar 30 17:11:39 Solirify: I'd strongly recommend that you learn more about general game development. Mar 30 17:11:40 SQLite is many times simpler than other SQL implementations Mar 30 17:11:44 There's nothing android specific that I'm talking about here Mar 30 17:11:55 there was a good book on "just sql" by o'reilly I saw, called learning sql. Mar 30 17:11:58 at least, if that's your focus. Mar 30 17:12:10 SimonVT: that's such bullshit. I'm switching to iOS. Mar 30 17:12:17 Is the Busy Coder's guide to android development a good beginner's book according to you? I'm not making a game, btw. It was just for an example Mar 30 17:12:21 mikedg? That you? Mar 30 17:12:51 i heard ios is better than android anyway, and it is good to develop for because there is only one screen Mar 30 17:12:54 SimonVT: and to top it off, I didn't even get a ticket to I|O! I'm closing my gmail account. Mar 30 17:13:00 that book is about "raw sql" or whatever... I can understand the ".execSQL()" commands Mar 30 17:13:07 why would anyone evne develop for android, when you can develop for ios Mar 30 17:13:14 haha Mar 30 17:13:17 [13:12:54] SimonVT: and to top it off, I didn't even get a ticket to I|O! I'm closing my gmail account. Mar 30 17:13:17 wut Mar 30 17:13:22 readme: +1 Mar 30 17:13:23 readme: yeah, there's only one screen. Well, plus iPad. And each has two resolutions. But whatever, it's only one screen, really! Mar 30 17:13:34 Pixeldoubling, evancharlton Mar 30 17:13:37 It solves all problems Mar 30 17:13:42 +1 Mar 30 17:13:43 double ALL the pixels! Mar 30 17:13:49 ^ Mar 30 17:14:01 oh man, and wtf is this emulator? Mar 30 17:14:03 [13:13:23] readme: yeah, there's only one screen. Well, plus iPad. And each has two resolutions. But whatever, it's only one screen, really! Mar 30 17:14:04 THIS THIS TIHS Mar 30 17:14:06 <3 Mar 30 17:14:20 the emulator takes like 20 minutes to start, my mom's computer only has 512 mb of ram Mar 30 17:14:26 that's barely enough to run this POS eclipse Mar 30 17:14:39 canadiancow|work: I assume you've seen https://plus.google.com/107370779337689020644/posts/8SWfTAtS8LX ? Mar 30 17:15:26 * mgj hugs readme Mar 30 17:15:30 i think you need a break Mar 30 17:17:18 hmm im trying to dowload a file from a server on a button press. on that button press im running my asynctask but im still getting the NetworkOnMainThreadException. Should I not be using it? Mar 30 17:17:19 ARGH, this is driving me crazy! why did android developers have to make it so messy? Mar 30 17:17:45 ricvail: y u no read docs?! Mar 30 17:18:09 yes evancharlton, a thousand times yes! Mar 30 17:18:11 roger_padactor: you're not using AsyncTask correctly if you're getting that exception. Pastebin your source, please Mar 30 17:18:24 +236 - Jean-Baptiste Queru, Dianne Hackborn, Romain Guy and 233 more Mar 30 17:18:26 lolol Mar 30 17:18:26 evancharlton: it is most likely because of that crappy docs that i find android messy... Mar 30 17:18:46 the play store is jacked up again Mar 30 17:18:46 canadiancow|work: hahah Mar 30 17:19:00 now, if only that were true Mar 30 17:19:08 its not about sizes Mar 30 17:19:10 cpu speeds Mar 30 17:19:18 when the OEM FUCKS TEH API, that causes problems Mar 30 17:19:18 :( Mar 30 17:19:22 apple doesnt fuck their own apis Mar 30 17:19:26 canadiancow|work: correct Mar 30 17:19:48 journalists point to http://developer.android.com/resources/dashboard/platform-versions.html and scream ANDROID IS FRAGMENTED Mar 30 17:19:49 the good news: CTS only ever gets better :P Mar 30 17:19:56 evancharlton, my bugs are still sitting open Mar 30 17:19:57 evancharlton: http://pastebin.com/NT54bq2c Mar 30 17:20:00 new maguro radio doesnt fix shit Mar 30 17:20:03 I have 0 experience developing for Apple, is it that much easier? Mar 30 17:20:05 canadiancow|work: the only people who complain about fragmentation are the people who don't know how to write software Mar 30 17:20:12 NutterzUK: not necessarily Mar 30 17:20:19 evancharlton: youve clearly never tried to write for a moto api level 10 device Mar 30 17:20:42 its a problem, but its not huge, and it has nothing to do with the different versions of android or different screen sizes Mar 30 17:20:55 Just wondering, after i've got to grips better with Android, i'll work on some apple things for sure ( I guess best to know both ) Mar 30 17:21:00 my problem is I have a f'in galaxy S, not an iPhone... they're really expensive, you know. Mar 30 17:21:06 canadiancow|work: the listview background color problem? Mar 30 17:21:14 :P Mar 30 17:21:17 thats one example Mar 30 17:21:18 that can be solved by putting it inside another layout Mar 30 17:21:20 :) Mar 30 17:21:20 i could come up with more Mar 30 17:21:25 when I ran into that Mar 30 17:21:28 I WTF'd for hours Mar 30 17:21:29 so you want me to deepend my view hierarchy? Mar 30 17:21:32 deepn* Mar 30 17:21:34 FUCK Mar 30 17:21:35 DEEPEN Mar 30 17:21:37 well, it's only good option Mar 30 17:21:57 canadiancow|work: sorry, I meant the fake fragmentation, not the OEM lolfest Mar 30 17:22:07 ok true Mar 30 17:22:08 evancharlton: sorry should be good now. http://pastebin.com/NT54bq2c I forgot to do the captcha Mar 30 17:22:09 definitely Mar 30 17:22:44 evancharlton: i liked the third comment " This exact problem is why there's no software for Windows. It's utterly impossible for small developers to write code for such a fragmented platform" Mar 30 17:22:45 roger_padactor: this code looks incomplete; I'm assuming you double-checked that getAPK isn't called from anywhere other than the asynctask? Mar 30 17:22:46 http://code.google.com/p/android/issues/detail?id=24136 http://code.google.com/p/android/issues/detail?id=23659 Mar 30 17:22:50 TELL SAMSUNG Mar 30 17:22:51 TO FIX Mar 30 17:22:52 THIER SHIT Mar 30 17:23:32 MY DAD Mar 30 17:23:33 IS NOT Mar 30 17:23:35 A PHONE Mar 30 17:23:44 evancharlton: yeah. a lot is commented out, I just wanted to see if it got the file... I was commenting out stuff trying to get it working. Mar 30 17:24:24 [13:22:44] evancharlton: i liked the third comment " This exact problem is why there's no software for Windows. It's utterly impossible for small developers to write code for such a fragmented platform" Mar 30 17:24:32 dekstop oems dont fuck the windows source code Mar 30 17:24:37 MS delivers all updates Mar 30 17:24:41 etc etc Mar 30 17:25:04 hmmm that time it didn't crash... weird. Mar 30 17:25:16 Eclipse is telling me: "Syntax error on token "execSQL", = expected after this token"... WTF? Mar 30 17:25:46 ricvail: where is the relevant line of code? Mar 30 17:26:50 evancharlton: now it's a different issue... Mar 30 17:26:52 QubeZ it is not complete because I am having some troubles understanding SQL gergon, but.... db.execSQL("CREATE TABLE IF NOT EXISTS"+"MYTABLE"); Mar 30 17:28:09 ricvail: why do you have quotes around MYTABLE? Assuming that is some static final right? Also, that line of code doens't appear to be correct. Mar 30 17:28:15 if you are trying to create a new table that is Mar 30 17:28:46 nono, i just wanted the table to be called "MYTABLE" Mar 30 17:29:46 you probably need a space between EXISTS and MYTABLE Mar 30 17:30:09 ya or why not just "CREATE TABLE IF NOT EXISTS MYTABLE" ? Mar 30 17:30:23 Can I utilize the ADT 17 speed update for emulators on my AMD Phenom II machine? I have Linux and Win 7 Mar 30 17:30:25 why do you separate out the static strings if you have nothing in between? Mar 30 17:30:32 and i know that columns info is missing, but eclipse is not supposed to check sql syntax, at its eyes it is supposed to be a simple string, isn't it? Mar 30 17:30:40 and why not create the columns while creating the table? Mar 30 17:31:36 QubeZ I am working on the colums, I just can't understand yet the syntax. about the separation it was just to go on the next line, i have a small screen. Mar 30 17:32:08 like db.execSQL("create table if not exists MYTABLE (_id integer primary key, blah text)"); Mar 30 17:33:31 yeah, that's the sort of thing i was about to study, but eclipse does not seem to understand the execSQL command. Mar 30 17:33:56 ricvail: Eclipse thinks its you that doesn't understand the execSQL command. Mar 30 17:35:22 does eclipse checks the sql syntax? doesn't it just see an db.execSQL ("text"); method invocation? Mar 30 17:35:33 do you need to add the ; to the end of the string? Mar 30 17:36:01 Zerkz: no Mar 30 17:36:56 private static final String CREATE_MYTABLE = "create table MYTABLE (_id integer primary key autoincrement, title text not null)"; db.execSQL(CREATE_MYTABLE); Mar 30 17:37:20 Can I utilize the ADT 17 speed update for emulators on my AMD Phenom II machine? I have Linux and Win 7 Mar 30 17:38:03 the emu is only for 2.2 -- i was disappointed. Running android-x86 in VMWare Fusion now. Mar 30 17:38:08 for ICS Mar 30 17:38:13 android-x86.org Mar 30 17:38:36 on the second line it says : Multiple markers at this line - Syntax error on token(s), misplaced construct(s) - Syntax error on token "CREATE_MYTABLE", VariableDeclaratorId expected after Mar 30 17:38:38 how is that for debugging? Mar 30 17:38:53 android-x86 + virtualization Mar 30 17:39:06 But is it fast? I mainly wanted to test tablet-sized displays. Mar 30 17:39:08 should ids be unique application wide? Mar 30 17:39:20 can i do the virtualization with my phenom II processor? Mar 30 17:39:44 wongk: just started playing with it a few days ago, haven't debugged an app in the vm env. I just use it because ICS is so slow on the reg emu. I debug directly from a real device. Mar 30 17:40:13 ricvail: paste your code Mar 30 17:41:21 QubeZ: http://pastebin.com/yBJCcJzU Mar 30 17:41:47 wongk: i think it should work with adb over tcpip, right? Mar 30 17:42:01 i have been meaning to set this up myself Mar 30 17:42:06 i am not sure Mar 30 17:44:24 What parser would you suggest me to use to parse this king of xml: http://www.google.com/ig/api?weather=London Mar 30 17:45:31 i personally prefer XmlPullParser Mar 30 17:46:13 so, any hint Mar 30 17:46:18 ? Mar 30 17:46:36 xml... :( Mar 30 17:47:36 ricvail: that code isn't in a function Mar 30 17:47:44 it's floating in your class Mar 30 17:48:16 and in addition, im not sure you can write to the DB by just opening... i thought you needed to get a handle to the getWritableDatabase(): ? Mar 30 17:48:21 oh, god... I am so stupid O.o Mar 30 17:48:54 wongk: good catch, hard to see sometimes on things like pastebin Mar 30 17:51:42 sup dogs Mar 30 17:51:52 hey Mar 30 17:51:54 chillin like a villian Mar 30 17:52:03 mikedg_, you missed the guy who's tracking flying pigs with an app Mar 30 17:52:03 :) Mar 30 17:52:10 lol Mar 30 17:52:12 They do not fly. Mar 30 17:52:19 they do today Mar 30 17:52:22 i bought an ipod touch Mar 30 17:52:30 and plan to use it as my primary device until the next iphone Mar 30 17:52:36 However, they do scuffle. And it could possibly also track deer. And the emulator sucks for any testing involving the Location API. Mar 30 17:52:50 kamoricks: ya it does Mar 30 17:57:10 So... if i set a column as primary key with autoincrement, how should I do to add values? that column's values are set automatically, so should i just skip it? I think I need a good SQLite tutorial -.- Mar 30 17:57:43 ricvail: you just insert values into the other fields like title in that example I gave you. Mar 30 17:57:59 ok Mar 30 17:58:01 you will get a returned value from that .query(...) which is the rowId of that row that was inserted Mar 30 17:58:22 the _id should be your primary key and it will autoincrement as you insert into your db Mar 30 17:58:40 ricvail: http://mobile.tutsplus.com/tutorials/android/android-sqlite/ Mar 30 17:58:49 it says 60 minutes, spend that much time on it. Mar 30 18:00:07 thank you QubeZ really Mar 30 18:00:29 no worries Mar 30 18:00:49 Can I ask who runs this chat? Mar 30 18:01:07 Just wondering, as it and everyone in it have been so helpful during my project, wanted to say thanks. Mar 30 18:01:18 NutterzUK: the community Mar 30 18:01:20 freenode :P Mar 30 18:01:32 oki,.... all: thanks :) Mar 30 18:07:52 pfn: does qicr support znc? Mar 30 18:09:05 yes, using it right now Mar 30 18:14:52 does it support swap? Mar 30 18:15:05 or swizzle? Mar 30 18:15:18 does it blend? Mar 30 18:16:08 SimonVT: ratatata Mar 30 18:17:02 what are swap and swizzle Mar 30 18:17:20 i dont know i made them up, but they sound like good names for something irc related Mar 30 18:17:28 * pfn gets to work Mar 30 18:17:31 not Mar 30 18:17:32 :) Mar 30 18:17:35 http://blog.flurry.com/bid/83604/For-Generating-App-Revenue-Amazon-Shows-Google-How-to-Play Mar 30 18:17:39 the thing i hate about ios most is that you have to fucking compile the open source apps Mar 30 18:17:48 they all fucking cost money in the app store :/ Mar 30 18:17:54 and you need to be jailbroken to install them Mar 30 18:18:05 no Mar 30 18:18:11 you just deploy Mar 30 18:18:26 eh? Mar 30 18:18:44 you can create a self signed cert for deployment Mar 30 18:18:51 its a pain in the ass, but possible Mar 30 18:19:08 joe schmoe has an easier time jailbrekaing though Mar 30 18:19:59 i've got a great app idea Mar 30 18:20:10 "Hammer" -- easily use your phone to drive nails into a wall. Mar 30 18:20:41 readme: With fart noises when you hit the nail? Mar 30 18:21:00 SimonVT: i was thinking i'd make hammer noises, I want to keep it tasteful Mar 30 18:21:07 Meh, not interested Mar 30 18:21:47 http://news.ycombinator.com/item?id=3775400 about java's future Mar 30 18:22:09 i am enjoying this touch much better than I expected Mar 30 18:22:22 twss Mar 30 18:23:48 "A timeline provided in the presentation has JDK 9 arriving in 2015, JDK 10 in 2017, JDK 11 in 2019, and JDK 12 in 2021." Mar 30 18:24:02 if i am still writing java in 2021 ... Mar 30 18:24:38 what will be bad about it? if they add the features it will be fine Mar 30 18:25:19 people still write C, and it's 2012 Mar 30 18:25:35 they are call zealots Mar 30 18:25:41 not really Mar 30 18:25:44 C does have a niche Mar 30 18:25:54 the original niche it had, even :) Mar 30 18:25:55 it has a niche like i got an itch Mar 30 18:26:14 also, JDK is also related to JVM Mar 30 18:26:24 and yes, people will be using that, just like they are still using COBOL Mar 30 18:27:05 since Java has the #1 spot in the tiobe index, I seriously doubt it's even going to scratch the surface of "the next cobol" in the next decade Mar 30 18:28:41 mikedg_: So what you're saying is, C is here to stay? Mar 30 18:29:48 COBOL is here to stay. Mar 30 18:30:29 C is actually a really great language. So is COBOL. for what they were meant for. Mar 30 18:32:18 I write all of my apps in Forth Mar 30 18:32:34 I write all of my code in assembly Mar 30 18:32:37 C was also quite seriously made as a balance between "stuff high level enough to write in" and "easy to translate into assembly by hand", to be used as portable assembler for other languages Mar 30 18:32:38 haters gonna hate Mar 30 18:32:43 FORTH <3 IF HONK THEN Mar 30 18:32:47 lol Mar 30 18:32:47 hahahaha Mar 30 18:33:19 i think its fair to say most people in here use java Mar 30 18:33:47 even if not by choice :P Mar 30 18:33:49 only when dealing with Android and university homework Mar 30 18:34:21 Any idea why http://pastebin.com/vtu36myT would be failing? Mar 30 18:34:24 and with android... there's little, as I've been mucking around in the underbelly so I had been compiling stuff with uclibc ;) Mar 30 18:34:46 LogCat adds an error that says "set months" for tag "DatePicker" Mar 30 18:43:54 hi, i have a mp4 file which i remuxed to .ts, the mp4 plays fine, the .ts stutters.using the mediaplayer framework. anyone got a hint why and what to do? Mar 30 18:44:31 I'm trying to add a library to a project I'm compiling. do I edit ant.properties? Mar 30 18:45:01 project.properties Mar 30 18:45:09 thanks Mar 30 18:45:43 http://developer.android.com/guide/developing/projects/projects-cmdline.html Mar 30 18:47:13 hi, anyone familliar with robotium here? Mar 30 18:48:27 SimonVT, thx. http://developer.android.com/guide/developing/projects/projects-cmdline.html#ReferencingLibraryProject Mar 30 18:49:15 if I want to add the same thing to four different styles, is there any way to do this other than duplicating the code four times? I cannot modify any bases to these themes. Mar 30 18:50:01 Applify: i've used it before but found it wasn't super useful Mar 30 18:50:13 Nope, abaratican Mar 30 18:50:14 scrolling listviews is where it starts to not be sufficient Mar 30 18:50:21 sad panda. Mar 30 18:50:28 yo dawg, i heard you like scrolling Mar 30 18:50:41 would you know how to get it to select a menu option that is inside the 'more' option? Mar 30 18:50:42 requestDisallowInterceptTouchEvent ftw Mar 30 18:50:46 * abaratican stabs canadiancow|work. Mar 30 18:50:48 when we have more than 6 menu items.. Mar 30 18:50:49 sooo.. I got a robot to scroll for you? Mar 30 18:51:01 Applify: in the actionbar? Mar 30 18:51:07 I have not used it with the actionbar Mar 30 18:51:07 no, options menu Mar 30 18:51:13 ive got more than 6 options Mar 30 18:51:18 oh, i see Mar 30 18:51:33 it cant find the options that overflow into 'more' Mar 30 18:51:39 can't you make it click more, then find them after? Mar 30 18:51:57 That might introduce localization issues... Mar 30 18:52:13 sounds like you have reached the point where it is a waste of time to work on writing a black box test Mar 30 18:52:29 i see :P Mar 30 18:52:35 I reached it quickly after writing about three of them, last time I used it Mar 30 18:52:45 it was fun, i'll give it that Mar 30 18:53:22 ok aparently you can provide a second argument to the menu clicking function which is supposed to go into the submenu if it exists Mar 30 18:53:33 not bad Mar 30 18:53:36 but it wont work Mar 30 18:53:37 :( Mar 30 18:53:56 Applify: just read some of their code and after a glance it seems to use android.app.Instrumentation for the automatic tests Mar 30 18:54:34 I am using the instrumentation tests Mar 30 18:55:12 problem is that it cant find menu options more than 6 Mar 30 18:55:15 how do I fetch exactly one result/ one row from an sqlite database, is there a function for this or do I have to write my own? I currentyl use a DatabaseHelper Mar 30 18:55:36 DarsVaeda: Make a query that only matches one row Mar 30 18:55:48 Or use limits Mar 30 18:58:01 still I have to do mCursor.getInt(mCursor.getColumnIndex("name")); or at least thats what I came up with Mar 30 18:58:03 anyone know where i can buy an official car/desk dock for a gsm galaxy nexus (maguro) ? Mar 30 18:58:38 DarsVaeda: i think you are confusing rows with columns Mar 30 18:58:56 no not really Mar 30 18:59:12 DarsVaeda: then why are you mystified by the fact that even if you use LIMIT 1 that you need to select the column? Mar 30 18:59:27 Hi I'm using a TabHost and my tab captions are written right across the icons. What's the least hacky way to get them below the icons? Mar 30 18:59:42 canadiancow|work: I am teh smart.. You know how I complained lint included lib projects. Well, I just added a lint.xml to the library project that ignores ALL the checks Mar 30 18:59:45 because I only have one column, so its stupid to get the index Mar 30 18:59:54 lol Mar 30 19:00:08 or well, just the ones that annoyed me so far Mar 30 19:01:30 DarsVaeda: if you only have 1 column, why not just pass 0? Mar 30 19:01:43 DarsVaeda: according to the docs.. the index is zero based Mar 30 19:02:01 here's a good reason, don't pass zero so when some numbskull modifies your code later it is less likely to be broken. Mar 30 19:02:02 thats what I tried but that throw an error that there is no such index or like that Mar 30 19:02:23 also what readme says Mar 30 19:02:25 really that getColumnIndex good practice Mar 30 19:02:59 ok I take that as there is no such function :P Mar 30 19:19:53 I read a few places that I could decompile apk file to source file with some tools. is this possible to some extent that I can read the source code of any library? Mar 30 19:20:25 pretty much, yes Mar 30 19:21:34 awesome! Mar 30 19:26:48 has anyone else had trouble accepting the new DDA terms for google play? Mar 30 19:27:04 every time i click accept it just reloads the stupid terms Mar 30 19:27:16 at https://play.google.com/apps/publish/ddaUpdate Mar 30 19:27:40 therefore i cannot get to my developer home page Mar 30 19:27:49 and therefore i cannot update my application to work in google play Mar 30 19:31:09 i've tried this in chrome and firefox on both osx and linux, as well as safari Mar 30 19:31:14 same behavior across all browsers Mar 30 19:34:54 hi Mar 30 19:35:01 is any one there? Mar 30 19:36:25 if you have a question.. just ask it Mar 30 19:37:04 yeah i actually needed some input on possible ways to reschedule AlarmManager Mar 30 19:37:08 maybe that was his question Mar 30 19:37:14 conspiracykeanu.jpg Mar 30 19:38:59 im working on a profile switcher application and i ran into the phone sleeping and TimerTask not executing issue, and after researching it was said to use AlarmManager as a work around...and i have started making the changes, but the issue im running into now is the ability to reschedule the AlarmManager Mar 30 19:39:48 you still haven't explained your problem or asked a question :) Mar 30 19:39:52 you schedule alarms; you don't schedule the alarm *manager* :) Mar 30 19:39:57 also: don't use timertask Mar 30 19:40:21 alarms handled through the Alarm Manager are either one-shot or periodic repeating Mar 30 19:40:50 ya i have removed TimerTask totally now...also ctate, im using this: am.setRepeating(....) Mar 30 19:41:07 okay, that should be a periodic repeating alarm Mar 30 19:41:50 yup...one of the parameters in this is long interval...i need a way to reschedule this interval depending on my user stored profile schedule Mar 30 19:41:59 you cannot change the interval Mar 30 19:42:09 all you can do is cancel the alarm and schedule a new one Mar 30 19:42:23 frequently what people choose to do is to simply use one-shot alarms, always Mar 30 19:42:39 and schedule the next alarm as part of handling each one going off. Mar 30 19:43:43 that's what I do... Mar 30 19:44:09 I don't! Mar 30 19:44:21 i use setInexactRepating Mar 30 19:44:32 ok, so say u have one-shot alarm starting from ur main acitivity, then a service runs, then ones the one-shot expires, does the control come back to the main acitivty in which i can schedule a new one? Mar 30 19:44:39 QubeZ: omg someone does yaaaaaay! :) Mar 30 19:44:47 QubeZ: +1 :p Mar 30 19:44:50 QubeZ: btw it's all fixed these days; it had some icky bugs earlier Mar 30 19:44:53 :) Mar 30 19:45:05 ctate: I use inexact! :( Mar 30 19:45:06 no love Mar 30 19:45:10 works like a champ for me dude Mar 30 19:45:23 but I mean, for an alarm clock I'd obviously not use it Mar 30 19:45:32 haha Mar 30 19:45:37 That could be fun Mar 30 19:45:42 actually, I probably could because it doesn't matter if it goes off at 5:45:00 or 5:46:15, generally Mar 30 19:45:48 the bug on earlier releases (until hc?) is that it would accidentally align with wall clock in some circumstances Mar 30 19:45:50 or 6:00:00, really Mar 30 19:45:50 Market it as "Inexact Alarm Clock" Mar 30 19:46:04 I only use it for scheduling Gtasks Sync Interval in To Do Mapr Mar 30 19:46:32 so if you had a few tens of thousands of installs all using inexact repeating alarms to hit a network service, you'd see massive qps spikes because they'd inappropriately be wall-clock aligned Mar 30 19:46:33 oops Mar 30 19:46:33 all of the alarm's I use that are exact, are non-repeating. I'd do what ctate said for recurring -- set the next one after one goes off. Mar 30 19:46:36 i fixed it Mar 30 19:47:12 [the bug i'm describing was fixed in 3.1, i believe] Mar 30 19:47:23 glad thats fixed but i dont care when they hit Google Tasks service :) Mar 30 19:47:32 I will when they hit my web service though hehe Mar 30 19:48:19 anyway, in current versions, inexact repeating is nice because it saves a little battery Mar 30 19:48:33 its a good feature Mar 30 19:48:50 (by batching together peoples' wakeups, not having to spin up the cpu / radios / etc separately for every alarm customer) Mar 30 19:50:03 up to 300 installs of To Do Mapr in 20 days... w/o marketing. I wonder if that is good. Mar 30 19:54:28 In my application I have just 1 integer value I need to save when the onPause method is being called in my acitvity. Should I save this integer o a temporary file that lives only during the application running time or are there better methods for storing such information? Mar 30 19:54:37 *to a temp file Mar 30 19:55:00 Shammah: if it's just useful while your app is alive, stick it in a static? Mar 30 19:55:05 saved for how long? Mar 30 19:55:48 until the activity is resumed, or across application launches? Mar 30 19:55:55 do you mean to save it in case the user pulls the battery, reboots the phone, and then launches the app again? Mar 30 19:56:07 or just in case the app gets resumed again soon? Mar 30 19:56:08 Meh, stuff like when my orientation changes Mar 30 19:56:11 or when the phone gets locked Mar 30 19:56:13 onSaveInstanceState() Mar 30 19:56:18 I think static would be a good one actually yeh Mar 30 19:56:19 is your friend Mar 30 19:57:32 also you might want to re-read the lifecycle docs again to renew your acquaintance with what exactly happens, when it happens, and in what order. :) Mar 30 19:57:34 if your app leaves the foreground, there's a chance it will be killed, static isn't sufficient Mar 30 19:57:46 http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Mar 30 19:57:54 and http://developer.android.com/reference/android/app/Activity.html#ProcessLifecycle Mar 30 19:57:55 So many lint warnings, so little time Mar 30 19:58:24 Hello Mar 30 19:58:25 Oh okay, thanks guys! I'll be doing some rwading then :) Mar 30 19:58:42 *reading Mar 30 19:59:13 I have a strange problem Mar 30 19:59:29 Q: I want to have a certain text template (template.txt) to be saved locally and the loaded by App and shown within WebView. Whats a proper place/location to save "helper" files? Mar 30 19:59:33 I am usign Viewpager Mar 30 20:00:09 in the page adapter I have two elements that are the same ... but only the one in the first position is actualizating Mar 30 20:00:43 but I am returning in instantiateItem the same View Mar 30 20:04:15 hello? can someone help me? my activity crashes, and i have no idea why... Mar 30 20:04:35 http://imgur.com/jacoj Mar 30 20:04:50 http://pastebin.com/5P1UUiJj here it is Mar 30 20:05:26 wait Mar 30 20:05:43 ricvail: Did you check logcat? That gives you a stacktrace. Mar 30 20:05:51 what is a stacktrace? you mean logcat? Mar 30 20:05:53 ok Mar 30 20:06:01 ricvail, check L and T for null Mar 30 20:06:10 Does anyone know if the PDU returned from SmsMessage.getSubmitPdu(...).encodedMessage is in the same format as the PDU returned from a broadcast to "android.provider.Telephony.SMS_RECEIVED"? Mar 30 20:06:13 ricvail, check L and T and 'add' for null Mar 30 20:06:21 Or. Read the error. Mar 30 20:06:51 Q: I want to have a certain text template (template.txt) to be saved locally and the loaded by App and shown within WebView. Whats a proper place/location to save "helper" files within the project to load them afterwords? Mar 30 20:07:08 silur: your app's data directory seems appropriate Mar 30 20:07:32 silur: assets Mar 30 20:07:55 oh, within the project Mar 30 20:07:57 woops Mar 30 20:08:15 wongk, so that would be MyProject/data ? or MyProject/assets ? I need to package few files together with app in there and then read them Mar 30 20:08:36 listen to evancharlton Mar 30 20:08:50 evancharlton, thanks! Mar 30 20:08:51 humm... i need some help, how do I "add" for null? Mar 30 20:09:06 where is the stack trace? Mar 30 20:09:11 if (add == null) { BLOW UP! :) } Mar 30 20:09:32 ricvail: what? Mar 30 20:09:49 Is there any storage mechanism to avoid? I mean, on a desktop, saving to file means disk storage means big overhead, but on a phone, saving to file doesn't really involve a spinning hard disk, so there's nothing to lose. Or am I retarded? Mar 30 20:10:02 o_O Mar 30 20:10:05 ricvail: you talking SQL still? Mar 30 20:10:06 .. what Mar 30 20:10:20 freecandy: writing the NAND can still take a significant amount of time Mar 30 20:10:23 freecandy: saving to internal storage is still an order of magnitude slower than keeping things in memory Mar 30 20:10:38 lov: at least Mar 30 20:10:47 the internal storage may just be a soldered SD card. Mar 30 20:10:49 Qubez, the problem this time seems to be with programmatical layout Mar 30 20:11:13 QubeZ, for popoulating the linearlayout in the scroll view Mar 30 20:11:15 we dont understand the question Mar 30 20:11:27 hm. So how do you deal with things you definitely want stored even if the user takes the battery out unexpectedly? Mar 30 20:11:41 you write them to a file on the disk Mar 30 20:11:41 o_O Mar 30 20:11:49 k Mar 30 20:12:05 freecandy, onUserBatteryAboutToBeRemoved () Mar 30 20:12:28 (typically in onPause() or onStop() ) Mar 30 20:12:44 I like silurs solution more Mar 30 20:12:51 :P Mar 30 20:13:37 Can you tell me how do I exactly post logcat messages? I never did that before. Mar 30 20:13:59 ricvail, Log.d ("RICVAIL", "Yay!"); Mar 30 20:14:03 import android.util.Log; Mar 30 20:14:33 Log.{v,d,i,w,e}(String tag, String message); Mar 30 20:14:51 i mean, how I post them here, on freenode, since my app is crashing and I need help Mar 30 20:14:56 v/d/i/w/e are verbose/debug/info/warning/error, levels you can assign to the message for filtering hint Mar 30 20:15:04 copy them from your terminal or IDE Mar 30 20:15:07 paste them into pastebin Mar 30 20:15:10 put them on pastebin.com or similar Mar 30 20:15:12 post the link here Mar 30 20:15:32 just like you did for your source code copy/paste Mar 30 20:17:04 http://pastebin.com/ZThhFgDA Mar 30 20:17:16 here are the last messages Mar 30 20:17:38 com.ricvail.SimpleNotes.SimpleNotesActivity.onCreate(SimpleNotesActivity.java:22) Mar 30 20:18:25 16:21 <@ctate> Log.{v,d,i,w,e}(String tag, String message); <-- I couldn't get that to compile; are you sure that's right? Mar 30 20:18:31 NullPointerException Mar 30 20:18:33 * ctate | Caused by: java.lang.NullPointerException ... at com.ricvail.SimpleNotes.SimpleNotesActivity.onCreate(SimpleNotesActivity.java:22) Mar 30 20:18:35 bingo Mar 30 20:18:36 yea ctate, me too Mar 30 20:18:46 evancharlton: don't. just don't. Mar 30 20:18:58 lol Mar 30 20:18:59 arent { and } only used for if statements and classes? Mar 30 20:19:05 what do they mean in a method call? Mar 30 20:19:12 don't you start, either. Mar 30 20:19:16 <3 Mar 30 20:19:20 you can use them as scope operators Mar 30 20:19:21 * ctate . o O ( geez, tough crowd ) Mar 30 20:19:27 canadiancow|work: the regex expression ctate built is a class so { } is correct Mar 30 20:19:33 its just a class of regex Mar 30 20:19:36 =) Mar 30 20:19:46 i like how there are multiple people here who think i truly don't understand Mar 30 20:19:49 QubeZ: he knows. Mar 30 20:19:52 trust me, he knows. Mar 30 20:19:59 i know he knows Mar 30 20:20:05 but does he know that I know that he knows Mar 30 20:20:36 everybody knows -- well except ricvail Mar 30 20:21:27 wait what? Mar 30 20:21:34 see Mar 30 20:21:52 QubeZ: hush. Mar 30 20:22:43 I'm sorry, I'm quite sleepy but I want to get this to work before i go to bed... Mar 30 20:22:48 So i wonder if I have: /raw/test.txt and /raw/test.mp3 , what would "R.raw.test" will refer to? Mar 30 20:23:37 i'd hope that it doesn't compile Mar 30 20:23:47 so, here is the full log of a single execution of my app : http://pastebin.com/6qcrF7QH Mar 30 20:24:04 ricvail: we got it, we already pointed you to the error Mar 30 20:24:11 and the line on which it occurs Mar 30 20:24:39 yeah, but i posted my code aswell and it seems to be correct Mar 30 20:24:56 where would i find /data/anr/traces.txt ? Mar 30 20:24:56 oh, now you have a different exception, what did you change? Mar 30 20:25:14 ya diff exception, he's not referencing his Button properly or something Mar 30 20:25:38 canadiancow|work: /sdcard/notanr/txt.traces Mar 30 20:25:46 that log was from an execution with a commented line, just to chek where it got wrong Mar 30 20:26:06 Hi. I'm trying to use Spinner.getSelectedItem().toString() in an if statement, but it never evaluates true. Help? Mar 30 20:26:32 Remember to compare strings with == Mar 30 20:26:39 heh Mar 30 20:26:47 hmm, I have an activity in my manifest, SomeClass$Activity, and it appears android:label is not respected for it. Mar 30 20:27:00 i don't think it is fault of what you use inside the if statement if it does not evaluates true... Mar 30 20:27:21 lol Mar 30 20:27:31 canadiancow|work: you have to use .equals() method for strings. Mar 30 20:27:39 oh ok Mar 30 20:27:47 but .equals() wants a parameter Mar 30 20:27:50 canadiancow|work: i know, sorry dude. Just having fun here :) Mar 30 20:27:55 quit being ridiculous :P Mar 30 20:28:44 this is no place for fun! Mar 30 20:29:17 this is irc, back to idling! Mar 30 20:29:41 so, what about my button being not referenced well?, it worked before, then i changed the settings for the scroll view to avoid it going under the button, and CRASH! Mar 30 20:29:55 abaratican: Strongly consider whether you actually want inner classes to be referenced in the manifest (you almost certainly don't....) Mar 30 20:30:07 ricvail: we need more info that than, paste your layout and paste the portion of code where you reference your button Mar 30 20:30:29 http://pastebin.com/5P1UUiJj this is the class Mar 30 20:30:30 lov: static inner class, for a specific use-case. Mar 30 20:30:33 ricvail: multiple people pointed out that the crash log told you wehre the bug was happening: Mar 30 20:30:35 * ctate | java.lang.NullPointerException ... at com.member:ricvail.SimpleNotes.SimpleNotesActivity.onCreate(SimpleNotesActivity.java:22) Mar 30 20:30:46 bah stupid reformatting by irc client Mar 30 20:30:58 anyway, what does SimpleNotesActivity.java look like? and specificalily, what's going on leadin gup to line 22? Mar 30 20:30:58 abaratican: static inner class can easily become a nice simple outer class Mar 30 20:31:09 ctate: he changed his code, there is another error he posted Mar 30 20:31:14 oh missed that Mar 30 20:31:22 sorry! Mar 30 20:31:40 so last night, i wanted to update the bootloader and radio on my maguro (i use CM9) Mar 30 20:31:41 lov: yep, and in my specific case it's far clearer to group them.. but design paradigms aside, i think there's a bug when using inner classes in the manfiest with regard to labels. Mar 30 20:31:46 fastboot flash boot newbootloader.img Mar 30 20:31:49 that caused issues Mar 30 20:31:53 apparently boot != bootloader Mar 30 20:31:53 so it says it's crashing on a null pointer on line 18 Mar 30 20:31:54 and line 18 is Mar 30 20:31:56 * ctate | LinearLayout l = (LinearLayout)findViewById (R.id.LinearLayout1); Mar 30 20:32:02 so findViewById() is returning null Mar 30 20:32:03 lawl, canadiancow|work Mar 30 20:32:07 http://pastebin.com/aDQhTiqE Mar 30 20:32:11 the layout Mar 30 20:33:07 hm. i wonder whether this is eclipse bieng confused and not fully rebuilding Mar 30 20:33:16 just for giggles, 'clean' your project and rebuild from scratch Mar 30 20:33:35 you mean recompile it? Mar 30 20:33:47 yes Mar 30 20:33:57 your stack trace doesn't match your code Mar 30 20:34:03 already did a couple of times Mar 30 20:34:05 Project -> Clean and Project -> Build Mar 30 20:34:08 i will try again Mar 30 20:34:19 ctate, i have no "Clean and Project" option under "Project" Mar 30 20:34:30 wongk: oh good call Mar 30 20:34:32 maybe my eclipse is out of date Mar 30 20:34:48 ricvail: yeah, what wongk said -- the lien numbers printed in the log do not match the source code you posted Mar 30 20:35:09 (for example, there's no mention of 'Button' on line 18) Mar 30 20:36:11 what kind of sorcery is this? it started Mar 30 20:36:39 and with the correct layout! Mar 30 20:37:00 well, thank you guys o.O Mar 30 20:38:41 :) Mar 30 20:39:18 ricvail: which environment are you using? Mar 30 20:39:37 eclipse Mar 30 20:39:51 adn my phisical device Mar 30 20:40:13 a samsung galaxy s Mar 30 20:41:00 For views that I'm going to show and hide repeatedly, Should I just .setVisibility() on them when I need to? Currently I'm doing something like v.removeAllViews() and reinflating them... which I think is causing a bunch of GC_CONCURRENT calls Mar 30 20:41:05 i used to have to clean out my /bin and /gen directories whenever i made changes to resources in my project. i guess eclipse is similar. for some reason i've never had to do that with IntelliJ. Mar 30 20:41:22 try it sometime. Mar 30 20:41:45 yeah, i learnt the lession XD Mar 30 20:42:48 sureaint: yeah, just hide/show them Mar 30 20:44:03 sureaint: YES, please do that instead. Mar 30 20:44:21 oh good grief Mar 30 20:44:22 hey, I just imported an android project from Git and it seems my build path is messed up, anyone have an idea what might be wrong or can point me in the right direction? Mar 30 20:44:49 yeah, definitely just make them hidden, or fully 'gone' if you need the space to be relaid out Mar 30 20:44:54 but never ever actually re-inflate the layout Mar 30 20:45:04 that is hideously expensive Mar 30 20:45:40 hey hey, it's easier to do that while prototyping. Also, I'm not sure how I'd go about doing this for several views which I'll keep updating the data on. (I was looking at HorizontalListView that's floating around on the web but...) Mar 30 20:45:58 Chipmonkpyro: build.xml file, change the line to point to your sdk. should fix it. Mar 30 20:46:16 sureaint: sureaint Mar 30 20:47:42 moonlightcheese: excuse my naivety but where might I find this file? Mar 30 20:47:44 Dammit, I didn't expect people to keep flipping my name like that. Mar 30 20:48:04 Chipmonkpyro: in the root of the project directory. Mar 30 20:48:22 sureaint: suredidn't Mar 30 20:48:57 hi, I'm tring to load an image from the sd card with bitmapfactory.decode file. When I try to decode with the justBounds option, it returns null. When I try to decode the actual image, it returns with size -1x-1. The path I'm using is an absolute path and I make sure it exists with file.exists(). What am I doing wrong? Mar 30 20:49:07 Chipmonkpyro: sorry, i told you the wrong file. it's local.properties. Mar 30 20:49:14 how do i find int resid for textview.setTextAppearance(this, resid), co make it a large text? Mar 30 20:49:40 ricvail: resid is a resource id that you supply. Mar 30 20:50:14 i know, but where do i find it? the docs do not say it Mar 30 20:50:30 i mean, i can't just tell "1" Mar 30 20:50:37 "Sets the text color, size, style, hint color, and highlight color from the specified TextAppearance resource." Mar 30 20:50:57 i have to know wich number is going to turn that text in a large text... Mar 30 20:51:31 oh ok, i got it. Mar 30 20:51:47 how do i create a text appearance resource? Mar 30 20:52:01 moonlightcheese: The file doesn't even seem to be there (probably the problem in the first place), but what I'm curious about is that the project isn't even in my normal projects folder but rather in my my Git folder. Is that supposed to be the case or did I do something wrong during the clone process? Mar 30 20:52:31 ricvail: xml: http://developer.android.com/guide/topics/ui/themes.html Mar 30 20:52:45 tnx ^^ Mar 30 20:54:04 moonlightcheese: I've gtg but if you think you know where I messed up just link me the appropriate tutorial or where I messed up. Thanks for the help in advance (leaving IRC open). Mar 30 20:54:55 Chipmonkpyro: well, the build.xml file is supposed to reference the local.properties file by default afaik, so if it's not in local.properties, it may be a custom build.xml needs to be set there. Mar 30 21:10:28 dialog fragments with callbacks are highly annoying Mar 30 21:11:13 why Mar 30 21:11:51 because when the orientation changes, i have to reset the callback in the new activity Mar 30 21:12:07 Reset the callback? Mar 30 21:12:27 set it to a new object Mar 30 21:12:32 how can i structure the code (onClick method and initialisation ...) for my 48 buttons? (in the xml-layout they are grouped in 6 "fields" of 2 rows of 4 buttons a row ... is there any way to handle all this other than a lot of copy and paste? (arrays of arrays of buttons?) Mar 30 21:12:39 Just implement the callback interface on your activity Mar 30 21:12:55 Keep a reference in onAttach Mar 30 21:13:13 i would still have to "reset" it Mar 30 21:13:24 but i could do that in on attach Mar 30 21:13:50 but the fragment class has to assume the calling activity implements the callback Mar 30 21:13:57 then Mar 30 21:14:05 yes Mar 30 21:14:12 But it's insta-fail if it doesn't Mar 30 21:14:35 i am choosing the lesser of 2 evils here :P Mar 30 21:14:48 I'd say onAttach is the lesser of 2 Mar 30 21:15:51 either way, my original point stands :P Mar 30 21:16:26 Not really Mar 30 21:16:39 With your approach you have to check in onCreate if the dialog exists Mar 30 21:16:48 Set the callback Mar 30 21:16:54 Plus set the callback when you create the dialog Mar 30 21:17:09 With my approach you just keep a reference to the activity when onAttach is called Mar 30 21:17:13 Rest is managed by the framework Mar 30 21:17:30 but neither approach is desirable Mar 30 21:17:36 in my opinion Mar 30 21:17:52 yours is just less work Mar 30 21:23:12 hello all , i have sgs2 i did upgread it to ICS , I9100XWLP3 (4.0.3) - O2 (UK) but i have a problem that the wirles indicator is freezing some times , but the internet is working , but any way it is disturbing me . any advice Mar 30 21:23:23 Surfer2010: think "for(View : ViewList) { setOnClickListener() } Mar 30 21:23:37 beshoo: wrong channel Mar 30 21:23:45 please gide me ! Mar 30 21:23:51 #android, #android-root Mar 30 21:23:56 thank you Mar 30 21:25:35 Quick question is a fragmentactivity an activity? Or is it a fragment but called fragmentactivity on pre 3.0 devices? Mar 30 21:25:56 check the type hierarchy Mar 30 21:26:02 I suspect you'll find out rather quickly Mar 30 21:27:26 is an activity Mar 30 21:27:28 well someone has no life: http://www.youtube.com/watch?v=wgJfVRhotlQ Mar 30 21:28:39 has anybody here worked with DialogFragments containing a ListView ? Mar 30 21:29:11 i'm attempting to .dismiss() the dialog fragment in the onItemClickListener and it stays on the screen Mar 30 21:33:36 i made my intern sad Mar 30 21:33:40 i commented that he was leaving early Mar 30 21:33:45 he said "dont we get a 1 hour lunch?" Mar 30 21:33:48 things went downhill Mar 30 21:33:57 :( Mar 30 21:34:37 welp! Mar 30 21:35:36 who does he think he works for, foxconn? Mar 30 21:36:23 lolol Mar 30 21:37:34 hey guys. I have an activity that basically needs to use some service that runs on a different thread completely (different class too). I tried using Thread, but apparently in android everything will most likely run on the same thread anyway. What is the best way to accomplish this? a service + AIDL? if so, how do I pass the context into the service? I need to read some stuff from Mar 30 21:37:34 SharedPreferences and to get some paths (like the SD card path etc). Mar 30 21:38:56 Techdeck: that's incorrect. Mar 30 21:39:02 You can run in a different thread. Mar 30 21:39:22 a lot of stuff runs on the UI thread by default, but it is easy to say "run this thing on this other thread i have set up for the purpose" Mar 30 21:39:23 onCreate, onBind, etc for services will run in the same UI thread as activities Mar 30 21:39:31 but you can start a service which then starts a thread and does its work there./ Mar 30 21:39:38 a runnable is a new thread, a service by default will run on the main thread though Mar 30 21:39:52 birbeck: err, no no no no emphatically no. Mar 30 21:39:58 Runnable is just an interface Mar 30 21:39:59 O_O Mar 30 21:40:04 birbeck: Runnible != Thread Mar 30 21:40:06 ^^ Mar 30 21:40:10 yeah Mar 30 21:40:26 bad choice of words Mar 30 21:40:52 a Service, by default, runs its message queue on the same thread as the rest of the components in the process, aka the main thread or the UI thread or the main looper Mar 30 21:41:17 but there are many ways to run things explicitly on other threads. read up on HandlerThread and AsyncTask, to name a couple Mar 30 21:41:53 ctate: on the subject, what is the use case for running your service in a different process? Mar 30 21:42:16 I have a class called CrawlerService and it implements Thread, when I .start()'d it, I noticed that it gets the UI stuck when doing certain operations Mar 30 21:42:21 I could not figure out why that happens Mar 30 21:42:30 so I assumed it's because it's not running in a new thread Mar 30 21:42:37 if the service process needs to run independantly of the foreground UI and the foreground UI is relatively heavy and it'd be good to be able to kill the UI process without disturbing the service process Mar 30 21:42:48 and I also need to communicate between the activity and the service Mar 30 21:42:57 in general it's wasteful of memory to host components in separate processes Mar 30 21:43:11 but on some occasions the tradeoff can be useful Mar 30 21:43:14 ctate: that sounds exactly like the documentation, and seems like should be the default Mar 30 21:43:33 what, to run it in separate processes? Mar 30 21:43:55 if its not bound to an activity Mar 30 21:44:15 ctate, my service's purpose is to be a web crawler, it uses a lot of network and I wouldn't want it to interfere with the UI in any way. I do need to send messages to and from it though. What would you recommend doing? Mar 30 21:44:43 a web crawler app? Mar 30 21:44:57 O_O Mar 30 21:45:03 why are you writing a web crawler on a mobile device Mar 30 21:45:07 that's what the service does... the activity uses some of the crawler data Mar 30 21:45:07 how is this possibly a good idea Mar 30 21:45:28 it's a very specific crawler, not like google Mar 30 21:45:31 Techdeck: read up about handlers, asynctasks, etc Mar 30 21:45:33 exactly what i was thinking, but didnt care to ask why Mar 30 21:45:34 for a few selected sites Mar 30 21:45:37 consider putting the crawling on a server and get notifications via C2D or something Mar 30 21:45:48 Use a threadpool or something Mar 30 21:46:04 I tried using Thread with no luck Mar 30 21:46:27 my UI gets frozen Mar 30 21:46:34 then you did it wrong, as the kids say Mar 30 21:46:51 correct. Now I'm trying to understand what am I doing wrong. Mar 30 21:47:06 java, probably. Mar 30 21:47:20 :> Mar 30 21:47:23 * lov goes to happy hour Mar 30 21:47:25 goodnight Mar 30 21:47:26 funny guy Mar 30 21:47:28 meh Mar 30 21:47:54 Techdeck: if you don't post source, you're unlikely to get very effective help here Mar 30 21:49:16 is it possible to have a arraylist with more than 1 "dimension" ? ... so if i search a certain element in this arraylist, i will get like "3 koordinates" back? Mar 30 21:49:21 I was asking a conceptual question, nothing specific to my code. Just wondering what would be the best way of implementing what I want whether it's a service, Thread, Runnable, AsyncTask or whatnot Mar 30 21:50:21 it depends on the things specific to your code, really :) Mar 30 21:50:27 hah :) Mar 30 21:50:41 all of the Android conveniences are built on top of Thread; that's the Java-language low level building block Mar 30 21:50:53 but it's famously hard to write solid multithreaded code Mar 30 21:51:03 so the conveniences exist: Mar 30 21:51:11 Looper/Handler for message-queue type behaviors Mar 30 21:51:37 AsyncTask to push a single chunk of work off onto a worker thread, with callbacks for progress reporting/monitoring etc if desired Mar 30 21:51:42 etc Mar 30 21:52:24 can I give you an example of a scenario I want to implement and you'll tell me what should I use ideally? Mar 30 21:52:41 sure Mar 30 21:53:50 like I said before, I have a service called CrawlerService. Let's say it crawls google images. On the UI (activity) side, all the user can do is tap on the image to get to the next image. Every time I crawl google images, I bring 10 items. Say the user already saw 7 of the pictures, I would like to then crawl some more items in the background. Mar 30 21:54:36 okay, so pretty clearly you want a Service to be the crawler, the thing going out and getting data nad arranging it for the UI to use etc Mar 30 21:54:46 what I have today is a CrawlerService which is a thread, and an Activity. The activity runs crawlerServiceInstance.getHandler() and then it .start()'s it. Then I communicate with Messages using the handler. Mar 30 21:55:00 for some reason, the UI gets frozen every now and then. I thought it was because it's running on the same thread somehow. Mar 30 21:55:25 and in order to be asynchronous w.r.t. the UI, that service should run its work on a non-UI thread. It's trivial to set up your own HandlerThread for that; it acts just like the main/UI thread [i.e. you can post messages to it, post Runnables to it, etc], but is a separate cpu thread. Mar 30 21:55:51 it also sounds like you're unclear on what exactly a Handler and Looper are :) Mar 30 21:56:05 possibly Mar 30 21:56:32 a Looper is a message-queue worker thread. Mar 30 21:56:46 messages and runnables are posted to the queue, and are handled / executed in serialized order. Mar 30 21:56:48 ok what you say makes sense. So instead of using process="...whatever..." in AndroidManifest.xml on the service, you suggest using ThreadHandler? Mar 30 21:56:59 a Handler is the interface to be able to post messages/runnables to a Looper thread Mar 30 21:57:06 HandlerThread I mean, sorry Mar 30 21:57:20 they are multiplexed: many Handler instances can point to the same Looper thread, all being serialized in that Looper's queue Mar 30 21:57:34 ah Mar 30 21:57:34 but they are isolated from one another Mar 30 21:57:49 so that's probably why I had the freezes? Mar 30 21:57:54 you can instantiate a handler and post work through it wihtout knowing or caring what other handlers are directing work to the same Looper Mar 30 21:58:06 how do you do that? Mar 30 21:58:12 a Service by default sends work to the application's main looper Mar 30 21:58:15 just like the UI does Mar 30 21:58:32 so in order to override it I need to change the proccess attribute in AndroidManifest? Mar 30 21:58:37 http://developer.android.com/reference/android/os/Handler.html Mar 30 21:58:50 you don't need to use a whole separate *process* Mar 30 21:59:01 oh, you're right Mar 30 21:59:17 you just need your sevice to do something like set up a new HandlerThread, and use *that* instead of the default looper. Mar 30 21:59:25 awesome Mar 30 21:59:28 thanks a lot man! Mar 30 21:59:31 I will read up on it Mar 30 21:59:41 and read up on Android execution model etc, yeah :) Mar 30 21:59:48 will do! Mar 30 22:00:36 ctate: what would you say is the most common roadblock for new android developers? Mar 30 22:01:09 not knowing Java well enough -- i know, not intended for me Mar 30 22:01:17 yeah, maybe that Mar 30 22:01:30 lets say they are a mid-senior java dev Mar 30 22:01:38 thats certainly my main road block... im still n00b Mar 30 22:01:43 just set up eclipse and adt and developing their first android project Mar 30 22:01:48 an awful lot of the questions that float through here regularly boil down to "you didn't read the docs" Mar 30 22:02:05 beyond that sort of thing i dunno if there's any one thing, really Mar 30 22:02:09 specifically layouts? or ? Mar 30 22:02:34 there is a lot of different functionality in Android, and a lot of it is fairly ... well, *big* -- lots of aspects to it, lots to learn your way around Mar 30 22:02:44 in that way it isn't really any different from any system Mar 30 22:03:04 i gotta say im impressed overall with the framework Mar 30 22:03:16 sometimes it becomes clear that our docs could use some work, and we try to remedy that as we discover it Mar 30 22:03:16 the complexity with android comes in mixing concurrency with contexts that have life cycles that transcend the jobs Mar 30 22:03:35 g00s: yeah, thats a bitch Mar 30 22:03:50 one area where many people seem to trip is wanting to assume that process == application Mar 30 22:03:58 like handling progress dialogs across an activity restart Mar 30 22:04:05 which is really not at all the case in Android Mar 30 22:04:18 birbeck: yeah, stuff like that Mar 30 22:04:23 but people don't want to believe that it isn't the case :) Mar 30 22:05:06 http://news.ycombinator.com/item?id=3777573 i would be in the 10pm - 2am group :) Mar 30 22:05:13 reason i ask is my work wants me to do a brown bag developer workshop Mar 30 22:05:33 im trying to think of stuff to present Mar 30 22:06:40 can anyone think of a reason that a fragment (using compatibility library) might not be removed when using the fragment manager? Mar 30 22:07:04 as far as i'm concerned the big hurdle is understanding what looper/handler really are and are not, and how then everything else about the execution model builds on those Mar 30 22:07:08 flexible layouts, fragments, loaders, view pagers, services, all sound good, but i dont think they are exactly fitting for a first look android 101 workshop Mar 30 22:07:18 birbeck: Lifecycle of activities, services, application, and how it all ties together Mar 30 22:07:22 the next major building block is the binder RMI mechanism Mar 30 22:07:35 so just reiterate the android fundamentals page? Mar 30 22:07:37 those are the mechanisms; layer up from that is lifecycle Mar 30 22:12:11 hmm, i forgot about the new android college (or whatever) on d.android.com Mar 30 22:12:19 maybe i can just take a lesson from there Mar 30 22:13:40 new short link to the Android Developers page on G+: http://d.android.com/+ Mar 30 22:13:40 most people will probably only attend for free lunch and an hour off of their own work Mar 30 22:13:49 oh nice :) Mar 30 22:13:56 Hah Mar 30 22:15:13 ctate, nice shortcut Mar 30 22:15:24 not like i had anything to do with it.... Mar 30 22:23:01 So in a TabHost, does TabWidget have to be on top of FrameLayout? The xml looked like they could be swapped, but the result seems to be that I never see my tabs. Mar 30 22:23:51 whoa, just saw the google translator toolkit Mar 30 22:23:53 nice Mar 30 22:34:02 Remember to check the translations tho :p Mar 30 22:34:20 yea, but this takes most of the work away... pretty nice Mar 30 22:34:40 all i have to do now is hire someone off craigslist to validate the language im trying to localize Mar 30 22:35:04 just localized spanish -- the long way, my wife translated all of it. I could have used this tool to save her a lot of time. Mar 30 22:36:59 anyone read any good books lately ? Mar 30 22:38:22 g00s: what kind of books ? Mar 30 22:38:43 anything except romance Mar 30 22:38:54 :) Mar 30 22:39:03 tech, science, android, whatever Mar 30 22:40:29 g00s: what about Coders at Work: Reflections on the Craft of Programming ? Mar 30 22:40:39 yeah! did you like it ? Mar 30 22:40:42 * AlCapwn reading the Steve jobs biography Mar 30 22:41:08 Thought that was quite good Mar 30 22:41:32 g00s: good book. I started reading Founders at work, both are awesome books imho Mar 30 22:41:32 im halfway through it AlCapwn Mar 30 22:43:03 i can spend hours clicking on amazon's book recommendations Mar 30 22:43:37 g00s: i've same problem on android market :) Mar 30 22:43:44 :) Mar 30 22:43:54 im going to start playing with andengine Mar 30 22:44:00 * r0ver is looking ideas for small apps to test dev skills Mar 30 22:45:14 passing my hashmap as a parameter is always null Mar 30 23:03:06 hey Mar 30 23:03:11 anyone home Mar 30 23:06:03 Hmm! Playing around with the translate.google.com/toolkit with some of my strings.xml Mar 30 23:06:10 Has anyone tried this yet? Mar 30 23:06:27 No! Mar 30 23:06:38 i haven't Mar 30 23:06:43 seems cool Mar 30 23:07:46 Yeah, I'm going to pump out some -es and -fr translations :) Mar 30 23:08:06 so has nobody here ever put a ListView in a DialogFragment ?? Mar 30 23:08:29 I haven't, yet. Mar 30 23:08:42 ghchinoy: heh Mar 30 23:09:01 it (the DialogFragment) refuses to dismiss once it has had any Views created by the adapter Mar 30 23:09:30 however, the DialogFragment does still dismiss when the back button is pressed Mar 30 23:11:30 very bizarre Mar 30 23:11:36 How are you dismissing it Mar 30 23:11:48 DialogFragment.dismiss() Mar 30 23:12:09 i set an OnItemClickListener for my Adapter, and in the onItemClickFunction i do the dismiss Mar 30 23:12:47 * pfn finally adds aidl and renderscript support to his sbt plugin Mar 30 23:12:48 dunno why Mar 30 23:12:52 since no one seems to be using it Mar 30 23:13:01 SimonVT: funny thing is, if you click the item again you get a NPE Mar 30 23:13:42 I am trying to use a BaseAdapter to fill a listview and before sending my hashmap to my adapter class the info is present, but inside the hashmapParm it is always null .. am I passing the reference wrong? Mar 30 23:13:45 Heh, strange Mar 30 23:14:43 goddard: it is difficult to say without seeing a code snippet Mar 30 23:15:08 are you adapting the data in the hashmap ? Mar 30 23:18:21 purdyk: actually my data isn't null after i pass it but when i try and set the values to the listview using name.setText(data.get(position).get("name").toString()); Mar 30 23:18:54 I use Log.v to output this info and it isn't null Mar 30 23:22:10 goddard: You are getting a NPE ? it is possibly from your TextView Mar 30 23:24:20 so name is null Mar 30 23:27:02 null is the root of all evil Mar 30 23:29:01 Er Mar 30 23:29:19 null pointer exception, better than a dull pointer exception Mar 30 23:29:24 I created a values-kr for Korean, dropped in my newly translated strings.xml, uploaded to the Play market and it says "Kanuri" Mar 30 23:29:38 Wikipedia says that's an African dialect, not Korean. Whoops. Mar 30 23:29:53 ko? Mar 30 23:30:52 ko isn't assigned. (ISO 3166) Mar 30 23:33:07 The language is defined by a two-letter ISO 639-1 language code Mar 30 23:33:20 optionally followed by a two letter ISO 3166-1-alpha-2 region code (preceded by lowercase "r"). Mar 30 23:33:43 In that case, kr *is* Kanuri! Mar 30 23:33:59 Amazing what the documentation can tell you :p Mar 30 23:34:11 That was my next question Mar 30 23:34:12 http://developer.android.com/guide/topics/resources/localization.html Mar 30 23:34:14 It's not there. Mar 30 23:34:18 Where'd you find it? Mar 30 23:34:24 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Mar 30 23:35:00 Aha! Mar 30 23:35:03 Well then. Mar 30 23:35:07 ko it is :) Mar 30 23:36:13 any suggestions on how to draw Text on an ortho head-up display , after the OpenGL frame is done? Mar 30 23:37:05 how can I add a '<' as part of a string to an XML file? Mar 30 23:37:21 I tried '' \ "" ... Mar 30 23:37:32 and I don't know how to put it into a question on Google :P Mar 30 23:38:35 Sicp: http://stackoverflow.com/questions/1091945/where-can-i-get-a-list-of-the-xml-document-escape-characters Mar 30 23:38:45 thanks Mar 30 23:44:19 Fixed, thanks SimonVT. Mar 30 23:44:31 * hackkitten is getting her new phone tomorrow :D Mar 30 23:45:36 woho Mar 30 23:45:44 * Jug6ernaut loves new phone day Mar 30 23:48:43 hack72, whatcha gettin'? Mar 30 23:48:45 er Mar 30 23:48:52 * pfn kicks irssi Mar 30 23:48:56 hackkitten, Mar 30 23:49:03 * pfn wonders why irssi borked in this case Mar 30 23:50:48 numbers complete before alpha would be my guess pfn Mar 30 23:51:10 Hey everybody. Is there any way for me to reliably tell when an app is backgrounded or paused? Mar 30 23:51:17 purdyk, irssi does a last-spoke order completion, not alphabetical Mar 30 23:51:29 Obviously, there's no onPause kind of event at the Application level, so how do people handle this? Mar 30 23:51:36 pfn: good to know, this i did not realize (i'm currently using irssi as well) Mar 30 23:51:36 Chronax, the fact that its activity got onPaused or onStopped is a clear indicator Mar 30 23:51:52 purdyk, that's why I can type p and get purdyk Mar 30 23:51:54 pfn: What if there are lots of activities? Mar 30 23:51:58 apps do not get backgrounded Mar 30 23:52:00 activities do Mar 30 23:52:11 the unit of UI is the activity Mar 30 23:52:12 Chronax, set a flag in your onResume vs. onPause Mar 30 23:52:15 "apps"? Mar 30 23:52:17 pfn: With lots of differen tbase classes? Mar 30 23:52:27 mmm apps Mar 30 23:52:35 i dont think you can get cheap apps on friday ngihts Mar 30 23:52:35 Yeah, the issue is I have a lot of different base classes that could potentially onPause(). Mar 30 23:52:37 why do you care when the last activity supplied by your app gets backgrounded? Mar 30 23:52:40 * Jug6ernaut hates the "app" mentality Mar 30 23:53:01 Jug6ernaut ... collection of activities, receivers, services? Mar 30 23:53:12 call it an ARS Mar 30 23:53:21 canadiancow the "user" mentality of "apps" not developer ;) Mar 30 23:53:25 Chronax, so subclass a common activity and toggle state in onpause/onresume as necessary Mar 30 23:54:03 devs are users Mar 30 23:54:06 and users are losers Mar 30 23:54:09 therefore we're all losers Mar 30 23:54:19 Devs are people too! Mar 30 23:54:24 User extends Loser, Dev extends User Mar 30 23:54:30 (dev instanceof User) == true Mar 30 23:54:38 lol Mar 30 23:54:46 oh wait that last oen should have been instanceof Loser Mar 30 23:54:48 (user instanceof dev) == false Mar 30 23:54:54 not necessarily Mar 30 23:55:03 exactly Mar 30 23:55:11 ITYM luser Mar 30 23:55:18 canonically Mar 30 23:55:28 well Mar 30 23:55:32 http://en.wikipedia.org/wiki/Luser Mar 30 23:55:48 i guess Mar 30 23:56:12 See also: Power user,Any key,BOFH,PEBKAC,id10t,Layer 8,Newbie Mar 30 23:56:25 n00b Mar 30 23:56:46 Canadian Mar 30 23:56:48 no u :( Mar 30 23:56:49 * Jug6ernaut sheilds his eyes Mar 30 23:57:12 pick on someone your own size :( Mar 30 23:57:15 /mode #android-dev +o canadiancow Mar 30 23:57:32 lol Mar 30 23:57:34 gl with that Mar 30 23:57:40 evancharlton did it once Mar 30 23:57:45 lasted all of 2 minutes Mar 30 23:57:50 haha Mar 30 23:58:52 purdyk: maybe let me check Mar 30 23:59:11 y'know, freenode *does* let ops selectively mute people... ;) Mar 30 23:59:20 lol Mar 30 23:59:26 * canadiancow hides Mar 30 23:59:41 hehe Mar 30 23:59:51 yay, it's, like, friday afternoon Mar 30 23:59:53 :o Mar 31 00:00:00 they forced me to drink at work Mar 31 00:00:12 i had to leave because i couldnt function anymore Mar 31 00:00:14 sounds awesome Mar 31 00:00:21 i had two beers to relax, then everyone was required to do shots Mar 31 00:00:30 xD Mar 31 00:00:43 yeah, having a beer at work as well Mar 31 00:00:45 shots of ... MILK! Mar 31 00:00:50 pfn: Not possible, since the activities inherit from a variety of base classes. (MapActivity, FragmentActivity, Activity, etc...) Mar 31 00:00:53 lol Mar 31 00:01:01 Chronax, that's your tough luck I suppose Mar 31 00:01:15 swiftkey just autocorrected "You're an ass" to "You're an assessment" Mar 31 00:01:20 Chronax, use the onResume/onPause in each of your activities Mar 31 00:01:27 stupid autocorrect Mar 31 00:01:35 That's lame. :) Mar 31 00:01:39 canadiancow /me no likes swiftkey Mar 31 00:01:43 * Jug6ernaut likes stock ics Mar 31 00:01:45 I like swiftkey a lot Mar 31 00:01:46 or thumbkb Mar 31 00:01:58 or swype Mar 31 00:02:12 * Jug6ernaut wants to know why google hasnt bough swype yet Mar 31 00:02:17 do it do it now Mar 31 00:02:21 because it's not awesome Mar 31 00:02:28 swype sucks Mar 31 00:02:29 Chronax: why is it important to know when none of your activities are frontmost? Mar 31 00:02:30 I don't like using it Mar 31 00:02:30 * Jug6ernaut should stop talking :S Mar 31 00:02:34 :o Mar 31 00:02:42 as opposed to simply knowing whether a specific activity is/is not on screen? Mar 31 00:02:46 ctate: For analytics events. Trying to track some complex flows. Mar 31 00:02:47 ctate, so he can call startActivity() ... Mar 31 00:03:07 Chronax: you might want to consider putting your analytics tracking into a Service Mar 31 00:03:14 and having your activities bind / unbind that service Mar 31 00:03:17 ...track it in onResume/onPause if its THAT important.. Mar 31 00:03:38 in onresume/onpause [or onstop] Mar 31 00:03:50 then the Service will be able to tell, thanks to the onBind / onUnbind callback s Mar 31 00:03:58 and it will be fully decoupled from the UI behavior Mar 31 00:04:35 the Service component can be a pretty useful organizational tool Mar 31 00:04:56 even independently from its being a handy way of decoupling *execution* from the main looper. Mar 31 00:05:21 are there any events I can listen to when the screen orientation changes, I ahve two fragments displayed in a linearlayout, so if the orientation changes from landscape to portrait I need to remove one, and vice versa Mar 31 00:05:32 decoupling execution from the main looper isn't any easier in a service than in an activity Mar 31 00:05:41 same number of steps to do it... Mar 31 00:05:58 well, from the main looper and from individual activities' lifecycles Mar 31 00:06:15 you've got a simpler and more directly controllable lifecycle with Service Mar 31 00:06:35 the latter is the important piece Mar 31 00:06:50 rvsjoen: by default, when orientation changes your activity will be stopped and destroyed, and a new activity instantiated with the new orientation Mar 31 00:07:01 pfn: it's *an* important piece :) Mar 31 00:07:08 i guess i think of it all as interconnected Mar 31 00:07:30 how odd, that doesn't happen for me Mar 31 00:07:42 SimonVT: I figured out my issue Mar 31 00:07:48 unless you specify configChanges, orientation changes will recreate your activity Mar 31 00:07:53 my adapter was a private subclass of my DialogFragment Mar 31 00:07:59 rvsjoen: perhaps you have set things up via your Manifest to not do that Mar 31 00:08:02 making it an external public class solved the issue Mar 31 00:08:04 vOv Mar 31 00:08:10 oO Mar 31 00:08:16 Oh well, it works :p Mar 31 00:08:21 indeed Mar 31 00:08:28 "Embrace Mystery" Mar 31 00:09:40 by "private subclass" you mean a nonstatic inner class? Mar 31 00:09:59 because inner classes have implicit dependencies on specific instances of their outer class Mar 31 00:10:10 and if the outer class changes or whatever, then oops? Mar 31 00:11:34 private subclass??? Mar 31 00:11:59 like... class MainClass { private class SubClass extends MainClass { } } Mar 31 00:12:29 I imagine he means inner class :p Mar 31 00:12:39 but then to ctate's point, is it static? Mar 31 00:12:53 and does it blend? Mar 31 00:12:59 what? Mar 31 00:13:28 canadiancow: yes nonstatic inner class Mar 31 00:13:33 nonstatic eh? Mar 31 00:13:39 err Mar 31 00:13:42 "will it blend" is a meme Mar 31 00:13:44 if it works as an outer class, you probably wanted static Mar 31 00:13:47 ctate: is what i meant Mar 31 00:14:11 new A.B() vs new A().new B() Mar 31 00:14:34 it was a non-static inner class Mar 31 00:14:42 which has not caused me any serious problems up until now Mar 31 00:16:10 still cant buy music in canada Mar 31 00:16:16 stupid recording industry Mar 31 00:17:27 i still cant get over the fact that i can rent movies on phone/tablet/web, but not google tv Mar 31 00:17:36 the result being i have to pirate what i want to watch on my 55inch screen Mar 31 00:18:03 lol Mar 31 00:18:15 Movies are so passe Mar 31 00:19:18 <`z> lol Mar 31 00:19:33 even the porn is so blah blah blah Mar 31 00:19:43 <`z> http://cristgaming.com/pirate.swf Mar 31 00:19:51 mikandi, need to check that out, heh Mar 31 00:23:33 `z: .... o_O Mar 31 00:23:56 hey ctate Mar 31 00:23:57 <`z> lol limewire Mar 31 00:24:00 <`z> sup ctate Mar 31 00:28:20 ctate, i dono if u remember me, but i had asked diffculties around AlarmManager...can i run something by u again Mar 31 00:28:46 sure Mar 31 00:29:06 I have a ListBox with CheckedTextView.. I have defined drawable as http://pastie.org/3701022 Mar 31 00:29:16 i might just talk about booze or Thelonious Monk or something instead, though. it's friday. Mar 31 00:29:26 but when view is checked and I press it again, it shows default android colors Mar 31 00:29:50 how could I overwrite it? I tried setting android:state_checked and android:state_pressed both to true but its not working Mar 31 00:29:55 ListView* Mar 31 00:31:23 any ideas? Mar 31 00:31:34 ok so let me tell u my entire setup...i have 1 main activity, that evokes the AlarmManager and a service when a activate button is clicked...then in the service class, onDestroy(), i tried doing this: alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 60*1000, pendingIntent); Mar 31 00:31:57 this doesnt seem to do the trick of scheduling another alarm Mar 31 00:32:40 i have created a singleton class that will hold my AlarmManager object along with the pendingIntent object, which i access from the service Mar 31 00:33:15 anyone know if its miles/gallons in US, miles/liters in UK and kilometers/liters everywhere else? Mar 31 00:33:42 PDawg: i'm pretty confused... why are you setting the next alarm in the Service's onDestroy() ? Mar 31 00:34:04 also, what kind of pending intent are you using for your alarms? Mar 31 00:34:23 can i PM u so i can start pasting some code? Mar 31 00:34:44 i'd really prefer to keep contentful discussinos on-channel Mar 31 00:34:49 ok Mar 31 00:34:55 are you using broadcast or service pendingintents? Mar 31 00:35:01 service pendingintents Mar 31 00:35:03 for the wakeup case, it matters Mar 31 00:35:09 aha Mar 31 00:35:15 okay, so. here's the thing about wakeup alarms Mar 31 00:35:19 yes, they wake hte phone to issue the intent Mar 31 00:35:34 but then the device goes right back to sleep, except in the case of broadcasts Mar 31 00:35:51 so the service has been started, but the phone is asleep again before it has a chance to do anything Mar 31 00:35:58 this is probably not what you want :) Mar 31 00:36:05 oh damn Mar 31 00:36:18 with *broadcast* alarms, the system keeps the device awake [holds a wakelock for you] for the duration of your onReceive() method Mar 31 00:36:32 so you're guaranteed that it will run to completion Mar 31 00:36:42 oh i c Mar 31 00:36:46 there's a little dance that people use for this Mar 31 00:36:52 1. use a broadcast alarm pendingintent Mar 31 00:37:04 2. in onReceive(), you acquire your own wakelock. Mar 31 00:37:19 put the wakelock in static variables somewhere that your Service will be able to access it Mar 31 00:37:32 3. still in onReceive(), start the service to do its thing. Mar 31 00:37:55 at this point (a) the system is holding a wakelock for you, (b) you're holding your *own* wakelock as well, and (c) the service is starting up to do whatever. Mar 31 00:38:17 Now you can return from onReceive(). the system will release its own wakelock, but yours is still held so the device is still prevented from going to sleep. Mar 31 00:38:39 the Service then does its work, sets the next alarm, and then -- this is crucial -- RELEASES THAT WAKELOCK. Mar 31 00:39:01 and then you go back to sleep until the next alarm fires Mar 31 00:39:33 ... clear? -ish? Mar 31 00:39:57 ok gotcha, i have never done Broadcast intent before so ill need to do some research on what that is and how to use it properly...as for settinga new alarm, i can do that anywhere right? Mar 31 00:40:02 yup Mar 31 00:40:09 ok thanks man Mar 31 00:40:24 the central issue here is "when is the device actually running code, versus when it's asleep" Mar 31 00:40:57 as soon as you're talking about WAKEUP alarms, because you want to run some code while it's sitting in somebody's pocket idle, then that's the world you're in. Mar 31 00:41:39 yea...i imaging using this approach has battery drain as a side effect? Mar 31 00:41:47 massive battery drain* Mar 31 00:42:17 not necessarily massive Mar 31 00:42:31 it depends on how often you run, how much work you do at the time, etc Mar 31 00:42:40 doing network activity when you wake up *is* going to chew a ton of power Mar 31 00:42:51 spinning up the radios to do that can be extremeliy power-costly Mar 31 00:43:02 like when ads get fetched over the network :P Mar 31 00:43:05 so you need to be judicious about how often you do it, etc Mar 31 00:43:06 right Mar 31 00:43:30 in general, the single biggest power drain on the device is having the screen on Mar 31 00:43:54 the second biggest is doing data traffic Mar 31 00:44:21 with the added caveat that causing the data radios to spin up out of inactivity in *order* to do data traffic is even worse Mar 31 00:45:37 o ok, so when this Wakelock happens, will my screen come on? Mar 31 00:47:29 not necessarily Mar 31 00:47:35 read the docs :) Mar 31 00:47:54 you can ask the cpu only to stay on, or you can force the screen on as well Mar 31 00:47:59 Power Manager Mar 31 00:48:17 and don't muck up the wakelock handling Mar 31 00:48:25 because you'll wind up burning down the battery Mar 31 00:48:39 and the OS will obligingly tell the user that it was *your* app that burned down the battery Mar 31 00:48:44 and the user will be sad Mar 31 00:48:47 you don't want that Mar 31 00:49:53 alright Mar 31 01:01:14 mm, scotch tasting at work Mar 31 01:06:44 ello Mar 31 01:10:22 nobody mentions the information superhighway anymore :/ Mar 31 01:10:43 finally got the opengl stuff initiated Mar 31 01:12:49 but i guess it could have been worse Mar 31 01:13:38 xorgate, i like when someone called it a series of tubes Mar 31 01:15:44 I once was watching one of the Matrix movies with a friend (who is not into computers) and as they were showing all those matrix of numbers falling down as they were "hacking"... he turns to me in the theater and says "Naushad, is that really how it is inside a computer?: Mar 31 01:15:52 I just said "Yep". Mar 31 01:16:05 couple years later I told him it was a joke Mar 31 01:16:27 was he shocked? Mar 31 01:16:40 i think he figured it out by then Mar 31 01:17:54 has anyone used google translate to translate resource strings? is that a bad idea? Mar 31 01:18:18 i used it for spanish recently then asked my wife to validate... she said about 25% was correct Mar 31 01:18:26 lol Mar 31 01:19:51 i just found that translator toolkit site, i'll still use it but use a fluent speaker to validate Mar 31 01:19:53 i wouldn't rely on it for my app Mar 31 01:20:01 always ask a person Mar 31 01:20:17 it's too hard to get not everything right Mar 31 01:20:18 where do you find people? Mar 31 01:20:28 easy, i mean Mar 31 01:20:32 craigslist Mar 31 01:21:04 idunno i know a ton of people in other countries.. basically all that matters to me is english which i speak fluently and maybe german and french Mar 31 01:21:17 i had a german guy translate for me Mar 31 01:21:19 i have german i want to intergrate next since I have several users there and expect to get more... i'll use the translator toolkit to load my strings.xml then even if its 25% right, thats less time I have to pay for. Mar 31 01:21:26 so I'll outsource to craigslist Mar 31 01:24:35 Anyone familiar with edify? Trying to find an alternative to write_raw_image Mar 31 01:25:38 I have a listview, when the user clicks on an item I want them to be presented with textview and two buttons. At some point in the future, the textview will change to a spinner. Should I do this in a separate activity? Or would something else be more appropriate. I am still having trouble determining when something should be taken into it's own activity. Any thoughts? Mar 31 01:26:34 activities are logical units of work/interaction for the user. Mar 31 01:26:57 so you have to ask yourself this questino througout your developement, is what I am doing consituent a different task/work/activity? Mar 31 01:27:33 So switching from "viewing a list" to "modifying a list item" would most certainly fit the bill. Mar 31 01:27:35 Thanks Mar 31 01:27:39 That will help. :) Mar 31 01:28:02 right, like in my app I have My Tasks, Task Details and Edit Task... all separate activities Mar 31 01:28:19 you could also make a Dialog Mar 31 01:28:26 in My Tasks, users sees all of their tasks... Task Details are details for one task (the user can do a few things there with the task), and Edit Task -- well self explains Mar 31 01:29:18 xorgate, that was my other option... but it felt strange putting that code in the activity that generates the list. Mar 31 01:29:43 i'd say the code that generates the list is your adapter Mar 31 01:29:47 putting it in a new activity "feels better". If that makes sense. :) Mar 31 01:29:54 yes sure Mar 31 01:30:20 i have something like this https://lh4.ggpht.com/WmnUN4oUCb8pDLu5z1k3gdjfB-s_ZMseVLSdV0XuNweM_FMZ4MQvePzNMZL73GhRvVGO Mar 31 01:30:59 hmmm. I like that. Mar 31 01:31:11 which is an activity but with a modified look Mar 31 01:31:13 lemme check Mar 31 01:31:17 How is that implemented? Mar 31 01:32:32 * eniacpx is watching "Hackers" and trying to figure out how Angelina Jolie's nose got so thin since this movie... Mar 31 01:33:02 https://gist.github.com/ad98521f076e632437b9 Mar 31 01:33:31 and then in your manifest for the activiyt android:theme="@style/ThemeDialogNoTitle" Mar 31 01:34:54 the blurring of the background is done like so https://gist.github.com/adaba2217477e63dd653 Mar 31 01:34:58 but it makes it slower Mar 31 01:35:14 I am building this for speed. Mar 31 01:35:22 I hate slow pretty apps. :) Mar 31 01:36:48 I found this when I was doing my initial searching: http://developer.android.com/guide/topics/ui/dialogs.html#AlertDialog Mar 31 01:38:14 yep thats what i meant Mar 31 01:38:28 you can put your own layout in there Mar 31 01:38:58 Cool. Thanks. Mar 31 02:05:21 Guys, when someone asks a question "How do I do the impossible" instead of thinking of ways to persuade them not to try, try to do it. Mar 31 02:07:08 ok readme Mar 31 02:07:45 huh Mar 31 02:07:46 xorgate: that wasn't a personal comment inspired by anything you said. Rather, it was inspired by some stackoverflow reading. Mar 31 02:08:34 Just a trend I am seeing even amongst some top devs. I was just reading one post where a guy wanted to record audio from the mic from emulator, and one of the more prominent android devs just ranted about piracy in the post, even though there was nothing there to really provoke it. Mar 31 02:08:37 quite the non sequitor indeed :0 Mar 31 02:09:08 its' a bummer when you are looking for info and you just find an archived flamewar Mar 31 02:09:26 how can i make one view only a certain screen orientation? Mar 31 02:09:53 android:screenOrientation can be set on your activity, and you can specify which view for which orientation by using layout or layout-land directories Mar 31 02:10:08 well, the first part I guess you don't need. that's for locking down a single orientation. Mar 31 02:11:18 if by view you mean layout, then what he said Mar 31 02:11:41 hm... maybe R.layout is a misnomer Mar 31 02:11:43 or rather, 'how can i have different layouts for different screen orientations' Mar 31 02:11:46 is there a fundamental difference? Mar 31 02:11:55 maybe it should really be called R.view Mar 31 02:12:23 I mean, you can stick any view in there. Doesn't have to be a layout. Mar 31 02:12:30 and a Layout is a View Mar 31 02:12:37 damn localizaiton is a bitch Mar 31 02:14:11 QubeZ i thought it was quite easy actually.. you can do a ton of things with strings.xml Mar 31 02:14:43 sometimes strings are longer in other languages than english so have to accomodate Mar 31 02:14:51 like for headers, below images etc... Mar 31 02:14:56 like having different strings for '1' or 'a few' and 'many' Mar 31 02:15:43 ya, the quantity feature is nice in strings Mar 31 02:15:56 but in general, its tough to adapt to other languages as far as screen size / views go Mar 31 02:17:45 i want to lock it to one orientation Mar 31 02:18:08 also full screen Mar 31 02:18:21 i did android:orientation="vertical" Mar 31 02:18:30 and android:theme="@android:style/Theme.NoTitleBar.Fullscreen" Mar 31 02:18:39 goddard: its portrait Mar 31 02:18:45 but that doesn't seem to lock it Mar 31 02:18:47 oh Mar 31 02:19:00 if you had used Ctrl+Space, it would show you options Mar 31 02:20:23 wow, I just quit eclipse and now my computer works again Mar 31 02:20:50 sounds like eclipse eclipsed your cpu ;) Mar 31 02:21:29 it eclipsed my edit, compile, debug cycle as well Mar 31 02:22:59 goddard: android:screenOrientation="vertical" && android:configChanges="orientation" --- you probably also want to use keyboardHidden like "orientation|keyboardHidden" so that when the user closes the hardware keyboard your activity doesn't restart Mar 31 02:25:20 sorry for noob question but does the android emulator just not suspend like a vm on virtualbox or vmware? Mar 31 02:25:39 new to android dev & not liking the emulator boot up time Mar 31 02:26:56 UberschallSamsar: it has the snapshot feature, which will allow you to resume it from the last state you stopped it in Mar 31 02:27:43 readme: thanks Mar 31 02:28:24 readme: cool, thanks ... i was googling for the wrong terms (e.g. "android emulator suspend") Mar 31 02:29:14 was having a hard time seeing why google would not have an emulator suspend Mar 31 02:31:04 readme: still not working Mar 31 02:31:18 goddard: where did you put those XML attrs? Mar 31 02:32:02 they should be in an tag. Mar 31 02:32:07 http://pastebin.com/5zq3guf3 Mar 31 02:32:22 they go in the Activity tag in the manifest Mar 31 02:32:31 sorry, should have clarified Mar 31 02:32:44 oh ok thanks Mar 31 02:46:56 * nxbtch slaps nxbtch around a bit with a large trout Mar 31 02:48:21 congratulate me, I maxed out the memory on my device Mar 31 02:48:34 is anyone completely in love with using maven to handle dependencies in projs and, if so, why? Mar 31 02:48:39 http://pastie.org/3701467 Mar 31 02:49:23 time to uninstall some crapps. Mar 31 02:53:16 readme: nice Mar 31 02:53:23 i dont think i've made a dent, i keep it pretty lean Mar 31 02:53:38 but i dont play games on the device, maybe why Mar 31 02:54:01 I have a droid3 that needs the oem apps remove but I haven't had the necessity to do it Mar 31 02:54:11 I need to do it now, but adb backup isn't working Mar 31 02:55:09 also, has anybody done something like this: http://netbeans.dzone.com/nb-developing-android-apps ? Mar 31 02:56:47 not me, im still trying to get with Maven Mar 31 02:57:20 QubeZ:it's a shame you don't play games Mar 31 02:57:33 i'll give yours a shot readme Mar 31 02:57:37 so many good ones: angry birds space, cut the rope, fruit ninja, move the box Mar 31 02:57:40 nah, mine sucks QubeZ Mar 31 02:57:41 don't play it, lol Mar 31 02:57:47 ill beta test it =) Mar 31 02:57:55 my wife plays all those other games you mentioned Mar 31 02:57:55 I put it aside to work on an app idea that is going to be far more lucrative Mar 31 02:58:08 but i'll still work on it on rainy days Mar 31 02:58:16 funny, im about to do dual To Do Mapr and work on a game on the side side Mar 31 02:58:20 it's essentially done. just needs a tad of polish Mar 31 02:58:27 more like, a week of it Mar 31 02:58:35 work 40 hours, work on To Do Mapr and try out working on game... all with a new baby on the way in 3 weeks lol Mar 31 02:58:47 also I have this jittering that I cannot remove from the game, and it's really really hard to even reproduce Mar 31 02:58:54 =O Mar 31 02:58:57 i want to try making a boardgame but no clue about gl coding yet Mar 31 02:59:00 what kind of baby apps are you going to use Mar 31 02:59:02 ;P Mar 31 02:59:17 hehe that kid already has a "I'm in Beta" onesie Mar 31 02:59:21 get the 'ultrasound' **** ENDING LOGGING AT Sat Mar 31 02:59:58 2012