00:00.08 | jasta | "Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.preferences.AndroidPReferencePage." |
00:00.21 | ttuttle | To quote one of my friends, who was a student in a C class I TAed: "Man pages are O(n). Asking you is O(1)." |
00:00.21 | xavd | oh, what version of eclipse are you running |
00:00.22 | xavd | ? |
00:00.23 | yakischloba | steventroughtons: better learn to read it, its hardly any different from any other API doc ;) |
00:00.27 | jasta | eclipse 3.2 |
00:00.31 | jasta | from Debian etch |
00:00.33 | xavd | ah yeah sorry, you have to use 3.3 now |
00:00.43 | steventroughtons | @yakischloba don't be silly, there are far more legible docs =) |
00:00.45 | xavd | we started using some 3.3 APIs |
00:00.46 | jasta | seriously? Ubuntu doesn't even have 3.3 packaged yet. |
00:01.06 | xavd | ugh really? |
00:01.19 | chomchom | really!? |
00:01.28 | romainguy_ | do you need a special package? |
00:01.34 | romainguy_ | can't you just grab Eclipse 3.3 from eclipse.org? |
00:01.35 | jasta | i certainly don't think so. i use ubuntu at work and haven't seen the update come by in the last week or so. perhaps it's a forked package. |
00:01.39 | ttuttle | Shit, I don't think Gentoo has 3.3 either. :-( |
00:01.46 | ttuttle | wants his Google workstation back. |
00:02.04 | morrildl | jasta: wow, that sucks |
00:02.04 | morrildl | crap |
00:02.10 | morrildl | jasta: are you using gcj-eclipse? |
00:02.15 | ttuttle | Wait, why do I need Eclipse again? |
00:02.15 | chomchom | I sympathize I work on a platform based off eclipse, the move was sore to upgrade from 3.2 in the build |
00:02.21 | jasta | yeah, ubuntu packages 3.2 still. |
00:02.30 | morrildl | ttuttle: you don't, but if you WANT it, compatibility is nice to have |
00:02.38 | ttuttle | morrildl: True. |
00:02.45 | ttuttle | has always preferred the command line. |
00:02.50 | jasta | this sucks. |
00:03.56 | ttuttle | jasta: Oh, come on. It's better than this morning! |
00:04.05 | morrildl | wow, why are these distros so far behind? I can understand being on 3.3, but 3.2 is 2 versions back |
00:04.14 | jasta | i just didn't think i'd have to break away from Debian packages to use this new SDK |
00:04.26 | ttuttle | jasta: Is etch testing or what? (I don't remember.) |
00:04.33 | morrildl | hmm |
00:04.37 | xavd | morrildl: 3.5M1 was released 10 days ago, it's even older now ;) |
00:04.40 | jasta | morrildl: Debian and Ubuntu are not necessarily about being bleeding edge. |
00:04.49 | jasta | ttuttle: etch is stable. |
00:04.52 | ttuttle | jasta: Oh. |
00:04.57 | ttuttle | jasta: Then why are you surprised? |
00:05.05 | jasta | because not even Ubuntu has this packaged. |
00:05.08 | chomchom | jasta: can you not use this: http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz? |
00:05.10 | ttuttle | jasta: stable doesn't upgrade unless there's a security or stability problem. |
00:05.11 | jasta | Debian surprises me less :) |
00:05.15 | ttuttle | jasta: Ah, okay. |
00:05.21 | ttuttle | jasta: I was gonna say, stable is supposed to be stable ;-) |
00:05.48 | chomchom | http://eclipse.dzone.com/articles/how-run-eclipse-33-ubuntu-710 |
00:05.51 | jasta | you guys should clarify this on the docs, by the way. |
00:05.58 | jasta | a lot of folks will be confused since Ubuntu is hugely popular. |
00:06.06 | ttuttle | romainguy_: You should suggest to someone that they put something up about the new SDK on openhandsetalliance.com. |
00:06.25 | romainguy_ | jasta: a lot of folks will be confused since Ubuntu is hugely popular << you'd be surprised by how many people use the SDK on Window vs Mac/Linux :) |
00:06.32 | ttuttle | romainguy_: It's sad, really. |
00:06.42 | ttuttle | romainguy_: Poor lockwood :-( |
00:07.07 | jasta | romainguy_: and therefore you should not consider Mac/Linux users? |
00:07.16 | romainguy_ | I did not say that |
00:07.19 | steventroughtons | setOnKeyListener(android.view.View.OnKeyListener) in android.view.View cannot be applied to (com.steventroughtonsmith.androidnuker) |
00:07.27 | steventroughtons | I guess you cant set the main java class to be a listener? |
00:07.29 | jasta | here you were trying to bend over backwards to handhold someone in here and you don't agree that a useful blurb about packaging deserves a place on the download instructions? |
00:07.35 | romainguy_ | I'm just trying to balance your assertion about Ubuntu being "hugely" popular |
00:07.43 | ttuttle | steventroughtons: Just add "implements android.view.View.OnKeyListener"? |
00:08.03 | romainguy_ | steventroughtons: you can, you need make the class implements OnKeyListener |
00:08.06 | steventroughtons | that was simple |
00:08.19 | ttuttle | steventroughtons: Oh, and implement the method(s) in OnKeyListener. |
00:08.22 | romainguy_ | you can also create a listener in place, by writing new View.OnKeyListener() { ... } |
00:08.26 | chomchom | yeah I think there should be an amendment to the docs for ubuntu users |
00:08.51 | ttuttle | There should just be a prominent warning saying "This version of the SDK now requires Eclipse 3.3." with some links to how to get it. |
00:09.13 | romainguy_ | ttuttle: agreed |
00:09.22 | morrildl | yeah, we'll add that |
00:09.43 | ttuttle | needs to start developing actual Android activities. |
00:10.29 | ttuttle | Waaaaaah, Settings doesn't work :-( |
00:11.00 | ttuttle | has been spoiled by running fresh development builds for three months on an actual phone. |
00:11.52 | jasta | random thought: the skateboarding android logo is awesome. you should promote that. |
00:12.46 | morrildl | heh, the pirate logo is also quite popular |
00:12.56 | ttuttle | There should be wallpapers available. |
00:13.01 | romainguy_ | they are |
00:13.06 | ttuttle | (By should I mean I think they should do it, not that there are.) |
00:13.10 | ttuttle | romainguy_: I mean phone wallpaper. |
00:13.15 | romainguy_ | ah |
00:13.18 | romainguy_ | no |
00:13.20 | romainguy_ | :p |
00:13.45 | romainguy_ | just put the 1024x768 versions on the emulator |
00:13.47 | romainguy_ | that should work ^^ |
00:13.48 | romainguy_ | http://code.google.com/android/goodies/index.html |
00:13.58 | jasta | romainguy_: what pirate? |
00:14.23 | ttuttle | romainguy_: May I Gtalk you? |
00:15.32 | romainguy_ | jasta: I didn't talk about a pirate |
00:15.45 | jasta | oh, morrildl i meant. my eyes got lost. |
00:16.09 | romainguy_ | :) |
00:17.16 | jasta | i feel dirty that i just deviated from Debian packages ;) |
00:17.20 | ttuttle | jasta: It's okay. |
00:17.25 | jasta | really dirty |
00:19.30 | *** join/#android sbok (n=kobs@unaffiliated/kobs) |
00:20.36 | morrildl | jasta: maybe that's just on some t-shirts we had made for the team. There is a version of the bugdroid with a peg leg and eye patch and a hook-hand |
00:20.51 | jasta | that would be great. |
00:20.57 | jasta | i have the skateboarding android shir t;) |
00:21.00 | morrildl | jasta: I'm thinking we probably won't publicly expose that one though. Android + Piracy? :) |
00:21.01 | jasta | megha sent it to me. |
00:21.05 | morrildl | jasta: nice |
00:21.21 | jasta | yeah, my gf sleeps in at night. hot. :) |
00:21.26 | jasta | in it* |
00:21.37 | morrildl | well they ARE very soft shirts |
00:21.43 | sbok | What happened to the eclipse plugin? "https://dl-ssl.google.com/android/eclipse/" |
00:21.43 | morrildl | my wife stole mine too |
00:21.51 | morrildl | sbok: there is no directory listing |
00:21.59 | morrildl | you can still install it per the instructions |
00:22.10 | morrildl | https://dl-ssl.google.com/android/eclipse/site.xml |
00:22.13 | morrildl | that should load |
00:22.19 | jasta | hmm, clearly menu stuffs has changed |
00:22.25 | jasta | reads up |
00:22.31 | sbok | okay, thanks |
00:22.32 | morrildl | jasta: yes, there is a new parameter |
00:22.37 | ttuttle | morrildl: Speaking of those... are there any extras? |
00:23.17 | *** part/#android morrildl (n=chatzill@69.36.227.135) |
00:24.28 | umdk1d3 | hmmmmm |
00:24.39 | umdk1d3 | continues looking around for how to create home-screen widgets |
00:24.48 | umdk1d3 | anyone already tackling writing a tutorial on it? |
00:24.53 | sbok | perhaps the android eclipse plugin page should be updated :-) |
00:25.33 | umdk1d3 | ive found android.widget.AnalogClock so far, but not sure if that is the home widget |
00:25.35 | romainguy_ | umdk1d3: you can't |
00:25.38 | romainguy_ | not in 1.0 |
00:25.46 | romainguy_ | widgets are baked in Home |
00:25.48 | umdk1d3 | waaaaat :'( |
00:25.51 | umdk1d3 | not cool :P |
00:25.52 | romainguy_ | but you can create custom shortcuts |
00:26.03 | umdk1d3 | hmm |
00:26.05 | romainguy_ | umdk1d3: we need to do it right for security reasons |
00:26.11 | f00f- | or create a new/better Home :) |
00:26.17 | umdk1d3 | lol |
00:26.23 | umdk1d3 | security hmm |
00:26.35 | umdk1d3 | they could request always on top and take up the entire screen i guess |
00:26.37 | romainguy_ | you don't want any app's code to run in Home :) |
00:26.58 | umdk1d3 | true, they couuld walk up the view heirarchy and try messing with other stuff |
00:27.16 | romainguy_ | or just use Home's permissions to do bad things |
00:27.22 | romainguy_ | Home has access to a bunch of things |
00:27.24 | umdk1d3 | oh yea forgot about that :/ |
00:28.21 | umdk1d3 | since we are signing things now, is home signed correctly in such a way that we can start bruteforcing its private key? ;) lol |
00:28.31 | umdk1d3 | *the google private key |
00:28.59 | umdk1d3 | prolly has plenty of bits to make it take forever th |
00:29.51 | jasta | romainguy_: there's a lot to learn from Home's source code here :) |
00:29.55 | jasta | is churning through it |
00:30.03 | umdk1d3 | chucles wondering how long android will be in "beta" |
00:30.05 | romainguy_ | jasta: yes :) |
00:30.18 | jasta | it's this type of meat iwa s looking for since day 1 |
00:30.18 | sbok | gmail has been in beta for 4 years :-/ |
00:30.34 | ttuttle | sbok: heh |
00:33.53 | jasta | 's eagle eye spots a NPE possibility in the Home sample :) |
00:34.04 | romainguy_ | where? |
00:34.22 | jasta | if manager.queryIntentActivities(...) returns null from loadApplications |
00:34.26 | romainguy_ | note that his code has been exercised quite a lot |
00:34.42 | jasta | mApplications will not be initialized, and therefore onDestroy() will fail. |
00:34.54 | romainguy_ | yeah |
00:34.58 | jasta | of course, you have bigger problems in that case, but still the symmetry looks bad :) |
00:35.01 | romainguy_ | for that to happen you need to remove all the applications |
00:35.08 | romainguy_ | not saying it cannot happen |
00:35.15 | romainguy_ | just that we don't give a shit :) |
00:35.49 | jasta | why do you initialize it like that, though? |
00:36.05 | romainguy_ | like what? |
00:36.05 | jasta | why not construct the HashMap statically and just declare mApplications final? |
00:36.16 | jasta | (just curious, Java is not my native tongue) |
00:36.28 | romainguy_ | because that way I can initialize the arraylist with the proper size |
00:36.35 | jasta | I'm JSL, Java as a Second Language :) |
00:36.36 | romainguy_ | it helps a litlte on the first startup |
00:36.41 | romainguy_ | either way would be fine |
00:36.53 | jasta | oh, ok, i thought that might be it since you can learn the size it needs to be in loadApplications |
00:37.50 | *** join/#android TSchultz55 (n=UsualSus@pool-71-185-204-110.phlapa.fios.verizon.net) |
00:39.58 | jasta | crap, View constructors changed. |
00:40.10 | romainguy_ | yes |
00:40.23 | romainguy_ | we just removed the Map parameter |
00:40.31 | chomchom | I just bought a book on Android today... the peeps who come fresh to android Are going to have a heck of a time when they find so many of the names have been changed |
00:40.32 | jasta | oh, that's more convenient actually. |
00:40.36 | ttuttle | chomchom: heh |
00:40.49 | ttuttle | chomchom: /me thinks it's funny that people are already writing books. Do they not understand "early look"? |
00:41.29 | romainguy_ | the fundamentals don't change |
00:41.31 | umdk1d3 | dances around room |
00:41.36 | romainguy_ | Intents, Activities, layouts, etc. are still here |
00:41.42 | chomchom | No the fundamentals are the same |
00:41.54 | romainguy_ | in the scope of a book, the changes we made in this SDK don't really matter |
00:41.58 | romainguy_ | sure they need to update the samples |
00:42.14 | romainguy_ | but it's very unlikely to impact the structure or the content of the book in a significant way |
00:42.45 | chomchom | but it will still hit them a bit to see that there is no such thing as OnFreeze() and such. They won't necessarily be savy enough to check the JDiff of the versions or the changelog |
00:43.11 | chomchom | yeah, thats why I was asking if the author was in here |
00:43.11 | romainguy_ | I'm pretty sure they'll check the changelogs |
00:43.24 | jasta | scratches his head |
00:43.35 | chomchom | his publishers will be pretty miffed with him no doubt |
00:43.46 | romainguy_ | what book are you talking about? |
00:43.55 | romainguy_ | Mark Murphy is publishing it on his own I think |
00:43.58 | jasta | PaintDrawable was changed in a strange way? |
00:44.09 | romainguy_ | jasta: define strange |
00:44.14 | jasta | you removed setPaint? :) |
00:44.20 | ttuttle | romainguy_: Do you know where the keycode constants are? |
00:44.32 | chomchom | The "busy coders" android book ?: http://www.amazon.co.uk/Busy-Coders-Guide-Android-Development/dp/0981678009/ref=sr_1_10?ie=UTF8&s=books&qid=1219097259&sr=1-10 |
00:44.37 | romainguy_ | jasta: yup, now you getPaint() instead |
00:44.45 | romainguy_ | ttuttle: KeyEvent |
00:44.55 | romainguy_ | chomchom: yeah he's is own publisher |
00:44.56 | jasta | oh ok. t hen i modify the paint? |
00:45.01 | romainguy_ | that's right |
00:45.19 | romainguy_ | PaintDrawable is now a ShapeDrawable, which makes it much more useful |
00:45.40 | jasta | i was using it previously to make a tiled bitmap drawable |
00:45.47 | jasta | i bet there's probably a better way now anyway? |
00:45.47 | romainguy_ | no need too |
00:45.49 | romainguy_ | to |
00:45.53 | romainguy_ | BitmapDrawable supports tiling now |
00:46.00 | romainguy_ | launch the maps application |
00:46.11 | *** join/#android hacked_kernel (n=hacked_k@41.234.165.172) |
00:46.18 | romainguy_ | it looks like it starts really fast because the theme defines a window background that uses tiling in a BitmapDrawable |
00:46.22 | chomchom | ah, so he'll be kicking himself |
00:46.40 | jasta | romainguy_: can i get a bitmap drawable from a resource and just set its tile mode then? |
00:46.41 | romainguy_ | example: |
00:46.42 | romainguy_ | <bitmap xmlns:android="http://schemas.android.com/apk/res/android" |
00:46.42 | romainguy_ | <PROTECTED> |
00:46.46 | romainguy_ | jasta: yes |
00:46.48 | hacked_kernel | Where to find the supported devices? |
00:47.11 | *** join/#android morrildl (n=chatzill@76-217-210-185.lightspeed.sntcca.sbcglobal.net) |
00:47.27 | jasta | romainguy_: excellent, that trimmed down a few lines from this project :) |
00:47.50 | hacked_kernel | I want to know the requirements that should be found on a mobile phone to run Android OS |
00:48.15 | jasta | romainguy_: unrelated to the latest SDK, but what is the defStyle form of the view constructor used for? would i ever want to worry about overriding that? |
00:48.34 | romainguy_ | it's very specific |
00:48.44 | romainguy_ | for instance a Button is a TextView with a buttonStyle defStyle |
00:48.52 | romainguy_ | you probably don't ever want to even bother with it |
00:49.19 | romainguy_ | it's also what's supplied when you use style="..." in XML |
00:52.31 | jasta | grr, insurance is such a scam |
00:52.46 | ttuttle | jasta: lol |
00:53.11 | jasta | i was in the hospital for less than 12 hours 2 years ago and got slapped with a $3000 bill from the hospital, *AFTER* insurance paid their portion. |
00:53.26 | romainguy_ | haah |
00:53.30 | romainguy_ | I got that a year ago |
00:53.38 | romainguy_ | my insurance ended up paying for everything |
00:53.50 | romainguy_ | but only after a few months |
00:53.59 | dmoffett | jasta: it would really make you sick if you knew how much my brother in law makes as an insurance executive. The salaries are offensive. |
00:54.04 | romainguy_ | misses France sometimes :) |
00:54.06 | ttuttle | dmoffett: |
00:54.13 | ttuttle | dmoffett: Feel free to kick some of that back to the channel. |
00:54.51 | jasta | oh yeah by the way and it was because of criminal assault. so i paid $3000 to get beat up outside of a bar. really cool. |
00:55.00 | ttuttle | jasta: That sucks big-time. |
00:55.07 | jasta | and i lost $800 in pay from my work for extended disability |
00:55.07 | ttuttle | jasta: Did they catch the attacker? |
00:55.15 | jasta | ttuttle: if they did i wouldnt have had to pay anything |
00:55.20 | jasta | and it was 5 guys |
00:55.21 | ttuttle | jasta: Yeah, I was gonna say. |
00:55.21 | jasta | so... |
00:55.23 | ttuttle | jasta: Ouch. |
00:55.37 | ttuttle | -> voicemail. |
00:57.46 | jasta | i just got my latest bill forwarded to me because i was trying to fight it |
00:57.49 | jasta | they billed me over 3 increments |
00:57.58 | jasta | and i called it a scam so i fought them on the last one |
00:58.03 | jasta | and i lost, of course, despite any real documentation. |
00:58.13 | jasta | i'd have to take them to court over $1k, and its not worth it. |
00:58.32 | ttuttle | jasta: Yeah, that becomes a bad deal eventually. |
00:58.38 | chomchom | romainguy__: just to let you know, there are a few dead links from the JDiff output: http://code.google.com/android/migrating/m5-0.9/changes/pkg_android.content.html#Resources |
00:59.09 | chomchom | click around at the bottom on the right |
01:02.18 | jasta | nice touch on the calculator app guys |
01:04.30 | jasta | romainguy_: may i make a suggestion for the alarm app? |
01:04.37 | romainguy_ | sure |
01:04.41 | jasta | let us create "relative" alarms like a "Nap alarm" for +1h. |
01:04.49 | jasta | and then keep in the ability to check/uncheck them in. |
01:04.58 | jasta | so i could easily one click on a nap alarm |
01:05.00 | jasta | and go take a nap |
01:05.49 | chomchom | thats a nice idea but does differ from convention |
01:05.56 | chomchom | A few classes seem to have completely disappeared from the JDiff output. PixelCalculator isn't mentioned but it looks to have certainly been removed. |
01:10.08 | *** join/#android OpnSrc1 (i=harisha1@gateway/tor/x-c5894b4701d8667d) |
01:10.35 | jasta | romainguy_: did you take any more of the backgrounds in the wallpaper selection? |
01:10.53 | romainguy_ | all of them |
01:11.17 | romainguy_ | they're all under Creative Commons on my Flickr account |
01:14.08 | morrildl | jasta: that would be an awesome use of a Home screen shortcut |
01:14.31 | morrildl | create a "Now + 1h" shortcut that jumps straight to the new-alarm screen in Alarm |
01:15.20 | morrildl | chomchom: hmm, thanks, I will check into the jdiff output |
01:16.03 | chomchom | JDiff is awesome |
01:23.11 | *** join/#android meoblast001 (n=meoblast@dynamic-acs-24-239-93-241.zoominternet.net) |
01:24.01 | Dougie187 | morrildl: i bet your happy that jasta is happy with the new sdk |
01:24.28 | Dougie187 | it sure makes your job a bit easier. |
01:24.29 | Dougie187 | heh |
01:25.19 | chomchom | give him a day and he'll be picketting |
01:25.50 | Dougie187 | eh, he doesn't tend to to flip-flop that much. |
01:30.07 | Dougie187 | anyways, im out |
01:30.09 | Dougie187 | see ya later |
01:30.09 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
01:30.22 | meoblast001 | Dougie lol |
01:30.32 | meoblast001 | thats a funny name |
01:30.50 | meoblast001 | well... not really |
01:30.53 | meoblast001 | just a little |
01:34.49 | chomchom | So is there now no architecture recognition of a sub activity? With the removal of startSubActivity . The system now just recognises it as a sub activity when started form within another? |
01:35.15 | dmoffett | For a row layout in a ListView where you would like the columns to align vertically which layout would be best? Currently I am using Absolute layout which has broken with the latest sdk. |
01:35.40 | romainguy_ | chomchom: startSubActivity==startActivityForResult |
01:35.56 | romainguy_ | dmoffett: AbsoluteLayout should not be broken |
01:36.01 | romainguy_ | and you should not be using it anyway |
01:36.05 | dmoffett | right |
01:36.15 | romainguy_ | what's broken with AbsoluteLayout? |
01:36.20 | dmoffett | so I am taking the opportunity to re-write. |
01:36.54 | *** join/#android morrildl_ (n=chatzill@72.14.224.1) |
01:37.00 | chomchom | Ah thx |
01:37.04 | dmoffett | Sorry I should have said I am using methods that are no longer supported. |
01:37.12 | romainguy_ | ah :) |
01:38.07 | dmoffett | Just getting a nice Eclipse crash loading an xml file btw. |
01:38.23 | romainguy_ | tell that to xavd :) |
01:38.31 | dmoffett | Looking for the bug url. |
01:41.37 | chomchom | With the removal of OpenDatabase and then addition of openOrCreateDatabase(String, int, CursorFactory) does that mean an app is only allowed one DB? |
01:41.56 | romainguy_ | ask jham :) |
01:41.59 | romainguy_ | when he's around |
01:42.02 | *** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net) |
01:45.05 | chomchom | jham eh? I've never even noticed him. Hes a quiet one. |
01:46.12 | *** join/#android chumphries (n=chumphri@c-98-235-132-216.hsd1.pa.comcast.net) |
01:50.39 | *** join/#android fatfinger (n=ding@winax24-181.dialup.optusnet.com.au) |
01:50.49 | *** part/#android fatfinger (n=ding@winax24-181.dialup.optusnet.com.au) |
01:51.23 | morrildl_ | jham is here? |
01:51.38 | romainguy_ | he was earlier today |
01:56.58 | xavd | dmoffett: do you have the .log for the eclipe crash? |
01:57.19 | dmoffett | working on getting the information together. |
01:58.56 | dmoffett | xavd: where is the .log file written on OSX? |
01:59.10 | xavd | in your workspace under the .metadata folder |
01:59.24 | dmoffett | thanks |
02:00.57 | dmoffett | xavd: I was about to open a bug or would you have me do it another way? |
02:01.05 | xavd | bug is fine |
02:06.34 | dmoffett | xavd: Issue 797 |
02:06.41 | xavd | thanks! |
02:07.20 | dmoffett | xavd: dinner for me but if you need more info let me know. |
02:07.58 | xavd | ok thanks |
02:22.09 | chomchom | Argh |
02:22.12 | chomchom | I am defeated |
02:22.32 | chomchom | its 3:22am, I don't think I've been kept up so late by android since the ADC |
02:25.52 | chomchom | nighty |
02:26.18 | ttuttle | lol |
02:26.22 | ttuttle | 'night |
02:28.15 | *** join/#android jott (n=j@unaffiliated/jott) |
02:45.02 | *** join/#android jasta (n=jasta@75-165-30-37.tukw.qwest.net) |
02:55.52 | *** join/#android muthu (n=sushmu@59.92.89.234) |
02:55.57 | muthu | wohooo! |
02:57.40 | muthu | any feedbacks on 0.9? |
03:08.00 | *** join/#android Razec (n=razec@189.56.183.198) |
03:09.03 | *** join/#android Dralspire (n=dralspir@56-196.126-70.tampabay.res.rr.com) |
03:11.47 | jasta | yawn |
03:15.59 | jasta | romainguy_: is the official tag for this release 0.9r1 or just 0.9? |
03:23.09 | jasonchen | jasta: it's 0.9_r1. if there are point release type updates we'll rev release number |
03:23.34 | jasonchen | i think the roadmap doc gets into the naming convention semantics a bit |
03:30.59 | jasta | oh boy, diving into this old code is scary :) |
03:31.15 | muthu | have fun ;) |
03:31.19 | jasta | phew ;) |
03:31.28 | jasta | there's lots more than just updating to M5 that i need to do :) |
03:31.38 | jasta | there are quite a few new practices i have adopted. |
03:31.49 | jasta | i was learning Java for Android, which was a big part of the initial sloppiness. |
03:33.52 | muthu | now with the new sdk, you must rock! |
03:35.34 | swetland | it is in the release notes. rocking: mandatory. |
03:38.25 | umdk1d3 | mmm |
03:38.35 | umdk1d3 | why wont my videoview play .3gp :( |
03:38.52 | umdk1d3 | just gives generic error 08-19 03:36:50.965: DEBUG/VideoView(2000): Error: -1,0 |
03:41.06 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net) |
03:42.04 | meoblast001 | anyone here know how to instruct a cd drive to spin backwards? |
03:42.41 | jasta | look up SCSI and/or ATAPI commands. |
03:43.46 | meoblast001 | jasta: thanx :D |
03:44.13 | meoblast001 | jasta: will that help me read gamecube discs with a PC? |
03:44.17 | meoblast001 | i want to play mario kart |
03:44.53 | umdk1d3 | aaaand now im getting 08-19 03:44:28.585: ERROR/MediaPlayer(2081): Error (-4,0) trying to play local file |
03:44.56 | umdk1d3 | how cryptic lol |
03:50.33 | dmoffett | xavd: I upgraded to eclipse 3.4.0. Eclipse does not crash but xml files will not display. |
03:53.00 | dmoffett | Is there a version of Eclipse that is known to work with Android .9 on Leopard? |
03:54.15 | umdk1d3 | dmoffett: with excel, your changing the tabs at the bottom to swtich over to raw xml view right? |
03:54.36 | umdk1d3 | with 0.9 there are some gui-helpers that can hide the raw xml |
03:56.04 | dmoffett | umdk1d3: thank you, let me check that out. |
03:56.48 | jasta | awesome, i just wrote a cool deepcd alias in bash for working with stupid java source trees :) |
03:57.24 | jasta | changes dir through all the mostly empty directories at once |
04:15.02 | umdk1d3 | hmm |
04:15.08 | umdk1d3 | about that 3.5" disk issue |
04:15.12 | umdk1d3 | we should hack together a solution |
04:15.26 | umdk1d3 | does sdio support floppys? |
04:15.58 | jasonchen | would pay to see someone carry 3.5" disks along w/ their phone |
04:16.32 | umdk1d3 | would totally be a battery drain |
04:17.47 | jasonchen | 5.25" disk support almost made the release |
04:17.58 | jasonchen | but got cut at the last minute too |
04:18.42 | dmoffett | Wasn't there a lot of discussion about a rotary dial? |
04:19.14 | jasonchen | yeah, that and a telegraph interface |
04:21.12 | yakischloba | theres the android killer app. rotary dialer |
04:21.17 | umdk1d3 | =D |
04:21.21 | umdk1d3 | i would buy it |
04:28.33 | jerkface03 | that may not be such a bad idea? baby boomers and what not? |
04:38.00 | michaelnovakjr | yawns |
04:42.58 | jasta | hmm, am i missing something. PhoneSubInfoManager isn't documented? |
04:44.47 | yakischloba | michaelnovakjr: welcome to jasta's world |
04:44.57 | michaelnovakjr | :) |
04:45.00 | jasta | my world? |
04:45.05 | yakischloba | yawning ;) |
04:45.20 | michaelnovakjr | oh, its late here :) |
04:45.32 | yakischloba | i see jasta yawn more times in a day than I piss |
04:45.51 | michaelnovakjr | i'd hope so, otherwise you'd have a bladder problem :) |
04:46.00 | yakischloba | heh |
04:47.24 | *** join/#android dueynz (n=duey@203.96.223.40) |
04:47.38 | jasta | updating my project to 0.9r1 sucks |
04:47.39 | jasta | :) |
04:47.54 | jasta | forces me to look at all this hideous code. i think the next couple of weeks should go into major rewrites more than anything else |
04:48.29 | michaelnovakjr | its justified jasta |
04:54.41 | muthu | migration took 5 mins ;) |
04:54.51 | michaelnovakjr | you don't count :) |
04:54.58 | muthu | lol |
04:55.32 | michaelnovakjr | do you have screenshots? |
05:01.44 | michaelnovakjr | guess not :) |
05:33.20 | romainguy_ | re |
05:51.48 | *** join/#android romainguy__ (n=gfx@72.14.224.1) |
05:54.00 | jasta | hmm, sqliteopenhelper changed a lot |
05:55.32 | jasta | oh nm no it didn't |
06:00.51 | *** join/#android davidw (n=davidw@213.47.186.146) |
06:07.01 | jasta | really, i don't get this PhoneSubInfoManager thing? |
06:07.16 | jasta | did someone forget to include it? or am i supposed to use TelephonyManager somehow? |
06:07.33 | romainguy__ | what are you talking abotu? |
06:07.35 | romainguy__ | about |
06:07.56 | jasta | You can now access these phone/subscriber properties through the new PhoneSubInfoManager, using the IPhoneSubInfo interface. |
06:08.01 | jasta | <PROTECTED> |
06:08.25 | jasta | but that class doesn't exist. There is TelephonyManager that has getDeviceId(), but it has no public constructor and has no static methods. So I don't know how to get a handle to it. |
06:08.38 | romainguy__ | TelephonyManager.getDefault() |
06:08.50 | jasta | i don't show that in the documentation. |
06:10.50 | romainguy__ | yeah, probably a mistak |
06:10.51 | romainguy__ | mistake |
06:10.53 | romainguy__ | dammit |
06:11.35 | *** join/#android hacked_kernel (n=hacked_k@41.234.165.172) |
06:11.47 | romainguy__ | actually |
06:11.57 | hacked_kernel | Can I install Android OS on Sonry Ericsson K610i? |
06:12.01 | hacked_kernel | sony* |
06:13.21 | romainguy__ | jasta: the right way to do it is: (TelephonyManager)getSystemService(TELEPHONY_SERVICE) |
06:13.47 | *** join/#android anno^da_ (n=anno^da@p5B07DF28.dip.t-dialin.net) |
06:13.55 | romainguy__ | with TELEPHONY_SERVICE="phone" |
06:14.29 | anno^da_ | good morning guys |
06:14.31 | anno^da_ | everyone needing multipart messages can ask me I got it working right now. :-) |
06:14.38 | jasonchen | jasta: is there a reason you want TelephonyMangaer and not the more abstract ConnectivityManager? |
06:15.00 | jasta | Yes, I need the device ID. |
06:15.24 | jasta | I understnad the IMEI to be a good unique key to separate multiple phones. |
06:17.34 | jasonchen | ah, right. in that case, what romainguy__ said :-) |
06:20.47 | jasonchen | also, you might need the android.permission.READ_OWNER_DATA permission to get the IMEI |
06:21.09 | jasta | ok, your changes-overview doc is all wrong on this topic. |
06:22.21 | jasonchen | yeah, i was just talking to morrildl about that |
06:22.23 | romainguy__ | it was probably an explanation of the internal implementation :( |
06:22.30 | jasonchen | we'll check into it more in the morning |
06:22.35 | jasta | so... |
06:22.54 | jasta | i assume you guys worked on the custom parcelable stuff and all the AIDL troubles with that? |
06:23.10 | jasta | i see in the new docs that at least the blurb about it was not removed. |
06:24.52 | jasta | and so far in my tests, it does not work. |
06:25.21 | jasta | back to modifying the global framework.aidl in order to build my project? |
06:27.18 | jasonchen | i haven't played with the AIDL stuff myself |
06:27.24 | jasonchen | so i can't really say |
06:27.46 | jasonchen | but if you spot problems, please file them (or follow up on bugs that you've arleady filed) |
06:27.59 | jasta | look at the "Pass by value Parameters using Parcelables" section in the Android IDL docs. |
06:28.17 | jasta | This was a known bug back in M3, and carried through to M5, and now surprisingly to 0.9. |
06:30.36 | jasonchen | hmmm, i'll have to ask our tech writers about the status of this page in the morning. |
06:30.47 | jasta | i just teste dit. |
06:31.02 | jasta | it still applies. |
06:31.11 | romainguy__ | what's the bug? |
06:31.12 | jasta | that's a bad bug to be in 1.0. |
06:31.25 | jasta | romainguy__: you can't create custom parcelables and still use the Eclipse plugin to build. |
06:31.34 | romainguy__ | ah |
06:31.42 | jasta | because the .aidl "header file" that describes it will be compiled, which won't work. |
06:31.50 | romainguy__ | tell that to xavd :) |
06:32.07 | jasta | the work around i have used for M5 is to modify the global framework.aidl but i'm a bit disappointed this didn't get attention. |
06:33.14 | romainguy__ | because we had thousands of bugs that needed as much attention |
06:33.26 | jasta | also, the example code there is old and wouldn't build |
06:33.27 | romainguy__ | do you have a bug filed in the tracker for this? |
06:33.47 | jasta | romainguy__: i just filed one, but i didn't originally because it was clearly called out as a known bug |
06:37.39 | jasta | parcelable has also seemed to change in hard-to-guess ways but isnt part of the changes overview |
06:38.08 | romainguy__ | what changed? |
06:38.26 | jasta | well, it seems that readFromParcel was removed, but I think I can understand how that should be handled. |
06:38.48 | jasta | writeToParcel was seemingly changed to take an extra int param that can be flagged as PARCELABLE_WRITE_RETURN_VALUE, but no clear instructions on what that means? |
06:42.20 | romainguy__ | weren't we using a Creator already in m5? |
06:42.40 | jasta | you were, but i swear i thought you also required a redundant readFromParcel, but that's not the part that has confused me. |
06:43.02 | jasta | PARCELABLE_WRITE_RETURN_VALUE doesn't seem to tell us anything. even the "typical implementation" as described in android.os.Parcelable doesn't use it. |
06:43.43 | romainguy__ | well, the documentaiton says: "Some implementations |
06:43.44 | romainguy__ | <PROTECTED> |
06:43.55 | jasta | ahh |
06:49.35 | jasta | jasonchen: seems to be that i need READ_PHONE_STATE permission (too?) |
06:55.52 | jasta | hehe, unknown socket error -1 when you don't request INTERNET permission |
06:56.46 | anno^da_ | http://www.engadgetmobile.com/2008/08/18/video-android-sdk-v0-9-hits-the-internet-looking-almost-ready-f/# <- Last week it was dead and now it is ready for primetime :D |
06:57.06 | romainguy__ | news web sites have no shame :) |
06:57.20 | anno^da_ | :D |
06:57.47 | anno^da_ | On another website I read today that with the new SDK it will be the hardest competitor for the iPhone :P |
06:57.51 | jasta | alright, five-client works ;) |
06:58.22 | anno^da_ | Nice jasta. I'm feared of porting :/. (have ported now the whole Multipart Messages) |
06:59.26 | jasta | it's mostly just search/replace. it's not been hard. |
06:59.41 | jasta | although i am scared that now there is TONS of functionality in my app that can be gutted |
06:59.45 | anno^da_ | Really ? Has a lot changed in the services ? |
06:59.49 | jasta | but i'll never know until i dig thoroughly into the docs ;) |
06:59.55 | jasta | no, not really at all. |
07:00.18 | anno^da_ | Oh well I'm testing that out later on on a Virtual Machine. |
07:00.55 | anno^da_ | But now I have to get some breakfast. :-) |
07:01.42 | jasta | i'm actually mostly happy with it. |
07:01.47 | anno^da_ | romainguy has to confirm that nothing happens while breakfast. Yesterday we had barbecue in the evening and after it the SDK was out. :-) |
07:01.56 | jasta | i have a lot of work to do just updating to new things i learned from M5 (nothing to do with 0.9) |
07:02.07 | jasta | but there are some really important ones to me that didn't make it to 0.9 *sigh* |
07:02.15 | anno^da_ | :-) |
07:02.41 | jasta | the MediaPlayer problems Five had are still all there. all the kludgey work around will have to remain. |
07:02.49 | jasta | rather, not romain, but be rewritten even kludgier :) |
07:02.54 | jasta | not remain* |
07:03.11 | jasta | and quite probably so inefficient that it will just fail entirely :( |
07:07.05 | jasta | romainguy__: is android:gravity="center_horizontal" a straight replacement for android:textAlign="center"? |
07:07.13 | romainguy | yep |
07:07.19 | jasta | k, thx |
07:07.27 | umdk1d3 | will it center text with \n's though? or just block-center the widget? |
07:07.30 | romainguy | we used to have textAlign for horizontal placement and gravity for vertical placement |
07:07.33 | romainguy | it was kinda silly |
07:07.52 | romainguy | umdk1d3: android:gravity centers the content |
07:07.57 | umdk1d3 | oh cool |
07:08.02 | anno^da_ | now everything is done with gravity ? |
07:08.07 | romainguy | in TextView yes |
07:08.12 | anno^da_ | great thx. |
07:08.33 | umdk1d3 | so my question for tonight is: how coarse is ACCURACY_COARSE? ;) |
07:08.46 | romainguy | the answer is: coarse |
07:08.51 | romainguy | and now, bed time for me |
07:08.52 | jasta | lol |
07:08.54 | romainguy | good day/night all |
07:08.54 | *** join/#android Rajec (n=chatzill@nat-88-212-20-67.antik.sk) |
07:08.55 | umdk1d3 | haha |
07:09.21 | Rajec | hi what is the situation with android web market, where I can sell mz application ? |
07:09.37 | umdk1d3 | Rajec: still no definite word yet |
07:09.37 | *** join/#android alex2308 (n=alex2308@daloo.de) |
07:09.51 | romainguy | also remember that .apks can be installed form the web browser |
07:10.02 | romainguy | if you want an easy way to share your apps right now |
07:10.11 | umdk1d3 | true, but that means you need to roll your own micropayment system |
07:10.12 | jasta | really? |
07:10.25 | umdk1d3 | ooh /me wonders hwo it handles permission granting |
07:10.27 | romainguy | umdk1d3: sure, I'm just saying that's one option you have right now |
07:10.31 | jasta | umdk1d3: no one will buy an app that doesn't load onto a real phone :) |
07:10.38 | umdk1d3 | jasta: true lol |
07:10.41 | romainguy | umdk1d3: it just goes through the package manager |
07:10.51 | umdk1d3 | we have a package manager? =D |
07:11.00 | umdk1d3 | goes to try |
07:11.02 | romainguy | what do you think adb sync/install do? |
07:11.17 | romainguy | the package manager is a service btw :) |
07:11.18 | umdk1d3 | well, thats emulator related tho |
07:11.23 | jasta | well, adb install copies a file to /data/app ;) |
07:11.30 | jasta | it's literally the same as adb push to /data/app hehe |
07:11.34 | romainguy | and then what happens? |
07:11.36 | jasta | you have inotify watching ;) |
07:11.45 | romainguy | you think that's all it does? |
07:12.00 | jasta | no, i'm just pointing how many layers of abstraction you were off target :) |
07:12.09 | romainguy | uh? |
07:12.09 | umdk1d3 | well it unpacks the .dex to cache it |
07:12.10 | jasta | pointing out* |
07:12.54 | Rajec | hi what is the situation with android web market, where I can sell mz application ? |
07:13.04 | jasta | Rajec: no information has been revealed yet. |
07:13.06 | romainguy | jasta: then you have a poor understanding of adb install :) |
07:13.11 | romainguy | anyway |
07:13.13 | jasta | romainguy: I don't think that I do at all. |
07:13.14 | romainguy | g'night |
07:13.17 | romainguy | sure jasta |
07:13.36 | jasta | What is so different about adb install that adb push to /data/app doesn't do? |
07:13.48 | umdk1d3 | it probably fires events to the home screen |
07:13.56 | jasta | no, the inotify service does that |
07:13.59 | jasta | (through the package manager) |
07:14.22 | jasta | if you all remember, i wrote an app that installs apps by copying them from the web to /data/app. |
07:14.30 | jasta | and nothing more |
07:15.00 | umdk1d3 | yea one thing ive noticed about 0.9 is its a lot more locked down |
07:15.05 | umdk1d3 | no more /tmp :/ |
07:15.12 | jasta | if adb install does anything at all not handled by just copying files there then it is simply an optimization. |
07:15.53 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
07:16.11 | jasta | or maybe they changed all this in 0.9 for some reason? |
07:16.21 | Rajec | jasta: It wont be like with Iphone where you can have only one oficial store no ? |
07:16.25 | jasta | but in M5 there was an inotify service glueing it all together |
07:16.36 | jasta | Rajec: No information has been revealed, period. |
07:17.40 | Rajec | jasta: it should be writtend in sdk lincece or something no? |
07:18.14 | jasta | Rajec: Well, not if there are other distribution mechanisms. |
07:18.27 | jasta | In Android's case, I doubt that a "store" will be the only way to distribute apps. |
07:18.40 | jasta | For example, on Windows Mobile you can just download them from the web browser to install them andt here's no signing or any junk like that. |
07:19.02 | jasta | And that's basically the only way to distribute your apps for WM. Android will probably support that, in addition to the store. |
07:19.53 | romainguy__ | as I said, you can just point the Browser to the .apk |
07:20.01 | swetland | also, toggling your application in by clicking the HOME button in morse code in the bootloader |
07:20.06 | umdk1d3 | "Cannot download. The content being downloaded is not supported on the phone." <-- messsage when downloading an APK from web |
07:20.20 | romainguy__ | doh |
07:20.22 | swetland | umdk1d3: check out Settings / Applications |
07:20.23 | romainguy__ | stupid SDK |
07:20.50 | umdk1d3 | "Unsupported action: That action is not currently supported." <-- when trying Settings :P |
07:20.55 | jasta | hehe |
07:20.58 | umdk1d3 | oh in browser settings? |
07:21.22 | swetland | or is that panel not in the SDK |
07:21.32 | romainguy__ | swetland: apparently it's not |
07:21.45 | swetland | romain: doh! |
07:21.50 | romainguy__ | it's the one to allow unknown sources? |
07:21.51 | umdk1d3 | nope, no "Settings" or "Applications" :/ |
07:22.06 | umdk1d3 | yea this was just an APK generated by eclipse |
07:22.08 | swetland | umdk1d3: I mean the settings menu from home |
07:22.09 | umdk1d3 | which is self-signed |
07:22.24 | umdk1d3 | yea, that error above is what settings from homescreen says (under menu button) |
07:24.13 | jasta | is not sure about this new setResult() API. |
07:24.22 | jasta | should i just send back the same action that I was given? |
07:24.34 | jasta | the NotePad application seems to treat the action as just some arbitrary string like setResult() was before. |
07:24.40 | romainguy__ | only if you have a result |
07:24.42 | jasta | but that doesn't seem quite right, especially when i'm passing back a URI string |
07:25.07 | jasta | my app used to call setResult(RESULT_OK, uri.toString()); so a good replacement for that seems like setResult(RESULT_OK, new Intent(originalAction, uri)); right? |
07:25.21 | romainguy__ | you don't care about the action in that case |
07:25.30 | romainguy__ | the Intent is just a container for your data |
07:25.42 | jasta | so (new Intent()).setData(uri)? |
07:25.54 | romainguy__ | yep |
07:27.43 | umdk1d3 | jumps up and down |
07:27.52 | umdk1d3 | <3 sdk |
07:29.55 | jasta | i don't even remember writing half the code i'm updating :) |
07:30.16 | jasta | i must have been in an intoxicated daze, rushing to get my app ready for ADC 1 :) |
07:31.18 | duey | are there lots of changes |
07:31.27 | duey | does the gui look different |
07:31.29 | jasta | yes |
07:31.36 | jasta | (some) |
07:31.43 | jasta | a lot of polish, that's for sure. |
07:31.55 | duey | romainguy must of been busy |
07:32.11 | umdk1d3 | duey: there are good overviews of changes onlin |
07:32.13 | swetland | that is what interns are for. they make sure you can see your reflection in the pixels |
07:32.25 | jasta | sooooo |
07:32.27 | romainguy__ | Home certainly kept me busy on top of the UI framework stuff |
07:32.32 | jasta | what the hell happened to TabHost.TabSpec? |
07:32.43 | romainguy__ | swetland: last I checked interns were writing cryptic shell tools :p |
07:32.47 | jasta | setIndicator became much less general? |
07:33.01 | duey | notes never to be an intern at google |
07:33.06 | swetland | romain: kernel interns! don't you guys have interns too? |
07:33.13 | duey | kernel..? |
07:33.17 | romainguy__ | swetland: I'm the only one I know of |
07:33.19 | duey | sounds like build scripts |
07:33.22 | romainguy__ | or rather, I was the only one I know of |
07:33.34 | umdk1d3 | duey: lots of screencaps here http://www.anddev.org/fresh_android_sdk_released_sdk_v09_r1-t2707.html |
07:33.56 | duey | I would hate to be the person writing build scripts |
07:34.02 | duey | I can't think of anything worse |
07:34.11 | romainguy__ | swetland: apparently you write build scripts for a living :)) |
07:34.14 | duey | build scripts and installers |
07:34.20 | swetland | romain: it's a hard life being a kernel engineer |
07:34.32 | romainguy__ | I'll hand you that one |
07:34.52 | duey | is kernel engineer a thancy name for build script writer? |
07:35.00 | romainguy__ | it's like the life of a UI toolkit engineer: hated by kernel engineers for wasting resources, hated by app developers because you don't waste enough resources |
07:35.07 | swetland | duey: not in my experience ^^ |
07:35.08 | duey | lol |
07:35.24 | duey | I really like a range of tasks at work |
07:35.30 | ligi | is starting 0.9_beta first time now - hoping my old adc apk will work |
07:35.31 | duey | I work on heaps of different things |
07:35.36 | duey | from edis to websites |
07:35.55 | romainguy__ | ligi: not a chance :) at least not without recompiling |
07:36.51 | tric | wow, lot of traffic in here ;) |
07:36.55 | jasta | romainguy__: any code that calls setKeepANimations() can just be removed now? |
07:37.18 | romainguy__ | I don't remember |
07:37.25 | romainguy__ | whatever the docs/changelogs say |
07:37.28 | jasta | the docs say the method is gone |
07:37.30 | umdk1d3 | ligi: sadly i think there is very little chance of binary compatability with an older apk |
07:37.37 | jasta | but no mentio nof what to do about that? :) |
07:38.01 | romainguy__ | then don't bother |
07:38.25 | ligi | romainguy__: umdk1d3 ok ur right INSTALL_PARSE_FAILED_MANIFEST_MALFORMED# |
07:38.28 | romainguy__ | my memories of the changes I made in the animation APIs are very fuzy |
07:39.07 | ligi | good that i stopped developing 4 android till this new sdk |
07:39.53 | ligi | anyone knows if bluetooth api is working now? |
07:40.12 | umdk1d3 | hmm multi-lined app names show okay in the large app list, but are trimmed to only one line with "..."s when dropped as shortcuts onto the home screen |
07:40.18 | umdk1d3 | ligi: actually bluetooth was removed lol :P |
07:40.28 | ligi | umdk1d3: removed? |
07:40.35 | romainguy__ | no |
07:40.35 | umdk1d3 | yep, its in the release notes |
07:40.40 | romainguy__ | the public API was |
07:40.45 | umdk1d3 | oh, true |
07:40.48 | romainguy__ | the system still supports bluetooth |
07:40.51 | romainguy__ | there's a huge difference |
07:41.00 | umdk1d3 | system=firmware=not us developers though, right? |
07:41.39 | swetland | firmware makes me think about code for microcontrollers in toasters ^^ |
07:41.45 | swetland | I much prefer systems |
07:42.03 | romainguy__ | umdk1d3: hmm multi-lined app names show okay in the large app list, but are trimmed to only one line with "..."s when dropped as shortcuts onto the home screen << yes |
07:42.06 | umdk1d3 | well, its FOTA right? :P |
07:42.20 | umdk1d3 | FOTA=firmware overtheair |
07:42.39 | umdk1d3 | romainguy__: oh well, thats a bummer :/ |
07:42.46 | umdk1d3 | not too big of a showstopper tho |
07:43.07 | umdk1d3 | i suppose users will be looking for icons anyway |
07:43.07 | jasta | whoo, almost got five-music compiled :) |
07:43.12 | *** join/#android Zba_Phy (n=none@2a01:e35:8a13:a2b0:21c:c0ff:fe25:ff68) |
07:43.20 | jasta | this has taken me all damn night :) |
07:43.23 | romainguy__ | umdk1d3: it's a matter of screen real estate |
07:43.42 | ligi | dam 31 errors when recompiling with new SDK |
07:43.52 | jasta | just 31?! |
07:43.53 | umdk1d3 | romainguy__: but the desktop icons take up the same space as those in the full-app-list |
07:43.57 | *** join/#android cutmasta (n=cutmasta@62.225.134.181) |
07:44.09 | umdk1d3 | including the app text name |
07:44.21 | umdk1d3 | i suppose it keeps it looking unclutters tho |
07:44.36 | romainguy__ | umdk1d3: believe me, I worked days and nights on this application :) |
07:44.39 | jasta | prevents it from being Windows Mobile. |
07:44.42 | jasta | :P |
07:44.48 | umdk1d3 | kk :) |
07:45.08 | umdk1d3 | romainguy__: its sexy, believe me :) |
07:45.20 | romainguy__ | glad you like it |
07:45.27 | romainguy__ | kudos to the designers for the original idea |
07:46.05 | jasta | hehe |
07:46.31 | ligi | images class has no height() with() - are these attributes now - no more methods? |
07:46.38 | ligi | +d |
07:47.12 | romainguy__ | what class? |
07:47.20 | ligi | android.graphics.Bitmap |
07:47.32 | romainguy__ | getWidth() and getHeight() |
07:47.42 | ligi | romainguy__: thanx a lot |
07:47.57 | jasta | that type of change was made all over, ligi. |
07:48.07 | ligi | jasta: dam |
07:48.13 | jasta | getters without "get" prefixing them had it added. |
07:48.29 | jasta | scratches his head |
07:48.38 | jasta | i apparently used some method i have no idea what it did and it's gone now |
07:48.42 | ligi | is there a regex to fix this ^^-) |
07:48.44 | jasta | getVirtualChildCount? what? |
07:48.53 | romainguy__ | why are you using this? :) |
07:48.59 | jasta | i have absolutely no idea |
07:49.03 | ligi | lol |
07:49.05 | jasta | maybe i was just tired and meant getChildCount? |
07:49.07 | romainguy__ | this is used in LinearLayout but it's for support of TableLayout |
07:49.18 | jasta | nope, i also use getVirtualChildAt? *confused* |
07:49.19 | romainguy__ | it will return the same value unless you have a TableLayout involved |
07:49.50 | jasta | so it's safe to translate this to getChild*? |
07:50.25 | romainguy__ | yep |
07:50.41 | romainguy__ | it's used by TableLayout to support empty/spanned cells |
07:51.00 | jasta | i made a lot of stabs in the dark with M3. that could be what that code was leftover from |
07:52.57 | duey | http://www.s4g.net/sites/android/newsdk_v0_9_r1/11.jpg |
07:52.58 | jasta | hmm, Cursor#moveTo(int) is gone? |
07:53.02 | duey | no wonder handycalc didnt win! |
07:53.07 | ligi | 5 errors to go |
07:53.29 | jasta | duey: there is a functional graphing calculator and solver. |
07:53.39 | jasta | i dont remember what it wa scalled, but it was awesome |
07:53.55 | duey | ? |
07:53.56 | romainguy__ | duey: this calc app wasn't even written at the time of the ADC I think |
07:54.25 | jasta | oh moveToPosition, duh |
07:55.30 | jasta | one more module left to go, then it compiles! :) |
07:56.11 | duey | why do all the pics have (c) anddev on them |
07:56.23 | jasta | duey: because he thinks that's how copyright works. |
07:56.25 | duey | does it really matter if someone copies some screenshots |
07:56.44 | jasta | he doesn't own the copyright to those anyway, and the label he affixed is simply wrong. |
07:57.09 | duey | if i make the exact same screenshot i must be breaking his copyright |
07:57.10 | duey | onoesz |
07:57.47 | duey | i wonder how long it took to put that text on all the images |
07:58.03 | jasta | he might have used ImageMagick |
07:58.12 | jasta | or worse yet, some custom tool. |
07:58.13 | duey | I would hope so lol |
07:58.22 | jasta | honestly, i am not sure which he would have done. |
07:58.23 | duey | or photoshop for each photo |
07:58.50 | duey | there are some draganddrop water mark tools on osx |
07:58.54 | duey | which are quite nice |
07:59.33 | jasta | romainguy__: ShapeDrawable#setShader is gone? do i need to use the factory now? |
07:59.40 | romainguy__ | yes |
08:00.04 | tric | hmm, so all javax.sound.* got wiped? |
08:05.35 | alex2308 | is there any free tool to compare two files (text) and display the changes? |
08:05.46 | alex2308 | i dont know how to google that, is there any keyword? |
08:06.04 | jasta | romainguy__: ContextMenuInfo used to have an id member I could access? |
08:06.13 | jasta | alex2308: lol, diff. |
08:06.23 | ligi | alex2308: diff - but its a *nix tool |
08:06.29 | alex2308 | +windows |
08:06.41 | tric | and its prolly already asked, but adb push something /system doesnt work anymore. any chance to mount this fs rw? |
08:06.57 | swetland | adb remount |
08:07.23 | ligi | anyone has an example of the usage of this BitmapConfig thing? |
08:07.24 | swetland | but on production hardware /system is going to be RO, so it's probably worth getting used to that |
08:08.51 | tric | swetland: i know, there is no way to deplay this. but its only for my thesis and i gonna write about this problem aswell ;) |
08:09.10 | romainguy__ | what's your thesis? |
08:09.29 | romainguy__ | ligi: sure, what's the context? |
08:09.39 | alex2308 | romainguy__ voip on android |
08:10.03 | tric | more exactly, testing voip on android |
08:10.04 | ligi | romainguy__: my old createBitmap fails Bitmap.createBitmap(getWidth(),lcd_lines.length*lcd_tiles_img.getHeight()+100,false); |
08:10.22 | ligi | romainguy__: the new version wanna have a BitmapConfig param |
08:10.39 | romainguy__ | what's the problem with using BitmapConfig? |
08:10.39 | umdk1d3 | ligi: there are some static values taht work well iirc |
08:10.49 | ligi | umdk1d3: null? |
08:10.52 | romainguy__ | no |
08:10.52 | ligi | ^^ |
08:10.56 | romainguy__ | it's an enum |
08:11.01 | ligi | ah |
08:11.14 | romainguy__ | is your image opaque or translucent? |
08:11.24 | ligi | yes |
08:11.30 | ligi | opaque |
08:11.41 | romainguy__ | then you probably want BitmapConfig.RGB_565 |
08:11.51 | ligi | romainguy__: thanx a lot |
08:11.54 | jasta | *PHEW* |
08:11.57 | jasta | five fully builds now |
08:11.59 | jasta | time for bed |
08:12.11 | ligi | jasta: nice! good n8 |
08:12.12 | umdk1d3 | ligi: if it needs transparency, you might want to look at ARGB_4444 |
08:12.18 | romainguy__ | no no |
08:12.23 | romainguy__ | ARGB_8888 |
08:12.28 | umdk1d3 | aha |
08:12.34 | romainguy__ | don't use ARGB_4444 unless you know what you're doing |
08:12.45 | umdk1d3 | well its just 4-bits-per channel right? |
08:12.48 | romainguy__ | otherwise you'll be all complainy about rendering issues :) |
08:12.49 | romainguy__ | yes |
08:12.52 | umdk1d3 | lol |
08:12.54 | romainguy__ | and 4 bits is not much |
08:13.02 | umdk1d3 | hm true |
08:17.13 | jasta | Caused by: java.lang.SecurityException: Not allowed to bind to service...? |
08:17.14 | jasta | hmm? |
08:17.35 | jasta | trying to bind to five-client's service from five-music? some sort of permission relationship i have to set up here? |
08:17.58 | alex2308 | security increased a lot in the current sdk |
08:18.21 | romainguy__ | alex2308: will be greater on actual devices |
08:18.28 | alex2308 | hope so |
08:18.30 | jasta | romainguy__: any thoughts? |
08:18.37 | romainguy__ | jasta: none, I never wrote a service |
08:18.55 | romainguy__ | are they in the same process? |
08:19.12 | jasta | no, not even in the same APK |
08:19.35 | romainguy__ | I guess you do need some permission then |
08:19.43 | romainguy__ | or they need to use the same user id |
08:20.01 | jasta | i dont want them to use the same user id. the whole point is that five can be extended by other folks than me, in other source trees than mine. |
08:20.52 | ligi | muhaaaahaa: DUBwise is compiled now with 0.9 beta |
08:21.01 | ligi | thanx 4 all your hints |
08:21.33 | ligi | dam |
08:21.37 | ligi | compiled but INSTALL_PARSE_FAILED_NO_CERTIFICATES |
08:21.45 | jasta | romainguy__: looks like the security docs were updated. *reading* |
08:22.04 | jasta | ligi: read the installing blurb about keytool |
08:22.20 | ligi | jasta: jeah i will |
08:22.43 | alex2308 | 37 Errors <3 |
08:22.48 | tric | jasta: hmm, damn, looks like i need to read that aswell |
08:22.57 | jasta | romainguy__: looks like i must define an arbitrary permission that is required to use the service. |
08:23.01 | jasta | which seems fine i guess |
08:23.17 | romainguy__ | it's pretty easy to declare a permission |
08:25.25 | umdk1d3 | <PROTECTED> |
08:25.49 | romainguy__ | don't use android.permission, use your own package name :p |
08:26.20 | umdk1d3 | <PROTECTED> |
08:26.38 | jasta | i wonder how this will be enforced on Android. users tend to not give a shit about these types of dialogs. |
08:28.08 | jasta | well, this is probably why /system is mounted ro :P |
08:28.20 | jasta | let them screw up their phone, factory defaults are just a button click away :) |
08:28.21 | alex2308 | remount |
08:28.33 | jasta | alex2308: what? |
08:28.41 | alex2308 | hehe jk |
08:36.51 | alex2308 | Access restriction: The type IPhoneSubInfo is not accessible due to restriction on required library E:\ANDROID\android-sdk-windows-0.9_beta\android.jar |
08:36.56 | alex2308 | :( |
08:37.01 | jasta | alex2308: you need to declare READ_PHONE_ something |
08:37.01 | jasta | hang on |
08:37.15 | alex2308 | <uses-permission android:name="android.permission.ACCESS_PHONE_SUB_INFO" /> |
08:37.17 | jasta | <uses-permission android:name="android.permission.READ_PHONE_STATE" /> |
08:37.25 | jasta | alex2308: no, the changes-overview doc is totally wrong. |
08:37.54 | alex2308 | the documentation is totally crap imho |
08:38.05 | jasta | i wouldn't say it's totally crap, but it certainly hasn't been fully updated |
08:39.21 | alex2308 | still cant access phone data |
08:39.40 | jasta | well, i already did exactly this to access IMEI. |
08:39.44 | jasta | with getDeviceId() |
08:40.36 | alex2308 | com.android.internal.telephony.IPhoneSubInfo.getDeviceId() ? |
08:41.00 | jasta | no, use getSystemService(TELEPHONY_SERVICE).getDeviceId() |
08:41.15 | jasta | err, of course you must cast the result of getSystemService to TelephonyManager |
08:43.28 | tric | hehe, i still like those IPhone interfaces ;) |
08:44.25 | alex2308 | ;) |
08:44.25 | jasta | uhm, what the hell |
08:44.26 | alex2308 | android.content.Context.TELEPHONY_SERVIC |
08:45.51 | jasta | sigh, i giv eup, i can't make this permission crud work |
08:46.08 | tric | jasta: you have to, i need it aswell! |
08:46.21 | jasta | it tells me i am denied a permission that i requested |
08:46.31 | jasta | but the UI gave me no chance to do anything useful |
08:46.43 | jasta | and the logs don't seem to suggest anything |
08:49.25 | alex2308 | hm, they removed the possibility to set IMEI |
08:49.37 | jasta | as they probably should :) |
08:49.52 | jasta | if you want to go around changing your IMEI, you'd better learn how to open the phone up a bit :) |
08:49.55 | alex2308 | but i had a bogusdatacreater class for testing |
08:50.08 | *** join/#android borism_ (n=boris@195-50-199-92-dsl.krw.estpak.ee) |
08:50.26 | alex2308 | i changed the imei on my nokia (was stolen), isnt hard |
08:56.10 | *** join/#android ligi (n=ligi@www.smart4mobile.de) |
08:58.49 | jasta | ok, night time |
08:58.53 | jasta | hopefully someone figures out this permission issue :) |
08:59.00 | ligi | now where 0.9 iss there - I WANT A ANDROID-PHONE |
08:59.11 | ligi | jasta: sleep well |
09:02.29 | alex2308 | which permission issue jasta? |
09:02.47 | tric | binding to a remote service |
09:03.14 | tric | 10:17:13 < fn~jasta> Caused by: java.lang.SecurityException: Not allowed to bind to service...? |
09:05.26 | alex2308 | i have some permission issues, too. will see if i find a way round |
09:05.31 | alex2308 | btw ty jasta |
09:05.39 | alex2308 | but still 29 errors hehe |
09:09.29 | tric | im error free, only have to sign all, and prolly fix the same permission issue as jasta |
09:12.15 | alex2308 | most of them are httpclient related |
09:15.41 | inZane- | did someone already found out how to use the PixelConverter? |
09:15.48 | inZane- | its only package visible |
09:23.58 | anno^da_ | In startService() kann ja kein Bundle mehr übergeben werden. Soll die Übergabe von Inhalten nun über die Extras des Intents geschehen ? |
09:25.57 | alex2308 | ka |
09:26.38 | anno^da_ | oh lol I have to translate that :D |
09:27.26 | anno^da_ | In startService you cant submit a Bundle anymore. Do I have imitatet that funcionality using the Intent for starting the Service and his extras? |
09:27.59 | anno^da_ | And why is there a bundle available in the onStart method of the service ? |
09:34.00 | inZane- | "Various parts of the API cleaned up to use Intents instead of Bundles; Intent itself improved to reduce the need for separate payload Bundles." |
09:39.09 | anno^da_ | ah yeah it is working now |
09:39.10 | anno^da_ | :) |
09:42.51 | *** join/#android buster` (n=buster@lostmind.org) |
09:52.47 | tric | oh, seems like my activity could startup the remote service without problems |
09:53.43 | *** join/#android zoolooc (n=lucian@nrbg-4dbfb1fb.pool.einsundeins.de) |
09:56.59 | tric | only my helper activity to only startup the service gets a permission denied. hmmm |
10:00.15 | tric | and those permissions really need doku: http://code.google.com/android/reference/android/Manifest.permission.html |
10:01.07 | *** join/#android dasilvj (n=dasilvj@163.5.255.63) |
10:11.21 | anno^da_ | Hmm the autogenerated file from the service AIDL shows a lot of errors. I've tried to delete it but it doesnt get recreated? What am I doing wrong? |
10:14.10 | *** join/#android NiZoX_ (n=none@2a01:e35:8a13:a2b0:21c:c0ff:fe25:ff68) |
10:37.11 | alex2308 | the new SDK sucks. i want a newer SDK! ;) |
10:37.31 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
10:38.04 | buster` | you suck. i want blackjack and hookers! ;) |
10:38.22 | buster` | in fact |
10:38.27 | buster` | forget the blackjack |
10:39.19 | alex2308 | will there be a blackjack app for android? ^^ |
10:42.45 | anno^da_ | whats the right thing to get the current location? (it has been removed but I dont see the alternative. I dont want to get the location all the time) |
10:43.53 | *** join/#android fgau (n=fgau@webbox1220.server-home.net) |
10:43.53 | inZane- | it looks like we have to use getLastKnownLocation |
10:44.07 | inZane- | i have the same problem |
10:45.24 | anno^da_ | oh but thats kind of sucking. Hmm ok. |
10:46.57 | inZane- | http://www.anddev.org/pixelconverter-t2713.html |
10:47.00 | inZane- | anyone? |
10:48.50 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
10:58.41 | anno^da_ | Well and now it would be interesting how to get the I<ServiceName>.java file created |
11:00.23 | tric | anno: problems with aidl? i deleted the old .java files and those were regenerated. |
11:00.32 | tric | just like with old sdk |
11:00.37 | anno^da_ | Yeah I deleted it as well |
11:00.46 | anno^da_ | but it doesnt get regenerated |
11:00.56 | tric | you can run aidl on the shell |
11:01.01 | tric | maybe there is an error |
11:01.30 | anno^da_ | ah well ok. Shell and windows I love it. I'm in the virtual machine right now for testing the port :) |
11:03.59 | tric | port of? |
11:04.28 | tric | hmm, but damn, i get "unknown error" when running new DatagramSocket(port); |
11:09.11 | anno^da_ | tric: well port of the m5 app |
11:09.27 | anno^da_ | And I'm getting crazy about the not generated java file :D |
11:10.50 | tric | there is a commandline in windows aswell tu run aidl tool |
11:11.03 | tric | or try to restart/refresh eclipse |
11:12.05 | tric | hehe. i want doku about all those android.permission |
11:17.18 | tric | ahh, udp socket need permission.INTERNET aswell. maybe this shold be split up. you need the same permission for connect and opening socket. |
11:20.33 | tric | and the next security exception. cool |
11:29.07 | ligi | the new version throws an INSTALL_FAILED_ALREADY_EXISTS when installing again |
11:29.15 | ligi | m5 did this well |
11:29.56 | ligi | and google has no hint on INSTALL_FAILED_ALREADY_EXISTS |
11:31.34 | ligi | ah -r |
11:31.35 | ligi | k |
11:34.34 | anno^da_ | Now I'm getting the next error. After having restarted my project I'm getting "R can not be resolved" in every activity. I've changed nothing :/ |
11:35.03 | tric | add the correct R class to the imports |
11:37.01 | alex2308 | how can i completely wipe the emulator? |
11:37.24 | tric | wipe? the user data? |
11:38.13 | *** join/#android cheng (n=cheng@141.76.49.20) |
11:38.22 | tric | oh, funny, i get a permission denied when starting a activity with a empty <intent-filter>, adding a dummy filter works |
11:39.07 | tric | alex: completly should be rm -rf ~/.android; rm -rf android_sdk |
11:39.28 | *** part/#android muthu (n=sushmu@59.92.89.234) |
11:43.51 | tric | ok. anyone successfully ported notifications? i get exceptions calling NotificationManager.notifiy |
11:48.44 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
11:51.02 | anno^da_ | oh it is a dream the whole elcipse plugin starts doing its job :/ |
11:51.15 | anno^da_ | -starts + stops |
11:51.31 | ligi | it's working again with 0.9 ;-) http://ligi-tec.blogspot.com/2008/08/dubwise-4-android-sdk-09-r1.html |
11:51.38 | ligi | thanx for all hints here |
11:54.49 | alex2308 | i cant get my sms receiver to work |
11:54.56 | alex2308 | anyone else? |
11:57.14 | *** join/#android bjartek (i=bjartka@decibel.pvv.ntnu.no) [NETSPLIT VICTIM] |
11:58.08 | *** part/#android bjartek (i=bjartka@decibel.pvv.ntnu.no) |
11:58.08 | *** join/#android bjartek (i=bjartka@decibel.pvv.ntnu.no) |
12:03.49 | *** join/#android acet (n=acet@83-70-243-205.b-ras1.prp.dublin.eircom.net) |
12:06.32 | anno^da_ | What can I do except creating a new project and putting the sources in it ? It is not recreating the R file anymore. :/ And I dont really know why. I dont want to do that by hand all the time. |
12:07.09 | tric | right click on project, android->fix project properties. no idea whats that for, but... |
12:09.06 | tric | ok, looks like all but notifications are working now again. nice |
12:10.38 | anno^da_ | tric: yeah that thingh crashed the whole project :) |
12:12.39 | tric | hehe |
12:18.41 | anno^da_ | ooh after the third attempt the AIDL java file got created |
12:18.49 | anno^da_ | now lets hope to get R back as well :/ |
12:19.06 | spykid | For all those germans - SPON once again: http://www.spiegel.de/netzwelt/mobil/0,1518,572913,00.html |
12:21.01 | ligi | spykid: danke ;-) |
12:21.34 | alex2308 | danke (aber schon per rss aufs handy gekriegt) ;) |
12:21.40 | alex2308 | exiting -> https://android.clients.google.com/checkin |
12:22.40 | alex2308 | this is where i got it from http://rafb.net/p/ATk3vc38.html |
12:28.26 | *** join/#android jsilvaa (n=jsilva@142.150.154.107) |
12:29.01 | tric | alex: hmmmm |
12:29.46 | spykid | tric: You see an error -right?! :D |
12:30.17 | ligi | dam @ "Due to significant API changes in the upstream open-source project and due to the timeline of getting certain Bluetooth profile implementations certified, a comprehensive Bluetooth API will not be possible or present in Android 1.0." |
12:34.23 | *** join/#android muthu (n=sushmu@59.92.37.141) |
12:39.50 | tric | spykid: yes |
12:41.33 | spykid | https://android.clients.google.com/ |
12:41.57 | buster` | lol |
12:42.46 | alex2308 | should write AndroidAntiSpy |
12:43.34 | anno^da_ | tric got it working now |
12:43.53 | anno^da_ | the faulty layouts blocked the recreating |
12:46.50 | *** part/#android jsilvaa (n=jsilva@142.150.154.107) |
12:59.08 | *** join/#android inZane-_ (i=nemo@dslb-084-058-080-037.pools.arcor-ip.net) |
13:00.52 | *** join/#android mazzen (n=Markus@dhcp-wlce247046.zim.uni-duisburg-essen.de) |
13:07.44 | *** join/#android tethridge (n=tale@207.235.54.1) |
13:14.47 | *** join/#android anno^da- (n=anno^da@p5B07CD9A.dip.t-dialin.net) |
13:35.27 | *** join/#android zhobbs (n=zach@132.245.8.67.cfl.res.rr.com) |
13:39.38 | tethridge | I know this has to be something simple, but I can't figure out how to send a sms message to the emulator |
13:39.59 | tethridge | I'm looking at the docs and it says to just use sms send <senderPhoneNumber> <textmessage> but I'm not sure where the sms command is |
13:40.49 | tric | telnet localhost 5554 |
13:40.53 | buster` | use the emulator control in eclipse |
13:41.14 | tethridge | I'm not running elipse, so I have to use telnet I guess |
13:42.42 | zhobbs | tethridge: run the "ddms" application in the tools folder |
13:42.55 | zhobbs | it has an emulator control tab to call/sms |
13:43.26 | tethridge | ok, let me check that out |
13:43.56 | tethridge | I haven't been able to lock the screen. Is that a bug. I thought that I just needed to press the power button to lock it. |
13:45.22 | tric | i have to press hangup to lock it. |
13:45.47 | tethridge | that works |
13:46.15 | tethridge | I guess the nice little unlock app isn't included in the emulator that we saw a few months back where you connect the dots |
13:46.20 | alex2308 | anyone experienced with com.google.common.io.android.AndroidHttpConnectionFactory ? |
13:49.30 | tric | no. but you app need permission.INTERNET ;) |
13:53.26 | alex2308 | youre good |
13:53.28 | alex2308 | ;) |
13:55.04 | alex2308 | "This thread forbids HTTP requests" |
14:00.16 | tric | hehe, i had same probs. like unknown error opening udp socket ;) |
14:05.03 | alex2308 | Keine Ergebnisse für "This thread forbids HTTP requests" gefunden. |
14:12.21 | *** join/#android ozarka (n=elineber@12.106.220.2) |
14:12.38 | tric | alex: start another thread for those requests. are you trying to connect inside the ui thread? |
14:12.48 | alex2308 | yes |
14:13.05 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
14:13.57 | tric | alex: dont do it. start another thread, so you dont block your activity |
14:14.00 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
14:14.14 | alex2308 | never worked with threads, any advice/tut? |
14:14.44 | tric | hehe, yes. Thread.run and use Handler to talk from the thread to your ui thread/activity |
14:16.48 | tric | damn, im sure i read something today how to retrieve the tmp path, but i cannot find it again. sucks |
14:28.32 | alex2308 | hmm. prob |
14:28.39 | alex2308 | i need the http response |
14:28.53 | alex2308 | how would i block my app until i get the http response using threads? |
14:30.33 | *** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net) |
14:31.48 | *** join/#android steventroughtons (n=steventr@86-43-174-2.b-ras2.prp.dublin.eircom.net) |
14:34.49 | steventroughtons | greetings people |
14:39.02 | anno^da- | whats the easiest way to create the raw byte array into Bitmap ? |
14:47.20 | ttuttle | good morning! |
14:50.42 | *** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net) |
15:01.05 | *** part/#android zoolooc (n=lucian@nrbg-4dbfb1fb.pool.einsundeins.de) |
15:02.12 | steventroughtons | hey ttuttle |
15:04.28 | dmoffett | alex2308: The thread that is getting the http response should notify the main thread using a Handler. |
15:05.27 | dmoffett | Something like this from the http thread to the main thread |
15:05.29 | dmoffett | messageHandler.post(this); |
15:08.40 | alex2308 | ive created a container, where info from the thread can be stored |
15:08.55 | alex2308 | the main thread waits 500ms for the "subthread" and checks the container for info |
15:09.03 | alex2308 | its ugly, but easy |
15:11.11 | anno^da- | How do I decide if the database has been created for the first time or was available if I use the openOrCreateDatabase(...) command ? |
15:11.17 | tric | alex: thats wrong. |
15:12.16 | dmoffett | alex2308: check out android.os.Handler |
15:12.21 | ttuttle | alex2308: you want to use either a return message, or startActivityWithResult. |
15:12.28 | tric | alex: your ui thread should display some progress dialog. and the http thread should notify the ui thread about success using a Handler, you can send a message and attach objects aswell |
15:12.50 | tric | tuttle: starting another activity doesnt help here |
15:12.53 | alex2308 | the prob is, the new thread isnt allowed to do http requests, too |
15:13.25 | dmoffett | Run the http request in a thread and let your main thread do like tric said. |
15:14.03 | dmoffett | Use the Handler to notify your main thread when the request is done or failed. |
15:14.04 | alex2308 | how can i create a thread, that is allowed to do http requests? am i missing something? |
15:14.29 | ttuttle | alex2308: Just create a Handler. |
15:15.27 | alex2308 | ttuttle how can i create a thread, that is allowed to do http requests |
15:15.43 | dmoffett | Why do you think a thread is not allowed to do an http request? |
15:16.06 | alex2308 | because it raises an exception which says so |
15:16.17 | dmoffett | can you send the excpetion? |
15:16.29 | dmoffett | I do this all the time but Ihave not ported to .9 yet. |
15:18.25 | alex2308 | thats the code: http://rafb.net/p/SO9Pl143.html |
15:18.41 | alex2308 | line 12 raises: This thread forbids HTTP requests |
15:19.40 | ttuttle | Wow, that's frighteningly specific. If you have the permissions, I'm not sure why it's doing that. |
15:21.40 | *** join/#android yakischloba (n=jake@rnkfoods.com) |
15:23.50 | alex2308 | the only permission i added since 0.9 is INTERNET |
15:24.20 | alex2308 | i guess i have to implement a specific thread |
15:24.27 | alex2308 | maybe a httprequestthread :p |
15:24.28 | dmoffett | alex2308: This http request worked from your main thread? |
15:24.47 | alex2308 | no, the main thread forbids http requests, too |
15:25.01 | dmoffett | then there is some other issue not threads. |
15:25.16 | dmoffett | Of course I have not tried my code on .9 yet. |
15:26.54 | dmoffett | Maybe someone that has ported to .9 can help, sorry. It will suck if the method described does not work though. :-( |
15:32.28 | tric | cool. the code that was working at work is generating this on one of my projects: Error generating final archive: null, UnknownGeneric ADT Problem |
15:34.49 | *** join/#android anno^da_ (n=anno^da@p5B07CD9A.dip.t-dialin.net) |
15:35.43 | tethridge | is there going to be an official email client? |
15:35.59 | tethridge | I was checking to see how easy it is to send a photo via email and I couldn't do it |
15:36.10 | tethridge | I assume that is because there isn't an email provider |
15:36.21 | tethridge | am I missing something? |
15:36.26 | romainguy | alex2308: ttuttle how can i create a thread, that is allowed to do http requests << did you request the NETWORK (or INTERNET) permission? |
15:37.30 | dmoffett | romainguy: INTERNET I think |
15:37.32 | ttuttle | tethridge: there will be an email client. it's not included in the SDK, apparently. |
15:37.41 | ttuttle | romainguy: Yeah, it's INTERNET. I remember when rlove changed it. |
15:38.30 | tethridge | so is that the reason why I couldn't email the photo? I sort of assumed that gmail support would be built in for sending photos |
15:39.02 | ttuttle | tethridge: It will, on phones. |
15:39.15 | ttuttle | tethridge: Or, at least, some sort of email client. |
15:39.21 | romainguy | tethridge: this is the SDK, not the bits for an actual phone product |
15:39.53 | tethridge | I understand, I'm just trying to see how so use cases will work |
15:39.58 | tethridge | s/so/some |
15:41.17 | *** join/#android anno^da-_ (n=anno^da@p5B07CD9A.dip.t-dialin.net) |
15:42.54 | *** join/#android muthu (n=sushmu@59.92.16.18) |
15:43.54 | alex2308 | romainguy i did add the INTERNET permission |
15:44.21 | tric | damn, this "Error generating final archive: null" error sucks |
15:44.39 | tethridge | I was able to crash the media player in landscape mode. Plus it didn't show cover art when in landscape mode and some buttons didn't render correctly. Should I file bugs? |
15:45.07 | alex2308 | attach a virus if you do |
15:45.35 | alex2308 | mac virus, because the google folks use osx |
15:47.42 | anno^da-_ | did the services run without big changes when you ported your apps ? |
15:48.11 | alex2308 | i dont use services |
15:48.55 | tric | anno: yes |
15:52.36 | anno^da-_ | :/ |
15:54.11 | ttuttle | alex2308: why would you attach a virus? |
15:54.47 | alex2308 | to demonstrate anger :) |
15:55.27 | ttuttle | alex2308: in the unlikely event you managed to infect someone's computer, do you think that would make them more likely to want to fix your bug? |
15:56.09 | *** join/#android dasilvj (n=dasilvj@163.5.255.63) |
15:56.40 | *** join/#android eton (n=eton@ppp-58-8-7-84.revip2.asianet.co.th) |
15:57.03 | alex2308 | yes |
15:57.16 | alex2308 | id force them to |
16:00.32 | ttuttle | alex2308: how? (I'm really interested now.) |
16:00.48 | ttuttle | alex2308: I mean, if your virus contained an AI smart enough to fix the code, I think you could just *sell* it to Google. |
16:01.39 | *** join/#android al2308 (n=alex2308@daloo.de) |
16:01.48 | al2308 | i could encrypt personal data and ask for a bugfix in order to decrypt them |
16:03.10 | dmoffett | that might be hard when bubba from cell block C is giving you the old heave ho. |
16:06.03 | ttuttle | al2308: Um, /me is not even going to go in to the dozens of reasons why that would be ineffective. |
16:07.18 | anno^da-_ | Well I'm starting my service. It starts the onCreate and onStart method. In onStart I'm starting a thread to do the heavy work that has to be done by the service. But the start fails all the time. The application crashes I get no error message in the emulator. Just a black screen remains. What could that be? With M5 everything works fine. |
16:07.38 | ttuttle | anno^da-_: Did you check logcat? |
16:09.20 | *** join/#android eton_ (n=eton@ppp-58-8-7-84.revip2.asianet.co.th) |
16:10.05 | al2308 | threading seems to be a popular problem :) |
16:11.18 | anno^da-_ | Well yes but I'm not getting the error. :/ |
16:13.35 | anno^da-_ | I'm checking again now :). |
16:19.27 | *** join/#android krosaen (n=krosaen@nat/google/x-0bc1b508775466fa) |
16:28.06 | jasta | yawn |
16:28.22 | jasta | anyone around that can help with my service permission issue? |
16:34.55 | jasonchen | what are you trying to do? |
16:35.31 | jasta | create a service in one APK and use it in another. |
16:36.02 | jasta | i figured i might need to create a permission to use the service from external APKs, which I did, but the problem remains. |
16:36.21 | jasta | I get a permission denial because the client APK apparently doesn't have the custom permission that it requests. |
16:36.27 | jasta | the two manifests are here: |
16:37.03 | jasta | http://code.google.com/p/five/source/browse/trunk/five-client/AndroidManifest.xml |
16:37.14 | jasta | http://code.google.com/p/five/source/browse/trunk/five-music/AndroidManifest.xml |
16:38.26 | jasonchen | can i assume that you're signing both APKs with the same key? |
16:38.35 | jasta | no, you can't. |
16:38.45 | jasta | the two APKs are logically separate on purpose |
16:39.05 | jasta | they represent an unprivileged modular arrangement. any other developer should be able to extend five exactly as five-music does. |
16:42.00 | anno^da-_ | Do I need a permission to start the MediaRecorder ? |
16:42.21 | jasonchen | anno^da-_: android.permission.RECORD_AUDIO |
16:42.34 | jasonchen | when in doubt, check http://code.google.com/android/reference/android/Manifest.permission.html |
16:43.08 | anno^da-_ | Well Im recordin video |
16:43.15 | anno^da-_ | and there is no permission regarding that |
16:43.43 | anno^da-_ | in M5 it worked fine now I get no error in code but the MediaRecorder fails with an Exception |
16:44.08 | jasonchen | jasta: re: what you're trying to do--i'm poking around to see if there's an example that I can reference |
16:44.28 | jasonchen | anno^da-_: what's the exception? |
16:45.27 | anno^da-_ | runtime exception -> start failed |
16:45.36 | jasta | jasonchen: what's weird is it claims clearly that i get permission denial for org.devtcg.five.permission.CONTENT_SERVICE |
16:45.59 | jasta | but five-music declares that it uses this permission. so it is Android just telling me to buzz off that i can't have the permission i ask for? |
16:46.08 | jasta | so is* |
16:46.41 | jasta | i was pretty tired last night tho, so maybe i missed something stupid :) |
16:49.08 | jasonchen | jasta: it looks like you're declaring uses-permission in both client and music |
16:49.44 | jasonchen | you want to delcare a permission in <service> on the five-music side |
16:50.31 | jasonchen | (this is of course, assuming that my morning coffee has kicked in and i'm making sense) |
16:51.26 | ttuttle | jasonchen: sounds right |
16:51.46 | jasonchen | basically move lines 15-21 in five-client/AndroidManifest.xml into the <service> entry for five-musis/AndroidManifest.xml |
16:54.27 | jasonchen | ttuttle: cool. didn't realize that you were hanging out here. are you back in school? |
16:57.40 | jasta | jasonchen: hmm? i don't follow? |
16:58.11 | jasta | five-music is the real client to these services. the <permission> declaration should remain in five-client, no? |
16:58.34 | muthu | service declares permissions, clients says uses-permission |
16:59.24 | jasta | right, so i don't see what i did wrong here? |
17:01.47 | muthu | looks like you are doing the reverse now |
17:02.04 | muthu | as jason said, move the permission declaration from client to server |
17:03.37 | *** join/#android morrildl (n=chatzill@nat/google/x-1954f8e54f7a7c34) |
17:03.57 | jasta | five-client implements the service. ignore the name of the project in this context. five-client is a client to the five-server, a C program running on the user's PC. |
17:04.35 | muthu | ok |
17:04.46 | jasonchen | ok, ignoring the name, you need to move the the <permission> under <service> regardless |
17:05.09 | jasta | i thought you did this by declaring android:permission="..." to specify which permission you use? |
17:05.53 | jasta | for example, what if i wanted to consolidate CONTENT_SERVICE and META_SERVICE permissions into FIVE_SERVICES? |
17:06.00 | jasta | and have content and meta service both require FIVE_SERVICES permission |
17:06.20 | jasta | then if i put <permission> under <service> it wouldn't make any sense. i'd have to declare FIVE_SERVICES permission twice. |
17:06.23 | jasta | (or more, for more services) |
17:12.38 | *** join/#android steventroughtons (n=steventr@86-43-174-2.b-ras2.prp.dublin.eircom.net) |
17:13.26 | steventroughtons | out of interest (and i'm checking android-freeware.org), but are there any Terminal apps for android? |
17:13.53 | morrildl | steventroughtons: do you mean a terminal onto the local device, or like an SSH client? |
17:14.09 | steventroughtons | local device, commandline access to the OS |
17:14.13 | morrildl | steventroughtons: a terminal onto the local device will be largely useless on production devices due to the security policies |
17:14.25 | steventroughtons | security policites? |
17:14.28 | morrildl | steventroughtons: you can run 'adb shell' to get a command line though |
17:14.44 | steventroughtons | sure, that part i'm doing atm, but it would be nice to have a terminal app |
17:15.15 | morrildl | steventroughtons: we had one but I think it's bit-rotted a little |
17:15.30 | steventroughtons | 'we' being google? |
17:16.24 | morrildl | steventroughtons: yes |
17:16.41 | *** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle) |
17:16.45 | jasta | steventroughtons: on a real device, this would not be as useful as you imagine. |
17:16.47 | steventroughtons | oh that would be super to see out in the wild, has it been pulled? |
17:17.18 | steventroughtons | I'm only working off the sdk, and i've found terminals to be useful on iphone, but what 'security policies' did you mean? |
17:17.24 | jasta | steventroughtons: we thought about creating one for the vogue, but didn't for a couple of reasons: a) to write a proper terminal we would need to write some stuff natively, b) the vogue had no hardware keyboard |
17:17.37 | jasta | for a real device, a terminal will be exposed through adb. |
17:17.40 | jasta | (i bet) |
17:18.11 | steventroughtons | could one access the adb shell from a java activity? |
17:18.39 | jasta | no. i'm having a hard time understanding what exactly you're wanting to do? |
17:19.14 | steventroughtons | just want a shell prompt in the os, that's all |
17:19.19 | jasta | *why*? |
17:19.37 | muthu | steventroughtons: you can talk to the adb from activity |
17:19.38 | steventroughtons | poke around the filesystem, run commands, etc? |
17:19.50 | jasta | steventroughtons: you can plug the phone into USB and run adb shell for that. |
17:19.55 | *** join/#android romainguy_ (n=romaingu@nat/google/x-35e403009f527d26) |
17:20.04 | steventroughtons | that means i have to plug it into a computer |
17:20.07 | jasta | no reason to do it through an android activity. that makes no sense at all. |
17:21.08 | jasta | well, whatever, you won't be able to do it without defeating android's built-in security (that being that you won't be able to run ELF binaries without being privileged more than regular applications can be) anyway. |
17:21.23 | jasta | or at least, certain ELF binaries. those in /system. |
17:21.54 | steventroughtons | sure, but that wouldn't stop me installing busybox in /data for example, and using it to work with the fs |
17:21.59 | jasta | for exploration, the SDK and developer tools (adb) will be much more than you need. and also, much more than you get on the iPhone. |
17:22.05 | steventroughtons | as i've been doing with the adb shell |
17:22.28 | jasta | i just don't see why you would want to explore with the phone. do you believe you can learn something new that way? |
17:22.42 | jasta | or just frustrate your fingers and eyes? |
17:23.07 | steventroughtons | i've used a terminal on iphone for many different reasons |
17:23.24 | jasta | by the way, Android's "security" is likely to be a very thin layer, unable to stop most seasoned linux hackers. |
17:23.44 | jasta | if you are one of them, you should be able to defeat it and create/install a terminal app. |
17:24.23 | steventroughtons | well currently i can create elf c binaries to run with adb shell, but then can't make a UI one i dont think |
17:24.27 | *** join/#android pjv (n=pjv@91.178.166.249) |
17:24.31 | jasta | Android's security, in fact, will be entirely based on the notion that you won't be reflashing the image. If you do, all bets are off. |
17:24.39 | jasta | steventroughtons: you can make a UI terminal. or rather, *one* can. ;) |
17:24.50 | jasta | maybe that's you, or maybe it isn't, I can't say. |
17:25.33 | jasta | but do realize that a proper terminal will allocate a UNIX pty, which is not functionality Java can natively do. You would need to write a small JNI layer, or try to fiddle with their ioctl binary (I did, unsuccessfully) |
17:26.17 | jasta | regardless, it would not be a hard project. as i said, a seasoned hacker should be able to do lots of things like this, asusming you can reflash the device. |
17:26.35 | *** join/#android Cedric2 (n=cbeust@nat/google/x-a0c95eab5e972609) |
17:26.38 | jasta | most of Google's security, as is the case with any embedded device, is based on the notion that you aren't going to just simply reflash the thing. |
17:27.10 | jasta | maybe they have extra hardware checks or softare checksumming to prevent this from being easy, but i doubt it. most embedded devices can't afford to do that type of thing. |
17:27.31 | steventroughtons | but that's assuming i have one of these theoretical 'devices' :P i have but the emulator, and won't be getting any device under contract |
17:27.46 | steventroughtons | I'm interested in seeing what the system can do |
17:27.50 | jasta | then why do you care to develop software to run on a phone you won't buy? |
17:27.51 | steventroughtons | not the first device that runs it |
17:28.04 | jasta | are you just trying to crudely compare the iPhone to Android? |
17:28.07 | steventroughtons | because I'm interested in the platform |
17:28.14 | *** join/#android pandora-- (n=pandora@cpe-76-170-18-42.socal.res.rr.com) |
17:28.38 | jasta | the platform itself as designed by Google will prevent you from constructing a meaningful system terminal. that is your answer, then. |
17:29.03 | jasta | the iPhone probably needs to be jailbroken to support this as well, which makes the comparison void. |
17:29.08 | steventroughtons | right, so it's no less restrictive than iPhone |
17:29.27 | steventroughtons | I'm not trying to compare anything, I was just hoping to have a native app terminal instead of using adb all the time |
17:29.35 | ttuttle | The restrictions are really there to prevent security problems. Would you give an app on your phone a root terminal? |
17:29.48 | steventroughtons | not my 'phone' |
17:29.56 | steventroughtons | but if it were another device, perhaps |
17:30.20 | steventroughtons | so long as anything distasteful could be undone |
17:30.23 | ttuttle | or, rather... |
17:30.26 | romainguy_ | steventroughtons: what exactly do you need to do with a terminal? |
17:30.27 | steventroughtons | via a reflash or dfu |
17:30.39 | ttuttle | would you trust your average user to manage a device where apps can have a root terminal? |
17:30.47 | steventroughtons | I don't *need* anything, I just asked if there was one around |
17:30.50 | jasta | steventroughtons: distasteful could be undone? the device has a wireless radio directly tied to your bank account. oh yes, there is a LOT of distsateful things to be done. |
17:30.52 | steventroughtons | and this is what I get :P |
17:31.01 | steventroughtons | @jasta I said not a phone |
17:31.14 | jasta | this meta conversation is boring me. |
17:31.21 | steventroughtons | because you don't read? ;) |
17:31.22 | morrildl | jasta: then don't participate :) |
17:31.26 | ttuttle | jasta: == morrildl |
17:31.35 | jasta | ttuttle/morrildl any insight on my permission issue? |
17:31.44 | morrildl | jasta: permission issue? |
17:31.51 | ttuttle | jasta: plz to see your Manifest(s)? |
17:32.10 | jasta | the "client": http://code.google.com/p/five/source/browse/trunk/five-music/AndroidManifest.xml |
17:32.18 | jasta | the "server": http://code.google.com/p/five/source/browse/trunk/five-client/AndroidManifest.xml |
17:32.19 | morrildl | steventroughtons: the emulator is somewhat less locked down than devices will be, but you still won't find a terminal particularly useful |
17:32.23 | morrildl | steventroughtons: but yes, one can be created |
17:32.35 | morrildl | your best bet is still just 'adb shell' though |
17:32.45 | steventroughtons | that's all i was asking, thanks |
17:32.45 | *** join/#android herriojr (n=Miranda@65.173.101.2) |
17:33.18 | jasta | morrildl: the client (five-music) gets permission denial trying to bind to either the content or meta services defined by the "server" (five-client) |
17:33.39 | morrildl | jasta: oh I think jasonchen was looking at that |
17:33.42 | jasta | despite that i created the permission relationship as android seemed to require. before i had any permission stuff in place, it also failed with permission denial. |
17:33.56 | jasta | he was, but his suggestion did not make any sense. |
17:34.02 | jasta | and then he wandered off :) |
17:35.27 | jasta | actually, perhaps my axml2xml tool still works and i can just find this out from the system apks |
17:36.46 | morrildl | jasta: and what are you trying to do? protect your Service via a permission other apps have to request? |
17:37.07 | jasta | morrildl: no, all i'm trying to is use my service. i tried adding permissions because that didn't work initially, citing a securityexception. |
17:37.25 | jasta | it was suggested to me that i no wmust create a permission relationship to make it work, which also doesn't seem to work. |
17:37.39 | romainguy_ | morrildl: the service and the app run in two different processes, different user ids, and different apks (in case this matters) |
17:38.13 | jasta | just like all the system services do, so this should be supported, right? |
17:38.22 | ttuttle | jasta: are the services offered by the client or "music"? |
17:38.40 | jasta | ttuttle: the services are in five-client. the nomenclature here is confusing because there is a larger role being described there. |
17:38.41 | ttuttle | jasta: I think you need to declare the permission in the other manifest. |
17:38.45 | ttuttle | oh |
17:39.07 | jasta | ttuttle: that makes no sense though. why would the apk using the service describe in detail the permission it wants? with human readable decriptions and the like? |
17:39.15 | ttuttle | jasta: IT doesn't. |
17:39.19 | ttuttle | jasta: *It |
17:39.31 | ttuttle | jasta: It should be described in detail in the apk *offering* the service. |
17:39.38 | ttuttle | jasta: The one using it just has <uses-permission android:name="..." /> |
17:39.39 | jasta | which is five-client, where they are defined. |
17:39.52 | *** join/#android steventroughtons (n=steventr@86-43-174-2.b-ras2.prp.dublin.eircom.net) |
17:40.03 | jasta | by the way, i also have <uses-permission> in five-client, the host of the services, because it was required after i added permissions. |
17:40.11 | jasta | that seemed stupid to me, though, as you can see by my comment immediately above: |
17:40.16 | jasta | <PROTECTED> |
17:40.30 | ttuttle | jasta: Oh, I was reading this wrong. |
17:40.44 | *** join/#android heat (i=dima@woland.radon86.com) |
17:40.46 | ttuttle | jasta: Looks like it should work. Where are you getting the error? |
17:41.07 | jasta | ttuttle: in five-music as it attempts to construct its playlist service which binds immediately to the content service. |
17:41.45 | jasta | the security exception doesn't describe the permission denial specifically, however the logcat a few lines above the exception says that there is a "Permission denial", because I need "org.devtcg.five.permission.CONTENT_SERVICE". |
17:41.57 | jasta | which i clearly request, as you can see in five-music's manifest. |
17:41.59 | ttuttle | jasta: ...but you request that. |
17:42.01 | ttuttle | jasta: Yeah. |
17:42.14 | ttuttle | jasta: And you're sure everything's up to date and such? |
17:42.25 | jasta | my only thought is that somehow the project wasn't getting rebuilt with the right manifest? but i tried cleaning it several times :\ |
17:42.41 | jasta | i can try one more time now building on a totally separate host, but i do think there is a problem here other than that. |
17:42.44 | jasta | hang on, i will try anyway |
17:42.47 | ttuttle | jasta: Okay. |
17:42.48 | ttuttle | brb |
17:43.24 | jasta | (i have to go through all the hassle of installing eclipse 3.4 manually hehe) |
17:44.21 | romainguy_ | jasta: have you tried moving the <users-permission/> after the <persmission/>? :) |
17:45.06 | jasta | romainguy_: the problem is not in the manifest you're reading. |
17:45.21 | jasta | five-client works fine. five-music can't use five-client's services, though. |
17:46.01 | jasta | (btw, i would prefer to remove all these permissions completely, but that doesn't seem possible either) |
17:46.26 | jasta | although i guess there's no harm in adding that layer |
17:47.26 | *** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net) |
17:48.31 | morrildl | jasta: I'm confused, how many apks are involved here? |
17:49.26 | jasonchen | jasta: did you try adding android:exported="true" to your <service>s when trying to do this sans permissions? |
17:49.46 | jasta | morrildl: 2. |
17:50.07 | jasta | jasonchen: no, i didn't. i'd never heard of that attribute before. |
17:51.33 | jasta | it seems like, had i had an intent-filter, that android:exported="true" would be set automatically? am i reading this documentation right? |
17:51.51 | jasonchen | yes |
17:51.59 | jasta | does a service having intent filters make any sense though? not really sure what that would be for |
17:52.24 | jasonchen | it doesn't particularly make sense--hence the existence of the attribute, methinks. |
17:52.28 | jasonchen | http://code.google.com/android/reference/android/R.attr.html#exported |
17:52.49 | jasta | hang on, i will try this (still setting up eclipse 3.4) |
17:54.43 | jasta | after reading the changes-overview, this does seem like the likely culprit though. thanks. |
17:55.43 | jasonchen | yw. sorry it took a bit to get to this. |
17:57.10 | *** part/#android muthu (n=sushmu@59.92.16.18) |
17:57.41 | *** join/#android marcone (i=marcone@xs2.xs4all.nl) |
18:01.20 | *** join/#android tethridge (n=tale@207.235.54.1) |
18:03.18 | *** join/#android soulreaper (n=soul@HSI-KBW-078-042-025-222.hsi3.kabel-badenwuerttemberg.de) |
18:08.14 | *** join/#android mazzen (n=Markus@u30-237.dsl.vianetworks.de) |
18:09.14 | *** join/#android ligi (n=ligi@p54B9E283.dip.t-dialin.net) |
18:13.08 | jasta | *groan*, finally got it up and building again :) |
18:13.22 | jasta | i need to fix the anrdoid maven plugin so i dont have to use Eclipse to build anymore hehe |
18:14.48 | jasta | jasonchen: thanks, android:exported did the trick. |
18:15.09 | jasonchen | jasta: great to hear |
18:15.21 | jasta | time to start digging in and rewriting most of this crap ;) |
18:16.07 | jasta | well, no, but it will be time when im off work hehe |
18:24.28 | tric | damn, still this Generic ADT Problem with a project |
18:24.55 | *** join/#android dual (n=olav@212.4.33.137) |
18:25.15 | *** join/#android anno^da-_ (n=anno^da@p5B07DF28.dip.t-dialin.net) |
18:25.17 | dual | Will it be possible to code applications for android in Python anytime soon? |
18:25.38 | tric | error generating Archive: null. any hints how to debug this? |
18:26.17 | *** join/#android jasta_ (n=jasta@32.158.249.104) |
18:29.11 | *** join/#android fpotter (n=fpotter@adsl-99-175-101-139.dsl.pltn13.sbcglobal.net) |
18:29.26 | *** join/#android f00f- (i=f00f@virusexperts.com) |
18:29.40 | jasta_ | fred? |
18:29.49 | fpotter | Yah |
18:30.03 | jasta_ | sup homie :) |
18:33.50 | xavd | tric: what's the context? |
18:34.53 | fpotter | not much :) trying to figure out what the proper setup is for testing (regular unit testing, tests w/ instrumentation) on android. I noticed the ApiDemos project with 0.9 came with several tests under a 'tests' dir, but not sure how to kick them off, or what the right way is to build them along with the main ApiDemos project. |
18:35.00 | tric | xavd: its a Error of a project. prolly happens while building it |
18:35.26 | herriojr | fpotter: did you get it working on a device? |
18:35.33 | xavd | tric: it shows up in the console? |
18:36.09 | tric | xavd: there is nothing in console, it shows up in Problems View in Eclipse 3.4 |
18:36.46 | fpotter | herriojr: I got the regular ApiDemos running on the device. That part was fine. Just not sure what the right way is to build the tests themselves. They have their own AndroidManifest file, that defines no activity. |
18:36.50 | tric | but i discovered it shows up for all new android projects, so i guess my adt plugin is broken |
18:37.15 | xavd | did you try doing a clean? |
18:38.50 | jasta_ | fpotter: i can help when i get back to the office, though i haven't done any sophisticated testing myself yet. |
18:39.09 | jasta_ | it does seem that instrumentation was improved in 0.9 tho |
18:39.29 | herriojr | what devices are you guys running 0.9 on? I thought it broke a lot of stuff |
18:39.52 | herriojr | I'll check the manifest in a second to see what you're talking about fpotter |
18:39.53 | fpotter | jasta: yeah... it looks kinda _awesome_. |
18:39.58 | jasta_ | herrior: none currently. i think the vogue is no more... |
18:40.14 | herriojr | ah, ok |
18:40.34 | tric | xavd: yes, i tried several cleans. reinstall of both plugins fixed it. |
18:40.36 | jasta_ | fpotter: it certainly is an improvement. i finished getting five compiled this morning...got a lot more work left tho |
18:41.06 | jasta_ | especially since now apparently i have to produce a kludgey work around to the deficient mediaplayer. |
18:41.07 | xavd | tric: well that was strange. glad to hear you got it fixed |
18:41.14 | jasta_ | i doubt ill be able to target device launch |
18:41.43 | fpotter | is it even possible to have two AndroidManifest files referenced in the same project? I kinda feel like the intention with the 'tests' under ApiDemos was to have them be a totally separate project, but not sure... |
18:42.57 | jasta_ | i dont believe it is possible. im heading back now so ill be back on to look in about 10m. |
18:43.06 | jasta_ | (at lunch right now) |
18:43.12 | dual | I asked earlier, but I ask again: Will it be possible to run python apps on android? |
18:44.22 | herriojr | dual: it all depends on how open the carriers let android be when it launches on a device |
18:44.34 | romainguy_ | dual: not with the 1.0 SDK |
18:44.46 | romainguy_ | but you could have a Python interpreter in Java |
18:44.51 | romainguy_ | like Jython |
18:45.07 | tric | xavd: hmm, looks like there is still something broken. accessing the main android preferences view or the child build view hangs |
18:45.09 | anno^da-_ | romainguy: Do you know sth. if the MediaRecorder is broken ? |
18:45.16 | dual | herriojr: It should be possible to compile Python if android allows it |
18:45.32 | dual | But how open source is it really to end users? |
18:45.33 | romainguy_ | anno^da-_: no idea |
18:46.00 | herriojr | android is just a specification, the carriers can remove any and all features if they deem necessary before it launches on any devices on their network |
18:46.22 | tric | hmm, strange, it works again. something is fishy here |
18:46.25 | herriojr | that's one thing I don't think people have been taking into consideration |
18:46.34 | xavd | tric: what version of eclipse are you using? |
18:46.39 | tric | 3.4 |
18:46.45 | dual | So they wont let me install and change whatever I like? |
18:46.57 | herriojr | they may not |
18:47.02 | xavd | tric: any information the eclipse log? |
18:47.08 | tric | works well at work, worked without problems till this evening here. and since some hours it is broken. |
18:47.38 | dual | Then I bet people wont call it open source |
18:47.51 | herriojr | carriers are free to modify android any way they see fit |
18:48.04 | herriojr | so android may be a subset of what it should be when it launches |
18:48.07 | dual | But it wont be open source to the users |
18:48.32 | romainguy_ | dual: yes it will, since they will be able to grab the source |
18:48.36 | herriojr | oh, it could be open source, but they might implement some type of signing that doesn't allow you to install new firmware |
18:48.47 | tric | xavd: hmm, yes ;-) http://pastebin.com/d25c32192 |
18:48.49 | herriojr | I've seen it done on Motorola devices |
18:48.56 | dual | Well, Ok |
18:49.04 | herriojr | where the source is open source, but you can't install it on the phone yourself without it being signed |
18:49.25 | dual | I bet someone will crack it some time. |
18:49.31 | herriojr | I hope so :) |
18:50.20 | tric | xavd: and this was the trace from my problem before reinstalling the plugin: http://pastebin.com/d7dc269ce |
18:50.24 | xavd | tric: that's strange |
18:51.01 | xavd | tric: I'll check that NPE |
18:51.25 | xavd | but it's a bit strange, and migth be due to an install issue. |
18:51.25 | tric | haha, the the NPE is back again |
18:51.33 | dual | Any other than HTC who has confirmed that they will make android phones? |
18:52.06 | xavd | tric: damn |
18:52.25 | xavd | tric: can you enable the verbose build output (prefs > android >build) |
18:52.43 | xavd | I'd be interested to see what's the output before the npe (so that I can figure out where it happens) |
18:53.07 | herriojr | dual: probably any device manufacturer part of the open handset alliance |
18:53.38 | herriojr | htc, lg, motorola, and samsung are all part of the open handset alliance |
18:54.30 | dual | And Sony Ericsson and Nokia are still sticking with Symbian? (which will also be "open source") |
18:55.28 | herriojr | I don't know for sure |
18:55.46 | herriojr | Nokia just recently started making BREW phones again, so I wouldn't say they are completely tied to symbian |
18:56.13 | dual | Ok, I didn't know that |
18:56.22 | herriojr | but interestingly, qualcomm is part of the open handset alliance |
18:56.26 | *** join/#android mazzen (n=Markus@u30-237.dsl.vianetworks.de) |
18:56.32 | herriojr | so BREW might go the way of the dinosaurs |
18:57.10 | herriojr | I look at it this way: manufacturers will support whatever operating systems the carriers enforce |
18:57.30 | herriojr | otherwise their phones won't get sold :) |
18:57.36 | dual | Maybe a little beyond this channel topics but: Will Nokia/SE let people install new versions of the open source symbian on phones with for example UIQ2/3 and S60 etc? |
18:58.04 | herriojr | idk |
18:58.14 | dual | Better check #symbian |
18:58.30 | tric | xavd: lemme try to isolate the problem. eclipse is logging again after a restart ;) |
19:00.51 | jasta | yawn |
19:01.07 | herriojr | long day jasta? |
19:01.17 | jasta | late night, more like it :) |
19:01.26 | jasta | was up getting my app to run on 0.9 (which it does now) |
19:01.32 | herriojr | yeah :) |
19:01.37 | herriojr | I was up late watching olympics |
19:02.56 | herriojr | btw, did they finally implement class loading? |
19:03.11 | herriojr | or do you still have to do it the dex file way? |
19:03.54 | jasta | fpotter: it does look like they set up instrumentation to be a separate project, but obviously unit testing would not work this way |
19:04.05 | jasta | romainguy_ may be able to comment more intelligently on how they do this internally |
19:07.04 | tric | xavd: ok, i started eclipse without any open android project, and created a new Android project (AndroidTest). this http://pastebin.com/d420aa350 is the eclipse log, http://pastebin.com/m7ec43c12 is the console output |
19:07.07 | jasta | fpotter: unit testing and instrumentation doesn't seem to be a well understood problem by anyone working with android |
19:08.35 | Cedric2 | Yup, we think testing is a waste of time |
19:09.58 | *** join/#android mazzen (n=Markus@u30-237.dsl.vianetworks.de) |
19:10.06 | jasta | Cedric2: huh? |
19:11.19 | jasta | romainguy_: are you around? i have a few more questions about the static service connections in the music player and other apps? |
19:11.25 | romainguy_ | jasta: fpotter: unit testing and instrumentation doesn't seem to be a well understood problem by anyone working with android << wtf are you talking about? |
19:11.33 | *** join/#android AttractiveApe (n=phil@office.gossamer-threads.com) |
19:11.46 | jasta | romainguy_: by anyone that doesn't work at Google, I meant. |
19:11.58 | romainguy_ | still |
19:12.09 | jasta | no, not still. where is a working example of this done correctly? |
19:12.35 | umdk1d3 | jasta: i would say that 80% of android code written by outsiders is still closed source at this point |
19:12.43 | xavd | tric: looking |
19:12.47 | jasta | how do we build the ApiDemos tests and run them ourselves, for example? |
19:12.48 | umdk1d3 | so we are only looking at a small sample of apps |
19:13.08 | fpotter | I'm just trying to understand how to build/run these cool instrumentation tests that come along with ApiDemos, so I can understand how to use them with my own project. |
19:14.03 | romainguy_ | what's the problem with building it? |
19:15.26 | jasta | how do you build a project with multiple manifests? |
19:15.48 | romainguy_ | you don't |
19:15.50 | romainguy_ | you build two apks |
19:15.50 | fpotter | romainguy: it's probably just me - i'm a little new to the scene. There's a directory full of tests there under tests/src that reference code under src/, another AndroidManifest file there that defines not activity. I'm not sure where to go next... |
19:17.05 | jasta | romainguy_: does the included activityCreator generate ant build environments which can make this work or will we have to hack that up ourselves to do testing outside of the Eclipse environment? |
19:21.40 | *** join/#android OpnSrc1 (i=harisha1@gateway/tor/x-0078856e5f6c4d4a) |
19:21.56 | *** join/#android davidw (n=davidw@apache/committer/davidw) |
19:24.37 | anno^da-_ | Am I able to invoke the callback of the camers takePicture somehow ? Or does the user have to click the button that is fixed by the hardware vendor ? |
19:24.47 | anno^da-_ | +cameras |
19:24.48 | *** join/#android sayers (n=steven@c-76-20-182-119.hsd1.mi.comcast.net) |
19:24.59 | fpotter | romainguy: it's probably supposed to be obvious, but for whatever reason, I don't get how to build that second apk with the tests in it. |
19:26.10 | jasta | fpotter: actually, Android's documentation is missing lots of stuff. Their own examples kind of gloss over certian details simply because they're well understood internally. |
19:26.38 | jasta | It's a huge project, sure, and the general quality of the docs are great, but there are certain corners where it's incomplete, or just plain wrong |
19:27.12 | jasta | and i've always thought testing was one of those areas. i was certain they used unit testing and instrumentation internally, but never bothered to say "oh by the way, ..." :) |
19:27.23 | jasta | apparently Romain thinks i'm crazy for saying that, though. |
19:32.50 | tethridge | I know why he's not responding... :-) |
19:33.01 | tethridge | let me help |
19:33.05 | tethridge | romainguy, http://www.google.com/search?hl=en&q=define%3A%22unit+testing%22 :-) |
19:34.31 | jasta | romainguy_: so, another problem i wrestled with on Five for quite a while that seems to be solved your music player here (and probably other apps of course) is how to deal with processing UI events before the necessary service connection has been made. There seems to be a small window between when the UI opens for the first time and the service is available to do stuff where if the user clicks an action, there is no way to fulfill the request. |
19:34.32 | *** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net) |
19:34.53 | jasta | I thought the best strategy seemed to be to queue messages for all UI commands until the service is connected, and use a Handler to catch that cas.e |
19:35.01 | jasta | but that seemed like a bit of overhead to kill a race condition |
19:35.08 | jasta | how does the music player solve this? |
19:36.15 | jasta | tethridge: i think the problem is really just taht their build/deploy/test environment is way different from ours, and they haven't really translated it yet :) |
19:36.51 | tethridge | you have a test environment? |
19:37.10 | tethridge | I thought that was what users were for |
19:38.35 | marcone | jasta: the music player solves that in mainly two ways: either don't put up the UI until the service is up, or don't respond to UI if you're not connected to the service |
19:38.44 | umdk1d3 | hmm is there a reason this isnt working? android:drawableTop="?android:drawable/divider_horizontal_dark" |
19:38.59 | umdk1d3 | it comes back with lots of exceptions |
19:39.09 | jasta | marcone: hmm? how does it do both? |
19:39.30 | marcone | some of its activities do it one way, some the other way |
19:48.06 | *** join/#android sayers (n=steven@c-76-20-182-119.hsd1.mi.comcast.net) |
19:49.06 | umdk1d3 | hmm |
19:49.36 | umdk1d3 | with the drawableTop xml definition, is there a way to force it to behave like a 9patch and strech to fill_parent? |
19:58.41 | umdk1d3 | gaaaah i cant make an ImageView stretch a 9patch |
20:07.04 | *** join/#android matt_c_ (n=mcroydon@gozur.sunflowerbroadband.com) |
20:09.26 | jasta | marcone: how do you block the UI? just defer calling setContentView? |
20:09.42 | marcone | yes |
20:10.08 | jasta | what will display in its place after onCreate? a blank view? |
20:10.33 | ttuttle | A black screen. |
20:10.40 | ttuttle | I believe. |
20:11.50 | *** join/#android AttractiveApe (n=phil@office.gossamer-threads.com) |
20:11.52 | jasta | it would be nice to have a way to defer the window loading. |
20:12.18 | jasta | well, maybe. it would be interesting to be able to experiment with the two approaches |
20:12.57 | marcone | how is "defer window loading" different from deferring the call to setContentView() ? |
20:15.20 | zhobbs | hmm....anyone know offhand how to search for links to a specific filename in google? |
20:15.52 | umdk1d3 | inurl |
20:16.03 | umdk1d3 | inurl:filename.ext |
20:16.21 | zhobbs | great, thanks |
20:17.07 | jasta | marcone: i mean, the window animates into existence, but would display a black view for a moment |
20:17.13 | jasta | why not defer allowing the window to even appear? |
20:17.22 | jasta | or have that ability some other way, at least. |
20:17.47 | jasta | but i'm not confident that would be better. i'd have to see it side-by-side i think |
20:20.39 | marcone | postponing the window animation would make it appear as though your app didn't launch. |
20:21.18 | inZane-_ | did anyone got the gps provider running with the new sdk? |
20:21.21 | jasta | marcone: what activities ignore the user's input? |
20:21.25 | inZane-_ | the docs say the gps provder simulates a journey as in the old release |
20:21.29 | jasta | versus which ones wait? |
20:21.33 | inZane-_ | but i dont get any updates :-( |
20:21.40 | jasta | marcone: trying to get a better sense of how my app should behave... |
20:21.47 | jasta | what a good base guideline is for this behaviour |
20:22.20 | jasta | marcone: also, romain tells me the service connection is maintained statically so the activity need not reconnect while the service (and thus process) is still alive |
20:22.53 | jasta | but why is that a HashMap of Context to ServiceConnection? Why not just a static reference to the ServiceConnection? |
20:22.56 | marcone | I don't think there is one that waits for its entire UI. The main screen displays part of its UI only after its bound to the service (it doesn't actually postpone calling setContentView) |
20:24.01 | jasta | err, not the serviceconnection, i meant to the service connection binder itself, as given by onServiceConnected() |
20:27.11 | jasta | but still, why the HashMap? |
20:27.17 | marcone | the hashmap is just there to support some convenience methods to bind/unbind the service |
20:27.25 | jasta | i'm exciting to implement this paradigm into my app :) |
20:28.08 | jasta | what do you mean? is it something abstract you guys use internally? |
20:29.48 | marcone | the music app has a class with a bunch of convenience methods for its various activities (getting a list of songs, starting playback, binding to the service, etc), and one of those methods uses that hashmap to keep track of who has bound to the service |
20:30.12 | marcone | it's really just something internal to the music app |
20:31.36 | tethridge | is the finger swipe patented for navigation between pictures when viewing in full screen mode? |
20:33.15 | tethridge | I'm just curious. The home screen uses the finger swipe to move across desktops, but in the photo viewer you have to click on the arrows to the left and right |
20:33.25 | jasta | marcone: is the HashMap shared by each Activity, or does each implement the field itself? |
20:33.29 | tethridge | the lack of consistency is what confuses me |
20:34.13 | anno^da-_ | Does someone know how the "replace(..)" method in the SQLiteDatabase works ? I don't see the funcionality of it. Where do I define which row to be replaced ? |
20:35.09 | umdk1d3 | anno^da-_: it might be based on the current row selected by the cursor |
20:35.32 | umdk1d3 | oh hmm in SQLiteDatabase idk |
20:35.40 | romainguy_ | tethridge: we have good reasons |
20:35.50 | tethridge | ok? |
20:36.01 | marcone | jasta: assuming you are talking about the same HashMap as I was, then it's private to the MusicUtils class, and only accessed by some of its methods |
20:36.09 | tethridge | I guess you aren't going to tell me? |
20:36.51 | umdk1d3 | tethridge: not sure about any patents on that |
20:38.31 | tethridge | romainguy, I guess a new photo view could be written to use the finger swipe if somebody wanted, right? |
20:38.39 | tethridge | s/view/viewer/ |
20:39.21 | *** join/#android davidw_ (n=davidw@213.47.186.146) |
20:41.17 | SUSaiyan | why wouldnt you use finger swipe for the photo viewer? |
20:41.26 | tethridge | that's my point |
20:41.43 | tethridge | currently you have to click on two arrow on the left and right to navigate |
20:43.22 | *** join/#android steventroughtons (n=steventr@86-43-174-2.b-ras2.prp.dublin.eircom.net) |
20:45.05 | ligi | is there a way to use MapView without network? |
20:45.28 | ligi | with cached content |
20:46.34 | jasta | sweet! it's finally been made official so i can talk about it hehe |
20:46.46 | jasta | Google invested a truckload of cash in my girlfriend's startup company, AltaRock Energy :) |
20:47.10 | jasta | she doesn't own it or anything, but she's gonna make mad cash from this still :) |
20:47.32 | davidw_ | wow |
20:47.38 | ligi | nice |
20:47.42 | davidw_ | give her a ring before she gets away |
20:47.55 | ligi | lol |
20:47.58 | davidw_ | what do they do? |
20:48.56 | jasta | geothermal energy |
20:49.40 | jasta | they're just getting started too, they don't even have a facility built yet. |
20:49.51 | jasta | but Google dropped a ton of cash on them to build a demo site |
20:50.05 | jasonchen | pictured larry & sergey in some victorian jules verne adventure to the center of the earth when he heard about that investment |
20:50.55 | davidw_ | aahhaha |
20:51.01 | marcone | jasta: so technically, they're supposed to use that cash to build a demo site, not to give lots of its to your girlfriend :) |
20:51.20 | *** join/#android Acsia (n=Acsia@78-86-205-140.zone2.bethere.co.uk) |
20:51.44 | jasta | marcone: *pssh*, technicality |
20:52.28 | *** part/#android Acsia (n=Acsia@78-86-205-140.zone2.bethere.co.uk) |
20:52.29 | davidw_ | hopefully they don't come up with any bright ideas like drilling under Crater Lake... |
20:52.37 | davidw_ | someone wanted to do that a number of years ago |
20:53.18 | *** join/#android musique (n=cmendis@nat/google/x-f25ead70bff5aa94) |
20:55.35 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
20:58.46 | *** join/#android Acsia (n=Acsia@78-86-205-140.zone2.bethere.co.uk) |
20:59.08 | *** part/#android Acsia (n=Acsia@78-86-205-140.zone2.bethere.co.uk) |
21:04.28 | *** join/#android bluerive1 (n=qtameic@cacher3.ericsson.net) |
21:29.04 | tethridge | romainguy, can you tell me why that decision was made? |
21:34.44 | tethridge | I guess some stuff is still covered by an NDA... :-) |
21:41.37 | *** join/#android tomgibara (i=Miranda@gibara.demon.co.uk) |
21:48.31 | *** join/#android zmig (n=lolanon@96.28.203.214) |
21:55.33 | jasta | romainguy_: that new fancy application crash dialog that pops up on fatal exceptions...can it be thrown intentionally to represent a fatal condition in your app? |
21:55.39 | *** join/#android mr_daniel (n=sysrq@e177159196.adsl.alicedsl.de) |
21:56.39 | jasta | i'd like to throw up a kind of "aww crap" dialog and finish() on fatal conditions |
21:58.52 | zhobbs | throw RuntimeException() ? |
21:59.10 | zhobbs | throw new RunetimeException("message") |
21:59.15 | *** part/#android steventroughtons (n=steventr@86-43-174-2.b-ras2.prp.dublin.eircom.net) |
22:07.02 | davidw | ugh |
22:07.06 | davidw | this is going to be a slog |
22:08.26 | romainguy_ | tethridge: if I could tell I would tell :) |
22:09.51 | jasta | zhobbs: well, but i want to call finish() as well, and i want to ensure that my app is not restarted when the user clicks the button |
22:10.06 | jasta | since i plan to use this for cases where i know the fatal error is going to just happen again |
22:10.37 | marcone | why not just show a dialog yourself then? It's not *that* hard... |
22:11.26 | jasta | no, i know, but i was hoping there was just some nice ErrorDialog class or somethin :P |
22:11.44 | zhobbs | the wind/rain is picking up here...I'm going to be stuck home until this hurricane passes tomorrow evening |
22:11.47 | romainguy_ | there's AlertDialog jasta |
22:11.57 | romainguy_ | that's what the Sorry! dialog is |
22:12.12 | jasta | really? what about the icon? |
22:12.19 | romainguy_ | the triangle thing? |
22:12.24 | jasta | i thought it extended AlertDialog to do that. |
22:12.29 | romainguy_ | nope |
22:12.34 | romainguy_ | jsut use AlertDialog.Builder |
22:13.16 | jasta | ok, what's the icon that's used by the standard one? |
22:13.48 | *** part/#android ozarka (n=elineber@12.106.220.2) |
22:14.02 | romainguy_ | android.R.drawable.ic_dialog_alert |
22:14.19 | romainguy_ | oops no |
22:14.20 | romainguy_ | not this one |
22:14.33 | romainguy_ | let's start over |
22:14.38 | romainguy_ | what icon are you talking about? |
22:15.46 | jasta | am i imaginging the icon in the "Sorry!" dialog? I thought it was a triangle with an exclamation point in it. |
22:15.57 | romainguy_ | ah yes |
22:16.03 | romainguy_ | then it's ic_dialog_alert |
22:16.08 | romainguy_ | just wanted to make sure that was the right one |
22:16.09 | *** join/#android dasunsrule32 (n=dasunsru@216-39-180-8.ip.theriver.com) |
22:16.25 | dasunsrule32 | What is android? |
22:16.46 | romainguy_ | so just call setIcon(android.R.drawable.ic_alert_dialog) on AlertDialog.Builder |
22:16.57 | dasunsrule32 | Nevermind |
22:16.59 | f00f- | loves Builder's |
22:17.01 | dasunsrule32 | I rememer |
22:17.04 | *** part/#android dasunsrule32 (n=dasunsru@216-39-180-8.ip.theriver.com) |
22:18.05 | jasta | romainguy_: yeah, it's simple enough. i was just thinking a nice way to centralize this in Android itself would be cute. but it's not a big deal. |
22:18.39 | zhobbs | hmmmm...no more ArrayListCursor |
22:19.06 | f00f- | it's a MatrixCursor now? |
22:20.29 | zhobbs | yeah, guess so |
22:21.46 | zhobbs | I don't really understand Parcelable.describeContents() |
22:22.03 | romainguy_ | it's only if you use file descriptors |
22:22.08 | romainguy_ | for now |
22:39.20 | chomchom | davidw: yeah, its such a slog! |
22:39.37 | chomchom | thats me finished real work at 23:39 |
22:39.50 | chomchom | now onto the 42 remaining errors |
22:51.19 | chomchom | I'm trying to make a notification like this : Notification notification = new Notification(R.drawable.stat_sample, text, System.currentTimeMillis()); |
22:51.26 | chomchom | is that right? |
22:52.56 | chomchom | Ah yeah |
22:53.04 | chomchom | you just use it in the notification manager |
22:56.19 | jasta | does anyone know if there's a lot of overhead associated with IFoo.Stub.asInterface(ibinder)? |
22:57.38 | jasta | i'm trying to implement a generic re-usable service connection activity to base a lot of my activities on |
22:57.58 | jasta | and i'm thinking about storing statically the IBinder result and just simulating onServiceConnected() when the connection can be re-used. |
22:58.18 | jasta | so when it is reused i'd be calling IFoo.Stub.asInterface() on it each time |
22:58.36 | jasta | I wonder if it's even safe to keep a lingering reference to the binder object given to me by onServiceConnected |
22:58.43 | jasta | i really wish i could see this code that the music app uses ;) |
23:01.41 | ttuttle | jasta: patience |
23:01.50 | ttuttle | jasta: remember, all will be open-sourced in time |
23:02.42 | jasta | do you really want us to have patience? isn't it better for Android if we are writing code rather than waiting for you? :) |
23:03.12 | ttuttle | jasta: No, I want you to write code *while* waiting patiently for Google to finish it and then open-source it. |
23:03.56 | jasta | my app's rewritten, more elegant design depends on knowing this information now. |
23:06.36 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
23:06.36 | gambler | jasta, I doubt there is much overhead. as little as they could manage for that anyway |
23:09.13 | gambler | can you use the lingering referenc and code a re-connection thats exception oriented? |
23:09.49 | jasta | what would that do for me? |
23:11.23 | gambler | let you use the reference? |
23:12.14 | jasta | what i was wondering is whether it's safe to keep a reference to the object given in onServiceConnected, or only if its safe to linger the IFoo.Stub.asInterface() result... |
23:12.23 | jasta | because i bet they do the latter, since they aren't trying to be quite as general |
23:12.40 | jasta | i was trying to create a solution like theres but completely general |
23:19.18 | gambler | did you see linkToDeath |
23:20.39 | gambler | n e way im not experienced enough to discuss this well |
23:29.28 | *** join/#android acet (n=acet@83-70-243-205.b-ras1.prp.dublin.eircom.net) |
23:30.22 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
23:32.52 | chomchom | Now that the Overlay controllers are gone |
23:33.02 | chomchom | And we have these itemizedOverlayItems |
23:33.10 | chomchom | how abouts do we use them? |
23:33.31 | chomchom | Just generally will do |
23:41.47 | jasta | ponders if SQLiteCursor's are thread-safe. |
23:45.20 | *** join/#android meoblast001 (n=meoblast@dynamic-acs-24-239-93-241.zoominternet.net) |
23:50.46 | *** join/#android markf (n=markf@nat/google/x-a1b849e7dec70c43) |
23:55.23 | TSchultz55 | Anyone having issues with the new SDK in Linux? |
23:55.43 | TSchultz55 | It won't generate the APK |
23:56.27 | TSchultz55 | "Error generating final archive: null" |
23:57.01 | jasta | i am not having problems |
23:57.16 | TSchultz55 | are you using Eclipse 3.4? |
23:57.18 | jasta | yes |
23:57.21 | TSchultz55 | hrmmmmmmmm |
23:57.23 | jasta | on Ubuntu and Debian (2 machines) |
23:57.27 | TSchultz55 | yargh |
23:57.27 | jasta | make sure you clean your project in Eclipse |
23:57.28 | TSchultz55 | same |
23:57.29 | TSchultz55 | wtf |
23:57.40 | TSchultz55 | clean Eclipse install too |
23:57.50 | jasta | did you install the ADT? |
23:57.58 | TSchultz55 | ............... |
23:57.59 | jasta | the Eclipse plugin, i mean. |
23:58.02 | TSchultz55 | damnit |
23:58.10 | TSchultz55 | no |
23:58.11 | TSchultz55 | heh |
23:58.21 | *** join/#android fariseo (i=fariseo@real.wilbury.sk) |
23:58.32 | xavd | I'm surprised you're actually getting this error with no ADT plugin installed |
23:58.35 | TSchultz55 | wait no I did |
23:58.50 | xavd | anything interesting in the .log file? |
23:59.11 | xavd | (in the workspace, under .metadata) |
23:59.52 | TSchultz55 | no log in that folder |