**** BEGIN LOGGING AT Thu Jun 18 02:59:57 2009 Jun 18 03:11:18 does anyone know how an input button in webview get paints? Jun 18 03:32:28 Hi, how to insert debug print statement in android c/c++ code? Jun 18 03:32:38 i tried printf, it does not seem to work Jun 18 03:37:05 s1516, look at how the platform does it; I believe there's a log.h you need Jun 18 03:53:56 It sure is quiet in here. Jun 18 03:54:22 Is anyone awake? Jun 18 03:54:38 Should I be whispering? Jun 18 03:57:04 now's the OT chatter in here? Jun 18 03:57:46 in #android Jun 18 03:57:49 :) Jun 18 03:58:42 So I've been waiting about 15 minutes for my Hello World app to popup in the emulator. I'm guessing that's not normal. Jun 18 03:58:54 first time boot of the emulator takes a while...but 15m? Jun 18 03:59:08 gdk612, if you're on a crappy computer, mayb Jun 18 03:59:08 e Jun 18 03:59:30 Yeah, i read it may take a few minutes. But this seems strange. Jun 18 03:59:38 gdk612, did the emulator boot? Jun 18 04:00:08 My cmoputer isn't crappy. Dual core 1.86 Ghz, 4GB. Jun 18 04:00:15 connect with ddms to the emulator Jun 18 04:00:15 Not great, but not crap. :) Jun 18 04:00:36 Yeah, the emulator is up and shows the graphical Andriod logo. Jun 18 04:00:40 *animated Jun 18 04:00:49 ddm? Jun 18 04:00:55 gdk612, until you're at the home screen, you won't see your app Jun 18 04:01:12 gdk612, run `adb logcat` Jun 18 04:02:02 Ok, got several screens of log data, is there somethign in particular I shoudl be looking for? Jun 18 04:02:33 it should keep spitting out data as it boots Jun 18 04:02:47 if it's frozen or there are errors, you'll probably see them Jun 18 04:02:51 Ok, I'll reboot it. Jun 18 04:02:59 gdk612, no, just keep watching it Jun 18 04:03:35 k, no new text is being displayed. last line is: D/qemud ( 546): client_fd_receive: -> received channel id 2 Jun 18 04:05:22 *sigh* takes 72 hours for the firmware update. what am I going to do without a terminal until then? :) Jun 18 04:10:30 I still haven't seen any updates to the logcat, other than a few lines after doing "adb bugreport". Jun 18 04:12:37 THere are some BatteryService errors, but I wouldn't be suprised if thats normal in the emu. Jun 18 04:20:34 Interesting. I removed all the hello world code changes, so it's back to the generic Eclipse code, saved and reran it... Jun 18 04:20:53 Does someone know something about that? http://groups.google.com/group/android-developers/browse_thread/thread/e96758305324a9af# - Perhaps jsharkey Jun 18 04:21:10 And it worked fine. Jun 18 04:21:14 Hmmm. Jun 18 04:28:47 It must have been a typo, it worked with the copy and pasted code. Thanks for your help KNY. At least now I know about the logs! Jun 18 04:30:34 kernel version 2.6.27-00393-g6607056 san@sandroid #1 Jun 18 04:30:35 SanMehat: :) Jun 18 04:56:51 cj, what version did you flash? Jun 18 05:01:50 Hi, is there a layout xml for the android's browser? Jun 18 05:06:53 * sammyF just finished the soundtrack for his new game ... Jun 18 05:07:03 nighty everybody :) Jun 18 05:31:36 s1516: i think you're looking for WebView... Jun 18 05:59:22 Does anyone know of a way to make email addreses show up a clickable links in a TextView or another view? Jun 18 07:45:56 hello Jun 18 07:46:38 we have a webwiev which crash Jun 18 07:46:50 after opening an alertdialog Jun 18 07:47:07 anyone knows this issue ? Jun 18 12:27:36 anyone alive? Jun 18 12:29:00 i need to write a application where the application will actually store data into a sql server. is there any application with full source that i can do referrence with. Jun 18 12:38:10 HotEvilGi: : you dont mean a local sqlite database do you? as in an actual remote sql server? Jun 18 12:39:25 actuall remote sql server Jun 18 12:46:54 HotEvilGi: the web is full of applications where you can use Java for SQLQueries against rdbms' Jun 18 12:47:14 i tried looking for Jun 18 12:47:17 already past 3 weeks Jun 18 12:47:21 so i have no choice Jun 18 12:47:23 but to come online Jun 18 12:48:24 http://lmgtfy.com/?=java+sql+server Jun 18 12:49:00 if you are talking about MS SQLServer... Jun 18 13:01:09 KNY: heh, that's the thing... I flashed the latest. reading the docs, it looks like I need to back up to RC29 in order to root it Jun 18 13:30:03 the android developer site is really slow :( Jun 18 14:06:24 I found some code online that I was editing to learn some basics of the framework and I caused an uncaught exception that I don't understand: http://bnovc.pastebin.com/m7591edb9 Jun 18 14:06:48 I was changing the image it used, make it move automatically, and make it rotate... apparently something along the line caused this to happen but the error doesn't seem to tell me anything Jun 18 14:16:55 sigh .. anybody in germany who was able to setup his bank account? Jun 18 14:19:27 no luck yet sammyF ? :( Jun 18 14:19:49 jt436: tried my kid's mom's bank datas .. no luck Jun 18 14:20:28 somehow I have this depressing feeling that I need a bank in the UK or the USA to get the money :/ Jun 18 14:28:49 hmm Jun 18 14:36:35 it all starts with my bank account number having a letter in the middle, and with the IBAN being 12 numbers long ;) Jun 18 14:40:06 Gaz: there you are! Jun 18 14:40:16 yo! Jun 18 14:42:32 i just got strangelhold for ps3! Jun 18 14:42:34 woot Jun 18 14:42:42 gonna play for a bit and go out Jun 18 14:42:58 yeh Leeds, been hiding in here with the real men (sammyF) Jun 18 14:43:02 gambler__: got a phone number? Jun 18 14:43:07 er, Gaz :-) Jun 18 14:43:09 0987244506 Jun 18 14:43:21 brb need a dump Jun 18 14:43:28 enjoy Jun 18 14:45:52 how can I use the gallery app for displaying an image thats in my application resources? Jun 18 14:47:12 hehe Jun 18 14:47:14 hey Leeds Jun 18 14:47:20 so when u get to tpe Jun 18 14:48:24 i got a few bars lined up :) Jun 18 14:48:33 firstly the one where i have a tab Jun 18 14:48:37 since i have no money again Jun 18 14:48:39 :-< Jun 18 14:49:31 I might be able to stretch to a beer or two Jun 18 14:49:57 for what it's worth, the plan appears to be going to the night market after gf's concert is finished, so it's not going to be a late one :-( Jun 18 14:50:15 but I'm sure you'd be welcome to come and tourist with us Jun 18 14:52:22 I don't know the city, but where are you thinking of meeting up? Jun 18 14:53:23 i was wondering Jun 18 14:53:53 what would happen if i broadcast the BOOT_COMPLETED intent after the boot has been completed Jun 18 14:54:20 I'd suspect you can't Jun 18 14:54:56 i think it'll send it out Jun 18 14:55:04 but i dont know how the system would respond to it Jun 18 14:56:56 ignore it you'd hope Jun 18 14:57:15 haha yea Jun 18 14:57:39 anyways, the reason i'm interested in this is because how SmsReceiverService handles it internally Jun 18 14:58:07 that seems to be the only way to reset the sms notification on the status bar if you directly go in and edit the sms db Jun 18 14:59:17 I installed JF's ROM... how do I get me a root prompt? Jun 18 14:59:34 Gaz: you gone? Jun 18 14:59:45 prashast: : that doesnt seem right :o Jun 18 15:00:23 mophead : why do you think so? Jun 18 15:01:02 i havent looked into it, it just looks like a ludicrous mechanism from what you said! (unless ive misinterpretted what you meant) Jun 18 15:01:30 oh its obviously not meant to be used like that Jun 18 15:01:49 you mean the direct edit of the sms db? Jun 18 15:02:03 no, the boot_complete and notification reset Jun 18 15:02:34 the status bar notification is updated / refreshed only on new SMS receieved or boot_completed intent received Jun 18 15:02:47 you cannot spoof new sms from within the device Jun 18 15:02:49 so it wont notify if you hack an sms in there? Jun 18 15:02:54 i c Jun 18 15:03:11 yep Jun 18 15:03:12 so what generates the new sms event? Jun 18 15:03:21 cant you fire that instead? Jun 18 15:03:36 nopes, there's a security mechanism against it Jun 18 15:04:04 to prevent sms spoofing Jun 18 15:04:13 you can edit the db yes Jun 18 15:04:14 i suppose you could create a new event type and setup the sms notification icon to listen for it maybe? Jun 18 15:04:22 but you cannot make the device think that a new sms has come Jun 18 15:04:34 its my device ill do what i want damnit! :) Jun 18 15:04:44 :P Jun 18 15:05:20 there are a few other funny things with the sms implementation too :P Jun 18 15:05:40 like the messenger application coversation list view is cached Jun 18 15:05:54 so if you again edit the db directly the list is not updated :P Jun 18 15:06:15 oddly enough it observers changed to the phones uri to refresh that (and not the sms uri!) Jun 18 15:06:39 *changes Jun 18 15:06:54 didnt get the last bit? Jun 18 15:07:17 oh the phone content provider uri as opposed to the sms one? Jun 18 15:07:43 yep Jun 18 15:08:24 aye thats an odd one, thought they'd have kept it consistant Jun 18 15:08:51 might be a case of a small "feature" not being communicated between devs Jun 18 15:09:04 dunno Jun 18 15:09:08 thankfully its open source Jun 18 15:09:15 otherwise i'll go mad trying to figure this out :P Jun 18 15:09:31 so we can all jump up and down shouting "zomg!!! CONSISTANCY!!! sort it!!!" hehe Jun 18 15:10:28 Leeds: hey soz Jun 18 15:10:39 Leeds, ah well after night market you could hit a bar surely? :) Jun 18 15:10:54 the one im thinking of is not goign to cost me anythign til a month or so so id be ok there Jun 18 15:11:03 im always tempted further afield after tho lol Jun 18 15:11:45 Leeds, im in the centre pretty much so i know some good land marks to meet, its just and where they intersect to get aroudn taipei so well easy Jun 18 15:12:12 asians love their night markets, its prob the one right next to me, i took vol there when he visited Jun 18 15:12:21 I downloaded some code that has res/drawable/snowflake.png and it uses it with "mSnowflake = BitmapFactory.decodeResource(mContext.getResources(), R.drawable.snowflake);" ... when I put a file in res/drawable/player.png it changes the app to use that instead of the snowflake....why is this? Jun 18 15:12:25 tonghua tourist night market Jun 18 15:12:30 shilin? Jun 18 15:12:35 ah no not that one Jun 18 15:12:39 thats the really mega one Jun 18 15:12:47 plan is to go there Jun 18 15:12:49 quite a few train stops from taipei Jun 18 15:12:53 awesome its worth seeing Jun 18 15:13:00 want to come? Jun 18 15:13:05 saw a few android devices today infact Jun 18 15:13:13 what time u going? Jun 18 15:13:36 problem about staying out late is that we're staying at a friend's place - getting there isn't going to be amazingly easy in the first place, and we don't really want to be back late and wake them up Jun 18 15:13:54 bnovc: hmm are you doing a refresh on your res dir? Jun 18 15:13:59 otherwise reosurces wont update Jun 18 15:14:10 presuming ur in eclipse btw Jun 18 15:14:13 ohhhh. i bet its because it was using some offset Jun 18 15:14:15 also that snowflake template is good ;) Jun 18 15:14:17 the concert is 7:30, reckoning it'll finish around 10 Jun 18 15:14:17 i'm not using eclipse Jun 18 15:14:35 Gaz: i did `ant debug` and then `adb install -r pkgname` Jun 18 15:14:46 after i modified a source file and recompiled, it went back to the snowflake Jun 18 15:14:52 bnovc, weird it defintiely shoudl reference the right file if you edit the name Jun 18 15:15:04 try uninstalling Jun 18 15:15:06 just to see Jun 18 15:15:07 then reinstall Jun 18 15:15:10 rm -rf gen Jun 18 15:15:25 (that was advice, not me typing into the wrong window) Jun 18 15:15:27 i didn't edit a name, i just had put a 2nd file in the res directory Jun 18 15:16:08 ah, so deleting gen clears some compile cache? Jun 18 15:16:11 ah so R.drawable.snowflake needs to be R.drawable.player Jun 18 15:16:13 right Jun 18 15:16:16 i would have assumed it did that automatically but i guses now Jun 18 15:16:45 yeh in eclipse i constantlyn eed to refresh to force it to re-gen the r.java Jun 18 15:16:46 Gaz: well, i put player.png in there without changing any source, but it had still changed Jun 18 15:17:01 well it isnt goign to draw player unless u reference it Jun 18 15:17:09 all it will do is include it in the apk Jun 18 15:17:28 no...thats what the problem was... it *did* draw player without referencing it Jun 18 15:17:44 wow Jun 18 15:17:47 public static final int snowflake=0x7f020001; Jun 18 15:17:51 code fairies are on your side today! Jun 18 15:17:56 i think its because of that though, because player was now at that location Jun 18 15:17:58 they usually work against me Jun 18 15:18:03 ah Jun 18 15:18:08 could be some mad shit Jun 18 15:18:13 but i had asssumed that if res/ changed, it would regen R.java Jun 18 15:18:24 i dont use it from cli Jun 18 15:18:26 so i dont know Jun 18 15:19:12 I guess it should do, but R.java is in $PROJECT/gen, so delete it and it'll be regenerated for sure Jun 18 15:19:44 indeed..well thanks Jun 18 15:19:47 Leeds, i doubt i will go to shilin at 10 since itll be well late by the time we get back Jun 18 15:19:58 prob be after midnight Jun 18 15:20:04 i`ll be in bliss no doubt Jun 18 15:20:09 heh, okay Jun 18 15:20:11 if u fancy it on the way back u can call me Jun 18 15:20:19 how long u here for Jun 18 15:20:24 just the weekend Jun 18 15:20:35 cool Jun 18 15:20:39 leavin sunday? Jun 18 15:20:47 got to be back at work on Monday morning, yeah Jun 18 15:20:58 wow fleeting visit for sure Jun 18 15:21:01 :-) Jun 18 15:21:14 not as fleeting as yours :-P Jun 18 15:21:20 my advice would be beers after night market, but if i know asian girls itll be early night syndrome :) Jun 18 15:21:32 yeh i had one night in the airport drinking 711 beer and left lol Jun 18 15:21:43 oh and i slept on some grass and lapsed the planes using my g1 Jun 18 15:21:56 yeah, the plan is pretty fixed at this point: she goes to the concert at 7:30, I go and have a few beers, we meet up afterwards and go to the market Jun 18 15:22:02 only got one night to get there, see Jun 18 15:22:35 ahh Jun 18 15:22:39 so youre not goign to concert Jun 18 15:22:46 so we could meet during that really Jun 18 15:22:55 can get you a beer on my tab :) Jun 18 15:23:10 i can show you my entry for ADC2 Jun 18 15:23:14 not showed any devers yet Jun 18 15:23:15 :) Jun 18 15:23:27 cool Jun 18 15:23:48 eh i wouldn't, ADC2 entries are not supposed to be public until after the sign up date :o Jun 18 15:23:56 sorry, yes, not being clear - I'm not going to the concert - I don't love her enough to go to a j-pop concert with her :) Jun 18 15:24:10 digitalspaghetti: call us collaborators, then it's fine Jun 18 15:24:59 and if you wanted to come to the market for 10-12ish, you'd be welcome Jun 18 15:33:29 I need an ext2.ko for JF's 2.6.27-00392-g8312baf #2... can someone tell me where to find one? Jun 18 15:42:29 maybe it's built-in... Jun 18 16:16:06 i thought this would be simpler than it apparently is. I have an activity with a view inside of it and I want to get cursor position on click. I think I use View.onClickListener, but how would I get the x/y pos? Jun 18 16:17:18 oh, maybe i want ontouch instead Jun 18 16:38:15 Hi all, I want to detect HOME button press, I read on android-developers newsgroup that it cannot be done. Someone knows a workaround? tnks Jun 18 16:59:25 salentinux, no, it cannot be done. Jun 18 16:59:40 salentinux, unless you write a complete home screen replacement Jun 18 17:03:25 KNY: tnks, but I don't want my game to go in paused mode everytime the user accidentally presses the HOME button while playing. I'm considering the G1 phone with trackball. Jun 18 17:04:32 essentially: too bad. Jun 18 17:05:52 I really don't understand this "feature" of android. Jun 18 17:06:05 salentinux, what's the problem? Jun 18 17:07:09 salentinux, you simply save your state and rebuild it when they come back. Problem solved. Jun 18 17:07:21 salentinux: how often does the user accidentally press the home button? Jun 18 17:08:55 andrewoid: it depends by the user fingers Jun 18 17:09:36 salentinux, the "feature" exists so that app developers cannot lock a user out of switching applications Jun 18 17:17:24 salentinux, what would you like your game do if a call came in? just keep playing? Jun 18 17:17:45 your game should be ready for the user to leave the application at any point in the lifecycle Jun 18 17:17:56 KNY:no, it goes in paused mode Jun 18 17:18:28 salentinux, so why can't you persist that for the home button? Jun 18 17:19:45 Because I think it would be better to leave developers also the use of the home button Jun 18 17:19:48 just that Jun 18 17:19:59 as any other keys Jun 18 17:20:25 salentinux, the only key you can trap is the Back one Jun 18 17:20:37 call/end/home are reserved Jun 18 17:24:24 anyone knows if it's possible to get turn by turn directions outside of using the default google maps? Jun 18 17:33:03 chouman82: there's telenav Jun 18 17:33:07 but it's $10 a month and sucks Jun 18 17:33:18 ALK (where I work) is coming out with an android version "very soon" Jun 18 17:33:19 oh Jun 18 17:33:31 vol, so get off IRC and get to work! Jun 18 17:33:32 :) Jun 18 17:33:43 very soon Jun 18 17:33:45 hurry up Jun 18 17:33:49 i want to use it! Jun 18 17:33:51 KNY: I'm on irc because I need to figure out if I can get aapt to put R.java in a different location Jun 18 17:34:07 or if I can run aapt before the compile phase, and then just copy the R.java generated Jun 18 17:34:16 why do you need to move it? Jun 18 17:34:25 because we're making about 4 builds of the same thing Jun 18 17:34:34 with different package names and tiny changes, for licensing different regions Jun 18 17:34:57 so u guys will be providing open apis? Jun 18 17:35:06 no, sorry Jun 18 17:35:09 oh Jun 18 17:35:11 hmm.. could you set up ant tasks to replace package names and stuff? Jun 18 17:35:17 we're pretty much a native C app with a tiny java layer Jun 18 17:35:21 KNY: I'm looking into this Jun 18 17:35:26 i was thinking more of an api service for direction look ups Jun 18 17:35:35 yeah, no, sorry Jun 18 17:35:36 vol: by changing the package name, the R file should be generated in the new package location Jun 18 17:35:43 herriojr: yes, exactly the problem Jun 18 17:35:55 ah, so that's what you don't want Jun 18 17:35:58 yes Jun 18 17:36:01 want to place R.java in one place Jun 18 17:36:04 yeah, you can generate it manually and stick it in with the build Jun 18 17:36:07 our build guys do that Jun 18 17:36:08 and make 4 different apks from the same build machine Jun 18 17:36:13 without making 4 projects Jun 18 17:36:21 vol, would you mind if I pinged you later for some JNI help? I haven't really started yet (other than hello world) but this is the first time I've done JNI :) Jun 18 17:36:30 KNY: don't do it @!# Jun 18 17:36:33 wait for the NDK :p Jun 18 17:36:35 hopefully I won't need any help, but that remains to be seen Jun 18 17:36:42 romainguy__, will it be out before ADC2? Jun 18 17:36:43 KNY: I can give some general JNI help, but actually compiling I can't really help with Jun 18 17:36:50 wait for the NDK or play with the android source Jun 18 17:36:51 vol, I've got compilation down Jun 18 17:37:33 romainguy__, believe me, JNI is my absolute last resort. I had some other ideas, but you guys did some quirky stuff with your APIs to block me out :) Jun 18 17:37:48 KNY: what in particular do you need help with? Jun 18 17:38:07 I'll probably just point you to JNI docs but I might be able to help for quirky issues Jun 18 17:38:09 KNY: you should wait for the full terms and conditions before doing anything Jun 18 17:38:26 I wouldn't be surprised if the ADC terms forbid the use of private APIs Jun 18 17:38:34 vol, hopefully nothing. I had some questions when trying to get hello world started but I got those sorted. I pinged you then but you weren't around anyway haha Jun 18 17:38:53 romainguy__, I didn't touch private APIs. And this particular API isn't private, anyway. Jun 18 17:39:02 KNY: if it's native, it's private Jun 18 17:39:46 romainguy__, anything native is private? Jun 18 17:39:54 right now, yes Jun 18 17:39:56 anything native is subject to arbitrary change Jun 18 17:40:04 so you very well may break in future builds Jun 18 17:40:05 ask vol what happened with OpenGL in Cupcake :) Jun 18 17:40:08 yeah Jun 18 17:40:14 haha Jun 18 17:40:15 we statically linked against the opengl lib Jun 18 17:40:18 it's not that we don't want you guys to use native code Jun 18 17:40:19 lib name changed Jun 18 17:40:23 bam, we no longer launch Jun 18 17:40:27 it's just that we want to have APIs we know we won't change before you do so Jun 18 17:40:29 hence the NDK Jun 18 17:40:39 unfortunately, you're not exposing anything fun : ( Jun 18 17:40:40 which will guarantee a few public APIs Jun 18 17:40:42 just libm and libz iirc Jun 18 17:40:56 what's libm? Jun 18 17:40:56 vol: there might be OpenGL Jun 18 17:41:05 p.s. anger for not implementing tzset Jun 18 17:41:13 romainguy__: excellent. Jun 18 17:41:17 KNY: math Jun 18 17:41:23 romainguy__, do you mind if I /msg to see if you have any ideas on how I might accomplish this another way? Jun 18 17:41:26 vol, oh, duh. :) Jun 18 17:41:26 vol: emphasis on "might" :) Jun 18 17:42:03 heh Jun 18 17:43:00 because if the deadline is sometime in August and we shouldn't start until T&C are posted, then that doesn't exactly leave a whole lot of time Jun 18 17:44:05 KNY: What are you doing anyway Jun 18 17:44:13 /msg me if you'd prefer Jun 18 17:44:23 will do Jun 18 18:42:03 * cj crosses his fingers and runs debootstrap/debootstrap --second-stage Jun 18 18:49:10 can anyone point me to a good tutorial on how to bring up the email program? I would like to put a 'contact me' button on my view and then when the user clicks it have an e-mail message with my email already filled int pop up Jun 18 18:49:48 just use a mailto: url :P Jun 18 18:50:16 I would be shocked if mailto:foo@bar.com as a URI in an intent didn't bring up the mail client Jun 18 18:52:20 let me give that a try, thanks Jun 18 19:12:59 I am looking for a pointer on how to create a listview that uses seperators to group by date but is based on a cursor Jun 18 19:23:19 Isn't eclipse supposed to auto generate the R.java file? I dragged an EditText onto my layout, the xml clearly reads 'android:id="@+id/textbox"', R class is however missing an 'id' subclass, meaning I can't control the editbox Jun 18 19:24:59 http://www.anddev.org/email_send_intent_intentchooser-t3295.html this site has a good example on how to use intents to bring up an e-mail client for the user Jun 18 19:25:12 Did you save the file after you dragged the edit box to it? Jun 18 19:25:59 GeraldNunn: I did Jun 18 19:26:53 It works fine for me, any chance the file has an error in it? Also, is it under the layouts directory? Jun 18 19:28:18 clrscrn: refresh your project. Jun 18 19:28:22 the R file autogenerates. Jun 18 19:28:29 but, if you have errors, it will not generate (fix them first) Jun 18 19:28:29 vol, GeraldNunn: it seems to work out of the blue now Jun 18 19:28:36 without changing anything, or clicking anything, heh Jun 18 19:28:57 anyone know if the LogCat logs are rotated? Can I view a log from yesterday? Jun 18 19:29:02 no Jun 18 19:29:10 they last as long as the device is active Jun 18 19:29:29 so if the power is lost, it starts a new LogCat Jun 18 19:29:35 or restarts, etc Jun 18 19:29:41 And it could just be me, but it feels like Eclipse is painfully slow compared to most other IDE's I've used (MSVS, Code::Blocks, Geany) - especially with 'intellisense' Jun 18 19:29:52 that is my understanding Jun 18 19:30:13 clrscrn: eclipse is a little bloated, this is true. A lot of the slowdown is improved in eclipse 3.4 however Jun 18 19:30:19 so if the device is running for 3 days, say, would the LogCat be 3 days long or do you think there is some trimming that goes on? Jun 18 19:30:42 there is some trimming as well, you only get the last N lines Jun 18 19:30:48 again, if I recall correctly Jun 18 19:31:07 ah ok. thanks. my program crashed yesterday morning and i haven't had a chance to look and see why it crashed Jun 18 19:31:16 vol: I am running 3.4.1, seems pretty slow to me still.. guess I'll just have to deal with it :P Jun 18 19:31:38 i thought 3.4 wasn't released yet Jun 18 19:31:40 there are a few things you can do to try and optimize. Jun 18 19:31:44 err Jun 18 19:31:48 you can always change the max heap size, for example Jun 18 19:31:48 3.5... nvm Jun 18 19:31:57 that will prevent some paging issues if you're using too much memory Jun 18 19:32:27 i think i'm going to implement this remote stack trace code into my app Jun 18 19:32:54 I am looking for a pointer on how to create a listview that uses seperators to group by date but is based on a cursor, would prefer not to use ExpandableListView since I don't want this to be expanded/collapsed by the user Jun 18 19:35:18 GeraldNunn: sorry, don't really know Jun 18 19:36:20 the instructions say to drop this .jar into my android project. where exactly do i put it? Jun 18 19:36:27 in the root of the project? Jun 18 19:37:49 oh .. BeBoo_! you asked me soemthing last time, and I told you to send me a mail, so that I wouldn't forget. you didn't, I did :P Jun 18 19:38:03 BeBoo_: what was it again, and did you solve it? ;) Jun 18 19:38:04 oh .. sammyF! Jun 18 19:38:23 sammyF: using a textview in a dialog Jun 18 19:38:32 so i can linkify Jun 18 19:38:44 BeBoo_: ahh ... right. you got it? or do you still need help? Jun 18 19:38:52 haven't had time to plat with it yet Jun 18 19:38:53 play* Jun 18 19:39:41 so... i still need help if you are free Jun 18 19:41:39 i'm working in implementing remote stack trace atm Jun 18 19:41:52 BeBoo_: free is a big word, but yeah ;) Jun 18 19:42:43 can do it another time, no rush Jun 18 19:45:34 BeBoo_: paste-binning stuff for you .. gimme a chan Jun 18 19:45:37 ce ;) Jun 18 19:45:50 np ty Jun 18 19:48:55 BeBoo_: you got a PM ;) Jun 18 19:51:35 ty Jun 18 19:52:41 BeBoo_, have you looked at the android-remote-stacktrace project?\ Jun 18 19:53:01 KNY: that's what i'm using Jun 18 19:53:14 (side note: using remote stack traces is a huge pain in the ass because you have to register it on every thread you create) Jun 18 19:53:17 i have it registered... just trying to cause an exception Jun 18 19:53:28 oh? not just oncreate? Jun 18 19:53:30 BeBoo_, what I do is just throw in "int i = 1 / 0; Jun 18 19:53:31 " Jun 18 19:53:42 i have to register it on my run() as well? Jun 18 19:53:47 BeBoo_, well, you have to do it on every activity Jun 18 19:53:56 ok, every activity is fine Jun 18 19:54:02 BeBoo_, it's on a per-thread basis, so I don't think it will work for every thread Jun 18 19:54:06 i'm not doing it before every try{} tho Jun 18 19:54:06 lol Jun 18 19:54:19 BeBoo_, no, just once is fine :) Jun 18 19:54:44 lemme give this a shot =] Jun 18 19:55:33 should i put the i =... outside or inside a try{} or doesn't it matter? Jun 18 19:56:05 unless you're catching DivideByZeroException it won't matter Jun 18 19:56:22 k Jun 18 19:56:43 * BeBoo_ crosses fingers Jun 18 19:58:16 didn't work Jun 18 19:58:22 it says registering and looking for... Jun 18 19:58:30 but nothing is sent to my server or email Jun 18 20:01:23 http://paste2.org/p/271459 Jun 18 20:03:00 BeBoo_, http://www.beboobailey.info/trace.php Jun 18 20:03:03 there's your problem Jun 18 20:03:17 lawl Jun 18 20:03:25 stupid me, i put it on the old server Jun 18 20:03:28 ty Jun 18 20:03:52 :) Jun 18 20:38:55 KNY: still no emails Jun 18 20:39:04 changed the address to a temp address that works Jun 18 20:39:50 I assume mail() works on your server? Jun 18 20:40:00 BeBoo_, is it writing the log files? Jun 18 20:40:14 yes... also looked in the folder where the php script stores them Jun 18 20:40:36 the php script or the program? Jun 18 20:41:07 the script Jun 18 20:41:14 the program has nothing to do with sending email Jun 18 20:42:08 well yeah but i don't think it's even getting to the script because i've noticed that anytime sometihng uses a net address, i see "iNetAddress" appear in the logcat with dns resolve of the domain... wouldn't I see one for www.beboobailey.info? Jun 18 20:42:59 try editing the script to remove the check for $_POST Jun 18 20:43:04 (just comment it out) Jun 18 20:43:14 and going there in your browser should generate a blank log file and send a blank email Jun 18 20:44:46 it did Jun 18 20:44:57 -trace--1245357835-2048 Jun 18 20:45:08 hmm Jun 18 20:45:23 you're sure you're triggering an exception? :) Jun 18 20:45:39 mmhmm Jun 18 20:45:51 look at my pastebin before... Jun 18 20:46:02 java.lang.ArithmeticException: divide by zero Jun 18 20:46:26 hmm Jun 18 20:46:34 it would send it after the exception Jun 18 20:46:41 what about this... 06-18 16:45:30.344: DEBUG/com.nullwire.trace.ExceptionsHandler(3688): Looking for exceptions in: /data/data/com.xishells.android.UrbanDict/files Jun 18 20:46:56 looking in a files directory... am i supposed to be saving something there? Jun 18 20:48:09 http://paste2.org/p/271559 Jun 18 20:48:32 BeBoo_, no, it will write the exceptions there Jun 18 20:50:05 i have the exception being thrown in a try{}, i also tried throwing an exception outside the try{} Jun 18 20:50:14 no luck either way Jun 18 20:50:58 hrm... do i need to call ExceptionHandler.submitStackTraces(); ? Jun 18 20:51:59 that didn't do anything either Jun 18 20:52:03 brb for 10 mins Jun 18 20:55:02 can I run ddms screen capture via command-line....I want to make a video capture tool Jun 18 20:56:19 i'm certain that you can, even if you must hack it together Jun 18 20:56:24 look through ddms source Jun 18 20:57:06 there's a `screenshot` binary in the source tree Jun 18 20:57:06 kk Jun 18 20:57:22 I have no idea to use it, just that it's there :) Jun 18 21:13:49 back Jun 18 21:14:30 i dunno why this isn't working... i'll play with it later Jun 18 21:14:34 thanks for the help, KNY Jun 18 21:35:44 \msg bdodson Jun 18 21:38:39 no : ( Jun 18 21:38:45 fail Jun 18 21:38:49 Since I updated to 1.5, my eclipse doesn't pair with my device until I run an adb kill-server && adb devices as root... does anyone know why? Jun 18 21:42:08 http://developer.android.com/guide/developing/device.html Jun 18 21:42:11 scroll to the bottom Jun 18 21:44:45 huh, I have that done, but as 50-android.rules Jun 18 21:44:49 is that a problem? Jun 18 21:48:01 I don't know ._. Jun 18 21:48:24 I can tell you that android rules \m/ >:O \m/ Jun 18 21:49:15 bdodson: try renaming it as a 51 rule Jun 18 21:49:29 sure Jun 18 21:49:40 we'll see if it works on the next reboot I guess :) Jun 18 21:51:00 bdodson: I assume you're using ubuntu 9.04, and it won't work with a 50- rule anymore. does with a 51 though Jun 18 21:51:55 okay awesome. Jun 18 21:52:02 I am on 9.04 Jun 18 21:52:07 what changed to break it? Jun 18 21:53:20 ahh, the original post that had the kill-server && devices tip has an update saying the same. Thanks for the help. Jun 18 21:53:48 np. I don't know what they changed, sorry Jun 18 22:11:42 jsharkey: ping Jun 18 22:12:06 romainguy: ping Jun 18 22:12:23 yes? Jun 18 22:12:51 romainguy: can u help me understand how onInterceptTouchEvent and onTouchEvent work together? Jun 18 22:12:58 not right now Jun 18 22:13:01 oh Jun 18 22:13:02 read the javadoc :) Jun 18 22:13:14 i tried but still not completely understand it Jun 18 22:13:16 =( Jun 18 22:18:53 howdy Jun 18 22:19:27 romainguy__: how about a "nice try" price at the ADC2? please??? ;) Jun 18 22:22:16 romainguy_: i am trying to implement something similar to the stirke through gestrue that jsharkey has in his CompareEverywhere and just wondering why he needs a wrapper around the listView and not just override the interceptTouchEvent and onTouchEvent within the listview Jun 18 22:24:28 does the SDK have a nemulator? Jun 18 22:25:53 locks: yes Jun 18 22:26:16 hmm Jun 18 22:26:19 * locks starts the install Jun 18 22:26:37 http://developer.android.com/guide/developing/tools/emulator.html Jun 18 22:33:26 I'll have to wait until after my exams season Jun 18 22:33:31 then it's hacking time Jun 18 23:17:35 hello? Jun 18 23:18:11 i have a question about decorViews for windows Jun 18 23:18:48 ? Jun 18 23:19:47 just ask... Jun 18 23:19:56 I'm interested in using Cursors to automatically populate a list view, but all the tutorials I've found have the list looking rather drab, the list is hard to tap because the rows are small Jun 18 23:20:03 sorry new irc client Jun 18 23:20:15 i have this ugly black line that appears Jun 18 23:20:25 meanburrito920_: in the layout you provide, make sure the outer-most view has android:minHeight="?android:attr/listPreferredItemHeight" Jun 18 23:20:26 whenever i use window.decorView() Jun 18 23:20:43 and add it into an actvitiy group Jun 18 23:20:45 kingkung: can you show us with a screenshot? Jun 18 23:20:49 sure Jun 18 23:20:57 also, can you show us how you are adding it in code? Jun 18 23:21:19 know how onTouchInterceptEvent and onTouchEvent interact with each other? Jun 18 23:22:37 absolutely Jun 18 23:22:41 just give me one sec Jun 18 23:22:58 this is something that popped up in 1.5 that didn't happen in 1.1 or before Jun 18 23:24:55 jasta, what about font size? Jun 18 23:25:48 meanburrito920_: typically your TextViews would use android:textAppearance="?android:attr/textAppearanceMedium" or Large. Jun 18 23:25:56 emulator loading Jun 18 23:25:57 Medium I think is what most Google apps use. Jun 18 23:26:00 okay done Jun 18 23:26:29 what site do i use to upload a photo again? Jun 18 23:26:29 no, Large actually seems to be. Jun 18 23:26:54 kingkung: picasa would be one idea... Jun 18 23:29:05 jasta, can you use html tags in the text? for example, could I make it look like the regular list contacts menu on the phone? Jun 18 23:29:34 the contacts list is created using textAppearanceMedium or Large. Jun 18 23:29:40 i assure you, they arent using HTML Jun 18 23:29:44 and neither should you Jun 18 23:29:51 nor should you ever specify font sizes or colors directly Jun 18 23:30:02 those things should always come from ?android:attr/... Jun 18 23:30:33 unless of course you wish your app to not look like standard apps for wahtever reason Jun 18 23:30:41 http://devenv.lumitrend.com/Picture2.png Jun 18 23:31:20 that effect was accomplished by the title that was in the other activity Jun 18 23:31:38 apply a theme to that activity which sets true Jun 18 23:32:04 the Launcher does this, which you can download from android.git.kernel.org Jun 18 23:32:09 look at the theme in AndroidManifest.xml and themes.xml Jun 18 23:32:54 also, look at hierarchyviewer to ensure that i am correct that its the window title :) Jun 18 23:32:58 and not something else Jun 18 23:33:06 that's it? Jun 18 23:33:08 gotta run, bb in an hour Jun 18 23:33:09 sweet Jun 18 23:33:11 ty Jun 18 23:33:59 Using the PackageManager, is it possible to determine the package name of your current package? Jun 18 23:34:29 vol: there are ways to do it, but a better question is how is it that you dont know your package? Jun 18 23:35:38 We will be making multiple packages for the marketplace, differentiated only by licensing info Jun 18 23:35:57 rather than making four seperate projects, I'd rather just change the package name for each, wrangle the R.java file, and use reflection of some sort to determine who we are Jun 18 23:36:11 vol: this should really be determined by a build property then. Jun 18 23:36:24 but if you insist on doing it a stupid way, Context#getPackageName Jun 18 23:36:37 jasta, don't think it's the window title... Jun 18 23:36:48 kingkung: well, hierarchyviewer will tell you what it is. spend time learning this tool Jun 18 23:36:49 i just set requestWindowFeature(FEATURE_NO_TITLE) in the subactivity Jun 18 23:36:57 jasta: we have to have multiple package names to have multiple versions on the marketplace Jun 18 23:37:05 but it is possible to remove it, right? Jun 18 23:37:10 all i care about Jun 18 23:37:25 vol: true. Jun 18 23:37:26 jasta, how would i do subtext in my lists, such as what you see in the settings list and the app store lists and the contacts list? Jun 18 23:37:36 kingkung: yes, but you gotta figure out what it is before you can remove it. Jun 18 23:37:51 course, thanks Jun 18 23:37:55 meanburrito920_: a variety of ways. PreferenceActivity might make sense for you if you want to mimic settings Jun 18 23:38:08 http://pastebin.com/d532d9343 Jun 18 23:38:10 otherwise, just use a simple_list_item_2 or make your own layout Jun 18 23:38:13 just for reference Jun 18 23:38:17 meanburrito920_: its very simple, spend some time looking at ApiDemos. Jun 18 23:38:28 and existing app source code, preferrably applications written by Google Jun 18 23:38:31 jasta, thank you Jun 18 23:40:18 meanburrito920_: if it seems like its harder than it should be, you're doing something wrong. Jun 18 23:40:36 anyway, i really gotta go now Jun 18 23:40:38 later folks Jun 18 23:56:19 hrm Jun 18 23:56:32 I want to create a database in android 1.5 Jun 18 23:56:49 am I looking in the right place http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html Jun 18 23:57:28 because I dont see how to pass ddl in the create statement Jun 18 23:58:55 check out the notepad tutorial Jun 18 23:59:33 ta Jun 19 00:21:42 is there any way to kill running apps? Jun 19 00:29:24 use adb Jun 19 00:29:37 or through eclipse Jun 19 00:29:46 prashast, this was already answered in #android (which is why I reprimanded him for crossposting) Jun 19 00:29:57 oh ok Jun 19 00:30:18 he did it on accident though so no worries :) Jun 19 00:30:25 :) Jun 19 00:30:26 yeah, sorry didn't mean to, but I got my answer Jun 19 00:30:36 thanks though :) You guys are so nice :) Jun 19 00:40:31 hey guys Jun 19 00:40:37 anyone know how to set a view's borders? Jun 19 00:40:42 or unset a border? Jun 19 00:42:24 kingkung do you want an invisible border or visible? Jun 19 00:42:36 invisible Jun 19 00:42:47 use margin Jun 19 00:42:57 in the higher layout Jun 19 00:42:58 android:marginTop? Jun 19 00:43:09 just margin Jun 19 00:43:12 it sets for all 4 Jun 19 00:43:21 how to do that programatically? Jun 19 00:44:17 setMargin Jun 19 00:44:23 you need to give all 4 in that i think Jun 19 00:47:12 okay, i'll try that Jun 19 00:47:20 http://devenv.lumitrend.com/Picture2.png Jun 19 00:47:29 trying to get rid of that black line (it's part of a framelayout i think) Jun 19 00:48:57 kingkung, looks like the scroll shadow that automatically appears on scrolling elements Jun 19 00:50:23 I'm trying to use TelephonyManagers getLine1Number() method, but it is not returning anything... is it only present on some phones/operators or similar? or am I doing something wrong? (getting IMEI works fine) Jun 19 00:52:46 Rexxars: my phone, under About phone > status, shows "Unknown" as my phone number, so if that uses the same method, you may be right about phones/operators Jun 19 00:57:02 ah, seems mine is doing the same Jun 19 00:57:04 thanks Jun 19 00:59:53 what's the best way to figure out which type of connection the phone will use when doing data traffic? (wifi, 3g, edge, gprs and the like) Jun 19 01:01:58 TelephonyManagers getNetworkType will give me the radio type used, but it won't tell me if wifi is in use or not.. and WifiManagers getConnectionInfo is returning me the SSID of a previously used wifi network even when not connected Jun 19 01:02:32 Rexxars: ConnectivityManager has a getNetworkInfo method, that returns a NetworkInfo object you can query for it's type, that gives TYPE_MOBILE or TYPE_WIFI (based on the docs, I haven't used it) Jun 19 01:03:26 thanks, I'll give that a shot Jun 19 01:08:41 when people write apps that retrieve info from websites, are they parsing the raw HTML? or is there some other trickery involved? isn't parsing HTML pretty expensive? Jun 19 01:11:03 theres so many ways to do it, I guess it depends on the programmer Jun 19 01:11:27 I guess a smart programmer might proxy it through his own server, parsing and caching the results there before sending it to the client Jun 19 01:13:09 that sounds like a good plan, offload the work, thanks Jun 19 01:14:53 thanks for the tip on the ConnectivityManager, that did the trick :-) Jun 19 01:15:44 cool, np :) Jun 19 01:16:08 yawn Jun 19 01:34:47 KNY: you there? Jun 19 01:35:46 or Jun 19 01:35:52 vol: you there? ;) Jun 19 01:37:27 yeah Jun 19 01:37:40 KNY: can I bother you a minute? Jun 19 01:38:00 sure Jun 19 01:38:10 KNY: I need an aesthetical ... point of view ;) Jun 19 01:38:22 haha, I'll give it a shot Jun 19 01:38:25 what's up? Jun 19 01:39:03 KNY: just sent you the apk Jun 19 01:39:52 PM .... you know ADC2 and so forth Jun 19 01:53:38 Can I listen for outgoing call? Jun 19 01:53:54 i mean, whenever user makes an outgoing call, my code get invoked? Jun 19 02:01:04 you want to spy? :) Jun 19 02:05:49 s1516: yes, there's a broadcast intent for that. see Intent class doc. Jun 19 02:08:53 can you pls tell me what is the svn url for api sample ? Jun 19 02:09:06 http://d.android.com/ :) Jun 19 02:09:22 svn? pssh :) Jun 19 02:09:29 git for life Jun 19 02:09:36 i recall there is a specified svn project for android sample Jun 19 02:09:50 why isn't there a shortcut subdomain for s.android.com? Jun 19 02:09:56 (pointing to source) Jun 19 02:10:15 s1516, just read the docs; it's really straightforward Jun 19 02:22:23 thank you **** ENDING LOGGING AT Fri Jun 19 02:59:58 2009