**** BEGIN LOGGING AT Thu Jul 30 02:59:57 2009 Jul 30 03:00:21 Actually, I don't know anything about dev. I am just lurking here usually so all of your stuff is over my head. :) I am a lowly social worker. But I like to use geek stuff. Jul 30 03:00:54 well ok, that's fairly self-deprecating but whatever. Jul 30 03:01:09 haha. Jul 30 03:03:41 Well, I hate relying on Pandora, last.fm. I never use Shuffle. I am a control freak so it be cool to have my whole collection available via stream. Jul 30 04:09:33 Bonjour. Hello. What does android:layout_weight do actually ? Jul 30 04:26:34 I think weight makes it sink lower Jul 30 04:26:47 So like that view will be lower than others if it is heavier Jul 30 04:27:12 uh, what? Jul 30 04:27:24 isnt that what layout_weight does? Jul 30 04:27:30 not even close Jul 30 04:27:41 ok... Jul 30 04:27:52 just trying to help out because no one was answering :S Jul 30 04:30:04 layout_weight is used in LinearLayouts to assign "importance" to Views within the layout. All Views have a default layout_weight of zero, meaning they take up only as much room on the screen as they need to be displayed. Assigning a value higher than zero will split up the rest of the available space in the parent View, according to the value of each View's layout_weight and its ratio to the overall layout_weight specified in the c Jul 30 04:30:05 I did a bit a googling. It's how to divide up the space among several widgets. Jul 30 04:30:32 glad you found it :) Jul 30 04:30:45 Thank @mosquito. Jul 30 04:31:00 Not really I gave u false information at first :0 Jul 30 04:51:37 ok, gps problem that IMO *should* be simple :-P Jul 30 04:52:29 my activity doesn't want gps updates. It wants the location on startup, then again if the user taps a button. I can't seem to get that to work... later calls always return the same location as the first one. Jul 30 04:52:46 (even though I go on telnet and change the location with geo fix) Jul 30 04:56:43 I'm having problems setting a custom title. It's not taking over the whole of the old grey default title bar. http://bit.ly/zWSxD describes the same problem from the forums. Anybody have experience with this ? Jul 30 05:02:13 This is a screen capture of the titlebar with grey peeking out from underneath http://bit.ly/9O6Xd Jul 30 05:20:14 Hi Again Jasta Jul 30 05:33:15 Hello Jul 30 05:33:37 Community Jul 30 05:35:19 Need definitively your help Please :( Jul 30 05:35:58 I am trying to play a .3gp file after my up & runing android built from source Jul 30 05:36:29 I get in some errors when trying to set the file path in the ApiDemo for testing the media player with that file that i pushed on the sdcard as /sdcard/dancing.3gp Jul 30 05:36:52 Thanks for your help/ideas Jul 30 05:37:15 W/System.err( 3974): java.io.IOException: setDataSourceFD failed.: status=0x80000000 Jul 30 05:38:38 Basically setDataSource is making mad :0( Jul 30 05:38:55 HOW CAN I DEBUG MORE DEPPLY ? Jul 30 05:40:22 Do you have any idea Pls ?? Jul 30 06:10:18 romainguy: hmm im setting anyDensity="true" but my bitmaps are still ugly Jul 30 06:10:32 yep Jul 30 06:10:40 because your bitmaps are not in the right density Jul 30 06:10:46 put them in drawable-hdpi Jul 30 06:11:01 im Bitmap.createBitmap()'ing these ones Jul 30 06:11:22 temporarily for that hacked cache stuff Jul 30 06:11:34 then you're not assigning them the right density Jul 30 06:11:42 check out View.buildDrawingCache() Jul 30 06:11:46 we recently fixed that though Jul 30 06:11:51 should work with a Donut ToT Jul 30 06:12:06 doh, i havent synced my home tree in forever Jul 30 06:12:13 * jsharkey gitwebs Jul 30 06:12:31 at the speed at which we develop that's not a good idea ) Jul 30 06:12:51 ...it would help if we pushed more often Jul 30 06:12:59 my home tree is public git Jul 30 06:13:22 ah Jul 30 06:13:24 then it's not fixed Jul 30 06:13:26 also: wtf? :) Jul 30 06:13:45 i dont compile at home, only use it for reference Jul 30 06:16:20 hi, is the source code for the built-in Messaging app available? if yes, can you point me what package should I check? thanks Jul 30 06:16:27 well crap i cant do anything with the sdk >:/ Jul 30 06:16:49 mharkus: http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=tree;h=refs/heads/cupcake;hb=cupcake Jul 30 06:17:41 thanks :) Jul 30 06:28:30 * ashitaka waves hello to jsharkey Jul 30 06:29:40 My custom title is not covering the grey title. http://bit.ly/9O6Xd What am I doing wrong ? Jul 30 07:29:45 hey sup all Jul 30 07:31:13 anyone here? id like to hear an experienced opinion abt how well my file scanner uses threads to run a service Jul 30 07:31:40 it'd be a tremendous help; i promised my boss i'd get it to him by today at 4:30p Jul 30 07:37:55 anyone? Jul 30 07:41:53 I think everyone's asleep Jul 30 07:43:48 are you suggesting no one of worth is awake? ;) Jul 30 07:44:18 hello everybody Jul 30 07:44:40 hey Jul 30 07:45:08 ludo, ashi; you guys familiar with threads and services? Jul 30 07:45:45 little, what do you do Jul 30 07:46:21 a file scanner where the scanning occurs on a new thread started by a service Jul 30 07:46:45 my design has three threads, and activity, and a service Jul 30 07:47:04 handlers to communicate interthread, and an aidl interface to communicate between activity and service Jul 30 07:47:21 ok and what is the problem Jul 30 07:48:19 wanna see foremost if it'll work, and next whether it's wasteful Jul 30 07:49:09 The activity spawns a new thread, which spawns a new service. the thread's there to loop and check for new progress updates to update the progress bar view Jul 30 07:50:05 All I know is that threads running in a spin loop will consume more battery Jul 30 07:50:07 the service.oncreate() creates a new thread A in turn creates a new thread B. A is a looper which checks if B updated the Handler to change the progress. B does the "bulk" of the filescanning Jul 30 07:50:29 thanks ash Jul 30 07:50:40 right now tho im trying to push out a prototype Jul 30 07:50:51 f all the battery optimizations Jul 30 07:51:23 Are you sure that file scanning must be permanent? Jul 30 07:52:02 hmm Jul 30 07:52:06 i'm not familiar with the permanent part Jul 30 07:52:17 where does permanent come into my design? Jul 30 07:52:21 is it the service? Jul 30 07:52:21 Are you see on source code how mediaprovider scan sdcard to keep music library away, it's best practice Jul 30 07:53:06 is it android source or apidemos Jul 30 07:53:41 src Jul 30 07:54:28 cool i'l get it thanks Jul 30 07:54:33 check with git and go to packages/apps/musics Jul 30 07:55:03 it's music player application Jul 30 07:55:53 i saw it in past and I saw scan method (in my remember) Jul 30 07:56:18 source always is best practices ;-) Jul 30 07:56:23 ahha thanks Jul 30 07:56:31 hey in a service, where does the bulk of the code usually go? Jul 30 07:56:34 in onCreate()? Jul 30 07:56:38 surely not. Jul 30 07:56:47 * _Auron_ can't wait to finish his game Jul 30 07:58:00 It's depend to the type of service, it's on OnBind and OnStart (Oncreate is for init as an Activity) Jul 30 07:58:42 montooner good luck I return to my works Jul 30 07:58:53 mkay thanks a bunch ludovic Jul 30 08:05:02 hmm.. anyone know how to customize the list element when the mode is single choice and custom layout is being used? Jul 30 08:19:19 (basically I'd like to make the text bold when the listview item is selected) anyone? Jul 30 10:06:19 roosmaa: you can customize the listitem view's with a custom adapter Jul 30 10:06:38 check out listview's setadapter method and baseadapter class Jul 30 10:07:46 so basically you can simply extend a baseadapter which maps your data to listview and also have your own views represent the items in the listview Jul 30 10:22:25 hi anyone about? Jul 30 10:23:01 madis: thanks, will keep it in mind:) Jul 30 10:42:36 * ashitaka waves to jomtones Jul 30 11:12:20 I've made a custom view, and want to inflate it from XML, so in my constructor I do: attrs.getAttributeResourceValue("android", "src", 0) to get the src attribute value from android:src="@drawable/something" Jul 30 11:12:34 is that correct? or am I doing this all wrong? :) Jul 30 11:13:05 I seem to be getting 0 back, even though the resource exists.. Jul 30 11:40:48 hi all, can anyone help me to call up preference manually ? Jul 30 11:41:14 rather than using onclick Jul 30 12:12:58 humm, johnnyzen, what do you mean? Jul 30 12:13:43 madis: hi, I am looking to launch a EditTextPreference manually rather than a onclick. Jul 30 12:14:14 when I mean manually, i mean to say, without using setOnPreferenceClickListener Jul 30 12:14:20 ah, ok Jul 30 12:14:29 you mean the dialog that pops up? Jul 30 12:14:39 yeah, I need the dialog to popup Jul 30 12:15:41 getting a bit confused, not sure if I need to use SharedPreferences or if I can use findPreference ? Jul 30 12:15:59 then something like showDialog ? Jul 30 12:17:12 hmm Jul 30 12:17:17 found this: http://developer.android.com/reference/android/preference/DialogPreference.html#showDialog%28android.os.Bundle%29 Jul 30 12:17:18 there actually is a showdialog Jul 30 12:17:23 indeed Jul 30 12:17:27 but it's protected :) Jul 30 12:17:30 but not sure how to use Jul 30 12:18:38 can't you fake it though? Jul 30 12:21:06 i.e. a performClick or something? Jul 30 12:22:12 ah ok, its private as well Jul 30 12:22:36 anyhoo, why do you wan't to do it? Jul 30 12:22:43 shouldn't you use a regular dialog instead? Jul 30 12:24:23 well was needing it to pop up if another pref is enabled. but I think I will think again about the logic. maybe to disable pref. unless EditTextPreference is not null ? Jul 30 12:28:04 basically I have a "Use a Pin Number" checkbox, if clicked and pin number not set, need to popup SetPinNumber EditTextPreference Jul 30 12:28:22 but maybe my logic is not so good here. Jul 30 12:28:56 Could just pop up a warning dialog saying it's not set? Jul 30 12:29:43 don't let them move to the next activity / do something else until it's !setPinNumber.getText().equals("") Jul 30 12:30:19 (I missed the start of this conversation so that may not be the right answer) Jul 30 12:33:22 martin: yes this could be a better option. My original thought was I could popup the "setPin" dialog if no pin set. Jul 30 12:33:40 but couldnt work out how to manually popup a pref. Jul 30 12:34:44 you would be able to check the contents of the preference in your SharedPreference (assuming they have the persistent element set to true) in the onPause() method of the preferenceactivity Jul 30 12:34:49 I think that pop-ups just aren't cool :) Jul 30 12:34:53 but consider; a pop-up asking to fill in a field when you're trying to exit would get annoying if you couldn't exit the activity without entering some data first... what if somebody got bored and wanted to exit Jul 30 12:34:58 nor is limiting the user into an activity Jul 30 12:35:21 if it were me I would be checking the contents when you actually use it, and if it doesn't exist, prompt the user to go fill it in (and open the preference activity for them) Jul 30 12:35:27 most sensible would be to check for both usepinnumber and pinnumber in the code where you actually use it Jul 30 12:35:34 :) Jul 30 12:36:33 <_Auron_> ....... uh, android market is *BROKEN* Jul 30 12:36:45 oh ? Jul 30 12:36:50 martin: yes I want to open the preference manually. do you know how to do this ? Jul 30 12:37:00 <_Auron_> not the app market but the android market that I, as a dev, need to login to Jul 30 12:37:14 I mean open the entire Activity, your entire settings thing Jul 30 12:37:19 <_Auron_> it keeps taking me to http://market.android.com/publish/signup Jul 30 12:37:33 then when they press back it will just take you to the Activity where you were trying to use it Jul 30 12:37:35 <_Auron_> I've already paid the dev fee (I paid on may 21st), and it won't let me use my own name because it says it's already taken Jul 30 12:38:15 martin: a ha, ok Jul 30 12:38:54 i think I will just disable the "use pin number" checkbox until the pin number is set. Jul 30 12:39:23 then no need for popups. what you reckon ? Jul 30 12:39:37 I would prefer to do like madis said above, check when you actually use it Jul 30 12:39:54 but you can do if your way by setting an OnPreferenceChangeListener to the EditText Jul 30 12:40:31 but be sure to make sure that it's enabled when the preferenceactivity loads if the EditText isn't empty (as you'll probably be setting it to disabled in the layout xml file) Jul 30 12:41:18 i.e. if the user returns to the PreferenceActivity and doesn't change the EditText's preference, the listener won't trigger and the checkbox won't be enabled Jul 30 12:43:23 is the market registration a one time fee? Jul 30 12:51:38 _Auron_: Try going to http://market.android.com/publish/Home Jul 30 12:52:41 _Auron_: If that doesn't work, make sure you're logged in with the Google Account that you paid the fee with. Jul 30 12:55:37 martin: yes one time fee Jul 30 12:57:17 <_Auron_> kroot: yeah I found out it was because I had registered with my alternate email Jul 30 12:57:22 <_Auron_> was about to go nuts :O Jul 30 12:57:54 <_Auron_> unless I hit a huge snag, my game will be published on saturday Jul 30 12:58:10 <_Auron_> and starting next week I'll begin on my next game Jul 30 12:58:19 Auron: cool, what sort of game is it ? Jul 30 12:59:16 <_Auron_> johnnyzen: action game sorta like Asteroids, with constant flurry of enemies on the screen. includes highscore list, gameplay stats, achievements, enemy gallery, and full sfx/music. everything is completely written from scratch, and I don't use the android UI at all for my menus Jul 30 12:59:53 an online high score list? Jul 30 13:00:13 I have a great idea for a game, but dont have the skills yet to do it. Jul 30 13:00:24 omg any ops around? Jul 30 13:00:35 why? Jul 30 13:00:55 this guy in #android is posting an entire sextext Jul 30 13:01:32 whats a sextext ? Jul 30 13:01:46 "did you mean: setText" ;) Jul 30 13:01:55 <_Auron_> heh Jul 30 13:01:56 lol Jul 30 13:02:03 nevermind, he just got K-Lined Jul 30 13:02:20 <_Auron_> martin___: not doing anything regarding online right now; I'd need a server to host the scores, and a way to prevent people from sending fake scores. don't want to deal with that (yet) Jul 30 13:02:56 <_Auron_> DJTachyon: yeah I requested help in #freenode and they were prompt, heh Jul 30 13:03:15 _Auron_, yes, I was going to say something to that effect :) Also you'd need to anticipate traffic volumes Jul 30 13:03:31 <_Auron_> indeed Jul 30 13:03:57 <_Auron_> but I'm going to start on my next game project as soon as next week, using the game engine I've developed. Jul 30 13:04:18 infact, what was that scoreboard app that let you save scores online? perhaps your game could use that and not need to worry about it :) Jul 30 13:04:29 I thought I read they have an API Jul 30 13:04:45 <_Auron_> well, perhaps in a future update, but not concerned right now. Jul 30 13:04:50 sure :) Jul 30 13:05:25 <_Auron_> I'm definitely not saying no, I do think it's a great idea. People love competition, especially if it's global. But I'd rather have a finished game that's released with feedback on the game itself first. Jul 30 13:05:34 so the JetPlayer is a midi interface? Jul 30 13:05:44 indeed, I would take the same approach Jul 30 13:08:56 <_Auron_> video I made from a few weeks ago (before I added in the menu and various other things) of Stroids: http://www.youtube.com/watch?v=rkEfztqx8Is Jul 30 13:09:06 <_Auron_> I should make a new one in the next few days. Jul 30 13:15:24 would anyone happen to know what intent (if any) is broadcast when a clam-shell style device gets flipped open? might even be like the g1 keyboard sliding out? Jul 30 13:16:53 _Auron_: What are the lines on the display? Jul 30 13:17:24 <_Auron_> kroot: a grid effect caused by the raidal gradiant objects of the background special effect Jul 30 13:17:29 <_Auron_> radial* Jul 30 13:18:22 <_Auron_> accidental effect that I decided to keep in. the bg effect (the white plasma effect when bullets pass over the screen) is an option that can be disabled in my options->graphics menu though Jul 30 13:19:22 <_Auron_> in the video the recording is really saturated so you can barely tell that there's bullets being fired. this is what it actually looks like: http://a.imagehost.org/0589/stroids_gameplay.png Jul 30 13:20:26 I take my openGL course next semester, so I will be interested to figure out how some of these things are done :) Jul 30 13:21:07 <_Auron_> once you wrap your mind around it, you'll find openGL is rather simple. the hard part is doing 3d math, vectors, shaders (if applicable/capable), etc Jul 30 13:21:32 hard part? you obviously meant fun part ;D Jul 30 13:21:38 <_Auron_> :P Jul 30 13:22:33 <_Auron_> the game engine I've developed simplified the use of my drawing and handling sprites/textures. a single call loads a texture and stores certain data for it. a different call sets UV data to the texture with the parameters set for a sprite, and a third call can draw that sprite. Jul 30 13:24:13 well, the logical side of things I doubt I'll have much trouble with once I understand how openGL works... it's the optimisations for android that I forsee sturggling with :D Jul 30 13:24:49 not that I have any particular idea in mind, but with the mindset "because I can" I shall strive to continue learning :D Jul 30 13:39:32 _Auron_ one suggestion from looking at the video, power ups? (+1 life, 10 seconds wider diameter plasma, things like that) Jul 30 13:39:54 with +1 life at perhaps 10k points Jul 30 13:40:33 ofcourse I'm not trying to delay your second project, mind Jul 30 13:41:49 <_Auron_> the plasma is not the actual bullets, it's just an special effect Jul 30 13:42:10 ah ok, wider spread bullets then :) Jul 30 13:43:33 <_Auron_> as for powerups I have a clock and a bomb planned (probably going to make them today, actually). the clock 'stops time', freezing all enemies for a few seconds. the bomb either explodes and creates a bunch of enemies, or if the player shoots it and destroys it, it explodes and creates a radial burst of bullets Jul 30 13:44:20 cool :) there are many possibilities, how about something that teleports you to a random location Jul 30 13:44:30 <_Auron_> and currently lifeups are given at 25k, 50k, and every 50k Jul 30 13:44:37 or, a bomb that implodes and sucks enemies in Jul 30 13:44:57 <_Auron_> a bomb that implodes and sucks enemies in would be somewhat of a ripoff from Geometry Wars, which is a large inspiration for Stroids Jul 30 13:45:12 ah, I have never played it Jul 30 13:45:50 hey guys ! Jul 30 13:46:08 <_Auron_> Geometry Wars, a really popular xbox live arcade game, has a black hole 'enemy' that, when hit, activates and starts pulling in enemies. its gravity grows as it gets bigger, and sucking in enemies makes it bigger. once it gets big enough it explodes and creates a ton of tiny enemies that fly directly at the player Jul 30 13:46:39 does android use the standard java sdk besides the android sdk ? i mean isnt it limited like java ME for example ? Jul 30 14:02:51 I need a bit of help to the soundpool and memory usage.. I load one mp3 file: sound.mp3 in my onCreate method. I have made two buttons, "play" and "stop" They more or less do as expected. Play, is set to play the sound in an infinite loop. Stop change the setLoop attribute to 0, so the sound will play to the end and then stop. But when I press the Play again I get a "not enough memory for AudioTrack " error in my log. Any ideas what I do wrong? Jul 30 14:04:14 do you need to reset() and prepare() the file? Jul 30 14:04:27 (I don't know, I just remember reading it here: http://developer.android.com/guide/topics/media/index.html ) Jul 30 14:06:37 okay interesting.. I will take a look but I kind of expected it wasn't necessary due to the name soundpool.. :) Jul 30 14:08:47 <_Auron_> er. take a look at this: http://osdir.com/ml/AndroidDevelopers/2009-06/msg03382.html Jul 30 14:09:28 <_Auron_> you're probably using too large of sounds. if you're trying to play a song, you don't want to use soundpool, you want to use mediaplayer. soundpool is meant for short sounds (sound effects) only Jul 30 14:09:36 <_Auron_> sorry, should have mentioned that earlier Jul 30 14:11:02 I see, this might start to make sense Jul 30 14:16:11 <_Auron_> basically the pool is meant for kids, not the fat man that sings. Jul 30 14:20:17 COME ON , NO COMMENTS ON MY ISSUE Jul 30 14:20:26 Thanks for the mental picture, it will be hard to forget that :) Jul 30 14:20:42 HELP OR SUGGESTION OR WHATEVER PLS ... Jul 30 14:22:10 <_Auron_> drac2000: ... ? Jul 30 14:22:40 _Auron Thanks Jul 30 14:22:49 Can you help please Jul 30 14:23:16 <_Auron_> with what? Jul 30 14:23:25 I haven't noticed a question in the two hours I've been here Jul 30 14:23:30 <_Auron_> Nor I. Jul 30 14:23:38 I have issue with the setDataSource when play video on ApiDemos Jul 30 14:23:52 I can send you the ioexception thrown Jul 30 14:25:21 <_Auron_> er, don't dcc chat me Jul 30 14:25:40 <_Auron_> unfortunately that's not something I know anything about, haven't messed with video Jul 30 14:25:55 Ok _Auroon Jul 30 14:26:11 <_Auron_> if you need to show a list of information though you can use pastebin.com or something similar and give a link to that, maybe someone else could help Jul 30 14:26:11 Thanks for your sconcern anyway Jul 30 14:26:15 drac2000: we're not paid to help you. don't get pissed off if no one does. Jul 30 14:26:44 <_Auron_> also you can try the android-developers google group and ask on there. may take a day or two but there's a lot of people that help on there Jul 30 14:26:47 if you have info you need to share, use a pastebin, not dcc send Jul 30 14:26:52 lov I know that, I appologize ... Jul 30 14:26:56 and just paste the url of the pastie in here Jul 30 14:27:12 I am also new to IRC channel Jul 30 14:27:16 So pls forgive me Jul 30 14:27:30 you might want to use /msg to talk to people privately, except that you really ought not do so w/o asking them Jul 30 14:27:47 it's kind of a faux pas to send people private messages out of the blue, and prevents other people from helping you as well because they can't see what you're writing Jul 30 14:28:13 faux pas, are you french speaking ? Jul 30 14:28:49 it's an english phrase too. Jul 30 14:29:13 So my english is really bad :-) Jul 30 14:30:13 move out of quebec Jul 30 14:31:33 No thanks I really like it Qc forever :-) Jul 30 14:32:48 I am trying to play a .3gp file after my up & runing android built from source Jul 30 14:34:22 http://pastebin.com/m53788952 Jul 30 14:35:23 drac2000: does your code work on a stock build? Jul 30 14:35:53 stock build you means prebuilt images? Jul 30 14:36:02 Doesn't work neither Jul 30 14:36:26 is it possible to have a call-like connection between two remote phones and send and receive data ? i mean, for example to make a game with two players in two different cities ? Jul 30 14:36:54 bulnana: SMS :D Jul 30 14:36:57 seriously though, yes, it is Jul 30 14:37:13 previously you were supposed to do it with google talk as the transport layer Jul 30 14:37:26 the problem i am facing to is that setDataSource api is failing complaining about the IOException while my file exists and is valid Jul 30 14:37:30 but I think if you can just use tcp/ip to get your info to each other that might work. Haven't investigated it on cell networks, though Jul 30 14:37:41 http://stevehanov.ca/blog/index.php?id=79 Jul 30 14:37:51 drac2000: you might want to poke into the android source to see what status 0x80000000 is Jul 30 14:38:15 I checked lov: Jul 30 14:38:17 it's probably in the c code part Jul 30 14:38:24 exactly there Jul 30 14:38:35 cause it uses native call to the setDataSource Jul 30 14:38:51 yes. Jul 30 14:38:59 the strange issue is that all audio files works just fine Jul 30 14:39:07 on my sdcard Jul 30 14:39:20 as .ogg for example Jul 30 14:39:45 yes, I'm sure it does. Jul 30 14:40:01 do you know which file this is in offhand? Jul 30 14:40:31 sorry lov: ?I didn't get your last point ?? Jul 30 14:40:54 which c file is status 0x80000000 error message sent Jul 30 14:41:41 Ah yes give me 30 sec Jul 30 14:43:43 actually, looking at the log a little closer, it seems to be trying to use ogg vorbis to open this. Jul 30 14:43:55 can you pastebin the code that you're using to try and play this file? Jul 30 14:46:40 lov : thanks Jul 30 14:46:53 i will post it right now Jul 30 14:47:21 for your question before : the c++ file is in the /frameworks/base/media/jni/android_media_MediaPlayer.cpp Jul 30 14:50:54 lov: here is the link Jul 30 14:51:02 http://pastebin.com/m6cd4bda8 Jul 30 14:51:29 Why is Toast and .makeText on seperate lines? :X Jul 30 14:51:48 also, not sure that's a valid path you're using for video Jul 30 14:52:03 you might also just be missing : Jul 30 14:52:15 you have sdcard//dancing.3gp, maybe you meant sdcard://dancing.3gp Jul 30 14:52:27 I tried all of them just to see Jul 30 14:52:35 hello. can someone send to me apppack.apk . I cant download it from the market... :( Jul 30 14:52:38 initially used /sdcard/dancing.3gp Jul 30 14:52:57 for the lines it was just my eclipse formatting sorry Jul 30 14:53:54 you can see my debugging code Jul 30 14:54:04 sysout just tosee if the file is there and is OK Jul 30 14:54:12 around line 109 Jul 30 14:54:15 thread question: what's the difference between starting a background thread to do some work or starting an async task? Jul 30 14:55:28 whaledawg: asynctask is a tool to make starting andusing those threads in the android context _much_ easier. Jul 30 14:55:40 in other words, much less error prone and requiring much less understanding of how threading works. Jul 30 14:55:47 it's also just damn convenient. Jul 30 14:56:03 lov: would you like to get my dancing.3gp file also ? Jul 30 14:56:08 Hi jasta Jul 30 14:57:14 thread question 2: If I use the post method on a runnable from the view, that will run in the UI thread, correct? Why would I want to do that instead of a background thread? Jul 30 14:59:15 you can't update views from any thread but the UI thread Jul 30 15:00:39 KNY is right, however there are other reasons you could want to run things on the UI thread. Jul 30 15:00:49 but won't that block the ui thread if it does something intensive? Jul 30 15:01:09 yes, but that's why you do the work in a separate thread and just post the results :) Jul 30 15:02:12 I don't understand the option, it seems like either you want a background thread or you would just make it a part of the program Jul 30 15:02:22 sharing the ui thread seems pointless Jul 30 15:02:43 drac2000: Did you try sdcard://dancing.3gp instead of sdcard//dancing.3gp? What format did you use for oggs? Jul 30 15:03:09 You realize that you can get a file reference to the sdcard, correct? You don't have to use a uri Jul 30 15:03:23 you can use sdcard:// as a URI? neat Jul 30 15:04:11 KNY: I don't really know. Drac is, but he's having issues :P Jul 30 15:04:19 drac2000: Environment.getExternalStorageDirectory() Jul 30 15:04:24 that will return the sdcard as a File Jul 30 15:05:53 lov: thanks means I nedd to do Environment.getExternalStorageDirectory() + "/dancing.3go" ? Jul 30 15:06:22 File myFile = new File(Environment.getStorageDirectory(), "dancing.3gp"); problably Jul 30 15:06:34 Please look at the javadocs for File before you complain something isn't working Jul 30 15:06:48 ok i will give it try right now Jul 30 15:06:55 thanks a lot Jul 30 15:58:31 how can i mount the internal flash of an galaxy? after usb plugin, ther will be only the sd-card visible Jul 30 16:01:19 you kind of don't. Jul 30 16:01:42 you should only be able to mount external memory, not internal, unless the galaxy has some custom firmware that lets youdo that Jul 30 16:01:48 you can always use adb to browse the internals Jul 30 16:04:27 the software on the phone, can it choose the place for writing data, or is it everytime the sd-card for dataspace? (sry for my bad english) Jul 30 16:05:56 yes, the software can choose where to place its data Jul 30 16:19:51 hey, is there a way to add more "desktops" to the phone? Jul 30 16:20:06 whaledawg: there are some aftermarket home apps Jul 30 16:20:45 whaledawg: yes, but only by using/making a custom launcher app - the default launcher is locked to 3 Jul 30 16:22:07 lov: I just setup correctly with Environment.getExternalStorageDirectory() as in http://pastebin.com/d240f4c4 Jul 30 16:22:38 still the same exception IOException Jul 30 16:26:46 s Jul 30 16:29:53 From within an :singleInstance Activity, I want to pick a Contact. However if I invoke startActivityForResult, the callback shows that it is cancelled immediately. Why? Jul 30 16:32:46 Are there any column naming conventions for databases? Jul 30 17:08:59 is "/sdcard" the sd-card, or the whole flash? because. _in_ /sdcard exist a dir with ne name sd, which i can mount on pc Jul 30 17:09:31 /sdcard is the sd-card Jul 30 17:10:47 when i mount /dev/sdb, i see only the content of /sdcard/sd and not /sdcard. Jul 30 17:15:54 hi all, anyone used addPreferencesFromResource with a "CustomDialogPref extends DialogPreference" ? I am having trouble Jul 30 17:16:13 it seems so that /sdcard is the card. but i can't acces to /sdcard, only /sdcard/sd Jul 30 17:16:58 johnnyzen, start with pastebin Jul 30 17:18:36 http://pastebin.com/m5ae76f56 - can anyone help with adding a custom dialogpreference ? Jul 30 17:20:44 but am unsure if I can add a custom pref to a pref hieracy created by addPreferencesFromResource Jul 30 17:21:16 hi KNY :) Jul 30 17:25:21 Is there a listener to listen for when a preference is saved ? Jul 30 17:31:47 why do you want to listen for when a preference is saved? Jul 30 17:36:28 whaledawg: hi, I want to listen for a saved preference to enable another prefernce if dialog pref is set Jul 30 17:37:33 romainguy: ping Jul 30 17:37:35 Basically I have two pref. - togglepin (checkbox) and setpin (EditTextPreference) - I want togglepin to be disabled until the user has chosen a pin Jul 30 17:38:14 and then enabled automatically after user clicks OK button on EditTextPreference Jul 30 17:38:57 OnPreferenceChangeListener - is the closest I can get, but this is triggered just before pref. is saved, so no good Jul 30 17:40:48 so my next angle is to create a custom dialogpref, where I can manage the OK button, but dont know how to add to Preference Screen where hieracy was created by XML Jul 30 17:41:42 *hierarchy Jul 30 17:41:58 johnnyzen: look at how the keyguard prefs ui works Jul 30 17:42:16 it's similar -- enable/disable checkbox isn't usable until a pattern has been set, etc. Jul 30 17:43:05 ah cool :) dont use the keyguard, so wouldnt have thought of that :) Jul 30 17:43:06 ctate: do you know what changed in frameworks/base/services/java/com/android/server/PackageManagerService.java per chance? Jul 30 17:43:44 the fix that I did for it doesn't 100% work like it did when I tested it on cupcake Jul 30 17:47:56 herriojr: you can't diff the cupcake vs donut versions? Jul 30 17:48:06 the Package Manager has gyrated a *lot* in donut Jul 30 17:48:36 ctate: I'd have to checkout another repo branch to diff, so I was asking really quick before I had to do that Jul 30 17:49:32 essentially, it now requires a reboot if a package with a shared user id is deleted, so that the other packages don't have their permissions removed (in memory, the permissions still exist in the xml, however) Jul 30 17:49:43 do you have donut checked out? do a git log on it Jul 30 17:49:49 yeah, ok Jul 30 17:49:50 use the source, Luke! Jul 30 17:50:25 I have the source, it's just the git/repo commands I get confused with more often ;) Jul 30 17:50:25 [more seriously: i myself haven't done the work on it, so i'd just be doing the same thing to find out what all changed. it's been through a lot for donut, though.] Jul 30 17:50:48 i hear ya Jul 30 17:50:52 and donut is what is in master at the moment Jul 30 17:50:58 yes Jul 30 17:50:59 just to verify Jul 30 17:51:00 ok Jul 30 17:51:10 well, at least mostly; i'm hazy on what exactly jbq has done so far Jul 30 17:51:17 but i think that's right Jul 30 17:51:33 * jbq sees his name, scrolls back Jul 30 17:51:51 these aren't the Androids you're looking for. Jul 30 17:52:09 to diff cupcake and donut: git diff korg/cupcake korg/donut Jul 30 17:52:49 oh yeah, in git, you have all of the variants present on your machine anyway, technically Jul 30 17:53:09 git log is useless in frameworks/base in donut as we (Google) haven't published the detailed change history, all you have is a huge sticky blob. Jul 30 17:53:15 oh doink Jul 30 17:53:26 where i can found tutorials about creating layouts ( user interface ) Jul 30 17:53:26 will we, or is that a case of "mess happened"? Jul 30 17:53:35 we will fix it. Jul 30 17:53:41 jbq: ok, cool, thanks, I'll diff them and see what has changed in PackageMangerService.java Jul 30 17:53:43 Petry_361: http://developer.android.com/ and the Dev Guide Jul 30 17:53:57 no other places? Jul 30 17:54:00 herriojr: you can make gif diff work on a single file instead of diffing the entire world. Jul 30 17:54:16 does onscroll not get called until your finger leaves the screen? Jul 30 17:55:31 ctate: the situation is that we have a change in our internal history that contains confidential information about an unannounced device. Once that device is announced, we can publish our detailed history. Jul 30 17:55:33 jbq: yeah, I was trying to do that, but it says path can't be found Jul 30 17:55:35 I don't think you can fix it, to be honest. Unless by fix you mean "future stuff will be better" Jul 30 17:55:54 jbq: I'm trying korg/cupcake/frameworks/base/services/java/com/android/server/PackageManagerService.java Jul 30 17:55:55 herriojr: do git branch -r Jul 30 17:56:02 herriojr: oh, that's wrong Jul 30 17:56:11 kroot: I'm just trying to diff them Jul 30 17:56:15 git korg/cupcake korg/donut -- services/java/com/android/server/PackageManagerService.java Jul 30 17:56:20 in the frameworks/base dir Jul 30 17:56:23 kroot: thx Jul 30 17:56:36 git diff I mean Jul 30 17:56:46 ==kroot Jul 30 17:56:59 iff kroot==jbq then explode Jul 30 17:57:25 kroot: that's an '"if" not an "iff" Jul 30 17:57:27 but yes :) Jul 30 17:57:40 ctate: PackageManagerService didn't seem to actually change all that much Jul 30 17:57:43 no, I'll never explode otherwise Jul 30 17:58:21 I imagine there are several other classes in orbit around the PackageManagerService that have changed Jul 30 17:58:43 jbq: have the PackageManagerService changes been committed to master for donut yet? Jul 30 17:58:53 herriojr: lots of individual changes i see in the log, but i guess the overall state of the file hasn't been altered that much Jul 30 17:59:12 hmm, I need to figure out what's going on and fix it Jul 30 17:59:21 master is up-to-date, i.e. everything that we contributed by Google to donut was merged into master. Jul 30 17:59:32 jqb: ok thanks, I was just checking Jul 30 17:59:39 (except in opencore, which is a special case) Jul 30 18:00:33 jbq: who exactly works on the code related to package permissions? Jul 30 18:01:10 ctate will correct me, but I think it's usually Suchi, Dianne, and ctate. Jul 30 18:01:16 Yes. Jul 30 18:01:35 Mostly suchi in the donut timeframe. Jul 30 18:01:41 ok Jul 30 18:02:06 since this is a big issue for me, I want to make sure it gets fixed before donut is pushed to devices Jul 30 18:02:24 (of course, if we had published the detailed history, you could get that from git blame, but [censored]) Jul 30 18:02:46 herriojr: this is the shared-uid / uninstall / permissions issue? Jul 30 18:03:20 ctate: well, when I submitted the patch to cupcake it worked fine, but in donut it requires a device reboot to pick up the proper permissions Jul 30 18:03:29 ctate: and yes to your question Jul 30 18:03:43 herriojr: the bug is still present in the version of donut that has been pushed? Jul 30 18:03:57 [remember that what's in external is rather behind what we have internally] Jul 30 18:04:05 the one that I checked out from master branch Jul 30 18:04:07 jbq: ln -s git-blame git-praise Jul 30 18:04:19 kroot: lol Jul 30 18:04:38 ctate: external donut is DRC08 if you need a point of reference. Jul 30 18:04:45 ok Jul 30 18:04:56 not as old as i'd feared, yay Jul 30 18:05:08 yeah, I'm repo sync with master Jul 30 18:05:35 ctate: so internally is this fixed in donut? Jul 30 18:05:49 i know we consider this to be a major bug we have to fix Jul 30 18:05:57 i haven't been doing the work so i'm not sure when it got fixed Jul 30 18:06:17 ctate: ok, well, I'll research it and post another fix for it Jul 30 18:06:33 my original fix got into donut, which is why it is only partially broken Jul 30 18:06:46 but as I said, it requires a reboot now Jul 30 18:06:57 aha Jul 30 18:07:11 priv msg? Jul 30 18:07:14 sure Jul 30 18:08:14 on the samsung galaxy, /sdcard is the internal flash and /sdcard/sd the plugged sd-card Jul 30 18:10:36 Oh, hey. Didn't realize I could change the manifest to point to my external projects Jul 30 18:11:00 Yup, that's a cool feature that we don't use in AOSP since we host everything on the same server. Jul 30 18:11:34 Yeah, should make it easier for people to test out my extensions. Jul 30 18:13:01 Does android have a way to show an application "splash screen" when the app's process is starting up? Jul 30 18:13:29 That doesn't sound like a great idea Jul 30 18:13:34 plently of different ways Jul 30 18:13:34 the app itself is responsible for such a thing Jul 30 18:14:19 I think the most common is a dialog with the "Loading pleas wait" or something and the spinning circle animation Jul 30 18:14:26 you probably want to do it when a specific activity starts, actually. Jul 30 18:14:35 cool, thanks all Jul 30 18:14:36 So does anyone have any tips for getting thumb interwork working for libraries compiled as ARM? Some of the data structures seem to be wacky when coming back to the thumb program, but they're all 32-bit aligned. Jul 30 18:19:13 /msg NickServ identify 12345 Jul 30 18:19:18 lol Jul 30 18:19:27 better change that... Jul 30 18:22:32 now its 123456 Jul 30 18:22:38 :D Jul 30 18:22:54 hah, I can't figure out how to change it Jul 30 18:23:52 tststs. don't say it ;) Jul 30 18:32:03 zhobbs, may on the hp of freenode you will find the descr. Jul 30 18:32:42 SiO2: found it Jul 30 18:39:58 how is it? i didn't found it Jul 30 18:45:18 msg NickServ SET PASSWORD Jul 30 18:53:57 Can somebody talk to me about service lifecycles? Jul 30 18:55:34 If my activity creates a service (to do my network stuff) Jul 30 18:55:35 r2w1: what do you need to know and have you looked at the documentation on it? Jul 30 18:55:39 and then I hit the back button Jul 30 18:55:46 and then open the activity again Jul 30 18:55:51 will it continue where it left off? Jul 30 18:56:21 it will never have stopped depending on how you started it Jul 30 18:56:29 are you using aidl or no? Jul 30 18:56:29 okay Jul 30 18:56:42 but will the activity's onCreate() be called? Jul 30 18:56:56 but it could potentially be killed in the background if it needs to be killed Jul 30 18:57:28 why wouldn't the activity's onCreate be called if you started up the activity after exiting? Jul 30 18:57:55 is there any advanced documentation on creating widgets out there? (ie utilizing onLayout, Dynamic/StaticLayout, etc) basically something much more richer than the docs provided by google? Jul 30 18:57:56 Okay Jul 30 18:58:12 so how do I get the information from the service? Jul 30 18:58:38 roosmaa: not that I know of, google it... Jul 30 18:58:56 r2w1: yes, it will call onCreate() again Jul 30 18:59:00 r2w1: you could either store it in a database, a file, use an aidl interface, whatever you want Jul 30 18:59:01 when you hit back, you quit the activity. Jul 30 18:59:30 herriojr: I've googled for it, haven't found anything useful yet, but thanks Jul 30 18:59:57 roosmaa: what exactly are you trying to do? I could probably help you out a bit Jul 30 19:00:07 ah, hrm. Jul 30 19:01:59 herriojr: I'm just exploring different ways to create custom widgets & everything about them :) nothing in particular Jul 30 19:02:23 roosmaa: just one thing to note, the only limitation is you can't take key input, only button presses Jul 30 19:02:44 so there's a limit on the views you can use Jul 30 19:04:18 roosmaa: FrameLayout, LinearLayout, RelativeLayout, AnalogClock, Button, Chronometer, ImageButton, ImageView, ProgressBar, and TextView are the only things you can use Jul 30 19:05:16 roosmaa: essentially any type of interaction between your widget's ui and its backend are done through intents Jul 30 19:05:31 herriojr: ok, I lost you.. what topic are we on? :) (key input, constrained views?) Jul 30 19:05:48 roosmaa: whatever topic you want to talk about :) Jul 30 19:06:05 I'm just listing some things and seeing if you want more information about any of it Jul 30 19:08:00 herriojr: and what are you talking about not being able to take key input, each widget (well.. * extends View) can get that if it has focus :/ Jul 30 19:10:02 roosmaa: nope, you can't find out if it has focus (but it does support image states for button clicking ,etc.) Jul 30 19:11:09 herriojr: are you by any chance talking about the home screen widgets? I'm talking about UI widgets in general Jul 30 19:11:22 oh, you're talking about custom views Jul 30 19:11:45 yeah, you can pretty much do anything with custom views Jul 30 19:12:00 if you want an example, you can look at their view implementations Jul 30 19:12:30 if you don't have the android source checked out, I can send you a couple of the files (like TextView or whatever one you want) Jul 30 19:13:18 been there done that :) still I'd prefer some nice document on the subject, I hate chasing down function refs and trying to figure out wtf they are supposed to do :) Jul 30 19:14:07 roosmaa: I *think* they did a presentation on custom views at Google IO if I remember correctly...you could probably find the video Jul 30 19:14:35 herriojr: that's worth checking out :) thanks Jul 30 19:39:31 hi all, i have a question, how can i put a border-bottom on a tablerow in my layout file ? Jul 30 19:40:00 like i have in my settings, i have a border with a gradient dark in the middle transparent at the outside Jul 30 19:47:21 So how is it that some apps (emulators, etc) seem to return instantly to where they left off Jul 30 19:47:31 when leaving and then reopening? Jul 30 19:50:39 Hi, I somehow end up with two progress dialogs, after changing orientation. This happens when a dialog was active while rotating. How can I make sure that I have only one dialog active? Jul 30 19:50:59 It seems that the Dialog does not get killed with the activity that produced it... Jul 30 19:51:44 balachmar, are you using managed dialogs? Jul 30 19:51:54 hi all, i have a question, how can i put a border-bottom on a tablerow in my layout file ? Jul 30 19:51:55 like i have in my settings, i have a border with a gradient dark in the middle transparent at the outside Jul 30 19:53:42 KNY: yes Jul 30 19:54:01 balachmar, I've noticed that it happens on the emulator but not on the device Jul 30 19:54:12 KNY: creating them with the onCreateDialog stuff. Jul 30 19:54:43 balachmar, yeah, that'd be a managed dialog :) Jul 30 19:55:00 KNY: Just wanted to be sure :) Jul 30 19:55:15 balachmar, does it happen on the device? Jul 30 19:55:31 KNY: And I am actually using removeDialog. Yes it happens on my ADP. Jul 30 19:55:39 balachmar, weird. Jul 30 19:56:27 KNY: Yeah, because I only create the dialog in onCreate. So it cannot be launched twice within the Activity itself. Jul 30 19:57:12 there's your problem Jul 30 19:57:29 if you have one showing and rotate, it will restore the old one, and then your onCreate is making another one Jul 30 19:57:58 KNY: Ooh, I could make my Activity a one at a time one... Jul 30 19:58:18 don't really know what that was called... Jul 30 19:58:29 singleInstance Jul 30 19:58:38 any1 have a answer to my question ? Jul 30 19:58:47 balachmar, I don't think that would do it Jul 30 19:59:09 balachmar, this is the root of your problem: ... and then your onCreate is making another [Dialog] Jul 30 20:00:12 Would it matter then, if I would move it to a method which is called from onCreate? (I guess not) Jul 30 20:01:28 balachmar, no Jul 30 20:01:50 KNY: thought so... Jul 30 20:02:10 balachmar, you can either pass a flag through your onSaveInstanceState() or set a static flag Jul 30 20:05:39 KNY: Could you explain that a bit? Jul 30 20:06:31 I already am passing some variable from which I can determine whether on not a dialog is open. Jul 30 20:06:42 balachmar, you can override onSaveInstanceState and set a variable in the bundle Jul 30 20:06:54 balachmar, and you're not opening a second one? Jul 30 20:09:03 Well, if I do that, I get an nullpointer exception when trying to update the status of the progressDialog. Jul 30 20:09:09 n8 Jul 30 20:12:15 anyone here tried that new SIMPLE thing? Jul 30 20:14:39 KNY: So I have declared it static: static ProgressDialog progressDialog; Jul 30 20:16:00 And I am closing it if done > 1; I pass done over by savestate. And when done < 2 I can reuse the Dialog, but that is not the case, I get a null pointer then Jul 30 20:45:43 Hi. I am trying to setup a FTP server that supports implicit TLS on android Jul 30 20:46:25 but the handshake process keeps failing Jul 30 20:47:10 did anyone here successfully build a ftp server with TLS support? Jul 30 20:55:12 hi Jul 30 20:56:12 siapi: the only problem with trying to do an ftp server is you can't guarantee that your service won't be killed unless an activity binds to it Jul 30 20:56:55 akashtc: hi Jul 30 20:57:03 i don't worry about whether my service gets killed or not Jul 30 20:57:28 siapi: ok, then ;) Jul 30 20:57:35 I just want the server to support TLS connection Jul 30 20:57:45 I am using apache ftp server library Jul 30 20:57:52 siapi: I can't really help much since I haven't dealt with ftp and tls protocols Jul 30 20:58:03 ok Jul 30 20:59:54 heho Jul 30 21:02:14 lev : Hello Jul 30 21:02:19 i have a strange problem: i create a serversocket on a java program and wait for a client to connect, i have a second program running that connects to the servers port and sends a message to it, it all runs well so far. but when i just copy and paste the "client" code (that wants to connect to the server) in an android activity, i get a "connection refused" exception, i already set the internet-permission in my manifest ... Jul 30 21:02:53 it both runs on the same machine, btw Jul 30 21:03:21 Has anyone experienced playing video on android recently ?? Jul 30 21:08:53 What is the best way to let an Activity and Service talk to each other? Like, the Service changes some values that should be reflected in the Activity's View. Jul 30 21:19:05 I having problems with frame animation Jul 30 21:19:10 I'm* Jul 30 21:20:34 anyone good with 2d graphics? Jul 30 21:21:27 mosquito ask the question if someone can he will answer Jul 30 21:21:56 mosquito there is a talk at google I/O about game progrmming ... did you check that you ? Jul 30 21:22:02 that out * Jul 30 21:22:21 the guy hasn't released the source code for it yet, though Jul 30 21:22:41 true Jul 30 21:22:41 or at least I could never find it Jul 30 21:22:56 herriojr: interrested in game devellopement ? Jul 30 21:23:02 Ill look at the video Jul 30 21:23:24 but really I just want to do something really simple, but its giving me a hard time.. Jul 30 21:23:35 what are you trying to do ? Jul 30 21:23:38 ThePhilosopher: that's why I started programming in High School in the first place, then I learned game programmers were treated/paid like crap, so I decided against that career path Jul 30 21:23:47 lol Jul 30 21:23:56 herriojr: very wise :P Jul 30 21:24:03 is that true ? look to me that they get good pay now ... Jul 30 21:24:08 at least in montreal Jul 30 21:24:18 Im just trying to animate an image Jul 30 21:24:27 using frame animation Jul 30 21:24:37 and what is the probleme ? Jul 30 21:24:45 its force closing me Jul 30 21:24:52 ThePhilosopher: well, you may be the exception more than the rule ;) Jul 30 21:25:09 ImageView pikminImage = (ImageView) findViewById(R.id.pikminView); Jul 30 21:25:09 pikminImage.setBackgroundResource(R.anim.pikmin_moves); Jul 30 21:25:16 really ? Jul 30 21:25:31 ThePhilosopher: but yes, I am interested in game programming to answer your question Jul 30 21:26:01 i am not a game programmer btw Jul 30 21:26:20 ThePhilosopher: oh I misread your statement above Jul 30 21:26:24 mosqiotp and? Jul 30 21:26:30 pikmin? xD Jul 30 21:26:32 its force quitting me Jul 30 21:26:36 yea xD Jul 30 21:26:44 its just a little animation test :O Jul 30 21:26:46 i am just an hobbiyist Jul 30 21:26:53 yay for tiny little... whatever they actually are.... Jul 30 21:26:58 mosquito sadly i cant help you on this Jul 30 21:27:14 mosquito: can we see your xml file? Jul 30 21:27:21 yes Jul 30 21:27:30 heres the image view one Jul 30 21:27:36 Jul 30 21:27:36 xmlns:android="http://schemas.android.com/apk/res/android" Jul 30 21:27:36 android:id="@+id/pikminView" /> Jul 30 21:27:46 mosquito: do it in pastebin.ca/ please Jul 30 21:27:51 ok Jul 30 21:27:56 not here, people will get mad ;) Jul 30 21:28:32 I mean your animation xml Jul 30 21:30:04 http://pastebin.com/d75029217 Jul 30 21:30:10 Sowwie :o Jul 30 21:30:16 yay pastebin Jul 30 21:30:42 oops Jul 30 21:30:50 I said.java but i meant .xml :X Jul 30 21:31:20 Im not even sure if this is the best way to make a little guy that moves around with an animation.. Jul 30 21:31:25 you never said setContentView() in onCreate Jul 30 21:31:40 Well Jul 30 21:31:48 Doesnt really matter for now Jul 30 21:31:48 so you won't see anything there Jul 30 21:31:50 ok Jul 30 21:32:00 what line does it die on? Jul 30 21:32:11 35 Jul 30 21:32:27 setBackgroundResource Jul 30 21:33:10 can I get the error dump? Jul 30 21:33:17 *stack dump Jul 30 21:33:26 How do i get that? Jul 30 21:33:30 in logcat Jul 30 21:33:44 it shows the stack dump whenever anything dies Jul 30 21:33:50 Where is logcat :|? Jul 30 21:33:57 are you using eclipse? Jul 30 21:33:59 yea Jul 30 21:34:26 Window->Show View->Other->Android->Logcat Jul 30 21:37:09 http://pastebin.com/d4c81c815 Jul 30 21:39:02 Anyways, is this the most effective way to animate a sprite with keystrokes? Jul 30 21:41:14 there's no code dude Jul 30 21:42:14 http://pastebin.com/d75029217 <--- My code, http://pastebin.com/d4c81c815 <--logcat Jul 30 21:43:15 I don't think it is finding the view, hence the null pointer exception Jul 30 21:43:42 especially since you didn't do setContentView() Jul 30 21:43:48 and you're calling findViewById() Jul 30 21:43:58 it is always going to return null Jul 30 21:44:19 mosquito, have you gone through the LunarLander demo? Jul 30 21:45:08 mosquito: you probably want to get your view from getLayoutInflater().inflate(R.layout.pikmin_moves.xml); Jul 30 21:45:16 I would but I cant understand all of it Jul 30 21:45:35 @herriojr ok Jul 30 21:46:25 please don't @tweet on irc Jul 30 21:46:32 lmao Jul 30 21:46:41 oops O_o Jul 30 21:49:28 herriojr: what would be the viewgroup arguement for infalte Jul 30 21:51:24 mosquito, wait, you didn't go through a tutorial because you didn't understand it? and then you just decided to dive in and make your own anyway? Jul 30 21:52:13 no, I decided to break up the tutorial into tiny parts otherwise its overwhelming Jul 30 21:52:36 For example I just want to start with animating an image rather than getting confused but other parts of the tutorial Jul 30 21:52:45 by* Jul 30 21:54:40 mosquito: null Jul 30 21:54:59 mosquito: read the docs on each call, they'll tell you what to put Jul 30 21:58:09 crabs Jul 30 22:04:14 crabs? Did you get them again birgerb? Jul 30 22:04:21 ;) Jul 30 22:10:59 yeah, lots of crabs ;) Jul 30 22:24:22 lol hes huge xD Jul 30 22:37:58 ok, q.. how can i somehow figure out what cursor is passed into my changeCursor method of my adapter? Jul 30 22:38:46 they are all wrapped in this anonymous CursorWrapperInner class of the ContentResolver Jul 30 22:38:49 hehe, google humor: http://www.google.com/search?q=recursion Jul 30 22:39:02 herriojr, so I figured out the animation was for the wholescreen, anyway to animate just the imageview without setting it as the background? Jul 30 22:39:12 jasta: hehe, nice one Jul 30 22:39:25 lol Jul 30 22:44:28 hi - does anyone know if i can get hold of the armadillo roll tech demo app source code Jul 30 22:56:20 .. Jul 30 22:57:34 jbq: hey, uhm, you guys merged in a development/ide/eclipse/.classpath that makes no sense Jul 30 22:57:41 jbq: it has entries for vendor/google stuff Jul 30 22:57:46 and some other weird stuff Jul 30 22:58:15 jasta: ok, lemme see Jul 30 22:58:16 > hi - does anyone know if i can get hold of the armadillo roll tech demo app source code Jul 30 22:59:19 somebody recommended me a book for android which documented heavily about game development - can anyone tell me the author and title Jul 30 23:00:32 I know nothing about eclipse classpaths - what specific entries are causing issues? Jul 30 23:08:31 jbq: vendor/google ones :) Jul 30 23:08:32 there are two Jul 30 23:09:41 You mean, google-framework and googlelogin-client? Jul 30 23:09:53 (if not, please pm me) Jul 30 23:36:22 whast wrong ith this http://pastebin.com/m78e032d1 Jul 30 23:36:25 eclipse says 3 errors Jul 30 23:36:30 all saying moissing attribute name Jul 30 23:37:00 try a clean Jul 30 23:37:57 not help Jul 30 23:38:14 in the node, the attribute is not "class" anymore, but "android:name" Jul 30 23:38:23 this was changed in 1.0 I think. is this an old project? Jul 30 23:39:01 samething for and , the attribute is not android:value anymore, but android:name Jul 30 23:42:47 yeah its an old proj Jul 30 23:46:51 this is still complaining Jul 30 23:48:00 AndyArmstrong1, do you code by trial and error? Jul 30 23:48:13 this is an example i found online Jul 30 23:48:23 doesn't mean it's right Jul 30 23:48:28 yes i know Jul 30 23:48:31 but i dont know whats wrong with it Jul 30 23:48:36 says its missing attribute name Jul 30 23:48:41 right, because you are Jul 30 23:48:42 but i have that attribute in there Jul 30 23:48:45 Jul 30 23:48:51 not in the android namespace Jul 30 23:49:02 .... Jul 30 23:49:43 compare it against a hello world example until you see the problem Jul 30 23:53:05 well thanks KNY Jul 30 23:53:23 figure it out? Jul 30 23:54:17 yep Jul 30 23:54:20 argh wtf is this [2009-07-31 00:53:46 - 3dTunnel] Conversion to Dalvik format failed with error 1 Jul 30 23:54:33 cannot get this open gl example running at all Jul 30 23:54:51 [2009-07-31 00:53:46 - 3dTunnel] no classfiles specified Jul 30 23:59:20 AndyArmstrong1: try to edit one of the java files and save it to trigger a new build, that should fix it Jul 30 23:59:55 nope Jul 30 23:59:56 still 2009-07-31 00:59:50 - 3dTunnel] no classfiles specified Jul 30 23:59:56 [2009-07-31 00:59:50 - 3dTunnel] Conversion to Dalvik format failed with error 1 Jul 31 00:01:14 ok try this: close the project (right click, close), then reopen it and clean it (Project > clean) Jul 31 00:01:43 Eclipse is seriously annoying sometimes and usually this helps Jul 31 00:16:37 xavd still no work! Jul 31 00:16:38 jeez Jul 31 00:18:05 ahaa fond it Jul 31 00:18:14 was some shitty mistakes the previous devs made Jul 31 00:18:21 left unincluded libs in place etc Jul 31 00:22:24 does anyone have any working fairly simple game source code which uses opengl Jul 31 00:22:27 for the android Jul 31 00:34:31 hi all, when a app is updated via. the market, is the database deleted ? Jul 31 00:35:10 *would the data on the existing database on the app get deleted ? Jul 31 00:36:02 only if onupgrade is called Jul 31 00:36:09 by changing the databse version number Jul 31 00:36:10 i presume Jul 31 00:36:26 johnnyzen, no, the database is upgraded (data is not lost) Jul 31 00:36:41 even if there changes to the table ? Jul 31 00:36:52 usually no, android lets the db migration to the developers :( Jul 31 00:37:16 johnnyzen, have you gone through the Notepad tutorial? it's explained there Jul 31 00:39:25 thanks, will have a butchers Jul 31 00:48:06 KNY: where is it explained in the notepad tutorial ? Jul 31 00:57:16 can anyone suggest to me a good open gl tutorial Jul 31 00:57:22 so i could make something simple like a paint application Jul 31 00:57:32 whch wuld be compatible with android Jul 31 00:58:01 cos im presuming i cannot use jogl Jul 31 00:58:03 etc Jul 31 01:03:37 .,., Jul 31 01:23:01 Hi, all. I'm writing an app that lets you split an audio file into sub-sections, so that you can play just those subsections, for choreography or practicing instruments to. Right now I'm using a MediaPlayer, but MediaPlayer doesn't let you speed up or slow down the speed at which the track plays. Both AudioTrack and SoundPool do, in different ways, but they don't let you scan the track, and SoundPool doesn't have events (such a Jul 31 01:23:01 s onCompletionListener). Any suggestions? Jul 31 02:02:29 Hey everyone, ive been working frame animation here: http://developer.android.com/guide/topics/graphics/2d-graphics.html and I was wondering is the imageView SUPPOSED to take up the wholescreen? Jul 31 02:25:35 mosquito: By default any View will take up the whole screen. Jul 31 02:25:48 Or size of the parent, anyway. I think that's the case. I'd have to check the documentation to be sure, but you can do that. Jul 31 02:29:51 Well I put wrap_content but it didnt do anything Jul 31 02:42:52 I'm currently playing with HttpClient 4.0 apis. With regard to cookies, my understanding is that Android creates a cookie store for each HttpClient that is created but not shut down. Is that correct ? If using that one HttpClient, I make connections to 5 sites (which sends back a cookie), those cookies will be saved to the cookie store. If I now visit one of the site again, does it send up all the 5 cookies or just the one c Jul 31 02:50:23 <_Spyrorocks> Does anyone here have an opinion on the phonegap framework? Jul 31 02:52:12 hello good ppl **** ENDING LOGGING AT Fri Jul 31 02:59:57 2009