IRC log for #android on 20080905

00:00.00npellyno
00:00.09yxz97hey!
00:00.44yxz97Which good book about android, recomends me ?
00:00.50yxz97recomendation
00:01.00yxz97Advise me ?
00:02.08yxz97npelly, humm ???
00:02.45herriojrheat: so if they plan on not supporting it, then I need to find another way of doing it since it will probably be completely removed
00:03.11yxz97sad of me :S
00:05.02herriojryxz97: I'd just use the android documentation
00:06.41yxz97herriojr, yea, probably its the better way..
00:07.03yxz97but sometimes is good follow a "Good Book" to get a more general overview about the technology.
00:07.12yxz97herriojr,  the bug picture
00:07.16yxz97herriojr,  the big picture
00:07.29herriojrI've found that most books don't give a *big* picture or really give you anything useful
00:07.39herriojrat least that's how it is for me
00:08.21yxz97where are you from ?
00:09.05herriojrI'd go to plusminus's site to learn stuff
00:09.38herriojrhttp://www.anddev.org/
00:09.51herriojrwell, I don't know if it is really his site, but he posts a lot of tutorials there
00:10.45herriojrand it will save you money ;)
00:10.51yxz97herriojr, http://www.plusmin.us/
00:10.58yxz97is like mnusic, ??? what ?
00:11.35herriojrgo to the link I gave you
00:11.42herriojrnot the one you searched for ;)
00:11.47yxz97yea I'm in Thank you heat
00:11.49yxz97yea I'm in Thank you herriojr
00:11.53yxz97sorry heat
00:12.37chouman82hey heat do u know why the onItemSelectListener is taken out for Spinner?
00:14.48romainguy_chouman82: I told you, because it doesn't make sense with the new spinner
00:15.19romainguy_instead you should use setOnItemClickListener()
00:15.41romainguy_the OnItemSelectedListener would fire only if the user moves the highlight around while the choice popup is up
00:19.38*** join/#android fpotter (n=fpotter@74.93.1.129)
00:22.27fpotterHey - it's true that you can use Java 6 features in your android code base, right?  Will the dalvik translator take care of it?
00:23.41romainguy_fpotter: what features are you talking about?
00:23.51romainguy_you can only use the APIs that are bundled with the SDK
00:24.09romainguy_the only language change brought by Java 6 was the ability to put @Override on interface methods
00:25.05chouman82
00:25.05chouman82A spinner does not support item click events.
00:25.26chouman82http://code.google.com/android/reference/android/widget/Spinner.html
00:27.05romainguy_er sorry about that :))
00:30.03fpotterromainguy_: thx for the info.  i actually wasn't sure what the language differences were from 5 to 6.
00:30.56romainguy_fpotter: we develop Android using Java 5 btw
00:31.04romainguy_I mean
00:31.12romainguy_javac 1.5 from the standard Java SE 5 distribution
00:31.43fpotterromainguy_: i'm on a mac, and apple only released Java 6 for 64-bit macs which mine is not, so I've been having a hell of time getting this thing called 'soylatte' (an openjdk build for mac os x) up and running so i could use java 6.  but you're telling me there's no need, which is great.  thx.
00:32.16romainguy_many of us work with Java SE 5 on Tiger
00:32.23romainguy_so we can't use Java 6 either
00:37.15*** join/#android plusminus_ (i=4421a620@gateway/web/ajax/mibbit.com/x-5de4c9f8258fffa0)
00:38.12*** join/#android cbeust_ (n=cbeust@72.14.224.1)
00:38.13umdk1d3oh awesome yay!  full psd included in the photostream sample  ^.^
00:38.21umdk1d3oh wait, im on linux  :/  doh
00:38.58romainguy_can't Gimp open it?
00:39.45romainguy_umdk1d3: my application ShutterSpeed even comes with the full Illustrator file for the icon & logo :p
00:41.04umdk1d3gimp tries but fails  :(
00:41.22romainguy_:((
00:41.40umdk1d3somethnig about the layers
00:41.47romainguy_let me try to export it again
00:41.48umdk1d3but i found the model layer in there
00:42.03umdk1d3its like all the layers are the right shapes, but they are pure white
00:42.42romainguy_weird, I did save the file in compatibility mode
00:43.06umdk1d3http://umdk1d3.mine.nu/dump/layers.png  <--  thats what gimp is giving me  :/
00:43.23umdk1d3checks gimp version
00:44.05umdk1d3using gimp 2.4.2 right now, which is the newest in the gentoo portage
00:44.17umdk1d3*newest stable
00:44.35umdk1d3its not too big of a deal, because there is that model layer in there
00:44.40umdk1d3exactly what i was looking for
00:44.51umdk1d3i can do logo stuff in inkscape now  =D
00:49.09plusminus_inkscape roxx!
00:49.20romainguy_umdk1d3: why do you want to open the psd file?
00:49.32romainguy_it doesn't contain much :))
00:52.46plusminus_I can crush the emulator by sending an sms with that inverted "!" in it (probably all such special chars)
00:53.17plusminus_(through my app)
00:53.23plusminus_I'll test this further...
00:56.33*** join/#android tethridge (n=tale@cpe-075-177-151-223.nc.res.rr.com)
00:56.41plusminus_yes, also crashes the eulator doing that in the Messaging-APplication
01:00.57plusminus_http://code.google.com/p/android/issues/detail?id=856
01:06.38*** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net)
01:14.48*** join/#android plusminus_ (i=4421a620@gateway/web/ajax/mibbit.com/x-9630bae5573ec4d3)
01:17.56*** join/#android romainguy (n=gfx@69.36.227.131)
01:28.04*** join/#android crib (n=chris@port-212-202-176-248.dynamic.qsc.de)
01:34.01*** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
01:35.27*** part/#android Dougie187 (n=doug@68.35.245.156)
01:59.44*** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
02:10.42gdsxumdk1d3: btw, gimp 2.4.2 is pretty old
02:10.49gdsx(current is 2.4.7)
02:13.46umdk1d3like i said, 2.4.2 is current stable in portage
02:18.30*** join/#android romainguy (n=gfx@adsl-75-52-252-122.dsl.pltn13.sbcglobal.net)
02:19.41gdsxumdk1d3: you could build something yourself...
02:19.47*** join/#android pandora-- (n=pandora@cpe-76-170-18-42.socal.res.rr.com)
02:37.43*** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com)
02:44.15*** join/#android crib (n=chris@port-212-202-176-248.dynamic.qsc.de)
02:50.37plusminus_hey guys, do you also think the SMS sent via "mSMSManager.sendTextMessage(...)" should be automatically stored to the outbox ?
02:51.49sztanpetnope, but an option for it would be cool
02:52.11plusminus_or that
02:52.35*** join/#android Razec (n=razec@189.56.183.198)
02:52.41*** join/#android muthu (n=sara@59.92.89.234)
03:21.26*** join/#android crib (n=chris@port-212-202-176-248.dynamic.qsc.de)
03:28.04pandora--hm?
03:30.58*** join/#android o3u (n=slim@modemcable050.151-58-74.mc.videotron.ca)
03:37.53*** join/#android meoblast001 (n=meoblast@dynamic-acs-24-239-93-241.zoominternet.net)
03:58.00*** join/#android squeakypants (n=squeakyp@75.146.255.198)
03:59.54squeakypantshey
04:08.37plusminus_I'm getting a VerifyError (caused by: "This error is thrown when the VM notices that an attempt is made to load a class which does not pass the class verification phase.")
04:09.01muthuplusminus_: which class?
04:09.21plusminus_a custom class, which accesses Preferences
04:09.27plusminus_(static methods only)
04:11.06plusminus_maybe a lib has to be included ..?
04:11.18muthuuses-library ??
04:12.33plusminus_just though so, because it seems to happen with Preferences-Stuff...
04:17.02squeakypantshow can i use arrays.xml for an integer array
04:18.10squeakypantsit asks me to use CharSequence
04:21.01plusminus_muthu: Guess what it was because I missed the "uses-library....Maps" whyever it failed within the my Preferences-Accessor-Class ... we'll never know.
04:21.13muthuhaha
04:21.27muthuany weird errors, i point to uses-library ;)
04:21.37plusminus_;)
04:23.30plusminus_the focus-behaviour also changed, Im getting FocusReceiver/FocusLost Cycles o_O
05:37.54*** part/#android pandora-- (n=pandora@cpe-76-170-18-42.socal.res.rr.com)
05:39.54*** join/#android muthu (n=sara@59.92.89.234)
05:42.02*** join/#android Propri (n=chatzill@81-67-253-18.rev.numericable.fr)
06:07.52*** join/#android moccuo (n=mike@modemcable127.116-59-74.mc.videotron.ca)
06:19.52*** join/#android muthu1 (n=sara@59.92.89.234)
06:21.22*** join/#android Dralspire (n=dralspir@56-196.126-70.tampabay.res.rr.com)
06:23.48*** join/#android winfield (n=winfield@124.90.194.248)
06:26.14*** join/#android davidw (n=davidw@213.47.186.146)
06:33.15*** join/#android romainguy_ (n=gfx@72.14.224.1)
06:55.22*** join/#android The_PHP_Jedi (n=ThePHPJe@unaffiliated/thephpjedi/x-000002)
06:56.44*** join/#android winfield1 (n=winfield@124.90.195.77)
07:01.04*** join/#android EQU (n=EQU@77-252-115-250.ip.netia.com.pl)
07:01.18EQUhello, i have aquestion
07:01.35romainguy__go ahead
07:02.18EQUit's possible to up-link mp3 to phone call ?
07:02.30EQUfor example i'am talking with friend usin phone dialer
07:02.31romainguy__in the emulator?
07:02.40EQUromainguy_: yes ?
07:02.47EQUromainguy_: o real device ?
07:02.51romainguy__what?
07:02.55romainguy__what are you trying to do
07:02.55romainguy__?
07:03.13EQUi'am talkin with friend using phone
07:03.36EQUduring a call i want him hear a mp3 song
07:04.00EQUit's possible to connect media player with phone call ?
07:04.17romainguy__ah, I have no idea
07:06.03EQUromainguy_: anbody could know that ?
07:06.26romainguy__you should send your question to the newsgroup
07:09.43*** join/#android Mo (n=martinot@87.79.35.60)
07:14.29*** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
07:33.59*** join/#android zoolooc (n=lucian@nrbg-4dbfa834.pool.einsundeins.de)
07:34.47*** join/#android winfield (n=winfield@124.90.195.77)
07:38.20*** join/#android cutmasta (n=cutmasta@62.225.134.181)
07:47.55*** join/#android Mathiasdm (n=Mathias@78-22-6-189.access.telenet.be)
07:56.49*** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
08:17.56*** join/#android eton (n=eton@ppp-58-8-5-162.revip2.asianet.co.th)
08:21.59*** join/#android eton_ (n=eton@ppp-58-8-5-162.revip2.asianet.co.th)
08:24.03*** join/#android EQU (n=EQU@77-252-115-250.ip.netia.com.pl)
08:49.16*** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
08:50.58*** join/#android anno^da_ (n=anno^da@p5B07CF92.dip.t-dialin.net)
09:02.51*** join/#android kennyz (n=kennyz@uralnet.org)
09:03.53*** join/#android mluser-work (n=mluser-w@208.178.12.226)
09:07.27*** join/#android romainguy (n=gfx@adsl-75-52-252-122.dsl.pltn13.sbcglobal.net)
09:13.32*** join/#android ChanServ (ChanServ@services.)
09:13.32*** join/#android romainguy (n=gfx@adsl-75-52-252-122.dsl.pltn13.sbcglobal.net) [NETSPLIT VICTIM]
09:13.32*** join/#android kennyz (n=kennyz@uralnet.org) [NETSPLIT VICTIM]
09:13.32*** join/#android anno^da_ (n=anno^da@p5B07CF92.dip.t-dialin.net) [NETSPLIT VICTIM]
09:13.32*** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net) [NETSPLIT VICTIM]
09:13.32*** join/#android EQU (n=EQU@77-252-115-250.ip.netia.com.pl) [NETSPLIT VICTIM]
09:13.32*** join/#android Mo (n=martinot@87.79.35.60) [NETSPLIT VICTIM]
09:13.32*** join/#android davidw (n=davidw@apache/committer/davidw) [NETSPLIT VICTIM]
09:13.32*** join/#android crib (n=chris@port-212-202-176-248.dynamic.qsc.de) [NETSPLIT VICTIM]
09:13.32*** join/#android zmedico (n=zmedico@gentoo/developer/zmedico) [NETSPLIT VICTIM]
09:13.33*** join/#android tomgibara (i=Miranda@gibara.demon.co.uk) [NETSPLIT VICTIM]
09:13.33*** join/#android DJTachyon (n=DJTachyo@ool-43517dec.dyn.optonline.net) [NETSPLIT VICTIM]
09:13.33*** join/#android Yeggs-away (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) [NETSPLIT VICTIM]
09:13.33*** join/#android f00f- (i=f00f@2001:4830:21b0:0:1:0:0:3) [NETSPLIT VICTIM]
09:13.33*** join/#android merck_ (n=merck@122-116-117-188.HINET-IP.hinet.net) [NETSPLIT VICTIM]
09:13.33*** join/#android jerkface03 (n=jerkface@S0106000d3a2c0806.vc.shawcable.net) [NETSPLIT VICTIM]
09:13.33*** join/#android sztanpet (n=sztanpet@142.58ec54.tvnetwork.hu) [NETSPLIT VICTIM]
09:13.33*** join/#android dmoffett (n=dmoffett@71.33.240.149) [NETSPLIT VICTIM]
09:13.33*** join/#android meshuga (i=meshuga@c-67-183-112-152.hsd1.wa.comcast.net) [NETSPLIT VICTIM]
09:13.33*** join/#android jasta (n=jasta@75-165-30-37.tukw.qwest.net) [NETSPLIT VICTIM]
09:13.33*** join/#android jasonchen (n=jasonche@nat/google/x-f838305a8bb94ad6) [NETSPLIT VICTIM]
09:13.33*** join/#android npelly (n=npelly@nat/google/x-51b101267ecf9001) [NETSPLIT VICTIM]
09:13.33*** join/#android SUSaiyan (n=SUSaiyan@cc955743-a.zwoll1.ov.home.nl) [NETSPLIT VICTIM]
09:13.33*** mode/#android [+oo ChanServ jasonchen] by irc.freenode.net
09:14.23*** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) [NETSPLIT VICTIM]
09:14.41*** join/#android cutmasta (n=cutmasta@62.225.134.181) [NETSPLIT VICTIM]
09:14.54*** join/#android pinowsky (n=dpino@cm217166.red91-117.mundo-r.com) [NETSPLIT VICTIM]
09:15.48*** join/#android krau (n=cktakaha@200.184.118.132)
09:17.20*** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
09:17.52*** join/#android moccuo_ (n=mike@modemcable127.116-59-74.mc.videotron.ca)
09:19.29*** join/#android heat (i=dima@66.160.171.42)
09:28.05*** join/#android umdk1d4_ (n=umdk1d3@adsl-dynamic-64-79-45-41.bridgeband.net)
09:41.19*** join/#android milos_ (n=milos@92.36.177.37)
10:11.03*** join/#android eton (n=eton@ppp-58-8-5-162.revip2.asianet.co.th)
10:19.04*** join/#android mohbana (n=mohbana@87-194-191-26.bethere.co.uk)
10:19.34mohbanawhat's bigger, the iphone or the htc?
10:20.56anno^da_iphone is longer
10:21.15anno^da_the htc is thicker because of the slider keyboard
10:46.46*** join/#android Dougie187 (n=doug@68.35.245.156)
10:48.00*** join/#android milos_ (n=milos@92.36.172.164)
10:55.47mohbanaanno^da_: know of any side-by-side comparisons?
10:56.54anno^da_There is no official one
10:57.03anno^da_there are just some leaked pics
10:57.10anno^da_Have you seen them ?
10:57.29anno^da_(they are not official and no one knows if they are valid)
10:58.00anno^da_http://www.engadget.com/photos/htcs-android-driven-dream-revealed-in-glorious-spy-photos/1008305/
10:58.16anno^da_on androidguys.com you can find the specs with the size
10:58.21anno^da_but everything is not official!
10:58.42anno^da_The size seems to be valid since we know that from the FCC documents
11:00.17mohbanaany idea what's going to be released after that?
11:00.42anno^da_Well there will be a device from Samsung and perhaps Motorola
11:00.50anno^da_but we dont know anything about them
11:01.15anno^da_but I wouldnt count on them in 2008
11:02.30tomgibaraI'm pretty sure that I've tripped over a serious bug concerning lock contention between the event dispatch thread and surfaces
11:03.06tomgibaraanyone here heard of something similar?
11:16.16umdk1d4_hmm is there an easy way to add icons to a mapactivity (as easy as the maps javascript interface)
11:16.36umdk1d4_like to point out location search results
11:19.08*** part/#android Dougie187 (n=doug@68.35.245.156)
11:32.11umdk1d4_yay i just made a 9patch  ^.^
12:07.03*** join/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
12:18.36*** join/#android blueriver_ (n=Wizard_o@ikhok04.elte.hu)
12:25.48*** join/#android kourier (n=Sy@81-86-215-134.dsl.pipex.com)
12:26.14*** join/#android blueriver_1 (n=Wizard_o@ikhok04.elte.hu)
12:33.56*** join/#android tethridge (n=tale@cpe-075-177-151-223.nc.res.rr.com)
12:35.10*** join/#android milos_ (n=milos@92.36.131.237)
12:49.39*** join/#android winfield (n=winfield@124.90.197.183)
12:50.11*** join/#android winfield (n=winfield@124.90.197.183)
12:50.20*** join/#android winfield (n=winfield@124.90.197.183)
12:51.01tomgibaraI just tested out the new cuil search engine by searching for my own name.
12:51.24tomgibaraThe second result is Android Scan, how galling!
13:00.42umdk1d4_hmm
13:00.51umdk1d4_how do i programatically move the activity out of touch mode?
13:01.44umdk1d4_tries KEYCODE_UNKNOWN
13:02.32EQUumdk1d4_: override onToucheMode method
13:04.36umdk1d4_sadly its a new activity that im launching with an intent
13:04.42*** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.wa.comcast.net)
13:04.43umdk1d4_it seems to inherit the touch mode from the last activity
13:05.02tomgibaraumdk1d4_: Why would you want to do that?
13:05.17umdk1d4_im opening a new activity and would like a specific list item to be selected
13:05.24umdk1d4_it moves to that point in the list with setSelected()
13:05.32umdk1d4_but because its in touch mode, it doesnt highlight
13:08.59umdk1d4_and onTouchEvent isnt fired for new activities
13:09.19tomgibaraumdk1d4_: I don't have anything to suggest
13:09.34umdk1d4_hmm i wonder
13:09.45umdk1d4_docs/migrating/m5-0.9/changes-overview.html:            <li>ListView is now focusable in touch mode by default
13:10.58EQUumdk1d4_: ListView is useless. I'am using LinearLayout with vertical gravity
13:12.07umdk1d4_*orientation
13:12.08EQUumdk1d4_: getFocus(), requestFocus() as getSelected(), setSelection() :)
13:12.10umdk1d4_why is it useless?
13:12.16umdk1d4_tries focus
13:12.22tomgibaraEQU: That is just daft, ListView is the most powerful widget in the toolkit
13:13.12tomgibaraIt's one of the most powerful UI widgets I can remember using
13:13.32umdk1d4_agree, listview is amazing if you know how to use it correctly
13:14.00EQUtomgibara:  i know, it has powerfull features. But, i have still problems with it. Problems like umdk1d4_'s issue
13:15.02EQUtomgibara: for example, it doesn't hava "auto slection change". When top item is selected and i press down button
13:15.06tomgibaraEQU: But for everything that it does, calling it useless for what is at most an awkward corner case is wrong
13:15.27EQU*up bottom, it should select last item :)
13:15.46umdk1d4_well in my case its not listviews fault, its just that its in touch mode somehow
13:15.55umdk1d4_at least i think thats the issue
13:16.24EQUumdk1d4_: do you use your own Adapter ?
13:17.19tomgibaraEQU: One component can't do everything (though ListView gives it a pretty good go).
13:17.41EQUtomgibara: ok
13:18.35umdk1d4_EQU: yep ive got all sorts of fun adapters going on  ^.^
13:19.49EQUtomgibara: i switched to "fake ListView" because of aniamation also.
13:19.50*** join/#android cheng (n=cheng@141.76.49.20)
13:20.15EQUtomgibara: when list view's adapter render rows with 2,3 drawable
13:20.29EQUtomgibara: aniamtion works slow :/ or emulator works slow
13:21.39tomgibaraEQU: Did you ask for any advice on the developer group?
13:23.02EQUtomgibara: now, i talked about this on this channel
13:23.22tomgibaraDid romainguy have any advice?
13:25.36EQUtomgibara: he said, that ListView it's for small count of adapter items
13:26.11EQUtomgibara: and real device works faster than emulator
13:27.19tomgibaraI won't disagree with anything romain says about ListView
13:27.44tomgibaraBut that first comment seems odd, ListView is clearly designed to handle very large lists
13:28.14*** join/#android Mathiasdm (n=Mathias@78-22-6-189.access.telenet.be)
13:28.28tomgibaraSee API demo Views/Lists/14
13:29.34EQUtomgibara: I see.
13:29.59EQUtomgibara: android market activity i maded by basic widgets ?
13:30.49tomgibaraI anticipate that most of the Android applications, from Google or otherwise, will predominantly use the standard widgets
13:31.09tomgibara(where the hell did they get the names of all those cheeses?)
13:32.00EQUtomgibara: maybe they have a french guy on board :)
13:32.56tomgibaraWell, I believe romain is french, but there are plenty of other cheese eating nations
13:33.41EQUin my country, we have only two kinds od chees.. white and yellow :)
13:34.07tomgibarathat country being?
13:34.49EQUPoland :P
13:36.57EQUtomgibara: we have many kinds of vodka :]
13:38.11tomgibara:)
13:38.49EQUtomgibara: have you ever drinked our best-export product ?
13:39.49tomgibaraI've drunk vodka, more than I ought to on some occasions, but not as far as I'm aware the polish variety
13:42.18umdk1d4_there continue coming out with new widgets too
13:42.52tomgibaraumdk1d4_: I doubt if there will be any new widgets between 0.9 and 1.0
13:43.17umdk1d4_true, i think theyve reached feature-complete and are just fixing bugs at this point
13:44.21tomgibaraWell, I think I found a pretty significant bug today, I'm going to run it past someone at Google on this channel before I post it
13:45.09umdk1d4_watches all the little people race to be at work at 8am :)
13:45.43*** join/#android muthu (n=sara@59.92.84.229)
13:54.22Dougie187I hope the touch diamond can run android
13:54.41Dougie187since the touch appears to have decent support.
13:57.34gamblerEQU, yes but you have Marius Pudzianowski ...
13:57.50gamblerIf Marius wants another type of cheese he will will it into existence
13:59.17*** join/#android mohbana (n=mohbana@87-194-191-26.bethere.co.uk)
14:09.37*** join/#android vbabiy (n=vbabiy@rrcs-24-97-148-190.nys.biz.rr.com)
14:12.18*** part/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
14:12.45*** join/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
14:39.36*** part/#android mohbana (n=mohbana@87-194-191-26.bethere.co.uk)
14:42.15*** join/#android yakischloba (n=jake@209.160.56.254)
14:45.45*** join/#android cbeust (n=cbeust@64-142-66-175.dsl.static.sonic.net)
14:47.38*** join/#android cbeust (n=cbeust@64-142-66-175.dsl.static.sonic.net)
14:48.35*** join/#android cbeust_ (n=cbeust@72.14.224.1)
15:01.47*** join/#android moccuo (n=mike@modemcable127.116-59-74.mc.videotron.ca)
15:02.53umdk1d4_hmm /me tries figuring out the "right way" of doing http requests with a timeout
15:04.21*** part/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
15:04.57*** join/#android Dougie187 (n=doug@144.174.57.3)
15:18.06*** part/#android zoolooc (n=lucian@nrbg-4dbfa834.pool.einsundeins.de)
15:21.47umdk1d4_hmm how to delete files created by openFileOutput()
15:22.34umdk1d4_yay deleteFile()
15:23.56*** join/#android ArteK_ (i=root@artekw.cerbero.pl)
15:26.43*** join/#android moccuo (n=mike@modemcable127.116-59-74.mc.videotron.ca)
15:29.28*** part/#android Dougie187 (n=doug@144.174.57.3)
15:33.26*** join/#android muthu (n=sara@59.92.7.207)
16:07.55*** join/#android pandora-- (n=pandora-@66.238.50.126.ptr.us.xo.net)
16:10.39*** join/#android muthu (n=sara@59.92.94.163)
16:10.40*** join/#android zenob (n=chatzill@akademik.nat.student.pw.edu.pl)
16:11.09*** join/#android zenob_ (n=zenob@akademik.nat.student.pw.edu.pl)
16:14.15*** join/#android zenob_ (n=zenob@akademik.nat.student.pw.edu.pl)
16:16.45*** join/#android zenob_ (n=zenob@akademik.nat.student.pw.edu.pl)
16:20.45*** join/#android k1ng_ (n=k1ng@nat2.aero.und.edu)
16:23.51*** join/#android anno^da_ (n=anno^da@p5B07CF92.dip.t-dialin.net)
16:24.52k1ng_anybody is running android on a titan?
16:36.10*** part/#android kourier (n=Sy@81-86-215-134.dsl.pipex.com)
16:36.15*** join/#android muthu (n=sara@59.92.2.102)
16:43.22*** join/#android AttractiveApe (n=phil@office.gossamer-threads.com)
16:43.42*** join/#android eton_ (n=eton@ppp-58-8-8-243.revip2.asianet.co.th)
16:53.33umdk1d4_hmm /me wonders the best way to save a file to sdcard
16:53.51zhobbs/sdcard
16:54.25umdk1d4_right, but is there an api?
16:54.34zhobbsjust open it like any file in java
16:55.39zhobbsbut no api to get the path to the sdcard or anything...guess it's just safe to assume /sdcard
16:57.53*** join/#android infobot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
16:57.53*** topic/#android is You don't have to use it, but we thought it might be useful: http://android-developers.blogspot.com/2008/08/android-market-user-driven-content.html
17:00.45*** join/#android muthu (n=sara@59.92.71.247)
17:02.24*** join/#android bricode (n=bricode@190.10.109.40)
17:04.05*** join/#android moccuo (n=mike@modemcable127.116-59-74.mc.videotron.ca)
17:08.13*** join/#android cbeust (n=cbeust@72.14.224.1)
17:15.01anno^da_umdk1d4_: there is a method in the context that gets you the path to the sdcard
17:16.05anno^da_But I'm searching it again :9
17:16.11*** join/#android catzilla (n=catzilla@unaffiliated/catzilla)
17:17.45anno^da_umdk1d4_: http://code.google.com/android/reference/android/os/Environment.html
17:17.47anno^da_there it is
17:17.55anno^da_getExternalStorageState()
17:18.07anno^da_<PROTECTED>
17:18.09anno^da_:9
17:22.24zhobbsanno^da_: nice, missed that one
17:22.37anno^da_no problem :)
17:24.43*** join/#android catzilla1 (n=catzilla@pool-72-68-106-182.nwrknj.east.verizon.net)
17:28.44umdk1d4_anno^da_: AWESOME i knew it was somewhere  ^.^
17:29.02anno^da_:-)
17:31.35*** join/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
17:47.16*** join/#android Omar (n=oskanaan@auh-as33567.alshamil.net.ae)
18:06.52ProteusI'm interested in writing applications for both Android the iPhone platform but the difference in language (objc  vs java) and in interface code is discouraging. Are there any tools for easing the transition in one direction or the other?
18:07.24*** join/#android pgrace (n=pgrace@fmservices.dmz.v6.fierymoon.com)
18:13.24*** join/#android herriojr (n=Miranda@65.173.101.2)
18:22.14davidwProteus, not yet
18:23.03zhobbswould be interesting to see a breakdown like this for android: http://www.catonmat.net/blog/code-reuse-in-google-chrome-browser/
18:23.53romainguyin this list, note that Skia is the SGL used in Android
18:25.04km-sanmehat: you around?
18:26.27*** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle)
18:26.58*** join/#android fadden (n=fadden@209-204-141-120.dsl.static.sonic.net)
18:30.03SanMehatkm-: yeah but i'm sick.
18:30.40km-sanmehat: sucks.
18:30.55*** join/#android Omar (n=oskanaan@auh-as33567.alshamil.net.ae)
18:31.23Omarwhen will the first android phone be available?
18:31.44gdsxOmar: just slightly after the dawn of time
18:31.57romainguy_Omar: Q4 2008
18:32.30Dougie187lol romainguy_ you are so nice.
18:32.38Dougie187Don't you get frustrated by anyone?
18:32.38umdk1d4_lol
18:32.41romainguy_:)
18:32.50umdk1d4_i wonder if there will be an android epoch ;)
18:33.07Omari guess many people asked this question before :D
18:33.13Dougie187oh yeah.
18:33.13gdsxumdk1d4_: the android epoch is the release of Robocop
18:33.32Dougie187romainguy_ how often do you get angry?
18:33.38anno^da_:-)
18:33.52romainguy_Dougie187: why are you asking this?
18:33.56Dougie187just curious.
18:34.14Dougie187because I don't think ive ever seen you act aggressively in here.
18:34.22Omari think its good to have a direct answer isnt that what this channel is for?
18:34.22romainguy_because I have no reason to
18:34.25zhobbsromainguy_ is just in a good mood cause jasta is out of town
18:34.30romainguy_lol
18:34.41umdk1d4_LOL @ jasta
18:34.44romainguy_yeah maybe people will be able to ask any question they want without being yelled at by jasta :p
18:34.52zhobbshehe
18:35.05Dougie187i doubt it though.
18:35.13Dougie187he probably has a pager.
18:35.20km-boo.  I thought if I hit the camera button that the emulator would show me lumburgh
18:35.26Dougie187that sends him "Time to rip someone on irc"
18:35.34zhobbskm-: if you save the image and then view it
18:35.45km-zhobbs: ahh.
18:36.08km-HAHAHA that's funny.
18:36.13km-google++
18:36.24km-any of you guys fiddle with the wifi apis yet
18:36.30tomgibararomainguy_: Sorry, but I have another question to bug you with
18:36.34km-I'm wondering if there's a way to toggle infrastructure vs. ad hoc mode
18:36.35romainguy_shoot
18:36.57tomgibaraThis might be serious bug in android, or it could be a mistake on my part...
18:37.00km-You know, I really hope the LHC doesnt vaporize the planet before I get my HTC Dream.
18:37.59Dougie187well if they do, do you think you would care anymore?
18:38.07tomgibaraThe scenario is this: I have an activity displaying a surface and a thread that does nothing but update it while the surface is available and the activity is not paused
18:38.43tomgibaraThe thread attempts to throttle itself so that it does no more than one update every (1000/15) milliseconds
18:39.15km-Dougie: point.
18:39.33tomgibaraThe only other thing in this testcase is that I've extended the SurfaceView so that I can capture touch events on the surface
18:40.14tomgibaraFirstly does this sound like a sensible scenario? Or am I doing something here that is unplanned for in the framework?
18:40.28*** join/#android anno^da- (n=anno^da@p5B07CF92.dip.t-dialin.net)
18:40.29romainguy_that sounds good so far
18:42.06tomgibaraOkay, here's the slighly scrappy test case I've produced: http://pastebin.com/m289690d6
18:42.17romainguy_what's the problem>
18:42.18romainguy_?
18:43.10tomgibaraIn this test case I do two things: I make sure that I do a lot of work on the canvas provided by the SurfaceHolder, and I synchronize state updates with touch events
18:44.30romainguy_and what is the issue?
18:44.51tomgibaraThe problem is that this appears, on many occasions to totally lock-up the event dispatch thread
18:45.08tomgibaraA dialog appears which says that the application is not responding
18:45.40romainguy_when does it happen?
18:46.01tomgibaraIf I put lots of bogus work into the worker thread inside the synchronized block, but not using the canvas, the problem goes away
18:46.21tomgibaraAbout 5-10 seconds after touching the screen
18:47.02tomgibaraIt's as if working the canvas heavily prevents the event dispatch thread from operating correctly
18:47.30romainguy_it should definitely not
18:47.56tomgibaraIt's not an entirely reproducible bug in its current state
18:49.26romainguy_this is definitely how we do this in our samples
18:49.41romainguy_except you should have a try/finally around lockCanvas to make sure you always unlock it
18:49.43tomgibaraOne more feature, which makes me think this looks like a horrible thread issue, is that you can see the screen being updated even when the system claims the app is being unresponsive
18:50.07tomgibaraI probably do in my actual app
18:52.03tomgibaraThat the surface view is constantly updating demonstrates that the synchronized block is being entered/exited which means that there is no reason that the event handling code can't acquire it
18:52.16romainguy_you could try to do all your synchronize on the holder instead of your own lock
18:53.30*** part/#android Omar (n=oskanaan@auh-as33567.alshamil.net.ae)
18:55.17tomgibaraWell I think it's more serious than that because I don't think the dispatchTouchEvent isn't even getting called
18:58.53*** join/#android cheng (n=cheng@xGagB214.WH1.TU-Dresden.De)
19:01.40tomgibaraOkay, it's calling the method and failing to acquire the lock - even though the screen is updating frequently meaning that the synchronized block is being exited plenty of times
19:02.03tomgibaraEventually the lock is obtained, but not until after the ANR has been triggered
19:02.17tomgibaraSynchronizing on the holder makes no difference
19:03.12tomgibaraI'm not saying it is one, but it looks like a fairness issue in the VM
19:06.57*** join/#android k1ng_ (n=k1ng@nat2.aero.und.edu)
19:07.08tomgibaraOne more piece of information, in this testcase, the problem seems to affect the first touch, or the problem doesn't occur (in contrast, in my app, I've seen the problem 'start' after the first touch)
19:10.34herriojrdoes anyone know if dynamically loading classes from dex files is still supported?
19:10.38herriojrof did they remove that?
19:14.08faddenherriojr: what specifically are you trying to do?
19:15.42herriojrcreate an interface where I can load .dex files that I create, so I can add new functionality to my application post-release without having to redownload the application
19:16.31herriojralso, I'm having difficulty finding where applications save files when you save a file
19:19.23faddenYou will likely run into permission problems -- /data/dalvik-cache is no longer world-writable.
19:20.19fadden(can't have apps rewriting other apps)
19:21.41herriojrso if I open up a file stream for write to the file something.jpg, it will save to /data/dalvik-cache?
19:21.52herriojroh, you're talking about the .dex file
19:21.54herriojrok
19:22.25faddenRight.
19:22.38herriojrthat sucks
19:22.45herriojrthey really are starting to lock everything down
19:23.08herriojr*sigh*
19:23.13romainguyno we're not
19:25.18herriojrromainguy: are external jar libraries still going to be accessible after release, such as java.awt.jar?
19:25.46romainguyif they are accessible in 0.9 they should be in 1.0
19:25.53romainguybut I'm no expert on this feature
19:26.00romainguyfadden: do you know about this?
19:26.36herriojrI talked to fadden about it yesterday, and he said they are probably going to drop it since it is unsupported
19:26.44faddenSome stuff got moved out of core.jar and into android.awt.jar since it wasn't used much.
19:27.08faddenI don't think that's expected to go away.
19:27.20herriojrok, maybe it wasn't you I talked to :)
19:32.55herriojrso, are we going to be able to install .jar libraries on the client?  the only location I seem to find them are /system/framework and they only have rw permission for root
19:33.03herriojrmy assumption is that applications won't be installed as root
19:36.19herriojrone of the big issues on other phones is keeping software up to date (BREW, J2ME, etc), so if we can't keep code separate from the apk, is there going to be a mechanism to update applications on the phone without having to redownload the applications?
19:37.04*** join/#android sayers (n=sayers@c-76-20-182-119.hsd1.mi.comcast.net)
19:37.54zhobbsherriojr: updates will be done through the Marketplace
19:38.07zhobbsvia downloading/installing new apk
19:38.29herriojrwill the marketplace autoinform users of updates or will the application have to do that?
19:39.02zhobbsdon't know...I'd think the Marketplace would have a screen to show what apps are out of date, but those details haven't been released
19:39.15herriojrok
19:39.19*** join/#android squeakypants (n=squeakyp@75.146.255.198)
19:39.29Proteusis there any copy protection for apps sold through the marketplace?
19:39.56zhobbsdon't know, initial marketplace won't support non-free apps
19:40.10zhobbsfree as in beer of course
19:40.19herriojralso, I can't seem to find whether I can determine the carrier via API calls or even the hardware version, will that be possible in the future?
19:40.32herriojrfree if you don't do the billing through the application itself
19:40.47zhobbsjust curious, why do you want to know the carrier?
19:41.40herriojrmy application is carrier-branded, and if we can determine the carrier, we can have a single build for all carriers and load the branding over-the-air
19:42.24zhobbsgotcha
19:43.07herriojralso, I want to detect device versions, since in my experience, the same device has different problems depending on the version
19:43.33herriojrso in the app store being able to specify your application for a certain carrier/device/device version would help out a lot
19:43.46anno^da-hates branding *help*
19:44.21herriojrwhat do you hate about branding? :)
19:45.00anno^da-Well what do you mean about carrier branding perhaps you mean sth different :)
19:45.10herriojrsth?
19:45.11zhobbsI can't imagine that many people *like* branding
19:45.39herriojrare you talking from a developer perspective or user-perspective?
19:45.55herriojrok, I have to run off to lunch, I'll continue the conversation a little later :)
19:46.09anno^da-something = sth :)
19:46.21anno^da-from a user perspective
19:46.45anno^da-and from a developer perspective I'm looking at it from the user perspective
19:46.53anno^da-since they have to buy my app
19:46.56anno^da-or use my app
19:47.05zhobbsanno^da-: what are you working on?
19:49.23*** join/#android krau (n=cktakaha@200.184.118.132)
19:49.45anno^da-Oh at the moment I'm just working on a open source app for creating content (video, photo, audio, text) and uploading it into blog systems like Tumblr, Blogr. And using social media sites like Flickr, Youtube, Vimeo etc to store the content.
19:50.08zhobbsnice
19:50.16zhobbsyou working on it by yourself?
19:50.19anno^da-and informing about new posts through Friendfinder, Twitter etc
19:51.24tomgibararomainguy: This thread bug - if it's not known, I presume I should find the time to file it.
19:51.25anno^da-At the moment I am since it was my first real application in java. At the moment it is working pretty fine. I will setup a google code page later on. Just have to clean up my app.
19:51.31tomgibaraI just can't see why no-one else would have run into it
19:51.45tomgibaraBut I can't see anything wrong either.
19:53.08anno^da-zhobbs: But it is a lot of fun for me. Uploading the whole stuff to Tumblr, storing at Vimeo and Flickr and informing about the posts at Twitter, Technorati works at the moment.
19:53.56zhobbsvery cool
19:54.05zhobbsdid you see Romain's Photostream app?
19:54.25anno^da-Yeah I saw it right after he uploaded it to the SVN
19:55.44zhobbsI love open source, I hope we see some open source projects really get going after launch
19:56.08anno^da-Oh well I prefer open source :-)
19:56.28anno^da-But I can understand that people have to earn money from their apps.
19:56.43zhobbsyep
19:57.13zhobbsthe app I work on won't be open source :(
19:57.49anno^da-I thought about that as well but this app should be open source since I am not that experienced with Java and I wont take money for a first try. But for a first try I like it. :-)
19:59.26anno^da-And I'm so excited getting real hardware in order to test it on the street.
19:59.33zhobbsyeah, me too
20:02.46anno^da-But I will upload an APK next week with some test accounts
20:03.15anno^da-At the moment I just had to remove Video recording
20:23.00*** part/#android Dougie187 (n=doug@wg-d232024.dsl.fsu.edu)
20:26.49*** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net)
20:32.47*** join/#android krau_ (n=cktakaha@200.184.118.132)
20:35.58*** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net)
20:40.18zhobbsahhh...almost done with my custom tab framework...supports multiple activities per tab and animations
20:51.14*** join/#android tale_ (n=tale@207.235.54.1)
21:00.01*** join/#android Harry__ (n=Harry@216-64-141-98.static.twtelecom.net)
21:12.33herriojranno^da: even if you aren't experienced, if you product is good, there's no reason not to make money for your work
21:12.45herriojrI'm not saying don't do open source
21:13.28*** join/#android meoblast001 (n=meoblast@dynamic-acs-24-239-93-241.zoominternet.net)
21:14.16herriojranyways, from earlier, branding in any of my applications isn't pervasive
21:14.23herriojrit just lets you know who did the app, etc.
21:17.39herriojron the open source thing, I was just trying to say: don't do open source just because you think you're not experienced enough to sell your work, you can let the work speak for itself
21:21.03*** join/#android Proteus_ (n=Proteus@97-119-85-75.omah.qwest.net)
21:37.21Proteus_since the appstore will initially only support non-commercial apps and I want more people to buy android phones so I can sell commercial apps later, I finally thought of an open source project that might be useful but I'm really not sure how google will feel about it. I'm thinking about building an android web interface to Wikileaks which would not only let you read and annotate already released documents but, say, take pictures of docume
21:37.21Proteus_nts and store them in an AES256 encrypted box until you  were ready to upload them/ocr them/ whatever.
21:37.59herriojrheh, that's cool
21:38.05Proteus_thanks
21:38.12herriojrit will become a spy phone :)
21:38.30Proteus_I know - and that rocks
21:39.23herriojralso, with relation to open source only being the first ones, what's to stop you from building billing, etc. into your application?
21:39.42herriojrit may not be the best user experience, but it will work
21:40.25Proteus_like, a pay pal interface and some sort of key that gets sent back? hrmm
21:41.18herriojryeah, you can become the paypal for google phones :)
21:41.19Proteus_it would also let you run a benchmark to see if their phone model could support your app before they purchase it
21:42.14herriojror somehow build an interface that allows applications to pull out one-click shopping information from your app
21:42.37herriojrbut that might not be too secure :)
21:43.08herriojryou'd have to get your paypal service-type thing implemented really quickly
21:43.21herriojrbefore google builds out its store to support pay-for apps
21:43.24*** join/#android rapidology (n=rapidolo@dsl081-139-235.chi1.dsl.speakeasy.net)
21:43.38rapidologyandroid!
21:43.41rapidology:)
21:43.51herriojrthe more applications that use your service before their store comes out, the more likely it will be adopted
21:44.21herriojrI don't know how to respond to that rapid :)
21:45.11rapidologyhah, just showing some excitement
21:45.52rapidologyhave you developed apps for android already?
21:46.29Proteus_unfortunately, I'm not making any money out of it and the appstore would be doing the same thing..... sort of. With my idea you could implement 'pay what you want' schemes and the benchmark tests - or perhaps even subscription services.
21:47.10Proteus_all of which would just be implemented by the appstore if there was a demand, I expect
21:47.20herriojrah, you mean like donations to the app developers?
21:48.27Proteus_yeah. 'did you like my minigame? throw me some money! here's a pay pal link'
21:48.44herriojryou know, I tried doing that with shovelling snow as a kid
21:48.50herriojrdidn't work out too well :)
21:49.15herriojrbut I guess with a mass-audience it might actually work :)
21:50.06Proteus_I only shovled snow with pre arranged contracts, I never tried just doing it and guilt tripping the residents.
21:50.11herriojrhey, does anyone know how I can decompile the dex files in /data/app/dalvik-cache
21:50.29herriojrI'm trying to see if my app stores any files it creates in the dex file in there
21:50.53herriojryeah, people in my neighborhood were a bit stingy
21:50.56faddenDEX files are read-only once created.  It's just code.
21:51.15faddenadb shell ls -R /data
21:51.17herriojrwhere are the files I create stored, such as .jpg, etc
21:51.32faddenOfficially, you're supposed to let the system worry about where they actually end up.
21:52.08herriojryes, I know :)
21:52.17herriojrcuriosity killed the cat ;)
21:53.00*** join/#android inZane- (i=nemo@dslb-084-058-037-136.pools.arcor-ip.net)
21:53.03herriojrif I save a dex file through a file write in my application, would I be able to execute the code in the dex file through my application?
21:53.36herriojrI'm trying to figure out if I can make the equivalent of a dll for my app, so I can add functionality later
21:53.44faddenI don't believe that sort of stuff is supported in 1.0.
21:54.03herriojrok, so I'll have to write a scripting language and have a vm built into my app
21:54.44herriojrI just wanted to verify that's the case
21:56.54herriojrand my last question of the day: will I be able to detect which carrier the phone is on, and what firmware version is installed and what device?
22:01.25squeakypantshey
22:01.51squeakypantsis there a way to use an array of ints in a spinner
22:02.15squeakypantsif i put it in arrays.xml it gives me errors (it wants string-array)
22:05.42herriojractually, I have one more question, did they remove the commandline option to open the sqlite database via commandline on the emulator, and if not, where is the command located?
22:11.52Proteus_what's the best way to define/recognize new and more complex gestures? I _think_ I get how to retreive the shape of the input gesture with MotionEvent functions, but I'm not sure how to make a relatively accurate algorithm for identifying these gestures that will perform well within the restrictions of the  platform. I know it  can be done, the original palm pilot could do it - but what's the easiest way to do it now?
22:16.46Proteus_herriojr, you're going to builld a vm for a scripting language on top of your app? that's impressive.
22:17.54herriojrwell, there are some open source options available
22:18.07herriojrI was looking into kahlua
22:18.07squeakypantsProteus_: i saw someone got jython working on it :)
22:18.54herriojrkahlua is a java implementation of lua (at least a subset)
22:19.14squeakypantspython's where it's at man :D
22:19.41squeakypantsthough to be fair i never really used lua
22:20.03herriojrlua is widely used in gaming
22:20.15squeakypantsso is python :D
22:20.18herriojrfor scripting
22:20.19herriojrheh
22:20.31squeakypantspython just scares people because it's so different
22:20.36Proteus_squeakypants, wow! I didn't know jython existed! if jython can be made to work then there's hope for my ocaml-dalkvic project
22:20.43squeakypants"whitespace sensitive? WTF???"
22:20.57herriojrwhat is whitespace sensitive?
22:20.58squeakypantsProteus_: ocaml-dalkvic?
22:21.09Proteus_squeakypants, based on ocaml-java
22:21.25Proteus_but made to work with android
22:21.39squeakypantsherriojr: it uses whitespace (spaces) to detect blocks, not {}
22:21.50herriojrdo you have a link for jython which is workable on android?
22:22.05squeakypantsyeah but idk how well
22:22.06herriojrare you talking about python or lua, I don't have much experience with either :)
22:22.11squeakypantspython ;)
22:22.45squeakypantshttp://code.google.com/p/jythonroid/
22:22.53squeakypantsproteus_: sorry, what's ocaml?
22:23.24squeakypantsalso, why is my emu taking so fucking long to load? it's been like 3 minutes and it's still in text mode
22:24.04romainguysqueakypants: it depends on your computer :((
22:24.18squeakypantsromainguy: yeah but it wasn't THIS long yesterday :-/
22:24.23romainguyah then I don't know :)
22:25.03squeakypantsi don't think it's my code cause it hasn't run it yet...
22:25.52herriojrsqueakypants: the reason I want to build a vm into my app is so that it can be dynamically updated
22:26.08herriojrand other people can write addons for it
22:26.12herriojretc
22:26.16squeakypantsherriojr: aha
22:26.32squeakypantsyeah python is very capable of that, but i've never tried it
22:26.46squeakypantsespecially not with java (i've never used jython)
22:27.01herriojrI wonder if I can make calls to the vm from another java app
22:27.21romainguy_with Jython you can invoke python code from Java
22:27.25squeakypantswell it's not really a VM :P it's just an interpreter
22:27.25romainguy_and the other way around too
22:27.27herriojrok, cool
22:27.34romainguy_I don't know if this works with Dalvik though
22:27.44squeakypantsromainguy_: there's a android version http://code.google.com/p/jythonroid/
22:27.56herriojrfrom what I see, it's packaged as an apk, which means probably not exactly what I want
22:27.56squeakypantsright now it seems like just a quick port though
22:28.45squeakypantsherriojr: i'm not too familiar with android (or java)'s structure but
22:29.01squeakypantsherriojr: it says the package name is org.python.util
22:29.19squeakypantsherriojr: so i assume once you have it installed, you should be able to access it from other apps?
22:30.16squeakypantshmm, i'll try -wipe-data
22:30.24herriojryeah, but it won't be able to modify the screen layout of my app, etc.
22:30.36squeakypantsherriojr: why not?
22:30.53herriojrapk's are sandboxed
22:31.13squeakypantsoic
22:31.19herriojrwhat happens in one can't affect another
22:31.23squeakypantsthere must be a way to include them together though
22:31.34herriojryeah, that's why I said I'd have to build it as a jar
22:31.35squeakypantsnot necessarily an apk (it's open source)
22:31.40squeakypantsah, gotcha
22:31.48squeakypantsyay! wipe-data worked :D
22:31.57herriojrand I need to see if I use it as a jar that the license will be compatible
22:32.10herriojrwith my project
22:32.24squeakypantssays apache license
22:32.28squeakypantssame as android
22:32.30herriojrit has some gnu components
22:32.39squeakypantsyou mean gpl'd?
22:32.51herriojreah, that's what I meant
22:33.00squeakypantsmmm, yeah that could be a problem
22:33.16squeakypantsbut if it's released under apache i don't think you'll have a problem
22:33.35herriojrcan you re-license gpl?
22:33.39Proteus_squeakypants, ocaml is a functional, multiparadigm language which elegantly stays close to the problem but can compile to native code which competes with C. It has support for modules and OO. The language is statically typed and well defined so most problems are caught at compile time yet good type inference makes static typing less of a hassle. The focus of the compiler/language design is to be able to write high-level functional code, i
22:33.40Proteus_mperitive code, or whatever mix you want and still maintain high performance execution as native code, bytecode, or interpreted. It aslo features an advanced but fast garbage collector. Despite being a functional language, like say Haskell, ocaml is impure (allows side effects) and meant to be a practical language for getting things done, not just another fancy language for academics.
22:34.29Proteus_the wikipedia is rather out of date, but I can link you to the pdf of an introductory book which lays out the main concepts of the language, if you like.
22:34.38squeakypantsnah, i got the gist :)
22:34.40squeakypantsseems neat
22:34.42*** join/#android duey (n=Nick@ip202-27-218-69.satlan.co.nz)
22:35.12squeakypantsumm, correct me if i'm wrong, but spinners are supposed to do something when you click on them, right? :P
22:35.57herriojrsqueakypants: other people have had that issue
22:36.05squeakypantsoh really?
22:36.07squeakypantsgreeeeat
22:36.21squeakypantsmaybe i should switch to a list view
22:36.53squeakypantshow do you close an app?
22:37.06herriojrumm, let me see
22:37.23*** join/#android dueynz (n=Nick@ip202-27-218-69.satlan.co.nz)
22:37.42Proteus_Don't mean to be a bother, but I was hoping to get some feedback from the google people here on whether my wikileaks app I described above was going to be to controversial?
22:38.06squeakypantswikileaks?
22:38.31herriojrProteus: I don't know whether they'd probably care
22:38.55herriojrit's not up to them whether you release an app or not
22:38.58Proteus_wikileaks posts anonymous dumps of secret  data from governments around the world
22:39.22Proteus_yeah, but I'd understand them keeping it  out of the appstore.
22:40.11Proteus_or maybe I have this mixed up because I'm used to apple: will we be  able to download and install apps from anywhere once android phones go live?
22:40.20herriojrI think most people wouldn't develop if they were to be choosey on who they include in the store
22:41.00herriojrI don't think they've released enough information about it
22:41.13squeakypantsProteus_: they said it wouldn't need approval, like youtube
22:41.18squeakypantsbut i assume they'll still moderate it
22:41.23Proteus_that's completely awesome
22:41.28herriojrto exit the app, just call finish() in your activity
22:41.40squeakypantsherriorjr: lol, i meant in the emu :P
22:42.04herriojryou want to delete or exit the app?
22:42.09squeakypantsexit
22:42.27herriojrwouldn't it depend on whether you implemented the finish() call on your app or not? ;)
22:42.40herriojrand how you implemented it
22:42.50herriojrI don't think I understand what you're asking :)
22:42.56squeakypantsi mean like
22:43.09squeakypantson the phone, is there a way to exit an app rather than just close it?
22:43.29herriojrhmm, I can't even get that to happen when I have it on a phone
22:43.59squeakypants?
22:44.10herriojroh, I put android on a htc vogue
22:44.23herriojrI don't think you can at the moment
22:44.28romainguy_why do you want to do that?
22:44.29herriojryou could remove the application and then re-add it
22:44.35romainguy_the system takes care of everything for you
22:45.18squeakypantshmm... now i'm just starting to think neither listviews nor spinners like integers :-/
22:45.42romainguy_??
22:45.48romainguy_what do you mean by that?
22:46.04squeakypantswell i have a spinner (and i tried the same with a listview)
22:46.15squeakypantswith an ArrayAdapter<Integer>
22:46.24squeakypantsit shows the first value but i can't click it
22:46.33squeakypantsin the listView it didn't show any values, just blank rows
22:46.51squeakypantsoh, heh, i just realized why the ListView didn't work :P
22:50.46herriojrjythonroid does contain gpl code, but it seems jython doesn't
22:51.06herriojrso *I think* by default jythonroid has to be gpl'd
22:51.46squeakypantsclicking isn't working for the listview either... only scrolling (with the scroll wheel)
22:51.57squeakypantswhich is the equivilent of the arrows
22:52.02squeakypantshmm, it's like it's completely ignoring the mouse
22:52.13romainguy_what do you mean by clicking is not working?
22:52.18squeakypantsnotification bar scrolls does work though
22:52.28squeakypantsromainguy_: if i click on the listview (or spinner) it doesn't do anything
22:52.43herriojrare any events thrown when that happens?
22:52.53squeakypantshow would i find out? debug?
22:53.21herriojrhonestly, I don't know, I haven't been writing too much android code....mostly just trying to get it on the htc tilt and htc vogue
22:53.44romainguy_squeakypants: have you registered a click listener?
22:53.48squeakypantsif the rumors about the t-mobile g1 are true i'm gonna try getting one :P
22:53.52squeakypantsromainguy_: eh?
22:54.10romainguy_what are you expecting the listview to do?
22:54.24squeakypantsscroll and/or select each item
22:54.37romainguy_when you click on an item I mean
22:54.45squeakypantsnothing
22:54.54romainguy_then why do you say it's not working?
22:54.59squeakypantsbut when i click an item on the list, it should be highlighted
22:55.14squeakypantsand when i touch and move the list, it should move
22:55.17squeakypantsno?
22:55.21romainguy_yes
22:55.32squeakypantsright, it's not doing either
22:55.38squeakypantsnor does clicking a spinner do anything
22:55.52romainguy_then there's something wrong with your code *or* with your emulator :)
22:56.09squeakypantsheh
22:56.22squeakypantsi just did a wipe-data so there shouldn't be a problem with the emu
22:57.10romainguy_can you click on buttons or list in other apps?
22:57.14squeakypantsyup
22:57.21squeakypantshttp://dpaste.com/76245/
22:57.49squeakypants(lol i'm just trying to make a simple dice roller app)
22:57.58romainguy_what's the layout?
22:58.04*** join/#android catzilla (n=catzilla@unaffiliated/catzilla)
22:58.22squeakypantsa relativelayout for the entire thing
22:58.33romainguy_can you show it to me?
22:58.34squeakypantsrelativelayout inside that with 2 listviews and a textview
22:58.43squeakypantsguh i guess :P it's not very advanced code
22:59.03squeakypantshttp://dpaste.com/76246/
22:59.26squeakypantsjust to be clear, can i do <ListView /> instead of <ListView></ListView>?
22:59.31romainguy_yes
22:59.32romainguy_it's just XML
22:59.35squeakypantsk
22:59.39squeakypantschanges it to look prettier
22:59.53romainguy_ok I know what's going on
23:00.00romainguy_remove the last listview
23:00.02romainguy_the one at the bottom
23:00.18squeakypantsAHA
23:00.21squeakypantsthank you :)
23:00.24squeakypantsi get it exactly hahaha
23:00.30romainguy_you made this listview cover the entire screen
23:00.33squeakypantsright
23:00.36romainguy_but it's empty so it doesn't draw
23:00.38squeakypantsyeah i forgot about that :P
23:00.41romainguy_but it captures the motion events
23:00.50squeakypantshow do i make it fill up the rest of the screen?
23:00.50romainguy_told you, your fault :p
23:00.53squeakypantshehehe
23:01.18*** join/#android mickrobk (n=mickrobk@c-67-173-250-134.hsd1.co.comcast.net)
23:01.46squeakypantsis there a way i can make it fill the rest of the screen?
23:02.07romainguy_with linearlayout it would be easier
23:02.30squeakypantsand use gravity to make the first one go to the top?
23:02.43romainguy_no
23:02.54romainguy_use a vertical linear layout
23:03.11romainguy_keep your relative layout (even though your usage of fixed width/height makes me want to cry blood :)
23:03.16romainguy_and then put your 3rd list view
23:03.24romainguy_and give it a height of 0dip and a weight of 1.0
23:03.34squeakypants0dip?
23:04.13squeakypantsand how can i make it percentage-based?
23:04.21squeakypantscan i just use like 30% as a value?
23:04.27romainguy_no
23:04.44romainguy_you would have to give a height of 0dip to your relative layout
23:04.48romainguy_and a weight of 2.0
23:05.01squeakypantswhat's dip? and what's weight?
23:05.41romainguy_dip = device independent pixel
23:05.51squeakypantslol just found http://code.google.com/android/devel/ui/xml.html
23:05.52romainguy_weight = amount of remaining space you want to allocate to the widget
23:12.00squeakypantsugh oh
23:12.03squeakypantsit crashes on launch :P
23:21.17squeakypantsthanks for the help, btw romainguy_
23:21.46romainguy_no pb
23:47.09*** join/#android duey (n=Nick@ip202-27-218-69.satlan.co.nz)
23:53.23herriojris there a way to inflate xml that, say I pull off the wire, to an interface?  Basically, I just want ot be able to specify a xml file or stream to use instead of having to specify a resource ID

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.