**** BEGIN LOGGING AT Wed Dec 03 02:59:56 2008 Dec 03 03:25:24 Hi all. I'm somewhat new to Java and I'm probably spoiled my too much Python. I intend to make a ListActivity to mirror some collection/list/array/something of objects. The objects will come and go. My first attempt, to make an array and "setListAdapter(new ArrayAdapter<...>(...)" means (I think) that I can't append, insert, delete those items. *sigh* Okay, so what's the best way? Dec 03 03:52:57 To update an adapter use the notifyDataSetChanged after you have changed the data in the array. Dec 03 04:40:29 Are market uploads currently stalling out for anyone else? Dec 03 04:41:20 Clicking on publish...does nothing Dec 03 09:16:33 anyone familiar with ItemizedOverlay ? Dec 03 09:18:00 I extended the class and implemented createItem() and size() methods but it throws NPE at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java:582) Dec 03 09:18:15 did I miss osmething else that I have to implement? Dec 03 10:10:21 ok, solved it Dec 03 10:20:05 ItemizedOverlay draws the pin shadows always - how can I disable it? Dec 03 12:04:28 good morning Dec 03 12:20:51 any one hear Dec 03 12:20:55 i got a java question Dec 03 12:22:08 i guess its kind of an android question too Dec 03 12:22:26 hmm, i have aphonestatelistener that, im assuming is killed by android Dec 03 12:22:43 what happens to the static fields? Dec 03 12:22:50 are they reset to null/ Dec 03 12:22:58 the next time the class comes into play? Dec 03 13:51:30 is there an android equivalent of Audio.CaptureThread? Dec 03 13:56:51 hi mpardo Dec 03 13:56:56 did you ever solve ur market problem Dec 03 13:57:48 nope Dec 03 13:58:00 i thought i had the same issue Dec 03 13:58:17 but turns out it i was leaving the part after market:// blank Dec 03 13:58:18 lol Dec 03 13:58:28 ah Dec 03 13:58:50 i can get market://search?q= to work, just not market://details?id= Dec 03 13:59:46 yeah i was using search, bu ti messed something up where it was blank, lol Dec 03 14:00:12 makes sense Dec 03 14:01:21 i wish google would update their docs, or i could find updated docs Dec 03 14:01:43 i'm trying the MediaRecorder example and I'm having to fix everything Dec 03 16:11:35 can answer me what's wrong with this http://groups.google.com/group/android-developers/browse_thread/thread/674899edfe55b9fe/ee7fecfb1eec249f?lnk=gst&q=mina+ramses#ee7fecfb1eec249f Dec 03 16:15:48 the problem is that you've never learned about the period Dec 03 16:15:50 this is the period Dec 03 16:15:51 . Dec 03 16:15:59 ^ that there Dec 03 16:15:59 it says "Hey, I finished a sentance!" Dec 03 16:16:14 and lets you know that it's time to take a breath before speaking again Dec 03 16:16:46 vol, you are talking to me ? Dec 03 16:16:50 yes Dec 03 16:17:05 have you tried stepping through with a debugger? Dec 03 16:17:05 vol, so what do you mean by a period ? Dec 03 16:17:11 I tried the code below in eclipse using android sdk 1.0, but always can't Dec 03 16:17:11 get the Dec 03 16:17:11 application to run correctly neither got any of the testing statements in Dec 03 16:17:12 the logCat, i used to set appServer as the default activity and tried to run Dec 03 16:17:17 using Run configurations, i'm asking what's wrong and if i have to run the Dec 03 16:17:17 appClient first or before appServer, if not then what's wrong ?? also i'm Dec 03 16:17:17 asking if i have to run each of appServer and appClient on single emulator Dec 03 16:17:22 instance Dec 03 16:17:22 and how to do that, and what if i want to run each of them on a different Dec 03 16:17:22 machine, i know that somehow i need some pointer to a basic concept guide Dec 03 16:17:23 on running android application , please if you don't mind to help me Dec 03 16:17:27 what's missing from that wall of text? Dec 03 16:17:30 (hint: it's punctuation) Dec 03 16:17:44 pedantry aside Dec 03 16:17:49 have you tried stepping through with the debugger? Dec 03 16:17:54 are you doing this via the eclipse plugin, or something else? Dec 03 16:18:13 vol, eclipse plugin Dec 03 16:18:43 i have a question about MediaRecorder Dec 03 16:18:55 ok, have you tried starting the client in debug mode, instead of just running? Dec 03 16:19:08 mpardo: you could always ask it? Dec 03 16:19:14 i would LIKE to do manipulation of incoming audio, but i don't think that's possible Dec 03 16:19:31 so i've been trying to chunk it up into 250ms files Dec 03 16:19:38 vol, no but the point whenever i run the application by eclipse run configurations , always the appServer starts first Dec 03 16:19:54 is this the right approach? Dec 03 16:20:33 f00bar80: interesting. How is your manifest set up? Dec 03 16:20:46 actually Dec 03 16:20:48 I just realized Dec 03 16:20:52 these are both activities Dec 03 16:21:02 are you planning on running the server on one phone, and the client on another? Dec 03 16:21:08 only one activity can be active at a time Dec 03 16:22:11 in any event, lets say you're on two different phones, you need to set the manifest up to run appServer Dec 03 16:23:00 vol, http://pastebin.com/d1e5af6bb Dec 03 16:23:30 ah, here's another issue. Dec 03 16:23:45 your server is running entirely in the onCreate method Dec 03 16:23:52 onCreate should just do setup and return asap Dec 03 16:23:55 you should run a thread to handle this Dec 03 16:23:57 vol, that's what i want to do, to run the server and client each on a different emulator Dec 03 16:25:07 f00bar80: you need to set the debuggable flag, but that's more an issue if you want to debug on device iirc (you may as well set it anyway) Dec 03 16:25:38 vol, and what about the thread in public class OutgoingWriter implements Runnable { Dec 03 16:26:15 I'm sure that's fine, I didn't look closely at it Dec 03 16:26:17 vol, what's debuggable flag ?? Dec 03 16:26:53 open the android manifest file, and click the "application" tab. Dec 03 16:27:01 one of the dropdown options will be "debuggable" Dec 03 16:27:03 set that to true Dec 03 16:27:19 or, add the attribute to your application tag Dec 03 16:27:22 android:debuggable="true" Dec 03 16:27:44 anyway, bbl, haircut Dec 03 21:25:22 does anyone know anything about amr audio codec parsing? Dec 04 00:17:30 * jasta starts a new campaign to murder everyone who writes *(p+i) instead of p[i]. Dec 04 00:18:36 jasta: can I write i[p] and escape your wrath? Dec 04 00:18:43 no, absolutely not Dec 04 00:18:56 in fact, even worse :) Dec 04 00:19:32 * jasta also decides that if you interchange NULL and 0, you must die. Dec 04 00:20:20 haha Dec 04 00:20:37 * eldenz dies. Dec 04 00:23:43 oh and if you think you can fread/memcpy into a struct or any other type than a char* or array, you must die Dec 04 00:24:09 jasta: you can get away with that so long as you know you'll be on the same platform Dec 04 00:24:19 unless you do it strictly for performance reasons in a performance critical code path. and even then, im watching you Dec 04 00:24:21 Unless, of course, you plan to kill me for mmap() Dec 04 00:25:40 i can accept non portbale code only with full consent of the author and with legitimate cause. its just too often abused by folks that dont know the evils of nonportable c. Dec 04 00:26:21 i also hate when you assume that because one component in your system has a legitiamte dep on some other platform that the rest should follow without consideration Dec 04 00:26:35 jasta: the DEX file is byte-swapped and structure-aligned by "dexopt"; the "optimized" DEX file is accessed directly through memory mapping. Dec 04 00:26:50 This should not be a killing offense since optimized DEX files aren't expected to leave the device on which they were created. Dec 04 00:26:53 like dont use some gnuc specific extension and then use that as justification to abuse unrelated parts of the code Dec 04 00:27:51 no, rightful opts are always unkillable offenses. just make sure theyre right or ill get you :) Dec 04 00:32:26 fadden: it's just so frustrating how much abuse C gets by idiots. then everyone thinks C is an unportable mess when the reality is its one of the most portable languages ever designed Dec 04 00:38:46 C is a wonderfully portable macro-assembler. Dec 04 00:43:05 python is weird Dec 04 00:43:18 IndentationError O_o Dec 04 00:44:30 so i'm probably editing a python script that uses tabs for indenting? *sigh* Dec 04 00:44:59 do you *have* to use tabs for indenting? Dec 04 00:45:04 eldenz: thats a feature, so you don't fuck up someones formatting :) Dec 04 00:45:26 I hate languages with significant whitespace. Yes, even the C preprocessor. Dec 04 00:45:42 but i don't use tabs :p at least put the frigging vim directive at the bottom... Dec 04 01:54:56 Is it possible to access opengl via jni with android? **** ENDING LOGGING AT Thu Dec 04 02:59:57 2008