**** BEGIN LOGGING AT Tue Apr 14 02:59:57 2009 Apr 14 03:34:16 anyone know of a tutorial, or if it is possible, to create a selectable list using an arraylist ? Apr 14 03:34:40 so i can press on an element of the list and do something with that selection Apr 14 03:45:04 android uses different kernel version? Apr 14 03:45:28 Different from what? Apr 14 03:47:35 in git repo, there are different kernel version about android Apr 14 05:52:48 can a runnable be made a singleton? Apr 14 05:55:46 AMD LANUNCHED NEW 3D MEDIA BROWSER http://techbuddha.blog.co.in/2009/04/13/amd-launched-new-3d-media-browser/ Apr 14 05:56:47 for vista! Apr 14 05:57:20 yah u can Apr 14 05:58:38 is there a particular pattern that works better for that or Apr 14 05:59:06 should masking the default constructor be perfectly fine? Apr 14 07:57:44 how to view android branch through git? Apr 14 08:48:37 hi Apr 14 08:49:54 how can I get a list of all available fonts? Apr 14 10:54:32 hey does anyone know if it is possible to access an item in an array using the position variable which is set when the list item click handle is fired.? Apr 14 10:56:47 anyone.? Apr 14 10:58:04 yes, that's possible :) Apr 14 10:59:58 thankyou, do you know if the position varible will be at the exact number that the item in the list was clicked.? (so if item 1 was clicked would position = 1 or 0?) Apr 14 14:48:32 anyone know how to create a direction based on yaw, roll and pitch? Apr 14 15:06:00 If anyone has a magic, and has the windows drivers for it, please let me know Apr 14 15:54:54 is it safe to use the 1.5 SDK to target 1.1 devices for production apps? Apr 14 16:10:10 zhobbs: well as long as you don't use any of the new api's Apr 14 16:14:13 jt436: yeah, was going to create a separate branch for my cupcake development... Apr 14 16:14:55 I guess I could accidentally use a new API in eclipse though...guess you can't set what API versions to use for each project... Apr 14 16:15:14 You can specify the version in the manifest Apr 14 16:15:34 oh cool, so it won't build if I use a new API if I do that? Apr 14 16:15:42 I'll have to try that out Apr 14 16:15:46 sorry haven't tried that Apr 14 16:16:03 let me know what happens :) Apr 14 16:16:33 sure Apr 14 16:33:47 new eclipse plugin is nice...sticks generated java files separately Apr 14 16:36:13 zhobbs: you can also pick which SDK to build against so that should fix you other worry Apr 14 16:36:20 *your Apr 14 16:36:26 jt436: yeah, looks like it should be ok Apr 14 16:36:40 it's having some problems with my aidl though... Apr 14 16:38:55 apk-configurations is cool too Apr 14 17:01:45 Does Android 1.1 have an API for developing home screen widgets? Apr 14 17:03:13 no Apr 14 17:03:13 a today widget (showing todays upcoming events) would be nice. Apr 14 17:03:23 wait for > 1.5 Apr 14 17:03:37 even 1.5 won't have it? Apr 14 17:04:30 anyone famiilar with orthoM function? Apr 14 17:08:12 1.5 should have it Apr 14 17:12:45 Can somebody give me a link to a basic file i/o example on a SD card? Apr 14 17:30:51 how do you create a orthogonal matrix? is there any equation for that? (Wanna create my own instead of using android matrix) Apr 14 17:36:52 * biafra is currently downloading the cupcake pre sdk Apr 14 17:37:11 are images of 1.5 available too? Apr 14 17:37:56 doesn't the preview SDK include a preview system image? Apr 14 17:41:11 ctate: I will have a look. after the doenload completes Apr 14 17:41:19 download even Apr 14 17:42:04 biafra: there has to be a system image to run the emulator :) Apr 14 17:42:31 ctate: and that will run on my ADP1? Apr 14 17:43:31 THAT i do not know Apr 14 17:43:53 in particular, i don't know whether running it on Dream hardware requires a new radio image Apr 14 17:52:45 hmm, can't figure out how to get aidl files to recognize my Parcelables.... Apr 14 17:52:58 in the new SDK Apr 14 18:04:01 should I post a bug if a document included in 1.5 is out of date? Apr 14 18:06:42 Hey, I'm having some trouble with recording audio. Whatever I try the file always seems to be a 2KB file with nothing recorded onto it. Can anybody give me a link to a basic working audio recorder Apr 14 18:26:57 ohh well...guess I gotta downgrade until aidl/parcelables start working again Apr 14 18:28:25 hi there, I saw some google TextEdit which have gray text inside that disapear when you type any idea if this is a "coded" feature or it's stock in the API i dont see it in the doc Apr 14 18:28:43 android:hint Apr 14 18:29:40 great thx zhobbs Apr 14 19:00:52 String.contains() takes a regex...but the docs don't indicate that... Apr 14 19:06:43 and so does indexOf() Apr 14 19:26:37 How would I register for SD Card removal broadcasts? Apr 14 19:49:12 vol: see also #android, but i believe the broadcast intent action is Intent.ACTION_MEDIA_REMOVED Apr 14 20:16:53 It is possible to extend Canvas? Apr 14 20:19:52 i would think possibly so, but you'd have to be careful about calling superclass versions of your overrides Apr 14 20:38:10 I have a little singleton I use for all my http access. It's a wrapper around httpclient and does stuff like caching, logging in, etc. For the most part it doesn't know or care about Android. I want it to start an intent to prompt for username/password when necessary, but I'm having a little trouble managing the context and what not Apr 14 20:40:20 I can pass in the activity that started it, so I can call startActivityForResult() no problem. But I can't figure out how to conveniently get the result back. I don't want to have to modify the activity to handle the result, but I don't see another way unless I wrap the activity in some sort of delegation object Apr 14 20:43:35 There's a ContextWrapper, which can be used to wrap Contexts, but I don't see anything similar for Activities. Is there another way? Apr 14 20:46:40 I don't think you should store a Context in a singleton Apr 14 20:46:58 you'll leak that activity Apr 14 20:48:01 you could register listeners with the singleton Apr 14 20:48:17 register/unregister Apr 14 20:48:35 or you might want to think about moving it into a service instead Apr 14 20:49:08 yeah, i'm not fond of having the context in the singleton either Apr 14 20:49:17 service might be a good idea Apr 14 20:49:22 what did you mean by using listeners? Apr 14 20:50:00 well, you could have a listener like setLoginRequiredListener() unset...() and have it call back to your activity to prompt for login Apr 14 20:50:13 but that's kinda ugly too Apr 14 20:50:42 i see. Yeah, I don't see any reason my activity should have any knowledge of this stuff, so I'm trying to avoid modifying the activity to add login-related code Apr 14 20:50:55 you might just want to rethink the way the user enters the login info (and store it), or make them stay on the screen if it might be required for whatever is happening Apr 14 20:51:38 what's the overhead of making service calls? Would it be particularly expensive to do all my http requests through a service? (I do one or two requests per page view, generally) Apr 14 20:52:06 pretty much none if the service is running in the same process Apr 14 20:53:05 k. that sounds like the way to go. I was originally planning on making this a service, but did it as a pojo singleton for expedience. Sounds like it's time to learn Apr 14 20:53:32 services can launch activities and get their results? Apr 14 20:53:43 not sure about that... Apr 14 20:54:36 looks like it could probably startActivity, and the activity could bind and communicate it's results Apr 14 20:55:01 it's probably bad practice to be popping up activities from services all the time though Apr 14 20:55:24 (activity could also just send it's results via startService in the Intent's extras) Apr 14 20:57:50 agreed about the bad practice, although it seems like every once in awhile it's not bad. better than having each and every one of my activities have to know about how to do login Apr 14 20:58:24 i think you're right about startActivity followed by startService. Seems like a workable (if kludgey) solution Apr 14 20:59:55 for now, I just used eclipse to generate an ActivityWrapper and I'm using that until I switch over to a service Apr 14 21:49:24 04-14 17:47:00.596: ERROR/AndroidRuntime(3516): java.lang.VerifyError: com.blau.android.dgmoney.accounts.AccountListViewer Apr 14 21:49:26 urgh Apr 14 21:51:28 anyone doing dev and urnning cupcake? Apr 14 22:00:06 I can't get my stuff to work in the new SDK :( Apr 14 22:01:57 im having some issues too :( Apr 14 22:02:15 I'm having problems targeting 1.1 Apr 14 22:02:42 xavd sent me some info and said it should work...so going to try it again later... Apr 14 22:02:57 my apps dont seem to install right Apr 14 22:04:40 yeah Apr 14 22:04:50 they changed the way they handle external dependencies Apr 14 22:05:27 like i have an external project that i include in all mien Apr 14 22:05:30 zhobbs: is that your aidl issue? Apr 14 22:05:36 yeah Apr 14 22:06:00 let me try with 1.1, I did my test with 1.5. but it shoudl be the same really Apr 14 22:06:14 ok Apr 14 22:06:21 like i have a "library" for splash screen notes Apr 14 22:06:35 as a seperate project Apr 14 22:06:51 i include it in all my apps and it compiles fine, i dont have to distribute a seperate library or any extra installs Apr 14 22:07:00 blau-mikeDG: is your library just java code, or does it have android resources? Apr 14 22:07:01 but on the 1.5 pre it flat out doesnt work Apr 14 22:07:33 xavd: it includes resources, think itll work fine if i get rid of them Apr 14 22:07:46 i dont need them, its just the stuff included in a normal android project Apr 14 22:08:01 ah. so in ADT 0.9 we changed something. If you have an Android project reference another Android project, we don't include the source code of the referenced project Apr 14 22:08:08 this should never have been the case Apr 14 22:08:24 h :( Apr 14 22:08:38 any idea how to handle that now? Apr 14 22:08:46 we discovered it when we added JUnit support in ADT (your instrumentation projet has to reference your main project to compile but shouldn't include the content of the project itself) Apr 14 22:09:02 you can reference another project *if* that project is a standard java project. Apr 14 22:09:36 (which means your library-project can't really have android resources) Apr 14 22:09:51 does that include source? Apr 14 22:10:10 zhobbs: aidl seems to work if I set my project to 1.1 Apr 14 22:10:34 xavd: ok, thanks. I'll try again later Apr 14 22:11:10 blau-mikeDG: hmm yes. if you referenced project is a standard java project, whatever it outputs in its bin directory is added to the dex file of the main project Apr 14 22:11:14 the aidl and java file should be in the same folder right? Apr 14 22:11:28 yeah Apr 14 22:11:33 and the aidl just has two lines "package xxx\nparcelable xxx" Apr 14 22:11:51 any way to convert a android proj to java? Apr 14 22:12:02 zhobbs: with ; at the end ofthe line, but yeah that's it Apr 14 22:12:09 ok, thanks Apr 14 22:12:17 blau-mikeDG: close the project, edit the .project and Apr 14 22:12:41 remove the line: com.android.ide.eclipse.adt.AndroidNature Apr 14 22:12:51 thanks Apr 14 22:13:00 also, you should remove 3 of the 4 builders in that file Apr 14 22:13:07 just keep org.eclipse.jdt.core.javabuilder Apr 14 22:13:24 (remove the buildCommand nodes) Apr 14 22:20:03 cool thanks Apr 14 22:24:54 worked! Apr 14 22:26:12 hello Apr 14 22:26:27 I have a question about TextView Apr 14 22:27:02 blau-mikeDG: cool! Apr 14 22:27:31 I used method setTextSize to change text size an now I want to set the default one Apr 14 22:28:07 style.xml Apr 14 22:28:21 I found a recource android.R.attr.textSize but I can not find a way to use it Apr 14 22:28:41 you want to set the default one throughout the app, or go back to using the default one? Apr 14 22:28:48 yes Apr 14 22:28:55 in the app Apr 14 22:29:59 1.5 can't convert BLOBS to Strinng? Apr 14 22:30:02 ?? Apr 14 22:30:27 Apr 14 22:30:36 04-14 18:27:32.776: ERROR/AndroidRuntime(4077): Caused by: android.database.sqlite.SQLiteException: unknown error: Unable to convert BLOB to string Apr 14 22:31:06 Apr 14 22:35:31 but if to apply this theme another text view style values will be reset to default vaules too Apr 14 22:35:58 ? Apr 14 22:47:37 can someone point me in the direction of how to develop applications and such Apr 14 22:48:02 developer.android.com Apr 14 22:48:32 ^^ Apr 14 22:48:36 thank you Apr 14 22:51:08 gerrrr 04-14 18:46:43.386: ERROR/AndroidRuntime(4295): java.lang.ClassCastException: java.lang.Integer Apr 14 22:51:08 04-14 18:46:43.386: ERROR/AndroidRuntime(4295): at android.widget.SimpleCursorAdapter.bindView(SimpleCursorAdapter.java:140) Apr 14 22:51:08 04-14 18:46:43.386: ERROR/AndroidRuntime(4295): at android.widget.CursorAdapter.getView(CursorAdapter.java:186) Apr 14 22:51:08 04-14 18:46:43.386: ERROR/AndroidRuntime(4295): at com.blau.android.dgmoney.views.AlternatingColorSimpleCursorListAdapter.getView(AlternatingColorSimpleCursorListAdapter.java:30) Apr 14 22:51:10 i hate sdk 1.5 Apr 14 22:51:40 casting from what to what? Apr 14 22:51:51 its in CursorAdapter getView Apr 14 22:52:09 im doig a setTag in the AlternatingColor.... though Apr 14 22:52:11 ah Apr 14 22:52:19 thats the only Integer im working with Apr 14 23:01:18 its gotta be that Apr 14 23:03:11 am i using settag wrong? Apr 14 23:18:57 blau-mikeDG: could it be null when you try getting the value? Apr 14 23:19:43 or ever set to a non-integer value, like a long Apr 14 23:22:48 im not getting the value Apr 14 23:22:58 the class cast is in the super class somehow Apr 14 23:23:02 dont udnerstand why :/ Apr 14 23:26:11 hmm. Apr 14 23:26:26 it *looks* like the cast it's trying to do on that line is to call getTag() and cast it to a View[] Apr 14 23:27:56 so maybe you've screwed something up by calling setTag() on something? Apr 14 23:38:06 where is the source for simplecursoradaptor? Apr 14 23:40:54 SimpleCursorAdapter.java of course :) Apr 14 23:41:19 real answer in a sec Apr 14 23:41:34 lol but where on the gitweb Apr 14 23:41:38 thought base.git but thought wrong Apr 14 23:41:52 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/widget/SimpleCursorAdapter.java;h=c1595eaf8ac605eb568731e3b32c097f99842e6d;hb=cupcake Apr 14 23:42:03 no, base.git is right Apr 14 23:42:10 just way down there Apr 14 23:42:21 hmm wonder why grep didnt work Apr 14 23:42:41 stupid case sensitivity Apr 14 23:44:12 grrr Apr 14 23:44:35 140 final View[] holder = (View[]) view.getTag(); Apr 14 23:44:35 141 final ViewBinder binder = mViewBinder; Apr 14 23:45:12 wonder why they changed to this method Apr 14 23:45:15 what a pain in the ass Apr 15 00:36:42 hi all Apr 15 00:42:41 build android source, it should use gcc-4.2, not gcc-4.3? Apr 15 00:43:49 Hmm, does Android not have ArrayDeque? Apr 15 00:46:59 hello all, can I develop android application with openjdk instead sun jvm? Apr 15 01:03:24 hey, can anyone tell me how to add images to a gallery widget.? Apr 15 01:05:07 What is the best way to profile what objects are being created and destoryed as to maintain GC Apr 15 01:05:17 hey, can anyone tell me how to add images to a gallery widget.? Apr 15 01:06:06 Does anyone know if there's a way to use a custom drawable (instead of the blue dot) when using a MyLocationOverlay? Apr 15 01:06:19 sorry its such a simple question but am new to the android API, infact new to really most API's. 6/7 years of programming and always used my own code :/ Apr 15 01:06:40 fixedd yes it is possible. Apr 15 01:07:39 SamAldis you wouldn't happen to have a suggestion for where to look for it, would you? Apr 15 01:09:24 sorry quite busy with my own problem but look through the maps api's I am pretty sure there is a method in there to change the image to one of the files stored in your resources. will get back to you on it asap Apr 15 01:12:26 SamAldis, I think you add the image to whatever your adapter is, then call youradapter.notifyDataSetChanged() Apr 15 01:13:38 nb: i haven't tried this myself, but this seems to be the way most adapterviews work. you may also need to call notifyDataSetChanged() from within a handler (eg. handler.post( new Runnable(){ public void run() { youradapter.notifyDataSetChanged;}}) ) Apr 15 01:16:42 thankyou will let you know if it works. Apr 15 01:17:20 am just creating a simple home replacement for myself and my fiancè Apr 15 01:17:58 cute Apr 15 01:18:15 I try to be Apr 15 01:18:27 :) Apr 15 01:20:13 she went an designed my next tattoo for me as a supprise so only returning the favour anyways Apr 15 01:26:34 yup yup Apr 15 01:26:37 have to flash boot with this one Apr 15 01:29:47 doh Apr 15 01:30:14 non-updated resources ids :x Apr 15 01:30:51 on the plus side, google's apps from the market seem to work Apr 15 01:32:06 anyone know if the code for the android music player is available? Apr 15 01:32:20 it is Apr 15 01:32:48 awesome and on emore question Apr 15 01:33:31 is there a tutorial that will show me how to make a list with selectable items that activate another class file? Apr 15 01:34:07 ooh right Apr 15 01:34:24 forgot vending has stale stuff in the .xml files Apr 15 01:35:51 Okay I am drawing the touch coordinates as circles on a bitmap. I have a subthread that draws the circles. I am currently using a ConcurrentLinkedQueue(); on the thread object. As the touch events come in, they are added to the queue, and the drawing thread draws them. This is causing substantial GC events. I'm wondering if anyone has any advice for me. Apr 15 01:35:57 zinx ? Apr 15 01:38:22 TheiPirate: wasn't watching the channel Apr 15 01:38:26 that i was in :P Apr 15 01:38:37 oh Apr 15 01:46:56 ldlework: linkedqueue uses a linkedlist. You might want to try another class, so that you don't generate an object for every point you place in there Apr 15 01:50:40 arrggg 4am soon, think i'll go to bed :( Apr 15 01:51:09 vol, I understand that I need a queue that has a preallocated size. What I'm having a hard time figuring out is how to resue a single list of Points when one thread is generating events as fast as possible and the other is consuming them as fast as possible. Apr 15 01:51:58 it's a good question Apr 15 01:52:23 You could always have an array, and a pointer to the "beginning" of the array, and just treat it as circular Apr 15 01:53:25 vol: i've seen one of your conversations about LOCAL_CERTIFICATE := platform ... Apr 15 01:53:47 can you point me to that makefile Apr 15 01:54:19 no, I honestly can't : ( Apr 15 01:54:26 ok :( Apr 15 01:54:31 I'm not at work, and we dropped that line of inquiry pretty fast Apr 15 01:54:40 okay. Apr 15 01:54:44 fuck, the cat just ate some plastic easter tinsel Apr 15 01:54:53 it is hand wringing time! :D Apr 15 01:54:56 anyclue, how can I reboot android 1.5 thru code ? Apr 15 01:55:13 I'm getting a weird "not permited!" error on Haykuros Apr 15 01:55:18 whenever I try to reboot Apr 15 01:55:22 form java Apr 15 01:55:26 or even from Terminal Apr 15 01:55:44 no idea, I haven't even looked at 1.5 yet, sorry Apr 15 01:55:53 okay. Tx anyway Apr 15 01:56:57 anyone know of a tutorial for streaming media(mp3s)? Apr 15 02:06:55 how to build android source for standard pc x86? for example what should it define in local_manifest.xml? Apr 15 02:17:41 anyonw know where i could get just the source code for the android music player? Apr 15 02:20:15 it's going to be with the whole tree Apr 15 02:20:30 As far as streaming media, do you want to broadcast it or play it or what Apr 15 02:20:38 wow this is retarded Apr 15 02:20:44 play it on the phone from a server Apr 15 02:20:47 because you're pretty much stuck with just pasting a file handle into the MediaPlayer as far as playing things if you don't want to get arcane and unsupported Apr 15 02:20:50 my application only runs at full speed when I spam the Log.d Apr 15 02:20:54 Are you kidding Apr 15 02:20:54 haha Apr 15 02:21:06 that's a hilarious side effect Apr 15 02:21:08 The only difference is the logging in my inner loop Apr 15 02:21:16 Inexplicable Apr 15 02:21:16 vol can you explain more Apr 15 02:21:31 vol, you're aware of this? Apr 15 02:21:40 TheiPirate: http://developer.android.com/reference/android/media/MediaPlayer.html Apr 15 02:21:49 that's pretty much the only way to play media, streaming or not. Apr 15 02:21:55 ldlework: only from what you've said Apr 15 02:22:26 if you want to pastebin your code, I can take a peek and see if I can't spot the obvious ;) Apr 15 02:22:48 you also might want to try a couple other things, like calling noop methods instead of log.d and see what happens Apr 15 02:25:10 vol im also tryin to figure out how to make a selectable list, like the menus in the api demos Apr 15 02:35:55 look harder at the api demos Apr 15 02:50:08 anyone having trouble with the 1.5 preview? Apr 15 02:50:31 i cant figure it out :( Apr 15 02:50:45 I can't install apps to the phone (missing AndroidManifest.xml, though it's definitely there) Apr 15 02:50:50 TheiPirate, which part? Apr 15 02:51:04 how to put the items i want in the list Apr 15 02:51:09 and make them selectable lol Apr 15 02:51:21 er i should say clickable Apr 15 02:54:04 oh, I thought you meant with the 1.5 preview Apr 15 02:54:31 "Intent.CATEGORY_SAMPLE_CODE" apparently this has the info for the intent of the list but idk where it is **** ENDING LOGGING AT Wed Apr 15 02:59:57 2009