**** BEGIN LOGGING AT Tue Jun 02 02:59:57 2009 Jun 02 03:21:30 Can you please tell me where is the code for the back bottom in the emluator handling? Jun 02 03:30:46 I have a ListActivity in my application. I am trying to add a long press context menu to my items. I can easily do this if the items in the list are simple. I want to put some text along with a checkbox. When I setup my list like this, the long press context menu no longer works. If someone can point me in the right direction it would be much appreciated. Jun 02 03:36:36 Yay, I found button. Not that I really thought button would great example of "Java code" as you described it, but I knew it would lead me to the rest of the framework where I do hope to find good java code. Jun 02 04:36:53 is there a way to use an XML resource in an ArrayAdapter? Jun 02 04:39:00 so I'm new to java and android but am very motivated with an application I am working on. Wondering if I could get some pointer to move from one screen to the next Jun 02 04:39:36 if you wanted to show another activity you would need to use an intent to start that activity Jun 02 04:39:58 like how to get from one ui screen to next. Any links to examples? Jun 02 04:41:47 so lets say i have one list, if i click one item then it would bring up a new more specialized list. I need intents for every item and activities for each list? Jun 02 04:41:52 ... :) Jun 02 04:42:09 i make it so complicated sounding Jun 02 04:42:32 no, not each one Jun 02 04:42:59 You would have another activity for the more detailed view and pass any information to it through the intent Jun 02 04:43:17 so you could re-use the detailed activity for each item in the list. I am looking for an example now Jun 02 04:44:18 Krob80, here is an example about starting activitys and getting results back : http://developer.android.com/guide/tutorials/notepad/notepad-ex2.html Jun 02 04:44:46 thanx much. Jun 02 05:11:27 Hi, can someone pls help me understand what is the difference between an Intent and a Bundle? Jun 02 05:11:44 they both seem to be an abstractio of data Jun 02 05:16:34 and why I can create an Intent from bundle: Jun 02 05:16:36 Intent.CREATOR.createFromParcel(data); Jun 02 05:17:32 lucius, an intent represents, well, an intended action Jun 02 05:17:41 a bundle is basically a glorified hashmap Jun 02 05:18:19 but why it has a function Intent.CREATOR.createFromParcel(data); Jun 02 05:18:57 from your explanation, they seems unrelated Jun 02 05:27:17 lucius, I have no idea what that does; I've never used it Jun 02 05:36:47 ok. thx Jun 02 05:52:53 can someone point me to some resources that explain how i can programatically start/show a different activity ? Jun 02 05:59:48 lresende: Well you just call startActivity for that. Jun 02 06:08:42 romainguy: hmm, why is Java's File#list API so...inefficient? Jun 02 06:08:58 more accurately, why is it defined in such a way that prevents efficient implementation? Jun 02 06:09:15 yo jasta Jun 02 06:09:21 jasta: talk to harmony ;) Jun 02 06:09:29 jsharkey: how is it harmony's fault? Jun 02 06:09:41 jasta: plans on adc2? Jun 02 06:09:49 seems like Sun's fault for defining it this way. i expected there to be some sort of stream-based way to read this Jun 02 06:10:12 jsharkey, we are making a better market client :) Jun 02 06:10:12 oh the api Jun 02 06:10:22 wimbet: O.O Jun 02 06:10:28 scary! Jun 02 06:10:38 haha watch out. it will be scary when we are done Jun 02 06:10:51 so i would caution against using the same backend Jun 02 06:10:56 have some interesting folks on board Jun 02 06:11:22 you're writing you own stack from server on up? Jun 02 06:11:41 not sure of the exact implementation yet. we will cache the market data similar to cyrket.com Jun 02 06:11:54 hmm and i would caution against that Jun 02 06:12:00 wimbet: where do you get the data from? Jun 02 06:12:02 but add some enhanced functionality Jun 02 06:12:24 why caution? cyrket has not been blocked. are they doing something wrong? Jun 02 06:12:46 yea, but they can be blocked anytime Jun 02 06:12:58 im just saying that an app that directly competes would be much more likely to be blocked Jun 02 06:13:16 its platform fragmentation in a way Jun 02 06:13:21 we are not trying to compete. just enhance the experience Jun 02 06:13:43 our data would come from the market and still link to market for purchase. i hope not to fragment the market Jun 02 06:13:51 this is not like slideme Jun 02 06:13:55 wimbet: i would read the terms carefully. Jun 02 06:14:09 hehe will do Jun 02 06:14:13 wimbet: that's such a risk to take Jun 02 06:14:17 also, what is your definition of "enhanced experience"? Jun 02 06:14:30 well is cyrket.com doing anything wrong? Jun 02 06:14:45 cryket is not distributing itself on the Android market. Jun 02 06:14:56 the market itself has terms of service which forbid this sort of thing. Jun 02 06:15:01 or at least, add risk to it Jun 02 06:15:26 so the app could be removed from the Market Jun 02 06:15:30 also i question the wisdom of this project anyway. this is google's service and i doubt very much they will appreciate you trying to rebrand it. Jun 02 06:15:40 IANAL, but technically they are going against the ToS Jun 02 06:15:49 "5.5 Unless you have been specifically permitted to do so in a separate agreement with Google, you agree that you will not reproduce, duplicate, copy, sell, trade or resell the Services for any purpose. Jun 02 06:15:59 nor do i see any reason to rebrand it. the market app that google put together is of reasonably high quality Jun 02 06:16:10 i wouldnt underestimate how much work theyve put into it as well Jun 02 06:16:41 i have an adc2 question: should apps submitted be new? Jun 02 06:16:43 so that means cyrket.com is breaking the ToS? they reproduce and duplicate market info Jun 02 06:16:56 wimbet: they dont have to agree to the market tos, since they dont distribute on the market. Jun 02 06:17:00 as i said earlier. Jun 02 06:17:03 wimbet: again IANAL Jun 02 06:17:05 if you intend to distribute your app on the market, you would be. Jun 02 06:17:10 or at least, you risk doing so Jun 02 06:17:13 wimbet: yes, its upto google to ignore or take action Jun 02 06:17:25 what is ianal? Jun 02 06:17:31 haha Jun 02 06:17:40 'IANAL is a Usenet and chat abbreviation (acronym) for "I am not a lawyer."' Jun 02 06:17:40 i am not a lawyer, it is a disclaimer that he cannot give you legal advice. Jun 02 06:17:50 lol Jun 02 06:18:00 haha Jun 02 06:18:16 well i will share your info with our group Jun 02 06:18:26 there is a lot of doubt with htis project wimbet. we caution you strongly to reconsider pursuing it. Jun 02 06:18:29 i dont think it will deter us, but we dont want to break the market rules Jun 02 06:18:47 wimbet: why you fixated with market/ Jun 02 06:18:48 im still curious what you think should be improved about the market experience currently Jun 02 06:18:49 ? Jun 02 06:19:13 we just plan to fix search, add filters, have stats to identify trends and discover new apps Jun 02 06:19:16 jasta: well, something digg-like would be awesome Jun 02 06:19:29 muthu_, i am obsessed with market Jun 02 06:19:33 yeah that would be nice. Jun 02 06:19:42 wimbet: "fixing search" is a big problem ;) Jun 02 06:19:44 something digg-like is possible :) Jun 02 06:19:56 there were dozens of search engines before google came along Jun 02 06:20:05 true Jun 02 06:20:08 bing is getting good reviews Jun 02 06:20:13 anything is better than current market search though Jun 02 06:20:29 wimbet: i don't think anything is better Jun 02 06:20:49 if you are rewriting market, then comeup with some interesting stuff Jun 02 06:21:03 ooh! Jun 02 06:21:03 ok Jun 02 06:21:05 i haz idea Jun 02 06:21:10 we will have a killer UI Jun 02 06:21:12 gimme! Jun 02 06:21:23 it would require framework support Jun 02 06:21:30 i'm listening ;) Jun 02 06:21:31 hehe Jun 02 06:21:46 are you still talking market? or did i walk into another discussion Jun 02 06:21:55 i have an idea for social network.. Jun 02 06:22:12 but not sure how a completely new network can be submittled for adc2 Jun 02 06:22:13 so on the system, the packagemanager resolves intents. if you try running something it cant resolve, it should naturally extend into the marketplace Jun 02 06:22:35 that is a great idea Jun 02 06:22:37 so opening "application/pdf" would plop into market if you dont have a viewer Jun 02 06:22:43 jsharkey: oh that is interesting. Jun 02 06:22:54 now actually that wouldnt require market support. Jun 02 06:23:00 jasta: market+platform Jun 02 06:23:06 err platform i meant Jun 02 06:23:13 the market backend would have to somehow scan the apps and know what they respond to Jun 02 06:23:19 not too hard though Jun 02 06:23:21 its all in manifest Jun 02 06:23:35 i meant to say it wouldnt require platform support, but rather market support for that reason Jun 02 06:23:51 you could implement a conduit, just listening for lots of intents like that Jun 02 06:23:59 jasta: its a mixture of both, so that the platform resolve dialog could launch over from anywhere on system Jun 02 06:24:07 although it would be better if you could hook into the framework to determine if an intent actually fails to resolve Jun 02 06:24:20 ugh listening for */* with a low priority would /not/ be a solution :/ Jun 02 06:24:20 that is certainly an interesting idea though Jun 02 06:24:32 yea framework would be best Jun 02 06:25:35 you should mention that to the market folks ;) Jun 02 06:25:39 it would require their support most of all Jun 02 06:25:51 the framework support would be tricky though bceause you'd need to generalize it Jun 02 06:26:01 so you'd need a way to basically register a default intent handler Jun 02 06:26:06 they've got enough on their hands already :( Jun 02 06:26:10 i feel bad for those guys Jun 02 06:26:14 market? Jun 02 06:26:16 seems like they are working all hours of the night Jun 02 06:26:17 yea market Jun 02 06:26:29 how so? seems like dev effort is pretty frozen Jun 02 06:26:36 i havent seen any new feautres out of it in a while from the main UI Jun 02 06:26:46 there is alot of backend work being done right now Jun 02 06:26:53 to suppor twhat/ Jun 02 06:27:12 and i have no clue, but they might be involved with the ADC setup somehow Jun 02 06:27:23 i think the education category for adc2 will give you high probability to win - anyone think so? Jun 02 06:27:42 jasta: give me an idea dude! Jun 02 06:27:52 "Mavis Beacon Teaches the Android Soft Keyboard" lool Jun 02 06:28:18 haha Jun 02 06:28:46 hmm education Jun 02 06:29:01 ooh Jun 02 06:29:08 collective note-taking on somethign wave-like Jun 02 06:29:11 for courses Jun 02 06:29:16 like a big live wiki Jun 02 06:29:36 i need something like scan :) Jun 02 06:29:44 250k idea :D Jun 02 06:29:53 lol Jun 02 06:30:12 so far ive paid taxes and purchased pizza rolls :P Jun 02 06:30:17 adc2 is going to be really competetive Jun 02 06:30:22 jsharkey: haha Jun 02 06:30:39 but you guys are missing out on the fun this time :P Jun 02 06:30:51 i'll be missing jasta though.. hehe Jun 02 06:31:10 the market just needs an api Jun 02 06:32:52 agree, so people can built interesting stuff on top of it Jun 02 06:49:13 Hi, is there any way to differentiate an Activity from a Sub activity? Jun 02 06:54:16 I am parsing an xml file from the net (got it working now), but struggeling to get a progress bar to show while the xml file is being downloaded and read.. Jun 02 06:54:38 Ive read http://developer.android.com/reference/android/widget/ProgressBar.html , but still unsure on how I would do it in my case.. Jun 02 07:30:27 hi, sorry if this is in the wrong channel, but.... anyone in here who has a problem with the camcorder app? i'm running jf1.51 but the problem was also in the htc-image. the camcorder app stops responding and i have to force close it. camera works ok though Jun 02 08:52:24 Hi all. I'm developing a OpenGL based app for Android, but on the G1 none of the OpenGL content is being rendered on screen; on the emulator it works just fine Jun 02 08:52:42 do you have any ideas why this is happening? Jun 02 09:04:20 iulianb: Are you checking the return codes when you initialize the context? Jun 02 09:07:34 the initialization is done by the GLSurfaceView class behind the scenes Jun 02 10:59:34 hey guys, if i leave something on the surfaceview and dont clear it, it remains there but it flashes, i would expect ti just to remain there, any ideas? See I dont want to have to repaint these images constantly if i dont need too Jun 02 11:09:55 anyone know roughly how long it takes the app store to publish an update? Jun 02 11:15:39 mmmulani: minutes? it's very fast normally Jun 02 11:16:39 TD: even for an update? I submitted one last night but it still hasn't shown Jun 02 11:37:23 (Activity A and B, Service C) I call A.startService(C), A.bindService(C) A.unbindService(C), B.startService(C), B.bindService(C) B.unbindService(C). I have log output in C.onCreate(), C.onStart(), C.onBind(), C.onUnbind(). Now the log output shows that the Service methods are called as following: C.onCreate(), C.onStart(), C.onBind(), C.onUnbind, C.onStart() and that's it Jun 02 11:38:17 no matter how many times I call bindService() or unbindService() from my activities, the corresponding C.onBind() and C.onUnbind are not called anymore Jun 02 11:38:31 this is normal? :) Jun 02 12:13:26 no matter what I try, only the first bindService() and unbindService() calls arrive at C.onBind() and C.onUnbind(). after these two, I can call (un)bindService() as much as I want.. C.onBind/Unbind() won't be called anymore (but calls to startService() still reach C.onStart() at this point..) Jun 02 14:19:51 hi all. i am reworking a lot of the code in my app (basically splitting out into seperate activities) and I'm having trouble with search again. onSearchRequested() is called but the search box isn't showing up. Jun 02 14:20:58 oops, nevermind. spelling mistake. =] Jun 02 14:45:02 can anyone point me in the right direction for making sure my app is updateable via the market when I publish it? I've seen a lot of apps on the market where they state that you have to uninstall the old version before installing the new version and i would like to prevent having the user to have to go thru that. Jun 02 14:48:46 BeBoo_: generate a certificate that expires a LONG time from now, and sign your APK with that Jun 02 14:48:57 and don't loose the keystore Jun 02 14:49:04 ^^ Jun 02 14:49:05 lose* Jun 02 14:49:15 people who put apps up like that have signed with a debug key or something retarded Jun 02 14:49:21 keep the keystore somewhere safe Jun 02 14:50:09 i haven't signed up for a dev account yet... do I find the certificate stuff once i pay the fee? Jun 02 14:50:19 BeBoo_: no, not related Jun 02 14:50:43 oh. sorry, i'm new to this... my first app and i think i'm almost ready to release it. i just don't want any problems ^^; Jun 02 14:50:54 read the docs on the sdk about "How to publish your app" Jun 02 14:50:57 specifically the signing part Jun 02 14:51:01 okies Jun 02 14:51:03 it explains all of this in detail Jun 02 14:51:18 arr tee eff emm : ( Jun 02 14:51:18 ty Jun 02 14:51:22 and there are bunches of tutorials out there Jun 02 14:51:23 =[ Jun 02 14:51:29 * BeBoo_ sits in the corner Jun 02 14:51:51 you have only yourself to blame, young man. Jun 02 14:58:51 why do u need to keep the keystore safe Jun 02 14:59:04 so that you don't lose it Jun 02 14:59:08 because you must sign all your releases with it Jun 02 14:59:10 why would losing it be a problem Jun 02 14:59:16 because then you can't update your apps Jun 02 14:59:23 you don't have the same private key with which to sign them Jun 02 14:59:29 oh Jun 02 14:59:34 fuck Jun 02 14:59:38 you end up putting out "v2" apps on the market that say "yeah uninstall the old one first" Jun 02 14:59:44 right Jun 02 14:59:46 also, if someone steals your key, they can sign their apps as you Jun 02 14:59:51 hehe i wonder if i have mine Jun 02 14:59:54 generally a non-issue but has some security implications Jun 02 15:00:13 signing is such a pita i just forget about it as soon as it works Jun 02 15:00:29 well signing isn't an issue unless you're releasing your apk to anyone Jun 02 15:00:38 if you're just making things for yourself, debug signed is fine Jun 02 15:00:46 yeh Jun 02 15:00:57 i got min signed eventually Jun 02 15:00:58 and up there Jun 02 15:01:00 mine Jun 02 15:01:06 Gaz: default location in linux is ~/.keystore Jun 02 15:01:24 ive got a client pissed off because i told them to get a cert from thawte for our j2me app and it doesnt seem to work properly Jun 02 15:01:28 j2me is a mess in that respect Jun 02 15:01:59 fuck im gushing with sweat here Jun 02 15:02:22 zhobbs, im on Xpeeee Jun 02 15:03:17 eh Jun 02 15:03:23 look at the docs Jun 02 15:03:28 you can just make your own keystore Jun 02 15:03:32 (which you do anyway) Jun 02 15:03:37 yep Jun 02 15:03:44 im 99% sure its still sitting there Jun 02 15:03:48 i do it all in android sdk/tools Jun 02 15:03:53 so it should be there Jun 02 15:04:38 not tried ur app yet vol, need to pay my phone bill first Jun 02 15:04:42 i dont hav unmetered net here Jun 02 15:05:11 oh, uh, the app doesn't use the network (actually it does but you can turn it off) Jun 02 15:05:19 whats it like to be back to a civlised country :) Jun 02 15:05:21 hello, i have a problem with creating a ListView in my program Jun 02 15:05:28 nice and bucolic Jun 02 15:05:31 does gps use anything that should cost Jun 02 15:05:40 uh, no Jun 02 15:05:40 bucolic? thats a new one on me Jun 02 15:05:45 the gps is absolutely free Jun 02 15:05:50 oh Jun 02 15:05:53 yeah dude Jun 02 15:05:58 all the sensors, everything, all free on your device Jun 02 15:06:01 nothing will cost extra Jun 02 15:06:04 except maybe data usage Jun 02 15:06:04 ah thats th reasoni not been using it, because nmaps still needs credit Jun 02 15:06:10 but that's between you and your carrier Jun 02 15:06:22 im not sure u can get unmetered here Jun 02 15:06:34 nut once i get a new router ill be fine Jun 02 15:06:36 on my wifi] Jun 02 15:06:45 well, make sure you're hooked up to your wifi when you use it then Jun 02 15:06:51 or turn your phone on to airplane mode Jun 02 15:07:07 gps wont work then tho will it Jun 02 15:07:35 yes it will Jun 02 15:07:39 that's not part of airplane mode Jun 02 15:07:43 the gps chip sends no signals Jun 02 15:07:46 that shit little flippy thign over usb has snapped off, im kinda glad Jun 02 15:07:55 oh just receives Jun 02 15:08:06 yeah Jun 02 15:08:15 agps in cupcake will use network to get your position faster Jun 02 15:08:25 but only when you first turn it on Jun 02 15:08:38 yeh ive amazed people with the gps Jun 02 15:08:44 its not as accurate as i thought tho Jun 02 15:08:59 sometimes lies to me Jun 02 15:10:26 there are urban canyon issues Jun 02 15:10:39 it might think it is in the wrong position, signals get bounced, it might not have signal, etc Jun 02 15:10:58 yeh Jun 02 15:11:06 bring on bluetooth gps is what i say ! Jun 02 15:11:07 j/k Jun 02 15:11:26 bugger explorer dies Jun 02 15:11:30 then it runs slow as shit Jun 02 15:12:01 gotta reboot i think Jun 02 15:17:59 i have a layout with 5 buttons. Is there a way so that when the orient is vertical, the buttons are all in a line but when the orient is horiz, there are 2 buttons per line? Jun 02 15:18:08 all in one column* Jun 02 15:18:34 morning everybody Jun 02 15:19:30 I need someone who to check out whether my "help" is enough to understand my game ... sooo .. anybody wanna give it a shot? the game is finished btw. so you get a free full game :) Jun 02 15:20:29 i can, if you would like Jun 02 15:20:41 would give me a break from my app heh Jun 02 15:20:52 BeBoo_: sure. pm me your email address please Jun 02 15:21:08 BeBoo_: use different layout xml files Jun 02 15:21:19 BeBoo_: you can put them in res/layout and res/layout-land Jun 02 15:21:31 and when it landscape it'll automatically use layout-land Jun 02 15:21:40 Gaz, sent you the full hopefully bugfree version btw Jun 02 15:22:45 zhobbs: thanks Jun 02 15:24:01 is the native sdk released to public yet? I heard gustav from spotify mention it but i can't find anything in goog search :[ Jun 02 15:24:12 Beboo, sent. I won't tell you how it works, as that would kind of void the "testing the help" part ;) Jun 02 15:24:36 sammyF, great. Gimmie a few mins. Jun 02 15:27:43 digitalspaghetti: I believe it's in the git repo, have to build it yourself Jun 02 15:28:41 ahh, ok makes sense Jun 02 15:29:33 i really need to sit down and try get my head around the source Jun 02 15:30:00 digitalspaghetti: yeah, I'm not sure how to build the native sdk either Jun 02 15:30:43 build sdk is all you need for the normal sdk Jun 02 15:31:32 i'm just interested in looking at the posibility of a SDL port for doing 2d games Jun 02 15:31:43 nothing serious, just to tinker with it :) Jun 02 15:32:28 digitalspaghetti: http://android.git.kernel.org/pub/sdl-1.2.12-android-20080919.tar.gz Jun 02 15:32:50 / http://android.git.kernel.org/pub/sdl-1.2.12-android-20080919.tar.gz (not sure what the sdl blob does but ...) Jun 02 15:33:12 oh, damn you selection Jun 02 15:33:24 http://android.git.kernel.org/pub/android-ndk-toolchain-20090323.tar.bz2 ndk! Jun 02 15:34:48 cool, thanks Jun 02 15:35:54 unknown_lamer: w00t Jun 02 15:36:04 maybe i can port my crappy 2d racing game then :) Jun 02 15:36:07 digitalspaghetti: I just poked around the sdl tarball and it doesn' Jun 02 15:36:09 t do much Jun 02 15:36:21 mostly just not build because it is out of sync with the current build system Jun 02 15:40:38 anyone out there have a cool adc2 project in the works? Jun 02 15:42:02 lol @ Me Needs Money Cause Me Needs To Feed clause Jun 02 15:42:20 ;) Jun 02 15:42:26 zhobbs: not yet Jun 02 15:42:28 yeah .. obviously I don't have a lawyer :P Jun 02 15:42:32 still thinking what to do :) Jun 02 15:42:32 lol @ truck Jun 02 15:42:44 thats funny but long -_- Jun 02 15:42:52 yeah, I don't have the time to do a full project by myself I think... Jun 02 15:43:06 BeBoo_: considering people never read EULA's anyway :P Jun 02 15:43:14 LOL, fail... "Circuts is not responding" Jun 02 15:43:29 nvm, just me being impatient Jun 02 15:43:31 BeBoo_: okay .. please tell me you're joking ... Jun 02 15:43:48 BeBoo_: you got the "wait/close" popup???? Jun 02 15:43:58 * sammyF looks for a rope to hang himself Jun 02 15:44:05 i tapped help and it didn't do anything, so i tapped it again, still nothing so i tapped start and got that message, yes wait/close Jun 02 15:44:20 i clicked wait and the help popped up Jun 02 15:44:53 BeBoo_: I think I really need a rope... I thought THAT was fixed Jun 02 15:45:06 perhaps i have an old version? Jun 02 15:45:48 BeBoo_: unless Eclipse has a backup of the old apk, I would not know how you'd have gotten it :/ Jun 02 15:45:49 sammyF, after viewing help fir first time, it responds well. lemme quit and retry Jun 02 15:46:33 sammyF: seems to be working fine... perhaps my phone was doing something at the time or something Jun 02 15:46:38 BeBoo_: been playing nearly full time since yesterday and I didn't get it anymore at all ... but that used to be a problem (the application taking time to start somehow) Jun 02 15:47:44 w00t 32 points Jun 02 15:48:03 BeBoo_: yep. I had the popup once when starting the phone (Activity.main is taking too much time to start ;) and it happens relatively often in the Aplication manager. still ... it's one of those "Crashes my phone. don't download" comment issues :/ Jun 02 15:48:10 oh bugger Jun 02 15:48:10 Anybody has experience with exposing a Java object to javascript w/ addJavascriptInterface Jun 02 15:48:13 BeBoo_: grats! ;) Jun 02 15:48:44 BeBoo_: the first award starts at around 50 points though ;) Jun 02 15:49:08 sammyF: understandable Jun 02 15:49:26 harryv: yep Jun 02 15:49:33 sammyF: the instructions are very clear and to the point. I understood it and nice game, btw... i could see this as being an addiction ;p Jun 02 15:49:41 like pipes but better (since you can rotate) Jun 02 15:50:05 BeBoo_: thanks :) Jun 02 15:50:05 i take it the location thing in the browser uses this addJavascriptInterface stuff? Jun 02 15:50:22 BeBoo_: I just noticed I need to state somewhere that you can pause by clicking the trackball though Jun 02 15:50:24 zhobbs: simple question - does it work? I just bought a Magic and would like to create some small apps, but I'm not in it to learn java atm, but it would be nice to be able to connect to a sqlite database and store some data forsmall self-contained javascript apps Jun 02 15:50:30 sammyF: when you hit menu in game, is it supposed to go to the main menu and show the menu? Jun 02 15:50:34 s/does it work/are there any major issues Jun 02 15:50:41 harryv: works fine Jun 02 15:50:55 sammyF: didn't know that... would be a helpful mention =] Jun 02 15:51:18 BeBoo_: kind of. It just happened, and it makes sense, somehow. So I let it be Jun 02 15:51:50 BeBoo_: complete useless feature : you can chane the speed and alpha of the highscore display with the trackball ... won't be in the help though :P Jun 02 15:51:52 sammyF: i can understand going to the main menu but showing the menu as well seems... i dunno how to say it Jun 02 15:52:05 BeBoo_: useless? ;) Jun 02 15:52:19 sammyF: mmhmm. Jun 02 15:52:55 BeBoo_: yeah. only thing in the Android menu that's not in the game is "About" which is really just copyright stuff Jun 02 15:53:00 sammyF: your help is a jpg, correct? Jun 02 15:53:05 yep Jun 02 15:53:27 should make that a png or something... i can see the quality degradation around the first paragraph Jun 02 15:53:59 jpg artifacts Jun 02 15:54:09 BeBoo_: ideally it should. but it's a size thing. 28KB vs > 100 Jun 02 15:54:18 png8? Jun 02 15:54:26 shouldn't be that large Jun 02 15:55:00 are you making it in photoshop or some other prog? Jun 02 15:55:05 zhobbs: great. thanks! Jun 02 15:55:32 sammyF, I think the reason your other PNGs were so huge were because they had lots of complex data Jun 02 15:55:44 if it's just text, PNG should compress pretty nicely Jun 02 15:56:00 it's a picture and text with a gradient around the ficture Jun 02 15:56:02 picture Jun 02 15:56:04 nice job sammyF :) Jun 02 15:56:09 jt436: thanks :) Jun 02 15:56:24 KNY: there's a screenshot in it. Jun 02 15:56:28 i definately like this game... addicting ^^; Jun 02 15:56:42 sammyF, ah Jun 02 15:56:45 although i'd seperate the text from the help image Jun 02 15:57:03 BeBoo_: not when you're developping it, believe me. Getting sick and tired of it ;) Jun 02 15:57:19 sammyF: seems to have some touch issues with the buttons on the right side of the menu Jun 02 15:57:29 i have to tap the buttons several times to get it to turn off/on Jun 02 15:57:42 maybe i'm tapping too close to the edge Jun 02 15:57:51 is there a link to the game? Jun 02 15:57:57 BeBoo_: yep. they are a bit small actually :/ Jun 02 15:58:04 zhobbs: it's not up yet Jun 02 15:58:11 ah Jun 02 15:58:22 sammyF, this isn't for pinit? sorry, haven't been following ;) Jun 02 15:58:40 KNY: get with the times, this is a new one Jun 02 15:58:41 ;) Jun 02 15:58:44 haha Jun 02 15:59:02 PinIt is so May 2009 Jun 02 15:59:03 i wish i was smart enough to make a game. i can't even figure out my own damn app lol Jun 02 15:59:05 its June! Jun 02 15:59:05 KNY: I've been mass producing :P Jun 02 15:59:29 jt436, hha Jun 02 15:59:33 gonna take a vacation now and sail for a week or so ;) Jun 02 15:59:52 ooo sammyF... i went to awards and hit back button, it reloaded (loading bar, etc) Jun 02 15:59:56 is that normal? Jun 02 16:00:18 shouldn't it already be loaded? ;p Jun 02 16:01:05 BeBoo_: yes. the awards are in another activity actually Jun 02 16:01:30 BeBoo_: should really be in an intent actually, then there wouldn't be any reloading Jun 02 16:01:31 but are you calling finish(); when you start the awards activity? Jun 02 16:02:12 if you don't call finish, the back should go back (in my experience, at least) Jun 02 16:03:33 BeBoo_: hmm .. actually I don't Jun 02 16:03:47 sammyF, yeah, seems like a good game :) Jun 02 16:04:01 sammyF, do you have the loading logic in onResume() or something? Jun 02 16:04:44 oh I didn't know you could rotate the pieces. that's what I get for not reading the help I suppose Jun 02 16:04:48 KNY: no. in onResume I just tell the thread that I'm back. that's all Jun 02 16:05:28 hmm Jun 02 16:05:46 also, if I tap to the right of the buttons, it make the "ding" sound Jun 02 16:05:53 like between the button and the edge of the screen Jun 02 16:05:53 KNY: just changing a variable that tells the gamethread what state I'm in Jun 02 16:06:10 oh wait duh, those are settings. My bad :) Jun 02 16:06:20 lol Jun 02 16:07:45 KNY: you can pause the game by clicking on the trackball (if you didn't read the help, you probably didn't notice I forgot to write that down ;) Jun 02 16:07:51 haha Jun 02 16:07:54 alright Jun 02 16:08:03 why does pressing "back" from the main screen not exit? Jun 02 16:08:03 jt436: good idea with the text separate from the screenshot btw. thanks Jun 02 16:08:33 KNY: because you're supposed to keep playing :P (or because it's well spotted. thanks;) Jun 02 16:08:39 heh Jun 02 16:09:00 I always exitd by pressing the home button so far .. don't ask me oO Jun 02 16:09:32 sammyF, well home and back have different meanings in terms of the application lifecycle Jun 02 16:09:50 KNY: home doesn't kill the application? Jun 02 16:10:00 sammyF, no, home just brings the home application to the top Jun 02 16:10:06 back tears down the application Jun 02 16:11:36 will have to fix that then Jun 02 16:12:58 if you wanted to kill your app you could probably detected the home key being pressed and do android.os.Process.killProcess(android.os.Process.myPid()) Jun 02 16:13:09 KNY: "tears down the application" != kill, correct? Jun 02 16:13:33 BeBoo_, it goes all the way through onDestroy() Jun 02 16:13:45 so it's not just pkill -9 or anything Jun 02 16:14:00 digitalspaghetti, IIRC, you can't intercept the home key Jun 02 16:14:06 but you can put that kill line in onDestroy, correct? Jun 02 16:14:29 BeBoo_, I'm pretty sure that it has the same effect Jun 02 16:14:45 tearing down just give the application a chance to save its state and gracefully exit Jun 02 16:14:59 KNY: in my experience with my app (in debug at least), when i hit back and i end up at the home screen, the process is still running (according to DDMS) Jun 02 16:15:04 it's the difference between file -> quit and pkill -9 Jun 02 16:16:30 KNY: did you notice any lag or the wait/close dialog when launching the game and hitting help? Jun 02 16:16:38 not hitting, tapping ;p Jun 02 16:16:52 BeBoo_, not that I remember; I'll give it a shot though Jun 02 16:17:00 KNY: what about android.view.KeyEvent Jun 02 16:17:00 it only did it the first time i ran the app Jun 02 16:17:03 ? Jun 02 16:17:04 it hasn't done it since Jun 02 16:17:16 with KEYCODE_HOME Jun 02 16:17:30 digitalspaghetti, I'm 99% sure you can't trap it Jun 02 16:17:52 ahh, wasn't sure not done it myself but remember seeing it in the docs Jun 02 16:18:10 the only way you could would be to respond to the Intent.ACTION_HOME Jun 02 16:18:15 or whatever it is Jun 02 16:19:20 yeah, you can't trap home Jun 02 16:19:41 in a relative layout, how can I have two buttons that are centered (basically left and right or the center) Jun 02 16:19:49 the initial phone setup actually disables the home button on the system and re-enables it when you're done Jun 02 16:30:58 well .. thanks a lot for all the nice comments everyone. Got to go now, but I'll fix the back button thing and split the help in img/txt when I get back :) Jun 02 16:41:36 zhobbs: regarding the two layouts. I have a layout with the same name in layout-land and it doesn't appear to be using that layout when i rotate. do I have to put anything in my code or manifest? Jun 02 16:42:12 BeBoo_, I've never done anything different Jun 02 16:42:43 hrm Jun 02 16:43:08 BeBoo_: are you claiming to ahndle orientation changes yourself in this activity's manifest? Jun 02 16:43:17 if so, that is expected behaviour. Jun 02 16:43:38 i have this: android:configChanges="orientation|keyboardHidden" Jun 02 16:43:42 that what you mean? Jun 02 16:43:56 that means you are claiming to handle orientation changes yourself, so you will not see an ondestroy/oncreate and thus your layout wont get applied. Jun 02 16:44:00 i don't want the activity dying when i rotate Jun 02 16:44:05 remove that line, or actually do what you claim to do. Jun 02 16:44:12 so the activity has to die for the layout to change Jun 02 16:44:26 BeBoo_: i think you greatly misunderstand how this is expected to work. Jun 02 16:45:20 if you claim to handle config changes yourself, android will do nothing for you on config change. so you would have to handle all your reinitialization yourself Jun 02 16:45:24 this is going to be a huge pain for you, im sure. Jun 02 16:45:46 instead, you should remove that configChanges line and take advantage of methods like onRetainNonConfigurationInstance to save and restore state. Jun 02 16:46:01 you can find examples of this in the Photostream application. Jun 02 16:46:53 it's just for this one activity, i need to do this for (just displays a layout of buttons handles them) Jun 02 16:47:15 that's great, but if you dont want to handle config changes yourself, then you need to remove that line. Jun 02 16:47:19 orientation change is a config change Jun 02 16:47:30 heh... interesting. if search is open and i rotate, it doesn't do anything. Jun 02 16:47:38 handling config changes manually is reserved only for developers who actually understand what is happening. not you. Jun 02 16:48:01 jasta, haha Jun 02 16:48:39 BeBoo_: trust me, remove the configChanges line and implement config change optimizations through methods like onRetainNonConfigurationInstance Jun 02 16:48:43 as Photostream does, for an example. Jun 02 17:13:40 is there no "create new SMS" intent? :( Jun 02 17:17:17 actually, nevermind.. sms:# seems to be the URI :) Jun 02 17:19:44 hey guys, i can detect the menu key being press in once to get the menu to appear - but it doesnt seem to have an event for the press that takes it away? Jun 02 17:41:03 hello, any bionic / threading library developers here? Jun 02 17:51:14 anyone know if an app can reinstall itself to a new version if it has the install/remove app permissions? Jun 02 17:56:38 i thought install/remove permissions were signature-only Jun 02 18:03:22 ctate: what do you mean? Jun 02 18:10:26 I'll try my luck again - maybe there's someone online who knows if/what I'm doing wrong.. Jun 02 18:10:59 (Activity A and B, Service C) I call A.startService(C), A.bindService(C) A.unbindService(C), B.startService(C), B.bindService(C) B.unbindService(C). I have log output in C.onCreate(), C.onStart(), C.onBind(), C.onUnbind(). Now the log output shows that the Service methods are called as following: C.onCreate(), C.onStart(), C.onBind(), C.onUnbind, C.onStart() and that's it Jun 02 18:10:59 no matter how many times I call bindService() or unbindService() from my activities, the corresponding C.onBind() and C.onUnbind are not called anymore Jun 02 18:11:04 no matter what I try, only the first bindService() and unbindService() calls arrive at C.onBind() and C.onUnbind(). after these two, I can call (un)bindService() as much as I want.. C.onBind/Unbind() won't be called anymore (but calls to startService() still reach C.onStart() at this point..) Jun 02 18:11:40 is this really supposed to work like that? Jun 02 18:12:14 tauno: you must return the correct value in onUnbind() to get subsequent binds/unbinds Jun 02 18:12:17 something like that Jun 02 18:12:26 oh.. Jun 02 18:12:29 that threw me off for a long time... Jun 02 18:12:59 zhobbs: android.permission.INSTALL_PACKAGES is a signature-or-system permission Jun 02 18:13:08 3rd party apps can't use it Jun 02 18:13:22 hmm, what about slideme? Jun 02 18:13:38 i dunno how it works Jun 02 18:13:41 tauno: looks like you need to return true from onUnbind() Jun 02 18:13:49 oh, does it run pm from a shell? Jun 02 18:13:50 yeah but the docs say that: "Returns * Return true if you would like to have the service's onRebind(Intent) method later called when new clients bind to it." - I don't want onRebind() to be called - I want the usual onBind() to be called :) Jun 02 18:14:13 hrm. Jun 02 18:14:18 but ok, I guess you are right :) Jun 02 18:14:20 i have no idea what slideme does Jun 02 18:14:22 tauno: try it...it makes a difference Jun 02 18:15:09 anyone know if there's a way to get eclipse to not worry about errors in ant files? Jun 02 18:15:56 ctate: http://code.google.com/p/slideme/source/browse/#svn/trunk/slideme-application-manager Jun 02 18:16:04 ctate: looks like it requests the install app permission Jun 02 18:16:11 huh. Jun 02 18:16:36 this puzzles me mightily. :) Jun 02 18:16:55 ctate: hmmm, r19 Apr 07 Jun 02 18:17:01 2008 Jun 02 18:17:19 this is old..../ Jun 02 18:18:28 ctate, so are you saying that third-party apps aren't supposed to be allowed to install applications? sorry if I'm behind on this discussion :) Jun 02 18:18:38 zhobbs, indeed, onRebind() is now called. thanks, you earned yourself a cookie :) Jun 02 18:18:52 Mmmm Jun 02 18:18:55 * BeBoo_ steals zhobbs' cookie Jun 02 18:19:34 KNY: that's my reading of the permission class Jun 02 18:20:22 ctate, interesting. I was under the impression we were allowed to do that (I mean, the permission is in the manifest editor...). I'll go browse through the docs Jun 02 18:22:53 i could easily be wrong; i just glanced at its decl and did no other investigation Jun 02 18:28:08 just installed slideme and it does not request the install package permission Jun 02 18:28:16 it's not shown in the security prompt at least Jun 02 18:28:28 hunh Jun 02 18:28:33 wonder how it works then Jun 02 18:28:43 but it does install apps, doesn't it? :) Jun 02 18:28:48 clearly that permission gates something other than what i thought it did Jun 02 18:29:46 looks like it just downloads the apk and maybe launches an ACTION_VIEW on it or something Jun 02 18:30:22 probably just like the browser does Jun 02 18:30:24 ah yeah, that sounds right Jun 02 18:31:50 is there anywhere we can ask questions about ADC2? I'd rather not post on the mailing list because I don't want to disclose my idea Jun 02 18:33:36 you could probably bug a developer advocate Jun 02 18:33:57 any bionic / threading library developers here? Jun 02 18:34:23 not exactly but go ahead, fabled. i'll tell you i have no clue if i can't help :) Jun 02 18:35:32 i'm trying to to glue in the threading code to uclibc; and i'm looking at the thread exit code that does munmap() and exit() syscalls. i'm curious why it's done so? isn't there a race after munmap but before exit, that things can go bad if the thread gets e.g. signal and needs stack? Jun 02 18:36:15 zhobbs, who do you mean by a "developer advocate"? Jun 02 18:36:33 fabled: okay, yeah, that's over my head. you should ask on the android-porting mailing list about this sort of thing. :) Jun 02 18:36:59 KNY: there are google employees with that title, they are in here under morrilld and jasonchen Jun 02 18:37:07 ctate: ok, thanks Jun 02 18:37:37 zhobbs, ah, I didn't know that was their title. Jun 02 18:37:38 it's conceivable that by that point, the thread is sufficiently torn down that the kernel will not attempt signal delivery, for example, but i'm just guessing. could be a legit bug, could be something indirect. Jun 02 18:37:42 I'll do that next time I see them around Jun 02 18:37:51 teardown is always the very tricky part of thread and process management. Jun 02 18:38:17 meh, just let them be. We all like zombies, right? Jun 02 18:38:49 step a little closer and say that again. ;) Jun 02 18:45:35 haha Jun 02 18:48:09 he just wants your braaaaains Jun 02 18:48:14 I wish the market had push notifications (like gmail) when there were app updates Jun 02 18:48:41 I still get people emailing me auto-generated bug reports from a version that I released like 4 months ago Jun 02 18:48:45 come on people, get with the times! Jun 02 18:48:46 i see notifications appear ever once in awhile... just a little bag icon Jun 02 18:49:08 BeBoo_, right, but I wish the notifications got sent out right away when I published an update Jun 02 18:49:28 ah i see. yes, that would be nice Jun 02 18:49:29 (note that I wish that from a developers perspective; that would drive me up the wall as a user :)) Jun 02 18:50:08 KNY: Hmm, I was thinking about removing the update notifier from ConnectBot next release, but that gives me pause :-) Jun 02 18:50:44 kRutOn, I don't understand how these people do it; is it even possible to turn off market update notifications? do they just ignore them? Jun 02 18:50:54 they're probably still on rc19, too Jun 02 18:51:13 I can imagine them ignoring them repeatedly. Jun 02 18:51:42 Often when I go to my wife's computer she has updates queued up from a year ago (depending on how frequently I use it) Jun 02 18:51:52 instead of taking 30 seconds to get the update with the better reliability and new features Jun 02 18:52:16 where do I find the android eclipse plugin source? Jun 02 18:52:58 kRutOn, but I mean look at this app of mine: http://www.cyrket.com/package/com.evancharlton.g1central Jun 02 18:53:21 I've had that description exactly like that since *march* and my total installs have grown by almost 10000 since then Jun 02 18:53:57 (and I changed it to that and published one more dummy update so that people would get the update request and see the new description) Jun 02 18:54:04 * KNY sighs Jun 02 18:54:05 Jun 02 18:54:15 KNY: can't you take down an app? Jun 02 18:54:26 sammyF, but then people will use it indefinitely because they won't know any better Jun 02 18:54:50 I'm watching my active installs and once it drops below 1000 I'll take it down Jun 02 18:55:17 since March it has dropped from 9500 and change to 8800 and change Jun 02 18:55:25 so I figure I can take it down sometime around 2050 Jun 02 18:55:58 tried writing "this application is no longer supported and is buggy. along with the "DO NOT INSTALL..." message? Jun 02 18:56:13 "not supported" might trigger a few more users to switch Jun 02 18:56:21 not that they actually KNOW what you mean by that, of course ;) Jun 02 18:56:52 haha Jun 02 18:56:54 but 'unsupported" is generally a keyword people react to Jun 02 18:57:08 I'll change it but I doubt it will make a difference Jun 02 18:57:30 I suspect that the only thing that will really drop it is when Google finally closes down GrandCentral for good Jun 02 18:57:32 It would be totally ironic if your deprecated program was featured on the front page of Android Market Jun 02 18:57:53 tee hee Jun 02 18:58:13 haha Jun 02 18:58:30 KNY: btw. I see you're an evil man ... "What a waste. Evan,... u know this doesn't work 4 everyone right? 1/5" Jun 02 18:58:32 shame on you :P Jun 02 18:58:58 yeah, I'm the worst human alive Jun 02 18:59:19 you wouldn't believe some of the emails I get.. "It's not fair to publish an application that not everyone can use!" Jun 02 18:59:24 what is this, kindergarten? Jun 02 18:59:46 :TFOASM%V*W&M^PVMQ%@3v67y4uhyr Jun 02 18:59:57 so I modified the build.xml file slightly because I want to do some post processing Jun 02 19:00:02 and hey, eclipse thinks that it has errors now! Jun 02 19:00:06 so I can't use my project! Jun 02 19:00:07 YES! Jun 02 19:00:09 THIS IS AWESOME! Jun 02 19:00:19 vol, yeah, eclipse sucks. I can't figure out how to get it to ignore the build.xml file Jun 02 19:00:34 this was working PERFECTLY until about 5 seconds ago Jun 02 19:00:37 KNY: I used to get a lot more email about 'ConnectBot looks cool and the reviews are great. How do I use it?' except almost totally unreadable sentences and inane. Jun 02 19:00:38 when I looked in the file in eclipse Jun 02 19:01:10 kRutOn, I get so many invitation requests and "what is this?" emails that I have canned responses set up for them in my GAfyD account Jun 02 19:01:16 kRutOn: oh ... you wrote ConnectBot? great application (and I think I gave you already 5 stars anyway:P Jun 02 19:01:33 I get tons of emails from the Terminal Emulator app Jun 02 19:01:54 fffffffffffffffffffffffffffff Jun 02 19:02:05 and now I just deleted the file in the branch when I made a backup in the trunk Jun 02 19:02:07 vol: It won't let you open the project or what? Jun 02 19:02:13 the project opens, but it has "errors" Jun 02 19:02:30 target "compile" does not exist in this project! (orly?) Jun 02 19:02:53 THAT'll teach you to mess with Eclipse. Jun 02 19:03:01 vol, if you figure out how to get eclipse to not care about the build.xml file, please let me know Jun 02 19:03:02 but I didn't even mess with eclipse : ( Jun 02 19:03:41 nevermind, the eclipse plugin had been merged into android source Jun 02 19:04:11 kRutOn, I got this one a few months ago and had to save it for posterity: http://static.evancharlton.com/sigh.txt Jun 02 19:04:51 KNY: o m g Jun 02 19:05:04 wow, I don't even know what that says Jun 02 19:05:05 behold, our users. Jun 02 19:05:08 we're so fscked. Jun 02 19:05:09 ctate, exactly. Jun 02 19:05:10 KNY: That's pretty amazing Jun 02 19:05:10 * kRutOn runs it through google translate Jun 02 19:06:00 Translate made more clear: I am a high degree of low profile for my space. Jun 02 19:06:12 KNY: well .. he's talking about music .. I think .. so it should be expected to be down or loud Jun 02 19:06:20 haha Jun 02 19:07:02 ... I'm not english, but "apreshaeted" makes even me cringe Jun 02 19:07:15 what's terrifying to me is to go into #android-chat and pick a random person. This person likely represents an average android user. Now, statistically, ~50% of the population is below the mean... Jun 02 19:07:24 no, 50% is below the median. Jun 02 19:07:33 ctate, that's why I said "about 50%" Jun 02 19:07:42 welcome to #pedant ! Jun 02 19:07:45 :) Jun 02 19:08:11 I know it's not exactly accurate and the android community probably actually leans more to the nerdy side, but my point still stands Jun 02 19:08:33 KNY: I translated it for you: http://the-b.org/~kenny/temp/sigh-translated.txt Jun 02 19:09:01 hahaha Jun 02 19:09:09 it makes more sense translated Jun 02 19:09:34 Apparently it's an official email since the UN is involved. Jun 02 19:09:39 kRutOn, you have an infinite loop here: http://the-b.org/~kenny/temp/ Jun 02 19:09:48 yeah, shit, I should have replied! they'll be coming for me any day now Jun 02 19:14:51 KNY: still .. the guy is trying at least to be civil. That's a bonus :) Jun 02 19:15:11 haha true Jun 02 19:16:13 KNY: of course, there could be some really nasty stuff in there. hard to tell ;) Jun 02 19:20:15 what's this ? Jun 02 19:23:25 TD, discussing an email I got a few months back: http://static.evancharlton.com/sigh.txt Jun 02 19:24:28 yeah, i see a lot of badly written comments on the market. i don't read too much into it Jun 02 19:26:08 anyone knows what to do when aapt is crashing in elicpse? Jun 02 19:26:34 aapt crashes on my eclipse everytime i try to build Jun 02 19:26:51 chouman82: do you get any details on the crash? Jun 02 19:27:06 i can debug it Jun 02 19:27:43 ok..sometimes with adt has issues it'll give me either stack traces or errors in popups Jun 02 19:27:45 in ms studio it just says frames below may be incorrect and/or missing, no symbols loaded for aapt.exe Jun 02 19:27:57 ahh, I see Jun 02 19:28:38 yea Jun 02 19:28:41 no sure wat is going on Jun 02 19:29:07 says that there is unhandled exception at a specific address in aapt.exe Jun 02 19:29:17 and access violation writing location 0x00000000 Jun 02 19:33:41 ok looks like it's caused by my new nine patch file Jun 02 19:33:57 ah Jun 02 19:47:03 anybody wants to give this a try? http://www.reghardware.co.uk/2009/06/02/crocodile_keyboard/ Jun 02 19:48:22 And get sued? no thans Jun 02 19:48:25 ks Jun 02 19:50:09 kRutOn, well, I assume that was submitted in the UK, it doesn't say if it was an international patent Jun 02 19:50:45 but if it was submitted to the US, you're free to go ahead an implement it until the patent is granted (just be ready to take it down when it is granted) Jun 02 20:02:31 sammyF, I just got the following email: "Hey I have installed this app g1central and it is not allowing me to sign in or do anthing wat am I doing wrong?" Jun 02 20:02:41 I told you so :-) Jun 02 20:03:09 KNY, do you know how to user the RelativeLayout from code ? not using an XML layout? Jun 02 20:03:42 nwmotogeek, a) why did you ask me specifically? b) check the documentation Jun 02 20:07:19 Well, because you always seem to have the answer Jun 02 20:07:45 the documentation isn't helpful in this regard Jun 02 20:08:26 :) Jun 02 20:08:43 nwmotogeek, it might help if you explained what you were trying to do and what problems you were running into Jun 02 20:08:59 asking vague questions doesn't help anything and only serves to waste time Jun 02 20:09:18 nwmotogeek: the key is to set rules on the child view's RelativeLayout.LayoutParams Jun 02 20:10:11 I am trying to use an ArrayAdapter to generate list UI elements automatically Jun 02 20:10:26 overriding the GetView() in arrayadapter Jun 02 20:11:04 just inflate from xml, that's easier Jun 02 20:11:10 but you can do from code Jun 02 20:12:11 The ArrayAdapter doesn't have the setContentView() , or is there another way? Jun 02 20:12:21 you're lost Jun 02 20:12:45 find some examples either in apidemos, or on the web Jun 02 20:13:20 basically you inflate a view using a LayoutInflator and return this view in getView() Jun 02 20:13:29 and attempt to reuse convertView if availble Jun 02 20:14:03 I will look into the LayoutInflator, thx Jun 02 20:14:23 so, when the adt plugin runs dx, the dex file contains all the class listings for my included jar, but when I run it via my own build script, the dex file doesn't contain the class listings from my included jar, even though the jar file is shown to be scanned by dx Jun 02 20:16:18 is there something I need to do before I run dx in order to get the classes from the jars included properly? Jun 02 20:23:40 Hi all, I want to make a Mask effect with 2 bitmaps. The first has to be masked by the second. What is the best way? I need it to redraw portions of the screen that are involved in animations. I have an object (bitmap) that moves on the screen and i need to redraw its last Jun 02 20:23:40 position with a mask of the background bitmap. Jun 02 20:43:11 vol, you still having build.xml problems? Jun 02 20:48:25 I'm making an application that among other things adds contacts.. I want to check and see if the contact exists already, either by name or phone number.. are there any cool levenshtein'ish functions that can help me match partials? Jun 02 20:51:25 KNY: no Jun 02 20:51:33 I copied the build.xml file to another file Jun 02 20:51:37 deleted the original Jun 02 20:51:39 refreshed Jun 02 20:51:41 then moved it back Jun 02 20:51:50 hey wow eclipse no longer cares for some reason! Jun 02 20:52:02 isn't open source software wonderful? Jun 02 20:52:18 yes Jun 02 20:52:20 speaking of which Jun 02 20:52:21 vol, simpler solution: window -> preferences -> ant -> editor -> problems tab -> [X] Ignore all buildfile problems Jun 02 20:52:27 ... Jun 02 20:52:31 you win, kny Jun 02 20:52:33 actually, s/open source // Jun 02 20:52:38 anyway, debugging problems now! Jun 02 20:52:57 my coworker is getting the following when he attempts to attach to the gdbserver process with arm-eabi-gdb Jun 02 20:53:06 Error while mapping shared library sections: Jun 02 20:53:06 /system/bin/linker: No such file or directory. Jun 02 20:53:12 you haven't lived til you've tried to debug a JNI crash :) Jun 02 20:53:35 ctate: since you've lived a little maybe you know why this is happening when he attempts to attach Jun 02 20:53:35 vol: double ewe tee eff? Jun 02 20:53:54 if you adb shell to the device/emulator is it there? Jun 02 20:53:59 ctate, on my last co-op there was a bug that only showed in the obfuscated builds. debugging decompiled obfuscated code is loads of fun, let me tell you Jun 02 20:54:03 yes :P Jun 02 20:54:06 the way we're doing this is Jun 02 20:54:14 vol: kill me now? Jun 02 20:54:15 windows machine running emu, also running ubuntu vbox Jun 02 20:54:22 KNY: been there Jun 02 20:54:27 ubuntu doing ssh forward of port 1234 to windows machine Jun 02 20:54:32 adb forward tcp:1234 tcp:1234 Jun 02 20:54:34 KNY: i was one of the people who ported Sun's pjava JVM to BeOS Jun 02 20:54:44 so now we use gdbserver and attach to port 1234 Jun 02 20:54:52 this involved an enormous amount of "why doesn't such-and-such applet work?" Jun 02 20:54:54 so a direct adb attempt won't work from vbox Jun 02 20:55:02 ctate, nice Jun 02 20:55:13 vol: whimper Jun 02 20:55:25 KNY: no, it wasn't "nice" in any sense of the word :P Jun 02 20:55:41 ctate, it makes for a nice IRC "topper" discussion :) Jun 02 20:55:46 ha Jun 02 20:55:50 so, no idea? googling for this error gets either no reply forum posts, or "hey why don't you try using strace to figure out your problem?" Jun 02 20:56:01 vol: no clue on this end, sorry. Jun 02 20:56:05 ughh Jun 02 20:56:08 yeah. :( Jun 02 20:56:20 don't want to tell him "uh, try making clean and remaking" Jun 02 20:56:23 as soon as you said "gdbserver" you were off in a world unlike mine Jun 02 20:56:25 but that might be what I get to do ._. Jun 02 20:56:41 well tbh, it generally works Jun 02 20:56:44 but when it doesn't.... Jun 02 20:56:49 mmhmm Jun 02 20:56:59 Oh, you're trying to do it this way? You fool! Why aren't you running BSD when you do this? Jun 02 20:57:16 bwaha Jun 02 20:57:25 heh Jun 02 20:57:29 Why would you use windows at work, even though that's what work gave you to use? You should be doing all of this on your linux machine! And work should be happy that you reformatted it! Jun 02 20:57:42 I seriously got kicked from #javascript here for asking for solutions that would work for IE6 Jun 02 20:57:49 I think every .NET programmer I've met has had a neckbeard Jun 02 20:57:54 all of their suggestions was "make your client (this was pfizer btw) upgrade to firefox) Jun 02 20:58:08 vol: sheesh Jun 02 20:58:20 I swear half of the people on freenode live in their parents basements Jun 02 20:58:25 i totally sympathize on both sides of that, though Jun 02 20:58:27 like it or not windows is the way of the business world Jun 02 20:58:37 * ctate <- former mobile browser developer Jun 02 20:58:43 you can't just wish it away, no matter how much you hate it Jun 02 20:58:52 "Make it render like IE6" is the saddest phrase in the world Jun 02 20:59:00 ctate, you're giving me flashbacks Jun 02 20:59:09 : ( Jun 02 20:59:10 yeah Jun 02 20:59:27 IE6's rendering is broken in ways that are really difficult to comprehend Jun 02 20:59:28 I was lollin a little at I/O Jun 02 20:59:40 when someone mentioned that wow this HTML 5 stuff is pretty golly great and all, but what about MS? Jun 02 20:59:40 in the "how the fsck could it be broken LIKE THAT?" sense Jun 02 20:59:44 (crickets chirp) Jun 02 20:59:49 ha ha yeah Jun 02 20:59:58 "well, we'e heard great things from them about how they plan on standards compliance!" Jun 02 21:00:00 i'm sure they'll get right on it when CSS3 is finalized Jun 02 21:00:21 I'm pretty psyched on CSS3 because then MS might have CSS1 compliance by then Jun 02 21:00:25 haha Jun 02 21:00:32 for them, "standards compliance" means "bringing the standard into [MS] compliance" Jun 02 21:00:39 yeah Jun 02 21:00:41 oh hey san isn't here Jun 02 21:00:46 ctate: think he might have a clue? Jun 02 21:00:51 conceivably Jun 02 21:09:22 hello. I want to make a simple application which shows a xml dom tree. what control should I use for the tree ? Jun 02 21:25:19 Is there a way in which you can detect whether a device has a keyboard or not. It seems that Resources.getSystem().getConfiguration().keyboard is set to KEYBOARD_UNDEFINED on the G1 and Magic Jun 02 21:25:59 (which doesn't seem very useful) Jun 02 21:28:30 oh wait, it's not in the system resources Jun 02 21:29:15 I guess it's conceivable the keyboard can change per-application... Jun 02 21:29:59 Rumor that Android supports multiple users simultaneously in 3.. 2.. 1.. Jun 02 21:31:43 it's more that each app can have its own Configuration composite state Jun 02 21:31:48 and keyboard happens to be part of that Jun 02 21:32:14 anyway yes, look in your apps own live Configuration, not the system :) Jun 02 22:21:12 if I set the routing on audiomanager, should I set it back when I'm done? Jun 02 22:22:42 Quick Q: I feel like I'm being dense, but I can't see from the API docs how to properly create a RotateDrawable from programmatically, just from XML. Jun 02 22:22:54 anyone know of some short example code to show how it's done? Jun 02 22:27:06 or can point out what I'm missing? :) Jun 02 22:27:44 I have a ListActivity in my application. I am trying to add a long press context menu to my items. I can easily do this if the items in the list are simple. I want to put some text along with a checkbox. When I setup my list like this, the long press context menu no longer works. If someone can point me in the right direction it would be much appreciated. Jun 02 22:28:30 how would a checkbox work on a long-press context, since you can't click the checkbox since you're already holding down your finger? Jun 02 22:28:43 right Jun 02 22:28:48 but if you look at the alarm application Jun 02 22:28:55 it is a list basically that has a checkbox on the side Jun 02 22:28:59 but you can still do long press Jun 02 22:29:00 on the text Jun 02 22:29:20 oh I see... the basic menu has the checkbox, then you want a long press context from that. Jun 02 22:29:23 yeah, that should work. Jun 02 22:29:37 Still learning the APIs myself though, so I can't suggest anything. Jun 02 22:29:47 ah Jun 02 22:29:59 is the code for the alarm app available anywhere Jun 02 22:31:13 I would suspect it is, since I thought the base platform is open source. Jun 02 22:31:20 But I don't know where. Have you poked through /platforms/android-1.5/samples/ already? Jun 02 22:37:07 unit3: i've looked through briefly but at the time i wasn't looking for the alarm app so i will look again. thanks for the idea Jun 02 22:37:32 yeah, I don't see the alarm in there specifically, but there might be something that does what you're looking for. Jun 02 22:37:35 worth a peek anyway. Jun 02 22:41:04 bwr: the alarmclock app is here http://android.git.kernel.org/?p=platform/packages/apps/AlarmClock.git;a=summary Jun 02 22:41:14 shales: thanks! Jun 02 22:43:02 can someone tell me which event should I hook into if I want to track the scrolling movement on a map? Jun 02 22:46:32 looks like it inherits from android.view.ViewGroup Jun 02 22:46:36 so whatever you'd use for that should work. Jun 02 22:47:50 creating an onTrackballEvent handler for it should work, I'd think. Jun 02 22:47:59 Is it giving you problems? Jun 02 22:50:02 unit3: I tried using View.onScrollChanged(), but it never fires. I need it to fire on both user drag and animateTo() Jun 02 22:50:46 hmm... I think the map's something that it's painting to though, to create the illusion of scrolling. not actual scrolling. Jun 02 22:50:56 unit3: yeah, that's what I figured :) Jun 02 22:55:01 Not seeing anything that's exactly what you want. You could use the onDraw() event to do stuff every time it redraws, but that doesn't exactly "track" the scrolling. Jun 02 22:55:08 Can you give me a better idea what you're trying to do? Jun 02 22:58:37 unit3: really I'm just trying to mimic the way the maps app works. when you click an overlayitem, it draws the popup above the point, then moves the map to it. I was able to do it by overriding Overlay.draw(), but it was too slow. Jun 02 22:59:55 I was hoping there would be a map movement event that would return the movement values so I could just reposition my popup. Jun 02 23:00:04 ahhh... Jun 02 23:00:12 Were you trying something like this before? http://davanum.wordpress.com/2007/11/19/drawing-overlays-for-android-maps-aka-search-for-starbucks/ Jun 02 23:00:26 it seems reasonably responsive for me last time I looked at it, but I haven't looked in any great detail. Jun 02 23:00:56 I mean, for working with overlays, it doesn't handle the clicking and whatever. Jun 02 23:01:22 I think this is closer to what you're talking about: http://www.androidcompetencycenter.com/tag/map-overlay/ Jun 02 23:01:25 yeah, I wasn't doing anything with the canvas given to draw() though, I have a LinearLayout that serves as my popup and I was using draw to set visibility and positioning Jun 02 23:02:18 Oh... hmm... because I think when you use the actual map overlays it's supposed to track and adjust positioning for you? Jun 02 23:02:21 I haven't tested it though. Jun 02 23:03:51 I suspect you'll have more luck doing it that way though, using map Overlay objects, since that's sort of the recommended way. Jun 02 23:03:57 that's what it did. my draw() called private methods drawItems() and drawPopup(), but the popup repositioning was too slow. draw() gets called an enormous number of times, maybe I can figure out a way to lighten my drawPopup() Jun 02 23:04:19 hmm... maybe. Jun 02 23:04:32 I guess it does depend on what and how you're drawing. Jun 02 23:07:39 Now if I could just find some code examples for using RotateDrawable. ;) Jun 02 23:40:46 Help. I got a T-Mobile G1 (with pre-cupcake, so I assume its 1.1). I'm currently teaching myself some android devving, but I find the emulator to be too slow, so I wanted to use my phone as a debugging device. But my phone uses Android 1.1, and it gives me an error that it's 1.5 (I'm using eclipse). Is there any way to convert a project to 1.1 in eclipse? I tried doing so in project properties, but it does Jun 02 23:41:25 specifically, I get this erorr: [2009-06-02 19:41:11 - HelloAndroid] ERROR: Application requires API version 3. Device API version is 2 (Android 1.1). Jun 02 23:43:18 the9a3eedi: you have to change your manifest file. Jun 02 23:43:44 Jun 02 23:44:18 you have there 3 instead of 2, 3 is for 1.5, 2 for 1.1 Jun 03 01:40:37 I'm not able to use the Eclipse IDE to change my location control in the emulator tab through the debugger and have the app respond in SDK1.5r2. This worked fine in SDK 1.1, does this work for others? Jun 03 01:59:31 Sorry for the false alarm. Looks like I have commented out my mgr.requestLocationUpdates()) line. All seems to be working now. Jun 03 02:07:32 Interestingly enough it looks like mgr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener); doesn't work but using LocationManager.GPS_PROVIDER does pickup changes in the debugger. Jun 03 02:28:32 only for the emulator. when running on a physical device works fine... for me at least. Jun 03 02:54:30 Does anyone know if there is a way to detect a QWERTZ keyboard (German keyboard)? **** ENDING LOGGING AT Wed Jun 03 02:59:57 2009