**** BEGIN LOGGING AT Tue Dec 09 02:59:57 2008 Dec 09 04:34:26 anyone know the activity in android.webkit for "Current Windows" and how I can bind it with AnyCut? Dec 09 05:07:36 hmm, been scouring for the last half hour, cant seem to find a documented activity or even a documented method to call that activity. Dec 09 06:01:46 has anyone here used openintent and might be able to lend me a hand? Dec 09 06:02:00 I'm trying to simulate the accelerometer on the emulator and I'm failing Dec 09 06:02:46 or maybe just answer a general question... after startActivity is called, once that intent is finished, how does one properly escape it if no option is provided by the intent? Dec 09 06:02:53 Just use the back arrow button? Dec 09 06:04:01 anyone here alive? Dec 09 07:38:54 I use AlertDialog.Builder to create a new dialog and I use a multi line EditText inside it (like the API demo example that uses EditText for username and password API demos -> App -> Dialog -> Text entry dialog). The problem is that if you enter some lines, the EditText won't fit inside the dialog and the bottom of it disappears beneath the buttons. Dec 09 07:39:14 just use the API demo - the same thing happens there too.. just press enter a couple of times Dec 09 07:40:07 I haven't figured out how to fix it so the user would be able to enter longer text. eg add some scrolling or something to it so it won't just disappear Dec 09 07:41:28 the docs say: "The TextView class also takes care of its own scrolling, so does not require a ScrollView" and since EditText is a subclass of TextView, it should aslo provide it's own scrolling? How? It does not work out of the box Dec 09 07:41:48 maybe set maxheight? Dec 09 07:44:20 I'll try it Dec 09 07:45:37 tried first just putting the EditText inside a ScrollView and this works :) Dec 09 08:25:26 maxHeight also works but sinc the height is not know during build I have to resort to the easier solution of usin a ScrollView Dec 09 12:33:10 12-09 07:30:51.121: ERROR/AndroidRuntime(7630): Caused by: android.database.StaleDataException: This cursor has changed, you must call requery() Dec 09 12:33:10 does that look familiar? Dec 09 13:22:41 you are operating on a stale query :) Dec 09 13:23:11 yeah i found out what the cause was Dec 09 13:23:23 i went through all my code and added cursor.close to all my cursors Dec 09 13:23:32 that i missed and i added one before i read the data oops Dec 09 13:23:38 and i forgot i did that Dec 09 13:24:35 :) Dec 09 14:50:53 hi, is there a low-level android development channel? Dec 09 14:51:41 low level as in... Dec 09 14:52:05 there's a mailing list Dec 09 14:54:34 there's #android when jbq is around Dec 09 14:54:44 lol Dec 09 15:41:11 Is the code in the android git repo the code running on the emulator? Dec 09 15:41:20 or is a later branch thereof? Dec 09 15:59:45 duncanfoo: roughly, yes. Dec 09 16:00:02 what's up jasta Dec 09 16:00:05 not much Dec 09 16:00:07 ok, cool Dec 09 16:00:48 really tired this morning :) Dec 09 16:01:18 i think my current job is punishing me for going on a job interview. they made me show up at 7:30 and it turns out they didnt need me Dec 09 16:01:36 so that was cute :) Dec 09 16:04:16 lol Dec 09 16:04:23 :) Dec 09 16:04:24 haha Dec 09 16:05:03 in what way is it "roughly" :) Dec 09 16:05:19 what I'm precisely interested in is whether the harmony stuff is the actual code Dec 09 16:05:33 ie: org.apache.harmony.nio.internal.SocketChannelImpl ... Dec 09 16:06:44 I'm getting: Dec 09 16:06:49 12-09 15:56:43.743: WARN/System.err(3813): java.net.SocketException: The nonblocking operation would block Dec 09 16:06:51 12-09 15:56:43.743: WARN/System.err(3813): at org.apache.harmony.luni.platform.OSNetworkSystem.writeSocketImpl(Native Method) Dec 09 16:06:52 12-09 15:56:43.753: WARN/System.err(3813): at org.apache.harmony.luni.platform.OSNetworkSystem.write(OSNetworkSystem.java:99) Dec 09 16:06:54 12-09 15:56:43.753: WARN/System.err(3813): at org.apache.harmony.nio.internal.SocketChannelImpl.writeImpl(SocketChannelImpl.java:563) Dec 09 16:06:55 12-09 15:56:43.753: WARN/System.err(3813): at org.apache.harmony.nio.internal.SocketChannelImpl.write(SocketChannelImpl.java:493) Dec 09 16:07:18 which in theory should be impossible, and was fixed https://issues.apache.org/jira/browse/HARMONY-3631 Dec 09 16:07:21 and I can see the fix in the source Dec 09 16:07:40 so either I'm not running that code, or the bug wasn't fixed, or this is a new bug Dec 09 16:10:49 the underlying native code does not appear to match the harmony fix :( Dec 09 17:22:27 can we please keep the bot off this channel at least Dec 09 17:32:10 michaelnovakjr, It's gone altogether Dec 09 17:32:21 ah Dec 09 17:32:23 I didn't realize even info-type bots were a problem Dec 09 17:32:34 But I've now been made to understand that in #android Dec 09 17:33:09 brocktice: why did you think everyone was arguing about it? Dec 09 17:33:45 Disconnect, again, I haven't been sitting here watching the whole time, I just thought it was over public logging and infobot. Dec 09 17:34:30 I wouldn't have said anything here but I saw michaelnovakjr's comment about the bot. Dec 09 17:34:50 it started that way. (hence the poorly-named 'android' - now renamed 'droidbot' - that didn't do logging.) then michaelnovakjr started foaming for no good (or at least no explained) reason and it got banned also. Dec 09 17:34:52 it would be nice to keep on topic at least in here Dec 09 17:35:02 lots of things would be nice. Dec 09 17:35:32 its been 90 minutes since anything was said, and the administration of these 2 channels is on topic for those channels.. so.. Dec 09 18:54:41 anyone pushing any data to the phone? guess all the gtalk/xmpp stuff is gone, so to push you have to have a service running or something? Dec 09 18:57:22 zhobbs: i haven't done it yet, but i would think some sort of connection would have to remain idle Dec 09 18:58:39 for what Dec 09 18:59:26 blau-MikeDG: pushing data/notification to the phone Dec 09 18:59:46 cant you just send a sms? Dec 09 19:00:06 and use that as a trigger? Dec 09 19:01:57 no way to tell the sms app to ignore it though Dec 09 19:02:05 so you get spam in your sms Dec 09 19:02:34 cant delete sms from the contentprovider? Dec 09 19:03:27 wasn't aware there was a content provider for sms Dec 09 19:03:47 i think its undocumented Dec 09 19:04:23 hmm, I'll take a look at the SMS app Dec 09 19:04:44 ive been going nutty with it lately now that i discovered it :) Dec 09 19:04:45 lol Dec 09 19:05:34 really? Dec 09 19:05:37 what's it called? Dec 09 19:08:01 been using Cursor c = getContentResolver().query(Uri.parse("content://sms"), new String[]{"address","person","date","body","type"}, null, null, "thread_id, date"); Dec 09 19:08:18 what permission do you have to request? Dec 09 19:08:20 Dec 09 19:08:24 sms read permission Dec 09 19:08:29 and write if you plan to write to it Dec 09 19:08:39 //ROOT_OF_ANDROID_SOURCE_CODE/packages/providers/TelephonyProvider/SmsProvide r.java Dec 09 19:08:49 thats where it is in the code if you need to look into it Dec 09 19:08:55 awesome, thanks Dec 09 19:09:07 subject to change of course since it may be undocumented Dec 09 19:09:18 theres some mms stuff available too Dec 09 19:09:27 and i think content://mms-sms gets you both combined Dec 09 19:21:57 has anyone had luck using gnu classpath to help "port" 3rd party code to android? I'm looking at adding Smack xmpp code to my project...and wondering how well would it work before I go fixing everything up? Dec 09 19:22:23 What is the easiest way to achieve the following. I got some service sitting around waiting for incoming calls and like to every n minutes something done. How do I achieve that ? Dec 09 19:23:02 AlarmManager? Dec 09 19:23:20 ahh yeah Dec 09 19:23:29 thats what I have searched for :) Dec 09 19:23:31 thanks Dec 09 19:23:34 np Dec 09 19:35:40 or, anyone successfully use smack to do xmpp that the android API can't hack? Dec 09 19:43:48 mmarker: I have heard of people using xmpp via smack Dec 09 19:44:02 there's been lots of posts about it on android-developers I think Dec 09 19:52:36 mmarker: istr someone already got smack working under android Dec 09 19:52:55 Can someone tell me if the email address or website show up in the market ? (I know that the developer name does) Dec 09 20:04:29 i dont believe the email does, but you can click a button to email the dev so it would be accessable Dec 09 20:06:46 Well yeah if it his hidden there would be no problem for me Dec 09 20:07:31 yea, i've seen the messages...but most of what I've seen is "it's close? but doesn't work". When I try, i keep getting dalvik vm errors. Dec 09 20:09:55 error 22. one of the DNS classes bombs out the vm, if I'm reading the log right. Dec 09 20:10:28 mmarker: pastebin the logs, including a reasonably amount of history Dec 09 20:11:22 I'll try. Dec 09 20:25:36 I think I figured it out. Missing class. http://pastebin.com/d5a42f951 Dec 09 20:26:34 Shouldn't I get an error from dx or something else before I get that far? Dec 09 20:26:55 The class was visible at compile time, but not found at runtime. Dec 09 20:27:15 It wants javax.naming.directory.InitialDirContext Dec 09 20:27:57 I'm going to try to make that failure mode a little easier to decipher. Dec 09 20:28:47 yup. I need to rename that class, or do --core-library trickery at compile time... Dec 09 20:29:01 I don't see that class defined in the Android jars. Dec 09 20:29:10 ItLs not Dec 09 20:29:38 Is it defined by your app? How should it get loaded? Dec 09 20:29:41 which is all the more weird. using eclipse and the android plugin on my osx box Dec 09 20:34:01 Not defined by the app. its used in a static method in smack. Dec 09 20:34:36 http://tinyurl.com/5ha9pd Dec 09 20:35:41 Did you build your own Smack lib and include it? Dec 09 20:36:45 that I did. I think I should set the bootpath to android.jar? Dec 09 20:37:27 Don't mess with BOOTCLASSPATH. That way lies madness. Dec 09 20:37:47 There's a copy of smack in gtalkservice.apk (use "dexdump" or "dexlist" to examine it). Dec 09 20:37:59 Curiously, it does not include DNSUtil. Dec 09 20:38:29 And it's not on git? correct? Dec 09 20:38:46 The source is not public, AFAIK. Dec 09 20:39:25 However, I think you can uses-library that to get at the smack implementation. Dec 09 20:39:40 Unfortunately I'm straying a bit from what I know well. Dec 09 20:39:49 I'll take a look, but since I want MUC support, I doubt I can get that from gtalk Dec 09 20:40:19 Building your own smack may be the right answer then; you'll just have to patch around the missing bits. Dec 09 20:41:57 Guess so. Probably import what I need as src. Dec 09 23:13:30 how would I go about forcing my application to display in landscape mode without regard to the keyboard? Dec 09 23:14:11 jammr: you can set that in the manifest for the activity where you want that. I don't remember the exact syntax. Dec 09 23:14:41 jammr: there are two parameters you likely want... Dec 09 23:14:50 screenOrientation=landscape and uhm... Dec 09 23:14:52 whats the other one? :) Dec 09 23:15:01 portrait? sensor? Dec 09 23:15:29 configChanges=orientation Dec 09 23:15:43 the screenOrientation says to always open in landscape Dec 09 23:16:00 jbq, jasta: Thank you :) Dec 09 23:16:04 the configChanges line declares that your ap will handle configuration changes for the specified parameters, so that android should not do it for you Dec 09 23:19:13 Nice SonyEricsson joining the OHA :) Dec 09 23:35:43 yeah i saw that, thats pretty interesting Dec 10 00:11:21 anyone know what happened to com.android.net.http.RequestQueue and others? all I see in the latest .jar is SslCertificate Dec 10 00:11:51 if it's com.android, it's not a supported public API, it's an implementation detail. Dec 10 00:13:18 I see more than a couple of sites/tutorials online demonstrating RequestQueue to make http requests easily (which is what I'm trying to do)... but that class doesn't seem to exist Dec 10 00:13:50 and the bulk of the tutorials I see use this method... which is why it's frustrating >_< Dec 10 00:14:00 Those might be unmaintained sites that put those together before 1.0 (when there wasn't a process in place to properly define the public API) Dec 10 00:14:06 ^^ Dec 10 00:14:12 the tutorials may be from when the api was somewhat different Dec 10 00:14:17 ah Dec 10 00:14:45 well I think I have it working now with URLConnection, but that is just for get, and I don't know how to do post yet... Dec 10 00:14:54 but I have another problem as well Dec 10 00:15:59 it seems that commands I send to the UI (like setText()) are being called out of order Dec 10 00:16:22 for example I set a label as "Loading..." and then make an http request, and then clear that label once it's done Dec 10 00:16:43 but the "Loading" part seems to get executed immediately before the one that clears it, instead of before the http request Dec 10 00:16:46 so you never see it Dec 10 00:17:09 and I'm not sure why Dec 10 00:22:04 any ideas? Dec 10 00:43:29 It is sooo nice to see all the nice comments from the guys outside rating my app in the market :D Dec 10 00:50:18 anno^da_: What's your app? Dec 10 00:50:34 Missed Call Dec 10 00:50:49 Just a simple tool to get notifications for missed calls Dec 10 00:51:05 My first try in the market. :) Dec 10 00:51:11 http://dl.getdropbox.com/u/287197/missed_call.jpg Dec 10 00:51:53 Cool! Where's that a screenshot from? Dec 10 00:54:48 It is from the market Dec 10 00:54:56 my account Dec 10 00:56:11 oh nice *install* Dec 10 00:56:26 *rate* Dec 10 00:57:14 haha just a veeeeery simple app but that missing notification pissed me off :) Dec 10 00:57:40 well, don't sell yourself short :p Dec 10 00:57:56 the wifi/bluetooth toggle is what i'd call veeeery simple Dec 10 00:58:22 Well ok it was 1 night and 1 day of work :) Dec 10 00:58:32 But I have learnt a lot. Dec 10 00:58:53 About the BroadcastReceivers, ContentObserver etc :) Dec 10 01:42:08 anyone good with XmlPullParser ? Dec 10 01:45:28 anyone know of a way to grab current windows from browser? Dec 10 01:46:26 or call the "Current Windows" activity? Dec 10 02:08:08 anyone? Dec 10 02:14:52 ... **** ENDING LOGGING AT Wed Dec 10 02:59:57 2008