**** BEGIN LOGGING AT Mon Jan 12 02:59:57 2009 Jan 12 03:39:30 How do I launch an activity from another app? ie, if the activity has the intent-filter action "android.intent.action.MAIN", how do I instantiate the Intent to use in startActivity() ? Jan 12 04:01:09 nm, figured it out. Apparently I needed to add the package name in both the package name parameter as well as the classname param Jan 12 04:09:41 I can't get my Socket to flush it's outputstream until the socket is closed... is that normal? Jan 12 04:18:39 by flush you mean for the other end of the connection to see your data? Jan 12 04:30:13 ziyourenxiang: I have a serversocket setup to constantly be reading the inputstream, I wrote a program in java to send strings to it and it picks those up just fine. I suppose in answer to your question, no. I'm flushing the buffered writer attached to the client socket Jan 12 04:32:32 That works in the other program I wrote for my desktop. i can't get it to work for android though. It just wants to send after the socket is shut down Jan 12 04:37:51 do you mean you have a buffered writer stream stacked onto your socket stream, and that android only sends data over the network when you close the socket? have you tried not using the buffered writer, but just write to the socket directly? Jan 12 04:40:03 Yes, that is what I mean. And no, i haven't tried that. how would I get that to work? Jan 12 04:40:16 buffered writer + socket = bad Jan 12 04:40:38 just for android or for java in general? Jan 12 04:41:54 Would I just use an OutputStreamWriter? Or is there a better approach to it? Jan 12 04:42:49 ITechJunkie: in general Jan 12 04:43:23 zinx: whys that? Jan 12 04:43:25 you're doing something like "wr = BufWriter(new OutWriter(sock.getOutSteam()))"? Jan 12 04:43:42 then writing to wr? Jan 12 04:43:47 ziyourenxiang: yeah Jan 12 04:43:55 ITechJunkie: because if you buffer the output, it won't be sent until the buffer is full or you close it (as you've seen first-hand) Jan 12 04:43:58 try writing to the thing the socket.getOuStream() returns Jan 12 04:44:42 zinx: but i was flushing the bufferedwriter. Should I have flushed the outputstream too? Or would it just not work? Jan 12 04:44:50 ziyourenxiang: i'm trying that now... Jan 12 04:48:37 does cupcake have ad-hoc wifi? Jan 12 04:49:46 still doing the same thing. Thanks for you help guys but i've gotta get some sleep Jan 12 04:50:23 I'll pick back up on this when I'm more alert Jan 12 05:52:49 hi Jan 12 05:53:33 i was wondering if it would be possible to create some sort of listener for incoming text messages from certain contacts Jan 12 09:37:31 * muthu_ is away: Gone away for now Jan 12 09:45:11 * muthu_ is back. Jan 12 14:17:46 Has anyone ever attached a file to an email within their program? I've got mine sending emails but I can't figure out how to select a file within my program that is added as an attachment to the email Jan 12 14:18:08 I know that effing gmail only lets you attach pictures Jan 12 14:18:19 really? Jan 12 14:18:32 that seems a little rediculous Jan 12 14:20:13 yeah >:E Jan 12 14:20:25 the response is of course "we're aware and working on it" Jan 12 14:20:28 * vol makes wanking motion Jan 12 14:20:33 well thats nice haha Jan 12 14:20:43 So the only option would be an alternate email client? Jan 12 14:20:53 sadly, seems like Jan 12 14:21:00 hmm, probably not an optoin Jan 12 14:21:03 option Jan 12 14:21:05 well, thanks anyway :) Jan 12 14:21:22 I dunno, write a teeny SMTP lib Jan 12 14:21:40 yeah, was trying to avoid that Jan 12 14:21:56 I'm sure there is something out there for that already anyway Jan 12 14:24:09 hmm, I just downloaded a program "voice recorder" from the market that lets you send attachments of the recordings you make through gmail Jan 12 14:24:27 probably names it .wav.jpg Jan 12 14:24:37 or maybe there's an intent I don't know about :O Jan 12 14:24:47 its .3gp never seen that before Jan 12 14:25:42 hmm, its actually a zip with the 3gp file inside Jan 12 14:25:47 I think I'll have to look at this more Jan 12 14:25:51 I've seen 3gp before Jan 12 14:26:06 wish I knew what format type that is :\ Jan 12 14:26:37 same Jan 12 14:27:28 hey you wouldn't happen to be using R2 would you? I'm wondering if the email app is included in the emulator Jan 12 14:30:57 (d2) Jan 12 14:31:02 gmail or email Jan 12 14:31:18 only r1 sorry Jan 12 14:31:26 k, thanks Jan 12 15:57:32 guys, how do i add a drawable to the R File. I did copy the file into the res/drawable folder. But R File didn't changed? Jan 12 15:58:18 what's the filename? Jan 12 15:58:32 click the project, press F5 Jan 12 15:58:32 logo.png? matter? Jan 12 15:58:53 vol, i did... but still no line added in class drawable Jan 12 15:59:01 check eclipse output, there might be errors Jan 12 15:59:06 ... in class drawable? Jan 12 15:59:07 kk Jan 12 15:59:14 vol, yes. darwable Jan 12 15:59:18 you mean R.drawable Jan 12 15:59:22 yes Jan 12 15:59:23 sry Jan 12 15:59:25 hmm Jan 12 15:59:41 ahh Jan 12 15:59:43 got it... Jan 12 15:59:52 what was the problem? Jan 12 16:00:02 was because there still was an xml error in a layout! .. then it won't refresh R file Jan 12 16:00:11 aye Jan 12 16:00:11 thanks vol andrewoid Jan 12 16:00:16 yw Jan 12 16:01:16 another one: is there no chance for a padding in "LinearLayout" (XML)? Jan 12 16:01:48 what makes you say that? Jan 12 16:02:11 is not working... Jan 12 16:02:18 it's android:paddingLeft Jan 12 16:02:51 grep padding http://code.google.com/android/reference/android/widget/LinearLayout.html Jan 12 16:02:54 : ) Jan 12 16:05:11 aha... dpi was not allows Jan 12 16:05:27 paddingLeft="10px" works ... paddingLeft="10dpi" won't! Jan 12 16:05:41 that's because dpi stands for dots per inch Jan 12 16:06:02 it would be like saying you are 5 feet per second tall Jan 12 16:07:17 unasi7: because the unit is dip not dpi Jan 12 16:07:42 vol, cept that dpi is a measurement of size based on scaling, and feet per second is measurement of speed. Jan 12 16:08:03 ok, incomplete analogy Jan 12 16:08:11 romainguy, oops .. yes my fault Jan 12 16:09:54 vol, you could have said: bottlecaps per meter, or shoes per yard, or organutans per hectare. Jan 12 16:10:12 bugs per windshield Jan 12 16:10:18 s/windshield/programmer/ Jan 12 16:11:56 well, windshield and programmer are also arbitrary sizes. the analogy should be ... ${item.with.arbitrary.size} per ${item.of.known.size} Jan 12 16:13:14 furlongs per hogshead Jan 12 17:40:20 http://weblogs.java.net/blog/invalidname/archive/2005/06/getting_the_fre.html Jan 12 17:40:30 Is there a way to find available disk space on android? Jan 12 17:40:37 this seems like a pretty significant thing to need Jan 12 17:42:50 did you read the comments in your link? Jan 12 17:45:09 did you? Jan 12 17:45:12 those are java 6 Jan 12 17:45:17 and not in the android API I'm looking at Jan 12 17:45:32 ok, was just trying to help ;) Jan 12 19:21:09 I've been trying all day to add a file created by my program as an attachment to be emailed, and have gotten far enough that it is listed as an attachment in the gmail interface, but when it sends the email it has no attachment Jan 12 19:21:17 Does anyone have any ideas/experience with this? Jan 12 19:22:37 are your files images? I think gmail might have some explicit restrictions to only attach images. Jan 12 19:23:01 no, they are csv files, but I've sent them through another program Jan 12 19:23:09 Open Intents file manager Jan 12 19:23:35 I'd try doing the same with image/jpeg, to see if that works. Jan 12 19:23:52 I've read about that restriction too, but now I've found two programs that can send files that aren't images Jan 12 19:23:53 k Jan 12 19:24:18 that's not a system restriction, just withing the gmail app. Jan 12 19:24:29 yup, both apps open up the gmail app to send the email Jan 12 19:24:51 it actually looks identical to what I've been doing, just their attachments actually get sent :P Jan 12 19:24:54 ah, I see what you mean. I don't have enough experience with that code to guide you further, sorry. Jan 12 19:24:59 its ok, thanks anyway Jan 12 19:25:27 good luck figuring it out. Jan 12 19:25:34 thanks :) Jan 12 21:16:31 so I have a string array defined in res/arrays.xml, and now I want to bind it to my list view Jan 12 21:17:02 how do I do that? I've tried the code from List1.java and I've tried android:entries="@arrays/my-array-name", but it won't cooperate :( Jan 12 21:52:17 is this the right way to use a TabHost? http://paste.ifies.org/230 i'm getting errors http://paste.ifies.org/231 Jan 12 22:09:09 nm, fixed it **** ENDING LOGGING AT Tue Jan 13 02:59:57 2009