**** BEGIN LOGGING AT Tue Dec 02 02:59:57 2008 Dec 02 03:42:24 do ListViews automatically scroll? Dec 02 03:42:42 oh, found it. Dang, they do Dec 02 12:39:48 for a network app (take for an example an irc client) that uses a service for the networking, where would you store your data that is temporarily to the current connection? for example channels joined, nicklist etc. would you store that in the service? or pass it around different activities, store/restore if user pauses the activity? Dec 02 12:40:35 service seems the cleanest.. as he also knows when to forget things (if connection is closed) etc.. am i on the right track? ;) Dec 02 13:02:34 hi Dec 02 13:04:11 hi Dec 02 13:04:17 hi Dec 02 13:04:24 high Dec 02 13:05:59 put your body... next to mine... and dream on... Dec 02 13:06:39 anyone try the market view intent? Dec 02 13:06:48 lately Dec 02 13:07:26 final String target = "market://" + searchString { Dec 02 13:07:27 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(target)); Dec 02 13:07:27 context.startActivity(intent); Dec 02 13:10:40 that looks funny Dec 02 13:10:50 it used to work Dec 02 13:11:01 but now it died recently Dec 02 13:11:09 someone was in #android asking about something similar yesterday Dec 02 13:11:12 i forgot who Dec 02 13:11:26 i think his name was 'blau' Dec 02 13:11:36 lol no Dec 02 13:11:55 14:47 is this intent no longer valid? "market://details?id={your_app_id}" Dec 02 13:11:59 that one? Dec 02 13:12:09 yes! Dec 02 13:12:37 any ideas about that Dec 02 13:12:55 If it's not documented anywhere, I wouldn't count on it to stay the same forever. Now, it's possible to ask the package manager whether there's a handler for a given intent, so you can make your UI adapt dynamically. Dec 02 13:13:18 i thought i read about that though Dec 02 13:13:22 like in an official google doc Dec 02 13:13:32 giving suggestions for checking for new versions Dec 02 13:13:56 It's probably not in the SDK docs, because that would only exist on Google-enabled Android devices, and not all devices will be Google-enabled. Dec 02 13:15:32 hmm Dec 02 14:10:25 hey Dec 02 14:10:29 who wants to join my project Dec 02 14:10:45 i havent had much time since the semester was nearing an end Dec 02 14:10:52 but now all i have left is finals so its slowing down Dec 02 14:11:07 http://code.google.com/p/tunedroid Dec 02 14:11:20 cool Dec 02 14:11:29 i wish i could direct people to code for me for free Dec 02 14:11:40 lol Dec 02 14:11:43 not coding with me Dec 02 14:11:45 more a mentor Dec 02 14:11:48 im really newb Dec 02 14:12:00 but i have a decent open source java tuner to work from Dec 02 14:12:07 but i need help working around no javax.sound Dec 02 14:14:37 http://groups.google.com/group/tunedroid/browse_thread/thread/264c210ddfe3f16c Dec 02 14:14:40 thats where i am at Dec 02 14:16:37 i have too many great programs im working on Dec 02 14:17:35 theres got to be someone that plays guitar Dec 02 14:17:44 that would be willing to help Dec 02 14:18:55 i have a guitar somewhere Dec 02 14:19:04 i watched school of rock, and then wanted to play guitar Dec 02 14:19:06 lol Dec 02 14:19:09 lol Dec 02 15:01:12 anyone know how to send a txt message to an email address Dec 02 15:01:28 the messaging app supports it, but SmsManager.sendText doesnt seem to Dec 02 16:27:45 i have a view that gets children added dynamically but as soon as it should provide scrolling support it doesn't. do i need to send some notification to that view if i add an element? Dec 02 16:44:27 eldenz: Dec 02 16:44:28 no Dec 02 16:44:39 your layout might just be wrong. can you show us? Dec 02 16:45:21 i'll try to extract the necessary information Dec 02 16:46:53 http://gist.github.com/31166 Dec 02 16:47:01 editor.xml is the main view Dec 02 16:47:27 the last element @+id/list is where i add several list_row.xml Dec 02 16:48:06 ahh, you didnt tell me you were adding list elements. Dec 02 16:48:58 if you add list elements to your adapter, you must call notifyDataSetChanged() Dec 02 16:50:29 hmm, i don't have an adapter for this... if you click on the button it rebuilds the list, removing all childviews of R.id.list and then adding them again from an ArrayList Dec 02 16:50:46 *wrong* :) Dec 02 16:51:05 aaah, i should use an ArrayAdapter Dec 02 16:51:21 first of all, you should use a ListView, not a LinearLayout Dec 02 16:51:50 if you wanted to continue to use LinearLayout, you'd need a wrapping ScrollView as well to make it scroll Dec 02 16:52:14 but yo udefinitely don't want to do that. ListView is well optimized for scrolling, a LinearLayout is not Dec 02 16:53:11 im optimized for scrolling Dec 02 16:53:18 ;) Dec 02 16:53:24 okay, will change to ListView+ArrayAdapter, thanks Dec 02 17:07:57 mmmmh! if i want the EditText above the list to be part of the scrolling window.. i can't do it with a ListView right? Dec 02 17:08:39 i then would do it like you suggested and embed the whole thing in a ScrollView i guess Dec 02 17:08:40 eldenz: use a header view Dec 02 17:08:53 or a footer view, whicever Dec 02 17:10:16 : D Dec 02 17:10:21 there is a solution for everything :) Dec 02 17:15:00 nice Dec 02 17:15:24 eldenz: before you ask, you can also remove the divider between each row, or even add your own custom one if you'd like Dec 02 17:18:43 yeah, i'm already using a customview.. :) Dec 02 17:24:22 jasta, before you answer.... ;) some EditText in e.g. the Contacts app have a label behind its contents, how do you do that? Dec 02 17:24:37 i tried figuring it out from their source but didn't really see anything somewhere.. Dec 02 17:25:45 aw i'm stupid Dec 02 17:25:47 android:hint Dec 02 17:30:51 anyone got an unpatched rc29/rc30? i need a copy of /proc/config.gz ("adb pull /proc/config.gz config.gz" will work w/o root) Dec 02 17:44:06 hm, before i implement some weird TextWatcher thing: my listview provided by an arrayadapter contains EditText on each (custom-)row. but the values entered in those are (obviously) not written back. what's the correct way to couple this? Dec 02 17:44:36 eldenz: hint Dec 02 18:05:42 huh.. as soon as I set a color to my Paint, it won't paint anything (two bitmaps and one path) anymore :/ as soon as I comment out paint.setColor(0xF00); everything works (the color does not really matter here) Dec 02 18:05:48 what am I doing wrong? :P Dec 02 18:06:05 if I don't set it, it draws the path as a black line Dec 02 18:06:54 bah, crappy connection, did i miss something? Dec 02 18:09:55 oh, dumb me, should use the full argb format there :) Dec 02 18:21:47 ok, found a solution (w/o a ListView which i think is better anyway for the enduser as UP did select the whole header instead the items in it) Dec 02 18:36:08 tauno: because you set a translucent color :) Dec 02 18:36:12 er transparent Dec 02 20:01:44 If I make a change to a built-in app in the android open source code, how do I just recompile that particular app? Dec 02 20:02:11 mmm path/to/the/app Dec 02 20:02:22 I tried doing make packages/apps/AlarmClock (using alarmClock) as an example but it complains there is nothing to be done Dec 02 20:02:25 if you test it in the emulator you can sync it like thus: Dec 02 20:02:27 adb remount Dec 02 20:02:29 adb sync Dec 02 20:02:46 famast: mmm packages/apps/AlarmClock Dec 02 20:03:08 (you can add snod at the end to rebuild the system image with the modified app too, mmm packages/apps/AlarmClock snod) Dec 02 20:03:14 ok the mmm thing Dec 02 20:03:20 Where is that? Dec 02 20:03:36 did you source build/envsetup.sh? Dec 02 20:03:50 because I've tried doing mmm path/to/theapp before, but I get a "command not found" Dec 02 20:04:09 ./envsetup gave me a permission denied Dec 02 20:04:26 you have to type: . build/envsetup.sh Dec 02 20:04:36 (there's a single dot then a space then build/envsetup.sh) Dec 02 20:05:02 ah my linux is terrible, let me try that Dec 02 20:05:09 there is some meaning behind the dot then the space isn't there Dec 02 20:05:37 ok Dec 02 20:05:39 "." is a bash shortcut for "source" Dec 02 20:05:40 i did that Dec 02 20:05:43 it didn't say anything Dec 02 20:06:02 mmm works though now woo Dec 02 20:06:03 it's not supposed to :) Dec 02 20:06:05 but now mmm works Dec 02 20:06:13 yes indeed thank you Dec 02 20:06:28 so what exactly is mmm and how does it differ from make Dec 02 20:06:48 mmm is a funny name Dec 02 20:06:56 I was told "if you need to ask, use make". Dec 02 20:07:11 haha Dec 02 20:07:45 we have three make commands on Android: Dec 02 20:07:50 m, which is the same as make Dec 02 20:08:04 but it runs make for the entire project Dec 02 20:08:16 mm, which runs make for the current directory (an Android.mk must be present) Dec 02 20:08:23 and mmm which runs make against the specified directory Dec 02 20:08:38 so mmm packages/apps/AlarmClock is more or less the same as cd packages/apps/AlarmClock && mm Dec 02 20:09:03 ah very helpful thanks! Dec 02 20:09:18 will there be a mmmm? :) Dec 02 20:09:31 when I see your mother tonight there will be Dec 02 20:09:44 oh geez Dec 02 20:09:54 :D Dec 02 20:11:17 famast: if you want to run the modified app on a G1 you will need to change its package name (you can ask jasta on #android for a script that does it for you) Dec 02 20:11:57 ok thank you for the tip. I'll stick with the emulator for today Dec 02 20:12:37 * vol needs to investigate doing this to build some things Dec 02 20:26:40 anyone know off hand if you can receive the vol up/down buttons on the side of the phone via onKeyDown? Dec 02 20:26:52 the AlarmClock app needs to snooze when you press those... Dec 02 20:28:13 zhobbs: i've noticed if you return true in onKeyDown then the native volume control will not be displayed, so you might be able too Dec 02 20:28:42 jt436: ahh, nice...if that's the case then I bet you can Dec 02 20:29:01 zhobbs: yea connectbot picks them up for font size Dec 02 20:29:28 bah i dont need +o Dec 02 20:30:15 I'll take it Dec 02 20:30:36 there is a KEYCODE_VOLUME_DOWN member in KeyEvent Dec 02 20:30:42 (and up of course) Dec 02 20:30:47 so seems like its catchable Dec 02 20:30:49 ConnectBot catches it. Dec 02 20:30:50 nice Dec 02 20:31:02 AlarmClock needs it for snooze Dec 02 20:31:05 however, it does still make the "beep" sound if your ringer is loud Dec 02 20:31:07 indeed! Dec 02 20:31:16 snooze away Dec 02 20:31:18 I don't want to have to look at the screen to hit a tiny button to snooze Dec 02 20:31:22 even though you hide the volume overlay by returning true Dec 02 20:31:33 interesting Dec 02 20:31:46 jsharkey: well you aren't actually changing the volume with it when you return true right? Dec 02 20:31:47 the entire screen should be a touch target for snooze, and you have to unlock pattern to turn off or something Dec 02 20:32:05 zhobbs: nope, not touching volume, but it still beeps :/ Dec 02 20:32:16 hmm, interesting Dec 02 20:50:56 just ran across a comment "// more adc last minute hacking" Dec 02 20:52:50 zhobbs: :) Dec 02 20:56:08 When I try to install my self-signed app I get several problems and it won't install Dec 02 20:56:23 It sometimes asks for all permissions and sometimes none Dec 02 20:56:28 any suggestions? Dec 02 20:56:45 <_zippy> hm... Dec 02 20:56:50 <_zippy> how are you installing it? Dec 02 20:56:52 <_zippy> with adb? Dec 02 20:57:18 no, I host it on my site and download it via browser to my physical device Dec 02 20:57:40 The Eclipse-signed version installs just fine Dec 02 20:57:53 are you uploading the eclipse-signed version? Dec 02 20:57:56 oh, no, you're not :P Dec 02 20:59:00 The self-signed should install just like the Eclipse version though right? Dec 02 20:59:54 yeah, it should work just the same Dec 02 21:00:02 It's not tho =S Dec 02 21:00:20 it's a known bug when you install apks from the web Dec 02 21:00:47 Ah ok, so it should work fine from the app store? Dec 02 21:00:56 romainguy, are you a google dev? jw. Dec 02 21:01:20 yes Dec 02 21:01:43 good to know Dec 02 21:01:45 thanks Dec 02 21:01:48 rumor has it romainguy made android single handedly on a weekend Dec 02 21:01:54 lol Dec 02 21:02:00 s/weekend/drunken bender/ Dec 02 21:02:10 how else could he know so much? Dec 02 21:04:46 how can you install apps via usb then? Dec 02 21:07:09 also, does the bug apply to the Eclipse-signed version? Dec 02 21:07:25 nope Dec 02 21:07:30 just to installs from the web Dec 02 21:08:17 so I can expect a bug if I install the Eclipse version from the web? Dec 02 21:08:55 there's no "eclipse" version of an .apk Dec 02 21:09:19 if you install an apk from the web, there are problems with the security permissions it asks for Dec 02 21:09:19 i meant the eclipse-signed apk, instead of a self-signed apk Dec 02 21:09:26 ok Dec 02 21:09:31 if you install an apk from Eclipse or with the SDK directly, there's no such issue Dec 02 21:21:20 fadden: http://jasta.dyndns.org/android/convert-namespace.pl Dec 02 21:21:55 some modification is rquird :) Dec 02 21:21:58 required* Dec 02 21:23:59 Super rad. Dec 02 21:24:10 gdb is catching SIGTRAP on pthread Dec 02 21:24:22 or rather _thread_created_hook Dec 02 21:24:27 which I really don't want to catch, at all Dec 02 21:24:29 thanks guys :D Dec 02 22:06:36 if you're doing a MediaPlayer.prepareAsync() and decide you want to change the datasource before it's actually prepared, what do you need to do? Dec 02 22:06:57 lol Dec 02 22:07:00 *explode* :) Dec 02 22:07:05 hehe Dec 02 22:07:09 here, check this out Dec 02 22:08:54 http://code.google.com/p/five/source/browse/trunk/android-client/src/org/devtcg/five/music/util/streaming/StreamMediaPlayer.java Dec 02 22:09:02 this class works around quite a few broken mediaplayer issues Dec 02 22:09:20 see around line 132... Dec 02 22:09:55 this works around issue 957, which is what youre describing. you'll get IllegalStateException erroneously Dec 02 22:10:07 hehe Dec 02 22:10:08 which i transparently check for and correct in my wrapper Dec 02 22:10:23 nice Dec 02 22:10:36 no chance for infinite loop? Dec 02 22:10:38 my wrapper also works around issue 959 Dec 02 22:10:56 no because i dont catch the exception twice. Dec 02 22:11:06 if it throws it again, it'll throw it to the original caller Dec 02 22:11:35 on 142 don't you call it again? Dec 02 22:11:54 yes, but i'm not catching the exception again Dec 02 22:12:02 on 142 it should be super.setDataSource() Dec 02 22:12:15 oh, yes. that is a mistake. it should be :) Dec 02 22:12:19 :) Dec 02 22:12:31 good find :) Dec 02 22:12:57 regardless, in practice it does not do that of course Dec 02 22:13:03 right Dec 02 22:13:04 because resetting it does actually fix that particular issue Dec 02 22:14:45 looks like a good workaround Dec 02 22:15:15 as i said i also work around other stuff here as well Dec 02 22:15:34 for instance, (new MediaPlayer()).reset() will block forever. Dec 02 22:15:55 which of course can happen because i instantiate in service onCreate, and reset/release in onDestroy Dec 02 22:16:08 I need that streaming functionality also Dec 02 22:16:13 so if the service starts (because someone binds to it), but never plays anything and unbinds, then of course, the thread locks up Dec 02 22:16:32 do note, however, that this code is protected by the GPL Dec 02 22:18:36 yep, I know Dec 02 23:36:46 can i emulate MMS? Dec 03 00:29:25 Hi all Dec 03 00:29:34 can we some how use the android.R.string.alphabet Resource ? Dec 03 00:29:49 hi plusminus Dec 03 00:29:57 Its in: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=res/values/strings.xml Dec 03 00:30:00 like the website/forum Dec 03 00:30:05 thx :) Dec 03 00:36:31 anddev? Dec 03 00:36:41 yes Dec 03 00:37:03 plusminus_: yea it's good. you guys need a flagship high res introductory screencast though. Dec 03 00:37:51 I currently don't have time to do so, because of AndNAvc Dec 03 00:37:53 AndNav Dec 03 00:38:06 whats that Dec 03 00:38:07 oh Dec 03 00:38:30 yea, andnav looks hawt. Dec 03 00:46:01 i need an android app that goes through my music albums and downloads albumart! Dec 03 00:49:15 or some bash/perl script Dec 03 01:00:17 eldenz: there are plenty of tools to do that, i'm sure. Dec 03 01:00:25 have you looked? Dec 03 01:01:57 no not yet ;) just jumped into my mind... currently looking and think i've found one that does it Dec 03 01:05:48 by the way, my app does this as well :) Dec 03 01:05:59 ah! i knew i've seen that mentioned somewhere Dec 03 01:06:01 it doesnt write to the original mp3s, but it doesnt need to: it gets your album artwork from last.fm Dec 03 01:07:00 yeah i hate that anyway... embedding artwork in mp3s ;) tztz Dec 03 01:09:20 i can't wait till i can test your next build of five ;) Dec 03 01:09:55 will there be scrobbling & flag-as-loved support? Dec 03 01:15:05 eventually i mean.. not in the next release :) Dec 03 01:21:51 yes Dec 03 01:22:08 scrobbling used to be in there i just took it out during the PlaylistService redesign. itll go back in soon. Dec 03 01:23:56 can i manipulate/process an audio stream as it's being recorded? Dec 03 01:24:14 or do i have to stop and release first? **** ENDING LOGGING AT Wed Dec 03 02:59:56 2008