**** BEGIN LOGGING AT Tue Oct 16 03:00:02 2012 Oct 16 03:00:15 anyone using eclipse with black background and light text ? Oct 16 03:00:51 shmooz: i used too, with the eclipse theme plugin Oct 16 03:00:57 but not set up manually Oct 16 03:01:29 I set my windows 7 theme to high contrast cause I like how it makes everything black background, but in eclipse the selected line is unreadable because its selected cyan with white text on black background Oct 16 03:01:31 lasserix: i wish it was a college. this is highschool Oct 16 03:01:43 orii also there is some really cool stuff you can do with arduino (sp?) and android, ie like make a potatoe launcher that inclines and fires via android phone Oct 16 03:01:58 what is a good channel for clockworkmod? Oct 16 03:02:10 or the selected text is cyan background when selected and white text Oct 16 03:02:31 clever: android-root Oct 16 03:02:58 lasserix: i would like to work with arduinos but tech is very limited for us Oct 16 03:03:04 or I shouldn't even say selected, just the line that the cursor resides on is all cyan without selecting anything, thats a more accurate description of my problem Oct 16 03:03:11 future projects ;p\ Oct 16 03:03:16 lasserix: indeed Oct 16 03:03:28 i wish i could get a bunch of raspberry PIs Oct 16 03:03:34 that would be great Oct 16 03:03:44 they come with 512 mb of ram now :D Oct 16 03:04:16 if you can get the club to make any apps that are presentable im sure you could hit up the pta or whatever Oct 16 03:05:32 yeah that would be cool Oct 16 03:05:39 I bet if some parent donated a few they could even count it as a tax write off ;p Oct 16 03:06:00 haha Oct 16 03:06:29 Orii: what about this ? http://www.raspberrypi.org/archives/1913 Oct 16 03:06:54 seriousily you can always work the parents, espicially since "software engineer" is the one of the top jobs in the us right now Oct 16 03:07:40 also if you are doing introduction to programming stuff consider doing using the python language Oct 16 03:07:56 lasserix: im doing it all Oct 16 03:08:07 python certainly Oct 16 03:09:42 sounds... ambitious Oct 16 03:10:02 why not just focus on a couple technologies Oct 16 03:10:04 and go a little deeper Oct 16 03:10:51 yeah; i would try to encourage curiosity and experimentation … and learning to think; not getting caught up in some Syntax or poking APIs Oct 16 03:10:54 does your school not teach computers (compsci, IT, whatever they call it) Oct 16 03:13:02 Leeds: my school sucks and we have few computers Oct 16 03:13:19 they keep getting rid of them Oct 16 03:13:20 not what I asked... Oct 16 03:13:35 my school sucks....they dont teach cool stuff like that Oct 16 03:13:50 that is where i come in :) Oct 16 03:14:54 thankfully, 10s of millions of kids in China and India do actually learn to use computers :P Oct 16 03:15:51 such bullshit Oct 16 03:16:42 Could someone succinctly describe what a Binder _is_ exactly? My understanding is that it's an Object with methods that's passed around as a way to be able to call those methods Oct 16 03:17:04 i remember working with arduino in highschool Oct 16 03:17:09 i accidnetlaly masturbated on it Oct 16 03:17:19 wow...long story Oct 16 03:17:24 panegyric: technopilia? Oct 16 03:17:31 no not at all Oct 16 03:17:33 technophilia* Oct 16 03:17:53 i feel like my iq is dropping by reading this. off to more interesting stuff ;) Oct 16 03:18:02 yeah, panegyric don't do that Oct 16 03:18:02 haha Oct 16 03:18:20 don't do what? Oct 16 03:18:34 say dumb stuff in a channel with over 600 people Oct 16 03:18:36 So it appears that the ServiceConnection has to understand the makeup of the Binder, in order to extract the underlying Service Oct 16 03:18:56 who says its dumb? Oct 16 03:19:00 isn't that subjective Oct 16 03:19:07 I say it's dumb Oct 16 03:19:12 Maybe some people can learn from it Oct 16 03:19:22 Well, you may very well be the only one. Oct 16 03:19:50 goos find any more interesting interviews lately? Oct 16 03:19:52 ah, too slow Oct 16 03:20:01 erm, nice try? Oct 16 03:20:02 lol Oct 16 03:20:04 ha Oct 16 03:20:23 Now it's time to be patient :) ? Oct 16 03:20:41 playing chicken is also dumb Oct 16 03:21:02 /whowas is also useful Oct 16 03:21:17 lasserix: no, just not really. kinda waiting to see if this research project will come through Oct 16 03:21:20 I can never be bothered to type out a mask by hand :) Oct 16 03:22:11 goos new work? I just got around to watching that interview with eric shimdt you posted the other week Oct 16 03:22:37 Leeds, im sorry Oct 16 03:22:43 can you please unblock the address Oct 16 03:23:10 i love that explosion noise my IRC client makes when somebody is kicked Oct 16 03:23:54 nice Oct 16 03:23:55 * maslen thinks that Service's, Binders, and AIDL's all just clicked. Oct 16 03:24:01 what does a ban sound like? Oct 16 03:24:13 an explosion :) Oct 16 03:24:17 now... to understand Broadcast thingies. Oct 16 03:24:21 like somebody got shot with a shotgun Oct 16 03:24:45 fun Oct 16 03:25:12 lasserix: yeah, there was much commentary on that interview and why ES thought MS was not relevant Oct 16 03:25:49 Anyone know a compact and fast library I can use if I am just crypting strings? (not cipher substitution) Oct 16 03:25:52 yeah Oct 16 03:25:54 aww I missed some irc drama Oct 16 03:26:03 hi, i'm thinking about getting into making custom roms for my android phone Oct 16 03:26:13 mrenouf|work: i have some left over popcorm Oct 16 03:26:15 i was wondering if it would be easy diving into it with some programming experience alreayd Oct 16 03:26:18 bytes: wrong channel Oct 16 03:26:20 * g00s gives mrenouf|work his popcorn Oct 16 03:26:21 already* Oct 16 03:26:32 oops Oct 16 03:26:33 read the /topic, please Oct 16 03:26:45 I'm thinking about talking about starting to program. Oct 16 03:27:06 fnord`: You appear to be doing that already :) Oct 16 03:27:29 i thought this was pretty cool http://www.h-online.com/open/news/item/OpenGamma-release-ElSql-tool-1729840.html Oct 16 03:27:40 too bad, it doesn't look like it works with android out of the box Oct 16 03:27:50 but that seems like a worthwhile project Oct 16 03:28:42 maslen: well then I'm totally going to start a band Oct 16 03:28:52 except the band is also going to be a startup Oct 16 03:28:59 pretty cool right Oct 16 03:29:27 we just need to learn how to code and play instruments first, i thought android would be a good choice to start Oct 16 03:29:38 fnord`: you should make a cool video and put it on youtube, like RIM did Oct 16 03:29:58 haha Oct 16 03:30:05 i wanna know who signed off on that Oct 16 03:30:12 link? Oct 16 03:30:13 does anyone know if google earth has been discontinued? its pretty horrible on os x, lots of crashes, doesn't even support full screen, no updates in a long time, etc Oct 16 03:30:32 I have a listview with a custom adapter. There are checkboxes in my listview. I want to retrieve the the checked items with all the data in the list. The more I read up on this, the more confused I get... Oct 16 03:30:54 http://www.youtube.com/watch?v=WlsahuZ_4oM Oct 16 03:34:48 Relevant code is here http://pastebin.com/0wvkJLKd Oct 16 03:35:45 If anyone can explain to me what I need to know, my eye balls.and.brain may just stop.bleeding. Oct 16 03:36:28 They put the period in a bad spot.on this keyboard. Oct 16 03:36:29 Does RIM actually have something up their sleeve with BB10? Oct 16 03:36:42 * fnord` thought it was a condemned platform Oct 16 03:37:09 fnord`: hopefully going to a presentation they're doing on it on Thursday afternoon... I doubt it, but it's worth keeping up with the industry Oct 16 03:39:50 qkzoo1978: is your problem that the onItemClickListener is not being called? Oct 16 03:42:22 No, that is working. I have a menu item to, for instance delete selected items. So what I would like to do is iterate through them all, then delete the associated records. The adapter had setter that stores.record number, title and other info. Oct 16 03:43:03 Associated, meaning the ones that the user checked off, sorry. Oct 16 03:44:26 Just iterate through the adapter and see if the checkbox with each associated view is checked. I'm not sure I understand what's causing a problem here Oct 16 03:44:26 My brain is just blah tonight, and I'm having a hard time.wrapping it around the listview/adapters/etc. Oct 16 03:45:07 I can't figure out how to iterate the adapter. Oct 16 03:46:17 qkzoo1978: getCount() tells you how many there are, getItem(int position) gets you the item Oct 16 03:46:20 on the adapter Oct 16 03:46:40 Call it a.brainfart/block/what have you... Oct 16 03:47:44 you shouldn't be iterating the adapter. The adapter is an interface to your data that the listview will iterate for you Oct 16 03:47:55 (via said interface) Oct 16 03:48:14 But how do you reference the adapter in a different method? Outside the scope it was created in? Oct 16 03:48:33 by using an instance member variable in your class Oct 16 03:48:40 you need to stop & learn java before you proceed Oct 16 03:49:16 I'm working on it, hence the fudge that is cooking in my head. Oct 16 03:49:22 yay! This makes SENSE Oct 16 03:49:52 I kinda wish I had a job writing docs, only because the current state of them is so terrible :( Oct 16 03:49:53 maslen: write it up and blog it before the sense leaks Oct 16 03:50:18 Leeds: I'm almost tempted to. Oct 16 03:50:27 why not? Oct 16 03:50:39 But it's basic stuff - AIDL's, Service's, and extending Binder Oct 16 03:50:53 How can I focus the input cursor on a particular field? Oct 16 03:52:08 Ah, requestFocus Oct 16 03:52:33 hey i just tried creating like a test thing using eclipse. the old 2.2 option works but the 4.1 gives me errors Oct 16 03:54:48 test thing? Oct 16 03:54:54 is that like a whosey whatsit? Oct 16 03:55:11 I hate it when I'm testing and I forget to turn off "dont keep activities" and "background process limit: none" Oct 16 03:55:11 Leeds: Do you really think there's a purpose in me spending 2 hours to write it up super-nicely? I think that there are plenty of guides on the Internet already :) Oct 16 03:55:14 a test android virtual device Oct 16 03:55:23 and saying "gives me errors" makes it easy for us to help fix the "errors" Oct 16 03:55:23 Wonderign why my phone seemed so sluggish all day Oct 16 03:55:30 doogan: exactly Oct 16 03:55:53 maslen: if it took you time to get your head around it, other people are probably having the same issue Oct 16 03:55:58 dont worry im going to post them Oct 16 03:56:54 [2012-10-15 23:51:22 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. Oct 16 03:59:19 yeah mrenouf|work there should be a developer options widget Oct 16 03:59:25 for common actions Oct 16 03:59:34 like toggle USB debugging on / off Oct 16 03:59:41 or show layout bounds too Oct 16 04:11:52 If everything is within a single process, is there a benefit to using AIDL's over a child of Binder ? Oct 16 04:15:45 off-topic question, feel free to reply in /msg - have MS allowed anyone to touch or review the Surface, particularly RT, yet? Oct 16 04:17:32 Not sure Leeds, I did read that all MS employees around the world got a Surface a while ago. Oct 16 04:17:46 anyone outside MS, that is? :) Oct 16 04:18:00 I didn't hear that though - wonder if it was an RT or Pro Oct 16 04:18:12 Haven't heard anything aside from that. Oct 16 04:20:15 Leeds: my friend from from Adobe has access to one Oct 16 04:20:37 any public info? Oct 16 04:20:52 but i i get the impression it is used by other engineers, he doesn't work with mobile-specific code Oct 16 04:21:12 btw, the adobe code must be total shit Oct 16 04:21:13 all the fanboys saying "I NEED ONE OF THESE" "THIS WILL KILL THE IPAD"... have any of them actually got any hard info from anyone independent of MS? Oct 16 04:22:15 i want one, but i dunno if i want the rt or regular one yet. Oct 16 04:22:34 how do you know you want one? Oct 16 04:22:56 well, for the regular one, so i can use lightroom on a tablet form factor Oct 16 04:24:59 also, the regular nikon and canon dslr controllers should work out of the box Oct 16 04:25:29 Turning in early. See ya'll tommorrow. Oct 16 04:45:15 anybody here have experience using opencv with android? Oct 16 05:32:23 Awesome, developer preview is out Oct 16 05:33:06 hm ? Oct 16 05:34:08 Android developer console Oct 16 05:34:18 It is now open for public testing Oct 16 05:38:04 Is it correct that if B is a child of A, and A implements an interface, B therefore implements that interface as well? If so, why would I be getting a classcast exception when I try to cast B to the interface ? Oct 16 05:39:17 whats the decent configuration of computer i need to get running with app development for android os latest version ? i want to work on a app on th elines of augumented reality Oct 16 05:39:44 nvm Oct 16 05:50:22 Where in eclipse do I navigate to to add a library (abs) to my project? Oct 16 05:52:18 Did you check the abs' usage-section? Oct 16 05:52:21 http://actionbarsherlock.com/usage.html Oct 16 05:52:53 ive done it before just forgot which to navigate too but thanks Oct 16 05:53:35 usually it is faster to check these kind of things from google than asking here :P Oct 16 06:02:17 if I bind to a service that extends Binder, do I have any limitations on it's lifetime? Specifically, can I let it continue running after I exit the program? Oct 16 06:12:16 How do I make a folder in the package explorer to use as a library for abs in the newer eclipse? Oct 16 06:20:59 How do I import ABS into eclipse since you cannot create new project / from existing project? I figured this out once but can't tonight Oct 16 06:40:18 anyone know what a "stop sign" icon next to my name in gmail app means? Oct 16 06:48:11 deebo: where is it showing up? Oct 16 06:48:16 in emails? or accounts? or? Oct 16 06:48:23 a screen shot would be awesome if possible Oct 16 06:48:25 in a mail thread Oct 16 06:48:50 my messages have a small red stop sign'ish icon next to my name Oct 16 06:49:06 only inside the message threads? Oct 16 06:49:10 yeah Oct 16 06:49:17 well I solved my color problems by downloading the dark juno theme to get all the widgets dark ( https://github.com/rogerdudler/eclipse-ui-themes ) and then eclipse color themes ( http://eclipsecolorthemes.org/ ) to get dark background code colors for the main editor window Oct 16 06:49:45 deebo: I believe it's your current google talk status Oct 16 06:49:49 now its looking like something ;) Oct 16 06:49:51 maybe it's set to busy? Oct 16 06:49:53 I had bad luck with those Oct 16 06:49:59 HacDan: ah, true Oct 16 06:50:06 honestly intellij is the only thing that came remotely close to what I want in an ide Oct 16 06:50:11 really alarming icon to have visible in the mail thread Oct 16 06:50:15 I am using what ammounts to a ctp Oct 16 06:50:20 thought my mails weren't delivered Oct 16 06:50:26 and its still loads better / more stable than eclipse+adt Oct 16 06:50:27 also, this is more of a developer's chat. if you're looking for application help, I believe there are other channels =) Oct 16 06:50:28 I will try intelliJ eventually too Oct 16 06:50:44 shmooz: it's nto much better =P Oct 16 06:50:49 not* Oct 16 06:50:53 I disagree Oct 16 06:50:56 HacDan: yup, but couldnt find info on the internets so had to ask :) Oct 16 06:51:08 it's cool deebo I don't mind. The channel was pretty dead Oct 16 06:51:32 well at least eclipse for me is much better to work with now, for those that like dark backgrounds should do the same as I said above Oct 16 06:51:32 ron_frow_: if I can move around faster from a terminal, I don't find an IDE to be of any use =/ Oct 16 06:52:03 I'm over the "I use vi as an ide" Oct 16 06:52:48 I love vim, but I need eclipse to babysit me for now since I'm a noob Oct 16 06:52:53 nah I don't consider vim to be an ide at all =/ Oct 16 06:53:02 I just can move faster with it =/ Oct 16 06:53:16 hmm how well data stored on sharedpreferences stay? Is there danger of android clearing them on it's own? Oct 16 06:53:19 I use vi when I am doing rom dev, because eclipse and idea really cant add a ton to just an editor Oct 16 06:53:22 I will eventually try without IDE too, just commandline and vim Oct 16 06:56:05 at least I got better at remembering I'm not in vim, I was looking foolish with normal text editors from using too much vim Oct 16 06:56:27 trying to hit X instead of delete Oct 16 06:56:36 lots of ides Oct 16 06:56:43 have vim keybindings Oct 16 06:56:58 oh yeah, good stuff Oct 16 06:57:09 well I got good at realizing where I am now Oct 16 06:57:14 shmooz: I'm using this Oct 16 06:57:14 http://vrapper.sourceforge.net/home/ Oct 16 06:57:37 It isn't complete plugin, but has basics of vim-like editing Oct 16 06:57:55 good stuff Oct 16 06:58:49 thanks vavirta Oct 16 06:59:01 I'll give it a go Oct 16 06:59:06 balls Oct 16 06:59:12 I just am a huge eclipse hater Oct 16 06:59:15 it works mostly Oct 16 06:59:22 but seems like it does nothing very well Oct 16 06:59:28 mostly unnacceptable =) Oct 16 07:00:13 I find the emulator speed unacceptable on my duol core 1.33 Ghz AMD64 laptop with 4 GB ram Oct 16 07:00:38 haha Oct 16 07:00:40 yeah Oct 16 07:00:48 ron_frow_: i dont think the quality of eclipse is lower than the quality of the android tools in general, heh Oct 16 07:00:52 there are probably phones with more processing power than that Oct 16 07:01:05 its just like a tool that does everything, nothing well Oct 16 07:01:06 haha Oct 16 07:01:10 How do I import ABS into eclipse since you cannot create new project / from existing project? I figured this out once but can't tonight Oct 16 07:01:15 its nice to be able to open a project that has c++, and java Oct 16 07:01:21 but it works like shit Oct 16 07:01:30 lasserix, you have to do new project -> android project from existing sources Oct 16 07:01:32 iirc Oct 16 07:01:39 dumped eclipse about a month ago for intellij Oct 16 07:01:42 and couldn't be happier Oct 16 07:01:46 hahahaha Oct 16 07:01:48 that option doesn't exist for new adt Oct 16 07:01:57 I like ipr/iml Oct 16 07:02:01 file open god damn project Oct 16 07:02:01 bam Oct 16 07:02:06 it makes sense Oct 16 07:02:46 eclipse, point eclipse at a magic folder, hop up and down three times while patting yourslef on the head and hope it recognized it as an android project Oct 16 07:02:51 ron_frow whats better about IntelliJ ? Oct 16 07:03:15 intellisense works consistently and at least 10x better. Partial word matches, intellisense in xml editor is way better Oct 16 07:03:25 lasserix are you sure? Oct 16 07:03:32 hints in xml as far as colors for argb in gutter is very nice Oct 16 07:03:37 you don't do 'new android project' and then go thru the wizard like it used to be Oct 16 07:03:47 the new designer in idea 12 is considerably better than adt's Oct 16 07:03:48 you have to do 'new android project from existing sources' straight away Oct 16 07:03:51 and now it's a separate wizard Oct 16 07:03:51 could you say it again but be specific? Oct 16 07:04:00 hey i don't even use eclipse anymore haha Oct 16 07:04:05 but i remember they changed it over teh summer i think Oct 16 07:04:08 has real project files and module files to define a project, so I can bundle my source with a ipr, and people can just open the bastard Oct 16 07:04:11 do i do new -> project or new -> android project? Oct 16 07:04:21 code completion, and code fixing i just better period Oct 16 07:04:31 neither Oct 16 07:04:40 new -> other -> android proejct from existing sources Oct 16 07:04:40 stability is just overall much much better Oct 16 07:04:58 I'm not trying to convert eclipse lovers over, but i think you guys owe it a chance Oct 16 07:05:15 idea 12 ui designer does look sweet Oct 16 07:05:16 okay. there is no Android project from existing sources but I imagine existing code? Oct 16 07:05:16 well I'll try IntelliJ for my next app Oct 16 07:05:18 community ver is every bit as capable as eclipse + adt and then some Oct 16 07:07:12 hmm kinda works except if I select the library folder it says there's no project there Oct 16 07:07:28 me installing IntelliJ won't create any conflicts with eclipse and the existing jre I hope Oct 16 07:07:32 no Oct 16 07:07:49 I run both on my rom dev box Oct 16 07:07:56 and have the app openable from either Oct 16 07:08:06 since eclipse doesnt use project files etc Oct 16 07:08:08 they just sit there unused Oct 16 07:11:11 does anyone know of a library besides opencv that has jni camera support? Oct 16 07:17:50 nobody can help regarding the sharedpreference question? Ie does android wipe those on it's own so I shouldn't use it if it's critical for application to have the data available? Oct 16 07:18:29 you shouldnt use it for critical application data anyway, but it should last the life of your app as far as it being installed Oct 16 07:18:40 ifyou upgrade, it should be fine, (so long as type hasnt changed) Oct 16 07:18:54 if you completely uninstall and reinstall, it'll prbably go bye bye Oct 16 07:19:14 anyone know how to resolve this issue? https://groups.google.com/forum/?fromgroups=#!topic/actionbarsherlock/GLzzBIKJVfw Oct 16 07:19:56 well uninstall and reinstall isn't problem. Just using it to keep track of program state and wondering if it might lose data say when phone's rebooting Oct 16 07:20:01 lasserix - there are solutions IN the email stuff Oct 16 07:20:05 nah Oct 16 07:20:16 ? Oct 16 07:20:20 Sorry I dont follow Oct 16 07:20:27 that thready you JUST posted had a solution to your problem Oct 16 07:21:03 tneva82 I wouldnt worry about that Oct 16 07:21:15 dot go sticking data data in there Oct 16 07:21:27 but preferences (as the name implies) should be just fine Oct 16 07:22:00 man Oct 16 07:22:06 I think I am in need of a windows box =( Oct 16 07:22:17 windows in a vm isnt cutting it anymore Oct 16 07:22:41 this should be interesting; the cheapest 2012 ipod touch is $300 … so i can't see the ipad mini being less than $350 Oct 16 07:23:03 who cars Oct 16 07:23:07 apple is on its way out Oct 16 07:23:11 let them shit the bed Oct 16 07:23:11 ron_frow_: are you using windows 8 in a vm ? Oct 16 07:23:12 That solution doesn't work Oct 16 07:28:10 is that graph of market share based on API level still available on the developer.android.com site? Oct 16 07:28:14 can't seem to find it after they changed Oct 16 07:28:35 http://developer.android.com/about/dashboards/index.html Oct 16 07:29:17 thanks Oct 16 07:29:37 tbh, i spend most of my time in the API docs and haven't really gone around the site that much Oct 16 07:30:41 yeah, took a bit of finding the first time Oct 16 07:34:51 anyone personally use any kanban apps ? Oct 16 07:35:23 not on android but in jira Oct 16 07:35:24 for personal planning Oct 16 07:35:39 there are quite a few for android Oct 16 07:36:05 hy all! Oct 16 07:38:01 if I import a project to the eclipse (file->import->existing arduino code into workspace), and open the graphical layout, I can't use that. It says "missing styles". How can I solve this problem? Oct 16 07:39:52 are you trying to import an android project as an Arduino project, because then that might be the case Oct 16 07:39:53 is that an android question? Oct 16 07:40:12 god damn, so many good books to read - if i could convince god to let me live until i read all of them, i would be alive forever ! Oct 16 07:40:24 :D Oct 16 07:40:30 I meant android, not arduino Oct 16 07:40:32 omg Oct 16 07:41:11 yes, that's an android question Oct 16 07:41:38 well then it probably means the code you imported uses some styles you haven't defined Oct 16 07:49:26 why hasn't google made native camera api's available :( Oct 16 07:49:49 so many cool projects would be so much easier... Oct 16 08:00:05 sampullman: well, I can use the graphical layout in the original place Oct 16 08:00:12 but if I import that, I can't Oct 16 08:01:14 let me rephrase Oct 16 08:01:27 you imported the layout, which requires some styles Oct 16 08:01:42 your new project does not contain these styles Oct 16 08:01:46 error Oct 16 08:03:22 I use android:configChanges="orientation|keyboardHidden|screenSize" to prevent the gridview in my activity from "rebooting", i.e. re-initializing every time the orientation is changed... is there actually any drawback to that? Oct 16 08:03:34 It seems like a hack Oct 16 08:05:12 I know Oct 16 08:05:21 but how can I get those styles? Oct 16 08:05:36 they are in res/values/something.xml in the original project Oct 16 08:06:01 Tee_Pee: how it is like a hack? You tell to android that you will handle orienation, keyboardHidden and screensize change-events Oct 16 08:06:16 and if you don't handle for example orientation, nothing happens Oct 16 08:06:58 I seriously want a computer that is as fucking fast as possible Oct 16 08:06:58 Tee_Pee: it's generally better practice to let the system handle orientation stuff Oct 16 08:07:04 I am so sick of waiting for shit to happen Oct 16 08:07:13 you should use onSaveInstanceState, and rebuild in oncreate Oct 16 08:07:17 windows is configuring your computer after updates Oct 16 08:07:20 just go. Oct 16 08:07:21 god damn it Oct 16 08:07:36 ron_frow_: just don't use windows =) Oct 16 08:07:38 Well yeah, but what I meant is - views re-initialize for a reason. What I worry is that I am "missing out" on something system related if I do it this way. Oct 16 08:07:38 hah, don't use windows Oct 16 08:07:52 I prett muh have to Oct 16 08:07:59 I've got a mac, but I have to do .net dev as well Oct 16 08:08:01 Tee_Pee: that's what im saying Oct 16 08:08:27 i dual boot windows/linux, and only use windows for .net stuff Oct 16 08:08:34 ron_frow_: i can feel your pain. had to stick with windows too on my last job. now it is all linux =) Oct 16 08:09:09 oh well, might as well learn how to save object instances... Oct 16 08:09:17 yes, do that Oct 16 08:09:48 meh Oct 16 08:09:50 linux is ok Oct 16 08:10:00 much better once they get rid of shitty x Oct 16 08:10:10 x11? Oct 16 08:10:45 hey, how does one go about removing the Log statements without manual labour? Oct 16 08:10:49 sampullman yessir Oct 16 08:11:05 balls2thewall: use proguard Oct 16 08:11:06 well, you don't have to use it.. Oct 16 08:11:09 i tried the "assumenosideeffects" feature i found on stackoverflow and added it to proguard, and nothing Oct 16 08:11:21 you did it wrong then :) Oct 16 08:11:22 plus ubuntu is getting rid of it in favor of some opengl system soon Oct 16 08:11:25 wayland is making strides Oct 16 08:11:31 i already got that Oct 16 08:11:45 ubuntu has BEEN saying that Oct 16 08:11:48 k, so it seems DownloadManager in 2.3.x is error-prone, before I write something custom - does anyone know of a good open source alternative? Oct 16 08:11:51 but I'll believe it when I see it Oct 16 08:12:04 i don't think x is thaatt bad Oct 16 08:12:12 hahaha it is =) Oct 16 08:12:23 it's a relic, sure..but it gets the job done Oct 16 08:12:23 go look at the architecture and the code Oct 16 08:12:27 sort of Oct 16 08:12:37 I dont accept shit because it tecnically works Oct 16 08:12:41 at least ONLY on that Oct 16 08:13:12 hmmm... ok, the android documentation actually recommends preventing activity reset if it's data heavy. I guess a 700 image album gridview would be considered just that. Oct 16 08:13:23 um Oct 16 08:13:29 am i missing some extra feature? i just throw this into the proguard-project file right http://pastebin.com/MkfMv0xA Oct 16 08:13:48 i don't on principle, but if it doesn't hassle me in my day to day, im fine with it Oct 16 08:14:01 oh god how awesome Oct 16 08:14:06 decompiled this shit Oct 16 08:14:12 now I am gonna write this app the right way Oct 16 08:14:24 tee_pee: you're not showing 700 images at once Oct 16 08:14:36 you just have to reconstruct whatever was showing Oct 16 08:16:06 ehem *cough* http://pastebin.com/MkfMv0xA Oct 16 08:16:16 aye but, as of right now, when I change the orientation (assuming I didn't prevent a reset), the adapter re-fetches the images from the server... and considering the adapter holds the bitmap data for all the images, I do believe that qualifies as heavy Oct 16 08:16:58 This might change though as I get around implementing image caching, but we'll see Oct 16 08:17:05 no... Oct 16 08:17:12 you don't have to refetch the images Oct 16 08:18:02 So I assume the thing I have to save and restore is my adapter? Oct 16 08:26:03 gah,why isnt my "assumenosideeffects" working >_< Oct 16 08:51:50 what is the ABS equivalent of NavUtils.navigateUpFromSameTask(this);? Oct 16 08:52:09 (a.k.a. how do I get up in the activity stack when the home button is tapped) Oct 16 08:54:02 ok, that was too easy. http://stackoverflow.com/questions/12105479/android-actionbarsherlock-on-top-icon-back Oct 16 09:03:01 I've been poking around without much success, mostly due to the fact that I'm not sure how the correct implementation of this goes - how would I go about creating an image carousel? Essentially a View Pager with an arbitrary amount of items, that doesn't degrade in performance if there are 700+ of them Oct 16 09:07:49 any suggestions how to integrate twitter in to my android app? some library or something? Oct 16 09:08:33 Tee_Pee the pages are independent of their loading Oct 16 09:08:46 i use a view pager with 1500 pages Oct 16 09:09:16 the key would be loading the images asynchronisily that belong to the pages in the vicinity of the current instantiated pages Oct 16 09:09:18 so if I were to add a million fragments to the adapter, they wouldn't stick around in the RAM all at once? Oct 16 09:09:27 they are only references Oct 16 09:09:39 a viewpager only keeps the current page, the next page, and the previous page alive in ram Oct 16 09:09:52 That's what I needed to know, thanks. Oct 16 09:10:09 in your case, though, you need to figure out how to prepare / load images that are going to be instantiated Oct 16 09:10:29 has anyone here ever successfully removed the log statements via proguard? Oct 16 09:16:29 is there a way to bring up connected devices, ie before launching an app in eclipse? Oct 16 09:20:01 adb devices Oct 16 09:23:22 any suggestions how to integrate twitter in to my android app? some library or something? Oct 16 09:24:51 MrQwak: http://www.winterwell.com/software/jtwitter.php Oct 16 09:25:25 but if you only want to use it for sharing, I would highly recommend you to use Intents instead Oct 16 09:25:37 thanks Oct 16 09:25:44 yes, it's only for sharing Oct 16 09:26:05 sampullman thanks Oct 16 09:26:13 ideally, i want something that will present a UI too (for user login and allow them to edit before posting the tweet) Oct 16 09:26:30 MrQwak: http://android-developers.blogspot.de/2012/02/share-with-intents.html Oct 16 09:26:50 I would then leave it up to the user if he wants to use twitter on his mobile and just use share intents Oct 16 09:27:10 the above post describes how to do that Oct 16 09:27:28 with intents, does the user need to have twitter app on his device, for the sharing to work? Oct 16 09:28:03 he needs to have an app that offers sharing for twitter, so mainly yes he needs one twitter app installed Oct 16 09:28:24 ah right Oct 16 09:28:41 and if he hasn't he would either have no twitter account, or if he has some, most surly there is a good reason, why he doesnt want to use it on mobile Oct 16 09:28:59 i guess if they don't have the twitter app installed, there's a good change they don't use twitter (or don't want to use it from their phone etc) Oct 16 09:29:05 yup Oct 16 09:29:18 thats why it is highly recommend you don't make your own twitter sharing (but it will be also stated in the article :)) Oct 16 09:29:32 makes sense, thanks Oct 16 09:29:47 and with the intent you won't just be able to share via twitter, but all apps that provide that feature the user has installed Oct 16 09:29:49 Anyone know how the action bar tells if there is a physical menu button? Oct 16 09:30:12 so you also handle mail, sms, social networks, and everything with one single code block Oct 16 09:30:37 ah cool, that sounds great, thanks! Oct 16 09:31:28 lasserix: i am not sure if the action bar does it that way, but you can do it that way: http://developer.android.com/reference/android/view/ViewConfiguration.html#hasPermanentMenuKey%28%29 Oct 16 09:31:35 hi Oct 16 09:32:05 elicpse disconnected after my app jump to a new intent Oct 16 09:32:10 Activity sorry Oct 16 09:32:13 timroes that only works on api 11 + Oct 16 09:32:23 Not quite understand the reason Oct 16 09:32:28 err 14+ Oct 16 09:32:33 someone here has the same problem Oct 16 09:33:03 I'm debugging my app in real device Oct 16 09:33:12 lasserix: ah right, sorry, i remeber there was also a query for the feature, need to search it shortly Oct 16 09:33:55 timroes if you can find it that would be great, i've had no luck Oct 16 09:36:54 hello can i define custom animations programatically Oct 16 09:37:08 right now i define them in a xml file Oct 16 09:37:18 but is there a way to do it from classes Oct 16 09:38:41 for more context http://developer.android.com/guide/topics/resources/animation-resource.html Oct 16 09:38:57 my question is how do i define an animation resource programatically Oct 16 09:40:03 lasserix: okay I neither find what i was looking for, perhaps I rembered that wrong. Have a look here: https://github.com/DokuWikiMobile/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/internal/view/menu/ActionMenuPresenter.java#L121 from line 130 on, thats how actionbarsherlock finds out if a menu key is present or not. Meaning: above api 14 use the method, below 14 check if device is honecomb or above, then n Oct 16 09:41:10 dark_element: Of course, almost everything you do with XML can be done with Java Oct 16 09:41:34 cyrilmottier ill look around more then Oct 16 09:41:48 timroes ahh thanks! Oct 16 09:43:41 you're welcome :) Oct 16 09:44:08 I know its not perfect, but is there even one honeycomb device with a menu key? Oct 16 09:44:26 timroes, definitely Oct 16 09:44:37 which? Oct 16 09:45:13 timroes, okay i mistook it for a menu key :P Oct 16 09:45:17 http://android-developers.blogspot.sg/2012/01/say-goodbye-to-menu-button.html Oct 16 09:45:29 yeah not the overflow key :) Oct 16 09:45:45 because I guess honeycomb was only installed on tablets, and I cannot think of a tablet with hardware menu key right now Oct 16 09:45:59 but perhaps there are some crazy devises, that did that :D Oct 16 09:46:25 but for the very most of the devices the ActionBarSherlock way will work, I guess :) Oct 16 09:48:22 timroes, sry for tht :) Oct 16 09:48:43 np, but you might ofc still be right :) Oct 16 09:49:09 So if ever someone find a honeycomb device with a menukey.. smash it, it destroys the above solution Oct 16 09:50:33 cyrilmottier overridependingtransition without using anim resources Oct 16 09:51:15 dark_element: overridependingtransition requires an animation defined in XML Oct 16 09:51:44 cyrilmottier i want the anim defined programatically and through xml Oct 16 09:52:37 How do you add projects as libraries like ABS or holo everywhere with the new adt? Oct 16 09:57:38 Tee_Pee: hi, yesterday i think you were about to save the state of a pageradapter so that you can handle orientation change. now i am facing the same problem. have you solved yours? my adapter needs a context to be passed and i don't know any workaround for my problem. Oct 16 10:03:16 cyrilmottier how does one define anim resources without xml? Oct 16 10:03:31 cyrilmottier i am creating jar so can't use xml Oct 16 10:07:20 dark_element: What do you want to do with these animations? Oct 16 10:07:35 cyrilmottier activity transition Oct 16 10:07:41 Do you want to animate transitions between Activities or animate Views ? Oct 16 10:07:53 animate transitions Oct 16 10:08:11 dark_element: Then you can't use an animation built in Java you HAVE to define it in XML Oct 16 10:08:27 cyrilmottier reading this right now https://groups.google.com/forum/?fromgroups=#!topic/android-developers/OM9xKQDrzj0 Oct 16 10:08:37 cyrilmottier maybe i can load animations on load Oct 16 10:24:51 Anyone else have problems importing ABS 4.2 into eclipse? Oct 16 10:26:50 hello all Oct 16 10:26:59 is it possible to set a system wide proxy on android devices ? Oct 16 10:28:26 yeah Oct 16 10:29:03 ? Oct 16 10:29:10 oops haha wrong chan, but, fwiw i don't think you can do that on non-rooted devices Oct 16 10:29:16 well orbot does that but that forces you to use tor Oct 16 10:29:28 yeah you need root Oct 16 10:30:43 and a special rom - according to the tor webpage :( Oct 16 10:31:10 that is pretty much rooting it Oct 16 10:31:23 probably can find some malware with an exploit that will set you up a proxy Oct 16 10:31:39 not a useful one though... Oct 16 10:31:47 jea right not really useful :) Oct 16 10:32:12 including an exploit in my app makes me look a bit untrustworthy :D Oct 16 10:33:24 to most people yes, if it's a cool exploit you'll impress some people :> Oct 16 10:34:40 mr6 - I'd sell a cool exploit :D Oct 16 10:35:16 well, let me know if you pull off the system-wide proxy thing Oct 16 10:36:54 well probably I won't invest further work in it. I just need to sniff the network traffic from the phone and I thought that it might be easier with a proxy. But I think I'll stay with tcpdump that's pretty easy Oct 16 10:37:31 i'm getting a null pointer exception when trying to use getActionBar()… is the default action bar in 3.0+ (with back, home, app list) not an action bar? how do i access it? Oct 16 10:38:04 yeah if you have that on there or if you can use network sniffing tools on the wifi router your connected to, Pinas Oct 16 10:38:28 mr6 - is use tcpdump directly on the phone (rooted device) works quite well Oct 16 10:38:34 cool Oct 16 10:39:22 ultra-: what is the source line the NPE is thrown on? Oct 16 10:39:31 mr6 - well it's nothing special just tcpdump for arm :D Oct 16 10:40:27 i couldn't find it… using ActionBar actionBar = getActionBar() is fine, but when i call actionBar.hide(), i get the exception Oct 16 10:42:06 ultra-: I don't use actionBar much but the top google results for 'android getActionBar' all deal with your problem Oct 16 10:42:43 ok thanks.. i didn't actually google it b/c i've been reading up on it and the examples i see use that Oct 16 10:42:45 i'll check, thanks Oct 16 10:43:55 yeah I mean, feel free to discuss it here, just pointing out that there appear to be solutions out there Oct 16 10:45:17 yeah it was because i was using NO_TITLE Oct 16 10:46:47 that wasn't what i want anyway… what do they call the bottom thing with back, home, and app list? Oct 16 10:47:26 ah, navigation thingy Oct 16 10:47:38 bar :P Oct 16 10:47:44 whats the best way to communicate between a service and an activity. I have an intent service and every intent leads to a network call. I send the parsed data back to the activity Oct 16 10:47:54 if i develop apps for the android platform is it best to get a "referenece" device like a nexus 4 or gnex to test the app? Oct 16 10:48:55 nexus 4? :) Oct 16 10:49:29 i'd get a n7 just b/c it's cheap and it's nice, if you need a tablet to test on anyway Oct 16 10:50:21 i have the n7 and gnex, but i'm going to ebay a honeycomb tablet that hasn't been updated for "reference" Oct 16 10:51:14 nexus 4 is the next nexus phone built by lg debut on oct 29th Oct 16 10:51:51 ah gotcha Oct 16 10:52:05 i'm not sure that's necessary Oct 16 10:52:25 yeah i think a gnex will do, i will be able to get them cheap Oct 16 10:53:13 but hey i need a new android based phone so i will wait to see reviews of the new nexus phone Oct 16 10:54:07 anyways i am off to get ingredients for my cookies Oct 16 10:54:09 so long Oct 16 10:54:20 later Oct 16 11:01:28 In the official dev guide: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html it says Note: A ContentProvider might be a more appropriate place to store cached images if they are accessed more frequently, for example in an image gallery application. Oct 16 11:01:54 The only problem is... no one seems to be doing this, according to a few google searches Oct 16 11:03:55 Tee_Pee: might want to look at the source of the gallery app Oct 16 11:05:57 probably Oct 16 11:10:04 hi all, i'm trying to add android websockets from https://github.com/koush/android-websockets to my project. i did this via Import -> Android -> Existing android code into workspace. but when i go to Build Project i get "...\android-websockets\build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var". i'm a bit clueless, it's quite a cryptic mes Oct 16 11:31:32 hi all, i'm trying to add android websockets from https://github.com/koush/android-websockets to my project. i did this via Import -> Android -> Existing android code into workspace. but when i go to Build Project i get "...\android-websockets\build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var". i'm a bit clueless, it's quite a cryptic mes Oct 16 11:45:19 heya Oct 16 11:47:29 whats the best way to create a join query using SQLiteOpenHelper, i'm currently doing it like this >> http://pastebin.com/rw9YVKRP << but thats hard to read and im looking for a "better" way if one exists. Oct 16 11:50:41 Ok, I must admit I am hopelessly lost - could anyone help me with the creation of a content provider for caching images? Oct 16 11:56:56 hey guys Oct 16 11:57:03 i must report a bug from rom manager Oct 16 11:57:14 i know there is an channel for cwm/rom manager Oct 16 11:57:21 but i have forgot the name Oct 16 11:57:34 i need the channel name that i can report the bug Oct 16 11:57:43 it was something with kosh i think Oct 16 12:05:48 I use this to popup a popupWindow : popupWindow.showAsDropDown(pbtn, 0, X); If I use X = 0 it does not work! Oct 16 12:05:53 can someone tell me why Oct 16 12:06:00 it is just the yOffset right? Oct 16 12:07:14 and if X = 1? Oct 16 12:09:15 RichardS: it just works perfectly! Oct 16 12:09:20 for X = 1 Oct 16 12:09:51 odd, sorry ive never used that method before so know nothing about it Oct 16 12:11:03 im looking for a new laptop, anyone devving on a macbook air, is it sufficient for speedy devcycles? Oct 16 12:32:30 hi all, i'm trying to add android websockets from https://github.com/koush/android-websockets to my project. i did this via Import -> Android -> Existing android code into workspace. but when i go to Build Project i get "...\android-websockets\build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var". i'm a bit clueless, it's quite a cryptic mes Oct 16 12:39:02 antgel: well... did you try generating local.properties with android update project? Oct 16 12:43:47 hi guys. is there any way to speedup the dex process with maven? any tweak? Oct 16 12:44:33 Hello. For those of you using AdMob, have you got your August payments yet? Oct 16 12:45:36 Leeds: i don't even understand what that means, after a google. i'll carry on. i don't understand why it doesn't build out-of-the-box - is local.properties (as the name suggests) dependent on *my* environment? Oct 16 12:45:41 jaldhar: yes Oct 16 12:45:56 i also don't know why there aren't build instructions Oct 16 12:46:22 because you don't need instructions - you update the project using ant to create the local build environment, then build it Oct 16 12:46:50 Leeds: thanks. I'll have to look into this then. Oct 16 12:47:16 jaldhar: through paypal, came in on the 12th Oct 16 12:50:11 Leeds: okay, i found the syntax for android update project, and eclipse says build successful. yet i can't find a jar file. the build process should output a .jar file, correct? Oct 16 12:50:33 antgel: more likely an apk Oct 16 12:50:37 I don't know Oct 16 12:51:33 Leeds: well that's not too long ago. I'll wait till the end of the week before panicing. Oct 16 12:52:06 Leeds: okay. i was told yesterday in this channel that https://github.com/koush/android-websockets was a library project. assuming this is true, it still outputs apk? i thought apk was what was actually uploaded to run on the device, and .jar was a library that could be leveraged by application code. wrong? Oct 16 12:52:22 antgel: no idea Oct 16 12:55:04 antgel: don't know anything about this particular library but e.g. ActionBarSherlock is used as a library project and it doesn't produce a jar or apk. It just compiles into your app. Perhaps yours is the same? Oct 16 12:58:55 Hi, I'm using this layout: http://pastebin.com/8NWnhAKE with this style: http://pastebin.com/yhASYGGV and I'm getting these errors: http://pastebin.com/beDkviG8 I can't figure out why. Oct 16 12:59:05 files saved by my app aren't showing up in file managers on PC or mac but show up in the android file manager Oct 16 13:01:29 jasonmog: does the phone have multiple storage locations? like internal storage and an sd card? Oct 16 13:02:03 you may be looking in two different locations Oct 16 13:02:17 it has an internal and external sd card. there is no external card connected Oct 16 13:02:37 i assume the internal sd card is internal storage Oct 16 13:04:14 i've been writing to /sdcard/myapp/file.ext Oct 16 13:05:44 it can't be 2 separate locations because the entire structure from top down is the same except for these few missing files that don't show up in computer file managers Oct 16 13:08:31 jasonmog: could it be a permission or hidden setting that the android filebrowsers is ignoring? Oct 16 13:12:09 WHOA Oct 16 13:12:22 http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Oct 16 13:12:36 Returns the absolute path to the directory on the external filesystem (that is somewhere on http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory()) where the application can place persistent files it owns. These files are private to the applications, and not typically visible to the user as media. Oct 16 13:12:46 *private* Oct 16 13:12:48 wtf Oct 16 13:13:29 What filesystem magic is this Oct 16 13:14:07 HDroid: your trickery doesn't scare me, ext4 Oct 16 13:15:21 any idea about this bloody style thing? Oct 16 13:15:50 every time I try to use defined styles for my text the damn application crashes Oct 16 13:17:57 hmm so FileOutputStream has a parameter for private but FileWriter doesn't Oct 16 13:18:45 Ankhwatcher: not sure what's in CodeFont, but textStyle only takes constants for italic, bold, etc. You're probably looking for style="@style/CodeFont" Oct 16 13:18:56 ..and set android:textStyle from CodeFont. Oct 16 13:19:04 ah i'll just OutputStreamWriter Oct 16 13:19:41 oh wait it's openFileOutput that had that parameter Oct 16 13:22:14 hi everyone Oct 16 13:22:17 I have a question Oct 16 13:22:27 ooh, goodie, a question Oct 16 13:22:28 I start a new Activity by calling startActivityForResult Oct 16 13:22:30 42 Oct 16 13:22:52 how do i create world readable files on external storage? Oct 16 13:22:55 and override an onActivityResult to retreive the result from the called Activity Oct 16 13:23:01 but what happend Oct 16 13:23:25 when the original Activity is killed by lacking of memory Oct 16 13:23:46 I understand that the Activity is called from onCreate Oct 16 13:23:51 jaldhar: i think you could be right, i'm looking now at http://developer.android.com/tools/projects/index.html - the section on library projects in particular. perhaps i was wrong to even try and build this one *blush* Oct 16 13:24:09 but does it mean I can't receive the result from the Activity I started? Oct 16 13:24:33 Do you guys use more than one .xml file for strings? I have a strings.xml with over 350 lines and while of course all belong to the same App, about 50 are used only in one activity. Oct 16 13:25:03 So I am considering splitting them up, but I wanted to ask if anyone else did this and what their experience is. Oct 16 13:25:25 HDroid: you are truly a beautiful person Oct 16 13:25:59 I have an app which allows user to choose an avatar by passing an intent for content Oct 16 13:26:09 how do i write to arbitrary paths in internal storage with world readable? Oct 16 13:26:53 but the app seems return to the first state when I just choose an image Oct 16 13:26:56 jasonmog: there is no such thing, sanely, as world-readable internal Oct 16 13:27:18 anyone has the same problems? Oct 16 13:27:43 Leeds: why not Oct 16 13:27:51 jaldhar: maybe i have a look at how to integrate ActionBarSherlock and it will help me to integrate this project :) Oct 16 13:27:54 because internal storage is private Oct 16 13:28:37 except possibly between different apps from the same developer Oct 16 13:29:33 jasonmog: I'm using the Android definition of 'internal storage' of course, not the English one Oct 16 13:29:44 so am i Oct 16 13:29:54 antgel: I don't recall doing anything special. Just adding it as a library project in eclipse. Oct 16 13:30:22 noone answers my question? Oct 16 13:30:55 are you saying that apps can't write to just any path? they are forced to used a sandbox? Oct 16 13:31:03 for internal storage Oct 16 13:31:07 correct Oct 16 13:31:29 internal storage is sandboxed, external storage isn't (necessarily) Oct 16 13:31:37 jaldhar: i did import -> android -> import existing android code into workspace. is that the correct way to add it? Oct 16 13:32:05 jasonmog: you can make a file on internal storage world-readable, but it will still be in your sandbox, so no other apps will know to look there, etc. Oct 16 13:32:27 gotcha thanks Oct 16 13:33:19 antgel: import existing project itym but yes. Then right click on your apps project root in package explorer select properties then android and add the library project Oct 16 13:33:35 jasonmog: the javadoc in android.os.Environment is useful Oct 16 13:34:00 jaldhar: itym? *confused* Oct 16 13:34:20 antgel: sorry itym = I think you mean Oct 16 13:35:05 jaldhar: i'm slow today :) Oct 16 13:35:24 import "Existing Projects into Workspace" is what you want. Oct 16 13:44:26 wtf Environment.getExternalStorageDirectory() returns the internal sd card used for internal storage Oct 16 13:44:30 on asus transformer prime Oct 16 13:44:52 jaldhar: so i already had that reference set up. maybe i didn't need to spend a day trying to build the library project. i guess now it's just a case of import and pray :) Oct 16 13:45:02 anyone bored / knowledgable enough to help me turn my custom BaseAdapter into a custom SimpleCursorAdapter? Oct 16 13:45:06 I seem to be having some difficulties Oct 16 13:48:56 ugh how do i get the first *removable* external storage directory Oct 16 13:50:21 jaldhar: another question, once the project is imported, there are lots of red lines (build errors). i can make these go away by right-click -> Properties -> Android, then selecting a build target. but do i actually need to do this for a library project? seeing as its not built on its own, but imported into my main project? Oct 16 13:52:29 antgel: I think you do. The android target sdk versions have to match or you get weird errors as I recall. Oct 16 13:53:14 jaldhar: thanks! Oct 16 13:58:36 jaldhar: i still have a very few red errors in the library project e.g. (Call requires API level 8, current min is 1). how do i fix them - do i need to? Oct 16 14:00:51 antgel: do you have android:targetSdkVersion and android:minSdkVersion set in your Manifest? Oct 16 14:01:46 jaldhar: no, i can copy and paste them from the Manifest of my main project. weird that it didn't come in the library project source code though :-/ Oct 16 14:03:22 how do i get the paths for all removable external storage directories Oct 16 14:05:47 ahhh Oct 16 14:06:05 nothing like making a 15-20 mile trip into work in like 10 minutes Oct 16 14:10:54 How can i make my custom timepicker for andorid? Oct 16 14:13:37 anyone know anything about the dalvik integration in android source project? Oct 16 14:14:20 can a custom timepicker be created in android Oct 16 14:14:58 anything can be created in android Oct 16 14:15:30 digitalfallacy: public class CustomTimePicker { /* fill this in */ } Oct 16 14:15:42 http://imageshack.us/a/img716/7200/drag12.png Oct 16 14:15:43 http://stackoverflow.com/questions/12916621/android-bitmap-caching-via-contentprovider <----if someone is bored enough. Oct 16 14:15:55 you Oct 16 14:16:10 you'll want to likely inherit from some ui control, VIew or some layout Oct 16 14:16:14 obviously, but I am kinda sorta stuck on this transition Oct 16 14:17:11 Tee_Pee: what is the actual question? How to integrate an image cache? Oct 16 14:17:24 I know jake built a LRUCache you could easily integrate to do that very thing Oct 16 14:17:53 My requirements specifically note a contentprovider cache. Oct 16 14:18:03 so the question is - how to implement a contentprovider cache Oct 16 14:19:11 I THINK I have the logic down, as noted in that question, but finding examples has been difficult, there doesn't seem to be a uniform way to do it Oct 16 14:19:11 I use this to popup a popupWindow : popupWindow.showAsDropDown(pbtn, 0, X); If I use X < 2 it does not work for 2 and more yOffset, it just works fine. Have anyone experienced this before? Oct 16 14:19:24 there probably is no uniform way Oct 16 14:19:36 thats the beauty of software... there are probably 100 ways to do everythign Oct 16 14:24:10 if the SQLiteQueryBuilder query() method doesn't find any result, it'll return an "empty" cursor I imagine? Oct 16 14:24:32 evancharlton: That would be writing a new timepicker from scrach ..... can't i extend the default time picker and change the style or drawables Oct 16 14:34:42 seems like you can test that easy enough Tee_Pee Oct 16 14:35:24 digitalfallacy: - its been my experience with that stuff that its better to just start from scratch to be honest.... seems like dates in general in java are just complete and utter shit... and that even just the difference between date picker and time picker used to be significant Oct 16 14:35:30 they may have fixed that bug Oct 16 14:36:02 [16:34] seems like you can test that easy enough Tee_Pee <----Yeah, but my work hours end in 15m, and I'm pretty much exhausted Oct 16 14:38:04 not to be an ass but this isnt #do-my-work Oct 16 14:41:14 hehe Oct 16 14:42:50 Can someone give a clear explanation when a RemoteCallbackList is meant to be used? Is it only for communicating across separate processes? Oct 16 14:43:07 ron_frown: But writing a new timepicker would require writing lots of functions which are already present in native timepicker .... i just wanted to change the look and feel ... that would be lots of unwanted code Oct 16 14:43:18 true Oct 16 14:43:30 jaldhar: hi, i set android:minSdkVersion="8" in AndroidManifest.xml, but eclipse is still complaining that the minimum api is 1. do i have to set it somewhere else? Oct 16 14:43:35 you can inherit form the base and override methods add stuff Oct 16 14:43:42 in my FaceDetectionListener I copy the detected faces to an array in my MainActivity. how do I use the synchronized keyword to make sure I am not writing the faces when my renderer is reading them? Oct 16 14:43:48 override the constructors that handle the styling and add styling properites Oct 16 14:44:06 ron_frown: Can i do that .. that would be great .. Oct 16 14:44:46 yeah dude... only problem is if any of those are final or sealed or whatever the ff java calls it Oct 16 14:44:59 (final) Oct 16 14:45:15 I get mixed up Oct 16 14:45:16 Also, if a bound service runs in the same process as the activity that launches it, if I close that activity, is the service guaranteed to die? Or does it depend on whether I use bindService() vs startService() Oct 16 14:45:22 in a given day I write code in at least 3 diff languages =) Oct 16 14:45:27 Which ones? Oct 16 14:45:41 c/c++, c#, java Oct 16 14:45:59 That sounds like a pita,. Oct 16 14:46:09 meh... not too bad Oct 16 14:46:31 c# ruins stuff for me since it has so many nice language constructs Oct 16 14:46:38 ron_frown: yeah Oct 16 14:46:39 but c++ is getting htere with c++ 11 Oct 16 14:46:40 ron Oct 16 14:46:44 ron_frown: ok thanks Oct 16 14:46:51 np Oct 16 14:47:39 not to be an ass but this isnt #do-my-work <----I know, but it was a simple question with an off-chance that someone might know it from the top of their head. Guess that wasn't the case. :) Oct 16 14:48:06 I'd be very surprised if there were a ton of people usign content providers Oct 16 14:49:25 boo.... dalviks infrastructure changed quite a bit =( Oct 16 14:49:26 sad panda Oct 16 15:10:40 does anyone here do development in a linux vm running on a windows host? Oct 16 15:19:48 Hi, okay, everyday iam asking this , please answer, how can i make my content in activity be very high (for example 2048dp) with use of an ScrollView Oct 16 15:21:27 WallnPall: you're trying to solve the wrong problem Oct 16 15:21:54 sdaq: yes Oct 16 15:22:09 short answer there probably is no hard limit other than memory, but like evancharlton says, you should probably rethink the design if that question comes up Oct 16 15:22:17 evan:D we meet again :) please friend try to give me advice , lets say, i have too many components in one activity to be stretched into one display Oct 16 15:22:33 sam: which vm software do you use, and what distro of linux? Oct 16 15:22:34 WallnPall: just put them in a scrollview and let it size itself automatically Oct 16 15:22:58 I don't know why you're trying to force your scrollview or your scrollview's contents to be artificially tall Oct 16 15:23:04 sdaq: Debian in VMPlayer Oct 16 15:23:27 sam: do you use the emulator or actual devices for dev? Oct 16 15:23:36 evan - thats the thing, nothing like that happens (maybe because of absolute layout) because when i put any more components they are placed one upon another Oct 16 15:23:53 anyone has any idea what I need to create in order to eb able to flash zimage on my phoen ? Oct 16 15:24:00 sdaq: I use both but mostly actualy devices because two layers of GL emulation don't behave very well Oct 16 15:24:01 uh, then you're using the wrong layout. Are you using a FrameLayout? Oct 16 15:24:01 Imean rigth now we have boot.img for kernel Oct 16 15:24:08 *actual Oct 16 15:24:18 WallnPall: try using a LinearLayout with the orientation set to "vertical" Oct 16 15:24:19 *sigh* Oct 16 15:24:26 we also have a script that allows us to repack the zimage inside the phone's boot.img but Oct 16 15:24:30 DAGr8: #android-root Oct 16 15:24:33 sam: I have not been successful connecting my device through virtualbox so I am exporting the vm and I will try VMplayer Oct 16 15:24:42 how do I make soemthing that will allow me to flash jsut the zimage liek its doen on many other phones ? Oct 16 15:24:44 * jaldhar has now spent more time drawing the icons than actually writing his app Oct 16 15:24:46 sam: anything special that needs to be done for that? Oct 16 15:24:49 evancharlton ok Oct 16 15:25:29 evan - i cat use linear because then it loses its style of placement (dont know how to call it ) Oct 16 15:26:06 WallnPall: what on earth are you talking about? Bottom line, you're using the wrong layout. Stop trying to force the ScrollView to be huge. Oct 16 15:27:12 I use this to popup a popupWindow : popupWindow.showAsDropDown(pbtn, 0, X); If I use X < 2 it does not work for 2 and more yOffset, it just works fine. Have anyone experienced this before? Oct 16 15:27:46 s/it does not work for/it does not work, but for Oct 16 15:28:30 sdaq: does it appear VMPlayer's "Virtual Machine" -> "Removable Devices" menu? Oct 16 15:28:49 sdaq: oh wait you said virtualbox... there should be something similar though Oct 16 15:29:59 okay, evan, i have created a linear layout, what options should i change to have the long screen ? i changed the height, nothing happened Oct 16 15:30:19 WallnPall: for the last time, stop trying to set the height Oct 16 15:30:27 evan Oct 16 15:30:35 set your layout's height to be wrap_content, and stick that in a scrollview Oct 16 15:30:44 i have that as a default Oct 16 15:31:06 WallnPall: put your whole layout file on http://pastebin.com/ and give us the link Oct 16 15:31:15 i cant sorry Oct 16 15:31:15 I can't keep playing guess-and-check Oct 16 15:31:30 i know Oct 16 15:31:54 okay i do it othherway, listen to me, do you have android phone near you ? Oct 16 15:31:59 yes Oct 16 15:32:11 okay, now, go to the apps and click to the "Settings" Oct 16 15:32:18 done Oct 16 15:32:39 and now what i am trying to do, is you see how long the window is ? how you must scroll totally down to reach the Device info ? Oct 16 15:32:58 yes. Do you see that and think "ah-ha! they must have set this to be 4000dp tall!"? Oct 16 15:33:05 thats what i dont know how to do , you see ? this basic long scrollable screen full of button for example Oct 16 15:33:14 hey, i said for example 4000 dp Oct 16 15:33:18 got it ? example , Oct 16 15:33:24 well first of all, that's a element Oct 16 15:33:33 and I told you how to do it, you're just not thinking about it Oct 16 15:33:57 well thats all i wanted to know the PreferenceScreen Oct 16 15:34:07 well if there somethign more you have Oct 16 15:35:50 WallnPall: I can't believe I'm doing this, and it will be the last time I spoon-feed you, but you're driving me insane. http://pastebin.com/DFGsERi2 Oct 16 15:36:09 Read that. Understand that. Think about that. Think about how to adapt it to solve your problem. Oct 16 15:36:28 Anyone using any kind of form binding on Android? I'm looking for implementations but searches aren't coming up with a lot. Oct 16 15:37:04 ?? evan sorry mate but everything you pasted i already have in my activity , but thanks , no change Oct 16 15:37:22 There's android-binding but it's an entire framework, not just a form validator. Oct 16 15:37:46 WallnPall: then you're doing something crazy and we really can't help you unless you show us some source code Oct 16 15:38:23 sorry, gonna figure it out :) thanks for at least Oct 16 15:40:25 hello Oct 16 15:41:02 Evan i figured it out :) and yes it can be 4000dp ;) thx Oct 16 15:41:17 yet nothing to do with :D Oct 16 15:41:31 oh dear lord Oct 16 15:41:34 WallnPall: you never have to set an explicit height. you're doing it wrong. stop ignoring people in here. Oct 16 15:41:35 I fear for your users Oct 16 15:41:37 I am following a tutorial on creating action bars. In the tutorial, I am asked to add an android:onClick="onOptionClick" to the menu > item element in the menu.xml file. Oct 16 15:41:45 Why isn't there static access to the Context? I'd like to use a string resource in my code but it's deep down in some logic class … I'm not interested in passing the Context through 3 other classes just because I'd like to access some text there. Is there another way to do so? Oct 16 15:41:50 WallnPall: glad to hear you got something that you're happy with. Good luck with that. Oct 16 15:41:52 I have created an onOptionClick method in the activity file. Oct 16 15:41:52 evancharlton Know what'd help. Beer. Oct 16 15:42:07 but when I try to run the app on my device, it crashes Oct 16 15:42:22 soa2ii: I usually create an application subclass and add a static getInstance() method Oct 16 15:42:25 it runs fine if I remove the onClick reference Oct 16 15:42:39 sulaiman: check logcat Oct 16 15:43:26 codebutler we want exactly to have it for example 1000dp, not beacuse phone screen but beacuse soemthing else, so i was basically just finding a easy solution Oct 16 15:43:41 WallnPall: what if the device is taller than that? Oct 16 15:44:01 codebutler: you probably don't actually want to know anymore details about this "solution" Oct 16 15:44:07 I doubt it's healthy Oct 16 15:44:14 lol Oct 16 15:44:17 evancharlton: fair. Oct 16 15:44:59 evancharlton: in the log, i have found "Caused by: java.lang.NoSuchMethodException: onOptionClick … ", but I do have it created... Oct 16 15:45:12 sulaiman: the signature is probably wrong. it needs to take one View argument Oct 16 15:45:36 codebutler, I have passed a MenuItem object to it Oct 16 15:45:43 let me double check it Oct 16 15:46:04 i dont mind that, (if you find device larger than 1000dp) and guys, its not about screens..okay? got it :)? its not about optimalization for device screens, its something else, so be calm ,you dont need to be Mr.Perfect about that :) i found what i wanted, and you tried to help me, yet i wasnt very bright in explaining so we didnt get each other, you dont need to use sarcasm :) Oct 16 15:48:15 I'm using hashmap for storing my cache Oct 16 15:48:43 as of now I keep it in memory and serialize it when app goes down. However the cache seems to be growing larger with time Oct 16 15:48:56 Is there a disk based hashmap like structure ? Oct 16 15:49:02 if not what are my options? Oct 16 15:49:23 brickhead: take a look at LruCache Oct 16 15:49:33 http://developer.android.com/reference/android/util/LruCache.html Oct 16 15:50:38 codebutler, I double checked. I have copied the exact signature. Oct 16 15:50:57 brickhead: jeff sharkey's talk from IO this year covers some stuff like this and is worth watching if you have a spare hour: http://www.youtube.com/watch?v=gbQb1PVjfqM Oct 16 15:53:27 mdwright: thanks, but is this LruCache is in memory structure or is disk based Oct 16 15:53:39 How can I vertically center text within a viewpager's title indicator? Oct 16 15:53:47 there seems to be one Disk based LRU Cache by Jake Wharton Oct 16 15:54:01 o_O Oct 16 15:54:08 Jake who? Oct 16 15:54:26 WWJWD Oct 16 15:54:42 sulaiman: pastebin your code Oct 16 15:55:52 hi guys, anyone knows whether ADT r21 supports pre-dexing libraries on Windows as well, or only on Mac? My Windows eclipse is still slow. Mac is much faster. http://tools.android.com/download/adt-21-preview Oct 16 15:57:10 tofi9: I believe it should work on all platforms Oct 16 15:57:16 oh man, I need to figure out how to get pre-dexing to work with IDEA Oct 16 15:57:21 Hey JakeWharton your DiskLruCache is it related to android LruCache or completely different project Oct 16 15:57:52 completely different Oct 16 15:57:56 LruCache is an in-memory version Oct 16 15:57:58 ah JakeWharton, you'd know the answer to this. two questions: 1) does it ever make sense to set the height of my titleindicator anything other than wrap_content and 2) how do i vertically center text within the titleindicator? Oct 16 15:58:10 mdwright: to your knowledge it works on both x86 and x64? I have the feeling that my eclipse on win-x64 runs much slower anyway Oct 16 15:58:20 luxurymode: set top/bottom padding instead of a height Oct 16 15:58:45 codebutler: interesting, why do you say that? Oct 16 15:58:51 brickhead: same functionality though, of course Oct 16 15:58:56 or rather, behavior Oct 16 15:59:07 luxurymode: as in VPI's TitlePageIndicator? Oct 16 15:59:10 JakeWharton: that's what I thought Oct 16 15:59:17 JakeWharton: exactky Oct 16 15:59:40 luxurymode: then you dont have to worry about the font size changing or anything Oct 16 15:59:47 the titleindicator area seems not tall enough at least according to our design spec for tablets... Oct 16 16:00:40 codebutler: good point thanks Oct 16 16:01:07 i guess that sort of answers both of my questions Oct 16 16:01:09 JakeWharton: btw great work with ABS, It saved me a lot of effort Oct 16 16:01:50 codebutler: https://gist.github.com/3900213 Oct 16 16:01:54 excellent! that is precisely what it was made for Oct 16 16:02:55 Hi everybody! Can anybody tell me how I can create some kind of "overlay" over an activity that I want to show when the user first starts the app? I would like to show some text, highlights and/or arrow to show the user how he can start using the app... Oct 16 16:03:06 What would be a good way to do this? Oct 16 16:03:11 sulaiman: oh, a MENU. I've actually never done that with XML. the docs say its only available in 3.0+... Oct 16 16:03:13 dialog with a transparent theme Oct 16 16:03:36 JakeWharton: get in gear and make me more timesaving libs Oct 16 16:03:44 codebutler, i am running it on android 4.0 Oct 16 16:03:45 lol. Oct 16 16:04:10 ron_frown: I have one hopefully open sourcing soon. Less of a lib and more of a tool, though Oct 16 16:04:18 the IOC shit? Oct 16 16:05:24 LIES Oct 16 16:07:17 too bad bostock left sq Oct 16 16:07:29 havent seen much from him on the d3 project since he moved Oct 16 16:07:45 yeah that was a big loss Oct 16 16:07:51 and no, not the IOC stuff Oct 16 16:07:57 android:inputType="textCapWords" How to add this attribute to a style item? Oct 16 16:08:13 I did this : textCapWords Oct 16 16:08:27 that is correct Oct 16 16:08:41 I get this lint warning : This text field does not specify an inputType or a hint Oct 16 16:09:02 that's fine Oct 16 16:09:15 linter bug? Oct 16 16:09:19 I suspect lint doesn't resolve stuff provided in style attributes Oct 16 16:09:26 ok Oct 16 16:09:53 look forward to it jake Oct 16 16:10:08 napster: if you could file a bug at b.android.com about it, I'm sure it would be much appreciated Oct 16 16:10:28 mdwright: Will do it today Oct 16 16:10:38 given I dont use sq so I dont know half of what it does, but it seems sq has more value in its engineers and its opensource projects than its end user consumer product itself =) Oct 16 16:10:45 napster: thanks! Oct 16 16:10:58 Issue #3 : I use this to popup a popupWindow : popupWindow.showAsDropDown(pbtn, 0, X); If I use X < 2 it does not work. But for X >= 2 and more yOffset, it just works fine. Have anyone experienced this before? Oct 16 16:11:26 codebutler: padding doesnt seem to do anything for the titleindicator Oct 16 16:11:32 positioning is a bitch, and if you get it 100% napster, let me know... I ant to copy it =) Oct 16 16:11:46 :) Oct 16 16:12:51 luxurymode: you're using android.support.v4.view.PagerTitleStrip ? Oct 16 16:13:04 nope, JakeWharton's vpi Oct 16 16:13:17 which i guess uses that? Oct 16 16:13:29 using a com.viewpagerindicator.TitlePageIndicator Oct 16 16:14:04 yeah i can set padding to 100 and it changes nothing Oct 16 16:15:04 titleindicator just extends View so there's gotta be something else Oct 16 16:17:12 hells no it doesn't use that crap :) Oct 16 16:17:35 lol Oct 16 16:17:52 so theres toppadding and what not as styleables... Oct 16 16:18:05 Implement it, pull request Oct 16 16:18:14 what can i do to make my titleindicator taller but keep the text vertically centered, JakeWharton? Oct 16 16:18:15 it's probably already implemented as something Oct 16 16:18:25 since something has to be centering it in the first place Oct 16 16:18:49 sam: when I try to add the device in vmplayer says the device is in use Oct 16 16:19:18 https://github.com/JakeWharton/Android-ViewPagerIndicator/blob/master/library/res/values/vpi__attrs.xml#L77 Oct 16 16:19:30 There's both topPadding and footerPadding Oct 16 16:19:50 theres a calculation of the bounds which is applied to the paint used for the text, no? Oct 16 16:20:35 what is footerpadding exatly? Oct 16 16:20:45 padding around the footer...obviously Oct 16 16:20:49 im slow today :( Oct 16 16:21:06 sdaq: is something using it, likea file browser, or some Android-related Windows software? Oct 16 16:21:08 Oct 16 16:21:08 Oct 16 16:21:31 so toppadding will make it taller but text is no longer veritically centered Oct 16 16:21:52 lets try footer padding Oct 16 16:22:00 .. use both? Oct 16 16:22:11 haha yea good point SimonVT Oct 16 16:22:56 sam: I am not sure but in Devices and Printers I see maybe 6 devices in there that I think are represented by my one LG Optimus Oct 16 16:22:57 dont really see any difference between footerpadding and toppadding Oct 16 16:23:03 but maybe when i use both... Oct 16 16:23:11 One's above the text Oct 16 16:23:13 The other is below Oct 16 16:23:46 this just in: Surface Pricing Announced - 499 USD Oct 16 16:24:09 * fnord` rolls eyes. good luck with that pricee Oct 16 16:24:44 actually, SimonVT, im an idiot. im running on kindle fire hd and added a values-normal and its using that Oct 16 16:25:00 kindle fire hd is normal? Oct 16 16:25:09 that the weird thing about 7" devices? Oct 16 16:25:44 whats the right way to have themes for like phones and others for 7" devices Oct 16 16:25:49 -sw600dp Oct 16 16:25:49 Pretty sur eit's large Oct 16 16:25:50 assuming i have to support back to 2.1...? Oct 16 16:26:09 isnt that only for 3.1 and above JakeWharton? the smallest width qualifiers? Oct 16 16:26:17 3.2* Oct 16 16:26:37 so what can i do? Oct 16 16:26:47 If I was making an app now I wouldn't support <3.2 tablets Oct 16 16:27:07 the qualifiers only work when running on those devices? Oct 16 16:28:12 just use -sw600dp for 7" on 3.2+. if you have to support crap tablets on pre-Honeycomb then throw something in normal-mdpi or whatever Oct 16 16:28:30 I doubt a 7" tablet reports itself as -normal Oct 16 16:31:18 I was able to center a progress bar at the center of VideoView using FrameLayout, but how can I get the video to stretch? its now showing 100% size video, so if the video is smaller its not touching the edges Oct 16 16:32:00 I had the stretching working by using a RelativeLayout before, but I couldn't get the ProgressBar to center on that layout Oct 16 16:35:32 I get the screen height and width and try to set the video to those (which worked in RelativeLayout) but it has no effect on the size of video in FrameLayout Oct 16 16:36:10 * maslen does not like svn :(. Oct 16 16:36:28 well, better than... *gulp*... CVS Oct 16 16:36:39 remember RCS? Oct 16 16:36:42 maslen: git-svn my friend Oct 16 16:36:51 yes, it's horrible. still better than svn :) Oct 16 16:37:34 MS SourceSafe! Oct 16 16:37:41 mdwright: svn didn't add my files when I told it to. And it didn't let me know that anything changed in the repo :(. So I was looking at my monster commit, and trying to understand why only 6 files were modified :(. Oct 16 16:37:59 i think that ended up corrupting repositories and even microsoft said it sucked :D Oct 16 16:38:00 I think ClearCase is the worst "real" source control system I've used Oct 16 16:38:07 re-architecturing is always a PITA :(. Oct 16 16:38:48 evancharlton: sourcesafe had a few known bugs where you'd just loose the whole repo Oct 16 16:38:53 yeah Oct 16 16:38:55 hehe Oct 16 16:39:00 but I've never used it :) Oct 16 16:39:07 evancharlton: fun fact, evana got taught by one of the three guys that made source safe and sold it to MS Oct 16 16:39:19 mdwright: yikes. Oct 16 16:39:24 either a genius or a moron Oct 16 16:39:26 Who is evana ? Oct 16 16:39:39 maslen: someone else mdwright and I know on the internets Oct 16 16:39:42 ah. Oct 16 16:50:18 romainguy_: why can't I see my google nexus in my ubuntu 12.04 virtual machine running on VMPlayer?? Oct 16 16:50:30 I have no idea Oct 16 16:50:36 I don't use Ubuntu nor VMPlayer Oct 16 16:50:44 ok thanks anyways Oct 16 16:50:58 I can't use systrace in windows Oct 16 16:51:05 I have a funny situation here. I have a list of 10 items. For each of them on selection, I need to select an acitvity to start. What is the best way to do this? Oct 16 16:51:12 so i'm trying to get this #@$@ing ubuntu vm working Oct 16 16:51:36 using a switch seems a bit awkward. Oct 16 16:51:48 all the googlers are "mac guys" Oct 16 16:52:11 [citation needed] Oct 16 16:52:19 yes, really Oct 16 16:52:31 sdaq: have you configured the device to connect directly to the vm? Oct 16 16:52:51 i dont know vmware all that well, but you have to do that with virtualbox Oct 16 16:52:53 birbeck: I don't think so ... how do I do that Oct 16 16:53:13 I had lots of trouble with virtualbox as well Oct 16 16:53:37 napster: if you have ten and they have defined behaviour like that, might it make more sense to have a LinearLayout in a scrollview? I thought most of the benefits of a listview were binding datasets. Oct 16 16:53:49 i dunno i vmware, but with virtualbox you need to set the device to connect directly to the guest os instead of proxying through the host Oct 16 16:53:57 romainguy_: whats the benefit of systrace if you have traceview? Oct 16 16:54:27 evancharlton: do you not use a mac? Oct 16 16:54:53 napster: if it's a fixed set of things, and a fixed order, you could use new Class[] { MyClassOne.class, MyClassTwo.class, ... }; or something Oct 16 16:54:56 Estel: Actually there are in a scrollview. Listview is abit heavy for such things. But the problem is about choosing an activity. I have 10 different activites as well. Oct 16 16:55:01 sdaq: they are very different Oct 16 16:55:03 birbeck: no Oct 16 16:55:08 sdaq: traceview shows you what your process is doing Oct 16 16:55:15 but systrace shows you what the entire system is doing Oct 16 16:55:18 evancharlton: ok, that seems to be useful Oct 16 16:55:20 thanks Oct 16 16:55:22 I am thinking of implementing an app with a "main" view and a separate view and lets say it contains a webview. I am trying to have it so that both would be present and you can switch between the two. My question is: is there a better way to do this besides using a HorizontalScrollView or setting visibility of each layout? Oct 16 16:55:27 any other suggestions? Oct 16 16:55:28 napster: hm, wouldn't work with that solution Oct 16 16:55:40 The main issue is copying and pasting data from one view to the other and being able to go back and forth without losing the data Oct 16 16:55:46 sdaq: why can't you use systrace on windows?? Oct 16 16:55:52 evancharlton: you must be in the minority around there Oct 16 16:56:07 napster: you could use a SparseArray>() {{ put(R.id.button_1, MyClassOne.class); put(R.id.button_2, MyClassTwo.class); ... }}; Oct 16 16:56:26 birbeck: I'd love to see where you are getting this information Oct 16 16:56:37 napster: and then just do a lookup based on the view's ID? Oct 16 16:56:43 romainguy_: see here http://stackoverflow.com/questions/11300773/error-running-systrace-tool-in-adb-using-a-jelly-bean-4-1-emulator-on-windows-7 Oct 16 16:57:02 evancharlton: ok, but what is the issue with the other one? Is it because I don't have an index because I don't use a listview? Oct 16 16:57:03 evancharlton: based on my observation of almost every googler ive met on irc, g+ and at i/o Oct 16 16:57:05 on yeah ˆheard about this issue Oct 16 16:57:09 romainguy_: and here http://docs.python.org/library/select.html#select.select Oct 16 16:57:10 I'll go yell at the SDK guys Oct 16 16:57:17 birbeck: you've met the majority of googlers? Oct 16 16:57:18 romainguy_: please thank you Oct 16 16:57:35 of the core android team Oct 16 16:57:39 napster: yeah, pretty much. The SparseArray method just lets you use the view ID as an index Oct 16 16:58:02 birbeck: all the googlers are "mac guys" << that is so untrue :) Oct 16 16:58:02 evancharlton: ok, thanks. I'm looking into it. Oct 16 16:58:14 thanks for the backup, romainguy_ :) Oct 16 16:58:58 [citation just happened] ;) Oct 16 16:59:06 I'll go yell at the SDK guys <---- thats called customer service Oct 16 17:02:49 evancharlton, romainguy_: i am pleased to learn i am wrong then Oct 16 17:05:23 birbeck: keep in mind that at e.g. I/O, you see a lot of laptops. That doesn't mean that their workstations are macs. Oct 16 17:05:26 Seeing 4.2 devices in the Play Console makes me terribly excited. Just saying. Oct 16 17:07:27 that was me, sorry. I hacked my build.prop and have been installing all your apps Oct 16 17:07:58 https://www.youtube.com/watch?v=Xy69qrJSDxs&feature=youtube_gdata_player this excited? Oct 16 17:08:11 JakeWharton I knew it. Oct 16 17:08:55 I am thinking of implementing an app with a "main" view and a separate view and lets say it contains a webview. I am trying to have it so that both would be present and you can switch between the two. My question is: is there a better way to do this besides using a HorizontalScrollView or setting visibility of each layout? Oct 16 17:08:55 The main issue is copying and pasting data from one view to the other and being able to go back and forth without losing the data. I was able to do this with a HorizontalScrollView but with 4.1.1 out the HorizontalScrollView's scroll is set to 0 by default and I would have to hard code layout parameters into the xml for it to kind of work. I also want to save the state of each view. Oct 16 17:10:16 JakeWharton Should definitely use the app though. Oct 16 17:11:13 evancharlton: Thanks SparseArray just works fine. Oct 16 17:11:30 napster: awesome, glad to hear it! Oct 16 17:11:58 evancharlton We need to get beer again. Oct 16 17:12:05 Eric_Loves_You: totally Oct 16 17:12:20 Mainly because beer. Oct 16 17:13:00 I think I'm having CA withdrawals. Oct 16 17:14:41 how to downgrade from ics to froyo? Oct 16 17:14:52 o.o Oct 16 17:15:06 or is this for #android Oct 16 17:15:11 profligacy: er, you can't really do that.. Oct 16 17:15:26 Sell phone. Buy phone with Froyo. Oct 16 17:15:34 * Hodapp rolls eyes. Oct 16 17:15:43 Find one CM ROMs with Froyo? Oct 16 17:16:04 good evening Oct 16 17:16:25 i have a big problem with a s3 hopefully someone can help or assist Oct 16 17:16:58 i made the following setup the s3 as the company wants it, rooted it, backup, triangled, unroot, flash original recovery all fine Oct 16 17:17:01 x23piracy_: ask your question, but I'm a little suspicious of you asking for S3 help in #android-dev Oct 16 17:17:23 x23piracy_: oh, galaxy s3. Yeah, head on over to #android or #android-root Oct 16 17:17:30 then i restored the backup into another s3 all was working fine but wlan isnt working anymore Oct 16 17:17:37 ok sorry didnt knew it better :( Oct 16 17:17:44 no worries; good luck! Oct 16 17:19:55 hello guys, is there any link to beta of ADT plugin? Oct 16 17:20:32 jay_gridley: http://tools.android.com/preview-channel Oct 16 17:22:00 what does "triangled" mean? Oct 16 17:22:18 triangulated? Oct 16 17:23:28 hi everybody! I have a vertical linear Layout that has two RelativeLayouts and a fragment in it... showing them works fine but as soon as I try to get the second RelativeLayout with findViewByID(R.id.relLayout2), my app crashes with a "binary xml file line #96", which contains " whats the right way to override styles defined in my regular res/values/styles.xml for large and normal. id like to inherit common behavior from the regular one. do i need to just have the actual one i use be SomeName.ParentTheme? Oct 16 17:24:41 mdwright: thanks Oct 16 17:24:46 evident ive seen similar errors when i was getting out of memory exceptions Oct 16 17:25:34 treeleaf: but why should an out-of-memory error happen there? Oct 16 17:26:24 idk, maybe bitmaps taking up too much memory? just a guess Oct 16 17:27:17 well it's showing everything when I don't try to get the Layout in the code... weird Oct 16 17:27:27 I'm guessing you're using Activity and running on <3.0 Oct 16 17:27:35 yes Oct 16 17:28:05 There you go Oct 16 17:28:12 The fragment tag didn't exist until 3.0 Oct 16 17:28:38 Use FragmentActivity Oct 16 17:29:58 im confused. how can i inherit common behavior from a style defined in res/values/styles but change some stuff in res/values-large? Oct 16 17:30:12 Make a base theme Oct 16 17:30:25 SimonVT: sorry, my mistake: the activity where I try to access extends FragmentActivity... Oct 16 17:30:49 Then you're probably doing it wrong Oct 16 17:31:23 Im designing an app for my news conetent...Now, is there some nice example of how to space out single news item within a list, i mean image, date, news title - best practices? Oct 16 17:32:07 i mean formating items within listview Oct 16 17:32:51 another question is if i have 500 news items and i cannot load them all, how should i approach this issue, get next 10 - stuff like that Oct 16 17:33:04 I think I pinged out Oct 16 17:33:06 So I'll ask it again: Oct 16 17:33:08 Does anyone know why my app's activities show up in m app drawer? Oct 16 17:33:10 e.g. the main activity, but also another activity Oct 16 17:33:11 reuf: have you gone through developer.android.com/design Oct 16 17:33:12 Am I doing something wrong? Oct 16 17:33:14 Is this normal behaviour? What is the correct way of making different "pages" Oct 16 17:33:59 hmm Oct 16 17:34:01 what is the name of the style for viewpager tabs where the tabs arent fixed? Oct 16 17:34:05 If you have multiple activities that accept the launcher filter in your manifest, I imagine that might make multiple icons appear Oct 16 17:34:20 reuf: specifically there's a page on metric and grids worth looking at, as well as lists Oct 16 17:34:33 How would I go on about making them not show up in the launcher? Oct 16 17:34:49 Dwarf: don't put that they accept launcher in your manifest for the activity? Oct 16 17:35:09 It's my first app, so let me see if I can figure it out Oct 16 17:35:15 reuf: as for loading content dynamically, look at http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews Oct 16 17:35:31 Dwarf: Specifically the activity filter that accepts category.launcher. Don't do that if you don't want it launched from the launcher on that activity. Oct 16 17:35:43 aaahj Oct 16 17:35:46 Dwarf: I suspect you just copied and pasted all your activities as your main one Oct 16 17:36:01 I did new > android activity in eclipse Oct 16 17:36:08 So I suppose it did it by default Oct 16 17:36:17 And what does action.main do? Oct 16 17:40:19 This is so interesting! Oct 16 17:40:27 I can't wait to make it actually work Oct 16 17:44:07 Could anyone shed some light about how to make a list of items, and if you press and hold, a menu pops up? Is that some specific menu? Oct 16 17:45:19 Dwarf: http://developer.android.com/guide/topics/ui/layout/listview.html and http://developer.android.com/guide/topics/ui/ui-events.html (onLongClick) Oct 16 17:45:21 use vim/emacs Oct 16 17:45:57 Tyvm, mdwright, much appreciated Oct 16 17:46:53 Dwarf: you may want onItemLongClick from AdapterView http://developer.android.com/reference/android/widget/AdapterView.html Oct 16 17:47:04 Eh Oct 16 17:47:16 I'll just read the documentation first, I'm starting from absolute zero here Oct 16 17:47:32 Always a good plan Oct 16 17:49:03 Eh Oct 16 17:49:17 It's not able to just drag 'n drop and smack a list on the thing right? Oct 16 17:50:12 Dwarf: you can use the graphical layout editor to drop a list in your activity usually, if that's what you're asking Oct 16 17:50:26 Oh sweet I found it Oct 16 17:50:49 Another quick question, android:id="@+id/listView1" Oct 16 17:50:56 Can I just change the listView1 to whatever I desire? Oct 16 17:51:04 yes Oct 16 17:51:08 Great! Oct 16 17:51:27 just remember to update the code to reflect the ID change Oct 16 17:51:58 Oh right Oct 16 17:52:19 Strangely, there's no code in the mainactivity.java for it Oct 16 17:53:12 That part is all up to you :P Oct 16 17:54:16 so my device / custom rom - the wallpapers or live wallpapers aren't working. any one know where i can read more about how these work so i can try to modify my system to make it work? Oct 16 17:55:24 Any specific custom ROM, adouble? Oct 16 17:55:30 #android-root Oct 16 17:55:38 this channel is pretty much for app-dev, try #android-root Oct 16 17:55:39 bah < fish slaps self Oct 16 17:55:39 Fair enough Oct 16 17:55:42 i always forget my bad. Oct 16 17:57:14 What's the best place to start loading the content for the list if I want it to load it on startup? Oct 16 17:57:20 onCreate? Oct 16 17:57:30 hi all Oct 16 17:57:42 Or is there another function that is better? Oct 16 17:57:46 Hello karakuri Oct 16 17:57:49 Depends what kind of content and how much of it there is. For database backed content (or anything else which can take a while) you probably need to look at contentprovider and background loading Oct 16 17:57:57 i have an edit text and i've set ellipsize="end" on it, but it refuses to show ellipsis Oct 16 17:58:08 Yea I'm probably going to use a database Oct 16 17:58:49 it also has inputType="text", imeOptions="actionDone", and maxLines="1" Oct 16 17:58:56 Search for some tutorials about making contentproviders then. It's sucks and is tedious, you won't enjoy it. Oct 16 17:59:11 s/it's/it/ even. Oct 16 17:59:38 SQLite, that is, right? Oct 16 17:59:38 Dwarf: i learned a lot about content providers from the ioshced source code Oct 16 17:59:44 *iosched Oct 16 17:59:48 karakuri: possiblye related: http://code.google.com/p/android/issues/detail?id=10554 Oct 16 18:00:03 s/e// Oct 16 18:01:17 karakuri: which part? Oct 16 18:02:11 i was looking at iosched 2011 at the time, but its all in their .provider package Oct 16 18:02:40 Ugh Oct 16 18:02:43 This is so confusing ._. Oct 16 18:03:04 they have three things Oct 16 18:03:16 1. a contract (lots of constants, etc) Oct 16 18:03:22 2. Database Oct 16 18:03:28 3. the actual content provider Oct 16 18:03:53 My head hurts already Oct 16 18:04:00 yeah, its a bit verbose Oct 16 18:04:35 http://developer.android.com/guide/topics/ui/layout/listview.html Oct 16 18:04:42 This doesn't even state how to add items? ._. Oct 16 18:04:45 Or I am retarded Oct 16 18:05:33 in onLoadFinished, they call adapter.swapCursor Oct 16 18:05:38 There's a ton of tutorials walking through the whole process out there, search for android listview database contentprovider, or something similar. It is not trivial. There are a lot of moving parts. Oct 16 18:06:00 The upshot is you get a list which is fairly memory efficient since it recycles views Oct 16 18:06:17 Heh Oct 16 18:06:22 Cursor Oct 16 18:06:26 Well that makes sense Oct 16 18:06:30 loader just moves the database call off the UI thread. you get a call back when its done Oct 16 18:06:35 You'll need to care about tuning your db queries though too, to simplify that as much as possible. it doesn't like, for example, doing 2000 complex joins in a list. Oct 16 18:06:50 No worries, it's a small note app Oct 16 18:06:55 For personal use only, too Oct 16 18:07:28 Dwarf: http://developer.android.com/training/notepad/index.html Oct 16 18:08:59 Thanks a bunch :D Oct 16 18:09:09 (altho I dislike how they provide the source) Oct 16 18:09:56 as a zip? it may actually be one of the sample projects packaged with android Oct 16 18:10:27 newb here: beyond tutorial #1 @ android training, are each of the lessons new APK's? or more reference on how to properly implement certain features? Oct 16 18:10:34 (ah, it is, it just only comes with the complete app not the intermediate steps) Oct 16 18:10:53 They tell you to look at the source ._. Oct 16 18:10:56 Bummer Oct 16 18:11:19 Dwarf: i think it's a really old app, before the tutorial and api guides were where they are at today Oct 16 18:12:03 adouble: most of the guides and training just explain specific features, they aren't whole apks Oct 16 18:12:09 ty Oct 16 18:12:35 any recommendation on alternate online tutorials? maybe more example style that i could use android training as reference for? Oct 16 18:17:32 hi, is there any way to use webcam with android installed on virtual box ? Oct 16 18:17:49 I used the tabs + swipe template to make an app. One of the tabs has a listFragment that is getting its content from the web using an AsyncTask. Where should the onClickListener go for the listView? Oct 16 18:23:11 I wish there was an android-porting channel Oct 16 18:23:40 hey powers that be... can I start a android-porting channel thats advertised along side the android-dev channel etc? Oct 16 18:24:24 tried all the workarounds for the ellipsize problem and none of them work, Oct 16 18:24:33 so i guess just wait for google to fix it... Oct 16 18:24:48 karakuri: what issue? Oct 16 18:25:23 hy all! Previously I needed to go, so I ask my android question again what I asked a few hours ago Oct 16 18:26:43 there #android-porting Oct 16 18:26:49 I have a working graphical layout in eclipse, and I imported the same in another eclipse. It says "missing styles" when I trying to use graphical layout in the imported project. What is the problem? Oct 16 18:27:11 I mean I understand "missing styles", but how can I correct this and use graphical layout? Oct 16 18:34:46 romainguy: http://code.google.com/p/android/issues/detail?id=10554 Oct 16 18:35:45 we fixed it in 4.1.2 I believe Oct 16 18:37:35 im having redhat RPM-like hell just importing stuff to eclipse, basic projects ah!! Oct 16 18:37:35 Does google pay anyone to be here? Oct 16 18:37:48 maslen: they should if they dont Oct 16 18:37:59 is the JB system image with the SDK updated to 4.1.2? Oct 16 18:38:27 maslen: how so? Oct 16 18:39:41 romainguy_: As an official responsibility, or as part of a "determine android bugs and fix them" Oct 16 18:40:00 that's part of our jobs as engineers on the Android team Oct 16 18:40:06 it has nothing to do with this IRC channel though Oct 16 18:40:19 (fixing bugs I mean) Oct 16 18:40:25 Right. Oct 16 18:40:40 But finding them and replicating them - a channel like this could be very, very, useful Oct 16 18:40:51 not really Oct 16 18:41:05 what's very useful is bug reports with repro cases and the output of adb bugreport Oct 16 18:41:39 heh. And that level of documentation is beyond what most people here do Oct 16 18:46:04 thats the hard part Oct 16 18:46:09 isolating a vaid testcase =) Oct 16 18:46:11 valid Oct 16 18:46:27 still got my weird libdvm issues =( Oct 16 18:47:01 no REAL stacktrace or error message, just that it crashes Oct 16 18:47:22 ron_frown: have you seen this? http://razor-qt.org/ Oct 16 18:47:28 that bug report is pretty comprehensive Oct 16 18:47:34 3.2 mb text file Oct 16 18:48:05 g00s: does that sit on top of x? Oct 16 18:48:13 i dont think so Oct 16 18:48:49 if not thats pretty cool Oct 16 18:48:58 thats what linux desktop needs Oct 16 18:49:42 oh damn it, it does use x Oct 16 18:49:45 nm Oct 16 18:51:26 g00s: its still probably a good deal cleaner than most wm's Oct 16 18:51:38 I dont mind look of kde but man what a mess it is to install/use etc Oct 16 18:51:45 like 100k separate component Oct 16 18:52:06 xfce4 suffices for now for my linux boxes Oct 16 18:52:41 I have a question regarding WebChromeClient: Is there a way to disable what in opera/safari would be called Spatial Navigation ? Oct 16 18:58:40 Is this the right channel for asking questions regarding the android sdk or should I go to a different channel ? Oct 16 19:01:00 LuigiBairesDev: I believe this is the right channel. This channel is for people developing android apps. Oct 16 19:02:15 can i have different dimens for land and portrait? Oct 16 19:02:28 yes Oct 16 19:03:12 like value-large-land? Oct 16 19:03:21 *values-large-land? Oct 16 19:03:40 SimonVT: ? Oct 16 19:04:02 luxurymode Yes Oct 16 19:05:14 sweet, thanks Eric_Loves_You Oct 16 19:05:19 the res system really is beastly Oct 16 19:05:38 luxurymode Yeah. It really can do a whole load of things. Oct 16 19:05:52 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Oct 16 19:06:09 The list is also the order in which they should appear Oct 16 19:06:20 thanks SimonVT Oct 16 19:17:09 anyone know how to decipher decoded stack traces in core stuff? Oct 16 19:17:11 http://pastecode.org/index.php/view/41655513 Oct 16 19:17:24 I see what lines its saying in the stack trace Oct 16 19:17:31 but dont see an actual error Oct 16 19:20:05 ron_frown, SEGV_MAPERR is the error that triggered Oct 16 19:20:07 the crash Oct 16 19:20:09 Alright! I'm trying to handle key-presses in my game panel. Apparently MasterPanel won't let me intercept onKeyUp|Down|LongPress, but MasterActivity will. So, I decided to just handle everything in the activity, and pass it to the panel, then return a handle char. This is due to an exit dialog located in the Activity when the back button is pressed. Now, I'm trying to deny the button Oct 16 19:20:09 presses OTHER than back? No matter what I seem to try, I either pass all events, or deny all events. Does anyone know the proper way of manually handling a keypress events while allowing the activity to handle another? Oct 16 19:20:23 yeah... sounds like thats gonna be a total pita to dig into Oct 16 19:20:30 ron_frown, ypi gpt a SIGSEGV (segmentation fault) signal with SEGV_MAPERR Oct 16 19:20:36 yeah, that's the usual case with C code :) Oct 16 19:22:54 ex of keyup (in activity) : http://codepad.org/LC5ob1Ik Oct 16 19:23:17 oh wait =.= got my code mixed up Oct 16 19:24:18 here: http://codepad.org/dmer3c40 Oct 16 19:27:22 the mis-print on line 12 is not an issue, since gamePanel is set when MasterPanel is created... Oct 16 19:48:26 modification: http://pastie.org/5069488 (still not working properly) Oct 16 19:51:08 Essentially, I want to intercept all key inputs, preventing them from being handled elsewhere, except the back button? Oct 16 19:52:42 does each app get a cap/limit to how much internal memory it can use, say with an internal sqlite database? Oct 16 19:53:37 I believe the cap/limit is more of a shared % of other apps currently running? Oct 16 19:53:57 i mean storage memory Oct 16 19:54:10 not processing power Oct 16 19:54:16 Ahh, well, I don't believe so? Oct 16 19:54:40 i thought there probably wasn't Oct 16 19:54:54 Though, you don't want it to be too large, since most of the cheap android devices have low internal memory, and you require almost APP*2 free space to install? Oct 16 19:55:36 ill make sure i wont save any data that isn't needed then Oct 16 19:56:07 o.O do you mean save data variables? Oct 16 19:58:32 tech1: yes, there is a cap, and for the record, your sqlite database is not in main memory Oct 16 19:58:50 *probably not in main memory Oct 16 20:00:38 what do you guys think the best way to prevent a sqlite database from getting too big? Oct 16 20:00:49 occasionally pruning items? limiting to x amount of rows? Oct 16 20:01:06 auto-backup externally Oct 16 20:01:44 like to a web server? Oct 16 20:01:56 sure? Oct 16 20:03:07 what do you mean main memory? there is internal memory and the sd card Oct 16 20:03:41 treeleaf: the size is function of how much shit you got and how fragmented indices and other structures are Oct 16 20:04:07 treeleaf: your question is therefore a bit odd. You need a model for database size, acceptable limit for size, and strategy to bring it back down when required Oct 16 20:05:12 you can also, if it's not secure data, give the user the option to store it on the sd card Oct 16 20:05:32 in sqlite, I guess everything is varchar(n) internally where n is some large value potentially, so I guess you need average row length estimated Oct 16 20:05:34 its kind of a weird question, but im assuming that there is some kind of upper bound for how big any sqlite db should be Oct 16 20:05:38 even if it is I'd you encrypt it Oct 16 20:05:41 i read that the sd card is much slower though Oct 16 20:05:45 and when you hit that limit, what do people usually do Oct 16 20:05:46 treeleaf: take my situation for example. I use a socket connection to store and retrieve SQL data from my home server, rather than storing it on the phone. Oct 16 20:06:03 Komak57 yeah that makes sense Oct 16 20:06:55 upside, I have a lot more control over the SQL data, and what can, and cannot be called from it. downside, If I don't have a network connection, I can't recall my data. Oct 16 20:06:56 Right now im working on an app that only stores a bunch of data locally. Persisting to a server seems ideal Oct 16 20:07:06 treeleaf: I don't think there really is any particular limit like that. Databases use scalable algorithms. Doubling the size often costs only a fixed incremental amount in fetch time and such Oct 16 20:07:11 how can I fix this in my app publishing: This application is available to over 0 devices. Oct 16 20:07:29 alankila that makes sense Oct 16 20:08:08 of course databases are not magic. Indexes must exist for searches, and table scans will cost linearly in terms of size Oct 16 20:09:29 sqlite does have a vacuum command; never used it though Oct 16 20:12:37 it tends to be helpful to defragment tables that see lots of delete/insert cycles that are sort of randomly targeting rows around, and indices can also tend to half empty over time Oct 16 20:12:57 so there might be some wins to reflowing the tables and rebuilding the index trees Oct 16 20:13:08 but it's probably not very important Oct 16 20:14:41 contacts are stored internally right? and you can have thousands of contacts. so i guess you can store a lot of sqlite table entries per app Oct 16 20:15:09 whats the best way to take an existing web app and make it for android Oct 16 20:15:13 can we use existing html/css etc? Oct 16 20:17:43 I have a database in one android app which holds some 65k entries. It's not a problem Oct 16 20:17:51 frankly, I don't anticipate problems if I had 10 million Oct 16 20:18:07 sts23: native apps are always better, but there are methods of writing apps with html/css/js Oct 16 20:18:24 i see. cool ] Oct 16 20:18:27 in terms of log(n) / n*log(n) algorithms, the cost difference between 2^16 and 2^24 rows isn't large Oct 16 20:18:30 how much space a sql database takes up kinda depends on what kind of data is being saved in each of the tables >_> Oct 16 20:19:09 rows*cols*avg. data size... Oct 16 20:19:24 if it's simply account data (phone number, names etc) that's a really small amount of data... but for cases of forum posts and such that take TEXT() parameters, the size can dramatically increase Oct 16 20:19:26 sampullman: plus metadata per column*row and metadata per row Oct 16 20:19:41 that's in its own table though Oct 16 20:19:54 iirc Oct 16 20:20:05 yes native apps are better but if we are on a deadline Oct 16 20:20:13 sts23: http://phonegap.com/ Oct 16 20:20:13 can this be done with html/css if it already is working on the web Oct 16 20:21:24 sts23, you can always download the web-page and handle tags? Same method I use to log in to an account for work. Oct 16 20:23:12 we are a development company and one of our client has a strict deadline and we did the web version but they wanted to get the android one done too and we are basically out of time Oct 16 20:23:15 so i have no clue what to do Oct 16 20:23:42 we dont usually handle android apps but its an old client and they are in a bit of a problem Oct 16 20:24:12 >_> if it wasn't in the contract, I would suggest you tell them you don't have time to make it by the deadline, and give them a new deadline when the android app would be done. Oct 16 20:24:29 your options are: phonegap/similar framework, an android app wrapper for the site, or writing a native app really really quickly Oct 16 20:24:53 what is android app wrapper? Oct 16 20:25:19 yeah i did tell them but they have a launch and everything. they hired another firm for the android but that firm screwed up Oct 16 20:25:35 I doubt phonegap will let you recycle much... best load webviews in a native shell (which is what an app wrapper is, pretty much), I guess. Oct 16 20:26:38 I suppose, sts23, that you could also just use a WebView http://developer.android.com/guide/webapps/webview.html Oct 16 20:27:17 Tell your client to prepare for bad ratings, by the way. Oct 16 20:27:44 For most apps, you only get one chance to launch, if you screw up, it's money down the drain and you'll never regain an audience. Oct 16 20:28:25 android market sure isn't hurting for applications Oct 16 20:28:56 yeah Oct 16 20:28:59 the iphone app is done Oct 16 20:29:12 its ridiculous but i want to help them as they are a very old client of ours Oct 16 20:29:41 sts23: redo the UI unless your UI is very, very specific and doesn't follow iOS UI styles Oct 16 20:29:41 Not sure if you're helping them if it ruins their play store reputation :P Oct 16 20:31:26 yeah. btw how long does it take to submit to play? Oct 16 20:31:33 2 hours or so Oct 16 20:31:41 after pressing publish to it being discoverable Oct 16 20:32:03 .. and android users are tenacious, we'll hang in there as the app goes through rev's if the developers keep updating. Oct 16 20:32:31 oh ok Oct 16 20:32:43 can an app be deleted from play and resubmitted? Oct 16 20:32:50 unpublished @ any time Oct 16 20:33:03 just gotta keep working off the same package name and you can publish / unpublished as you likke. Oct 16 20:33:09 ok cool thanks Oct 16 20:33:24 in android 4.1, i'm able to override the back navbutton but not the other two… is there a way? Oct 16 20:33:28 then wont people abuse that to reset bad reviews? Oct 16 20:33:29 though, you could also update the app and submit the changed version? Oct 16 20:33:44 yeah i guess Oct 16 20:33:45 won't reset the reviews Oct 16 20:33:53 still keep the same listing as long as you have the same package name Oct 16 20:34:03 ultra- I'm working with that just this moment. Having a little difficulty to say the least >_> Oct 16 20:34:04 ahh makes sense Oct 16 20:34:06 if you switch package name you can switch listings / reviews etc. but your not carrying any audience w/ u at that po int. Oct 16 20:34:27 Komak57: i'm unable to event print the keycode for the other two, so i'm wondering if it's not possible Oct 16 20:35:44 did you try onKeyShortcut? Oct 16 20:36:21 ultra- I'm getting input on everything except the home button using onKeyDown, but I'm having difficulty letting the back button proceed with onBackPressed() and disabling everything else Oct 16 20:37:00 just return true for everything else Oct 16 20:37:27 you can't catch the home or recent apps keys Oct 16 20:37:36 that's crap Oct 16 20:37:51 seriously that's just garbage… wtf Oct 16 20:38:21 i want the user to have to tap once to exit 'lights out' mode, then if they really wanted to hit the button they press it again Oct 16 20:38:47 ultra-: user must be in control of the home button at least, so that there's always a way out of malfunctioning or even malicious application that isn't "take battery out" Oct 16 20:38:54 ultra- I'm sure if you can intercept the onPause(), pass an onKeyDown and onKeyUp for the home key Oct 16 20:40:41 i'll try it Oct 16 20:41:02 I can't for the life of me figure out how to delete a draft from the new play store 'All applications' listing Oct 16 20:41:07 anyone have any tips? Oct 16 20:42:12 you have to call super.onPause or it bombs Oct 16 20:47:23 alankila: you can just put an alternate 'home screen' in your app with an intent-filter and effectively mitigate the users attempts to return to it :P Oct 16 20:47:40 i guess the user's just gonna have to be careful Oct 16 20:48:17 whta is this thing the user needs to be 'careful' of? Oct 16 20:49:15 the app is for music performance Oct 16 20:49:23 it uses the entire screen Oct 16 20:55:02 Still trying to intercept the onPause(). Seems to crash my phone if it doesn't super.onPause() Oct 16 20:57:59 yeah same here Oct 16 20:58:10 any code after that doesn't get run, of course Oct 16 20:58:19 and any code before it doesn't really matter since it's gonna pause anyway Oct 16 20:58:37 I can handle the onKey inputs, but I can't disable it from pausing... Oct 16 20:59:21 do you know how to force the menu button onto the navbar without changing the min sdk version to <11? Oct 16 21:01:29 the home button calls the onPause, which REQUIRES a super.onPause, or it quite literally crashes Oct 16 21:02:07 yup Oct 16 21:02:35 i suppose it does make sense that you can't take control over everything, but it'd be nice in some cases Oct 16 21:03:45 i just want the user to have to tap to make the buttons show (exit 'lights out' mode), then tap again to confirm Oct 16 21:03:59 and i think that behavior would make more sense by default if it's in 'lights out' mode Oct 16 21:04:47 the BBC iPlayer app does that Oct 16 21:05:03 really? Oct 16 21:05:04 so then how? Oct 16 21:05:41 i'm able to turn the buttons into dots with this: setSystemUiVisibility(View.STATUS_BAR_HIDDEN); Oct 16 21:06:42 hmm Oct 16 21:06:51 maybe I'm misrememberng Oct 16 21:07:01 it doesn't do it on my n7 Oct 16 21:07:15 I think it did on my previous gingerbread Oct 16 21:07:29 sorry Oct 16 21:08:07 also, can YouTube stop being so retarded. Oct 16 21:08:22 I want to watch videos lying down. Oct 16 21:08:42 stop damn flipping to the comments/... screen Oct 16 21:09:23 ultra-, got it intercepted, but I apparently can't intercept in fullscreen Oct 16 21:09:37 figures Oct 16 21:09:41 mine's in fullscreen Oct 16 21:09:56 same here Oct 16 21:12:12 not if you rotate it to portrait Oct 16 21:16:44 ultra-, so I got it disabled in fullscreen, but here's the thing >_> I'm not getting any key inputs anymore XD Oct 16 21:18:57 how'd you pull that off? Oct 16 21:22:37 in my original activity, onAttachedToWindow() I added this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); Fault? Seems home works if a dialog was opened, but the dialog doesn't show Oct 16 21:22:51 LOL of the day, courtesy Android docs: http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION Oct 16 21:23:07 'Also, upon completing the dispatch, the object must make a cup of tea, return it to the caller, and exclaim "jolly good message old boy!".' Oct 16 21:24:40 Someone was not happy about implementing this. Oct 16 21:27:10 the KEYGUARD essentially mimics the state your phone is in when you just powered on (before unlocked) Oct 16 21:27:25 LIKE_TRANSACTION is funny to: "There is no response returned and nothing about the system will be functionally affected by it, but it will improve the app's self-esteem." Oct 16 21:29:59 So I suppose if I don't use any dialogs, I could intercept the Home key Oct 16 21:30:25 freeone3000: I suspect it was the opposite Oct 16 21:31:17 Komak57: To make the phone in a keyguard state? Home button doesn't always do that. Oct 16 21:32:50 freedomcaller, the KEYGUARD_DIALOG state lets me change the functionality of the home key, but at the cost of any dialogs Oct 16 21:34:06 freedomcaller, the KEYGUARD state allows the same, but at the cost of fullscreen capabilities Oct 16 21:34:07 the setType KEYGUARD method does not work on Android 4.0 or higher Oct 16 21:34:44 so... I set max framework to < 4.0? Oct 16 21:35:56 i think a media player would benefit more by supporting Android 4.0 and higher than by blocking the home button Oct 16 21:36:45 I'm making a game XD I don't really require the functionality, but it is pretty handy trick to know. Oct 16 21:38:27 ah i thought i saw something about a media player before. i especially would not want a game blocking my home button Oct 16 21:39:46 =.= I think you fail to see the purpose in "testing to learning" and refusing to read "I don't really require the funcitonality" Oct 16 21:41:00 I don't think that it works at all in 4.0+. Oct 16 21:41:01 But, being allowed to prevent the player from exiting the game durring a crucial moment, or durring a live networking game... Oct 16 21:41:16 no, blocking the home button is alwasys a bad idea Oct 16 21:41:34 Komak57: Being able to prevent the player, *against their wishes*, from exiting the application? Oct 16 21:42:21 Durring a live networking game match? Oct 16 21:42:25 yes Oct 16 21:42:42 Assume whatever the user's doing is more important, because they think it is. Oct 16 21:43:19 every android user knows/expects the home button will take them to their home screen Oct 16 21:43:27 so full disclosure, i'm the developer of WidgetLocker which does abuse APIs to block the home button to replace the lockscreen. however, from experience, it's a pain in the ass to develop and maintain and i wouldn't recommend any developer bother with it unless they have a great need. you won't be able to have a consistent experience across different os versions or even manufacture skins Oct 16 21:44:09 @Komak57 you're @ ingthe wrong person Oct 16 21:45:34 or even forcing a popup to ask the user if they're sure they want to leave >_> Oct 16 21:47:11 Komak57: You can override the back button to do that, sure. That's acceptable. Oct 16 21:47:28 Komak57: Home button is home screen, period. It's key to multitasking on 4.0+. Oct 16 21:47:55 anyone used appfog? Oct 16 21:48:50 I understand the home buttons necessity to prevent malware, but honestly, as long as there's a semi-convenient way out, preventing the home button from directly leaving durring certain key scenarios sounds fairly applicable Oct 16 21:50:20 the home button should not be intercepted for any reason Oct 16 21:50:35 it WOULD be abused. Oct 16 21:51:15 XD of course it would Oct 16 21:52:02 to be fair, the OP who asked about the home button had a legitimate reason to want to block it, as impossible as it is to do so. Oct 16 21:52:13 his app was for live performers Oct 16 21:52:33 you dont want to hit it by accident and lose your app during a performance Oct 16 21:52:36 any devs from romania here? pm me if so (if you want to ofc :)) Oct 16 21:53:38 Well, I did find a way... and to do it in full-screen on lower android OS's at the cost of dialogs... Oct 16 21:54:02 what was your solution Oct 16 21:54:08 for a case where the user really wants to do something special to block the home button they could set the app as the default home screen. the UX for this kind of sucks and it definitely requires user-interaction, but it's officially supported. Oct 16 21:54:19 there's some Toddler Lock like apps that use that method Oct 16 21:54:21 ==kevinb Oct 16 22:06:18 I have Listview. Within Listview I need to place an item. Image on the left, next to image two rows, first row title, below the title date Oct 16 22:06:27 what is the best apporach Oct 16 22:06:27 ? Oct 16 22:08:07 LinearLayout for your row (horizontal), inside it the imageview, then a vertical linearlayout with layout_weight="1", then inside that, you put the 2 lines. Oct 16 22:08:16 ? Oct 16 22:08:41 No no no, don't put a ListView in a ListView row :) Oct 16 22:08:51 LisItem? Oct 16 22:09:14 reuf: you'll need to make your own listadapter for it. Oct 16 22:09:24 any example Oct 16 22:09:41 Lots Oct 16 22:09:57 link]\ Oct 16 22:10:06 really? Oct 16 22:10:08 a link? Oct 16 22:10:17 -pinches nose- i'm going for a smoke Oct 16 22:10:45 im on it: https://www.google.com/search?q=android+custom+listview+example Oct 16 22:11:08 sampullman: thanks Oct 16 22:11:17 ... Oct 16 22:11:44 would have gotten extra points for a lmgtfy link ;) Oct 16 22:12:07 i think that's slightly more pretentious than what i did Oct 16 22:12:58 if the answer to the question appears on the first page (let alone the first link) of a query... I believe it's entirely justified. Oct 16 22:13:30 i guess that's also more along the lines of 'teach a man to fish' Oct 16 22:13:47 I just got a job offer on Linkedin Oct 16 22:13:49 *Minimum of 3 yrs Android application development. Oct 16 22:13:53 teach a man to google, and he might not bother you on irc anymore Oct 16 22:13:56 Chainfire: how is your day today Oct 16 22:14:02 haha exactly sampullman Oct 16 22:14:23 I wonder how many candidates they'll find with a minimum of 3 years Android application development Oct 16 22:14:30 Well there is this problem with googling android exaples Oct 16 22:14:40 you can lead a fool to knowledge, but you cant make them think. Oct 16 22:15:08 that's a good one Oct 16 22:15:11 every nitwit has now made a tutorial and gives a shity example - I'm asking if you know top notch state of the art example and link to it - i asked for the best approach Oct 16 22:15:14 did not ask for any approach Oct 16 22:15:22 i can google all kindsa a shit on the internet Oct 16 22:15:29 im looking for some quality example Oct 16 22:15:39 so if you have programmed one dont become an ass Oct 16 22:15:53 the first five/ten results on that page are totally adequate Oct 16 22:16:03 * Jug6ernaut blames chainfire Oct 16 22:16:06 i asked for best approach Oct 16 22:16:07 are they the best/. Oct 16 22:16:08 ? Oct 16 22:16:31 there is no such thing Oct 16 22:17:15 well, in this case there sort of is Oct 16 22:17:17 well if you spread out all examples across normal distribution, you can definitly point out top 10 Oct 16 22:17:26 well Oct 16 22:17:26 % Oct 16 22:17:33 Orii: yea. you just need to port pf to Linux first. Oct 16 22:17:50 this is pretty basic stuff, if you understand the principle, adapting it to your own needs is rather trivial Oct 16 22:18:00 sorry, wrong channel Oct 16 22:18:05 most of the examples are adequate, as they show you how to do it Oct 16 22:18:15 none of them is going to be exactly what 100% fits your need Oct 16 22:18:20 (probably) Oct 16 22:19:21 its like asking how best to do the dishes. Oct 16 22:19:58 welllll, I'm on ConnectBot now on an MK802 with a physical keyboard Oct 16 22:20:09 but it's sort of tough to use irssi when Ctrl doesn't work in the keyboard Oct 16 22:22:53 poo0p Oct 16 22:23:08 ...disregard that, someone else also found the keyboard Oct 16 22:23:16 rfvgvbb] Oct 16 22:23:17 \ Oct 16 22:23:24 siiiiigh Oct 16 22:23:33 * Hodapp moves to another channel Oct 16 22:50:22 Hi, I can't get my Emulator to boot up right, please help :) Oct 16 23:19:58 with a DataSetObserver, is there any way via onChanged() to tell *what* changed? .. it seems rather pointless to differentiate between onChanged() and onInvalidated(), if onChanged won't tell you specifically how it changed Oct 16 23:20:32 at least for my adapterview, it seems like it'd have to entirely rebuild itself for both cases. Oct 16 23:24:38 tophyr: presumably you only have a few rows visible at a time, for sake of argument let's make it 10. So what happens is that the listview checks if there's still enough rows to maintain current position and if yes, it refreshes the visible views from the adapter. It is no different to scrolling, really, except a few more views might get refreshed. Oct 16 23:25:16 so I guess the adapterview doesn't really even need a means to tell listview what changed, because the cost of refreshing the contents of the views shouldn't be that hard to begin with Oct 16 23:30:33 hmm, does this new google Supersonic db engine work on android ? Oct 16 23:32:29 oh, data is kept in memory Oct 16 23:36:47 alankila: well, continuing that listview example.. if the entire adapter is invalidated, i would imagine that the listview would do the same thing: check to see if the length is sufficient to maintain current position, and if so reload the displayed views. no? Oct 16 23:37:51 tophyr: the invalidation was supposed to mean that the dataset isn't coming back Oct 16 23:38:04 onchange is when the dataset changes, invalidation is something else. I don't know what the real difference is Oct 16 23:38:10 ahh. much more sense. Oct 16 23:38:27 so basically onInvalidate should probably do similar to setAdapter(null) Oct 16 23:41:35 * alankila shrugs Oct 16 23:42:43 read the source, or ask someone who knows. I confess ignorance. I read the javadoc for oninvalidate which suggests some opaque difference in behavior, that's all. Probably it does some more thorough cleanup somewhere, but it's bad taste to expose two methods which seem to have the same purpose Oct 16 23:43:41 "it seems rather pointless to differentiate between onChanged() and onInvalidated()" Oct 16 23:43:52 onChanged() means something was added, removed or modified Oct 16 23:44:02 onInvalidated() means the entire dataset is now invalid and should not be used anymore Oct 16 23:44:11 (for instance you lost network connection, the database went away, etc.) Oct 16 23:44:18 they server different purposes Oct 16 23:44:28 really. I don't see why the listview cares. Oct 16 23:44:46 because if the adapter is marked invalid ListView must not call it again Oct 16 23:44:47 in both cases the listview has to ask adapter to discover what is there Oct 16 23:44:52 no Oct 16 23:45:04 after receiving an invalidate ListView must not talk to the adapter again Oct 16 23:45:14 Oh, fine. Oct 16 23:45:21 it will just empty itself Oct 16 23:45:24 so it's really sort of like just doing listView.setAdapter(null) ? Oct 16 23:45:30 yes Oct 16 23:46:40 well, that means I'm still not going to call the method. I'll rather just set the adapter to null if I don't mean it to be used anymore. Oct 16 23:47:06 yes that's fine Oct 16 23:47:18 invalidate is here mostly so that the adapter itself can inform ListView it's not valid anymore Oct 16 23:47:30 Hey does anyone know of a good 3d game engine with physics that funs on mac osx/pc/linux/android/ios? I was going to use JMonkey but that doesn't work for ios Oct 16 23:47:46 unity? Oct 16 23:48:07 Oh and forgot to mention I want it free and prefferably open source Oct 16 23:48:31 so not unity Oct 16 23:49:17 Urthwhyte: thanks though Oct 16 23:49:54 romainguy_: i've got a diff question now.. i took alankila's advice and started reading thru ListView and AbsListView.java. AbsListView.mAdapter is "package" private, but AbsListView.setAdapter(...) doesn't actually set it. is that intentional? Oct 16 23:50:30 zymaster: I don't think there exists a proper meta-platform that can work on all other platforms. Write the code in C++ and OpenGL and generate shims required to run the code on other platforms. It's not pretty, but it is what will probably work best in practice. For higher effort, of course. Oct 16 23:50:30 it seems impossible for a custom AbsListView to access AbsListView's adapter functionality without simply duplicating it outright. Oct 16 23:51:01 tophyr: it's an annoying quirk Oct 16 23:51:13 tophyr: AbsListView cannot be subclassed outside of the framework Oct 16 23:51:20 alankila: ok ill just use JMonkey and then rewrite for iOS. Oct 16 23:51:23 it's on our long list of todos to clean that up Oct 16 23:51:23 ah Oct 16 23:51:26 well that's good to know Oct 16 23:52:37 I don't actually recommend reading android source seriously Oct 16 23:52:38 sorry I know it's annoying Oct 16 23:52:44 alankila: why? Oct 16 23:52:45 say i wanted to subclass it anyway.. am i looking at a handful (half dozen? dozen?) of features/reqs that'd break, or am i looking at a much larger list? i'm assuming it's mostly compile-time stuff like that, as well? Oct 16 23:52:51 it takes too long and doesn't really result in gaining much insight. It requires a higher effort than casual reading Oct 16 23:53:04 i'm comfortable enough hacking my way through it with reflection and then submitting a change to AOSP later Oct 16 23:53:10 tophyr: you'd be better off copy/pasting :) Oct 16 23:53:15 humm, k Oct 16 23:53:15 each time I try to discover how something simple works I'm ending in a maze of indirection Oct 16 23:54:28 i like reading the source to figure out what's going on in specific cases, but yeah in cases like this ("how to write a proper, solid, conceptually-derived-from-AbsListView widget") it can be a pain lol Oct 16 23:54:35 whether the code is calling another process over the binder stuff, or is actually native, or is just endlessly delegated around in the class hierarchy, or all three... Oct 16 23:54:36 although it'd certainly be more of a pain w/o access to source, ultimately Oct 16 23:54:38 bah Oct 16 23:55:11 i am opening an activity up from a notification using a pending intent. I set the edittext of the activity by bundling a string with the intent and then in the activities oncreate() I just get the bundled string and set edittext. this works. however if the activity is already open then the activity which was already open comes WITH the edittext set already (i guess since oncreate() is not being called, since I am using the singletask flag Oct 16 23:55:14 )...how can i get round this? Oct 16 23:55:49 eh, i kinda like following that indirection. dug into power management stuff until it eventually led me down into kernel code, at which point i finally said "maybe i'm taking this a bit far" Oct 16 23:56:46 tophyr: I remember I once tried to work out how the audio routing works on android Oct 16 23:57:01 I think I was 7 layers deep until I found some AudioPolicyManager or some such which finally did it. Oct 16 23:57:05 romainguy_: is there a publicly available list of todos/bugs on that AbsListView topic? since i'm digging around in this anyway, it might be neat to get my feet wet with an AOSP contribution. Oct 16 23:57:12 alankila: lol Oct 16 23:59:03 the simple fact of the matter is that if you do a lot of layering and proper separation of concerns, well, you end up with a lot of layers. The alternative, of course, is difficult-to-follow spaghetti. Oct 16 23:59:16 My personal preference is for compact spaghetti though Oct 16 23:59:58 tophyr: nothing publicly available unfortunately Oct 17 00:00:18 but feel free to drop an email on android-contrib and I'll forward it to the guy who's now in charge of ListView Oct 17 00:00:23 you can also make a lot of layers but fail to follow any intelligent plan with them, resulting in both lots of layers and even more spaghetti. At some point it is so incomprehensible that the design ossifies and everybody who works with it just routes around it. It's called the lava antipattern. Oct 17 00:00:30 romainguy_: will do, thx Oct 17 00:00:36 but I can tell you that we won't be doing anything to AbsListView in the near future :) Oct 17 00:00:53 * tophyr shrug Oct 17 00:00:57 gotta start somewhere Oct 17 00:01:07 might as well be with shit i'm already doing lol Oct 17 00:01:10 what I mean is that we have no plan to change it on our side for now Oct 17 00:01:20 not that we don't want contributions :) Oct 17 00:01:53 that's probably better for me frankly, don't have to work around someone else taking it apart at the same time as me heh Oct 17 00:02:34 was my question clear enough guys? (hope i articulated my problem well enough!) Oct 17 00:03:09 brx_: you need to implement onNewIntent Oct 17 00:03:16 brx_: I was almost going to say that I think there was some onIntent or such activity method... or was it onNewIntent Oct 17 00:03:19 think that's what it's called Oct 17 00:03:25 I have never touched it myself Oct 17 00:03:31 ahh i see Oct 17 00:03:54 that sounds pretty self explanatory but i may be back for more help, thanks Oct 17 00:04:12 I don't remember if onNewIntent was always called, or if it would be called as alternative to onCreate Oct 17 00:04:35 onNewIntent is called when onCreate isn't Oct 17 00:04:37 so when activity is brought up from new intent, that method fires either always, or when onCreate doesn't fire. Oct 17 00:04:55 ok cheers guys Oct 17 00:05:00 figures. IMHO the wrong design decision, but whatever. Oct 17 00:05:18 agree, but it is what it is Oct 17 00:05:26 it necessiates making a third method that sets up view state which is separate from both onCreate and onNewIntent Oct 17 00:07:05 at least it's called onNewIntent rather than onIntent, though Oct 17 00:07:44 but it would probably have been simpler to define it as onIntent, make it run after onCreate has run when intents are received, and not care if it's new activity or whatever Oct 17 00:08:17 romainguy_: posted and awaiting moderation Oct 17 00:08:18 just 2 methods instead of 3. I like fewer methods, and don't see immediate downside. Oct 17 00:08:35 Yay, debate time. Oct 17 00:08:40 in a bit Oct 17 00:10:19 alankila: wouldn't be hard to create an intermediate that does exactly that ;) @Override public final void onCreate(...) { onCreateActivity(...); onIntent(getIntent()); } @Override public final void onNewIntent(Intent i) { onIntent(i); } public abstract void onCreateActivity(...); public abstract void onIntent(Intent i); Oct 17 00:10:46 I know what you mean, but I don't play these games. Oct 17 00:11:02 Platform is best used in its faulty form than trying to fix it, sadly. Oct 17 00:11:24 * tophyr isn't shy about hacking things up to make them behave/present like he wants Oct 17 00:11:38 obviously... thus my q to romain about "better to copy or reflect?" Oct 17 00:11:53 I can't keep multiple differing behaviors for nearly the same code straight in my mind. I need just one behavior, no matter how broken as long as it's workable. I can quibble over aesthetics, but I would never try to fix it without redefining it at android upstream level Oct 17 00:12:52 if android changes, I'd drop support for everything before that in a heartbeat, because I mostly write code for myself and I always run the latest androids anyway :-p Oct 17 00:13:13 though there's some minor 4.1 update out that I'm not running yet Oct 17 00:13:29 Hello, can I use Relative Layout to layout items inside a View class ? Oct 17 00:14:08 R4md4c: I tried and got a force close Oct 17 00:15:30 onIntent()/setintent() worked a treat Oct 17 00:15:49 shmooz: hmmm, so I need to draw the view manually using a canvas ? Oct 17 00:16:27 the layout that wraps it should control the way it draws stuff inside Oct 17 00:17:24 or positions stuff, canvas gives you control of where to draw like an image Oct 17 00:17:42 R4md4c: are you still figuring out your solution for that circular dial thing? Oct 17 00:18:01 any reason why my framelayout + rotateanimation and 2 images suggestion doesn't work for you? Oct 17 00:18:40 fnord`: I tried to use framelayout but I couldn't get them overlapped, they are always under each other Oct 17 00:18:47 R4md4c: it's the order Oct 17 00:19:04 eh... framelayout should overlap them Oct 17 00:19:14 R4md4c: do you have the code you tried? Oct 17 00:19:39 ok my problem is when VideoView can't load the stream because internet is disconnected, it eventually pops up a dialog box saying 'Sorry this video cannot be played' which I would like to detect and have the app act accordingly, but I don't know how Oct 17 00:19:54 RelativeLayout without any layour rules operates pretty much identical to a FrameLayout btw if you're looking for extra features. Oct 17 00:20:01 layout* Oct 17 00:20:27 fnord`: http://pastebin.com/Zaija5RL here is my layout file Oct 17 00:21:00 I wrapped the myVideoView.start() in a try/catch and tried to put code within the catch but theres no effect Oct 17 00:21:06 fnord`: I guess it will be totally wrong as I am very new to android Oct 17 00:25:42 R4md4c: i am unsure what you did wrong Oct 17 00:25:56 but I don't think android:orientation is a valid attribute for FrameLayouts Oct 17 00:26:09 i modified your code to prove it overlaps Oct 17 00:26:11 http://pastie.org/5070602 Oct 17 00:26:17 try that in your layout editor Oct 17 00:26:24 then retrofit it to use imageviews Oct 17 00:26:35 once you get the two images on top of each other, you need only to rotate the top one Oct 17 00:26:46 I did this before for a speedometer type animation Oct 17 00:27:42 does anyone know just why ADT on Juno can't run without old compat lib? Oct 17 00:27:42 note that android:gravity centers the text *within* the textview Oct 17 00:28:22 p_l: as in the older version of the android compatibility library? Oct 17 00:28:31 I didn't even notice this Oct 17 00:28:46 as in "can't make a new project without version 8, but version 10 is current and what SDK manager installs" Oct 17 00:29:00 can't make *any* new project? Oct 17 00:29:25 fnord`: Can't use "Android Application Project" template Oct 17 00:29:40 i.e. it won't let you past final screen complaining about not finding the compat lib Oct 17 00:29:53 p_l: I have 10 installed and I haven't noticed this Oct 17 00:30:12 fnord`: maybe you had 8 previously and the file remains Oct 17 00:30:49 i'll take a quick look Oct 17 00:33:02 p_l: at a glance, it looks like old revisions of the support library are not retained after an update Oct 17 00:33:22 is this a verified bug? Oct 17 00:33:33 p_l: what version of ADT are you on? Oct 17 00:33:38 20.3 Oct 17 00:33:49 anyway, I suspect it's eclipse related Oct 17 00:34:16 which version of eclipse you guys recommend? Oct 17 00:34:38 3.x Oct 17 00:36:08 Indigo? Oct 17 00:36:21 I seem to recall this bug, but I thought it was fixed. Possibly in R21 preview Oct 17 00:38:13 Classic or "for java devs"? Wondering which will take less problem to get NDK working as well Oct 17 00:42:02 I've been using classic Oct 17 00:42:05 fnord`: do I have to convert an ImageView to a Bitmap to rotate it ? Oct 17 00:42:19 R4md4c: no, an ImageView can be rotated Oct 17 00:42:26 Just not permanently. Oct 17 00:42:41 so after your "dial" is positioned over the selected icon Oct 17 00:42:43 swap the image Oct 17 00:42:56 to one that appropriately points to the current ico Oct 17 00:43:54 I am trying to rotate the segment, using matrix.postRotate(90) then imageView.setImageMatrix(matrix) but it doesnt work Oct 17 00:44:56 p_l: eclipse 3.8.2 is your best bet Oct 17 00:45:06 well, as far as eclipse goes ;) Oct 17 00:45:12 R4md4c: perhaps you should take my suggestion and use RotateAnimation instead then Oct 17 00:45:38 oopse, 3.8.1 Oct 17 00:49:03 g00s: I only see 3.7 Oct 17 00:49:14 no, 3.8.1 ;) Oct 17 00:49:21 you are not looking hard enough Oct 17 00:49:23 * p_l thinks he should drop this adventure in eclipse land and install intellij Oct 17 00:49:28 perhaps Oct 17 00:49:46 uh oh, apple mac java update Oct 17 00:50:46 My Admob click through rate fell off a cliff today. I bet its related to the Android developer console changes. Oct 17 00:51:12 fnord`: RotateAnimation animation = new RotateAnimation(0, degree); Oct 17 00:51:12 src.setAnimation(animation); Oct 17 00:51:12 animation.start(); Oct 17 00:51:23 is this the right way to do it ? Oct 17 00:51:44 as it is not working Oct 17 00:51:54 R4md4c: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/YJ9qUASA_nk Oct 17 00:53:56 here's how I did it https://github.com/tom-dignan/android-cpumonitor/commit/8af3735c25aa406dc517ef1f255fb313b48428b0 Oct 17 00:54:13 scroll all the way to the bottom to see where I actually call RotateAnimation Oct 17 00:55:15 that's a nasty lookin' commit Oct 17 00:55:25 hi all, I'm trying to get the date from a date picker dialog and I can't figure out what to do Oct 17 00:55:38 yeah, I wasn't exactly being professional on that one Oct 17 00:56:30 It now rotates but it reset back to its original position after the animation finished :S Oct 17 00:56:40 yeah, so here's what you do Oct 17 00:56:41 I'm using this dialog to be more specific http://developer.android.com/guide/topics/ui/controls/pickers.html Oct 17 00:56:55 R4md4c: you rotate it just enough degrees to be over the new position Oct 17 00:57:04 R4md4c: then, you *swap* the image to one that points to the new position Oct 17 00:57:18 you'll need to save the outer 'dial' image to 8 states, one for each icon Oct 17 00:57:56 any android developer want to take on a project? Oct 17 00:58:02 sts23: pm Oct 17 00:58:32 fnord`: I am really sorry but I dont understand the *swap* line Oct 17 00:58:49 Can anyone help me with my date dialog issue? Oct 17 00:59:00 R4md4c: you can also just call setFillAfter(true) Oct 17 00:59:15 although there are limitations to that method Oct 17 01:01:11 hi guys, im creating a socket connection and when my server restart i cant reconnect. can anyone give any idea?! Oct 17 01:01:55 sampullman: Thanks! that worked, but what are the limitations ? Oct 17 01:02:11 clicks get registered at the original location of the view Oct 17 01:02:41 R4md4c: bbl... seems like sampullman has got you covered for the time being though Oct 17 01:03:12 also, you have to keep track of the location, and start the animation from the previous end point Oct 17 01:04:30 Hm, I need to post some form data to a URL. Google is showing me a lot of options, I see a blog post by Tim Bray where he says the latest and greatest is HttpUrlConnection, recommended for Gingerbread or higher. Oct 17 01:04:57 My question is... is >= gingerbread a good chunk of the market? Oct 17 01:05:07 yes Oct 17 01:05:30 Okay, HttpURLConnection it is! Oct 17 01:05:32 thanks! Oct 17 01:06:32 there are new phones with 2.1 still Oct 17 01:06:55 SpeedEvil: really ? Oct 17 01:07:08 puff http://developer.android.com/about/dashboards/index.html Oct 17 01:07:12 29.99 unsubsidised price (ukpounds) Oct 17 01:07:27 treeleaf: Thanks. Oct 17 01:07:30 no touchscreen, accelerometer, ... Oct 17 01:07:42 so its android + dpad ? Oct 17 01:08:00 qwerty Oct 17 01:08:30 http://www.ebay.co.uk/itm/Unlocked-Single-Sim-A-GPS-Cell-Phone-Android-2-1-Qwerty-keyboard-3G-Mobile-New-R-/260987200742?pt=UK_Mobile_Phones&hash=item3cc40ca4e6 Oct 17 01:09:19 fnord`: Is there toCenterOf attribute in relative layout ? Oct 17 01:27:29 so, is it possible to put out a new 2.1 phone today and still have access to the android market ? Oct 17 01:27:42 dunno Oct 17 01:27:59 it may be pointed at the Chinese market Oct 17 01:28:48 I was looking at low end phones, as I was wondering about a sip phone to replace my DECT handsets around the house Oct 17 01:29:33 and n the process found a wacky UK mobile provider. Oct 17 01:30:01 someone asked earlier but relative layout has centerinparent = t/f attr Oct 17 01:30:05 that will let me hook my mobile phone directly to my sip account. Oct 17 01:31:03 it has no normal 'number' Oct 17 01:42:52 SpeedEvil: which provider? Oct 17 01:43:17 p_l: it's sim free Oct 17 01:43:21 oh Oct 17 01:43:27 Andrews and Arnold Oct 17 01:43:42 http://www.aa.net.uk/telecoms-mobile-data.html Oct 17 01:43:57 wacky mobile products Oct 17 01:44:34 sounds interesting Oct 17 01:47:22 hi. is there an easy way to find out which git repo a particular part of the android tree is in? Oct 17 01:47:41 ie. right now I would like to fetch the repo with android.webkit.WebView api Oct 17 01:52:12 newsham: frameworks/base Oct 17 01:53:00 is there an easy way to find that out if you didnt know ahead of time? Oct 17 01:55:10 newsham: just repo sync everything :) Oct 17 01:55:38 true but not always practical for me. wish i was on a goog backbone :) Oct 17 01:56:00 So, my project will ultimately be targeting a cross-compiler, however…I was wondering if there was a readily available GCC toolchain package available for Android 4.1+? I tried gcc4android, but it is extremely incomplete. Having a locally installed toolchain will make development efforts much easier on my end. Oct 17 01:56:47 sbahra: cant you use the compiler that comes in the NDK? Oct 17 01:56:50 newsham: I do it from home over VPN it's not so bad Oct 17 01:57:03 newsham: That's a cross-compiler as far as I can tell. Oct 17 01:57:27 romain: i've synced the whole tree from scratch a few times from here.. usually half a day ordeal for me Oct 17 01:57:28 newsham: This is what I'm doing, but having a local copy of gcc on the Android device would make my life much easier and will enable to code on the go much more easily. Oct 17 01:57:48 sbahra: oh, you wanted a native compiler that doesnt cross compile? my mistake Oct 17 01:58:06 Yeah. Oct 17 01:58:13 Sorry, in this case, I'm on an armv7. Oct 17 01:59:06 (Processor : ARMv7 Processor rev 4 (v7l)) Oct 17 01:59:31 what 'just' GCC can do on the phone is very limited Oct 17 01:59:40 it works for terminal apps Oct 17 02:00:19 SpeedEvil: Yes, this is a library. Oct 17 02:00:55 SpeedEvil: Can be considered a terminal application for all intents and purposes. Just need to be able to port it to ARMv7 (and in this case, also Android) and run a bunch of unit tests and microbenchmarks. Oct 17 02:06:15 :-) Oct 17 02:06:39 What is ":)"? Oct 17 02:07:13 I guess I'll stick to the NDK, it isn't that big of a deal. I can write a little framework to streamline my work. Oct 17 02:07:36 Thanks. Oct 17 02:08:48 Hrm. Why is that Ctrl doesn't go across properly in ConnectBot from a USB keyboard? Oct 17 02:09:22 :) is a "word" of the future when the form of prose changes so people can more quickly communicate isomorphic meanings Oct 17 02:09:43 Hodapp: there are various weird issues in physical keyboards Oct 17 02:10:04 at least for everything outside of [A-Za-z] Oct 17 02:10:15 and [0-9] Oct 17 02:11:29 oh god plz Oct 17 02:11:35 it looks like regex and my head is spinning already Oct 17 02:11:38 that's unfortunate, it should be rather simple Oct 17 02:12:14 p_l: any magical way to get these characters to send across? Oct 17 02:12:39 find out what the ctrl key is actually sending and rebind that value Oct 17 02:12:41 or something Oct 17 02:14:11 sampullman: What is the mechanism for this rebinding? Oct 17 02:14:15 keymap Oct 17 02:14:43 keymap, is that a command? Oct 17 02:15:20 no, the mapping of ascii key values to commands Oct 17 02:15:45 you..might have to go into the source if ConnectBot doesn't provide its own mechanism Oct 17 02:16:21 well, it's not clear to me whether ConnectBot is the problem or not Oct 17 02:17:20 I'd say the problem is input layer not prepared to work with such stuff Oct 17 02:20:28 I'm impressed, though, with how usable Android is with a mouse and keyboard Oct 17 02:20:33 on an MK802 at that Oct 17 02:21:27 Anyone know what the device is called that was used to communicate in days of old ... - .. - ... ? Oct 17 02:21:38 The telegraph? Oct 17 02:21:52 Ahh thanks thought so Oct 17 02:24:40 hmm, yeah, ConnectBot can send Ctrl and such but I wonder if it has any capacity to receive them other than via on-screen keyboard Oct 17 02:24:41 Wow you can now promote your facebook posts @ 7.00 USD Oct 17 02:27:02 fuck that noise Oct 17 02:27:05 What a cop out totally diametric to idea of social media Oct 17 02:30:19 okay, orientation sensor makes almost no sense on this MK802 Oct 17 02:30:27 but it has one... Oct 17 02:43:00 Hodapp, I want an AndroidBook! Oct 17 02:43:11 whats an MK802? Oct 17 02:50:30 mrenouf: look it up, liliputing has some good articles I think Oct 17 02:50:38 I got mine for $50 Oct 17 02:57:05 http://dx.com/c/laptops-tablets-1499/netbooks-laptops-1408 Oct 17 02:59:03 Anyone know how I can get date picker dialog information back to my activity? **** ENDING LOGGING AT Wed Oct 17 03:00:01 2012