**** BEGIN LOGGING AT Wed Apr 25 02:59:58 2012 Apr 25 03:01:58 Leeds is gone; lets get this party started. Apr 25 03:08:36 cooldman224, i thought they only released an x86 image for 2.3? Apr 25 03:09:33 i assume you're talking about building your own and using vmware or whatever Apr 25 03:10:03 luxurymode, yeah they have but android x86 is a separate project http://www.android-x86.org/ Apr 25 03:11:24 ah gotcha. easy installation on a mac? Apr 25 03:13:06 Can someone point me towards the ADB driver for the Motorola Solutions ET1? Apr 25 03:13:43 http://developer.motorola.com/tools/usb_drivers/ Apr 25 03:14:17 or http://www.motorola.com/consumers/v/index.jsp?vgnextoid=bda09ec8009a0210VgnVCM1000008806b00aRCRD Apr 25 03:16:24 cooldman224, what does it mean next to each iso download where it says something like for ASUS Eee PC family …? which one do i download if i just wanna use on my mac? Apr 25 03:17:02 I thought I already had that because the Xoom's work fine but I'll try reinstalling Apr 25 03:19:52 Hello, can someone guide me with this problem please? This is my first time using handlers/looper and I'm having a hard time, This method actually runs but when the dialogs appears and I clic cancel everything is perfect in the background, but the AlertDialog won't dissapear link: http://paste.ubuntu.com/944450/ Apr 25 03:21:18 do i need 32 bit eclipse or will ADT work with 64 bit eclipse? Apr 25 03:21:58 LiENUS, it will work Apr 25 03:22:04 which OS are you using? Apr 25 03:22:05 luxurymode, it has to do with making the android image compatible with a certain manufacturers hardware like sound. I use vmware and havent had luck with virtualbox Apr 25 03:22:32 64 bit windows 7 Apr 25 03:23:10 LiENUS, it will work :) you may have to install 32 bit libraries required for it. Apr 25 03:23:13 right but which should i download and how do i boot? Apr 25 03:23:16 cooldman224 Apr 25 03:23:17 as i recall eclipse is quite memory hungry and i thought using 64 bit eclipse on this machine might keep it from being mem starved Apr 25 03:23:25 i have 64bit and 32bit jdk installed heh Apr 25 03:23:34 I dont know about windows but in linux we can do that by getlibs Apr 25 03:23:38 not 32 bit jdk Apr 25 03:23:49 libraries required for android-sdk Apr 25 03:24:07 anyone on windows 64 around here can help you, just hang around :) Apr 25 03:24:28 windows 64 bit includes pretty much all of the 32 bit libs youd need Apr 25 03:24:59 should work fine, just have to have 64bit JDK Apr 25 03:25:08 then you should give it a try :) Apr 25 03:25:33 luxurymode, if you are going to use vmware i need to link you else, android-x86-4.0-RC1-eeepc.iso Apr 25 03:26:19 t0mless it didn't work :P Apr 25 03:27:12 its windows, we dont get the luxury of being able to recompile all of our stuff to be 64 bit :( Apr 25 03:27:21 we're stuck with a ton of 32 bit only binary stuff Apr 25 03:27:51 nmulcahey does that even run android? Apr 25 03:27:55 LiENUS, im using eclipse 64 on win 7 x64 Apr 25 03:27:57 * c2tarun thank god I cannot afford windows :) Apr 25 03:28:05 cooldman224, with adt? Apr 25 03:28:20 c2tarun, it came with my laptop Apr 25 03:28:28 LiENUS, ohh.. :) Apr 25 03:28:35 t0mless yes it does, it is running 2.3.4 Apr 25 03:28:48 I had never even heard of this thing before it got put on my desk Apr 25 03:28:55 huh Apr 25 03:29:01 Its not a motorola mobility product Apr 25 03:29:11 Its a motorola solutions product Apr 25 03:29:28 sure doesn't look like it runs android Apr 25 03:29:32 LiENUS, 17 on this comp i think my laptop has 18 Apr 25 03:29:42 and thats x64 too Apr 25 03:29:47 isnt 19 out? Apr 25 03:29:55 you need java 64 too you know... Apr 25 03:29:56 its not on the page but iirc it updated my tools to 19 Apr 25 03:30:01 yeah i have 64 and 32 Apr 25 03:30:13 need 32 for firefox and need 64 for minecraft heh Apr 25 03:30:28 I assure you it does, it also has USB ports and swappable hardware modules for like credit card scanners and rfid tag readers Apr 25 03:30:49 Yet I can't find a single piece of like api documentation on it Apr 25 03:32:52 yup i use java 64 for minecraft also Apr 25 03:33:07 nmulcahey you tried the google USB driver? Apr 25 03:33:19 cooldman224, 8GB ram makes it almost playable Apr 25 03:33:52 nmulcahey this is the best I can find: http://support.symbol.com/support/browse.do?WidgetName=BROWSE_PRODUCT&TaxoName=SG_SupportGoals&BROWSE_PRODUCT.isProductTaxonomy=true&BROWSE_PRODUCT.NodeId=SG_ET1ENTERPRISETABLET_1_2&BROWSE_PRODUCT.thisPageUrl=%2Fproduct%2Fproducts.do&id=m4&BROWSE_PRODUCT.TaxoName=SG_SupportGoals&NodeType=leaf&NodeName=ET1+Enterprise+Tablet&document=DT_SOFTWARE_1_1&BROWSE_PRODUCT.NodeType=leaf&NodeId=SG_ET1ENTERPRISETABLET_1_2&AppCont Apr 25 03:34:00 LiENUS, i only have 6GB :) but core i7 and gtx 570. Sonic's shaders on ultra, looks awesome Apr 25 03:34:12 yikes, didn't realize that link was so long Apr 25 03:34:29 core i7 here too Apr 25 03:34:43 i run stock minecraft heh Apr 25 03:35:13 radeon HD 6750M havent tried it on minecraft yet Apr 25 03:35:30 i just got the laptop back my old one broke and i sent it out for repair, had a HD 6490M iirc Apr 25 03:35:37 Yeah, I guess I just have to wait until the morning to find the person at motorola who sent us this beast Apr 25 03:35:59 Nothing seems to want to work Apr 25 03:36:24 free upgrade wooo Apr 25 03:37:50 Hey, I'm trying to implement a spinner for navigation in the action bar, but my spinner is showing up next to the app icon and title.. Apr 25 03:38:56 LiENUS, but you have a laptop! i run minecraft on my desktop, it overheats my old laptop Apr 25 03:38:58 t0mless Thanks I actually found the instructions, they come with the files to reflash the device Apr 25 03:39:15 cooldman224, yeah i dont like desktops heh Apr 25 03:39:25 i havent had one in almost a decade Apr 25 03:39:47 LiENUS, :( I need the big monitor and I dont like big laptops Apr 25 03:39:58 rofl Apr 25 03:40:06 my laptop can have as big a monitor as i want Apr 25 03:40:08 WiDi Apr 25 03:40:27 heat is as always an issue Apr 25 03:40:37 Does anyone here use the command line tools over eclipse? Apr 25 03:40:40 2.2ghz quad core i7 can pump out some heat Apr 25 03:40:52 Rich787, iirc ant is a supported dev method Apr 25 03:41:00 Rich: nope not me Apr 25 03:41:26 yea I was just wondering how many people do use it Apr 25 03:41:45 Yea I was just curious if it was popular at all Apr 25 03:41:50 woops.. sorry there Apr 25 03:41:55 LiENUS, oh yeah widi, how is that? Apr 25 03:41:55 Rich: for building release with signing apk only Apr 25 03:42:06 cooldman224, i havent used it myself was just pointing out it exists heh Apr 25 03:42:18 btw, I don't use Eclipse, I use IntelliJ Apr 25 03:42:24 Anyone ever implemented a spinner for navigation in the action bar? Apr 25 03:42:24 my largest screen in my house is my tv Apr 25 03:42:28 and iirc its 21 inches Apr 25 03:42:35 LOL Apr 25 03:42:49 i dont watch a whole lot of tv Apr 25 03:46:41 LiENUS, yeah neither do I, but my monitor is bigger than your TV :) by a whole 2 inches Apr 25 03:46:49 lol Apr 25 03:46:59 i was watching a lot of netflix Apr 25 03:47:03 now its all just background Apr 25 03:47:08 i watched everythign i can find worth watching Apr 25 03:47:34 haha you have reached the end of netflix Apr 25 03:48:35 Heh I didn't think that was possible Apr 25 03:50:51 AbelianHorizon: yes Apr 25 03:51:15 hi Apr 25 03:51:21 Trying to install the SDK, but it can't find my JDK (even with JAVA_HOME set): what am I to do? - http://pastebin.com/rJzzJcyb Apr 25 03:52:29 edit the .bat file Apr 25 03:52:58 actually Apr 25 03:52:59 http://code.google.com/p/android/issues/detail?id=28196#c6 Apr 25 03:53:00 do that Apr 25 03:53:34 JakeWharton: do I just need to use a setDisplayShowTitleEnabled(false) ? Apr 25 03:53:48 setNavigationMode(ActionBar.NAVIGATION_MODE_LIST) Apr 25 03:54:49 I have that already Apr 25 03:55:17 My spinner is showing up next to the title Apr 25 03:55:27 that is the normal behavior, yes Apr 25 03:55:42 you realize that you never described a problem that you were having Apr 25 03:55:52 I have no idea what you are trying to accomplish Apr 25 03:56:29 I want the spinner to be the navigation and appear somewhat like gmail or Google voice apps. Sorry Apr 25 03:56:49 It should appear where the title appears Apr 25 03:56:54 Rich787, theres a ton of crap in it, so it aint hard Apr 25 03:57:01 fuck, finally. Got Android SDK installed now Apr 25 03:57:11 then yes, setDisplayShowTitleEnabled(false) will do that Apr 25 03:58:11 I'm using your action bar Sherlock Apr 25 03:58:43 oh, excellent! Apr 25 03:59:16 But yeah that did the trick sorry about that Apr 25 04:00:08 Yours is the first library I've ever used Apr 25 04:00:27 AbelianHorizon: poor bastard ! Apr 25 04:00:30 well it's not the easiest to get set up so I'm glad you were able to figure it out Apr 25 04:00:31 XD Apr 25 04:00:31 haha Apr 25 04:00:42 last time I attempted it, I failed =) Apr 25 04:00:45 Yeah had a bunch of trouble Apr 25 04:01:28 But everything works,I have the best looking SMS scheduler on the market. Thanks dude lol Apr 25 04:02:20 Guys is there an user guide for a sherlock ? Apr 25 04:02:32 there are sample projects Apr 25 04:03:38 there's videos, samples, blog posts Apr 25 04:03:44 ron_frown: oh, the sources are available on GitHub. Thank you. Apr 25 04:04:23 does this error makes sense to anyone :( http://paste.ubuntu.com/945113/ Apr 25 04:04:24 I am stuck Apr 25 04:04:54 http://stackoverflow.com/a/7229248/132047 Apr 25 04:05:23 http://stackoverflow.com/a/10028752/132047 Apr 25 04:05:37 http://stackoverflow.com/a/2639515/132047 Apr 25 04:05:55 JakeWharton, ohh.. :( but how can I get 'this' inside a listener of a dialogs button :( Apr 25 04:05:59 inner classs Apr 25 04:06:03 ActivityName.this Apr 25 04:06:17 shit, got it :) thanks Apr 25 04:06:25 sorry for that word :( Apr 25 04:07:50 JakeWharton, thanks :) it worked Apr 25 04:07:56 excellent Apr 25 04:09:52 hello all Apr 25 04:12:34 toggle() Apr 25 04:12:35 Change the checked state of the view to the inverse of its current state Apr 25 04:12:36 If the radio button is already checked, this method will not toggle the radio button. Apr 25 04:12:46 then why the hell is it called 'toggle'?!? Apr 25 04:48:44 I am facing this issue http://developer.android.com/resources/articles/listview-backgrounds.html and I dont have solid color background, I have a wallpaper :( can anyone please help me with this? Apr 25 04:56:59 fixed by android:cacheColorHint="#00000000" Apr 25 05:16:08 well this is interesting, I used onCreate(int) and onCreate(int, Bundle) and showDialog() is always going to bundled on create :) Apr 25 05:30:59 hi Apr 25 05:31:26 Why doesn't Android appear in Eclipses' preferences? - http://programmers.stackexchange.com/q/145908 Apr 25 05:32:17 You need to install adt first Apr 25 05:33:00 AbelianHorizon: I have installed ADT. See: http://programmers.stackexchange.com/q/145908 Apr 25 05:33:32 i just bought another galaxy note after my first galaxy note which i bought 4 months ago, now i have checked "about phone" and both phone have same 2.3.6 version but old one XXKL3 and new one is DDLB2, now there is a problem in my first mobile i just imported vcf contacts from SD card now in this new mobile there is no such option " import from SD card" , please tell where this feature... Apr 25 05:33:33 C2tarun: showDialog() is deprecated, you should use fragments Apr 25 05:33:33 ...disappeared ? Apr 25 05:34:02 AlecTaylor: odd Apr 25 05:34:32 AlecTaylor: you did restart eclipse, rihgt Apr 25 05:35:11 readme: Yes Apr 25 05:35:58 That's funny you're names readme Apr 25 05:37:25 I never go to that window, right click your project and go to properties Apr 25 05:37:51 Can you createan Android project? Apr 25 05:44:49 I'm trying to run getFragmentManager().beginTransaction().add(android.R.id.content, details).commit(); but it keeps telling me: The method add(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, Fragment). 'details' is an instance of a class extending SherlockFragment. Apr 25 05:44:56 Why am I seeing this error? Apr 25 05:46:03 oooh, nm. Need getSupportFragmentManager() Apr 25 05:53:57 readme: http://www.eatingwell.com/blogs/health_blog/the_best_fitness_foods_what_to_eat_before_during_and_after_a_workout Apr 25 05:54:05 https://play.google.com/store/apps/details?id=com.destructionlabs.Sms Apr 25 05:55:43 Damccull, use Sherlock fragment activity right? Apr 25 05:55:44 AbelianHorizon, does that keep the messages with normal messages? Apr 25 05:56:04 AbelianHorizon, Yep. Apr 25 05:56:25 AbelianHorizon, changing it getSupportFragmentManager fixed it Apr 25 05:56:42 Marriott, no I'm not sure how I'd do that Apr 25 05:56:47 Any tips? Apr 25 05:57:07 Not marriott, mattcatt Apr 25 05:57:19 Autocorrect Apr 25 05:57:33 AbelianHorizon, no idea, but it was something that realy bothered me back when I was on PalmOS. Apr 25 05:58:26 I'll definitely add that to the list though Apr 25 05:58:44 Just Apr 25 05:58:53 Don't know how yet Apr 25 06:10:45 What happens to users who have upgraded from version 1.0 to 1.1 if I do a reactivation of version 1.0? Apr 25 06:11:07 They'll just continue to be on 1.1, while it will prevent other users from upgrading? Apr 25 06:11:15 skfax: that's why version number is monotonic integer Apr 25 06:13:45 Mattcatt research seems positive, might have this working in a couple days Apr 25 06:17:31 More like tomorrow actually, super easy, thanks for the request mattcatt Apr 25 06:18:40 AbelianHorizon, welcome Apr 25 06:18:47 AbelianHorizon: No, I cannot create an Android project Apr 25 06:19:03 hi i am trying to create an android app and run it on an android instance running over qemu Apr 25 06:19:20 Mattcatt http://stackoverflow.com/questions/3179164/android-sending-an-sms-using-the-outboxp Apr 25 06:19:30 i have extracted the system.img file, added my app to it and repackaged it, yet i am unable to see the app in the emulator Apr 25 06:19:34 vganesh: why not use the android emulator? Apr 25 06:19:38 i am using cramfs for system.img Apr 25 06:19:42 where am i going wrong Apr 25 06:20:16 i am actually running it on a paravirtualized environment, over a kernel called l4android. there are two virtualized instances running. so i cant use the emulator Apr 25 06:20:47 Alectaylor, I'm no eclipse expert, but I would imagine you've missed a step in the adt/sdk installation Apr 25 06:21:48 vganesh: can you communicate to adb? Apr 25 06:22:12 on the running instances? Apr 25 06:22:37 jeppy: i haven't actually tried so, but i dont think i will be able to Apr 25 06:22:56 the main system running over qemu is a separate hypervisor that isn't android Apr 25 06:23:43 vganesh: try #android-root Apr 25 06:23:48 my steps are as follows.. i downloaded the standard system.img, mounted it, added my app, and repackaged it Apr 25 06:24:07 i mainly want to know if there is some other requirement for an app to show up on the screen? Apr 25 06:24:23 i have tried looking into the system/ folder after boot and i find my .apk file there Apr 25 06:24:28 if it is in /system/app or /data/app it should show up Apr 25 06:24:32 but i am unable to find it under dev-tools or anywhere else Apr 25 06:25:27 how can i make the app to show up by default under menu? Apr 25 06:25:27 is it in /system/ or /system/app/ ? Apr 25 06:25:39 system/app Apr 25 06:26:46 i'm not sure, maybe you repackaged system.img wrong? Either way this is definitely an #android-root issue. Apr 25 06:26:55 #cyanogenmod could help too Apr 25 06:27:04 thanks jeppy Apr 25 06:34:11 So... Apr 25 06:35:43 passin off the app dev help to the CM channel eh? Apr 25 06:35:44 lol Apr 25 06:40:04 didn't sound like an app dev questiona Apr 25 06:40:24 anyway for an icon to show up, you need to have Apr 25 06:40:29 in your activity's intent filter Apr 25 06:41:40 I was more making a joke than anything else Apr 25 06:48:43 can i make a system call from an app in android using native code? Apr 25 06:49:06 how can i compile it and where will it find the corresponding libraries from? Apr 25 06:50:42 hi any one help me in CTS test for Gallery3d appliction Apr 25 06:50:44 ??????/ Apr 25 06:51:00 vganesh: system calls are made to the kernel, so they dont' use libraries. Apr 25 06:51:11 vganesh: download ndk and write "hello ndk" Apr 25 06:51:20 you should be able to make a system call from there. Apr 25 06:51:47 can i make a system call from an app in android using native code? how can i compile it and where will it find the corresponding libraries from? Apr 25 06:51:59 yes. read up on the ndk. Apr 25 06:54:00 readme: thanks. Can the ndk support a new system call that i have introduced into the kernel? Apr 25 06:54:37 vganesh_: i don't see why not. it's native code Apr 25 06:55:16 trying to figure out how to pass data between non-UI services in a nice way Apr 25 06:55:40 Lemminkainen: Parcelable Apr 25 06:55:57 I'm reading sensor variables that I want to post, I can save those variables into an ArrayAdapter and push it to ListView with no problem, but wish to pass it directly to httpClient Apr 25 06:56:17 ???????/ Apr 25 06:56:17 any one gud in CTS testing Apr 25 06:56:19 Lemminkainen: i'm not entirely sure, but I think the sensor readings are reused so make sure you copy them Apr 25 06:56:32 thank you readme and lvru Apr 25 06:57:25 also don't try to send each individual reading as an intent, because it will be incredibly slow. Apr 25 06:58:23 i thought after reading 'pro git' i kinda understood git … and then i read this, and realized i'm still totally fucking confused ! Apr 25 06:58:25 http://sandofsky.com/blog/git-workflow.html Apr 25 06:58:31 g00s: oh hai Apr 25 06:58:37 hey readme Apr 25 06:58:42 I always drink milk after working out, because I read a study that it helps muscle growth Apr 25 06:58:49 but I haven't worked out in a month, so not lately. Apr 25 06:58:54 hehe Apr 25 06:59:04 i used to take protein shakes after a run Apr 25 06:59:11 i got some contract work starting tomorrow then I'll buy some new android devices and maybe a macbook pro Apr 25 06:59:18 then continue to not work out and just code all day and irc Apr 25 06:59:18 i remember when somebody asked arnold in pumping iron - if he drank milk … and he said 'milk is for babies, i drink beer' Apr 25 06:59:22 hello plz help me Apr 25 06:59:26 g00s: lol Apr 25 06:59:30 g00s: and it's true too! Apr 25 06:59:33 haha Apr 25 06:59:34 milk IS for babies Apr 25 06:59:48 it actually quite unnatural for adults to still drink milk Apr 25 06:59:59 readme: did you see google is selling the nexus on play now ? Apr 25 07:00:10 Snuffel: what is and isn't natural anyway Apr 25 07:00:14 is anything really natural? Apr 25 07:00:18 Protein shakes are generally overdosed, and isn't needed if you eat well enough Apr 25 07:00:23 readme muscle hypertrophy generally takes 48-72h post-workout to do much Apr 25 07:00:23 g00s: thanks for the tip Apr 25 07:00:36 g00s: stop worrying about workflows Apr 25 07:00:37 just use git Apr 25 07:00:42 doing protein after working out is good to immediately repair damaged muscle fibers Apr 25 07:00:44 you'll figure your own out Apr 25 07:00:58 Lemminkainen: but valine and isoleucine begin a hormonal cascase that initaites protein synthesis Apr 25 07:01:00 Lemminkainen: yeah, I always protein up after Apr 25 07:01:01 but best to keep it up 2 or 3 days after to feed the new satellite cells so they can migrate and become new muscle Apr 25 07:01:03 intervenous protein injection Apr 25 07:01:07 Why doesn't Android appear in Eclipses' preferences? - http://stackoverflow.com/q/10310028 Apr 25 07:01:15 * readme needs to work out again Apr 25 07:01:19 g00s what are valine and isoleucine molecularly? Apr 25 07:01:23 All this pulver reseller bullshit :P Apr 25 07:01:28 all I do is Zumba once a week Apr 25 07:01:31 How much is true science :P Apr 25 07:01:35 If I am using ActionBar in tabbed mode, how can I click a button within a tab (which is a fragment) to switch to another fragment? Apr 25 07:01:50 Lemminkainen, those are amino acids Apr 25 07:01:52 dispatch the click to your activity Apr 25 07:01:55 have it decide what to do Apr 25 07:01:55 AlecTaylor: did you try with a fresh eclipse? Apr 25 07:02:03 aye hesperaux I was leading the question Apr 25 07:02:34 I had this happen with another package, eclim. It wouldn't install to the local dir. (Eclipse can install stuff in your ~/.eclipse* dir Apr 25 07:02:58 Lemminkainen, i'm taking an intro biochem class right now. Apr 25 07:03:02 what eclipse version? Apr 25 07:03:15 JakeWharton, were you talking to me? btw, I'm using ABS Apr 25 07:03:24 i was Apr 25 07:03:35 readme: Yes, this all begun with a fresh Eclipse. Nothing is customised. Apr 25 07:03:52 version? Apr 25 07:03:57 Lemminkainen: i read one of your statements incorrectly Apr 25 07:04:03 also, what's your JDK version? Apr 25 07:04:44 well the activity would receive the click first anyway, would it not? But how do I get a fragment transaction? Apr 25 07:04:50 A good pattern is to have each fragment expose a 'Contract' interface which it checks that the activity implements on onAttach Apr 25 07:04:55 Is eclipse installed locally, or are you trying to use eclipse from multiple accounts on your system? Apr 25 07:05:18 because, I think the android tools install user local. Meaning, you wouldn't see them if you ran eclipse from some odd directory and installed the tools from a different user account. Apr 25 07:05:23 then whenever a button is clicked whose implications cross fragments it calls up to the activity through that interface and the activity can decide what to do Apr 25 07:05:56 JakeWharton, i'm sorry but I don't understand what you mean. I'm very new Apr 25 07:07:00 readme: 1.7.0_03-b05 Apr 25 07:07:16 which software does that version belong to? Apr 25 07:08:29 ah, JDK Apr 25 07:08:35 well anyway, JDK1.7 is not supported Apr 25 07:08:37 so use 1.7 Apr 25 07:08:41 1.6* Apr 25 07:08:47 saight g00s main point is that valine and isoleucine don't induce hormonal changes, but rather bias metabolic pathways by flooding Apr 25 07:10:49 Lemminkainen: i am getting rusty :) Apr 25 07:11:26 so how do I make a fragment replace a tabbed fragment temporarily? Apr 25 07:11:45 no tab host here, just actionbar in tabbed mode Apr 25 07:16:35 Lemminkainen: hm, looking back now, i thought leucine triggers both insulin dependent and independent mechanisms Apr 25 07:16:46 so, i guess i'm still right :) Apr 25 07:17:06 (for protein synthesis) Apr 25 07:25:59 hello, I am not familiar with fragment in Android. I would like to add a fragment into a view pragramatically. I would like to know if it will trigger onCreateView method? Apr 25 07:37:07 yes Apr 25 07:39:28 JakeWharton: I find the fragment return null when I call getView() Apr 25 07:48:05 JakeWharton: do you have any opinion of this ? http://sandofsky.com/blog/git-workflow.html Apr 25 07:49:11 yes Apr 25 07:49:14 squash before merge Apr 25 07:49:28 or DGAF about old broken states Apr 25 07:49:36 dgaf ? Apr 25 07:49:41 don't give a fuck Apr 25 07:49:48 oh :) Apr 25 07:50:08 this is very foreign to me, i never did this with clearcase or perforce Apr 25 07:50:15 i wouldn't worry about it Apr 25 07:50:31 ok, thx Apr 25 07:51:03 this wasn't written for the individual or small teams Apr 25 07:51:57 What is clearcase? Tried to google a description of it once but never found anything Apr 25 07:52:10 i like the final 4 steps at the end though g00s Apr 25 07:52:19 ignore the whole article and skip to those Apr 25 07:52:26 probably some SCM written in COBOL that g00s used in the 1980s Apr 25 07:52:36 clearcase is a very very old tool Mikellip , that eventually wound up at Rational software, and then ibm Apr 25 07:52:50 its still used heavily in aerospace Apr 25 07:52:59 SimonVT: here? Apr 25 07:53:02 ok :) Apr 25 07:53:22 JakeWharton: ok, thx Apr 25 07:56:58 hi g00s o/ Apr 25 07:57:05 hi hackkitten :) Apr 25 07:57:22 how is our favourite g00s? :D Apr 25 07:57:38 hmm, kinda depressed for some reason. Apr 25 07:58:09 maybe git is making me feel stupid and ignorant on a regular basis Apr 25 07:58:38 you can read 1000 books on sailing Apr 25 07:58:46 until you jump in a boat and set off you won't know what you're doing Apr 25 07:58:59 just start using it, i promise you that you'll figure it out Apr 25 07:59:13 I still must schedule 2 days for the sole purpose of learning it properly... Apr 25 07:59:14 i'm worried i'll put my code in this system and fuck up badly, and wind up losing something Apr 25 07:59:38 it's really hard to lose your things completely Apr 25 08:00:15 git maintains a transaction log of everything you do Apr 25 08:00:22 g00s: File copy backup before doing things that you think might fuck things up would make you a bit more calm? Apr 25 08:00:31 when i started using it i would just copy the whole project before doing something i doubted Apr 25 08:00:43 drlaban: jeppy ;: yeah, thats a good idea Apr 25 08:01:25 g00s: Don't do it on a regular basis when you get used to Git though. You have to trust the tools (and yourself) at one time or another. :) Apr 25 08:02:58 s/get/have gotten/ Apr 25 08:03:10 :) Apr 25 08:10:18 i've never used --squash Apr 25 08:27:06 i can't really work out what --squash does Apr 25 08:29:33 <`z> it squashes all current and future bugs! Apr 25 08:37:10 * hackkitten wobbles about with g00s :3 Apr 25 08:37:42 * hackkitten smacks Git for g00s :) Apr 25 08:38:00 * hackkitten is considering abandoning the Google Market Apr 25 08:38:21 Google Checkout keeps not marking some sales as shipped, causing them to get cancelled =/ Apr 25 08:38:30 hackkitten: i read 2 interesting things about wp today. first, apple's ceo thinks ms is dumb for persuing a unified os across all form factors and secondly, at&t and verizon are putting more effort into wp becase they feel there needs to be a 3rd alternative to ios and android Apr 25 08:38:32 Google support just tells me to stuff it Apr 25 08:38:44 heh Apr 25 08:38:57 iOS/OS X is... kinda unified Apr 25 08:39:01 so that's... highly amusing :) Apr 25 08:39:15 hackkitten: i haven't had any problems with checkut yet Apr 25 08:39:20 thankfully Apr 25 08:39:20 and good to hear that there's more effort put into WP Apr 25 08:39:26 lucky you Apr 25 08:39:33 did you know ther is a phone # to call if you are having market problems ? Apr 25 08:39:42 I had to manually ship dozens of sales so far Apr 25 08:39:45 probably Apr 25 08:39:49 but it's likely a US number Apr 25 08:39:51 lemme find it Apr 25 08:39:57 yeah Apr 25 08:39:58 * hackkitten is also on prepaid :( Apr 25 08:40:06 use skype :) Apr 25 08:40:09 yeah, voip it Apr 25 08:40:10 :) Apr 25 08:40:16 hell, google voice :) Apr 25 08:40:30 hackkitten: here you go http://support.google.com/googleplay/bin/request.py?hl=en&contact_type=contact_policy Apr 25 08:40:31 Google is terrible at using their own products, I have noticed :D Apr 25 08:40:51 I had expected email support to be more effective than this Apr 25 08:41:05 * hackkitten just grumbles~ Apr 25 08:42:05 lol @ getting support from google Apr 25 08:42:15 "Phone support is not available for Android Developer issues at this time. Please use the Developer contact forms instead" Apr 25 08:42:18 wut ! Apr 25 08:42:27 this wasn't there a few days ago, fffuuu Apr 25 08:42:47 sorry hackkitten Apr 25 08:44:41 oh, they put custom roms in the topic now :) Apr 25 08:44:56 so we can just say, look at the topic. yey. Apr 25 08:45:21 it's okay, g00s~ Apr 25 08:45:30 * hackkitten is just horribly miffed at Google and Android in general Apr 25 08:45:57 good thing I'll have my new creditcard in a few days. I'll just register with the WP market Apr 25 08:46:02 port stuff to WP Apr 25 08:46:05 and be done with it (o/ Apr 25 08:46:12 WP? Apr 25 08:46:16 windows phone Apr 25 08:46:24 Word Perfect Apr 25 08:46:28 :D Apr 25 08:46:43 * Mikellip cringes Apr 25 08:46:44 * g00s wonders if anyone else here even remembers word perfect Apr 25 08:46:53 I used WP5.1 Apr 25 08:46:54 _o/ Apr 25 08:46:55 loved it Apr 25 08:46:56 :D Apr 25 08:47:13 <`z> on an slightly unrelated note Apr 25 08:47:14 * hackkitten probably remembers most of the keyboard shortcuts as well Apr 25 08:47:15 @_@ Apr 25 08:47:19 <`z> winmo 6.5 was horrible Apr 25 08:47:23 true Apr 25 08:47:24 <`z> especially on the Touch2 Apr 25 08:47:25 hehe, the version i used was text mode dos app; no wysiwyg; styles had different colors Apr 25 08:47:29 windows mobile in general was a joke Apr 25 08:47:32 <`z> ^ Apr 25 08:47:53 g00s > I switched to the WYSIWYG mode eventually, though the white letters on blue still makes me nostalgic Apr 25 08:48:01 indeed ! Apr 25 08:48:06 * hackkitten can still hear her matrix printer rattling away Apr 25 08:48:20 hehe Apr 25 08:48:40 Star matrix printer, IIRC Apr 25 08:48:46 * hackkitten feels old now Apr 25 08:48:54 hackkitten: (re: support). You were routed to the infamous Siberia-based Tech Support. Where mail is deliver using bears, uphill both ways in snow/mud. And people worship fire. Apr 25 08:49:04 * hackkitten shakes her cane at kids~ Apr 25 08:49:13 matrix printer printing a screen shot of Test Drive - made sense back then... Apr 25 08:49:17 p_l > wow, they upgraded to the siberia office? Apr 25 08:49:18 ... or that one guy who is stationed in Antarctica, unless that support mission finished Apr 25 08:50:14 (the last one is half-serious: apparently someone in Antarctica had a big enough paid support contract to warrant a SRE being sent on site) Apr 25 08:50:29 * hackkitten giggles Apr 25 08:50:33 I'd have loved to see that :D Apr 25 08:51:06 given that one of the earlier Google Enterprise products were the Google Search Appliances, I can see it happening Apr 25 08:51:38 personally, I wonder if they managed to put his itinerary into single multi-airline ticket :> Apr 25 08:51:50 * p_l wonders just which airfare code USAF would have Apr 25 08:52:41 I know that one of the two ways to get to the Falkland Islands is by RAF - the other is from Chile Apr 25 08:52:43 has something happened in the android world? Apr 25 08:52:58 my downloads from the SDK manager crawl along with 10k/s Apr 25 08:53:17 Leeds: or by charter Apr 25 08:53:29 okay, or by charter :) Apr 25 08:54:07 or private plane. You just need to get the flightplan approved by RAF, because they run the only airport Apr 25 08:54:19 but the airbase is dual use, iirc Apr 25 08:54:37 like Gibraltar Apr 25 08:55:10 hell, even Warsaw Airport, the biggest international airport in Poland, is technically a dual-use Apr 25 08:56:00 (though thanks to various screwups and idiocies you won't get the old schtick of experimental jets on single tarmac with passenger planes) Apr 25 08:56:40 though it's mainly a civil airport Apr 25 08:56:45 p_l: do you know the funny thing about Gibraltar Airport? Apr 25 08:58:09 the runway is significantly longer than Gibraltar is wide, so it projects into the sea... and the main (only significant) road into Gib from the border runs over the runway... when there are planes using it, they drop a barrier and traffic waits... Apr 25 08:58:30 when there are no planes using it, the road is open to vehicles and even pedestrians Apr 25 08:59:25 Leeds: I know that very well. It's a place of one of the two air crashes that took down a polish president, and unlike the 2010 one, the gibraltar one was much murkier, with a lot of possibility going for Allies killing off president of an allied country Apr 25 09:00:10 i remember reading that Paro was one of the most difficult airports to land Apr 25 09:00:17 only 8 pilots are certified to do it Apr 25 09:00:24 http://atlasobscura.com/place/paro-airport Apr 25 09:01:25 i bet one of them is Bruce Dickinson … yyeeeaaahh :D Apr 25 09:01:30 woot Apr 25 09:01:35 g00s: ... you don't certify pilots for airpors Apr 25 09:01:36 *airports Apr 25 09:01:39 most grueling app ever just completed Apr 25 09:01:52 I thought the old HK airport was also senior pilots only Apr 25 09:02:15 p_l: "Despite the challenges associated with the airport, the eight pilots that are certified to land at the airport still manage to bring over 30,000 people per year into the mountainous Asian country." Apr 25 09:03:03 g00s: at best there's a regional certification for that, and there simply is no need for more than 4 crews to fill the need Apr 25 09:03:41 there's bigger problem with "what kind of plane you want to bring there" than pilots Apr 25 09:04:06 a Falcon 2000 could probably easily do the trip without trouble Apr 25 09:04:52 p_l: do you have one :D Apr 25 09:05:07 nope Apr 25 09:05:11 too expensive ;_; Apr 25 09:05:14 bummer Apr 25 09:05:30 well, hopefully your next android app will be a windfall :D Apr 25 09:06:46 having seen the approach... yes, it's hard one to do reliably in something like A319 Apr 25 09:07:06 a bit worse than HK Apr 25 09:07:51 and only explanation I have for such bugfuck placement is "former military" Apr 25 09:08:15 the new HK airport is easy Apr 25 09:09:33 Leeds: even the old one would be easy now, IIRC... didn't they dismantle that huge former fort? Apr 25 09:09:46 the walled city? Apr 25 09:10:05 been gone a while now Apr 25 09:10:22 yeah, but after the airport closed Apr 25 09:11:14 having seen video from the walled city of a 747 approach.... dude, a bit lower and it would be removing antennas and clotheslines o_O Apr 25 09:11:27 no, I think that was just Kowloon Apr 25 09:11:51 though the crazy crosswinds that were apparently common were weirder Apr 25 09:12:07 * p_l never had seen a big airliner turn like that Apr 25 09:15:49 come to think of it, the one time I did approach at similar angle I said 'fuck it', and did touchdown at ~150% normal speed Apr 25 09:16:52 Hi. I wonder if there is a way to disable/enable a USB Keyboard on an android tablet from giving input? Apr 25 09:17:02 1. USB managing Apr 25 09:17:08 2. Text input disable/enable Apr 25 09:22:12 oh, now it's 1 KiB/s Apr 25 09:27:20 <`z> tapas, dafuq Apr 25 09:39:41 `z: slow download :D Apr 25 09:39:46 now it's faster again.. Apr 25 09:39:48 Hey! Does Android support Mifare S20? Apr 25 10:00:38 just downloaded actionbarsherlock from github.. it has a different (larger) android-support-v4.jar than my project does, what's up with that? Apr 25 10:02:12 it's probably the latest build Apr 25 10:02:33 how much larger? Apr 25 10:08:09 20k Apr 25 10:08:19 my sdk manager says my version is up to date Apr 25 10:08:34 hello Apr 25 10:08:49 oh. the support library Apr 25 10:08:59 sorry, I was off in space. Apr 25 10:09:03 maybe that jar is older, then Apr 25 10:09:55 i would guess that JakeWharton tests the code with new versions of the support library before releasing it, maybe that is why. Apr 25 10:10:32 curious Apr 25 10:12:08 I'm trying to dump keycode on Sony PRS-T1, the simplest example I could think of doesn't write anything in main log https://gist.github.com/2488682 Apr 25 10:12:23 could it be due to Sony's firmware? Apr 25 10:12:29 ah, it was my ViewPagerIndicator, I was using the bundled .jar that came with it, and it was a bit old Apr 25 10:18:41 is any way to change order of elements in GalleryView ? Apr 25 10:20:18 change the order in the underlying adapter and call notifyDataSetChanged Apr 25 10:20:59 Anyone know where the development.apk app is, ie for forcing apps to wait for the debugger. Apr 25 10:21:14 I found an excellent tutorial before about debugging without eclipse, can't find it now Apr 25 10:21:21 so ice cream sandwich on thegalaxy s2 is a bit of a joke Apr 25 10:23:57 so GalleryView should set elements in the same order as I have in my Adapter, is that correct ? Apr 25 10:34:45 storkme: i've got it on my droid 3, when I turn on bluetooth I can't make or receive calls =O Apr 25 10:34:55 lol Apr 25 10:34:57 (CM9) Apr 25 10:35:17 pssht, that's what you get for using a nerdy beardy custom rom :> Apr 25 10:35:25 readme: I fixed the NumberPicker Apr 25 10:35:38 Hi. I wonder if there is a way to disable/enable a USB Keyboard on an android tablet from giving input? Apr 25 10:35:39 1. USB managing Apr 25 10:35:40 2. Text input disable/enable Apr 25 10:35:43 You have to set minvalue and maxvalue Apr 25 10:35:45 Is this possible anyhow? Apr 25 10:36:48 royale1223: nice Apr 25 10:36:57 would be nice if that was in the docs :| Apr 25 10:37:01 blah, reto meiers book isn't available drm free yet :< Apr 25 10:37:53 royale1223: you should make a tutorial Apr 25 10:38:24 does android have some nice utility package to handle input streams and stuff? e.g. to read a whole input stream into a string for example Apr 25 10:38:35 don't think so Apr 25 10:38:37 EntityUtils.toString() Apr 25 10:38:46 readme: I might, you could also make it to display custom strings for each number Apr 25 10:39:34 thats if your InputStream is coming back from a request, though. Apr 25 10:40:21 http://www.mkyong.com/java/how-to-convert-inputstream-to-string-in-java/ otherwise Apr 25 10:46:55 http://markmelive.com/2011/04/android-c2dm-server-and-client-implementation-working/ i m not able to find register_token.php file mentioned in this link?? Apr 25 10:49:25 In RelativeLayout how do I make a widget fill the space between a Left border of parent and right border of another widget completely? Apr 25 10:57:30 How is sleep mode triggered by an Android device, is it when the screen timesout and goes to lock mode? Apr 25 11:32:08 hi, i creating my own content provider and i getting this. Failed to find provider info for com.lorysoft.lawbiller.client.contentprovider Apr 25 11:33:29 http://stackoverflow.com/questions/7463118/content-provider-error-failed-to-find-provider-info-for-contentprovider Apr 25 11:36:35 freecandy i when to your link but it doesn't said much can i past my code some where for you to take a look? Apr 25 11:36:48 *paste Apr 25 11:37:08 pastebin.ca Apr 25 11:37:32 k Apr 25 11:40:00 hello Apr 25 11:42:33 freecandy here is my code to take a look http://pastebin.ca/2140143 Apr 25 11:46:32 The SO results indicate that it's likely a problem with your manifest. Put that out there, too. Apr 25 11:47:15 I put it the manifest Apr 25 11:48:58 "I put it the manifest" up the bomb. Apr 25 11:49:07 the manifest is there at the bottom Apr 25 11:49:47 Lies. Apr 25 11:50:42 Unfortunately, YourStupidApp has stopped. Apr 25 11:50:57 hue Apr 25 11:50:58 Man, I'm tired of these crash messages in ICS. There should be a way to make them sound funny. Apr 25 11:51:49 I did register the provider in the manisfest, i'm doing it worg? Apr 25 11:52:02 *wrong? Apr 25 11:56:00 freecandy - did you found anything? Apr 25 11:58:36 Your manifest was not there. Apr 25 11:58:47 hi, i creating my own content provider and i getting this. Failed to find provider info for com.lorysoft.lawbiller.client.contentprovider http://pastebin.ca/2140143 Apr 25 12:00:42 http://developer.android.com/guide/topics/manifest/provider-element.html contained in: Apr 25 12:05:34 SimonVT so do what else do i have to add in the provider statment? Apr 25 12:05:59 contained in: <- is this true for your provider definition? Apr 25 12:08:01 yes Apr 25 12:08:12 SimonVT: -dev-dev Apr 25 12:08:17 you know it's necessary Apr 25 12:08:31 Check your manifest again (at least the one you pasted) Apr 25 12:08:48 What element is your provider inside? Apr 25 12:08:54 canadiancow: :p Apr 25 12:09:22 As in, what is it contained in? Apr 25 12:09:46 just a client table Apr 25 12:10:01 :( Apr 25 12:10:05 anyone of you guys/gals/persons had to use the worklight SDK recently bought by IBM? Apr 25 12:10:24 In your manifest, your provider is not defined inside your application tag aka it is not contained in Apr 25 12:11:46 ok Apr 25 12:31:57 hi Apr 25 12:32:08 hows video playback in android in general working out? Apr 25 12:32:29 i need it for a tablet app Apr 25 12:32:41 android 3 or android 4 Apr 25 12:33:26 so anyone? Apr 25 12:53:59 hi, has anyone tried selling an app with a gnu-license? Apr 25 12:56:16 yes, people have Apr 25 12:57:02 Leeds, but if my app becomes a hit someone might recompile it and sell it for 10 cents less, right? Apr 25 12:57:18 possibly Apr 25 12:57:20 possibly Apr 25 12:57:22 (: Apr 25 12:57:23 you could always send a DMCA notice Apr 25 12:57:32 why in the world does eclipse not build the final target (.jar, .apk) when you build) Apr 25 12:57:33 can i? Apr 25 12:57:34 well, they'd have to acknowledge your ownership Apr 25 12:57:47 wongk: Save time Apr 25 12:57:53 lov: on what basis? Apr 25 12:57:59 that doesn't save me any time :P Apr 25 12:58:02 Leeds: oh, wait, those need a reason? Apr 25 12:58:08 (: Apr 25 12:58:09 I thought that you could just shit out boilerplate. Apr 25 12:58:14 and no one even checks. Apr 25 12:58:24 they do if you're not a big media company Apr 25 12:58:29 really? Apr 25 12:58:36 SimonVT: do you know if that is configurable? Apr 25 12:58:48 if you *are* a big media company, you get to do takedowns on things you don't own, etc. Apr 25 12:58:50 wongk: I don't think it is Apr 25 12:58:55 I thought that the provision was that when you send a DMCA notice, you swear under perjery that you own the rights, and the hosting company has to immediately service it. Apr 25 12:59:02 erg, that's annoying Apr 25 12:59:10 the person it was served to can respond with "No, they're full of it", and the hosting company keeps it up Apr 25 12:59:16 at which point it becomes a rap battle Apr 25 12:59:19 It creates the apk when you run Apr 25 12:59:19 or maybe a legal battle Apr 25 12:59:20 whatever Apr 25 12:59:23 wwdc tickets are up for sale Apr 25 12:59:24 go get it Apr 25 12:59:26 lov: okay, seriously... AFAIK you need to assert that your rights are being infringed - and if it's GPL, how is that, if the ownership is acknowledged, etc. Apr 25 12:59:28 i know Apr 25 12:59:33 Else it'd have to dex and package for every change you make Apr 25 12:59:40 Hmm. Apr 25 12:59:45 Hello, Apr 25 12:59:45 Instead of just compiling the class files Apr 25 12:59:51 not if you turn off Build Automatically, like a sane person :P Apr 25 12:59:52 Yeah, that's true. If it's truly FOSS anyone can legally take it and re-sell it Apr 25 12:59:59 in which case I don't know what you're worried about cougarten Apr 25 13:00:03 as long as they pass the rights on Apr 25 13:00:04 Leeds, lov, I'll give it a try. just prooving that it is possible to make money or not with open source is worth the risk :) Apr 25 13:00:06 this is what your stallman-esque world dream is right? Apr 25 13:00:15 cougarten: have a look at an app called autostarts Apr 25 13:00:27 cougarten: you can absolutely make money with open source Apr 25 13:00:29 open source is like herpes Apr 25 13:00:34 most people just make it off the backend, selling support. Apr 25 13:00:42 support/services Apr 25 13:00:42 mikedg: everbody wants it? Apr 25 13:00:46 (see: redhat) Apr 25 13:00:49 how do i get thex86 system image for the emulator? its been quite some time since i read the announcement, but there haven't been any new update on my SDK, do i have to do something manually? Apr 25 13:00:57 I would say the 'best' model for selling free software on the market is to sell it, and distribute only the source outside the market... let people with a working SDK build it themselves, and everyone else pay Apr 25 13:01:03 nubits: what SDK version do you have? Apr 25 13:01:19 Leeds, 17, if i'm not mistaken, Apr 25 13:01:25 anyhoo Apr 25 13:01:32 cougarten: you could always use a less permissive license Apr 25 13:01:42 nubits: 18 is current, for a start :) Apr 25 13:01:43 Leeds, right (:. thanks a lot. now i just have to program that skyrocketing thing! Apr 25 13:02:17 19 is current :p Apr 25 13:02:17 lov, i saved a few lines by taking some GNU code (could rewrite it, no rocket sience, but what for...) Apr 25 13:02:19 or possibly 19, depending on what part of the SDK you're talking about... Apr 25 13:02:29 Leeds, lemme double check, Apr 25 13:02:32 cougarten: that's true, but you also took the GPL. Apr 25 13:02:39 cougarten: that means that all of your app is now under the GPL. Apr 25 13:02:47 yes Apr 25 13:02:51 cougarten: ah... I assumed you were talking about an app you'd written yourself from scratch... yeah, as lov says, you're GPLed now Apr 25 13:02:52 but anyway, when i went to check for update on eclipse, it said no new update, Apr 25 13:03:08 cougarten: if you haven't released anything yet, you might want to take that GPL code out Apr 25 13:03:13 find something with maybe Apache2 Apr 25 13:03:24 SimonVT: SDK itself is 18, SDK Tools is 19, by the looks of things Apr 25 13:03:25 that is, if you care about making money or retaining control Apr 25 13:03:28 if you don't, publish away Apr 25 13:04:14 hi all Apr 25 13:04:18 Leeds, just double checked, it was 18, and its now showing the update for 19, but still no option to install an x86 image, Apr 25 13:04:33 The x86 image is in api10 Apr 25 13:04:43 has anyone worked on push notification services for andorid and apple aka C2DM and APNS respectively Apr 25 13:04:56 lov Leeds, i'll have to check. either i rewrite the code (just an raw audio recorder) or i will go with gnu. Gnu might be the loophole to make profit at all as i don't know if my university claims it if i write it as a pre-diploma ... :) Apr 25 13:05:29 SimonVT, the intel atom? i thought they said the x86 image is only provided for ICS? Apr 25 13:05:40 No, GPU accel is only for api15 Apr 25 13:05:42 x86 is api10 Apr 25 13:05:59 And yes, intel atom Apr 25 13:05:59 cougarten: if you're writing it for a class project they might have some claim over it, but anything on your own time would be a bit of a stretch Apr 25 13:06:29 lov, i want a "vordiploma" as said :) Apr 25 13:06:34 prediploma Apr 25 13:07:13 SimonVT, hmm, i see, thanks, i guess i misunderstood some stuff, Apr 25 13:07:16 cougarten: talk to your professor and/or your uni's legal counsel, they'll tell you what you can and cannot do in this regard better than anyone here can. Apr 25 13:07:18 wtf is a prediploma Apr 25 13:07:31 luv, shure :) thanks a lot again Apr 25 13:07:35 and bye! :) Apr 25 13:07:44 ta Apr 25 13:08:53 SimonVT: for your reference, Window > Preferences > Android > Build > Skip packaging and dexing... Apr 25 13:09:04 I don't use eclipse :p Apr 25 13:09:07 But yay Apr 25 13:10:29 canadiancow|work: not all german universities have adopted the bachelor/master degree system yet and still have "prediploma"/diplma degrees.. but compared to the bachelor you can't really find a job with only a prediploma. it's not a real degree, just an intermediate thing Apr 25 13:10:40 oh noes, ABS generates 3 warnings Apr 25 13:10:54 wongk: your warning settings are turned way down then :P Apr 25 13:10:58 for me it generates like 300 Apr 25 13:11:03 mine are default Apr 25 13:11:10 default suck Apr 25 13:11:17 non-default have saved me from real issues before Apr 25 13:11:27 even the googlers dont use good warning settings Apr 25 13:11:30 i've never had anyone recommend anything different Apr 25 13:11:37 if anyone has worked for apple push notification service please reply .... i have a question and its urgent actually Apr 25 13:11:49 there is code in android like: if (x == null) { oh know it's null } x.doSomething(); Apr 25 13:11:59 i keep saying "oh know" Apr 25 13:12:03 that's really odd Apr 25 13:12:11 oh know Apr 25 13:12:23 I no you did but what are you Apr 25 13:12:38 digitalfallacy: yeah... no, still wrong Apr 25 13:12:46 it's urgent help pls Apr 25 13:13:42 i am not sure about the AlphabetIndexer documentation, it states that the alphabet must be in ascii order, so can I use something like "54321" even though the ascii order is "12345". furthermore, can i actually use numbers in my alphabet? judging from my quick look at the source it _should_ be possible, but i am not entirely sure. Apr 25 13:13:44 Leeds: ok ... i think i need to ask on forums Apr 25 13:17:18 wwdc->get married->honeymoon->i/o Apr 25 13:17:19 can't I have an android:textColor to be set to Green? Apr 25 13:17:21 i need to make this happen Apr 25 13:17:39 lol mikedg Apr 25 13:17:42 whens wwdc? Apr 25 13:17:47 11-15 i think Apr 25 13:18:01 O_O Apr 25 13:18:10 you have like 10 days for marriage+honeymoon? Apr 25 13:18:15 mikedg do the last 3 @ the same time :P Apr 25 13:18:20 yeah Apr 25 13:18:43 i think we are just going to hawaii for like a week Apr 25 13:18:44 Sicp: I'm sure you can. Apr 25 13:18:53 Sicp: how about you read the documentation for it and see how to use it? Apr 25 13:19:24 mikedg: you "think" ??? Apr 25 13:19:29 dont you know? Apr 25 13:19:50 it's not his job to know, it's hers :P Apr 25 13:20:09 ^^ Apr 25 13:20:24 mikedg: I like how you haven't planned this yet, and now you're going to end up with the shit hotels because this stuff books up Apr 25 13:20:58 i ended up with a less than optimal hotel for IO because of prices Apr 25 13:21:08 my boss was like "stay at X, it's $159/night" Apr 25 13:21:14 i checked for IO times and it was $450/night Apr 25 13:21:15 lolol Apr 25 13:21:22 why is AlertDialog.Builder so awful Apr 25 13:21:29 irsnot Apr 25 13:21:30 storkme????? Apr 25 13:21:36 i <3 AD.B Apr 25 13:21:43 same... Apr 25 13:22:18 of all the things i find suboptimal in anroid, AlertDialog.Builder is not one of them Apr 25 13:22:30 lol Apr 25 13:23:08 nevermind, my problem seems to be related to the ascii order and not the use of numbers in my alphabet Apr 25 13:23:20 it's really really bad Apr 25 13:23:31 all the style and theming stuff that's hard coded Apr 25 13:23:49 oh Apr 25 13:23:52 thats just dialogs in general Apr 25 13:23:54 means that code that works perfectly on some devices doesn't work at all on others (particularly the list stuff) Apr 25 13:24:29 Hi there. I need to introduce a ServerSocket in my app. Should I use a Service or a BroadcastReceiver? Apr 25 13:24:58 How can I debug a webview? To see if it timed out when requesting content etc? Apr 25 13:25:49 I want to create essentially a blocking serversocket that wait for external data and push it in a queue Apr 25 13:26:14 and then an asyncronous polling service that fetch data from the queue and update the view (a Drawable view) Apr 25 13:26:19 Muzero: a Service would useful, the receiver is unrelated Apr 25 13:26:38 thanks wongk Apr 25 13:27:14 Muzero: the receiver may be useful in tangent with a polling service and the AlarmManager Apr 25 13:27:41 Muzero: you want to use a Service. Apr 25 13:27:47 ok Apr 25 13:27:49 Muzero: a BroadcastReceiver lives for 5 seconds before it is forcefully killed. Apr 25 13:27:52 for the polling service that create a sequence of commands that works in the UI should inherent an AsyncTask or be a sequence of IntentServices or should I execute them directly in the UI thread ? Apr 25 13:28:39 AsyncTask is just a convenience class. Apr 25 13:28:43 my polling service just uses threads Apr 25 13:28:50 Have your view or whatever run a thread. Apr 25 13:28:57 use thread + handler Apr 25 13:28:57 thanks lov actually I saw that the broadcast receiver lives for 5-10 sec before APN Apr 25 13:29:26 do you mean thread without service or a thread within a service? Apr 25 13:29:55 lov: Do you ever sleep? Apr 25 13:30:09 Jonathan_Eyre: I'm on the east coast.... Apr 25 13:30:16 [he means no] Apr 25 13:30:19 You'll notice that I'm usually here from 9AM to 6PM EST Apr 25 13:30:28 Ah, that makes sense. Apr 25 13:30:55 Muzero: I mean have either your view or the activity that contains it spin off a thread Apr 25 13:31:07 have that thread to the polling Apr 25 13:31:12 or maybe use a listener instead Apr 25 13:32:06 okk Apr 25 13:32:07 Muzero: do you only need the polling to happen when an activity is running, or all the time? Apr 25 13:32:33 actually only when the activity is running Apr 25 13:32:45 ok, no reason for a service there, then Apr 25 13:33:10 I though a local service Apr 25 13:33:42 should I put the serversocket in a simple thread in the activity then? Apr 25 13:34:36 it can be associated with the lifetime of the activity, if that meets your requirements Apr 25 13:35:02 Muzero: It's up to you but you should probably use a service. Apr 25 13:35:06 I'd recommend the following Apr 25 13:35:17 Create a service that runs a ServerSocket in a thread Apr 25 13:35:23 ok Apr 25 13:35:27 the service allows clients to register for callbacks when events occur Apr 25 13:35:37 in your serversocket thread, when you get data, push content to the queue, then notify the listeners Apr 25 13:35:51 your Activity will bind to the service and register for callbacks Apr 25 13:35:57 that would definitely be the most extensible design Apr 25 13:36:07 I love it Apr 25 13:36:09 when it gets a callback, it should pull all content from the queue, and then append it to the view or howevery ou want to do it Apr 25 13:36:17 don't forget to synchonize! :D Apr 25 13:36:21 thanks :) Apr 25 13:36:22 (thread safety is important!) Apr 25 13:36:26 items in a listview are set to width=match_parent (i can see this in the hierarchy viewer) but the list items are only like 100dp wide, what's the deal yo Apr 25 13:38:54 storkme: take a look at the list items, are they set to wrap_content or match_parent? Apr 25 13:39:49 width is match_parent Apr 25 13:39:58 i'm using an arrayadapter with simple_list_item_1 Apr 25 13:40:02 huh. Apr 25 13:40:08 * lov shrugs Apr 25 13:40:44 i'm using a dialog on top of a dialog if that makes a difference Apr 25 13:41:03 yo dawg Apr 25 13:41:14 +1 Apr 25 13:42:46 imgpaste.com/2fLF.png <-- to illustrate Apr 25 13:44:41 storkme: i assume you checked the width properties for all of its parents? Apr 25 13:45:03 well you can see the listviews width Apr 25 13:45:19 oic Apr 25 13:45:24 [it's the middle red square] Apr 25 13:45:24 im not familiar with this tool Apr 25 13:45:37 but yeah both are set to match parent Apr 25 13:53:23 is there anything inherently wrong with showing a dialog on top of another dialog? Apr 25 13:54:18 * Jug6ernaut does it xD Apr 25 13:54:44 how do i search gerrit for a specific subject? >_< Apr 25 13:55:04 I think an airplane mode bug is back, notsure Apr 25 13:55:31 storkme: no, not really Apr 25 13:56:30 weird, i changed it to use simple_list_item_2 and it worked :/ Apr 25 13:56:59 nvm ,found! Apr 25 13:57:44 I need to write an in-house blocker that will prevent any app (except for the white-listed ones) from running. Are there any examples of this? Apr 25 13:58:12 * bittin is upgrading the rom on my tablet :) Apr 25 13:58:20 if I have an asynctask that gets a value from a server through a command executed on the server, and then I want to use that result and append it to a textview, cant I have a notify() that lets me know when that result is ready? Apr 25 13:59:17 Jonathan_Eyre: uh, are you working at the frameworks level? If so, ActivityManager is probably the place to look. Apr 25 14:00:20 lov: I think, if the frameworks level is where the ActivityManager is, then that's where I'm going to be going... Apr 25 14:03:25 On the same subject, what would be the best way to ensure that my blocker is always running and able to catch naughty apps? Apr 25 14:03:43 hey, I would like to have a button wait about 20 secs before a user can click on it...how would I do that? Apr 25 14:06:48 anybody? Apr 25 14:07:34 john_doe_jr: start with it disabled, send a delayed message to something which enables it? Apr 25 14:08:23 Leeds: I need a visual clue to the user though that the button has become enabled Apr 25 14:08:41 I believe that 'greying out' buttons is considered bad style... Apr 25 14:08:51 why are you doing this? Apr 25 14:09:28 Leeds: I user must read a required legal sentence before proceeding to the next screen Apr 25 14:09:33 ugh Apr 25 14:14:25 Anyone interested in a Browser patch with a "close all tabs" menu item? Apr 25 14:14:41 lol lov Apr 25 14:14:43 And you're going to make them sit for 20 seconds? I'd have to have a darn good reason for waiting that long for an app. In any case (this will make the world a darker place) you'll want to have a timer running. Before the 20 second timer is up, have the button be a drawable/rectangle that looks disabled. If they click on it, nothing will happen. AFTER the timer, assign a different drawable rectangle to the button, and as Apr 25 14:14:43 onclick event so that the button will take the user on. Apr 25 14:14:54 How do I change the line color that appears under the actionbar? Apr 25 14:15:11 background changes it all... Apr 25 14:16:30 i would just change the text and the disabled state of the button Apr 25 14:16:52 a countdown is common "Wait 20" Apr 25 14:22:11 lov my mom is going away for a week so im taking care of a cat in june Apr 25 14:23:37 is it a lolcat? Apr 25 14:23:49 http://sellout.woot.com/sale/26136 opinions Apr 25 14:24:51 * wongk is intrigued Apr 25 14:25:13 Anyone?! How can I draw that line on actionbar? Apr 25 14:25:18 using my custom background? Apr 25 14:25:30 If I just draw a gradient background, there is no line Apr 25 14:31:09 wongk-home|2: hey, why doesn't the following code automatically re-enable the button...I need to have a button disabled for 20 secs but then enabled....http://pastebin.com/0hT0k8Ks Apr 25 14:34:41 Hmm, is it possible to make a widget that is aware of his on-screen position? Apr 25 14:34:55 heh Apr 25 14:35:01 why would you want it Apr 25 14:35:13 Just wondering Apr 25 14:35:18 it would be cool Apr 25 14:35:22 ironhalik: probably. Get the parent and its offset, rinse, repeat. Apr 25 14:35:28 Hello, guys. Is there any myBatis-like ORM for Android? Apr 25 14:35:31 to have eyes look up at the bottom of the screen and look down from the top Apr 25 14:35:33 :) Apr 25 14:36:11 Hmm, Ill check it out lov, thx Apr 25 14:37:05 I got a question, do you have to insert in a custom content provider to create it? Apr 25 14:37:42 nope just into SQLite Apr 25 14:39:56 I'm going crazy to make a app work with a custom content provider . http://pastebin.ca/2140143 Apr 25 14:40:05 I just found the isUserAMonkey function in ActivityManager. Quite useful. Apr 25 14:41:41 Jonathan_Eyre, why is it useful? Why would you want to detect the monkey? Apr 25 14:42:09 Afzal: Specism. Apr 25 14:42:31 Jonathan_Eyre: you do know what the monkey is, right? Apr 25 14:42:31 Jonathan_Eyre, I hope you're joking because monkey is actually a ui testing utility :p Apr 25 14:42:43 Here my lastest changes and nothing works http://pastebin.ca/2140233 Apr 25 14:42:43 lol Leeds, sorry Apr 25 14:43:12 distorx, I'm sure part of it works :p Apr 25 14:43:25 use github or something :/ Apr 25 14:43:42 Afzal: because you can silently change your behavior for monkey testing if you know something doesn't work Apr 25 14:43:45 or various other reasons. Apr 25 14:43:51 It is totally reasonable to have a check for the monkey tester. Apr 25 14:44:10 I guess. Apr 25 14:44:25 >_< browser >_< just compile already Apr 25 14:44:44 why does it need to compile the framework just to compile the browser Apr 25 14:45:33 I'm here just because I missed my flight last night :( Apr 25 14:45:38 Afzal what i'm doing wrong? Apr 25 14:45:39 by 8 minutes Apr 25 14:45:54 distorx, I dunno, what happens when you compile/run? Apr 25 14:46:03 compile ok Apr 25 14:46:07 run? Apr 25 14:46:23 i just return null from the cursor Apr 25 14:47:34 and Fails to find privider in my my logcat Apr 25 14:49:39 i've never dealt with content providers/resolvers but maybe this link might help Apr 25 14:49:41 http://blog.digesco.com/post/understanding-content-providers/ Apr 25 14:49:49 Afzal: you'd want to detect the monkey to prevent it from doing fatal things on some apps, like wiping the phone if your app has admin rights Apr 25 14:50:05 I have a URI event that launches my app. Is there a way to go back to the browser when my app has finished its duties? Apr 25 14:50:19 dragorn, now that makes much more sense Apr 25 14:50:44 Afzal: or, I suppose, "launch an external app" or other activities like that, which would make the monkey leave your code Apr 25 14:51:14 hmm, yeah I didn't account for those Apr 25 14:52:26 why are ios projects always so damn huge Apr 25 14:52:42 git clone something-android Apr 25 14:52:46 50MB Apr 25 14:52:50 got clone something-ios Apr 25 14:52:52 5GB Apr 25 14:53:48 lol Apr 25 14:54:12 and im only exaggerating a little Apr 25 14:54:18 cause someone keep checking in all the debug code? :D Apr 25 14:54:22 5gb is a lot Apr 25 14:54:26 canadiancow|work: I'm guessing because someone like pushing compiled builds and XCode intellisense. Apr 25 14:54:32 i have two repos, one is ios, one android. the ios one is literally 2GB, the android one is 10MB Apr 25 14:54:46 they do the same thing Apr 25 14:54:51 just on different platforms Apr 25 14:54:54 thats not making any sense. Apr 25 14:55:06 what's the size of the ios folder (only the current ver) Apr 25 14:55:31 you have a huge amount of binary data checked in for some reason? Apr 25 14:55:35 why doesn't the following code automatically re-enable the button...I need to have a button disabled for 20 secs but then enabled....http://pastebin.com/0hT0k8Ks Apr 25 14:55:54 yeah, maybe your gitignore needs an update :p Apr 25 14:56:04 its not "my" gitignore, but... :P Apr 25 14:56:16 I vote for someones doing something dumb :D Apr 25 14:56:21 I love how github now has automatic gitignore option for so many types of projects :D Apr 25 14:56:31 no more copying .gitignore from a previous project Apr 25 14:56:33 Actually, often iOS Apps have third party libraries that account for a lot of space. Apr 25 14:56:51 hes talking gigs tho Apr 25 14:57:09 gigs vs MB… someones doing something dumb... Apr 25 14:57:30 Then probably someone's Camtasia snap of him coding the entire thing. Apr 25 14:58:04 john_doe_jr: use the okButton.setEnabled(false); Handler.postDelayed(Runnable r, long delayMillis) to do this Apr 25 14:58:54 So, if I have my app launched from a browser's intent, can I automatically go back to the browser when I am done? Apr 25 15:00:07 otherman: I'm sorry but I don't understand....what is 'Handler'? Apr 25 15:01:13 john_doe_jr: RTFM? Apr 25 15:02:11 Leeds: alright....but what is runnable r in the Hanlder ? Apr 25 15:02:39 Can I hit the phone's back button to go back to the browser? Apr 25 15:02:42 ah... RTFJavaM Apr 25 15:02:43 john_doe_jr: http://pastebin.com/F02Z1TXQ Apr 25 15:03:22 john_doe_jr: But you should listen to Leeds... Reed something about java. Apr 25 15:04:36 Is it possible for an app to set the phone answerer message and put the phone in flight mode? Apr 25 15:05:39 anli_: The network would be unavailable. How you suppose message to be sent ? Apr 25 15:08:19 Can I make the "Enter" key (within a EditText, presumably) press a certain button? Apr 25 15:09:00 low blow Mr.; low blow Apr 25 15:09:25 Jonathan_Eyre, pretty sure you can just extend the EditText class to do that Apr 25 15:09:38 Afzal: I see that, thanks. Apr 25 15:10:09 Thank [DEITY] for stackoverflow. Apr 25 15:10:25 Dawkins. Apr 25 15:10:27 Thank the internetz for SO Apr 25 15:10:32 Internet is god Apr 25 15:10:42 So is Dawkins. Apr 25 15:10:44 All watching, all powerful, all knowing. :p Apr 25 15:11:16 I dunno about that, can dawkins provide sexually stimulating material for any topic? Apr 25 15:11:44 FFFUFUUu Apr 25 15:12:28 So does no one know how to bump the user back to the browser after an app has done its thing? Apr 25 15:13:07 finish() ? Apr 25 15:13:21 startActivity() Apr 25 15:13:25 something like that Apr 25 15:14:50 is anyone here familiar with the NDK? I'm interested in porting some x86 libs to android and I'm wondering what libraries/resources (eg I need libxml2, is that or any other xml library already availble) are alreay provided. Apr 25 15:14:52 Okay, I'm not sure but. In the stock Browser's source code. I added an item below new_tab_menu_id in res/menu/browser.xml Apr 25 15:15:10 It doesn't show up in the menu still >_< Apr 25 15:15:35 o Apr 25 15:15:58 otherman: thank you so much for that information...that helped tremendously Apr 25 15:16:38 colsandurz: someone may have compiled it already, but afaik the NDK doesn't come with libxml2 precompiled. Apr 25 15:17:12 ok, are is there anywhere I can check for that? Apr 25 15:17:32 developer.android.com is pretty light on NDK references Apr 25 15:18:08 colsandurz: https://groups.google.com/forum/?fromgroups#!topic/android-ndk/tpIUSJp8CwA << that may help, but the link posted is dead Apr 25 15:18:10 colsandurz: I'm using it all day at the moment Apr 25 15:18:36 Just finished adding libtomcrypt onto our build :) Apr 25 15:18:45 colsandurz: you might run into problems Apr 25 15:19:05 colsandurz: the libbionic is not libc Apr 25 15:19:31 colsandurz: so sometimes things don't port correctly Apr 25 15:19:44 alright, at this point I'm just trying to get a feel for what I can work with Apr 25 15:19:50 colsandurz: took me a while to be libupnp with dlna updates to compile Apr 25 15:19:55 to get* Apr 25 15:20:12 like depending on your target you may or may not have pthreads Apr 25 15:20:14 colsandurz: We used tinyxml Apr 25 15:20:16 lol Apr 25 15:20:25 dantheman_ pretty much said it all. bionic is a beast =/ Apr 25 15:20:30 yeah Apr 25 15:20:50 and don't try to use autoconfig Apr 25 15:20:51 dantheman__: thanks for that, I just A xml parser Apr 25 15:21:00 you're going to want to write your own makefiles Apr 25 15:21:12 so learn up on your compiler flags Apr 25 15:21:15 what about event loops? Apr 25 15:22:00 alright I probably have a n00b question but I'm trying to get a TouchEvent to a child view of a parent with a gesture listener Apr 25 15:22:18 its been forever since I've done anything like this and can't remember how to get around it Apr 25 15:23:32 so the parent has a gesture listener for swiping and scrolling, but I want to be able to click on views inside the child view of the parent…. Apr 25 15:24:20 and the views inside the child view of the parent already have listeners established…but my gesture listener is not letting the touch event pass through Apr 25 15:24:42 if anyone can halp…thanks Apr 25 15:24:42 Can someone who's familiar with Android source modification answer this: How do i test a change I make to something like the stock browser? Do I just make Browser or do I make the whole source again to generate the new system.img? Apr 25 15:24:42 thanks Apr 25 15:24:49 storkme: ABS uses r7 Apr 25 15:24:55 as of 4.0.2 Apr 25 15:25:04 previous 4.0.x used r6 Apr 25 15:25:33 http://www.youtube.com/watch?v=qR7zfXL_RdA - ignore the benchmarking, if you skip to about 3:45 in that video, which shows an HTC One X against an AT&T One X (aka One XL) Apr 25 15:25:34 Afzal: m -jN && adb shell stop && adb sync && adb shell start Apr 25 15:25:36 Afzal: yes Apr 25 15:25:38 JakeWharton: sorry 'bout that, problem was I was using an outdated version of the support lib in VPI Apr 25 15:25:49 yeah it's on r6 or something Apr 25 15:26:02 is it showing that the XL is overlaying the menu button rather than reserving space for it, and has an arrow to hide it? Apr 25 15:26:07 thanks for responding though :) Apr 25 15:26:29 I'll get to updating it this weekend hopefully Apr 25 15:26:33 it's been neglected for months Apr 25 15:27:26 evancharlton, is "m" same as make or does it just patch the system.img with the updated stuff? Apr 25 15:28:47 I think I might have fixed my problem Apr 25 15:31:05 Afzal: same as make Apr 25 15:31:30 evancharlton, alright. lol then this will take some time. thanks :) Apr 25 15:32:17 damn, just realized the alternative. oh well Apr 25 15:32:50 Afzal: you can try mmm packages/apps/Browser but you'll likely need all its deps built anyway Apr 25 15:33:31 I did make Browser but that just outputs Browser.apk and Browser.odex to out/target/generic/system/ and that's not what the emulator uses Apr 25 15:33:37 args that didn't work Apr 25 15:33:41 i should've just adb pushed those two in Apr 25 15:34:20 hm, you will probably run into issues with that because /system on the emulator is only exactly as big as it needs to be Apr 25 15:34:29 can anyone help me figure out how to pass a touch from an GestureListener to a View underlying Children so I can hit my onClickListeners? Apr 25 15:34:46 a GestureListener on a View Apr 25 15:35:38 fragments :/ Apr 25 15:35:43 yeah Apr 25 15:35:46 they suck Apr 25 15:37:05 onResume() is run 3 times when first created, then when the fragment is removed (via screen rotation), onresume is called again and causes a npe because my view created in onCreateView is now null Apr 25 15:38:34 For marketing_licensing, I assume the goal of the public key is not for it to never be discovered. But more so that people can't inject their own public key and verify their license server responses? Apr 25 15:38:42 i am using support fragments but still, all the onresume calls seem weird, especially when the fragment shouldnt exist Apr 25 15:41:51 wait if finish() is call in an activity's oncreate(), does it still call onStart and onResume? Apr 25 15:42:58 Hmm, if Im making a widget displaying time - how can I make it refresh every second? Apr 25 15:43:19 is it based on the refresh time of the widget, or on android broadcasting latest time? Apr 25 15:43:43 ironhalik: http://developer.android.com/resources/articles/timed-ui-updates.html Apr 25 15:44:44 thanks, jeppy Apr 25 15:49:46 domo Apr 25 15:50:27 jeppy: I think you might want a Chronometer Apr 25 16:07:09 hey guys, I have an app that targets API 9-16+. My gf said that when she performed one task, she had an app crash. I tried the same thing on the android virtual machine with the same OS API level and I cannot replicate the problem. Is this a common thing seen in android development? Any idea what it could be? Apr 25 16:07:38 An oem fuckup? Apr 25 16:07:46 (in which case yes this kind of thing happens) Apr 25 16:07:49 she's running CM7 Apr 25 16:07:51 could you get a stacktrace from her? Apr 25 16:08:00 I have one in the dev console Apr 25 16:08:12 ok, does it make any sense? Apr 25 16:08:49 claims cursor index is out of bounds because it requests index 0 with a size of 0. I don't know I have tried everything and I cannot reproduce the problem Apr 25 16:09:24 * lov shrugs Apr 25 16:09:28 lol Apr 25 16:09:29 figured Apr 25 16:09:32 can she reliably reproduce it? Apr 25 16:09:41 not sure she just text me about it Apr 25 16:09:52 now shes at work so no luck getting her to try again Apr 25 16:10:05 just mostly wondering if the ADV is different than real android in some magical ways :P Apr 25 16:10:13 yes Apr 25 16:10:22 cyanogen mod is not on an AVD Apr 25 16:10:22 it's not supposed to be, at least not for the public apis. Apr 25 16:10:54 most likely your girlfriend is banging some other dude and shes sending you false stack traces to keep you from asking where she is Apr 25 16:10:57 that said, it's totally possible that something is broken in AOSP :P Apr 25 16:11:18 does the design guideliens site really not talk about navigation in multi-pane layouts? Apr 25 16:11:21 cursor index out of bounds sounds like a bad programming assumption Apr 25 16:11:29 it talks about up and back, but only in the context of single-fragment activities Apr 25 16:11:30 you assume there to be an index 0 while the length is 0 Apr 25 16:11:40 pfn: I'm curious whether it's in a cursor adapter or what Apr 25 16:11:43 but it's a good point. Apr 25 16:12:01 how do you make it so that a user can only choose 1 radio button? In the xml or in the java code? Apr 25 16:12:13 ninjai, the stack trace is quite clear on what would be broken Apr 25 16:12:14 you use radio buttons instead of checkbox Apr 25 16:12:45 And a radiogroup probably Apr 25 16:12:55 ninjai: shes probably just having nice talks with her girlfriends Apr 25 16:13:29 I don't see a radiogroup in the UI icons Apr 25 16:13:44 never mind found it Apr 25 16:14:04 mikedg, she is, actually. lol. Apr 25 16:14:27 for real? Apr 25 16:14:52 http://udufun.blogspot.com/2011/11/women-struggling-to-drink-water.html Apr 25 16:14:53 I am literally wafflemeowing(ROFLMAO) right now Apr 25 16:16:34 for anyone who wants my comments, please PM me, so I could be unrated outside of the confines of this channel Apr 25 16:19:54 mikedg received 0 PMs. http://www.deviantart.com/download/177029075/forever_alone_by_foreveraloneplz.png Apr 25 16:23:50 how should you handle multiple backstacks (different fragment panes) in a tablet layout, with respect to the back button? Apr 25 16:24:02 or is that just a bad idea? Apr 25 16:26:24 probably a bad idea Apr 25 16:28:30 SimonVT, is there any documentation to support that? Apr 25 16:28:40 the navigaiton section of the design site makes no refernce to multi-pane Apr 25 16:28:46 and the multi-pane section makes no reference to navigation Apr 25 16:28:47 :( Apr 25 16:28:49 also: https://www.facebook.com/photo.php?fbid=10150673267223360&set=a.379473193359.158222.290539813359&type=1&ref=nf Apr 25 16:29:12 lawl Apr 25 16:29:31 I don't think there's any documentation Apr 25 16:29:58 What code gets executed first in an app? Apr 25 16:30:34 ClassLoader Apr 25 16:32:42 I meant, does it execute an activity first? Or what? Apr 25 16:33:01 Say I have a bunch of files, with different activities and classes. What part of it gets executed first? Apr 25 16:33:40 The activity that's launched from the launcher Apr 25 16:33:57 anybody here using eclim? Apr 25 16:34:04 The manifest tells the device what activity to launch when the app is called Apr 25 16:34:21 Could also be a broadcastreceiver Apr 25 16:34:59 Is that decided by the activity in the manifest that has an intent filter for category android.intent.category.LAUNCHER? Apr 25 16:35:02 Or Apr 25 16:35:21 something else? Apr 25 16:35:27 depends on how the app is being called Apr 25 16:35:48 if it's from a broadcastreceiver, then whichever activity is listed there Apr 25 16:36:32 Just being called from the home screen Apr 25 16:36:51 SimonVT, any activity! Apr 25 16:36:55 :D Apr 25 16:37:47 Which activity gets started if the app is just being called from the home screen? Apr 25 16:38:13 ANTANI, whichever activity is inside the intent-filter in your app's manifest Apr 25 16:38:43 the manifest should list all of the activities Apr 25 16:38:52 the intent filter for the launcher category? Apr 25 16:38:57 correct Apr 25 16:39:03 okay Apr 25 16:39:13 the category android.intent.category.LAUNCHER Apr 25 16:39:22 with the action android.intent.action.MAIN Apr 25 16:47:03 Okay, thanks boboddy Apr 25 16:51:37 Am I supposed to do anything with the onBackPressed on my main activity? Apr 25 16:51:45 or just let the phone background the app the way it wants to? Apr 25 16:54:08 you can let the phone handle it Apr 25 16:54:16 unless something specific should be done Apr 25 16:54:55 "something specific" Apr 25 16:55:03 there are very few cases where you would want to override that method Apr 25 16:55:24 agreed Apr 25 16:55:34 maybe a real-time multiplayer game Apr 25 16:55:50 "Are you sure you want to quit" Apr 25 16:56:00 but anything else, let them "quit", and restore their state when they return Apr 25 16:59:04 is there no eclipse warning for something like ((Button) findViewById(R.id.btn_play)).setOnClickListener(mPlayInviteOnClickListener); Apr 25 16:59:15 the unnecessary cast to Button Apr 25 16:59:40 canadiancow|work: there are plenty of scenarios where the state could be complex to restore, and a quit dialog could be a useful reminder that you're pressing 'back' instead of 'home' again Apr 25 16:59:45 i don't think it's that smart Apr 25 17:00:19 pragma-, im not saying there are no cases where you'd do it Apr 25 17:00:25 and its not common Apr 25 17:00:28 you said "anything else" Apr 25 17:00:47 and your one case was a multiplayer game Apr 25 17:00:49 well...ok and my first statement was "very few" Apr 25 17:01:03 yes, you're just inconsistent throughout. Apr 25 17:01:09 that case was an example of something where state could not be restored later Apr 25 17:01:44 and there's no reason that state couldn't be restored for a multiplayer game Apr 25 17:01:52 people join multiplayer games in the middle of the session all the time Apr 25 17:02:09 and if they leave, and come back in 5 minutes, do you reset the game for the other players? Apr 25 17:02:16 or do they rejoin at the current state Apr 25 17:02:32 question too general, and deemed meaningless. Apr 25 17:02:52 anyway you've completely derailed the spirit of my answer Apr 25 17:02:59 which was "dont do it unless you have a very good reason" Apr 25 17:03:06 there are a wide range of multiplayer games where a myraid of solutions can apply. Apr 25 17:03:41 no, you went on to babble finer points in an inconcistent manner in an attempt to support your statement Apr 25 17:03:52 pro-tip: leave it as a one-liner statement and let the user's imagination back it up Apr 25 17:04:10 hi all Apr 25 17:04:21 hi Apr 25 17:04:36 I want to toggle 2 fragments in the same container. Do I have to create them each time ? Apr 25 17:05:21 or it's better to crete them on onCreate and then store in a local reference ? Apr 25 17:05:34 Activity.onCreate() Apr 25 17:05:42 for instance, in a poker multiplayer card game, it's not uncommon for a person to drop out and be replaced with someone else with a fresh batch of chips while everyone stsill at the table retains their own chips Apr 25 17:05:52 seems like onCreate might be better Apr 25 17:06:04 in a football multiplayer game, one teammate could be controlled temporarily by the CPU AI until a replacement joins, while the game continues Apr 25 17:06:07 pragma-, so you'd want to ask that person "are you sure you want to quit" Apr 25 17:06:12 thanks Apr 25 17:06:21 because if they later rejoin, the state will be different Apr 25 17:06:28 canadiancow|work: certainly, perhaps the poker player doesn't want to give the game up accidentally. Apr 25 17:09:03 how do I switch logcat device in eclipse? I ran a project on emulated device but logcat windows is showing log from physical device Apr 25 17:10:31 can I add custom attributes to view elements in an android xml layout, and be able to extract that data? Apr 25 17:12:24 and does anyone around happen to have a Sony PRS-T1? Apr 25 17:13:18 I'm writing to log, what is possibly the easiest thing to do, but I don't see the written rows into log, I wonder why Apr 25 17:14:54 there should be a devices tab under the DDMS perspective Apr 25 17:15:20 What are some good terms to search for to find examples of how to create a set of textboxes like in the ICS contacts app, where you can enter a phone number, then click + and enter another one, etc...? Apr 25 17:15:40 ah the logcat is chosen by clicking the Device view Apr 25 17:15:46 boboddy: yes, just found thanks Apr 25 17:15:54 cf. http://groups.google.com/group/android-developers/browse_thread/thread/03a0ae5aa567de14# Apr 25 17:17:05 any reason this code shouldn't print keycodes? https://gist.github.com/2488682 Apr 25 17:17:27 I mean I cannot even see the Log.v() in onCreate Apr 25 17:17:48 but main log has regular system messages Apr 25 17:18:26 anddam are you sure youre looking in logcat Apr 25 17:19:29 I am trying to cancel an alarm by am.cancel(pendingIntent); with pendingIntent exactly the same but still the alarm is going off :( how to cancel an alarm? Apr 25 17:19:32 xorgate: I am Apr 25 17:20:16 * aLeSD :( Apr 25 17:20:43 here is the code: http://paste.ubuntu.com/946019/ Apr 25 17:20:46 obviously on AVDs it works as expectd, I wonder if Sony's firmware is different in that matter but that seems a bit excessive Apr 25 17:21:32 I wanted to check keycodes for the nextPage and prevPage hardware buttons Apr 25 17:22:35 I thought somehow the event chain could be different but there's no reason the main activity creator shouldn't run, is there? Apr 25 17:25:38 yeowza "HTC profits drop 70%, company cites Apple's iPhone 4S as biggest cause" Apr 25 17:26:53 they could sue the iPhone Apr 25 17:27:07 better: sue every iphone owner Apr 25 17:27:29 weird enough Sony PRS-T1 has only warn and error level lines, no info, no debug Apr 25 17:27:38 so they are admitting that they can't compete with apple Apr 25 17:28:35 sh*t, the log facility on PRS-T1 is filtering out anything but W/ and E/ Apr 25 17:29:03 Log.w() works just fine Apr 25 17:29:39 wongk: from what I've seen they cannot, they don't develop their hardware (AFAIK, do they?) and their software is just not as polished Apr 25 17:29:52 and there's the marketing thing, too Apr 25 17:31:05 hello Apr 25 17:31:09 anddam: it's one thing for it to be true, and it's another thing for the company to admit it :P Apr 25 17:32:12 is there some event on android which can be used to know when the device is connected? or I should ping/check the connection manually? Apr 25 17:32:17 the worst part of this HTC thing is that hardware buttons' codes are 0 and 0 Apr 25 17:34:09 MyWay: Apr 25 17:34:57 can anyone please help me in cancelling the alarm? Apr 25 17:36:11 I fixed it, it seems I was passing wrong context :) Apr 25 17:46:32 classes.dex does not exist in maven Apr 25 17:46:43 :-( Apr 25 17:51:26 friggin verizon Apr 25 17:51:35 my internutz are broken again Apr 25 17:51:35 Hello. I have the .jar generated by an Android library and I wish to load it dynamically in the runtime, but then I get this log: I/dalvikvm(3201): Zip is good, but no classes.dex inside, and no valid .odex file in the same directory. and it won't load my class :( Apr 25 17:51:56 How can I make it a valid jar? Apr 25 17:52:02 Hmm, is it a good idea, battery wise, to use alarm manager for refreshing my clock widget? Cycling either every second, or every minute Apr 25 17:53:03 does anyone know any highlight products that have been developed based on the android open accessory protocol? and with highlights i mean products that have been innovative or outstanding in any way. not switching your lightbulb kind of applications. Apr 25 17:55:12 /home/scott/android-ndk-r7c/ndk-build: 185: /home/scott/android-ndk-r7c/prebuilt/linux-x86/bin/make: not found Apr 25 17:55:16 why the... Apr 25 17:56:15 jan_bangna: thats a good question. i have not seen anything Apr 25 17:56:45 it's almost a year ago that is was introduced (may 2011 i think) Apr 25 17:56:48 i often find out about cool gadgets like this from gizmag, hacker news, etc - i see a lot of iphone things, but no android accessories Apr 25 17:58:19 jan_bangna: i made an app that makes a small servo spin Apr 25 17:58:29 honestly, i'm going to bring up that fragmentation word again - however one feels about it, its greatest at the periphery of the hardware apis. i bet companies don't feel like testing their hardware devices on a bunch of android devices; or they don't want to worry about the support costs 'hi, my frobniz is hooked up to my htz zingbat, and its not frobbing' Apr 25 17:58:36 it's the most impressive thing ive seen outside of the demo at google i/o which made a large servo spin Apr 25 17:59:12 cause that's such a problem for windows Apr 25 17:59:51 mikedg: it was at one point, but not so much any more -- anyhow, google != ms, and they didn't handle the situation the same way Apr 25 18:00:02 so your point is invalid :) Apr 25 18:00:03 adk support still sucks quite a bit Apr 25 18:00:07 iirc Apr 25 18:00:46 i dont hear a damn thing about open accessory protocol - not - a - damn - thing Apr 25 18:01:07 it's probably more along the lines of docking your android phone sucks Apr 25 18:01:14 i've never heard of it :P Apr 25 18:01:20 and most accessories would require a docking mechanism Apr 25 18:02:03 if you don't dock the phone, you lose easy access to what is generally a huge componenet cost, the touchscreen Apr 25 18:02:19 so you cant just plug in a usb cable and toss the phone down Apr 25 18:02:41 true, the docking is a valid point. it needs to fit physically with the phone case. Apr 25 18:02:48 even if the phones were all identically sized and shaped, you still have usb cables all over the friggen places Apr 25 18:03:31 so lets say, you come up with a solution for docking different sizes and shapes and usb port locations Apr 25 18:03:48 http://www.thinkgeek.com/electronics/retro-gaming/e762/ would look like shit with random devices in it Apr 25 18:04:00 it looks really friggen awesome when it's designed for a single device Apr 25 18:05:04 so you wind up getting away from the ADK being useful for consumer gadgets Apr 25 18:05:16 and it winds up being relegated to in house properitary crap Apr 25 18:05:20 and you never heard about it again Apr 25 18:05:33 what are you babbling about today, mikedg? Apr 25 18:05:45 your mom is a ******** ***** Apr 25 18:07:01 YO MOMA Apr 25 18:07:04 She'll be pleased to hear that you rate her so many stars. Apr 25 18:07:21 jan_bangna / g00s - ICS brings us true USB, which may, slowly, become useful in ways that the accessory protocol is not Apr 25 18:07:48 namely that we don't need a f'ing 5V power supply for ANY device. Tho we still need it for power hungry devices, plus a splicer for hookup Apr 25 18:07:59 how is true USB different from ADK? Apr 25 18:08:11 jan_bangna: ADK is a USB host controller on your widget Apr 25 18:08:27 yes Apr 25 18:08:28 "true usb" isn't really different Apr 25 18:08:28 which needs 5v @ 1.5A to power the phone and support charging. Apr 25 18:08:31 ADK uses "true usb" Apr 25 18:08:46 ICS enables usb host on the phone Apr 25 18:08:58 well no Apr 25 18:09:00 which means "random-ass usb device" will work, provided someone wrote support Apr 25 18:09:00 3.1 supports it Apr 25 18:09:04 but you also need hardware support Apr 25 18:09:06 canadiancow: "on the phone" Apr 25 18:09:19 "but you also need hardware support" Apr 25 18:09:21 canadiancow: I've been told usb host is an ICS requirement Apr 25 18:09:26 canadiancow: like hw acceleration of 2d Apr 25 18:09:37 canadiancow: though if you pressed me on it i'd be hard put to find documentation offhand Apr 25 18:09:38 it isnt Apr 25 18:09:44 how else would old devices get upgraded? :P Apr 25 18:09:53 a) most old devices aren't Apr 25 18:10:04 b) many DO support USB host, just have no OS support for it Apr 25 18:10:16 even the droid1 supported USB host. Hell, it supported USB host w/ a hardware hack Apr 25 18:11:02 The N1 was USB host capable, too, just lacked a stock kernel + APIs for it Apr 25 18:11:12 there are no ICS requirements Apr 25 18:11:44 is that true that the ADK needs to supply 500mA to the android device to be accepted? what if i want to build something like a bike computer that itself needs good power management? Apr 25 18:11:50 jan_bangna: In any case; usb host allows arbitrary devices, and cheap-as-dirt custom devices, to interface w/ the phone. Apr 25 18:12:12 jan_bangna: if you don't have usb host on the phone, you must supply power, which is what I just said. I thought it was 1.5A @ 5v, 500mA might be it Apr 25 18:12:19 yes jan_bangna Apr 25 18:12:21 well Apr 25 18:12:24 im not sure about charging Apr 25 18:12:32 jan_bangna: if the phone doesn't have usb host, you must be the USB host. Apr 25 18:12:33 it needs to have its own power source though Apr 25 18:12:55 honestly with the number of devices that support accessories, id just go for host Apr 25 18:13:06 its not like 5% support host and 90% support accessories Apr 25 18:13:12 its probably more like 5 and 10 Apr 25 18:13:28 Accessory mode is pretty much irrelevant; if you want to do something interesting with USB, get yourself an ICS device with host. Galnex works fine. Apr 25 18:13:41 If you've ever written drivers with libusb, it's basically the same deal. Apr 25 18:13:42 any help on this error? Apr 25 18:13:42 Cannot find parent: org.twuni:maven-parent for project: null:c2dm-web:jar:0.0.1-SNAPSHOT for project null:c2dm-web:jar:0.0.1-SNAPSHOT Apr 25 18:14:08 At some point I'll get around to patching a libusb to open by filedescriptor and you can ndk your usb drivers Apr 25 18:15:58 i see. i'm a bit worried about supplying the device with 500mA cause the accessory itself will be mobile. if the phone is the host i could as well get the power from the phone, which in my case makes more sense. Apr 25 18:16:02 what you do NOT get in host mode is kernel driver support for the USB device, so you have to re-invent a lot of the wheel to use things. USB is nice in that you can port kernel drivers to userspace, if you're determined, or even to pure java using the android API. It'll take some time and may not be timing friendly, most devices are rpetty fast and loose. Apr 25 18:18:07 i just want a simple serial connection via usb. Apr 25 18:18:12 very hard Apr 25 18:18:32 you'll have to re-implement the serial chipset drivers in userspace Apr 25 18:18:54 so ADK would be easier? Apr 25 18:18:58 * dragorn shrugs Apr 25 18:19:16 If this is for you and you alone, whatever you do that works is easier Apr 25 18:19:24 ok Apr 25 18:19:41 personally if you need low-ish bandwidth serial, I'd say just do bluetooth Apr 25 18:19:52 you can get a rfcomm to ttl serial for about $6 Apr 25 18:20:02 hmm, also an idea. Apr 25 18:20:10 LOL http://www.youtube.com/watch?v=yKf9RVkXLqE Apr 25 18:20:16 put whatever charge pack you're using on a splitter and power your gadget and charge your phone at the same time Apr 25 18:20:42 At some point I'm going to get fed up and port the ftdi serial drivers to userspace for android apps because I have a bunch of things that I need to interface to Apr 25 18:20:47 but I promise nothing, time-wise Apr 25 18:21:11 i want to start an activity when a button is pressed, what is the best way to identify a view? Apr 25 18:21:11 just do wireless Apr 25 18:21:11 or quality-wise Apr 25 18:21:25 mikedg: wifi is expensive and hard to do, embedded. Apr 25 18:21:35 mikedg: bluetooth is a pain in the ass in general, but really cheap embedded Apr 25 18:22:12 pragma-: It should work fine, it's not that timing sensitive unless you're saturating the serial link Apr 25 18:24:11 Guys, I need some advice.. strugling with layout for hours (as always...) Apr 25 18:24:43 I need a layout which I use in a list, it contains news articles. Apr 25 18:25:05 Layout should be: Image Header Time Apr 25 18:25:24 First question, should I use Relative of Linear layout? Apr 25 18:25:54 I think it doesn't matter, right? Apr 25 18:28:27 anyone? Apr 25 18:28:45 you haven't provided enough information to answer that question Apr 25 18:28:47 you could use Relative Apr 25 18:29:12 @wongk, what do you need more? Apr 25 18:29:16 do you want things position linearly, or relatively? Apr 25 18:29:22 positioned Apr 25 18:29:43 draw a picture of what you want it to look like Apr 25 18:29:51 and we can tell you what you should use Apr 25 18:29:55 do you want one particular component to consume all "available" space? Apr 25 18:30:12 there's only one reason linearlayout exists -- for the noobs. Apr 25 18:30:12 == canadiancow|work Apr 25 18:30:21 wongk: correct Apr 25 18:30:58 pragma- thats not true Apr 25 18:31:07 linearlayout is for laying things out linearly Apr 25 18:32:10 how can i cast a string into an integer? Apr 25 18:32:20 switch ( (Integer) v.getTag() Apr 25 18:32:22 not working Apr 25 18:32:41 Integer.parseInt() Apr 25 18:32:43 or something like that Apr 25 18:32:47 should return an int Apr 25 18:33:32 thanks Apr 25 18:34:03 if I run requestLocationUpdates() and want to have location updates both from GPS and network, how can I achieve that? I know that the first parameter specifies the type I want (LocationManager.GPS_PROVIDER and LocationManager.NETWORK_PROVIDER), but what if I want both? Apr 25 18:35:26 I'm getting this error https://gist.github.com/2492013 - I read that the common solution is to delete /sdcard/.android_secure/smdl2tmp1.asec but I don't have that file Apr 25 18:35:46 is there a way to check an apk integrity? Apr 25 18:36:07 anyone remember this? http://i335.photobucket.com/albums/m470/jmartin866/buttonswut.png Apr 25 18:36:15 oh god Apr 25 18:36:17 not that again :P Apr 25 18:36:31 I don't have /mnt/secure as well Apr 25 18:36:33 well i got that looking nice and pretty yesterday and at the end of the day my boss asked me to scrap all of it and do it completely different. Apr 25 18:37:04 the google drive app doesnt show comments in documents Apr 25 18:37:09 and i cant get the fucking thing to load in chrome on my tablet Apr 25 18:37:11 awesome Apr 25 18:37:38 what tablet do you have? Apr 25 18:37:48 galaxy tab 10.1 running CM9 Apr 25 18:38:26 ah, cool. i was considering a gtab, went with xoom instead Apr 25 18:39:00 xoom is thick Apr 25 18:39:09 thick like my ____ Apr 25 18:39:25 yeah, but it's the closest thing to stock android Apr 25 18:40:20 my gtab had stock 3.1 Apr 25 18:40:28 now it has CM9 which is pretty stock Apr 25 18:41:00 yeah, CM is pretty sweet. i have CM9 on my phone but i haven't messed with my xoom Apr 25 18:44:36 ndk-build is failing on: $GNUMAKE -f $PROGDIR/build/core/build-local.mk "$@" Apr 25 18:44:42 with a "not found" Apr 25 18:44:46 i hate the ndk Apr 25 18:44:46 fml Apr 25 18:51:44 GlowLight nook glows blue; fail for bedtime reading Apr 25 18:53:40 Does anyone know how to handle nmea data from a usb dongle? How do you feed it to google maps and other services that use position? Apr 25 18:54:27 wait... it's an extra $40 for the lighted nook? Apr 25 18:56:46 hmm, is there an intent to launch the stock android 'set alarms' activity? Apr 25 19:00:15 anyone know why when im doing Apr 25 19:00:43 Double.toString(Double.parseDouble(event.getCover())) it returns "24.0" instead of "24.00" Apr 25 19:01:36 why don't we start with why you are doing that Apr 25 19:02:20 Bear10 because of precision, you need to set it somewhere I believe Apr 25 19:02:38 someone might want to know about String.format("%.2f", foo) Apr 25 19:02:45 hmm Apr 25 19:02:48 going to check it out Apr 25 19:02:50 and maybe do that in C locale also if parsing back is important Apr 25 19:03:33 you should know that String.format considers the locale, Double.parseDouble does not Apr 25 19:05:31 don't need locale (as its not the users locale im using, it's the servers) Apr 25 19:05:58 then you should specify a specific locale to String.format Apr 25 19:08:19 booting up emulator, going to test Apr 25 19:18:21 "When challenged to produce hard evidence about his claims on the negative impact of turbines, Trump said: "I am the evidence, I am a world class expert in tourism." The public gallery burst into laughter. Apr 25 19:18:25 lolololol Apr 25 19:19:19 does the ndk not work on linux? Apr 25 19:19:47 canadiancow|work: it does for me Apr 25 19:19:51 that would be very weird Apr 25 19:20:04 http://pastebin.com/WyRt6nH5 Apr 25 19:22:17 does the file exist? Apr 25 19:22:27 which file? Apr 25 19:22:32 the error is in the make command Apr 25 19:22:41 /home/scott/android-ndk-r7c/prebuilt/linux-x86/bin/make Apr 25 19:22:41 that make exists Apr 25 19:23:23 that output seems to indicate to me that it can't find the make executable Apr 25 19:23:58 well its there Apr 25 19:24:19 but presumably not correctly in your PATH Apr 25 19:25:09 that doesnt need to be in your path Apr 25 19:25:32 oh shit Apr 25 19:25:36 says the guy who can't get it to work Apr 25 19:25:40 :p Apr 25 19:25:49 is this one of those errors about the stupid 32 bit libs? Apr 25 19:25:52 a vague-as-fuck error Apr 25 19:26:03 because it's trying to link some file that doesn't exist Apr 25 19:26:19 i would expect there to be a lot more output first Apr 25 19:26:24 SON OF A BITCH Apr 25 19:26:25 FUCKER Apr 25 19:26:31 sudo apt-get install ia32-libs Apr 25 19:26:32 that fixed it Apr 25 19:26:35 i swear to god Apr 25 19:26:39 ctate can you update the ndk website Apr 25 19:26:56 wow, that error is terrible :P Apr 25 19:27:13 http://developer.android.com/sdk/ndk/overview.html#reqs Apr 25 19:27:16 Linux (32 or 64-bit; Ubuntu 8.04, or other Linux distributions using GLibc 2.7 or later) Apr 25 19:27:25 s/64-bit/64-bit (with ia32-libs)/ Apr 25 19:27:28 please and thank you Apr 25 19:28:48 only hackers use linux Apr 25 19:29:08 hahah Apr 25 19:29:13 canadiancow|work: can't you just submit a patch? Apr 25 19:29:25 can i submit a patch to the website? Apr 25 19:29:28 i dont know Apr 25 19:29:40 are there websites out there that accept patches? Apr 25 19:30:15 canadiancow|work: I think the website source is in the android source tree somewhere Apr 25 19:30:19 mikedg: pssssst Apr 25 19:30:37 mikedg: hackers use more than linux Apr 25 19:32:21 http://venturebeat.com/2012/04/24/forrester-tablet-sales-predictions/ Apr 25 19:34:08 anyone around that knows how to pass a touch event from a parent view to a child view? I've got a hoz. scrolling view that has a gesture listener (for swiping) and I need to be able to click on items in the child view but I'm losing my touch Apr 25 19:34:35 you should not let anyone touch child views in that way. Apr 25 19:34:45 thanks you Apr 25 19:34:56 dantheman__, pass them a reference to the parent? Apr 25 19:35:08 Ginto8: how so? Apr 25 19:35:20 consider the parent a ListView Apr 25 19:35:25 just a horizontal listview Apr 25 19:35:40 make a method like setTouchEventForwardTarget()? Apr 25 19:36:09 yeah but shouldn't the dispatchTouchEvent(MotionEvent) work? Apr 25 19:36:57 Just use good old onInterceptTouchEvent and onTouchEvent instead of the gesture thing Apr 25 19:37:07 Then don't intercept unless you're swiping Apr 25 19:37:44 ViewPager is a good example of how to do horizontal swiping Apr 25 19:37:51 dantalizing, there's a stack overflow question that's almost word for word of what you want: http://stackoverflow.com/questions/6374592/passing-touch-events-to-the-parent-view Apr 25 19:37:59 where can I view the android source for java.util.Properties? Apr 25 19:42:38 g00s: only 1/3 will be iPads? i find that hard to be believe Apr 25 19:42:49 aren't like 90% iPads right now? Apr 25 19:42:57 i'm not sure Apr 25 19:43:32 SimonVT: word Apr 25 19:43:36 SimonVT: looking into it Apr 25 19:46:03 actually, looks like it only had 57% market share at the end of 2011 Apr 25 19:46:37 * pfn <3 the southpark ipad episode Apr 25 19:46:44 Hello, have you ever faced this problem: "init: critical process 'servicemanager' exited 4". Also commenting all other services in init except console gives me console requires console Apr 25 19:47:04 #android-root Apr 25 19:48:18 one of my favorites was the simpsons episode where bart gets the microphone in the apple store Apr 25 19:48:45 Are ther permissions to change wifi settings? Apr 25 19:48:58 or add some wifi ap and then connect to it. Apr 25 19:49:40 I think so let me check Apr 25 19:51:26 yes there are Apr 25 19:51:52 is that the problem? Apr 25 19:55:34 when jumping from an activity to an activity using an intent, why onCreate() is always called? Apr 25 19:55:44 isnt the activity created once and stored in memory? Apr 25 19:55:58 hmm, finally got the 4.0.4 ota. there's this stupid bug turning the screen on now Apr 25 19:56:09 on my galaxy nexus of course Apr 25 19:56:11 how can i add an action bar Item during run time? I am using actionBarSherlock, and i need to add some buttons when an event occurs (get a new from a rss, for example)? Apr 25 19:56:23 it fades in the screen very slowly when turning the display on sometimes. not always, just sometimes. Apr 25 19:56:26 stupid. Apr 25 20:06:30 when a newIntent is declared is it a new reference everytime it is called? Apr 25 20:06:36 are Intents reusable? Apr 25 20:06:41 for sake of performance Apr 25 20:06:44 why does my android emulator give a no service message? Apr 25 20:06:52 im trying to do the hello world example Apr 25 20:07:53 ocx: i smell premature optimization Apr 25 20:08:26 are you making an assumption about performance, you do you actually have an issue? Apr 25 20:08:34 *or do you Apr 25 20:08:50 i want to know how to design my code Apr 25 20:09:07 if i create a new intent for the "Back button" for example Apr 25 20:09:22 i would not try to reuse an Intent Apr 25 20:09:23 or reuse one that is already used Apr 25 20:09:50 does the garbage collector deleted unused intents? Apr 25 20:09:58 deletes* Apr 25 20:10:03 that is its purpose Apr 25 20:10:33 garbage collection frees derefferenced data Apr 25 20:10:38 ie instance variables Apr 25 20:11:13 { Intent intent = new Intent(); } // GC takes it now Apr 25 20:11:34 ok great :) Apr 25 20:11:39 ocx: premature optimization is the root of all evil. Apr 25 20:11:52 canadiancow|work didnt i say that? xD Apr 25 20:11:56 before you worry "should I cache these intents?" you should profile your code and actually identify problems Apr 25 20:12:09 lov++ Apr 25 20:12:32 1 lov seems to be enough :P Apr 25 20:12:33 Jug6ernaut, when someone asks a question like that, it's worth answering multiple times in different ways! Apr 25 20:12:39 Oi! :) I'm trying to bundle a basic class for a game platform, this class is extending the SurfaceView as of now, as I'm trying out some concepts and don't need to run in OGL.. Is it bad practice to implement Location and Sensor Listeners inside a Surface subclass? Should I instead use a subclass of Activity and implement the listeners there, aswell as my GameSurfaceView? Apr 25 20:12:42 [16:09:07] if i create a new intent for the "Back button" for example Apr 25 20:12:42 wtf? Apr 25 20:12:44 hehe fair neough Apr 25 20:12:47 why would you do ANYTHING for the back button Apr 25 20:12:48 Anyone use both processing and eclipse? Apr 25 20:12:56 "processing" ??? Apr 25 20:13:00 is that a new ide? Apr 25 20:13:12 wongk: lov = (lov == 0 ? 1 : (lov == 1 ? 2 : lov*lov)); Apr 25 20:13:45 you just blew my mind Apr 25 20:13:51 while (true) canadiancow = lov + 1; Apr 25 20:14:11 can 0 & 1 evalute to true/false? Apr 25 20:14:18 in java Apr 25 20:14:20 0 & 1 == 0 Apr 25 20:14:22 0 & 1 == 0 Apr 25 20:14:25 :D Apr 25 20:14:27 lov = Integer.MAX_INT; Apr 25 20:14:29 sort of. I used to program Java for a living then years went by now it is easier to get some apps going with processing than eclipse. If you just want to draw a circle on the screen with no gui or have stars scroll by processing is great. It is just Java with stuff hidden so you just see your code. you can have one line ellipse(...) send that to phone and there it is. no xml etc... Apr 25 20:14:29 gggggggggggggggggggggggggggggggggggggg Apr 25 20:14:30 in any language that has bitwise operations Apr 25 20:14:38 ah Apr 25 20:14:54 Jug6ernaut: not the way they would in c/c++, no Apr 25 20:15:14 Tarzipper_: processing is a really neat abstraction layer Apr 25 20:15:19 Jug6ernaut, as for 1 or 0 being true or false, java is strictly typed, so no Apr 25 20:15:20 Jug6ernaut: yes and I never use booleans because int is shorter to type. Apr 25 20:15:23 boolean Jug6ernautUnderstands = myInt != 0; Apr 25 20:15:41 lov: I wanted to do a cellular automation and have it working in processing in 2 days and still drinking cokes in Eclipse. Apr 25 20:15:57 .... and? Apr 25 20:16:18 canadiancow|work draw something finally added push notifications Apr 25 20:16:21 like a year later Apr 25 20:16:26 Is there any noob android coders in here? Maybe we can all do a starfield from scratch in Eclipse. I've only done the basic button and a text display so far. Apr 25 20:16:29 after everyone has forgotten about it xD Apr 25 20:16:47 Tarzipper_: more than you'd think.... Apr 25 20:17:00 Tarzipper_: check out SurfaceView and GLSurfaceView Apr 25 20:17:04 Tarzipper_, I'm not a noob coder in general, but definitely a noob android coder Apr 25 20:17:15 Tarzipper_: also, take a look at the API demos. Apr 25 20:17:28 Also, take a look at some premade game engines and graphics engines Apr 25 20:17:33 my favorite being libgdx Apr 25 20:18:17 same here but my fingernails being bitten off is from IDE, google api, getting Os happy with everything... im also noob on linux and so kinda don't know where the demo files are for eclipse lol Apr 25 20:18:32 so use an OS you're not newb on Apr 25 20:18:56 AndEngine > libgdx Apr 25 20:19:09 Don't know where they are on win7 either lol. Apr 25 20:20:28 Tarzipper_, file->new->other->Android->Android Sample Project Apr 25 20:20:32 thanks for the motivation: http://developer.android.com/resources/samples/get.html Apr 25 20:20:49 Ginto8: staring Eclipse :) Apr 25 20:20:56 in the eye :) Apr 25 20:21:30 ppl use game engines? Apr 25 20:21:49 if you're gonna write a game, why write the engine yourself Apr 25 20:21:52 unless you like doing it Apr 25 20:21:55 * Jug6ernaut needs to learn opengles2 :S Apr 25 20:22:04 My phone was a piece of kangaroo poo until I put a 3D cellular automation I wrote on it. The rotation speed and fps is insane. Finally it feels like a COMPUTER in my hand. Just took some pride of seeing my program run on it. Apr 25 20:22:05 * Jug6ernaut likes doing it hehe Apr 25 20:22:43 is anyone here ios skilled also? Apr 25 20:22:59 * Jug6ernaut has done some ios dev, very very little Apr 25 20:23:32 * Jug6ernaut does not like objective c Apr 25 20:23:45 * Jug6ernaut doesnt know why steve jobs wanted to screw up c Apr 25 20:23:50 is the only way with mac, running mac emulator or is there an emulator and ide which works for win or lin? Apr 25 20:24:01 huh? Apr 25 20:24:02 Jug6ernaut: obj-c > c :D Apr 25 20:24:03 he does not want people running free programs on the phone. licensing Apr 25 20:24:11 oh, you mean iOS Apr 25 20:24:14 Tarzipper only can do it on osx Apr 25 20:24:22 jailbreak your phone, but honestly take this to #ios or something? Apr 25 20:24:31 there is a osx86x project tho Apr 25 20:24:33 * Jug6ernaut stops Apr 25 20:24:54 But my linux looks just like mac :) okay good hands are full with Android, PC and empty of mac. Apr 25 20:25:23 One mouse button is a red flag. Apr 25 20:27:01 hmm Apr 25 20:27:13 4.0.4 also changes the font size on notifications by default Apr 25 20:27:19 they seem much too small now Apr 25 20:29:39 [22:12] [16:09:07] if i create a new intent for the "Back button" for example - wtf? Apr 25 20:30:42 just did my first kindle fire app Apr 25 20:30:55 canadiancow|work: for ex I have 3 activities: Activity1 -> Activity2 -> Activity3 - how is it better to fo from Activity3 back to Activity1 escaping Activity2 ? Apr 25 20:30:56 Tarzipper_, that joke/taunt is kind of sad, because the modern apple mice, despite their "one" mouse button, can be configured to basically have 3 Apr 25 20:31:00 birbeck, I have a kindle fire Apr 25 20:31:00 and it sucks Apr 25 20:31:12 but I love it because it's my only android tablet atm Apr 25 20:31:12 rootty, dont call that a "back button" Apr 25 20:31:12 *to go Apr 25 20:31:14 lol, was my first time to use it also Apr 25 20:31:22 the "back button" takes you back to activity Apr 25 20:31:27 activity2* Apr 25 20:31:31 yes Apr 25 20:31:33 i have 2 other tablets, so not interested in the fire myself Apr 25 20:31:45 but we can ovveride onBackPressed() Apr 25 20:31:50 DONT DO THAT Apr 25 20:31:52 and go to activity2 Apr 25 20:31:55 whe? Apr 25 20:31:58 why* Apr 25 20:32:03 because you will confuse the user Apr 25 20:32:12 back takes you back to where you just were Apr 25 20:32:16 that's why it's called BACK Apr 25 20:32:17 and not JUMP Apr 25 20:32:22 can I ask about ad network SDK related stuff here? :) Apr 25 20:32:26 I understand, but i don't need activity2 anymore Apr 25 20:32:43 so call finish() on it Apr 25 20:33:03 and for user side it would be the same Apr 25 20:33:32 jump from activity3 to actitvity1 Apr 25 20:33:37 rootty: please don't do this. Apr 25 20:33:40 like canadiancow says, just call finish after you call startActivity, or better yet, set the intent to noHistory Apr 25 20:33:46 rootty: call activity3 via startActivityForResult Apr 25 20:33:56 Ginto8: isn't there a delay after clicking the one button. Imagine if you had to hold a key longer for caps lock. Apr 25 20:34:01 when activity2 gets an OK result from that, finish() activity2 Apr 25 20:34:07 dont override back to start activity1, that still keeps activity 2 and 3 in the back stack Apr 25 20:34:12 ^^ Apr 25 20:34:15 lov, that's good advice Apr 25 20:34:22 rootty: http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html Apr 25 20:34:25 please read this Apr 25 20:34:31 it's very important that you understand how this works Apr 25 20:34:51 I will be a one button man when affordable :) Apr 25 20:34:59 Tarzipper_, modern macs are very clean, nicely set up, elegant machines that just happen to cost way more than they're worth Apr 25 20:35:05 lov, canadiancow|work, thanks guys Apr 25 20:35:16 I <3 this channel =^-^= Apr 25 20:35:43 Ginto8: I agree. Shoulda jumped on it sooner. Instead made an igloo out of old PCs to program in. Apr 25 20:36:14 meh, I'll always be a PC + linux guy Apr 25 20:36:22 but I can appreciate macs Apr 25 20:36:35 When you own the three major OS and are fluent at all three will you be able to be accepted by them, them and them at the same time? Apr 25 20:37:09 them being the good users of Turings idea. Apr 25 20:37:36 I'm not familiar with Turing's idea of good users :/ Apr 25 20:39:01 Neither am I. Just people who use his idea well in controlling that ticker tape head and those rules all up in there. Apr 25 20:39:37 Brian Fitzgerald programmed on both PC and MAC! Apr 25 20:40:15 who installed this random word machine?! Apr 25 20:40:16 okay- I'm warmed up. Going to start Eclipse and get a black background with one pixel on in the center. Apr 25 20:40:22 i don't understand it! Apr 25 20:40:37 Willy Wongk a? Apr 25 20:42:27 can anyone point me in the right direction for creating a UI that has textviews that appear when you press a button? like the phone numbers, etc. in the edit contact screen/ Apr 25 20:44:10 damccull: create an onclick listener that inserts new conrols into the layout Apr 25 20:45:02 You could also hide / show (setVis) of a layout already created or use a ViewSwitcher to switch between views Apr 25 20:45:30 ^ for people who hate creating views programmatically Apr 25 20:45:41 Hi. I'm doing a custom camera application where I'm not using the builtin preview (i.e. I setPreviewDisplay(null) on my camera object). However, whenever I call takePicture(), my onPictureTaken() callback always gets a null byte[] buffer! (And the JPEG callback is never invoked.) Apr 25 20:45:47 Anybody seen this before? Apr 25 20:45:55 I want the user to be able to press the + button and add a new textview or spinner (haven't decided which yet), and then the - to delete it Apr 25 20:47:09 So programmatically create the views. Ok I can do that...but how about storing them? Should I use a listview to put them in? a linearlayout? Apr 25 20:47:50 which one best fits your use case? Apr 25 20:47:51 If they are different probably just put them in linerlayout, but if you have a lot of similar ones use a listview Apr 25 20:47:53 just do a listview, and add info to ur adapter Apr 25 20:48:50 listviews make dealing with input controls difficult and if every row is different you don't get a lot of benefits for using it, might as well just put it in a scrollview Apr 25 20:49:57 wth, next nexus is samsung again? Apr 25 20:50:11 hasnt google learned anything over the last 2 years? Apr 25 20:50:14 luis I'm pretty sure you have to have the preview area implemented and visible to take photos that way Apr 25 20:50:21 I'm using getActivity() a lot in fragment classes.. Is there a reason why I shouldn't use it? Apr 25 20:51:07 scottagarman: I see. should I just take a photo by saving a preview frame? (Do I lose quality that way?) Apr 25 20:51:09 XeruX: are you casting the activity? Apr 25 20:51:38 wongk: nope Apr 25 20:51:40 the ubuntu+1 channel sucks. Apr 25 20:52:00 there's not really a reason not to use it, then Apr 25 20:52:19 yea, just going to be returning the reference anyways...should be fine Apr 25 20:52:26 luis no don't do that, i just think for take picture to work you need to have it working. If you don't want to implement the camera itself then you should just send and intent to take a photo and let the built in camera do the work of capturing Apr 25 20:52:30 they boot you to it from the regular channel. Apr 25 20:52:49 it's possible you may be writing spaghetti code, but it's possible you may not be :P Apr 25 20:52:52 Is there a document that describes the different URI options for "content://sms/"… I want to get the last incoming message for each conversation thread. Apr 25 20:52:59 New 12.04 comes out tomorrow maybe they fix things and it will go smoother for Androil. Apr 25 20:53:33 scottagarman: but I do. I'm doing my own custom preview, which works fine. But now I want to take a picture. Apr 25 20:53:51 When SDK is installed are the examples also installed? where to find on linux? Apr 25 20:54:33 guys, i moved my Android source folder. Is there something I need to do because of that? Apr 25 20:55:04 Tarzipper_: yes, and you should learn to query installation paths from your package manager Apr 25 20:55:09 change the source directory in your java build path Apr 25 20:55:11 luis, i'm not exactly sure what could be happening. Take a look here for some more info http://developer.android.com/training/camera/cameradirect.html Apr 25 20:55:38 birbeck, that'd be for eclipse right? Apr 25 20:55:53 yeah, if youre using idea, then idk Apr 25 20:55:59 http://www.digitaltrends.com/mobile/facebook-you-sly-dog-update-for-android-auto-installs-new-apps-to-confuse-users/ Apr 25 20:56:02 for fuck's sake Apr 25 20:56:08 When you install Facebook for Android, it now installs Camera and Messenger apps that are somewhat mislabeled and disguised as default apps. Apr 25 20:56:15 DO YOU KNOW WHAT AN APP IS? Apr 25 20:56:18 but obviously, if you change your source dir, you need to tell your ide or build tool where to find it Apr 25 20:56:19 HINT: FACEBOOK CAMERA IS NOT ONE Apr 25 20:56:23 scottagarman: I've read that from top to bottom, but thanks anyway. :) Apr 25 20:56:42 birbeck, thanks. Then I guess no need to do much to compile android. I was asking because the thing isn't booting and I thought maybe that could be the reason Apr 25 20:57:00 * wongk notes not to upgrade facebook Apr 25 20:57:02 wongk: yes because it has been hidden from me? Apr 25 20:57:10 I found it in home. Apr 25 20:57:20 I guess it could've been the little change I made to Browser :/ Apr 25 20:57:22 Now how to start the manager without being in Eclipse. Apr 25 20:57:36 Tarzipper_: oh, so you didn't install the SDK using your package manager i take it? Apr 25 20:57:41 canadiancow: and you cant disable them Apr 25 20:57:41 omg canadiancow|work wtf it installs apps? Apr 25 20:57:43 I just finished sleeping while it was building, now I have to sleep again :( fwp Apr 25 20:57:56 how can I use 'getApplicationContext()' in a widget? Apr 25 20:58:10 well actually, my biggest fwp was: reached the airport 8 minutes late, didn't let me check in Apr 25 20:58:13 birbeck, that is true, but they're just fucking shorcuts Apr 25 20:58:14 AppWidgetProvider, that is Apr 25 20:58:22 ironhalik: you're given the context Apr 25 20:58:26 So, to figure this out I'm trying to read the source but I get stuck at "private native final void native_takePicture(int msgType);" Apr 25 20:58:37 wongk: it may have been done with eclipse. I'll get to start over tomorrow from scratch and will take notes. may have used pm. Apr 25 20:58:38 canadiancow: just extra entries in the manifest with action launcher Apr 25 20:58:46 yep Apr 25 20:58:46 Anyone know where I can find the C definition? Apr 25 20:58:51 but its not "installing apps" Apr 25 20:58:59 next to the B definition? Apr 25 20:59:01 wow, some tiling company bought wallbase.com ... guess they'll be getting lots of hits Apr 25 20:59:04 heh, yeah, but tech blogs dont know any better Apr 25 20:59:15 evancharlton: hmm Apr 25 21:00:11 ironhalik: onReceive(Context, Intent) is the signature ... Apr 25 21:00:14 wongk: dpkg-query the package manager? no gui for that? Apr 25 21:00:38 trying synaptic Apr 25 21:00:47 is there any way you can tell *why* your phone isn't compatible with certain devices? I have 2 version of my app (free/paid) and the only difference is the version number and version code inside the manifest file. One of my apps is compatible with my Nexus One, my Transformer, and my Galaxy Nexus. The other version is not compatible with my Galaxy Nexus. WTF? Any tips on where to dig into this? Apr 25 21:01:19 evancharlton: yeah, I tried using it but it wont work for my purpose, and docs say to use the 'getappcontext' method, so I figured out the problem is with it, somewhere Apr 25 21:01:29 It seems like my app is having trouble with fragments and hte use of getActivity() Apr 25 21:01:35 as in, it returns null Apr 25 21:01:37 (in some cases) Apr 25 21:01:57 Any one know why I get a azimuth value from the SensorManager that ranges from -170 to 170, I'm trying to use the compass in landscape orientation and I've done a remap of the coordinate system, like this: SensorManager.remapCoordinateSystem(inR, SensorManager.AXIS_X, SensorManager.AXIS_Z, orientVals); Apr 25 21:01:58 um.. *app not phone Apr 25 21:02:00 Then your fragment hasn't been attached to an activity yet Apr 25 21:02:10 bug-reports filed.. on Toast.makeText(getActivity(), "my text"...).show(); Apr 25 21:02:24 Or it has been detach from one Apr 25 21:02:31 how can I make sure it has been attached to an activity? Apr 25 21:02:41 Add it and don't remove it ;d Apr 25 21:03:00 scottagarman: oh. browsing through android/hardware/Camera.java I found that I should probably be calling addRawImageCallbackBuffer()! Apr 25 21:03:06 It'll return null before onAttach and after onDetach Apr 25 21:03:29 ironhalik: context.getApplicationContext() ... Apr 25 21:03:37 how to launch manager from command line? It was installed by Eclipse. In the SDK folder not sure if its there. Apr 25 21:04:03 By calling "android" Apr 25 21:04:05 "launch manager"? Apr 25 21:04:48 tarzipper what manager? AVD manager? SDK manager? Apr 25 21:04:57 sdk Apr 25 21:05:03 luis: if you just want jpg all you should have to do is call takePicture and save the jpg returned in the callback. RawImage is for non jpgs ie no image format just bytes intead of jpg bytes. Apr 25 21:05:11 If you installed the ADT plugin only you probably don't have the SDK manager yet Apr 25 21:05:19 You have to download the SDK separately Apr 25 21:05:20 SimonVT: what if I don't want to add it and never remove it again? Apr 25 21:05:36 scottagarman: I want the raw image format, because I want to apply a filter. Apr 25 21:05:38 FWP: Open Photoshop in Wine to make a FWEPP image, Photoshop crashes when typing text :( Apr 25 21:05:49 damccull: It launches from Eclipse Apr 25 21:06:12 Look in your eclipse preferences to find the android sdk path Apr 25 21:06:12 XeruX: Then don't do stuff that requires an activity when getACtivity returns null Apr 25 21:06:14 it'll be int here Apr 25 21:06:25 hello, i am using : String [] parts = null;parts = mImagePath.split("."); where mImagePath = "/mnt/sdcard/DCIM/hori_blue.png" and it is returning null... any ideas ? Apr 25 21:06:49 Window->Preferences->->Android->SDK Location: Apr 25 21:07:00 SimonVT: I need a reference to the activity.. :( Apr 25 21:07:01 luis, if you can't do that with jpg byte data you might be out of luck. Many android devices do not actually implement that ability. Apr 25 21:07:06 XeruX: Tough luck Apr 25 21:07:18 asterisk-Tester: in general, never assume that /mnt/sdcard is the external-storage root dir Apr 25 21:07:21 it may well not exist Apr 25 21:07:24 luis: http://stackoverflow.com/questions/5946837/android-raw-image-callback-supported-devices Apr 25 21:07:51 scottagarman: damn. although I see addRawCallbackBuffer() in the source, I don't see it in the javadoc and I don't seem to be able to call it for some reason. Apr 25 21:08:08 SimonVT: or just the current context or whatever, so that I can display a Toast Apr 25 21:08:14 without the fear of getActivity returning null Apr 25 21:08:22 Tarzipper_, Check eclipse preferences::: Window->Preferences->->Android->SDK Location: Apr 25 21:08:28 As I said, don't remove the fragment then Apr 25 21:08:45 I did and know that location. don't know if the binary is in there. Apr 25 21:08:50 That's basically your choices.. Don't remove fragment, or don't use stuff that requires activity when it returns null Apr 25 21:08:55 Should be in the root folder Apr 25 21:09:13 ctate: noted but 1-is there a way to universaly detect the containing folder of images ? 2-in my case i am actually passing this string, java wise shouldnt it be splitted into 2 parts ? Apr 25 21:09:24 scottagarman: I see, thanks! That's very useful to know. For my purposes I'm going to use a preview frame for the actual picture since that's more than enough for my purposes. Apr 25 21:09:30 scottagarman: thanks a lot! Apr 25 21:10:25 damccull: there are no files in the root of the sdk folder Apr 25 21:10:43 then check the tools folder Apr 25 21:11:08 Windows verison has an exe that launches the manager from the tools folder I think, it's probably in the same place Apr 25 21:11:18 alright it is android in the tools folder. trying to make a link to it on the launcher. Apr 25 21:12:12 Hey guys, I have a question about global state. Whats the best place to store data I want to access from multiple activities, like cached image data for example. Should I extend application and store it there or make some kind of singleton or something else? Apr 25 21:12:26 Tarzipper_, tools/lib/sdkmanager.jar Apr 25 21:12:37 asterisk-Tester: Environment.getExternalStorageDirectory() tells you where to find the external storage Apr 25 21:12:52 targeting 2.2 api 8 is okay? logic is my galaxy wont update beyond 2.2 so maybe millions of others aren't. if going with later api you must target your device speficially on its out of box api? Apr 25 21:13:49 Tarzipper_, target the highest possible, and don't use the APIs from newer versions Apr 25 21:14:01 Tarzipper_, then set the minsdk for the minimum version you want to support Apr 25 21:14:14 Unless you want to leave those with newer devices out in the cold Apr 25 21:14:34 damcull: that is a nice solution. Apr 25 21:15:20 Tarzipper_, if you want to use some of the newer APIs like fragments and such, look into the compatibility package. Apr 25 21:15:43 damcull: confused on application programming interface vs. software development kit version. API is a layer, SDK handles certain APIs? Apr 25 21:15:46 Tarzipper_, or, if you want an easy way to use the new actionbar look from the newer versions, look into ActionBarSherlock or another library similar to it Apr 25 21:15:58 ctate: noted Apr 25 21:16:01 thx Apr 25 21:16:25 Tarzipper_, SDK contains many different APIs. Each OS version can run its own API and earlier. Apr 25 21:16:32 tell me one thing guys Apr 25 21:16:58 say I work at RIM, can i incorporate/adapt android features to BB without the risk of RIM getting sued? Apr 25 21:17:07 SDK contains everything you need to write an app, including all the tools, debuggers, emulators, extra libraries, and even the APIs themselves. Apr 25 21:17:15 Afzal: ask your company's lawyer Apr 25 21:17:24 evancharlton, alright Apr 25 21:17:31 damcull: you are so way ahead of me. I can code but in Android have compiled only two buttons and a text string with an increment value for the buttons. That uses textview within activity class. Figuring out others peoples classes is fun. :) Apr 25 21:17:36 Considering RIM included the android runtime in their playbook..:p Apr 25 21:17:52 An API is a definition of the capabilities of a specific version of the OS. Apr 25 21:17:56 SimonVT, yeah Apr 25 21:18:09 oh also, does anyone else's Galaxy Nexus crash during prolonged wifi tethering? Apr 25 21:18:18 damccull: thanks Apr 25 21:18:42 Tarzipper_, android has a very weird, and oh so lovely application architecture. Apr 25 21:18:48 damcull: so the sdk needs to be later than the api? Apr 25 21:19:15 Ah you're talking about min SDK version, etc Apr 25 21:19:20 Target SDK version? Apr 25 21:19:33 damccull: well I'm okay with outsourcing to xml even though it has a lot of uninteresting text to me. Apr 25 21:19:53 Hi Apr 25 21:20:07 The SDK Version elements are the integer representations of the API level you want. Apr 25 21:20:34 Personally I think they should be named API version Apr 25 21:20:45 damccull: I don't know. I'm used to a DOS computer, C editor and compiling to an EXE. Apr 25 21:21:02 but 2.2 is 8 and ICS current is 15 Apr 25 21:21:25 hi everyone, so i have a coma hero running firmware v.1.5 and just flashed cyanogenmod v.7.1 with clockwork mod orange as recovery. so my problem is that although i can get superuser (i see # after dab shell + su) i'm unable to remount /system with "adb remount". the error i receive is: "remount failed: Operation not permitted" Apr 25 21:21:39 jc_adx: #android-root, like it says in the channel topic Apr 25 21:21:40 So if you want a minimum android version of 2.2, set Min SDK version to 8, and target the latest: 15. Apr 25 21:21:44 or you could hit #cyanogenmod Apr 25 21:21:49 since, y'know, it's CM. Apr 25 21:21:51 My IDE had to know about the language. The language had to know about the OS. There should be paralells somewhere. Apr 25 21:22:08 Tarzipper_, java doesn't care about the OS. Apr 25 21:22:16 Android apps are written in java Apr 25 21:22:18 the last time the language had to know about the OS was, like, Multics. Apr 25 21:22:36 the IDE knows all about java and the android APIs\ Apr 25 21:22:41 That's all they need :) Apr 25 21:22:45 I know. programmers said that was impossible for years. you could not have a middle layer because each computer is different. Apr 25 21:23:17 Then some guy was like, "oh wait if we just interpret the stuff on the fly we're good" Apr 25 21:23:26 [citation required] Apr 25 21:23:36 heh Apr 25 21:23:39 people have been writing hw- and os-indepedent languages for over 50 years Apr 25 21:23:39 MOST EMBARASSING THING EVER Apr 25 21:23:52 I just watched canadiancow|work make a fool of himself Apr 25 21:24:07 Same old Apr 25 21:24:09 damccull: that wasn't necessary for two people to write two different implementations of drawing a pixel for two computers and having a language that says draw pixel work on both computers. Apr 25 21:24:59 okay where should I start to have an app with a black background that is the type of view which will support a pixel on the screen? Apr 25 21:25:15 SimonVT: ok, so I figured out what was going down.. When user press the home-button while my async-task is running (communicating with the server), there's obiously no activity present to be used by the Toast when my listener receives data from the server, and presents them to the user Apr 25 21:25:21 :D Apr 25 21:25:25 got the samples. any noobs want to make a ship move left and right and fire one bullet upward? Apr 25 21:25:29 Tarzipper_, what do you want a pixel for? Apr 25 21:26:05 Tarzipper_, try surfaceview and then write some code to draw in it Apr 25 21:26:36 basis for graphics application. I have a cellular automation that unpacks an integer into a unique shape. In Processing I got it to work in 2 days and run on my phone. But processing is limited for apps. Apr 25 21:28:14 Video of integers being unpacked into a shape: http://www.youtube.com/watch?v=esXOoypzM1E I have it working in Java and just need to framework in Android to make it work in Android. Will also add a scanner that makes a drum beat so it plays a rhythm based on the shape. Apr 25 21:28:38 The 3D version is really cool. It unpacks in 3 dimensions instead of 2. Apr 25 21:29:00 Its like being an artist with a canvas you can't see and a bunch of books in the room telling you how to access it! arg! :) Apr 25 21:29:33 That is why it is important to get lots of soft drinks. To tough it out for hours. Apr 25 21:30:36 After that new agey app is going I can focus on some 'real' apps. Turn based etc... Apr 25 21:30:45 damccull: I want a pixel for a friend. Apr 25 21:30:53 apparently... Apr 25 21:31:20 damccull: as lonely as a pixel on a black canvas. Apr 25 21:31:23 now to create a custom view that is simply a composite of three other views Apr 25 21:32:41 POP)() Apr 25 21:35:58 oh hai neekers :) Apr 25 21:36:14 damccull: in eclipse is the target either the device or the emulator? can the target be java applet? trying to set it as applet. would go this way if it was faster to bring the applet up than emulator. Apr 25 21:37:07 you must put it on a device or emulator. Apr 25 21:37:09 no applets Apr 25 21:37:21 damccull++ Apr 25 21:37:28 apps don't have EVERYTHING they need to run built into them. They rely on the OS. Apr 25 21:37:59 I use my phone for most dev work since it's fastest Apr 25 21:38:12 damccull: got it - otherwise it would need an emulator / mini layer - and we have it. Apr 25 21:38:15 then i use emulator to check final product on other OS versions and ensure nothing breaks Apr 25 21:38:51 man, i need a used cheap nexus S for source testing Apr 25 21:40:28 afzal swappa.com Apr 25 21:40:42 damccull, yeah I know. Just saying Apr 25 21:40:49 anyone here switched from yakju to takju? Apr 25 21:41:05 what's takju? Apr 25 21:41:28 it's the US version of yakju (with google wallet) Apr 25 21:41:44 identical in every other way Apr 25 21:43:41 and what's yakju? Apr 25 21:43:51 NEW GALAXY NEXUS Apr 25 21:43:54 oops caps Apr 25 21:44:04 the non-US variant of takju, damccull Apr 25 21:44:20 lol Apr 25 21:44:36 ok so i have gnexus gsm running cm9. what do I have? Apr 25 21:45:04 none of the above Apr 25 21:45:08 oh, I remember this. 3 apples? Apr 25 21:45:15 I hope Google learned some lessons from the launch of the Galaxy Nexus. Apr 25 21:45:59 Samsung launched the nexus, didn't they? Apr 25 21:46:44 MDijkstra, withGoogle Apr 25 21:47:02 well yeah, but what exactly was your complaint about the launch? Apr 25 21:47:05 learned what lessons? Apr 25 21:47:14 besides vzw dragging their feet Apr 25 21:48:08 yeah mostly that lesson (pfn) but also to have all the material ready when things are released Apr 25 21:48:12 hi. i am using sharedpreferences to use settings from appwidget config activity in appwidgetprovider. unfortunaetly, even though i commit changes before calling updateAppWidget, i get default value instead of set one in provider. strangely, when i add second widget, it reads right value and functions correctly. any ideas? Apr 25 21:48:16 like having Nexus S images Apr 25 21:48:32 that has little to do with the gnex launch Apr 25 21:49:04 why is the first line of a multi-line from xml indentend differently in a TextView? Apr 25 21:49:24 I don't think it's very unreasonable to give your newly-launched flagship phone a few weeks of ICS exclusivity Apr 25 21:54:16 let me put this different way then: how do you suggest to extend information between widget configuration activity and appwidgetprovider? Apr 25 21:55:38 is the emulator scaleable? Apr 25 21:56:00 in width/height? Apr 25 21:58:12 of course Apr 25 21:58:21 not at runtime Apr 25 21:58:22 just set up an AVD with whatever screen dimensions you want to work with Apr 25 21:58:35 it's not a resizable window, unfortunately Apr 25 21:58:43 I really wish it was, because that would make testing layout breakpoints much easier Apr 25 21:59:25 Ciziu: "extend information"? Assuming you mean "share information", use a persistent data store keyed on appwidgetid Apr 25 21:59:36 just set width/height in pixels in the AVD. that is only scaling and won't affect pixel density or anything? Apr 25 22:00:06 Tarzipper_: what? Apr 25 22:00:11 evancharlton: *exchange. sorry for that :) Apr 25 22:00:41 Ciziu: then my answer still stands :) Apr 25 22:01:02 its taking up the whole screen. it does not support landscape? Apr 25 22:01:32 Tarzipper_: rotate the emulator... Apr 25 22:01:39 also, try using a much smaller AVD Apr 25 22:01:59 if you're not using a hardware accelerated AVD (and you're not unless you're on an intel chip on windows) the drawing takes up a huge amount of the render time Apr 25 22:02:07 QVGA is obnoxious but keeps things zippy imo Apr 25 22:04:17 i usually stick with HVGA Apr 25 22:04:23 QVGA is like, one icon on the screen Apr 25 22:04:50 I do qvga but make it a 10" display Apr 25 22:04:53 xldpi Apr 25 22:04:57 haha Apr 25 22:05:06 please let that never exist Apr 25 22:05:24 evancharlton: ITYM "television" :) Apr 25 22:07:29 What would make my eclipse not recognize a class that's in another package, when it already recognizes many classes in other packages? Only difference is when the class and package were created....I think. Apr 25 22:07:29 ctate: no, that would be on a 30-40" display Apr 25 22:07:35 changing the resolution of the emulator is only affecting the display? if you choose landscape by putting in 800x480 for instance is this independent of a setting and the code must be set to landscape somewhere? Apr 25 22:07:54 when are 9-patch drawables going to get an upgrade Apr 25 22:08:00 i want my .10.png Apr 25 22:08:50 actually, defining a repeatable region would be cool for textures Apr 25 22:08:54 Tarzipper_, just hit ctrl f-12 to cycle orientations Apr 25 22:09:07 *F11 Apr 25 22:09:12 either one Apr 25 22:09:27 f12 works too? Apr 25 22:09:28 cool Apr 25 22:09:34 indeed. i think it's left and right Apr 25 22:09:42 well, I am storing at sharedpreferences keyed by widgetid now so, thanks to it being independent for every widget instance, it doesn't work properly no matter how many I add. strange thing really. looks kinda like preference writing is nonblocking and after all is written to late. Apr 25 22:10:30 anyways, why is my new class in package com.mystuff.App.views not being recognized in a com.mystuff.App.fragments class? Apr 25 22:10:33 LIke I can't even import it Apr 25 22:10:43 manifest, other menu.xml can't find and knew it was there. Tells me what area I am dumb in. Apr 25 22:10:56 damccull: declare it public, default scope is package-private. Apr 25 22:11:09 readme, the class is public. Apr 25 22:11:18 public class MyClass Apr 25 22:11:37 then your autocomplete is bugging out Apr 25 22:11:39 just type it Apr 25 22:11:42 build clean Apr 25 22:11:49 I get squigglies of evil red still. Apr 25 22:12:00 Coding is easier than the xml, ide etc... lol Apr 25 22:12:04 what does it say when you mouse over the red Apr 25 22:12:28 it says, xml should die Apr 25 22:12:35 MyClass cannot be resolved to a type. Apr 25 22:12:48 isn't there a default main.xml file in projects? Apr 25 22:12:56 make sure all other errors are resolved and that all the files are saved. Apr 25 22:12:59 good luck. Apr 25 22:13:05 readme, all are :( Apr 25 22:13:25 Nothing more I can do Apr 25 22:13:30 * readme goes to eat Apr 25 22:13:34 does anybody know an example for JakeWharton's DiskLruCache ? That would be very nice Apr 25 22:13:45 ROAR. Restart eclipse and magic Apr 25 22:13:55 someone ported the HttpClientCache back which uses DiskLruCache Apr 25 22:13:57 Boeby, I bet JakeWharton does. Apr 25 22:14:03 lol Apr 25 22:14:19 what does DiskLruCache do? Apr 25 22:14:30 ohh JakeWharton is here - i will ask him directly Apr 25 22:14:33 what is the part in eclipse where you can edit the interface? geez Apr 25 22:14:38 probably a lru cache that writes to disk Apr 25 22:14:45 damccull, :-) what do you think ? Apr 25 22:14:55 oic Apr 25 22:15:07 I bet an httpclientcache is probably a cache that stores http clients Apr 25 22:15:18 I r smart Apr 25 22:15:19 hi, i a a few textivew in a class and already have a listener for buttons. how can add more listerner for text changes for the activity? Apr 25 22:15:22 https://github.com/candrews/HttpResponseCache Apr 25 22:16:36 extending linearlayout, MyConstructor(Context context, AttributeSet attrs)...what do I pass to attrs when I need to instantiate this? Apr 25 22:16:46 null Apr 25 22:17:00 AttributeSet is only used when inflating from XML Apr 25 22:17:08 I am doing that. Apr 25 22:17:11 in the constructor. Apr 25 22:17:36 but the example code I'm using seems to be using the context instead of the attrs Apr 25 22:17:42 LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Apr 25 22:17:58 JakeWharton, I will check that - thx! Apr 25 22:18:28 Guys, is the process for signing an Amazon app the same as a Play Store app? Can I sign with my Play Store keystore and then upload to Amazon? I see that they have the option of signing or allowing devs to sign. I'd like to sign it myself so that the Maps stuff will all work. Apr 25 22:18:35 I wish there was some form of overall progress during compilation of Andoird Apr 25 22:18:39 Android* Apr 25 22:19:00 Afzal, after a while, you know what component is at what progress in the total build Apr 25 22:19:09 Chronax: use different signatures for the different distribution points Apr 25 22:19:24 is the main.xml where font size is set? Apr 25 22:19:27 Chronax: I believe Amazon will re-sign your app anyway Apr 25 22:19:44 amazon doesn't re-sign the app Apr 25 22:20:03 not that I'm aware of at least Apr 25 22:20:05 pfn, that must be after frequent builds. Unless I'm modifying things every now and then, I wouldn't know. I only rebuild once I have an idea to implement Apr 25 22:20:20 any ideas why the following FC appears with ABS and proguard on ICS: java.lang.NoSuchMethodException: [class android.app.Activity, int] Apr 25 22:20:47 Ge0rG, proguard is being too aggressive Apr 25 22:20:48 of course Apr 25 22:20:50 evancharlton: So can I just upload my pre-signed APK? Apr 25 22:20:54 pfn: seems so, yeah. Apr 25 22:21:06 Ge0rG: you stripped the constructors from the base activies Apr 25 22:21:09 probably I should've c&ped the proguard part from ABS instead of optimizing it. Apr 25 22:22:00 CompoundButton sucks Apr 25 22:22:02 grrr Apr 25 22:22:08 sometimes when I decompile an apk, there are classes that just won't decompile but not all of the classes in that same app. Why is that and how can I have my apps do that? Apr 25 22:22:19 I must say I'm getting quite confused. I've set up few debug markers and it looks like, even though widget isn't showed before finishing its config activity, it's onUpdate function is executed immediately. is that right? Apr 25 22:22:26 where in a fragment can I programmatically manipulate the views? Apr 25 22:22:37 any time after onCreateView Apr 25 22:22:39 onViewCreated Apr 25 22:22:45 Thanks Apr 25 22:23:16 Afzal: someone has figured out tricksy ways to break baksmali Apr 25 22:23:22 Afzal: feel free to pop into #baksmali or something Apr 25 22:23:30 not to say anyone will do anything bit ridicule you Apr 25 22:23:30 lov, will do Apr 25 22:23:31 but w/e Apr 25 22:23:39 lol Apr 25 22:24:29 IllegalStateException: The specified child already has a parent. how do I figure out which child this is? From logcat Apr 25 22:26:00 nm found it :) Apr 25 22:27:32 evancharlton: Any idea? Apr 25 22:27:46 We had a previous developer who uh, promptly left today. Apr 25 22:27:59 He was responsible for our Amazon stuff. Looks like he was signing the apk himself, but I'm not sure how. Apr 25 22:28:07 I sign our Play Store stuff. Apr 25 22:28:11 ... Apr 25 22:28:37 although i've heard that Amazon rips open the apks, modifies them, repackages, and resigns with their own cert Apr 25 22:28:49 Huh. Apr 25 22:28:51 yes, I have heard this too Apr 25 22:28:55 but they might still require the original cert Apr 25 22:28:59 I wonder if I can just get away with uploading the unsigned APK then, and letting them sign it? Apr 25 22:29:00 I think they do, for the licensing part Apr 25 22:29:05 I think they might just resign the licensing stuff Apr 25 22:29:12 [which is pretty awful from the perspective of e.g. backup compatibility, but sigh] Apr 25 22:29:18 2 certs 2 furious Apr 25 22:29:23 ctate: sorry, what was that? Apr 25 22:29:23 heh Apr 25 22:29:28 I couldn't hear you over the sound of fragmentation Apr 25 22:29:30 Chronax: you'll have to ask amazon Apr 25 22:29:34 ^^ Apr 25 22:29:34 So nobody knows the answer to this question. Apr 25 22:29:39 :) Thanks evancharlton. Apr 25 22:29:43 Chronax, simple answer: buy your app from amazon Apr 25 22:29:46 alternately, download a few apps to a rooted device, pull them, check the certs. Apr 25 22:29:47 pull the apk from your device Apr 25 22:29:50 check the license on it Apr 25 22:29:52 pfn: ha ha Apr 25 22:29:57 s/licence/certificate Apr 25 22:30:00 pfn: o/ Apr 25 22:30:04 lov: device doesn't need to be rooted to pull the apks Apr 25 22:30:11 they're world readable Apr 25 22:30:15 [unless they're forward locked] Apr 25 22:30:21 .... oh. Apr 25 22:30:24 wait, seriously? Apr 25 22:30:25 there used to be data/app-private Apr 25 22:30:33 pfn: that's for forward-locked apps Apr 25 22:30:39 I thought that the dir with the apks wasn't world readable Apr 25 22:30:41 is that what it's called Apr 25 22:30:46 lov, the dir isn't Apr 25 22:30:49 but the files are world readable Apr 25 22:30:50 lov: yeah. it's how e.g. Launcher looks up their icons Apr 25 22:30:53 o_O Apr 25 22:30:58 so you can't list /data/app Apr 25 22:31:04 but if you know the name, you can pull from /data/app Apr 25 22:31:06 I thought launcher did it via PM wizardry Apr 25 22:31:10 gnope Apr 25 22:31:14 whaaaaaaaaaaaaaaat Apr 25 22:31:53 i suppose it might be using PM APIs to do it, but that's what it boils down to Apr 25 22:32:13 so if I want AppWidgetProvider's onUpdate method to be executed after (well exactly right before) finishing configuration activity, I have to explicitly call android.appwidget.action.APPWIDGET_UPDATE intent? Apr 25 22:32:30 maybe the PM apis that do this are exposed on the frontend instead of via a service call Apr 25 22:32:34 because this sounds wacky as fuck Apr 25 22:32:42 lov: this has always been the way it works Apr 25 22:32:47 ctate: Launcher uses PackageManager Apr 25 22:32:56 oh fine :) Apr 25 22:32:58 oh hello romainguy_ Apr 25 22:33:01 PackageManager doesn't run as root Apr 25 22:33:06 er Apr 25 22:33:11 no, but systemservice might :> Apr 25 22:33:11 * pfn shrugs Apr 25 22:33:16 now that i think of it, that's necessary for the layncher to be able to show the icons of forward-locked apps Apr 25 22:33:18 sigh Apr 25 22:33:24 right Apr 25 22:33:26 system server emphatically does NOT run as root Apr 25 22:33:39 only installd, zygote, and a few other lower level bits and pieces Apr 25 22:33:43 I'm waiting for the day when an oem ships a phone where it does. Apr 25 22:33:48 because we both know this will happen Apr 25 22:33:51 I remember this layout stuff from early Java and had no control- how you do put two buttons next to eachother? Apr 25 22:33:58 lov: we'll refuse to allow Play Store on it, because that would break a lot of shit Apr 25 22:34:03 hah Apr 25 22:34:07 Tarzipper_, there's lots of ways to do it in "early" java Apr 25 22:34:13 the uid of the system process is part of the API Apr 25 22:34:17 Tarzipper_: android doesn't use AWT or Swing. Apr 25 22:34:17 Tarzipper_, use a linearlayout or relativelayout Apr 25 22:34:39 pfn: and we chose to code mouse buttons etc... from the ground up. it was okay for gray boxes and simple layouts but a nightmare. Apr 25 22:35:11 sounds like a case of doing it very wrong Apr 25 22:35:23 it is linear. Apr 25 22:36:01 it is apparently not linear enough Apr 25 22:36:03 oh jeez. time to learn about AutoCompleteTextBox and Spinner Apr 25 22:36:09 pfn: there was no right way. applet/application two totally different sets of tools. even with absolute positioning it was better to do it as a function of screen size from the ground up. Apr 25 22:36:39 Tarzipper_: #baked-graybeards plz Apr 25 22:36:46 cool Apr 25 22:37:09 Im there Apr 25 22:37:12 Tarzipper_, still wrong Apr 25 22:37:38 hi i have introduced a new systemcall in android kernel and want to use this system call in my app. I understand that i need to use JNI but how can i set the library path of my eclipse editor so that i can include the correct header files Apr 25 22:37:41 pfn: well I have to do a load of work right now to get two buttons next to eachother. checking out sites on layout width to find out the layout charms. Apr 25 22:38:30 type android buttons in google and second suggestion is side by side showing statistically how non-intuitive this is. Apr 25 22:38:49 what are u tyring to do? Apr 25 22:38:55 hello. newby here. i'm using a TabHost activity with no icons, just text. is there a way to make it centered on the tabs and not on the bottom ? Apr 25 22:38:58 huh Apr 25 22:39:19 or something similar Apr 25 22:39:22 and you're done Apr 25 22:40:14 j0p, change the tab_indicator view Apr 25 22:41:39 i tryed setting gravity to both tabhost and tabwidget but doesnt work Apr 25 22:41:56 what you mean by tab_indicator view ? Apr 25 22:41:57 pfn: that changed it to landscape layout Apr 25 22:42:12 no, it doesn't Apr 25 22:42:20 you rotated your phone into landscape layout Apr 25 22:42:23 not even in the gui editor for the buttons is it allowing them to be left and right. any secret clicks? Apr 25 22:42:37 yes I rotated the emulator Apr 25 22:44:15 Tarzipper_: in your linear layout Apr 25 22:44:24 see what I mean mass time and no control - relative, flow whatever. why not hard code it for each device and have control right now where it all goes? Apr 25 22:44:29 if there's an orientation tag, change it from vertical to horizontal Apr 25 22:44:35 Tarzipper:if u use linear layout with horiz attribute it should stack the views side to side,thats what u want no? Apr 25 22:44:36 if there's no orientation tag, add one, and set it to horizontal Apr 25 22:45:28 just two buttons next to eachother. I changed the resoltion so it would fit the emulator on the screen. then it cut off the bottom. lame controls. Apr 25 22:45:38 had enough for now will try later. thanks. Apr 25 22:45:48 >,< Apr 25 22:45:48 people that write absolutely layouts need to be shot Apr 25 22:45:55 worst ui ever Apr 25 22:45:59 hey Tarzipper_ Apr 25 22:46:00 http://developer.android.com/training/index.html Apr 25 22:46:00 so every iOS dev? Apr 25 22:46:01 go there Apr 25 22:46:02 they're the ones that give most gui applications a bad name Apr 25 22:46:04 read some of the articles. Apr 25 22:46:14 http://developer.android.com/guide/topics/ui/index.html Apr 25 22:46:15 but i agree pfn. even desktop apps Apr 25 22:46:16 maybe this too? Apr 25 22:46:17 and websites Apr 25 22:46:18 FUCK Apr 25 22:46:24 DONT MAKE YOUR WEBSITE 1024px ACROSS Apr 25 22:46:25 canadiancow, particularly for non-phone apps Apr 25 22:46:38 640k I mean px is enough for anyone Apr 25 22:46:57 can I force a state on a drawable? I want to make a background reflect checked or not Apr 25 22:47:58 you have n boxes with m sub-boxes in various positions then hope a layout manager will make it look right at various aspect ratios- that is the most insane thinking ever. Apr 25 22:48:22 how can I make a view remove itself and its parent from the heirarchy? Apr 25 22:48:53 Tarzipper_, doing it absolutely will guarantee it wont look good on all devices Apr 25 22:49:00 and no, you're wrong Apr 25 22:49:49 why wont it let me put the two buttons on the same line? whether in source or in the gui. all 3 items selected. linear layout horiz selected. 3 stacked items. ? Apr 25 22:50:22 Tarzipper_, they are probably both trying to get the entire width. Set android:layout_weight="1" on both. Or 1 and 2, or whatever Apr 25 22:53:00 Can I make a button remove its parent linearlayout from that linearlayout's parent? Apr 25 22:53:02 I don't get how ads work on android. Couldn't I theoretically make an app that serves ads, then just click them a lot and... pay myself? Apr 25 22:53:32 i think if one IP address or serial number clicked the same ad over 9000 times in one day... Apr 25 22:53:38 and what's your definition of "a lot" Apr 25 22:53:54 no definition, just wondering lol Apr 25 22:54:16 ninjai Apr 25 22:54:17 yeah i guess that would make sense Apr 25 22:54:29 ~1000 views is like 1c Apr 25 22:54:45 ah ok Apr 25 22:54:45 plus, all views/clicks from one ip is gonna...well...be obvious Apr 25 22:55:56 ads pay like crap unless your app is decently popular Apr 25 22:55:56 there was not a nested linearlayout. The text and buttons were within the first one which has vertical for the device. another layout was set under it with horizontal. they are messed up though. Apr 25 22:56:01 ok then how does that work? I would imagine most cell companies use a few IP addresses and all the cell phones are in a LAN behind it... so they'd be coming from the same IP address mostly anyways... no? Apr 25 22:56:28 who knows, may go off phone id or something Apr 25 22:56:33 thats what i was thinknig Apr 25 22:56:34 i assure they know lol Apr 25 22:56:38 evancharlton :( Apr 25 22:56:58 ninjai, most ad network sdk's include device tracking Apr 25 22:57:10 forbid humans from placing buttons next to eachother. Apr 25 22:57:14 deleting the source and pasting one from the net Apr 25 22:57:19 ninjai, it doesn't care about IP Apr 25 22:57:35 pfn /me said ip Apr 25 22:57:35 canadiancow: i was spying on you in the hangout Apr 25 22:57:37 ah, thx pfn that makes sense Apr 25 22:57:40 LOL Apr 25 22:57:44 did you hear when they said my name? Apr 25 22:57:47 and then people starting asking questions and it was as bad as this place so i closed the tab Apr 25 22:57:51 "OH SCOTT KENNEDY WHAT IS YOUR QUESTION?" Apr 25 22:57:54 haha no Apr 25 22:57:57 and im like...my mike's off bitch Apr 25 22:58:03 i couldn't stand it for more than 2 minutes Apr 25 22:58:05 and that 14 year old kid? Apr 25 22:58:08 OH HAY GUISE Apr 25 22:58:09 GUISE Apr 25 22:58:11 YOU SHOULD LIKE Apr 25 22:58:14 haha yeah i saw him Apr 25 22:58:14 etc Apr 25 22:58:15 oh god Apr 25 22:59:09 what am I doing wrong with this code? Apr 25 22:59:10 http://pastebin.com/tWQh43Sd Apr 25 22:59:36 not explaining what the problem is Apr 25 22:59:43 oh my Apr 25 22:59:51 oh yes it was not mentioned. Apr 25 23:00:01 just wake up Jake? Apr 25 23:00:15 no, you? Apr 25 23:00:16 well we decided to outsource layouts today :) Apr 25 23:00:31 :\ Apr 25 23:00:34 we can't put our programmers in a layout hell. Apr 25 23:00:53 find scripters and put them in scripting/layout hell Apr 25 23:01:03 If you love them and have so much fun with them post up a service and we will be your customer. Apr 25 23:01:25 me? i hate scripting Apr 25 23:01:37 Guess you can't scroll up Jake? Apr 25 23:01:45 takes to much work Apr 25 23:01:56 Did you wake and Jake today or something? Apr 25 23:02:15 I have a natural aversion to people who refrain from reading the documentation and asking questions properly Apr 25 23:02:28 avert boy, avert. Apr 25 23:02:53 you could not see the question at all right? Apr 25 23:03:07 Tarzipper_, your paste? you have 2 buttons atop another, then a textview at the bottom Apr 25 23:03:23 Tarzipper_, take out some paper, draw some boxes how the layout should work, your xml will map to it directly Apr 25 23:03:29 what do you mean? Apr 25 23:03:31 if we're talking linearlayout Apr 25 23:03:37 so tahts why JakeWharton hates me... Apr 25 23:03:38 Paper? It is one sentence with two buttons below it. Apr 25 23:03:48 He sounds like a wad. Apr 25 23:03:57 one sentence with two buttons below it? Apr 25 23:04:04 are you from some country that reads bottom to top? Apr 25 23:04:11 lol Apr 25 23:04:13 a line of text with two buttons below it. Apr 25 23:04:30 pfn: maybe Apr 25 23:04:30 that's not what you have in your most recent paste Apr 25 23:04:39 relative layouts ftw Apr 25 23:05:33 GridLayout FTW Apr 25 23:05:36 layouts are for little girls. Apr 25 23:05:41 programs that dont require extensive UI ftw Apr 25 23:05:48 ABS for everything else Apr 25 23:05:57 lol at that bug (Gallery view not recycling views) not fixed since 2009: http://code.google.com/p/android/issues/detail?id=3376 Apr 25 23:06:02 Jug6ernaut: amen to that (non-extensive UIs) Apr 25 23:07:35 http://pastebin.com/e6AMLv7X Apr 25 23:08:19 now you have your textview and buttons side-by-side Apr 25 23:08:29 ben hadj foufou added you on Google+ Apr 25 23:08:32 ... wtf is that Apr 25 23:08:34 (use layout builder) Apr 25 23:08:36 how can I remove points from Path Apr 25 23:08:48 so it needs what a
? lol Apr 25 23:08:55 there's also an extra nested unnecessary LinearLayout Apr 25 23:08:56 an Apr 25 23:08:56 a dumb xml one Apr 25 23:08:57 d y Apr 25 23:08:58 ou Apr 25 23:08:58 Apr 25 23:09:00 Tarzipper_, seriously, think of linearlayouts as boxes Apr 25 23:09:03 draw the boxes on paper Apr 25 23:09:07 then map into xml Apr 25 23:09:09 if you can't do that... Apr 25 23:09:13 ctate, going for one character per line? :) Apr 25 23:09:14 and you didn't paste teh whole thing, or it didn't compile, because the second is missing Apr 25 23:09:19 canadiancow: irc client bug Apr 25 23:09:21 yes one box on top of two. so hard to visualize I need paper. Apr 25 23:09:22 :) Apr 25 23:09:36 Tarzipper_, so hard for *you* to visualize Apr 25 23:09:41 since you can't get something so simple correct Apr 25 23:09:52 lol Apr 25 23:10:03 dont' specify widths and heights in dp Apr 25 23:10:07 no good will come of it Apr 25 23:10:08 +1 Apr 25 23:10:08 what is the set of cryptic symbols - oh - a layout for the text view and another one below for the buttons. how great. Apr 25 23:10:14 ctate, PUT THAT SOMEWHERE ON ANDROID.COM Apr 25 23:10:20 im quoting that and telling everyone Apr 25 23:10:25 lol Apr 25 23:10:28 good Apr 25 23:10:30 each layout is a box relative to other layouts. so advanced. Apr 25 23:10:50 Tarzipper_: use rel layout for this Apr 25 23:10:52 everything is a view. a layout is a view that contains other views. Apr 25 23:10:52 if you're using linearlayout, it's conceptually a box in a single direction Apr 25 23:10:56 RTFM RTFM RTFM Apr 25 23:10:57 pfn: I get very hard stuff correct and this is the cost. Apr 25 23:11:07 pfn "container" Apr 25 23:11:09 of course, nesting linearlayouts is the suck Apr 25 23:11:21 yes, i would recommend reading the documentation on how Android UIs are constructed and how the layout systems work Apr 25 23:11:24 Jug6ernaut, for real world analogies along with other layout systems *outside* of android, it's a box Apr 25 23:11:30 Layouts are invented by non-analytical people for themselves because they could never program. Apr 25 23:11:51 I dunno, at this point, I wouldn't trust any code you produce Apr 25 23:12:02 this isn't code. Apr 25 23:12:09 yeah, if you can't figure out something this simple Apr 25 23:12:13 your code must be far worse Apr 25 23:12:19 layouts wre made to easily adapt to multiple device configurations Apr 25 23:12:21 if you can't help it shows more about your character. Apr 25 23:12:28 well, it's stating yoru dataset [the set of views] and the relationships among hte data [their positioning and metric rules] Apr 25 23:12:37 so it is. I suck. I don't understand some of this. How are you helping? Apr 25 23:12:43 that's at least 75% like programming. Apr 25 23:12:48 Tarzipper_: you havnt read the docs, they wont help you :P Apr 25 23:12:56 Tarzipper_, I've explained to you several times how to model your problem and translate into xml Apr 25 23:13:03 you ignore the advice Apr 25 23:13:07 I'm not going to help you anymore Apr 25 23:13:08 3 boxes on paper. same problem. Apr 25 23:13:26 what type of boxes do they need to be. Apr 25 23:13:27 layouts....arnt...that....complicated..... Apr 25 23:13:35 it's not 3 boxes Apr 25 23:13:35 you never helped. you just helped you ego and pride. Apr 25 23:13:40 Jug6ernaut +1 Apr 25 23:13:40 shut up. Apr 25 23:13:40 you have an outer box that is vertical Apr 25 23:13:45 and an inner box that is horizontal Apr 25 23:14:03 * Jug6ernaut yawns at that whole exchange Apr 25 23:14:09 the vertical component is your textview, and then the two buttons Apr 25 23:14:12 the inner box is the two buttons Apr 25 23:14:15 now use your noodle Apr 25 23:14:23 pfn you cant help someone who wont help themeselves :S Apr 25 23:14:34 or Apr 25 23:14:58 "You can lead a fool to knowledge, but you cant make them think" Apr 25 23:15:06 sounds pretty good Apr 25 23:16:05 and he left, yay Apr 25 23:16:12 lol Apr 25 23:17:40 pfn is the noob reaper Apr 25 23:17:48 lol Apr 25 23:17:49 he serves them Apr 25 23:17:57 * Jug6ernaut goes back to finish crap paper Apr 25 23:21:24 am not Apr 25 23:22:02 u merc em Apr 25 23:22:32 What type of argument is the T in setAdapter(T) in the type AutoCompleteTextView? How do I accept the same kind of argument in one of my own methods? Apr 25 23:22:43 ... Apr 25 23:22:47 damccull, java generics Apr 25 23:22:51 RTFM Apr 25 23:23:08 http://bit.ly/ILCwF6 Apr 25 23:23:19 damccull, that's for you Apr 25 23:23:29 nice Apr 25 23:23:37 you're so kind Apr 25 23:23:47 thanks friends. Apr 25 23:24:07 wasn't sure what to search for based on that canadian :( Apr 25 23:24:20 its true, he is canadian Apr 25 23:25:51 that is the MANUAL on what you want Apr 25 23:25:58 you dont need to search for anything Apr 25 23:26:02 you need to read that Apr 25 23:26:18 oh great my iphone just switched to EDGE, whhich is interfering with my speakers Apr 25 23:26:21 <3 galaxy nexus Apr 25 23:26:40 ITYM <3 cell data Apr 25 23:26:42 GPRS is even worse Apr 25 23:26:54 canadiancow: I thought they released a patch for that? Apr 25 23:27:10 [in fact, what you are hearing might be the GPRS signalling around the edges of the 2G protocol] Apr 25 23:27:16 yes Apr 25 23:27:22 that Apr 25 23:27:28 but it doesn't happen with UMTS Apr 25 23:27:31 yeah Apr 25 23:27:36 thank goodness :) Apr 25 23:27:40 i kno rite Apr 25 23:28:03 so ctate i just tagged every zynga friend i have on facebook with that quote from you Apr 25 23:28:06 OTOH, if you put a dumfone next to a speaker, you get an automatic "incoming SMS" sound! Apr 25 23:28:12 canadiancow: ha ha ha Apr 25 23:28:15 lol ctate Apr 25 23:28:56 Is it possible to update and actively bound ListView from another thread that is managed from a timer? Apr 25 23:29:47 as long as you call notifyDataSetChanged() on the main therad, you should be ok Apr 25 23:29:51 and even there im not sure if it's necessary Apr 25 23:31:28 I have a ListView that is actively being updated from the "OnSensorChange" event of the Activity. This updates the ListView by re-drawing a compass for east list item. However, I've got to get web updates for each list item's schedule, but does not need to be refreshed as frequently as the "OnSensorChange" event. Apr 25 23:32:50 canadiancow >> you've had to see this before, right? Apr 25 23:33:20 sure Apr 25 23:33:25 oh yea Apr 25 23:33:36 just call adapter.notifyDataSetChanged() whenever new data comes in Apr 25 23:33:42 ive made a bunch of listviews where they are updated from OnSensorChange and web requests Apr 25 23:33:45 post it to the UI handler to notifyDataSetChanged Apr 25 23:33:58 after you update the data in the adapter Apr 25 23:34:32 don't modify the data in a background thread or else listview will throw an exception, too Apr 25 23:34:54 modification of the adapter data and notifydatasetchanged has to happen on the same thread Apr 25 23:35:12 evancharlton >> thanx.. spent time and found out the hard way Apr 25 23:35:18 well, you can modify the data in a background thread, you can't notify until you're on the foreground thread Apr 25 23:35:40 arrayadapter implicitly calls notifyDataSetChanged on every modify if you're using that Apr 25 23:36:48 pfn: depends on your adapter. The exception is if ListView.getCount() != Adapter.getCount(), IIRC Apr 25 23:36:54 BaseAdapter.getCount() maybe Apr 25 23:37:11 interesting Apr 25 23:38:28 pfn, canadiancow >> my compass is always calling notifyDataSetChanged().. so I can have another method called from my Activity that can update each Location's Schedule.. let's say every 2 minutes and simply reference notifyDataSetChanged() and I will not lose scope of each compass azimuth? Apr 25 23:39:31 pfn, canadiancow >> and visa versa, lose my schedule when the OnSensorChange is called which is frequently Apr 25 23:40:55 evancharlton >> my listview count is static, unless they perform a filter against the current resultset Apr 25 23:41:23 but I see where you're going with that.. Apr 25 23:45:33 I think my code is too OOP for this, I need to remove the "Schedule" calculation that was being calculated for each Landmark object when the schedule property was being called and move that logic to an override method in my Adapter... only call that override from a timed event in the Activity... don't know if this is the best practice, but sounds logical. Apr 25 23:46:14 "too OOP"? heh Apr 25 23:46:32 toop Apr 25 23:46:39 rhymes with, poop Apr 25 23:47:12 pfn >> INFO / BLL / DAL classes.. what can I say, I love my shit to be organized Apr 25 23:50:32 is there a way to make autocompletetextview show a dropdown arrow, or make spinner editable? Apr 25 23:52:37 anyone know of good resources on how to knit my main service (sensor sampling) into my main activity so that I can run this app? Apr 25 23:53:25 damccull: extend them into your own custom control Apr 26 00:02:49 hi Apr 26 00:03:06 I've successfully tested on the emulator. How do I deploy to my Android phone? Apr 26 00:03:20 turn on usb debugging on the phone Apr 26 00:03:22 plug it in to usb Apr 26 00:03:35 push go in eclipse Apr 26 00:03:40 or approximately that Apr 26 00:04:48 AlecTaylor: whats your Dev OS (ur PC) Apr 26 00:05:02 ctate: A bunch of things came up on the screen: to a click HTC Sync or Disk Drive? Apr 26 00:05:13 there's an ant install target as well Apr 26 00:06:01 AlecTaylor: at this point you need to talk to someone who has ever used the SDK to develop Android software :) Apr 26 00:06:14 outputting to external/clang folder, how much is still left? :/ Apr 26 00:06:15 i've personally only done direct builds + adb install Apr 26 00:06:29 staticanalyzer Apr 26 00:08:41 So I can install from the apk file Apr 26 00:08:57 adb install -r file.apk Apr 26 00:09:01 or ant install Apr 26 00:09:09 rather, ant debug install Apr 26 00:09:17 or just let Eclipse do it for you with the SDK integration Apr 26 00:09:19 Does my device need to be rooted first? Apr 26 00:09:21 [however that works :) ] Apr 26 00:09:23 oh heck no Apr 26 00:09:27 or, if you're using my sbt plugin, sbt android:run ;-) Apr 26 00:09:28 hmm Apr 26 00:09:33 From the phone? Apr 26 00:09:36 * AlecTaylor is confused Apr 26 00:09:40 * AlecTaylor is running IDEA Apr 26 00:09:43 on the phone, you need to have "USB debugging" turned on Apr 26 00:09:57 'adb' is a host-side command line program Apr 26 00:10:00 ctate: Where is that setting Apr 26 00:10:11 AlecTaylor: somewhere like Settings / Development / USB debugging Apr 26 00:10:22 What does it take to make a launcher for android? Is there anything that can show me the amount of work I'm about to get into? Apr 26 00:10:33 Zacharias3690: to make a good one is a lot of work Apr 26 00:10:45 Zacharias3690: note that you can of course download the code for the existing one :) Apr 26 00:10:50 make a launcher for android, baby steps, use the existing one Apr 26 00:10:55 done and done Apr 26 00:11:00 thanks guys :D Apr 26 00:11:00 and make patches against that Apr 26 00:11:09 AlecTaylor: okay, now find the .apk file that was built by your project Apr 26 00:11:19 found Apr 26 00:11:21 and then you do this from some command line on your host: Apr 26 00:11:29 adb install -4 path/to/myapp.apk Apr 26 00:11:32 err Apr 26 00:11:37 adb install -r path/to/myapp.apk Apr 26 00:11:41 gr typo Apr 26 00:12:38 if you don't have 'adb' in your PATH, you will probably need to futz around a bit Apr 26 00:12:52 ctate: USB debugging is enabled, do I also select use as disk drive from the dialog which opens up Apr 26 00:12:55 * AlecTaylor found adb BTW Apr 26 00:13:01 just plug it in Apr 26 00:13:04 don't need to do anything Apr 26 00:13:24 no no no Apr 26 00:13:28 to the disk drive thing Apr 26 00:13:41 that's to use the phone as a thumbdrive Apr 26 00:14:45 Read "Success" Apr 26 00:15:24 that's what you wanted to see Apr 26 00:15:32 if you look in the Launcher on your phone the app should now be there Apr 26 00:15:39 can't find it Apr 26 00:15:50 pop up the all-apps list? Apr 26 00:15:57 ctate: That's where I am Apr 26 00:16:00 okay Apr 26 00:16:03 My appname isn't there Apr 26 00:16:09 in fact, nothing beginning with "O" Apr 26 00:16:11 note that there are certain things you have to do in your app in order to have it show in the Launcher Apr 26 00:16:23 which perhaps you missed Apr 26 00:16:37 What are they? Apr 26 00:16:41 How do I launch it manually? Apr 26 00:16:57 How do I run it remotely then, like I do from IDEA? Apr 26 00:19:21 you can do that but it's cumbersome Apr 26 00:19:30 i think you should sort out why you don't see it in Launcher Apr 26 00:20:05 see http://developer.android.com/guide/topics/fundamentals/activities.html#Declaring Apr 26 00:20:34 see the bit of manifest there where it declares an intent-filter in the android.intent.category.LAUNCHER category? Apr 26 00:20:48 if you don't have that filter defined for at least one activity, your app wont' get a Launcher icon Apr 26 00:21:11 i believe if you don't define an android:icon attribute there, you'll just get a default icon Apr 26 00:41:23 can someone send me to where to I can download the android launcher? Apr 26 00:41:42 http://source.android.com/ Apr 26 00:42:49 ctate: thanks Apr 26 00:44:08 I was curious, how do you do performance testing if don't have access to several android devices? everything on the emulator runs slow as hell Apr 26 00:44:16 so when do you know when to stop optimizing your app? Apr 26 00:47:00 get a baseline device to test on Apr 26 00:47:16 i.e. the slowest device you want your app to run well on Apr 26 00:47:29 @MultiSelectListPreference: it's only available since 11. Is there something I can do to make it available in my app for versions below, or do I just not use it? Apr 26 00:50:13 GadonJ: get a really low end device to test on :) Apr 26 00:50:50 i think a moto droid-1 is probably still decent for this; i'm not sure i would pick one up now though - its getting really long in the tooth Apr 26 00:51:12 but its usable as long as people are still targetting 2.2 Apr 26 00:51:25 I really don't want to be buying extra crap... Apr 26 00:52:02 and I have a Samsung Galaxy S II X Apr 26 00:52:59 it's still usable if people target 2.3 :p Apr 26 00:53:04 g00s, just put cyanogenmod on it Apr 26 00:53:19 and yeah, I don't see how you could use that phone daily now... ugh Apr 26 00:53:23 it's >2yrs old now Apr 26 00:53:25 Spica, get a spica :p Apr 26 00:53:26 time to get another phone already Apr 26 00:53:30 hehe Apr 26 00:53:39 froyo ftw ! Apr 26 00:53:53 only gb improvement I like is the text selection feature Apr 26 00:53:53 IMHO, nexus one is baseline enough. Apr 26 00:54:02 nexus one is relatively fragile Apr 26 00:54:03 i think i will get a n1 next Apr 26 00:54:05 powerbutton fails Apr 26 00:54:12 well, mine hasn't failed Apr 26 00:54:30 pfn: thats because you use your phone as a scala Apr 26 00:54:31 but if you have an n1 already, it works well as a baseline phone Apr 26 00:54:32 har har ahr Apr 26 00:54:37 Still can't decide if I wanna give that phone to my cousin :/ I need a gingerbread to test on >_< Apr 26 00:54:49 * pfn still has his droid1 for gb tests Apr 26 00:56:10 Or i could just wait till december and make Galaxy Nexus a rom testing device and hopefully a really really cheap used N1 for GB :p Apr 26 00:56:59 Do you guys think NS will get JellyBean? Apr 26 00:59:47 does anyone have good examples of a styled radio button-style widget Apr 26 00:59:57 i'm struggling to make one that doesn't look like crap Apr 26 01:00:07 JakeWharton, haha HoloEverywhere? :p Apr 26 01:00:32 definitely not Apr 26 01:01:32 JakeWharton: apparently 250 people are using Hubroid on ICS, based on Market statistics Apr 26 01:01:53 but I have maxSdkVersion set in the manifest to prevent HC+ from accessing it Apr 26 01:02:08 EddieRingle, when will you release it for ICS >_< ? Apr 26 01:02:14 maxSdkVersion is only honored by the Play Store client Apr 26 01:02:19 Afzal: still working on it Apr 26 01:02:27 once on the device it will be retained over OS upgrades Apr 26 01:02:45 JakeWharton: or there's a small, proactive community building Hubroid themselves and installing Apr 26 01:02:55 yeah Apr 26 01:02:57 i did that Apr 26 01:02:59 but I don't know how the Market tracks it Apr 26 01:03:01 so one of those data points is me Apr 26 01:03:11 If they were building themselves, i don't think market would track it Apr 26 01:03:21 they're definitely installing the apk which has your key Apr 26 01:03:21 <3 having devs as a userbase Apr 26 01:03:45 the holo everywhere blog gave that woot app 9/10 Apr 26 01:03:48 it's ugly as all hell Apr 26 01:03:53 or does market just track using package name? Apr 26 01:04:13 Afzal: judging by the version statistics, I think you're right Apr 26 01:04:19 which means most were probably just carried over Apr 26 01:05:08 or they just downloaded the apk using the chrome extension or their older phone, I did that earlier on, but then I figured I could wait for the real deal Apr 26 01:05:14 so nobody has any concrete examples of radio button-style selection that doesn't look like ass? Apr 26 01:05:24 wut Apr 26 01:06:18 * Jug6ernaut is watching a lecture on GPGPU from UC. Apr 26 01:06:23 makes me depressed about my education Apr 26 01:07:54 at least you got an education :p Apr 26 01:07:58 or were you from florida Apr 26 01:08:08 then I guess, yeah, you should go ahead and be depressed :) Apr 26 01:08:11 JakeWharton, as a contributor to the HoloEverywhere project lol, I apologize :p Apr 26 01:08:21 the project? Apr 26 01:08:25 pfn texas :) Apr 26 01:08:25 you mean the Holo back port? Apr 26 01:08:25 that app is indeed ugly but it's not because of using Holo theme Apr 26 01:08:37 yeah, isn't the blog related? Apr 26 01:08:39 no Apr 26 01:08:42 the back port is crap Apr 26 01:08:43 oh lol Apr 26 01:08:50 the blog is less crap Apr 26 01:08:51 then i take back my apology Apr 26 01:08:52 :) Apr 26 01:09:18 lol, nah I like HoloEverywhere, it gives a taste of Holo to users of older versions ;p Apr 26 01:09:31 yes, which is not smart Apr 26 01:09:48 default holo on pre-HC is dumb Apr 26 01:09:55 using holo as a base for a custom theme, however, is smart Apr 26 01:09:56 I wonder how many folks in /r/androiddev use Hubroid Apr 26 01:10:14 ...depends really. I didn't mind using a Holo'd Maps app (was it holo'd? Apr 26 01:10:20 or Google + Apr 26 01:10:29 neither one use stock Holo Apr 26 01:10:29 or IO 2011 Apr 26 01:10:34 also not using stock Holo Apr 26 01:11:10 hmm true, but they all don't use a lot of buttons either way Apr 26 01:11:17 or radio buttons Apr 26 01:11:27 G+ app has most of the controls in the actionbar Apr 26 01:11:37 EddieRingle, i used to use it Apr 26 01:12:00 Afzal: gh4a? Apr 26 01:12:02 having an action bar does not mean it's Holo'd Apr 26 01:13:52 can you flash takju on any maguro? Apr 26 01:13:55 im assuming yes Apr 26 01:13:57 JakeWharton: btw, I bought a whiteboard the other day, then had an awesome new plan for hubroid on tablets Apr 26 01:14:01 EddieRingle, doesn't really cut it Apr 26 01:14:09 JakeWharton: but you knew about the whiteboard :3 Apr 26 01:14:21 i was aware of it, yes Apr 26 01:19:46 JakeWharton: https://plus.google.com/112155253067767894424/posts/MtgateJqhnP Apr 26 01:20:43 wtf is hubroid Apr 26 01:21:18 canadiancow: a symbol for all apps to look up to Apr 26 01:22:00 sounds like an anal condition I don't want my phone to get Apr 26 01:22:16 that's what most people think when they first hear the name Apr 26 01:22:47 maxSdkVersion? Apr 26 01:22:50 wtf Apr 26 01:22:52 maxSdkVersion should just be ignored Apr 26 01:23:12 it's already deprecated Apr 26 01:23:14 canadiancow: the version on the Play Store doesn't deserve to see ICS Apr 26 01:23:20 plus, it breaks Apr 26 01:23:28 then you did it wrong :( Apr 26 01:23:32 is it deprecated? Apr 26 01:23:50 its not deprecated Apr 26 01:24:00 http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#max Apr 26 01:24:07 EddieRingle >> kinda miss the northern mid-west, former Toledo dweller. Apr 26 01:24:14 its not deprecated Apr 26 01:24:19 read your own link :P Apr 26 01:24:24 you know what else isn't deprecated? Apr 26 01:24:25 The copy protection feature will be deprecated soon, please use licensing service instead. Apr 26 01:24:30 "Future versions of Android (beyond Android 2.0.1) will no longer check or enforce the maxSdkVersion attribute during installation or re-validation. Google Play will continue to use the attribute as a filter, however, when presenting users with applications available for download." Apr 26 01:24:35 "Warning: Declaring this attribute is not recommended" Apr 26 01:24:49 not recommended != deprecated Apr 26 01:24:51 :P Apr 26 01:24:52 * canadiancow wins Apr 26 01:25:16 who uses the Android Developer console greasemonkey script? Apr 26 01:25:30 to do what Apr 26 01:25:40 to show the app's market link Apr 26 01:25:58 in the dev console, because apparently Google forgot that part Apr 26 01:26:32 omg EddieRingle do you ahve a tablet optimized version on github? Apr 26 01:26:40 canadiancow: in the works Apr 26 01:26:44 is it on github? Apr 26 01:26:54 it has always been Apr 26 01:27:11 though the tablet portion hasn't quite been entirely pieced together yet Apr 26 01:28:01 well it looks cool Apr 26 01:28:03 id like it on a tablet Apr 26 01:28:08 so when we have meetings i can do a git blame Apr 26 01:28:08 so would I Apr 26 01:28:11 and be like Y U DO THIS Apr 26 01:28:29 canadiancow: I don't know if GitHub offers that in their API Apr 26 01:28:47 but that would be an interesting feature Apr 26 01:29:00 EddieRingle, cool sounding app Apr 26 01:29:07 I could allow you to share the blame on Google+ Apr 26 01:29:10 or something Apr 26 01:29:33 no Apr 26 01:29:36 just a normal share Apr 26 01:29:44 never tie it into a specific social network! Apr 26 01:29:52 of course Apr 26 01:30:09 speaking of social networks, that's my next project Apr 26 01:30:53 i designed a social network in university Apr 26 01:30:57 didnt really implement it Apr 26 01:31:02 then zuck stole it Apr 26 01:31:15 actually i shouldnt say things like that Apr 26 01:31:19 considering where i work Apr 26 01:31:25 no one ever steals anything Apr 26 01:31:51 I'd never build another social network Apr 26 01:32:07 my project is something that would tie them all together, so to speak Apr 26 01:32:22 I hate flipping through tabs to check everything all the time Apr 26 01:32:26 or apps, for that matter Apr 26 01:32:48 i like how ive done nothign this week Apr 26 01:32:49 in the evenings Apr 26 01:32:53 monday i had no motivation Apr 26 01:32:55 tuesday i was exhausted Apr 26 01:33:00 today i had dinner Apr 26 01:33:04 EddieRingle, friend stream Apr 26 01:33:54 pfn: their website is awful Apr 26 01:34:05 pfn: and doesn't seem to grasp the entire picture I have Apr 26 01:34:32 especially the bit where you sign up for an account with them Apr 26 01:35:00 How does android create device nodes??? Apr 26 01:35:05 does it use udev? Apr 26 01:35:33 i fucking spent 331.76 this past weekend from a trip, not counting travel or lodging expenses Apr 26 01:35:40 friday evening to sunday lunch Apr 26 01:35:44 what. the. fuck. Apr 26 01:36:26 canadiancow, big pimpin Apr 26 01:36:37 and next weekend im going to SF Apr 26 01:36:46 i need to do cheaper short trips Apr 26 01:36:50 or stretch these out longer Apr 26 01:36:58 or not go to strip clubs Apr 26 01:41:07 wow my iphone just went flying Apr 26 01:41:20 survived though Apr 26 01:41:49 canadiancow: GitHub is coming out with an app soon Apr 26 01:41:56 it's inevitable Apr 26 01:42:01 holy scrunk Apr 26 01:42:02 and there are plenty of signs Apr 26 01:42:07 apparently android doesn't use udev??? Apr 26 01:42:35 What kind of thought process would lead android devs to make this seemingly flawed design structure!!? Apr 26 01:43:10 ask on the mailing list Apr 26 01:43:22 i think i will dangit Apr 26 01:51:09 finally compiled! now it better boot >_< Apr 26 01:52:49 it has booted -_- of course it has Apr 26 01:57:11 buahaha, genius! alias emulator='emulator -gpu on' :D Apr 26 01:58:03 i had a question abou the file SuplRootCert Apr 26 01:58:39 can't find anything in manuals and foruns Apr 26 01:59:26 is that file a proprietary file? if not how can i build one? Apr 26 02:00:05 he is called in some gps.conf files Apr 26 02:04:57 from within a fragment: startActivityForResult(intent,0); <-- This does not seem to callback to the fragment's onActivityResult(). There was a google bug about it, but it's been closed. Seems to still have an issue though. Any ideas to fix for my app? Apr 26 02:08:15 Is there a Timer control I can use to run from an Activity every x-minutes? Apr 26 02:09:20 hmm, adb pull/push is horribly slow with emulator ;/ Apr 26 02:09:43 okay only adb pull Apr 26 02:10:23 EddieRingle: your code style is… unique Apr 26 02:10:33 JakeWharton: what? Apr 26 02:10:58 you have an empty method that occupies 5 lines of code Apr 26 02:11:26 https://github.com/eddieringle/hubroid/commit/6607eaf785b6c7acada054fa4c0da800f7f52547#L0R275 Apr 26 02:11:47 made me chuckle Apr 26 02:12:24 meh Apr 26 02:22:34 JakeWharton - if that made you chuckle I hope you never see our code base Apr 26 02:22:38 guys, a little feedback. Do you think the Browser should have a "close all tabs" button. If yes, should it close all tabs and open one new tab or should it quit the browser altogether? Apr 26 02:23:47 If a linux kernel does not create device nodes using udev, and does not create device nodes using a mkdev script, how does the kernel create device nodes to populate /dev/? Apr 26 02:23:56 How does it even see block devices Apr 26 02:24:27 read the code ;p Apr 26 02:25:00 anyone here ever done anything to do with rss? Apr 26 02:26:24 Afzal, Apr 26 02:26:35 that's a lot of code Apr 26 02:26:50 lol, i'm just trolling Apr 26 02:28:20 we're also app developers, not platform devs Apr 26 02:28:33 the android-platform mailing list is where you'll get answers (or people who will ignore you) Apr 26 02:29:26 does Log.d convert int to string or do i use toString on the int? (sorry, editing Browser, can't be bothered to use eclipse) Apr 26 02:29:37 Log.d takes a string Apr 26 02:29:44 how you coerce something to a string is up to you Apr 26 02:29:48 Integer.toString Apr 26 02:29:48 k, thanks JakeWharton Apr 26 02:29:50 String.valueOf Apr 26 02:29:51 yeah Apr 26 02:29:53 "" + 344 Apr 26 02:30:44 nah, i'll just use what's already being used in the same class everywhere else: Integer.toString() Apr 26 02:31:17 maybe this patch will be reviewed/approved :D Apr 26 02:31:27 last one should've been :( Apr 26 02:31:50 haha I get the feeling google isnt interested in new features for their os Apr 26 02:32:05 I've seen shit patched and submitted countless times into android Apr 26 02:32:22 and either its not getting denied/approved or its getting denied Apr 26 02:32:34 I wonder what the Java/Oracle dispute will do to Android. Apr 26 02:33:05 I would love to see oracle get fucked somehow Apr 26 02:33:14 ron_frow_, radical new features, maybe I can understand. But things like "Close all tabs" that some users I know miss :/ Apr 26 02:33:17 their database is really nothing special at all these days Apr 26 02:33:27 and so is their support Apr 26 02:33:29 Oracle DB is a piece of shit to work with Apr 26 02:33:36 and how they are treating java is obscene Apr 26 02:33:44 QubeZ I 100% agree Apr 26 02:33:58 I've never seen *ANY* database engine have more integrity problems Apr 26 02:33:58 oracle being allowed to buy Sun was a bad thing in history Apr 26 02:34:05 including mysql Apr 26 02:34:10 and mysql used to be a gigantic pile Apr 26 02:34:24 I'm actually also wondering how difficult it would be to port my app to iOS Apr 26 02:34:31 I am not shitting you no matter how I shut down this machine... it needs recovery every reboot Apr 26 02:34:35 given they dont happen often Apr 26 02:34:50 its amazing Apr 26 02:35:07 its slow, it'll literally consume every last little bit of resources a machine has Apr 26 02:35:19 don't buy the new 7" Galaxy Tab Apr 26 02:35:22 it is so horrible Apr 26 02:35:29 haha Apr 26 02:35:35 I like the galaxy tab2 10.1 Apr 26 02:36:25 the polaroid 7" tablet was for $99 yesterday Apr 26 02:36:27 well the 7" one is really bad Apr 26 02:36:31 they killed ICS Apr 26 02:36:36 how's the screen on that, does anyone know? Apr 26 02:36:42 the little launcher bar addition wit the up arrow? Apr 26 02:36:46 probably a capacitive one Apr 26 02:36:58 JakeWharton, yeah but I didn't read anything good about it Apr 26 02:37:09 er Apr 26 02:37:11 resistive Apr 26 02:37:13 i meant Apr 26 02:39:33 jlatest app Apr 26 02:39:35 https://play.google.com/store/apps/details?id=badminton.horsetrials.app&feature=search_result#?t=W251bGwsMSwxLDEsImJhZG1pbnRvbi5ob3JzZXRyaWFscy5hcHAiXQ.. Apr 26 02:40:18 canadiancow, pfn >> That worked, mad props. I just overloaded the current method for notifyDataSetChanged to be called by a custom Timer event every 60secs, to update the schedule for each ListItem Landmark.. solid start, but need polishing. Apr 26 02:41:07 main menu has an animated rolex clock using a webview, funkatronic :) Apr 26 02:49:53 spankbot: Timer in android? please. Apr 26 02:51:23 * Jug6ernaut uses a timer in android Apr 26 02:51:40 timer that uses a handler Apr 26 02:52:08 has anyone had problems with setContentView? "cannot resolve method?" Apr 26 02:52:19 never Apr 26 02:52:35 you can only setContentView on an activity Apr 26 02:52:43 I found a post on SO talking about it, but it was geared towards eclipse.. I'm running idealij Apr 26 02:53:07 yea.. it's in the auto-generated onCreate method Apr 26 02:53:22 it can't resolve R.layout.main for some reason Apr 26 02:54:06 import your R Apr 26 02:54:09 bamb Apr 26 02:54:28 I added android.R and it doesn't fix it **** ENDING LOGGING AT Thu Apr 26 03:00:00 2012