00:06.44 | *** join/#android aculich (n=aculich@216-15-124-74.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com) |
00:28.55 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
00:42.02 | *** join/#android crib (n=chris@port-195-158-167-6.dynamic.qsc.de) |
00:55.32 | *** join/#android haavi (n=blahhah@c83-254-97-71.bredband.comhem.se) |
01:05.43 | sayers | jasta: I wrote a tip calculator :p |
01:05.54 | sayers | jasta: oh and my game is done in 2 more days |
01:08.45 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
01:10.10 | |Phocion| | hey all |
01:11.01 | ttuttle | romainguy_: hey |
01:11.25 | ttuttle | romainguy: (hey) |
01:11.43 | TSchultz55 | anyone know how Google carries out usability testing for Android? |
01:11.57 | TSchultz55 | the UI |
01:12.19 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net) |
01:12.22 | TSchultz55 | huge differences between now and earlier revisions |
01:13.45 | ttuttle | They probably ask people to try it ;-) |
01:13.54 | ttuttle | That's how most companies test UIs. |
01:14.37 | sayers | TSchultz55: They have a SDK with a Emulator in it |
01:14.42 | sayers | I do some Android development myself |
01:16.49 | sayers | Hehehe, wrong channel |
01:17.03 | sayers | So ignore the last , well this and the 2 previous |
01:19.03 | jasta | bbl, heading home now |
01:19.12 | jasta | yakischloba: i waited for traffic to clear :P |
01:22.52 | yakischloba | jasta: yeah its a fucking mess out there again...even now |
01:38.45 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
02:00.09 | TSchultz55 | sayers: yeah I know I work with the SDK a lot |
02:00.36 | TSchultz55 | i was thinking more along the lines of getting non-techie people to play with it and give them feedback |
02:01.48 | duey | TSchultz55, I suspect they probably dont do a lot |
02:01.50 | duey | at this time |
02:02.04 | duey | but romainguy may or may notbe able to clarify |
02:02.37 | TSchultz55 | awesome thanks i'll shoot him a msg |
02:03.01 | TSchultz55 | i'm doing HCI for grad school right now and we have to choose something to write about |
02:03.20 | TSchultz55 | i'm writing about Android |
02:07.12 | sayers | TSchultz55: Family & Friends :s |
02:07.39 | sayers | night all |
02:08.04 | *** join/#android mluser-home (n=mluser@ip68-0-73-101.tu.ok.cox.net) |
02:27.01 | *** join/#android Matrix9 (n=MiniMe@s206-75-119-243.ab.hsia.telus.net) |
02:49.04 | *** join/#android aculich (n=aculich@c-76-24-31-156.hsd1.ma.comcast.net) |
02:53.26 | *** join/#android dueynz (n=duey@203.96.223.40) |
03:04.06 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
03:06.43 | yakischloba | Does sqlitebdatabase.query() return null if there are no records?.. |
03:20.48 | *** join/#android muthu (n=sushmu@59.92.93.239) |
03:38.26 | jasta | yawn |
03:39.09 | jasta | yakischloba: no, it returns null if the query fails |
03:39.13 | jasta | it returns an empty cursor otherwise |
03:39.47 | yakischloba | Yeah I think I discovered my problem after a long time looking in the wrong places...I didn't have a ';' at the end of one of my table creation statements :) |
03:39.56 | jasta | an empty cursor can be detected by calling checking eihter cursor.isLast() or cursor.count() == 0 |
03:40.17 | jasta | but i do not know the performance implications of cursor.count(). Probably O(1), but I don't know that for sure. |
03:40.33 | jasta | yakischloba: if you use adb logcat, cursor query failures will be logged in detail. |
03:40.55 | jasta | I'm sure I've recommended this to you before but I do want to stress that you should always check adb logcat while you're exploring problems. |
03:41.06 | jasta | often information gets printed there that will at least give you a clue. |
03:41.06 | yakischloba | maybe my eyes are blinding it away. I'm using it |
03:41.54 | jasta | It's there. |
03:42.27 | yakischloba | I don't see it :( |
03:43.29 | jasta | well actually, maybe only managedQuery prints that. |
03:43.46 | yakischloba | I sure hope so because I just scrolled through the crash about 15 times and I don't find anything |
03:44.06 | jasta | (it often appears many lines up) |
03:45.46 | yakischloba | well I've been screwing with it for over an hour, I sure hope I would have recognized it by now |
03:45.51 | yakischloba | ;) |
03:46.17 | yakischloba | do I need a more verbose output setting or something? I'm just using './adb logcat' |
03:46.22 | jasta | no |
03:50.47 | umdk1d4 | :( i think im doing something very evil |
03:51.11 | umdk1d4 | im running a search, and my GC is triggered every 1/2 second, and clears a few thousand objects |
03:51.14 | umdk1d4 | O.O |
04:09.06 | umdk1d4 | ahahaha this explains why http://www.flickr.com/photos/8326556@N08/2533874713/in/photostream/ |
04:09.32 | umdk1d4 | im using #7, which in the next slide he outlines with big red DANGER lol |
04:33.50 | yakischloba | jasta: I have a NullPointerException being throw in a sqlitedatabase.insert(). Is this a result of a failed insert? I can't see anything thats null. (and I still don't see any SQLite stuff in logcat) |
04:42.59 | yakischloba | nevermind I'm being a fucktard |
04:46.58 | *** join/#android michaelnovakjr1 (n=mnovak@96.56.111.166) |
04:47.07 | michaelnovakjr1 | howdy |
04:47.12 | yakischloba | hey thurr |
04:47.13 | yakischloba | hows it goin |
04:47.23 | michaelnovakjr1 | not bad yourself? |
04:47.42 | yakischloba | uhm. Feeling like a dumbass after fighting with a _stupid_ problem for hours ;) |
04:48.26 | michaelnovakjr1 | it happens :) |
04:48.42 | yakischloba | just goes to show booze and java don't mix. |
04:48.58 | michaelnovakjr1 | i do it all the time |
04:49.06 | michaelnovakjr1 | beer though :) |
04:49.10 | yakischloba | yeah well..some of us are sharper to begin with than others :) |
04:49.46 | michaelnovakjr1 | working on anything interesting? |
04:49.47 | yakischloba | I've gotten so accustomed to Eclipse pointing out my obvious problems, I didn't even think of this one. |
04:50.04 | yakischloba | Nope heh. Just getting the foundation of my app going. Fumbling around in the dark. |
04:50.31 | michaelnovakjr1 | how's the new display? |
04:50.39 | yakischloba | gorgeous |
04:51.08 | michaelnovakjr1 | yea, they are my favorite :) |
04:51.32 | yakischloba | I watched a bunch of downloaded TdF stages on it last night, it was pretty sweet |
04:51.48 | michaelnovakjr1 | sweet |
04:52.08 | yakischloba | I don't own a TV, so I've been watching any video on my 13" macbook for the last year or two |
04:52.19 | michaelnovakjr1 | damn, no tv? |
04:52.31 | yakischloba | Naw. I don't have time for that junk :) |
04:54.20 | yakischloba | I have a hard enough time getting anywhere with none of that leisurely business |
04:54.21 | michaelnovakjr1 | i don't watch a lot of it myself, but i do enjoy the history channel in HD :) |
04:54.21 | michaelnovakjr1 | stupid usb |
04:54.47 | yakischloba | mm yeah history channel is nice. I enjoy watching TV when I do it at other peoples houses. I just don't want the distraction in mine really |
04:56.08 | michaelnovakjr1 | i know a few people without one |
04:56.14 | michaelnovakjr1 | did you see the comcast ruling? |
04:56.26 | yakischloba | No. Whats it about now?.. |
04:56.36 | yakischloba | Seems like I see comcast in the news every other day |
04:56.39 | michaelnovakjr1 | http://government.zdnet.com/?p=3912 |
04:56.59 | michaelnovakjr1 | its about them messing with BitTorrent, and there's another one with Vonage |
04:57.37 | yakischloba | yeah. Thats nice. |
04:57.51 | yakischloba | Funny, I have comcast and I never actually noticed that it was happening to me |
04:58.07 | michaelnovakjr1 | interesting |
04:58.21 | yakischloba | I don't think it was. I don't remember what the technique was but I believe I checked to see. |
04:59.11 | michaelnovakjr1 | bit torrent user? |
04:59.22 | yakischloba | Here and there. nothing crazy. |
04:59.38 | michaelnovakjr1 | i used it once, but that was about two years ago |
05:01.09 | yakischloba | arg. Need some more RAM for my desktop, now that I just got new RAM for my laptop.. |
05:01.42 | michaelnovakjr1 | running windows? |
05:01.59 | yakischloba | nah ubuntu |
05:02.06 | michaelnovakjr1 | same here |
05:02.23 | michaelnovakjr1 | i use ubuntu on all my machines |
05:02.30 | yakischloba | 512mb doesn't really cut it with eclipse, emulator, a couple terminals and a bunch of Firefox tabs |
05:02.46 | michaelnovakjr1 | oh yea |
05:02.51 | michaelnovakjr1 | that's not a lot |
05:02.51 | yakischloba | im swapping bad :( |
05:03.06 | michaelnovakjr1 | i've got 2 gigs in the laptop and 4 gigs in the desktop |
05:03.14 | michaelnovakjr1 | memory is dirt cheap now |
05:04.10 | yakischloba | yeah except if its old...I'm looking at 2GB for my desktop for like 60 bucks or so, the 2GB for my laptop was only 40 |
05:04.30 | yakischloba | not expensive but more expensive than DDR3 |
05:04.36 | michaelnovakjr1 | yea true |
05:04.52 | michaelnovakjr1 | i almost fell off the chair when i saw the price of sdram |
05:04.57 | yakischloba | uhg yeah I'm swapping 500mb right now |
05:05.00 | yakischloba | lame |
05:07.39 | yakischloba | yeah most old parts are really expensive..I was looking at grabbing some better stuff for this desktop but it seems it would be way cheaper to build a way better system |
05:07.49 | michaelnovakjr1 | oh yea |
05:08.01 | michaelnovakjr1 | i built a really fast machine for under $400 |
05:08.19 | yakischloba | I was looking at like 230 bucks for a mediocre processor in comparison to whats out now. I was like shit, thats most of a new computer these days |
05:08.35 | michaelnovakjr1 | pretty much |
05:08.51 | michaelnovakjr1 | i bought my dual core AMD athlon x2 for 100 bucks |
05:08.55 | michaelnovakjr1 | 2.8 |
05:09.09 | yakischloba | I think I'm just gonna slap some more RAM in it for now though and wait a while to buy something new. Thats the only thing thats really bothering me for the time being. |
05:09.22 | michaelnovakjr1 | ram helps |
05:09.45 | yakischloba | well...anything to not swap on a slow 5400rpm ide hdd. |
05:10.04 | michaelnovakjr1 | :) |
05:11.36 | yakischloba | still working on your SMS app and file browser? |
05:12.02 | michaelnovakjr1 | file browser is up for download, it has a few bugs i'll be patching up |
05:12.08 | michaelnovakjr1 | working on the SMS application |
05:12.20 | michaelnovakjr1 | i have it functioning, just need to improve the UI and add delete functionality |
05:12.38 | michaelnovakjr1 | i've been using it actually, to get a feel for it |
05:13.10 | yakischloba | Cool. I haven't read anything about SMS on android. Are messages stored somewhere by android or is that up to the app? |
05:14.20 | michaelnovakjr1 | well, Google hasn't shown any SMS yet |
05:14.29 | michaelnovakjr1 | so I'm handling it all |
05:14.45 | michaelnovakjr1 | they have actions tied into the contacts, etc. but no actual application |
05:15.28 | yakischloba | mmhm |
05:16.53 | yakischloba | bah. I'm being bothered by several groups of people to go out but I don't feel like it. |
05:17.47 | michaelnovakjr1 | yea, im exhausted but i do want to work on the app a bit |
05:17.55 | michaelnovakjr1 | i'm looking at the UI features |
05:23.45 | yakischloba | I love how simple the Android SDK is. Its really just being unfamiliar with java that hangs me up. |
05:24.28 | michaelnovakjr1 | yea, android is really a pleasant development experience |
05:30.09 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
05:30.53 | yakischloba | alright, gonna head out for a bit. gnight. |
05:49.16 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
06:26.52 | *** join/#android andrewlacy (n=andrewla@204.14.158.89) |
07:00.44 | *** join/#android davidw (n=davidw@213.47.186.146) |
07:04.17 | *** join/#android inZane-_ (i=nemo@dslb-084-058-013-076.pools.arcor-ip.net) |
07:24.16 | *** join/#android rustre (n=rustre@vau06-2-82-238-188-225.fbx.proxad.net) |
07:24.26 | *** part/#android rustre (n=rustre@vau06-2-82-238-188-225.fbx.proxad.net) |
07:30.15 | *** join/#android davidw_ (n=davidw@213.47.186.146) |
07:43.24 | *** join/#android dueynz (n=duey@ip-118-90-31-231.xdsl.xnet.co.nz) |
08:08.30 | *** join/#android pandora-- (n=pandora@cpe-76-172-223-110.socal.res.rr.com) |
08:14.02 | *** join/#android anno^da_ (n=anno^da@p5B07D122.dip.t-dialin.net) |
08:14.33 | anno^da_ | good morning guys |
08:14.35 | anno^da_ | lets see how long the internet stays connected now :) |
08:54.22 | *** join/#android dueynz (n=duey@ip-118-90-31-231.xdsl.xnet.co.nz) |
09:37.03 | *** join/#android Mathiasdm (n=Mathias@78-22-6-189.access.telenet.be) |
09:38.00 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
09:38.38 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
09:46.01 | *** join/#android dueynz (n=duey@ip-118-90-31-231.xdsl.xnet.co.nz) |
10:04.13 | *** join/#android soulreaper (n=soul@HSI-KBW-091-089-005-228.hsi2.kabelbw.de) |
10:16.28 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
11:01.53 | *** join/#android shoragan_ (n=shoragan@sicherheitsschwankung.de) |
11:07.23 | *** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle) |
11:14.32 | *** join/#android anno^da_ (n=anno^da@p5B07DFBC.dip.t-dialin.net) |
11:56.31 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
12:50.00 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
13:20.04 | *** join/#android GSMX (n=marnix@ip54573d2d.direct-adsl.nl) |
13:36.18 | *** join/#android alex2308 (n=alex2308@daloo.de) |
13:45.12 | *** part/#android muthu (n=sushmu@59.92.93.239) |
13:54.12 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
14:11.16 | *** join/#android haavi (n=blahhah@c83-254-97-71.bredband.comhem.se) |
14:25.24 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
14:26.05 | *** part/#android GSMX (n=marnix@ip54573d2d.direct-adsl.nl) |
14:35.11 | *** join/#android cax (n=cax@124-168-37-174.dyn.iinet.net.au) |
14:35.51 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.wa.comcast.net) |
14:36.23 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net) |
14:52.40 | *** join/#android zhobbs_ (n=zach@rrcs-24-106-158-216.central.biz.rr.com) |
15:08.43 | SanMehat | morning |
15:13.16 | michaelnovakjr1 | morning |
15:20.43 | *** join/#android andrewlacy (n=andrewla@204.14.158.89) |
15:22.40 | *** join/#android zhobbs_ (n=zach@rrcs-24-106-158-216.central.biz.rr.com) |
15:28.38 | *** join/#android Miek (n=mike@unaffiliated/mikechml) |
15:32.10 | alex2308 | morning |
15:33.29 | SanMehat | how goes? |
15:34.40 | *** join/#android zhobbs_ (n=zach@rrcs-24-106-158-216.central.biz.rr.com) |
15:44.55 | *** join/#android sayers (n=steven@c-76-20-182-119.hsd1.mi.comcast.net) |
15:50.40 | *** join/#android cax (n=cax@124-168-37-174.dyn.iinet.net.au) |
16:00.19 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
16:20.04 | *** join/#android al2308 (n=alex2308@daloo.de) |
16:54.36 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
17:01.24 | *** join/#android acsia (n=acsia@78-86-205-140.zone2.bethere.co.uk) |
17:01.26 | *** join/#android bleeee (n=bleeee@78-86-205-140.zone2.bethere.co.uk) |
17:01.34 | bleeee | Hello Hello |
17:01.47 | acsia | hey chomchom long time no see |
17:02.00 | bleeee | bleeee dam it |
17:02.15 | bleeee | Could anyone give a good example of using positron |
17:02.37 | bleeee | Preferably some source code that I can check out |
17:03.05 | bleeee | Hey Acsia rumour has it you are having a hard time getting it set up too? |
17:03.38 | acsia | yep, a tutorial would be very nice |
17:03.41 | acsia | any luck anybody? |
17:12.22 | bleeee | If anyone comes online and could spare 10mins for direction in how the heck to get positron working then it would be much appreciated. |
17:18.02 | bleeee | Never mind its working now |
17:18.07 | bleeee | thx |
17:32.57 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
17:35.25 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
17:43.09 | jasta | yawn |
17:43.20 | jasta | camping again this w/e |
17:43.23 | jasta | just about to leave :) |
17:56.25 | acsia | have a good one |
17:58.43 | *** join/#android anno^da_ (n=anno^da@p5B07DB47.dip.t-dialin.net) |
17:59.25 | anno^da_ | So I got another question for you. |
18:01.51 | jasta | ? |
18:02.50 | anno^da_ | I'm trying to upload some video content to Tumblr with the HttpClient (4). I read in the API that I should upload the video via a MultiPart Form. So now I've taken the MultipartEntity and filled it with Parts including the FilePart. The other parameters are filled inside StringParts. |
18:04.46 | anno^da_ | Authentication works fine but I get back " Please specify a video URL or embed code, or select a video file to upload." Ok I have to point out the "data" parameter but I dont know where. (http://www.tumblr.com/api) |
18:05.32 | jasta | I don't have time to look. Though, what I would do is simply fire up ethereal and observe the difference between what you sent and what your browser sent :) |
18:05.49 | jasta | Should you give you some hint what you're missing. |
18:05.58 | anno^da_ | The point is |
18:06.05 | anno^da_ | I know that it is the "data" parameter |
18:06.09 | anno^da_ | thats missing |
18:06.18 | anno^da_ | but I dont know where to put it into :) |
18:06.31 | anno^da_ | StringParts are always: Key -> Value |
18:06.53 | anno^da_ | but FilePart (the data) is just: Filename + File |
18:07.35 | anno^da_ | So the API doesnt find the "data" parameter and drops me the error :/ |
18:08.28 | anno^da_ | Working with String data only works quite fine. I'm using the UrlEncodedFormEntity for that and included NameValuePairs |
18:09.12 | anno^da_ | but combining UrlEncodedFormEntity and MultipartEntity doesnt work. (or I dont get it how the whole thing could work) |
18:11.26 | jasta | sorry, i just dont have time to look |
18:13.10 | anno^da_ | Yeah np jasta |
18:13.20 | anno^da_ | I'm getting through wireshark once again |
18:14.33 | anno^da_ | ahhh I'm getting crazy I can see the upload in wireshark but Tumblr drops the video because it cant find the data parameter :/ |
18:20.37 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
18:37.10 | anno^da_ | well I found it |
18:37.10 | anno^da_ | :D |
18:37.31 | anno^da_ | Just pass an empty StringPart with key "data" |
18:37.44 | anno^da_ | and its working |
18:38.16 | anno^da_ | crazy :) but easy |
19:03.52 | zhobbs_ | jasta: what book did you end up getting on java concurrency? |
19:07.07 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
19:20.58 | michaelnovakjr1 | howdy |
19:22.48 | *** join/#android Mathiasdm (n=Mathias@vpnc204.ugent.be) |
19:39.09 | *** join/#android Qaexl (n=Akashakr@dsl027-162-152.atl1.dsl.speakeasy.net) |
19:39.48 | bleeee | there is a famous hardcore book on concurrency that I've heard good things about from peeps I trust. It has a train on the front cover and its published by addisson wesley. |
19:41.28 | *** join/#android anno^da_ (n=anno^da@p5B07DB47.dip.t-dialin.net) |
19:41.34 | *** join/#android anno^da- (n=anno^da@p5B07DB47.dip.t-dialin.net) |
19:43.28 | romainguy | bleeee: this is a very very good book indeed |
19:43.41 | mickrobk | http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601/ref=wl_it_dp?ie=UTF8&coliid=I1SD7VC6MJ1HAO&colid=2Y3FPIHM4F4IS |
19:43.46 | mickrobk | ? |
19:43.54 | romainguy | it was written by some of the people who worked closely on the JVM memory model, the concurrency packages and some other APIs in the JDK |
19:43.58 | romainguy | highly recommended |
19:46.49 | bleeee | Thats the one |
19:47.27 | bleeee | Yeah a friend of mine is just hardcoring through the java exams and hr said that ones the bees knees |
19:54.25 | chomchom | Is anyone here planning on going to the Google code day in London? |
19:54.35 | chomchom | There will be loads of Android type banter to be had |
19:56.16 | chomchom | There is also an Android Meetup: http://java.meetup.com/170/ |
20:02.24 | anno^da- | Someone here that knows something about HTTPClient and uploading stuff via MultipartEntities ? |
20:03.06 | michaelnovakjr1 | anno^da- there's some HTTP stuff at http://android-random.googlecode.com |
20:03.19 | michaelnovakjr1 | Jasta's stuff though, so I'm not all that familiar with it |
20:03.22 | *** join/#android muthu (n=sushmu@59.92.39.119) |
20:04.22 | anno^da- | yeah jastas busy at the moment. I dont want to disturb him now |
20:04.57 | michaelnovakjr1 | did you take a look at the code? |
20:05.10 | anno^da- | I will now |
20:05.34 | michaelnovakjr1 | i can help, if you have questions. i had briefly looked at it during the beginning of the week |
20:06.23 | anno^da- | It is just one small problem. I dont know how to set a NameValuePair that consits of a key (string) and a value (multipart/form-data) |
20:06.50 | michaelnovakjr1 | how is your form-data stored? |
20:07.48 | anno^da- | hmm well thats the API: http://www.tumblr.com/api . Posting regular text messages is no problem. I'm just using a normal UrlEncodedFormEntity with an Array of NameValuePairs. |
20:08.41 | anno^da- | But posting the video content I don't know if I understand it right. Thats why I tried to get it working with a MultipartEntity and an Array of Parts. Using String Parts and one FilePart. |
20:09.11 | michaelnovakjr1 | hm |
20:09.31 | anno^da- | The StringParts get recognized perfectly. |
20:09.46 | michaelnovakjr1 | what does it say about the file part? |
20:09.50 | anno^da- | (I'm getting authenticated so the String Parts work) |
20:11.00 | anno^da- | Well if I define String Parts for username, password etc. they get recognized. The FilePart doesnt get recognized. I'm getting : "Please specify a video URL or embed code, or select a video file to upload." |
20:11.15 | anno^da- | back from the tumblr service |
20:11.30 | anno^da- | I can see that the content gets uploade in Wireshark |
20:11.41 | anno^da- | but Tumblr cant find the "data" parameter |
20:11.49 | anno^da- | and drops the whole request |
20:12.02 | michaelnovakjr1 | it needs a parameter named data? |
20:12.17 | anno^da- | yeah I think so looking at the API description |
20:12.17 | michaelnovakjr1 | is it looking for a key named data? |
20:12.51 | anno^da- | yeah I have tried to add a StringPart named "data" in front of the FilePart |
20:13.05 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
20:13.10 | Dougie187 | good afternoon |
20:13.14 | michaelnovakjr1 | :) |
20:13.21 | Dougie187 | hows it going michaelnovakjr1 |
20:13.27 | michaelnovakjr1 | not bad |
20:13.33 | Dougie187 | nice |
20:13.37 | michaelnovakjr1 | anno^da- is it a key? |
20:13.49 | michaelnovakjr1 | is data the key and the filepart the value? |
20:14.04 | anno^da- | now I'm getting a different error. Cant uplod video. So I assume that it looks for the "data" finds it, but doesnt find the content because String and FilePart are note connected to each other. |
20:14.17 | anno^da- | thats what it should be |
20:14.34 | anno^da- | but StringPart offers just STring,String as constructor |
20:14.39 | *** join/#android AstainHellbring (n=Administ@unaffiliated/astainhellbring) |
20:14.41 | michaelnovakjr1 | can you pastebin a code snippet? |
20:14.47 | anno^da- | yeah sure |
20:14.51 | anno^da- | one moment |
20:15.02 | michaelnovakjr1 | ok |
20:16.23 | anno^da- | I'm pasting you a short form to understand it because the code is more complex (a lot of different methods) |
20:16.36 | michaelnovakjr1 | ok |
20:16.40 | *** join/#android soulreaper (n=soul@HSI-KBW-091-089-005-228.hsi2.kabelbw.de) |
20:22.24 | anno^da- | http://pastebin.com/d125ce41b |
20:23.13 | michaelnovakjr1 | cool, one sec |
20:23.30 | anno^da- | in this line: # |
20:23.30 | anno^da- | <PROTECTED> |
20:23.30 | anno^da- | # |
20:23.30 | anno^da- | <PROTECTED> |
20:23.34 | anno^da- | oh sorry |
20:24.02 | anno^da- | I've tried to give him the parameter but that leads to Tumblr finding the parameter but not finding the content :) |
20:25.40 | anno^da- | It is the same problem for video, audio and photo upload :) |
20:26.31 | anno^da- | and flickr photo upload as well. So I have to find out how the whole thing works. *g* |
20:29.42 | michaelnovakjr1 | using a StringPart obviously won't work :) |
20:30.01 | anno^da- | yeah :) |
20:30.14 | anno^da- | It cant work but it was worth a try :D |
20:30.46 | michaelnovakjr1 | for the FilePart creation, why not drop the last two parameters |
20:30.51 | michaelnovakjr1 | did you try that? |
20:31.04 | michaelnovakjr1 | actually wait |
20:31.15 | michaelnovakjr1 | you are using file.getName() as the key |
20:31.18 | michaelnovakjr1 | not data |
20:32.12 | michaelnovakjr1 | hold up, sending you code |
20:33.22 | anno^da- | I've tried to set the filename to "data" |
20:33.27 | michaelnovakjr1 | http://pastebin.com/m34de4f80 |
20:33.30 | michaelnovakjr1 | you tried that? |
20:33.39 | anno^da- | BUT after that I get a NullPointerException |
20:33.56 | anno^da- | yeah thats what I tried |
20:34.12 | *** join/#android sayers (n=steven@c-76-20-182-119.hsd1.mi.comcast.net) |
20:34.19 | michaelnovakjr1 | and you get a nullpointer? |
20:34.22 | anno^da- | dropping a NullPointerException when executing the method |
20:34.31 | anno^da- | by the HttpClient |
20:34.32 | michaelnovakjr1 | what's the null value? |
20:34.40 | michaelnovakjr1 | did you debug to see what's null? |
20:35.24 | anno^da- | hmm thats the charset |
20:35.41 | anno^da- | Yeah the thing is the "name" is the name of the file |
20:35.50 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
20:35.55 | michaelnovakjr1 | ? |
20:36.18 | michaelnovakjr1 | the charset.... just set it to something |
20:36.21 | michaelnovakjr1 | like utf-8 |
20:36.56 | anno^da- | yeah I have done that |
20:37.12 | anno^da- | if I#m giving null it takes the default value |
20:37.14 | anno^da- | http://code.google.com/android/reference/org/apache/http/client/methods/multipart/FilePart.html#FilePart(java.lang.String,%20org.apache.http.client.methods.multipart.PartSource,%20java.lang.String,%20java.lang.String) |
20:37.31 | michaelnovakjr1 | did you run the debugger |
20:37.42 | michaelnovakjr1 | that probably is what is causing the nullpointer exception |
20:37.46 | michaelnovakjr1 | is not* |
20:38.07 | anno^da- | I did run the debugger several times |
20:38.24 | michaelnovakjr1 | and the charset throws the null? |
20:38.31 | anno^da- | putting the file name into the "String name" field everything is fine |
20:38.50 | anno^da- | putting "data" or something else inside the field I get the Nullpointer |
20:39.07 | michaelnovakjr1 | so the file object is null then? |
20:39.16 | anno^da- | yeah |
20:40.05 | anno^da- | So I don't think that I can pass the "data" parameter inside the FilePart |
20:41.13 | michaelnovakjr1 | hm, i'd like to see the log output, i find that hard to believe, there's gotta be some reason |
20:41.20 | michaelnovakjr1 | data is just the name of the file part |
20:41.31 | michaelnovakjr1 | you have an apk i can run? |
20:42.13 | anno^da- | I can give you one. One moment lets try if I get it. |
20:42.20 | michaelnovakjr1 | ok |
20:42.22 | anno^da- | setting the "data" parameter ? |
20:42.28 | anno^da- | inside the name field |
20:42.30 | michaelnovakjr1 | yea |
20:42.35 | anno^da- | one sec |
20:42.45 | michaelnovakjr1 | add a few log lines to what the values of stuff is |
20:43.07 | michaelnovakjr1 | including all the parts of the filepart |
20:43.45 | *** part/#android muthu (n=sushmu@59.92.39.119) |
20:45.57 | anno^da- | yeah it takes some minutes :) |
20:46.11 | michaelnovakjr1 | ok |
20:46.32 | *** join/#android genclay (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
20:52.40 | anno^da- | How should I send it to you Skype, Mail, IRC ? |
20:52.54 | michaelnovakjr1 | you can email it.... mike@novaklabs.com |
20:53.25 | f00f- | im in ur lab stealin ur acidz |
20:53.34 | michaelnovakjr1 | haha |
20:55.51 | anno^da- | sent it |
20:56.18 | michaelnovakjr1 | ok |
20:56.40 | anno^da- | I dont know if you can do something with it :) |
20:57.17 | anno^da- | ah well clicking Transfer/ Start Service |
20:57.22 | anno^da- | starts the posting :) |
20:57.45 | *** join/#android andrewlacy (n=andrewla@206-80-17-29.static.twtelecom.net) |
20:57.50 | michaelnovakjr1 | ok |
20:58.14 | anno^da- | you will see the notification |
20:58.27 | anno^da- | and after that you will see the Null Pointer :D |
21:00.28 | michaelnovakjr1 | where's photo.jpg? is it on the device |
21:00.34 | anno^da- | ah well yeah |
21:00.38 | anno^da- | it should be |
21:01.10 | anno^da- | -> /data/data/packagename/files/photo.jpg |
21:09.32 | *** join/#android getoo (n=user@CPE-76-178-12-22.natmtn.res.rr.com) |
21:18.51 | *** part/#android getoo (n=user@CPE-76-178-12-22.natmtn.res.rr.com) |
21:21.52 | anno^da- | So well you get the NullPointer as well right ? |
21:22.30 | michaelnovakjr1 | yea, i'm setting up the debugger |
21:23.17 | anno^da- | What can you see from the APK using the debugger ? Just the log messages ? |
21:23.43 | michaelnovakjr1 | i can see exactly where the null is thrown |
21:24.11 | anno^da- | Yeah but without the source code hmm well I'm too much of a noob :-) |
21:25.19 | michaelnovakjr1 | :) |
21:26.04 | anno^da- | So you cant see the source code but you can see just the excat point. Oh I'm getting wired :D |
21:28.29 | michaelnovakjr1 | E/ ( 3181): Aug 2, 2008 4:28:10 PM org.apache.http.client.methods.multipart.MultipartEntity getContentLength |
21:28.35 | michaelnovakjr1 | i'd start looking around there |
21:28.47 | michaelnovakjr1 | make sure a file is actually getting put in the FilePart |
21:30.39 | anno^da- | it is defintely put inside the FilePart. Using Wireshark I can see the bytes flying to Tumblr. And that bytes are too long for being just a bunch of StringParts :) |
21:31.30 | *** join/#android andrewlacy (n=andrewla@206-80-17-29.static.twtelecom.net) |
21:31.37 | *** join/#android duey (n=duey@203.96.223.40) |
21:39.03 | anno^da- | Hmm but ok I have to go to bed now. My eyes getting tired. |
21:39.22 | anno^da- | I will try that tomorrow with fresh power :-) |
21:39.27 | michaelnovakjr1 | cool |
21:40.59 | anno^da- | But I can say that the SDK works fine for noobs like me. Developing a little Twitter Client and being able to post to Tumblr via a Service which sends notifications in 3 days is quite cool. |
21:49.42 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net) |
21:50.15 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.wa.comcast.net) |
21:58.54 | *** join/#android andrewlacy (n=andrewla@206-80-17-29.static.twtelecom.net) |
22:05.07 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
22:15.21 | *** join/#android hoonteke (n=kevin@207.59.145.201) |
22:40.19 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
22:43.50 | *** join/#android Beryllium (n=berylliu@S01060018f8f93bda.gv.shawcable.net) |
22:57.45 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
23:03.49 | chomchom | Ok guys |
23:04.02 | chomchom | I've got a really serious question |
23:04.07 | michaelnovakjr1 | ? |
23:05.33 | chomchom | How does one persistently filter out the compiler warnings introduced by the automatically generated Service files |
23:05.41 | chomchom | dead serious. |
23:05.50 | chomchom | Its the only smell in my repo |
23:06.10 | chomchom | and it smells like defeat |
23:06.14 | michaelnovakjr1 | uh, what compiler warnings? |
23:06.26 | michaelnovakjr1 | i don't usually get any warnings for auto generated services |
23:06.46 | chomchom | really? I get tons |
23:06.52 | chomchom | loads of imports were never used |
23:06.54 | michaelnovakjr1 | what do they say? |
23:07.01 | michaelnovakjr1 | what compiler are you using? |
23:07.22 | mickrobk | i get tons too |
23:07.24 | chomchom | jvm 1.5.0 on the mac |
23:07.37 | mickrobk | i just ignore them though... |
23:07.45 | michaelnovakjr1 | what do they say? |
23:07.47 | chomchom | I can't they haunt my dreams |
23:08.08 | chomchom | they say "argh chomchom your codes all broken" |
23:08.16 | mickrobk | lol |
23:08.23 | michaelnovakjr1 | haha |
23:08.39 | chomchom | The import "android.os.Binder" is never used |
23:08.43 | chomchom | is a popular one |
23:10.09 | chomchom | its only the aidl files |
23:10.48 | michaelnovakjr1 | hm, do you use eclipse? |
23:10.54 | chomchom | and they have the notice of : This file is auto-generated DO NOT MODIFY at the top |
23:11.12 | michaelnovakjr1 | well, yea... because the build process creates them :) |
23:11.16 | chomchom | yeah I'm using 3.3 |
23:11.33 | michaelnovakjr1 | hm, do you have a build.xml file for your project? |
23:11.57 | michaelnovakjr1 | try building with at |
23:11.58 | michaelnovakjr1 | nat |
23:11.58 | michaelnovakjr1 | ant |
23:12.00 | michaelnovakjr1 | ugh' |
23:12.17 | michaelnovakjr1 | try with ant, eclipse puts a warning out for some stupid stuff |
23:12.47 | chomchom | Instead of the auto android build...hmm |
23:13.10 | michaelnovakjr1 | if you put a build file... you can just run ant at the root of your project |
23:13.28 | michaelnovakjr1 | if you create a blank android project it comes with an ant script |
23:13.34 | michaelnovakjr1 | without eclipse that is :) |
23:13.42 | michaelnovakjr1 | i stopped using eclipse |
23:13.46 | chomchom | thats a new idea, I like your thinking jr. |
23:13.55 | *** join/#android dueynz (n=Nick@203.96.223.40) |
23:14.07 | chomchom | Yeah I can see why people do |
23:14.14 | chomchom | intelliJ is pretty appealing |
23:14.15 | michaelnovakjr1 | you can create a new android project to get the build.xml file |
23:14.24 | chomchom | I'll do so now |
23:14.26 | michaelnovakjr1 | and then change any relevant vars |
23:14.32 | zhobbs_ | if you are launching an activity by ActivityName.class, and supply extras should it reuse the already running activity (even if the extras are different than when it ran the first time?) |
23:14.34 | michaelnovakjr1 | so they can be used with your existing project |
23:15.11 | michaelnovakjr1 | zhobbs_: it might go to an onResume.... |
23:15.19 | michaelnovakjr1 | if it finds a running instance |
23:15.24 | michaelnovakjr1 | never tried it |
23:17.47 | chomchom | Hmm build.xml? I must be doing something wrong because eclipse does not generate a build.xml when using the new > android project |
23:18.29 | zhobbs_ | ahh...android:launchMode="singleInstance" in the manifest forces it to reuse the activity |
23:19.08 | michaelnovakjr1 | chomchom, you have to use: activityCreator.py --out myproject your.package.name.ActivityName |
23:19.22 | michaelnovakjr1 | --out puts it in the directory |
23:19.33 | michaelnovakjr1 | and the last part is the package and main activity |
23:19.45 | michaelnovakjr1 | but that isn't really important, you need the build.xml |
23:28.35 | chomchom | Ah I see, thanks Michael you've certainly been eating the helpful berries today |
23:28.50 | chomchom | It was actually on like ht efirst page of "how to install the sdk" |
23:28.58 | michaelnovakjr1 | :) |
23:30.18 | *** join/#android Miek (n=mike@unaffiliated/mikechml) |
23:30.58 | ttuttle | chomchom: mmm, berries. |
23:31.55 | chomchom | throws berries upon all the boys and girls |
23:32.20 | ttuttle | is not a boy, I'm a full-grown intern! |
23:32.24 | chomchom | shouts "take that boys and girls" |
23:54.50 | haavi | when do we get our phones? |
23:55.07 | michaelnovakjr1 | we they are ready :) |
23:55.12 | haavi | when will that be then? |
23:55.12 | michaelnovakjr1 | when* |
23:55.19 | michaelnovakjr1 | Q$ 2008 |
23:55.22 | michaelnovakjr1 | Q4 |
23:55.29 | haavi | oh yeah |
23:55.49 | haavi | where did you get that info from? |
23:56.10 | haavi | in the US in Q4 right? |
23:56.45 | michaelnovakjr1 | Google has stated that q4 2008 is when they will be available |
23:57.24 | haavi | okay, yeah I hope I can get one soon |
23:57.37 | haavi | I'm getting pretty tired of the emu |
23:57.42 | michaelnovakjr1 | what kind of phone do you have now? |
23:58.05 | haavi | a Sony Ericsson T610 =) |
23:58.26 | michaelnovakjr1 | i was going to say, some of us are playing around with Android on the HTC Vogue |
23:58.50 | haavi | okay |
23:58.58 | haavi | yeah HTC will be the ones releasing a phone first right? |
23:59.14 | haavi | dunno if those will be available in Europe |
23:59.15 | michaelnovakjr1 | i believe so |
23:59.24 | michaelnovakjr1 | vogue is not in europe? |