**** BEGIN LOGGING AT Fri Jul 24 02:59:57 2009 Jul 24 03:22:48 I want to grab the green call button action and open the contacts (or otherwise controls its functionality) could someone give me a summary on how I would do that? Jul 24 03:25:02 pretty sure I register broadcastrecevier, and the startactivity Jul 24 03:25:14 where do I find an activity already in the OS Jul 24 03:34:05 any idea how to cancel a dialog's button press? ie, a user presses "ok", but I don't want to dismiss the dialog because their input is invalid? Jul 24 03:34:37 zhobbs_, just set a listener and never call removeDialog() Jul 24 03:35:15 KNY: I have onCLick and onCancel listeners and already don't call removeDialog() Jul 24 04:11:00 wow, just found Resources.getQuantityString() and R.plurals...I was wondering how I was supposed to do that Jul 24 04:11:42 ^^ Jul 24 04:13:18 What does it mean when you get a error that says "It is indirectly referenced from required .class file" Jul 24 04:14:17 zhobbs_, nice, I never knew that existed Jul 24 04:14:45 KNY: yeah, pretty neat Jul 24 04:14:50 definitely Jul 24 04:15:21 the NDK can link against unofficial/private APIs, right? Jul 24 04:15:37 I don't know if it can Jul 24 04:15:39 but if it can Jul 24 04:15:41 do NOT Jul 24 04:15:42 (yes I know it's not supported and it's a terrible practice and I should have my fingers cut off for doing so, etc etc etc) Jul 24 04:15:52 I did things like: setText(count + " " + getString(R.string.minutes)) knowing that it wouldn't work in other languages :) Jul 24 04:16:16 romainguy, how would you suggest that things like media encoding be done, then? Jul 24 04:16:20 zhobbs_: you could at least use getString(id, Object...) Jul 24 04:16:32 KNY: you don't, if it's not in the public APIs Jul 24 04:16:32 zhobbs_, same Jul 24 04:17:57 romainguy, that doesn't sound like much fun Jul 24 04:18:25 KNY: I'm interested in media decoding via NDK...haven't looked into it yet though Jul 24 04:18:43 zhobbs_, I was/am going to use opencore Jul 24 04:19:20 KNY: cool, I've been wondering if all that is exposed, and if so, how easy it is to use... Jul 24 04:19:35 it's not exposed, but it's all documented (internally) Jul 24 04:19:39 does anyone here want to help me with a competition i am having trouble with the networking Jul 24 04:38:16 this is sort of OT, but anyone know if there's a Java equivalent for Python's struct.pack() ? Jul 24 04:38:44 KNY: if you're interested, there is a pretty simple codec thing up for grabs in the platform, adding FLAC support Jul 24 04:39:11 jsharkey, oh? Jul 24 04:39:19 the only benefit of the NDK is that you can put it on market before a platform release Jul 24 04:39:36 and the NDK doesnt offer a good way of sending raw audio buffers Jul 24 04:39:46 http://code.google.com/p/android/issues/detail?id=1461 Jul 24 04:39:56 at least 79 people will thank you ;) Jul 24 04:40:24 in comment #46 i threw some detail about where the best place to hook in would be Jul 24 04:42:18 jsharkey, yeah, that was an interesting read (well, skim, to be honest) Jul 24 04:42:30 jsharkey, but that's not really what I'm looking to do :) Jul 24 04:42:53 aww :P Jul 24 04:43:16 jsharkey, if I didn't have a gazillion other projects, I'd definitely think about it, though :) Jul 24 04:46:46 * DJTachyon is stuck in San Franciscio Jul 24 04:46:51 -i Jul 24 04:51:23 soooo ... can JET play audio at different speeds/sample rates? Jul 24 05:04:22 For a spinner, can you set an action for when the selected item changes? Jul 24 05:08:45 yes, add a listener Jul 24 06:10:25 Taking ImageView as an example, the single argument ImageView constructor takes a Context parameter. Does it really matter what is passed in ? Should I pass in the Activity instance that hosts this ImageView ? My impression is that there is only ONE singleton Context in the whole app; thus it really doesn't matter how you got hold of "the" context. Am I correct ? Jul 24 06:12:12 chihiro: seriously, please just inflate your layouts through XML Jul 24 06:12:21 don't be a turd and build layouts manually in code Jul 24 06:12:31 nobody likes that guy Jul 24 06:15:33 jasta, I'm writing a BaseAdapter, so I presume this is how it is done. Jul 24 06:15:52 yeah, and you use layout inflation Jul 24 06:15:58 look at any adapter used anywhere by Google Jul 24 06:16:17 (you have the entire platform source, btw) Jul 24 06:16:30 ok. Will do. Jul 24 06:37:31 jasta, to be fair, isn't layout inflation slow? I don't know if it's slower than building layouts in code, but just thought I'd play devil's advocate :) Jul 24 06:43:51 KKN: there's not much difference Jul 24 06:43:57 and Jul 24 06:44:01 it's a moot point anyway Jul 24 06:44:10 because with code you lose the ability to easily have alternate layouts Jul 24 06:46:41 romainguy__, yeah, don't get me wrong--I'm certainly not justifying building layouts in code Jul 24 06:49:32 I've completed the switch to layout inflation. No sweat. Next question: is it possible that the SlidingDrawer doesn't open up to take over the whole screen? Can it slide up such that its height is "wrap_content" ? (Or am I doing it wrong) Jul 24 06:53:20 hey, does anyone know how to get a youtube video to stream in your program? i modified the VideoView demo to point to a youtube .3gp stream, but when i click the action button, i get "sorry, this video cannot be played" Jul 24 06:54:41 f^x, just launch Intent.ACTION_VIEW with the youtube URL as the data Jul 24 06:56:26 i don't want to launch the browser, i want to embed the video in a view in my program Jul 24 06:56:33 which is what the VideoView demo does Jul 24 06:56:41 allegedly. Jul 24 06:56:48 f^x, the youtube application responds to youtube URLs Jul 24 06:56:55 I've never used VideoView though Jul 24 06:57:10 i don't want to launch an extenral application Jul 24 06:57:26 although i suppose i could use it as a last resort Jul 24 06:57:31 rather not though Jul 24 07:09:56 jsharkey: Interesting re: FLAC support Jul 24 07:10:48 hm? Jul 24 07:15:47 jsharkey: Are you a FLAC user? Jul 24 07:22:14 KNY: hey, do you have a copy of the youtube apk? it's not installed in my emulator Jul 24 07:22:46 YouTube is not part of the SDK, is it? Jul 24 07:23:41 not in and of itself, no. but allegedly you can use VideoView to stream .3gp content so i'm trying to use that to play youtube videos Jul 24 07:24:02 but that doesn't seem to be working so i'm considering installing the youtube app instead Jul 24 07:24:08 but i can't find a place to download it Jul 24 07:24:46 it's not available for download Jul 24 07:27:38 kRutOn: yea, ive started to become a FLAC fan ;) Jul 24 07:28:46 There is a lot of indexing into buffers without bounds checking all over the place Jul 24 07:29:01 kRutOn: this way it's fast :p Jul 24 07:29:35 yeah, that's why I don't put the seatbelt on in the morning so I can save than .2s getting to work :-) Jul 24 07:33:56 ah, there we go.. repo sync complains about my local_manifest.xml having duplicate entries now Jul 24 07:34:00 go jbq Jul 24 07:34:30 yo Jul 24 07:34:38 any devs need an idea for an app? Jul 24 07:35:06 only if it's a "killer app" Jul 24 07:35:18 romainguy__: is there any way to play a video from your app in the emulator? Jul 24 07:35:23 You know me, I always have ideas. Jul 24 07:35:29 i feel like i'm doing this wrong Jul 24 07:35:30 VideoView? Jul 24 07:35:50 er, the whole reason i wanted to try the youtube app was that videoview wasn't working Jul 24 07:35:53 look up. Jul 24 07:35:59 wait Jul 24 07:36:01 drop everything Jul 24 07:36:14 YouTube just uses VideoView Jul 24 07:36:26 with JF's smali thing, we can disassemble the youtube app, right? and then modify it? Jul 24 07:36:49 romainguy__: scroll up to my conversation with KNY where i describe my problem Jul 24 07:36:59 no :) Jul 24 07:37:03 i don't wanna spam the channel by pasting it again Jul 24 07:37:11 no? Jul 24 07:37:15 kRutOn Jul 24 07:37:21 how skilled are u in app developing Jul 24 07:37:22 ? Jul 24 07:38:19 romainguy__: fine: '< f^x> hey, does anyone know how to get a youtube video to stream in your program? i modified the VideoView demo to point to a youtube .3gp stream, but when i click the action button, i get "sorry, this video cannot be played"' Jul 24 07:38:31 so, how does one get around that? Jul 24 07:38:53 Youtube has a .3gp URL? Jul 24 07:39:10 kRutOn: yes, if you use the gdata feed to get it Jul 24 07:39:30 but it doesn't play back, and i can't figure out why Jul 24 07:40:33 f^x: youtube does not offer .3gp links through any supported external API, anything you find beyond that is purely implementation details that may change at a moments notice Jul 24 07:41:15 f^x: http://www.mail-archive.com/android-framework@googlegroups.com/msg03255.html Jul 24 07:41:24 ok, in that case, how *do* i play back a youtube video with videoview? Jul 24 07:41:36 f^x: you dont--you launch the intent to the youtube app Jul 24 07:41:42 ARGH Jul 24 07:41:48 ok, so let me get this straight Jul 24 07:42:10 f^x: did you look at that link? apparently it's been discussed before and that guy posted the code he used to do it Jul 24 07:42:37 the answer to "VideoView doesn't work for youtube" is "use the youtube app" and the answer for "the youtube app doesn't work" is "use VideoView" Jul 24 07:42:55 f^x: where doesnt the youtube player work? Jul 24 07:43:02 *youtube app Jul 24 07:43:27 the emulator Jul 24 07:43:44 youtube isnt supported in the emulator--the sdk never came with it Jul 24 07:43:51 ...exactly Jul 24 07:44:33 so i asked what i should do, and people say "use the videoview." but the whole reason i wanted to use the youtube app was that videoview doesn't work in the first place Jul 24 07:44:50 it's some sort of insane catch-22 Jul 24 07:45:30 * kRutOn talks to himself. Jul 24 07:45:41 kRutOn: yes, i did see that link Jul 24 07:45:52 that's the code from the VideoViewDemo app Jul 24 07:45:59 which is the code i've been using all along Jul 24 07:46:02 and again, YouTube is just using a VideoView Jul 24 07:46:03 which doesn't work Jul 24 07:46:04 f^x: you want to know the real reason why? its because the emulator doesnt support UDP Jul 24 07:46:06 I don't know what youre doing Jul 24 07:46:14 or maybe it's because there's another issue Jul 24 07:46:17 like what jsharkey is saying Jul 24 07:46:32 videoview or youtube player, RTP just plain doesnt work without udp Jul 24 07:46:41 http://en.wikipedia.org/wiki/Real-time_Transport_Protocol Jul 24 07:48:04 oh hey. i managed to find a copy of YouTube.apk floating around on the net Jul 24 07:48:14 it works in the emulator Jul 24 07:48:31 "works"? Jul 24 07:48:38 opens, loads videos, plays them Jul 24 07:48:58 you need to have an sd card attached for it to create a cache, though, otherwise it crashes Jul 24 07:49:18 okay, maybe youtube uses a fallback to TCP for its rtsp streams Jul 24 07:49:20 so either it's not using rtsp or udp does work in the emulator Jul 24 07:49:32 so what are you goign on about if youtube works?? Jul 24 07:49:45 well, i just got it working. Jul 24 07:50:03 if what romainguy__ says is correct, i *should* be able to get a videoview working too. Jul 24 07:50:11 the question is, how? Jul 24 07:50:15 ... Jul 24 07:51:04 what? my goal all along has been to embed youtube in my app, i don't want to launch the external one if i can help it Jul 24 07:51:46 So is there an easy way to hook gdb up to debug native parts of the framework? Jul 24 07:52:19 kRutOn: there is a special build target for running valgrind i think, which might also work for gdb Jul 24 07:52:30 "simulator", ive never used it though Jul 24 07:52:54 yeah, I have a feeling people stare at you with wide-eyed bewilderment when you start talking about simulator Jul 24 07:53:48 f^x: what? my goal all along has been to embed youtube in my app, i don't want to launch the external one if i can help it << I'm pretty sure this violates YouTube's license Jul 24 07:54:13 oh really? Jul 24 07:54:16 no, wait Jul 24 07:55:02 "The Data API lets you incorporate YouTube functionality into your own application or website." Jul 24 07:55:06 from http://code.google.com/apis/youtube/overview.html Jul 24 07:55:39 as long as you abide by the API license, have at it :)) Jul 24 07:58:18 The following commercial uses are permitted provided that You comply with all other terms and conditions of this Agreement: ... -using the YouTube API to show YouTube content on an ad-enabled API Client (such as an ad-enabled blog or website), subject to the advertising restrictions set forth above in Section 2; Jul 24 07:58:26 seems like i'm ok. Jul 24 07:58:50 now, the original question remains. how do i feed a 3gp link from youtube to a VideoView? Jul 24 07:59:20 is the gdata API giving you a bum link? Jul 24 07:59:29 possibly. Jul 24 07:59:38 gonna try some other links. Jul 24 08:00:44 from that mailing list post I linked earlier: "I have checked the Youtube App also, it also does the hack way to play the youtube url.(Checked with logcat) Jul 24 08:03:17 Maybe it doesn't use RTSP at all. Jul 24 08:17:32 kRutOn: i tried copying his code exactly, doesn't work Jul 24 08:18:02 the code doesn't cover the 'hack way' Jul 24 08:18:04 although i notice there are two different versions of the same code in that post, the second one is crashing before it even gets into my activity. Jul 24 08:18:16 no, but he claims that's the proper non-hack way to do things. Jul 24 08:18:33 i'm still trying the second version of his code, needs some debugging. bbiab Jul 24 08:29:42 hm, yeah, ok, nullpointerexception. change it back to the uri parsing method and it's back to the same "video cannot be played" method Jul 24 08:29:49 time to look into the hack method i guess? Jul 24 08:41:43 <_Auron_> what's the difference between the home key and the back key in terms of affecting the application's status? Jul 24 08:44:15 _Auron_: home keeps your app's activity "stack" intact, whereas back key pops the last item off the top Jul 24 08:44:24 you can switch between stacks by long-pressing home key Jul 24 08:46:30 <_Auron_> well the odd thing is, my openGL texture gets screwed up when I go back into the app after hitting Home, but works fine if I return to it after hitting Back Jul 24 09:02:48 <_Auron_> so obviously something else is different Jul 24 09:08:13 what the heck, the Englih break iterators in ICU 4.2.1 depend on the Thai word dictionary Jul 24 09:15:53 I finally have enough money saved to order the g1 dev. but after registering as an android developer the brightstar page says they are out of stock and expect to resume on March 4. Does anyone know if thats 2008 and hasnt been updated or a sick joke that i have to wait another 9 months? Jul 24 09:17:26 AndyB: I bought a dev phone around 2 months ago Jul 24 09:19:08 ewon, hmm so its serious about having to wait till march. :( Jul 24 09:20:05 the fact that a women could produce a full human child before a couple of multi national corporations could produce some smartphones is shocking. Jul 24 09:21:10 AndyB: I'd just buy a used G1 on eBay.. it'd be much cheaper Jul 24 09:23:08 kRutOn, I need the dev version, and i have had bad experiences with ebay. oh well. Jul 24 09:24:16 I guess eBay works better in the US. Jul 24 09:26:41 yeah. im in ireland. everything sucks here Jul 24 09:27:36 dev version? get a normal g1 and root it ;) Jul 24 09:27:43 flash the adp1 rom and your fine ;) Jul 24 09:29:13 AndyB: I'm from Ireland too Jul 24 09:32:22 ewon, how unfortunate for you. you north or south? Jul 24 09:35:45 the_alien, ill consider it. might be what i have to do. Jul 24 09:35:45 time for work. thanks for the support and advice. Jul 24 10:03:41 Hi Jul 24 10:03:57 I'm having problems with an OpenGL app on Android, using SDK 1.5 Jul 24 10:04:04 I can see my object on the emulator.. Jul 24 10:04:15 but on device.. I just get a black screen... no errors Jul 24 10:07:56 using the adb logcat I can see this message with my running app Jul 24 10:08:00 W/ActivityManager( 54): Launch timeout has expired, giving up wake lock! Jul 24 10:08:00 W/ActivityManager( 54): Activity idle timeout for HistoryRecord{43a51710 {org.example.opengl/org.example.opengl.OpenGL}} Jul 24 10:08:17 what does that mean? what can I do to fix it ? Jul 24 10:15:47 anyone who can help out? Jul 24 10:40:52 Hachaso: Stick around. US is waking up soon. Jul 24 10:47:18 ok...thanks Jul 24 11:11:43 Coucou les gars. J'ai une probleme. Qu'est-ce que la différence entre "singleTask" et "singleInstance" pour un Activity ? Merci Jul 24 11:21:22 de ce que j'en comprends c'est qu'en mode singleInstance tu ne risque pas de perdre un intent vu que l'activité lancée ne se dédie qu'à une tâche en particulier Jul 24 11:21:43 et en mode singleTask l'activité peut déjà être occupée et ton intent va être tout simplement ignoré Jul 24 11:21:46 oh damn. Jul 24 11:22:01 way to ask a question and then leave, chihiro Jul 24 11:22:46 could someone please help me out with an OpenGL Android app I have Jul 24 11:22:46 works fine on the emulator, but I get a black screen on device Jul 24 11:22:46 I get this messages when I run adb logcat Jul 24 11:22:46 W/ActivityManager( 54): Launch timeout has expired, giving up wake lock! Jul 24 11:22:46 W/ActivityManager( 54): Activity idle timeout for HistoryRecord{43b45ec8 {org.example.opengl/org.example.opengl.OpenGL}} Jul 24 11:22:48 anyone? Jul 24 11:47:46 hello Jul 24 12:27:32 hi all, is it possible to get the current call telephone number ? Jul 24 13:19:19 hi all, is it possible to get the current call telephone number ? Jul 24 13:30:54 to what extent should strings be externalised? is it more expensive to store a string such as ("Upgrading database from version " + oldVersion + " to " + newVersion) as an external string with %'s in it and use String.format once on it, or to split "Upgrading database from version " and " to " as separate strings and concatonate, or is there no difference from just leaving it as it is? Jul 24 13:44:16 Hi Jul 24 13:44:38 has anyone experienced black screen on device..but application works on emulator?? Jul 24 13:51:47 Hi guys... Where can I find any example about _curve_ Animations? thx Jul 24 13:52:43 i'm adding several Animation objects into an AnimationSet, but it moves directly from the start point to the end point Jul 24 15:44:06 I need some clarification, can I only insert/query/notify databases from a special ContentResolver? Jul 24 15:54:38 you can have an SQLiteDatabase object and query that Jul 24 15:56:57 can someone tell me how to read and write properties on android Jul 24 15:57:03 it has been driving me crazy Jul 24 15:57:44 SharedPreferences Jul 24 15:58:17 ? Jul 24 15:59:01 I assume that's what you're tying to do Jul 24 15:59:03 d.android.com Jul 24 15:59:34 no I am just trying to write to a property Jul 24 15:59:39 but apparently this does not work Jul 24 16:00:14 Properties prop = new Properties(); Jul 24 16:00:15 prop.load(propertyExperiment.class.getResourceAsStream("message.properties")); Jul 24 16:00:15 prop.put(key, val); Jul 24 16:00:15 prop.store(new FileOutputStream(propertyExperiment.class.getResource("message.properties").getPath()),null); Jul 24 16:00:24 pastebin.com, jasongornall_ Jul 24 16:00:40 too late :p it is only 4 lines tho Jul 24 16:00:50 I can read the file fine Jul 24 16:00:58 it is just writing that I can't seem to figure out Jul 24 16:05:40 thanks martin___, was afk. I'm also trying to use a handler from a listView, but it's returning false, is it not legal to use getHandle().post(Runnable) on views? Jul 24 16:11:40 and if not, where should I put my handler so that it functions correctly? Jul 24 16:21:20 how do I execute a handler? :S Jul 24 16:24:44 can someone please point me to a properties tutorial Jul 24 16:24:47 for android Jul 24 16:26:16 Keychar, an adapter you mean? Jul 24 16:26:27 ie loading things into a listview from your database Jul 24 16:27:02 a handler isn't executed is it, a handler is used to execute things? Jul 24 16:27:05 no, ListView.getHandler().post() to make sure that it runs when the view allows it Jul 24 16:27:40 I haven't really gotten the full concept of the handler jet, but it seems to execute automatically Jul 24 16:29:08 I've only used a Handler to run a runnable at a certain time (handler.postAtTime()) Jul 24 16:30:37 aah, ok Jul 24 16:47:47 * Keychar gets sad because CursorTreeAdapter is buggy and won't update or run my notifyDataSetChanged calls Jul 24 16:55:42 Hm, I'm getting a SEGV with ICU 4.2.1, but it looks like the PC is pointing to the middle of an instruction in libc.so Jul 24 16:56:25 well, the second call on the stack.. not the call that actually caused the SEGV Jul 24 17:42:26 Oh. Nice. ccache totally messes up gcc -MD Jul 24 18:07:01 to what extent should strings be externalised? is it more expensive to store a string such as ("Upgrading database from version " + oldVersion + " to " + newVersion) as an external string with %'s in it and use String.format once on it, or to split "Upgrading database from version " and " to " as separate strings and concatonate, or is there no difference from just leaving it as it is? Jul 24 18:07:40 String.format is pretty expensive Jul 24 18:08:18 OFC you should be putting your strings in resources Jul 24 18:08:46 so would getResources.getString(R.id.fromVersion) + oldVersion + getResources.getString(R.id.toVersion) + newVersion be the best way? Jul 24 18:09:02 that's how i would do it Jul 24 18:09:20 righto, it's just I've seen plenty of times in examples where people haven't externalised strings Jul 24 18:09:20 String.format() is a pain :) Jul 24 18:09:36 because it makes a new string object? Jul 24 18:10:08 no, because it's a pain to deal with Jul 24 18:10:20 it's much easier IMO to just write out the concatenation like you did here Jul 24 18:10:39 even for strings such as ")", it's more efficient to externalise? Jul 24 18:10:50 the compiler will sekritly allocate a StringBuilder and use that when you do a lot of concatenation Jul 24 18:11:04 "externalise" is not a word i understand in this context, btw Jul 24 18:11:23 ie store in a strings xml file, is that not what the externalise strings wizard does? Jul 24 18:11:34 i dont' know anything about any of the SDK wizards Jul 24 18:11:36 never used them Jul 24 18:11:52 internally, we *must* put all user-facing strings into resources. Jul 24 18:12:02 because they all get localised Jul 24 18:12:16 ok then, I shall take these examples with a pinch of salt Jul 24 18:12:41 are they Google's example code, or other people's? Jul 24 18:12:46 both Jul 24 18:13:35 for example, http://d.android.com/guide/tutorials/notepad/notepad-ex1.html step 11 is a short concatonation Jul 24 18:14:29 if you look at the source code, you'll see that Google basically never uses String.format() internally Jul 24 18:14:40 with a few exceptions where it's really about the *formatting* Jul 24 18:14:59 ARRGGHHH Jul 24 18:15:12 jasongornall_: tell us how you REALLY feel.... Jul 24 18:15:27 I shall just keep *all* strings no matter how small in resources then, thanks :) Jul 24 18:15:37 I can't read in property files on the android Jul 24 18:15:42 does anyone have any tips? Jul 24 18:15:48 "property files"? Jul 24 18:15:51 yeah Jul 24 18:15:59 * ctate fails to recognize the term. Jul 24 18:16:11 it is how you store data between sessions Jul 24 18:16:19 .properties ? Jul 24 18:16:22 like android even gives u a default.properties Jul 24 18:16:24 yeah Jul 24 18:16:50 I have been looking at how to read in the properties file for like 2 days Jul 24 18:16:56 I can't find anything Jul 24 18:17:07 * ctate is still confused. sessions of what? where are these files stored? Jul 24 18:17:27 lol open a new android project Jul 24 18:17:35 and look for the properties file at the bottom Jul 24 18:17:57 oh, you mean this is Eclipse stuff, not Android stuff per se Jul 24 18:18:06 i've never used the SDK, sorry. Jul 24 18:18:57 jasongornall_ can you just not set the launch configuration? Jul 24 18:19:18 I just need to understand how to read/write files Jul 24 18:19:26 on android Jul 24 18:19:32 all my properties file contains is target=android-3? Jul 24 18:19:54 I am making my own property file Jul 24 18:20:01 and I want to read/write to it Jul 24 18:30:29 read/write to it from code running where? Jul 24 18:31:41 argh, gotta go for a bit Jul 24 18:36:43 How do you make repo switch back to "(no branch)" when you're not working on a specific topic? Jul 24 18:38:16 having a problem with the unit tests, i think im going crazy. followed docs advice still getting ": Application does not specify a android.test.InstrumentationTestRunner instrumentation or does not declare uses-library android.test.runner" Jul 24 18:38:23 the manifest clearly does Jul 24 18:39:03 ah, just git checkout Jul 24 18:40:02 wmealing: can you pastebin the manifest Jul 24 18:40:37 http://pastebin.com/m49bf48a6 Jul 24 18:41:30 wmealing, http://blog.lv25.com/2009/06/android-simple-guide-to-unit-tests.html <-- does this help at all? Jul 24 18:42:03 martin___, been there already.. trying to follow the basics from it Jul 24 18:42:19 wmealing: You can look at my project.. it's set up pretty nicely: Jul 24 18:42:19 http://code.google.com/p/connectbot/source/browse/trunk/connectbot Jul 24 18:42:31 he has a tiny bug in his example, missing a / Jul 24 18:42:34 * wmealing looks Jul 24 18:42:37 wmealing: the instrumentation runner stuff is in the tests/AndroidManifest.xml Jul 24 18:42:57 kRutOn, did you make a new android project under tests ? Jul 24 18:42:59 ie, how did you do it Jul 24 18:42:59 wmealing: Then the build.xml has a target named "tests" that does the magic Jul 24 18:43:16 wmealing: I think I manually created it from the templates in the SDK. Jul 24 18:43:16 ok Jul 24 18:43:23 ok Jul 24 18:46:45 i have done this for another project, a while back.. do you _think_ i can remember how i did it. Jul 24 18:47:41 Just an evidence-based guess: no. Jul 24 18:47:44 * kRutOn -) Jul 24 18:47:59 er, I meant that to be :-) Jul 24 18:59:11 hey, how can I make it so an application using my aidl interface doesn't have to manage the bind/unbind? I wanted to wrap it, but I don't know if it is okay to do the unbind in the finalize() of my wrapper Jul 24 19:00:03 so essentially, I would bindService in my wrapper's constructor and unbindService in the finalize() Jul 24 19:12:15 just getting annoyed and tired now.. no progress.. Jul 24 19:22:32 wmealing: Can't get it to work? Jul 24 19:30:37 is it safe to do context.unbindService in a finalize()? Jul 24 19:43:18 herriojr: bind and unbind in onstart/onstop Jul 24 19:43:19 nowhere else Jul 24 20:12:52 hi, anyone know much about android.sax? Jul 24 20:18:08 i have a problem with android.sax: xml like parent txt elem Jul 24 20:18:45 i can install a listener on parent for child or for the text element, but not both Jul 24 20:18:59 need both; any ideas? Jul 24 20:27:58 i have a problem with android.sax: xml like parent txt elem Jul 24 20:29:09 don't repeat yourself either. Jul 24 20:30:04 <- not goot with irc client either Jul 24 21:22:11 Is it possible to use css/js to get rid of the vertical scrollbar in default android browser. None of the regualr tricks work (width/height: 100% and overflow: hidden/auto)... any ideas? Jul 24 21:37:59 jasta: the reason I was asking is because I wanted to make a wrapper class, so I needed to know whether I have to expose the binding/unbinding, but I guess you answered my question with the onStart/onStop Jul 24 23:49:00 . Jul 24 23:49:06 dot works :D Jul 24 23:49:36 I'm looking for a way to draw popups on a map Jul 24 23:50:27 I have some overlays that are drawn onto google maps fine, but I have yet to find a way to draw, say, a rectangle on the google map when one of my pins is tapped Jul 24 23:52:42 I just do it manually in Overlay.draw() Jul 24 23:53:50 hmm Jul 24 23:54:52 I hav draw to draw static images (pins) Jul 24 23:55:18 but I want to call something from onTap, that draws a dynamic image, a rectangle for example Jul 24 23:55:33 basically i override onTap to keep track of which pins are selected, then in draw() I draw a drawable directly on the canvas if there's a pin selected Jul 24 23:56:02 ok, have you got some example code lying about? Jul 24 23:56:12 that sounds like what I am trying to achieve Jul 24 23:58:03 sorry, nothing i can pass on. Basically use a variable to keep track of your selected marker in onTap, then call mapView.invalidate() if you modify it. Then in draw() set your drawable bounds and offset and call drawable.draw(canvas) and that should mostly be it Jul 24 23:59:37 ok, ta Jul 25 00:01:20 oh, one other thing Jul 25 00:01:31 where do Iget a Canvas object from? Jul 25 00:02:12 do I create a new one, or can I get an existing one? Jul 25 00:02:15 public void draw(Canvas canvas, MapView mapView) Jul 25 01:12:54 kRutOn, no Jul 25 01:14:45 kRutOn, missed your last question.. i figured at the point where i want to throw something, its time for sleep Jul 25 01:49:55 hmm Jul 25 01:50:03 I have this code http://pastebin.com/m7df8fa8d Jul 25 01:50:12 and I cannot see why I am getting NPE's Jul 25 01:50:25 in the onTap method Jul 25 01:53:47 b0nn, what line(s)? Jul 25 01:57:33 85 and 90 Jul 25 01:57:42 such that inforect is null Jul 25 01:58:17 sorry, 83 and 88 throw the NPE's Jul 25 01:59:06 but I'm of the understanding that line 48 should be instantiating a InfoRect instance Jul 25 02:03:46 hmm Jul 25 02:07:41 ok Jul 25 02:08:29 trying this.inforrect instead Jul 25 02:09:47 bonn if you use the wrong constructor then inforect will still be null Jul 25 02:10:02 yeah Jul 25 02:10:07 I think that's the problem Jul 25 02:10:28 you should be using new iOverlay(Drawable, Context), not the one one line 22 Jul 25 02:11:34 yeah Jul 25 02:11:47 I'm using iOverlay(Drawable) Jul 25 02:11:49 bingo Jul 25 02:11:52 thanks dude Jul 25 02:11:54 :-) Jul 25 02:14:49 on a smaller note it's more conventional to begin class names with a capital letter Jul 25 02:14:56 just so as not to confuse them with variables Jul 25 02:15:52 yeah Jul 25 02:16:20 I've just done i or my, for classes I am extending Jul 25 02:21:08 Someone: what is wrong with this? Jul 25 02:22:04 I created one of those ProgressDialog things, but the yellow wheel doesn't spin Jul 25 02:22:26 Download URL Shortener from the market and look please Jul 25 02:38:00 http://pastebin.com/m569f55b1 Jul 25 02:38:24 my onTap calls configureForItem(OverlayItem) Jul 25 02:38:33 but, draw is never called Jul 25 02:38:55 so, I should just drop a this.draw call in configureForItem?> Jul 25 02:39:48 hmm, that wont work, I dont have a canvas or mapview **** ENDING LOGGING AT Sat Jul 25 02:59:57 2009