**** BEGIN LOGGING AT Tue May 12 02:59:57 2009 May 12 03:01:42 this guy michael from tactel is doing a whole series. i think hes planning a demo for google io of his java engine. May 12 03:01:55 ooooh May 12 03:03:07 thanks. ill try the and-dev group May 12 04:19:24 I've installed the android plugin for eclipse on a netbook and half the run configurations --> target screen is hidden, I cant scroll to the section to add command line options anyone know a work around? May 12 04:30:39 on my dualhead it spans the screens kinda wierdly and isn't resizable May 12 04:30:42 not sure how they did that May 12 04:33:24 pretty crappy ide May 12 04:33:48 well tbh you're using an ide May 12 04:34:01 if you have >= 1280x1024 like anyone with a half-decent computer it's quite nice May 12 04:34:06 s/ide/netbook/ May 12 04:34:15 I wouldn't go so far as to say crappy ide May 12 04:34:36 it's got a quirk or two.. it used to have more May 12 04:35:03 aidl works on my mac now.. kinda stoked on that May 12 04:35:21 sure but why not make the screen resizable or scrollable, that's just crappy oversight, i'm sure its an eclipse thing May 12 04:36:03 who knows May 12 04:36:20 it's free May 12 04:36:33 i dont know anything about swt but i find these kinds of quirks in all eclipse products May 12 04:36:45 there's more than one? May 12 04:37:17 I think they're planning to do a netbeans and an intellij plugin May 12 04:37:47 you might give cmd line a shot if you're on a netbook tho May 12 04:38:07 might be better use of the real-estate May 12 04:38:15 and I doubt the emulater works to good on there May 12 04:39:14 ya im going thru the sdk right now ..... May 12 04:40:17 the emulator works fine, a guy at work is using it on a netbook, it just has to be run in noscreen mode May 12 04:40:49 eh? May 12 04:41:09 i only use the netbook for travels was hoping i could do a bit of stuff on the plane May 12 04:41:28 sorry mean noskin May 12 04:41:39 I can't imagine eclipse being to brilliant on a little itty bitty screen May 12 04:41:54 can fullscreen each pane though so I guess it might be workable May 12 04:42:37 thats actually each eclipse pane? how do u do that? May 12 04:43:02 double-click on the title tab May 12 04:43:15 same to shrink it back into the view May 12 04:44:00 see eclipse ain't so bad May 12 04:44:36 but under run configurations --> target is there anyway to resize that screen May 12 04:45:36 that one I can resize ok May 12 04:45:58 it's when I actually it run that I get the big wide crazy window May 12 05:06:13 Good Morning..!! May 12 05:26:03 hi guy May 12 05:26:04 s May 12 05:26:16 how do I refer to a string in my java code that I defined in strings.xml? May 12 05:28:23 A lot of the android stuff takes ints instead of strings, you can just pass R.whatever there May 12 05:28:32 otherwise, iirc you use the ResourceManager May 12 05:29:14 hurmm, maybe i'm trying to do things the wrong way May 12 05:29:20 in this method May 12 05:29:21 public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) { May 12 05:29:30 i am trying to figure out what preference the user clicked on May 12 05:30:21 preference seems to be just a string that i declared in preferences.xml May 12 05:31:57 yeah, you can probably use getKey in preference May 12 05:32:57 ok, cool, that will return the key May 12 05:33:09 thanks :) May 12 06:19:11 Does anyone know how to change the default size of the XML layout preview panels in Eclipse? May 12 06:19:52 how would i go about saving a GridView when im switching between landscape and portrait views? May 12 06:19:57 i always lose all the contents of the adapter May 12 06:23:59 ObsidianX What kind of adapter? May 12 06:24:44 custom ImageAdapter May 12 06:25:08 like the one in the Hello Views example for GridView May 12 06:25:45 only i made it dynamic and put a Vector of ImageViews in the class May 12 06:27:01 hold on, let me see how it works May 12 06:28:53 I think what I would do is to have the custom adapter implement Parcelable, then save/restore it that way May 12 06:29:37 here's an example for how to save/restore: http://stackoverflow.com/questions/151777/how-do-i-save-an-android-applications-state May 12 06:35:09 I have started an LED notification from the Notif Manager. Does someone know if there is a possibility to catch the event when the users pulls down the status bar which kills my LED notification? May 12 07:26:06 Does anyone know how to change the size of the XML layout preview panels in Eclipse? May 12 08:00:37 does any One knw concept...see dis http://www.mibbit.com/pb/X8njR5 May 12 08:01:41 ?? May 12 08:05:52 if there is anyobdy out there who understands the SensorManager.getRotationMatrix(..) command I would appreciate an explanation May 12 09:14:20 hi all May 12 09:27:33 oh hi May 12 09:33:17 ffs. I want to do a google search for something that has quotes in it. May 12 09:33:23 the quotes are extremely important to the search May 12 09:33:31 how do I actually search for an exact phrase May 12 09:57:31 when you find out, let me know :) May 12 09:58:42 I cannot believe this is not possible May 12 09:58:46 there must be SOME way to do this. May 12 10:00:31 ask a google employee :) May 12 10:01:06 that's why I'm here May 12 10:01:19 but I'm pretty sure I've already asked a couple of the googlers here May 12 10:37:34 I asked this yesterday, but no one seemed to be able to help. I'm getting a little desparate now, as I have asked this in a few places, and no one seems to know the solution. Is the default mail client really so badly designed that what I'm trying to do is impossible? May 12 10:37:46 Hello all, quick question about the default email app: I've used it to send messages using an imap server, but it has saved all my sent mail in a local folder called 'sent'. How do I get that mail into the 'sent mail' folder on the imap server. Hope you can help! May 12 11:38:02 Anyone? May 12 11:38:16 hello? May 12 11:38:47 blau-mikeDG: I posted a question above, no one seems to have responded yet... May 12 11:39:09 ...at 11:37 May 12 11:39:39 sorry, my time is 12:39, so it posted an hour ago. May 12 11:40:32 sorry May 12 11:40:38 i saw the question but don't know the answer May 12 11:40:53 i have a feeling the way email handles sent mail is changing in the next release, but i'm not sure of the details May 12 11:41:07 you might want to try K9, which is supposed to be the same as standard email but with improvements May 12 11:42:06 oh i wasnt here at the time May 12 11:42:08 repost the q? May 12 11:42:14 TD: Thanks, I've tried in their IRC room, and they didn't seem to have any idea how I could get the mail out. May 12 11:42:33 blau-mikeDG: Hello all, quick question about the default email app: I've used it to send messages using an imap server, but it has saved all my sent mail in a local folder called 'sent'. How do I get that mail into the 'sent mail' folder on the imap server. Hope you can help! May 12 11:42:46 oh i remember that from yesterday too May 12 11:42:50 sorry no idea :/ May 12 11:43:15 blau-mikeDG: Thanks, I thought your name was familiar. May 12 11:44:17 TD: What do you mean by next release? How far away is that? May 12 12:44:18 is it possible to find out the name of the app that sent an intent to my app ? May 12 12:44:20 it must be, right ... May 12 13:36:39 hi can you suggest a widget that does the same as EditText but w/ html rendering ? May 12 13:37:05 webkit is the only html renderer right ? May 12 13:48:41 TextView will do basic text highlighting and styling with Html.parse(String) May 12 13:50:32 So, I'm trying to figure out instrumentation testing. I keep getting the error: "Intent resolved to different package " every time I run my test. I believe it is to do with having my tests in a seperate package. Is there a way to get this working ? May 12 14:12:19 hai May 12 14:12:48 hey there May 12 14:13:33 does anyone happen to have instructions on compiling a full-featured libstdc++ and c++ apps for android devices? :> May 12 14:16:56 i dont think anyone is ever alive May 12 14:17:00 in any of these channels May 12 14:17:04 i wish there was an active one May 12 14:18:42 This one does get active May 12 14:18:47 But not at this hour May 12 14:19:10 You must either be on the wrong side of the planet or awake at the wrong times : ) May 12 14:20:17 I'd have no idea about compiling c++ apps for android. Perhaps you could try the mailing lists instead? May 12 14:21:57 there was a hint to use the sgi STL lib, because bionic does not offer STL. maybe I'm just the first one to need it. May 12 14:27:48 recursv both :-) i thought them together would mean i was on the right times May 12 14:35:25 Ge0rG: your best bet is to install debian or ubuntu May 12 14:36:41 I could make a static build with another cross compiler too. however the app makes heavy use of .so libs, making it hard to make it static May 12 14:36:55 so that's not the best bet :-) May 12 14:37:42 but i don't suggest that you compile on the phone... do it in the emulator instead May 12 14:37:43 probably I just have to figure out the best way to install debian May 12 14:38:07 i've done ubuntu in the emulator May 12 14:38:50 for the express purpose of compiling some stuff for the phone, actually May 12 15:51:43 hrmm, has anyone started to tackle the radio on the htc dream yet? one should essentially be able to turn this thing into a programmable gsm transceiver no? May 12 15:53:28 would be a fun project to implement the known A5 attacks on the g1, combined with the programmable radio on the device, portable gsm intercept station anyone? May 12 15:53:31 * tikkie shrugs May 12 15:53:33 i doubt that would ever be possible as i expect the hardware doesn't provide access to particularly low level stuff May 12 15:53:39 hrmm May 12 15:53:52 i may well be wrong though May 12 15:54:04 the abi for the msm7200 is already out right? May 12 15:54:04 you may be interested in software radio May 12 15:54:12 well yeah really i want a USRP May 12 15:54:21 but those are more expensive than a g1 May 12 15:54:41 being able to push out radio firmware to the device tickled my fancy May 12 15:54:51 so was curious if anyone's been working on that May 12 15:54:51 yeah :( i want one too May 12 15:55:06 turning a g1 into a poor man's usrp May 12 15:55:09 would be amazing May 12 15:55:29 there's wifi, bluetooth, gsm quadband May 12 15:55:41 sounds like the makings of a signal processing wet dream May 12 15:55:46 yeah the problem is those are all hardware controlled May 12 15:55:50 righto May 12 15:56:16 so it becomes a matter of investigating the exposed abi for the radio hardware May 12 15:56:24 alrighty May 12 15:56:26 just wondering May 12 15:57:48 abi? May 12 15:59:51 for lack of a better term (used to dealing with cpu's), application binary interface May 12 16:00:24 is there any sort of existing research that investigates what's programmatically possible with the dream's radio that you know of? May 12 16:01:17 maybe you mean API, afraid not tbh May 12 16:01:35 sorry i mean, i dont know of any May 12 16:01:46 ah alrighty May 12 16:01:52 i dont know much about it May 12 16:01:54 guess ill get cracking then :) May 12 16:31:11 How does one change the size (width + height) of the XML layout preview panels in the ADT plugin for Eclipse? May 12 16:37:36 fixedd: there's a combo box May 12 16:37:50 but it lets you only choose supported sizes (HVGA) May 12 16:47:04 romainguy: I don't have a combobox. I have width/height textfields, but whenever I enter something in them nothing changes and I get a little orange ! May 12 16:47:22 a little orange? May 12 16:47:31 eat it May 12 16:48:15 switch to a different sunblock May 12 16:48:47 ah May 12 16:48:49 you get a warning May 12 16:48:53 I just tried it May 12 16:48:58 it does change the size for me May 12 16:49:38 I have a warning too but I don't know what it's for May 12 16:49:51 sorry... I was trying to say "little orange exclamation mark" May 12 16:50:11 hmm May 12 16:50:44 I guess I just didn't notice it was actually changing when I modified them before (was just changing the height) thanks May 12 16:56:05 so, security@android.com is a human-monitored address, right? May 12 16:59:09 i have been trying to start a frame animation in OnCreate but that isn't working, is there some other method where I should put it ? May 12 16:59:32 possible onStart May 12 16:59:45 s/possible/possibly May 12 17:01:15 8 weeks without a response to a security issue (sent twice to the above address) is quite unsettling. Suggestions? May 12 17:02:04 what type of issue are you reporting? May 12 17:02:20 (besides the obvious security relation) May 12 17:02:38 did you post it on the bug site? May 12 17:02:49 just tried and no go. I did read somewhere that it won't start on any of the onXxx() methods and you have to put it in an onClickListener May 12 17:02:50 Qwell: where did you report the issue? May 12 17:02:53 no. it's a security issue. reporting publicly would be silly.. May 12 17:03:00 emailed security@android.com - twice. May 12 17:03:14 Qwell: we can mark bugs as security issues to hide them May 12 17:05:15 does frame animation support only png ? May 12 17:05:37 I was asked to email it. The complete lack of response is what gets me. I can report it whereever you guys want, but... May 12 17:06:03 just trying to follow responsible disclosure guidelines May 12 17:06:16 Qwell: mail me directly at romainguy@android.com please May 12 17:06:47 forwarding original May 12 17:07:06 you can mail me too May 12 17:07:08 im interested May 12 17:07:37 I'll go ahead and just email the guy with the google nat hostmask. :) May 12 17:07:42 blau-mikeDG: ... May 12 17:07:52 thanks Qwell May 12 17:08:04 it has the potential to let me do toggle gps on cupcake though May 12 17:08:26 lol May 12 17:09:48 androidflu.com May 12 17:11:54 Qwell: got it, thanks May 12 17:14:25 romainguy_: I should've specified - t-mobile RC33, if that matters. May 12 17:14:41 Qwell: it doesn't but thanks for the info :) May 12 17:16:08 One last thing: in the coming weeks, we'll be rolling out more articles and presentations that demonstrate design best practices for Android. For example, if you've ever wanted to learn how to create and be consistent with iconography on Android, stay tuned: we'll be posting sample guides and templates. May 12 17:16:50 will this article come out within the next week? im quite interested in this topic May 12 17:16:51 wtf May 12 17:16:59 oh May 12 17:17:04 id like stuff that doesnt assume i have photoshop :( May 12 17:19:50 yeah, they are contributing to software piracy May 12 17:21:30 i dont mind, as long as its "click here, put value xx in there, click OK" and doesnt require creativity May 12 17:21:50 uscheller_: there was an icon guide published a while back May 12 17:21:57 that was pretty detailed May 12 17:22:06 there was? May 12 17:22:10 do you have a link? May 12 17:22:51 http://www.slideshare.net/amuse/android-icon-guidelines-draft0309 May 12 17:23:05 that's an annoying link, but that doc looks like the one I was talking about May 12 17:23:17 looks like you gotta register to get the PDF May 12 17:23:57 thx May 12 17:23:58 http://www.bugmenot.com/view/slideshare.net May 12 17:24:27 i like it May 12 17:24:37 hrhr, bugmenot already logged me in May 12 17:24:53 uscheller_: you have an extension or something? May 12 17:25:27 bugmenot firefox extension May 12 17:25:31 neat May 12 17:27:50 * jasta raises an eyebrow May 12 17:28:00 PreferenceScreen is final, but then there is protected ListAdapter onCreateRootAdapter()? May 12 17:28:27 this shit is so broken. Preference allows you to provide your own custom preference layout, and yet if you do, you cannot use the ListView recycle bin. May 12 17:28:54 but then you can't subclass it to get your own subclassed PreferenceGroupAdapter in there. argh. May 12 17:29:10 why would you want to access ListView May 12 17:29:12 er May 12 17:29:16 ListView's recycler directly? May 12 17:29:21 i don May 12 17:29:28 i don't, i just don't want to fucking disable it! May 12 17:29:35 look at PreferenceGroupAdapter#getItemViewType May 12 17:29:51 oh yeah I know :) May 12 17:29:54 specifically, if (preference.hasSpecifiedLayout()) { ... May 12 17:29:57 what the fuck!? :) May 12 17:30:02 don't ask me May 12 17:30:06 menus are worse May 12 17:30:14 they do their own recycling which fucks up ListView's May 12 17:30:19 was a pain to fix May 12 17:30:28 i just dont understand why you pretend to support custom layouts and then penalize anyone who does it May 12 17:30:45 not you personally :) May 12 17:30:54 I have no idea, I didn't even know you could specify a custom layout May 12 17:31:19 yup, it's being plucked out of the TypedArray May 12 17:32:38 i also dont understand why they are doing this. May 12 17:32:47 no clue May 12 17:32:51 why return custom view types when you are also enforcing them all to be the same? May 12 17:32:57 I'd be happy if you submitted fixes though :) May 12 17:33:13 well, i'd like to, but i'm not sure why any of this code even exists May 12 17:33:18 needlessly complicated and inefficient? May 12 17:34:43 well it does make sense in a way May 12 17:34:53 preferences can have several types of items May 12 17:34:58 so you need the adapter to report that May 12 17:35:05 otherwise the recycling will be messy May 12 17:35:35 now the only real problem I see here is that it doesn't recycle custom layouts May 12 17:35:46 which should be supported May 12 17:35:54 I don't know how easy it is to do so, but it should be supported May 12 17:43:11 I'm having a spot of bother compiling Android using Gentoo Linux. I realise Ubuntu is the recommended platform but in *theory* i would think compiler wise thered be little diffeernce May 12 17:44:02 whether or not it is any help, i get this: May 12 17:44:03 make: execvp: /bin/bash: Argument list too long May 12 17:44:03 make: *** No rule to make target `run-java-tool', needed by `out/target/common/docs/offline-sdk-timestamp'. Stop. May 12 17:48:20 Qwell: bug filed internally, accepted and we believe we can fix it May 12 17:48:49 romainguy_: excellent, thank you May 12 17:49:25 thank *you* :) May 12 17:49:40 smack the guy who watches the security address, would ya? :P May 12 17:50:57 uhuh May 12 17:55:33 romainguy_: no, it doesn't have several types of layouts. May 12 17:55:40 romainguy_: it has two: the group, and the preference item. May 12 17:55:58 the preference item must always be the same, otehrwise recycling is totally disabled as you saw. May 12 17:56:35 jasta: no, look at getViewTypeCount May 12 17:56:52 i know what you are seeing May 12 17:56:55 but it is completely invalid. May 12 17:57:06 there can be only _1_ item type, and it is always the default as defined in Preference. May 12 17:57:21 because if you specify any other, preference.hasSpecifiedLayout() will return true and will return IGNORE_ITEM_VIEW_TYPE May 12 17:57:32 I want to write a non-production app that uses private APIs, what jar should I use to build it with? May 12 17:57:36 the only other type that it can return is the group one. May 12 17:57:52 so they maintain n number of recycle bins, all containing views inflated from the same source. May 12 17:58:24 zhobbs_: build it inside of Google's build tree. put it alongside packages/apps/ and use mmm to build the apk May 12 17:58:34 thats probably the easiest way May 12 17:58:42 jasta: ok, thanks May 12 17:59:06 zhobbs: yeah, what jasta said. ultimately, you'll link it against the full OS android.jar. May 12 17:59:25 romainguy_: the assumption in that method is that each subclassed Preference can have its own layout, but they can't. May 12 18:00:36 this makes no sense. what a silly design. May 12 18:01:59 yeah May 12 18:02:16 its like having a permission to modify settings, and then removing some settings from being modifyable May 12 18:03:04 oh wait this is interesting. this penalty only comes into play when you specify a layout or widgetLayout resource in XML. May 12 18:03:29 if you instead specify it through a style, it takes a different code path which causes hasSpecifiedLayout to return false May 12 18:03:47 interesting, and weird. May 12 18:04:02 i can make this work though. May 12 18:04:39 i didn't realize they were calling obtainStyledAttributes(AttributeSet, int[]) in the main Preference constructor... May 12 18:04:46 and then a separate one with defStyleAttr May 12 19:26:01 what is it that calls ontouchevent? May 12 19:26:09 which interface? May 12 19:26:18 ? May 12 19:26:26 oh May 12 19:26:30 OnTouchListener? May 12 19:26:31 im trying to move ontouched into a new thread May 12 19:26:35 oh May 12 19:26:38 Views.OnTouchListener I think May 12 19:26:40 i thought it was one of the ones it implements May 12 19:26:42 or extends May 12 19:26:58 oh i think i misunderstood May 12 19:27:01 im confused :) May 12 19:27:04 lol May 12 19:27:08 i just want my new class to pick up touches May 12 19:27:13 instead of my odl one May 12 19:27:20 so im trying to get ontouchevent working May 12 19:27:23 .setOnTouchListener(newclass) May 12 19:27:24 but its not getting called. May 12 19:27:32 and have new class implement OnTouchListener May 12 19:27:33 ? May 12 19:27:49 hmm no May 12 19:28:02 it just worked in my other one May 12 19:28:25 i gotta roll, sorry i couldnt help :( May 12 19:28:27 i didnt even do setOnTouchListener(newclass) May 12 19:28:29 fack May 12 19:28:32 ok m8 thx anyway May 12 20:23:26 hmm May 12 20:37:54 Can someone confirm that a servuce which gets started by a pending intent (alarm) only calls the onStart method and no onCreate? May 12 20:38:55 anno^da_: possibly because the service was already created... May 12 20:38:57 anno^da_: should call onCreate if the service wasn't running May 12 20:40:23 hmm well when I look at my services they call onCreate every time May 12 20:40:31 and onStart only when the service gets started May 12 20:40:42 as i said, if the service was already created... May 12 20:40:58 Well it had not been already created. May 12 20:41:27 I only recognize that behaviour with PendingIntents May 12 20:41:29 onCreate only gets called once in my experience May 12 20:45:16 Let me sum it up. Normally I am experiencing this behaviour. First start -> onCreate and onStart - starting a service while services is running: only onStart -- service crashed -> only onCreate gets called May 12 20:46:46 just confirmed that my onCreate is being when started via pending intent May 12 20:46:54 is being called* May 12 20:47:04 strange :/ May 12 20:47:35 had to make sure, cause that would cause major probs for me if it wasn't the case May 12 20:47:36 All the othe services work fine for me just this one is doing strange things :) May 12 20:50:05 But thank you zhobbs for looking at it. May 12 20:50:21 I think that I got my error but let me confirm that. May 12 20:50:47 onCreate() but not onStart() in the post-crash case? May 12 20:51:40 Hi May 12 20:52:14 Hey, what is the best way to connect a android client application to a database that runs on the desktop pc ? with native mysql components if the dat on the desktop is a mysql ? May 12 20:55:32 zhobbs_: it is working now :) - I had something like onCreate(Intent intent) May 12 20:55:41 well it has to be onCreate() May 12 20:56:05 ahh...that'll do it May 12 20:56:23 Yeah my fault. May 12 20:56:39 This behaviour was just too strange :) May 12 21:06:23 if you use the @Override annotation, you'll find those errors at compile time. May 12 21:06:29 helpful safety tip :) May 12 21:08:10 ctate: Yeah. To be honest I accidentally removed them May 12 21:09:46 jasta: Have you stopped working on Five or are you still doing some work on this project ? May 12 21:20:22 argh @ "Application already deployed. No need to reinstall." stoopid eclipse plugin, I just removed it form the emulator, can't you see? :/ May 12 21:30:39 hi May 12 21:30:54 Hi May 12 21:31:12 anno^da_ i was on hiatus for a while, but im back now May 12 21:31:30 zhobbs, hello May 12 21:31:42 Hey, what is the best way to connect a android client application to a database that runs on the desktop pc ? with native mysql components if the dat on the desktop is a mysql ? May 12 21:32:32 how are you connecting an android client application -at all- to a desktop pc? May 12 21:32:43 yea how May 12 21:32:56 i mean, not the vnc server viewer goal May 12 21:33:05 i mean, if i would have a database on a desktop pc May 12 21:33:19 and both pc and android are connected trough a wifi router May 12 21:33:30 then i would like to view datagrid on the android May 12 21:33:34 android can't see the pc May 12 21:33:37 afaik May 12 21:33:38 should i use soap or what ? May 12 21:33:48 android is conneccted on the wifi network May 12 21:33:57 you could set up an http server on your desktop and write a little service, so android can use http to pull data outta your desktop mysql.. May 12 21:34:03 android can ping the pc ? May 12 21:34:10 johnnie: I would think via some kind of web service...XML or JSON,etc May 12 21:34:20 soap service May 12 21:34:30 and is there a soap clienbt framework or librarry ? May 12 21:34:37 perhaps standup an apache server on the desktop and use android's httpclient classes to just pull data out May 12 21:34:46 or do i need to use the hardcore lowlevel xml stuff May 12 21:34:58 i'd use json... May 12 21:35:03 you have a app May 12 21:35:06 :( May 12 21:35:10 :) i mean May 12 21:35:35 shrug, I have an android app that hits my server, which in dev happens to be on my desktop, and gets/puts json chunks May 12 21:35:41 hehe, you have an android soap or xml client application that works withe an apache web / or soap service ? May 12 21:35:56 json chunks, what is that ? May 12 21:36:08 {'this':'is a chunk of json'} May 12 21:36:12 and on the desktop you have apache server kind of thing ? May 12 21:36:34 yeah May 12 21:36:47 actually jetty, but same dif May 12 21:36:57 the server code is that c++ and for linux ? May 12 21:37:02 is it a mod ? for apache ? May 12 21:37:16 can i have the server code and the client code ? May 12 21:37:44 the test server code is a webpage that is a json object May 12 21:38:04 I think you're overcomplicating this, or I'm missunderstanding May 12 21:38:10 never heart about jason May 12 21:38:15 if all you want is to have an android app pull http data from a server, everything's alreadyt here May 12 21:38:19 json.org May 12 21:38:25 jason like the jason horror movie. May 12 21:38:37 aha, cool May 12 21:38:38 it's like xml, but on phen-phen diet May 12 21:38:52 err fen-phen May 12 21:38:52 and an android client is also able to send update request to the server ? May 12 21:38:58 y May 12 21:39:20 okayy, and certificates pem, / pkcs12 is supported on the android ? May 12 21:39:30 android has apache's httpclient classes, which are nice wrappers around doing GETs and POSTs among many many other things May 12 21:39:49 good to hear. May 12 21:40:02 you just trying to do tls/https ? May 12 21:40:13 and. you heart about webservices that request a client to send a client certificate May 12 21:40:42 u yes, at the end, https app on a json webservice would be nice May 12 21:40:55 yeah that works, that's what I've got basically May 12 21:41:23 I assume the httpclient supports client certs, but I haven't actually tried.. I'm not sure how you would install your cert, prolly have to search the docs a bit May 12 21:41:40 you have a https webservice running on the desktop and, hyou have a cert on the android ? realy ? May 12 21:42:02 on the desktop, I don't use ssl, but in a prod server, yeah May 12 21:42:16 on I.E. you have to import the server certificate and make it trusted. May 12 21:42:24 but https does seem to work fine, as long as your cert's valid for your desktop ... don't see why it wouldn't work May 12 21:42:35 yeah I dunno how you'd do that on android, haven't tried May 12 21:43:21 might want to check out: http://developer.android.com/reference/org/apache/http/auth/package-summary.html May 12 21:43:28 okay, thanks i will read about json . i hope it wont be hard to install it on CentOS May 12 21:44:38 and on a wifi lan, the wpa key secures the client, i gues. May 12 21:44:47 you don't need to install json.. it's just a lightweight transfer protocol.. that url has the code to encode/decode in a bunch of langs May 12 21:44:59 and i gues, that i can configure wifi router to allow the mac adres of the android. May 12 21:45:11 and on the android side,t hey already include json.org's java code, I think the one written by crockford May 12 21:46:04 might want to read up on emulator networking.. http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking May 12 21:46:33 is that an emulator diffrent then the standaard 1.5 emulator ? May 12 21:46:37 no May 12 21:46:45 it's the same May 12 21:47:15 o ok, the emulator starts and works good on a fast computer like my very expensive HP pavilion hdx 16 May 12 21:47:32 the emulator is a slow on a P4 on XP May 12 21:47:41 using eclipse of course. May 12 21:48:05 i will email both url to my email adres. May 12 21:48:12 rock on May 12 21:48:48 this is targeted for a simple application to enter psycic diagnosecodes. DSMIV look on wikipedia. May 12 21:49:01 that's crazy :) May 12 21:49:04 for psycho analist doctors. May 12 21:49:39 yes, and more confusing , i dont know wheter a android app is more confinient then entering the codes in an xp running application. May 12 21:50:12 it you wanted to walk around with the app in your hand, it'd prolly be more convenient ... May 12 21:50:52 it is a demostration. who knows that people/ psyco analist would like to have that paperreader thing from sony or from amazon May 12 21:51:08 but doctors using wikipedia as a source for diagnosis, lol, greeaat... May 12 21:51:16 yes, it is ment targeted for dr Phill kind of people. May 12 21:51:34 nah that is not the case haha May 12 21:51:58 I have a bunch of images (drawables) that I'd like to refer to in some funky dynamic way.. R.drawable[someStringVar] sort of thing.. any suggestions? (yes, I'm new to java :p) May 12 21:52:25 it is DSMIV codes, that is indexed psycho illness and disorders, i am not a therapeut May 12 21:52:33 therapist May 12 21:53:55 soreachilles, this is the goal registering and planning therapy, http://en.wikipedia.org/wiki/Diagnostic_and_Statistical_Manual_of_Mental_Disorders May 12 21:54:08 Rexxars you could have an array of your drawable IDs that you index into..or a map, ie, HashMap that maps from your someStringVar to the drawable int id May 12 21:55:01 good idea, thanks :-) May 12 21:56:40 hey soreachilles what is the chance that android will work with an real fm radio. like htc diamond http://www.htc.com/www/product/touchdiamond/specification.html May 12 21:57:08 dunno May 12 21:57:12 ok May 12 21:57:14 heh May 12 21:57:14 thanks. May 12 21:57:55 soreachilles, you have an apache uh soap service, an real xml soap service, where i can test my delphi cert soap client, May 12 21:58:02 i need one example. May 12 21:58:55 i am busy with a delphi soap client that uses the server_key and server_cert May 12 21:59:24 sure try this: http://www.flickr.com/services/api/request.soap.html May 12 21:59:45 ie, just test your client against some service already out there May 12 22:00:15 yes but, i need a https test, wher eyou provide the server_key and server_cert May 12 22:00:24 wher eyou play the trusted CA May 12 22:01:25 this help ya? http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientAuthentication.java May 12 22:01:50 bunch of samples here, that use httpclient, which is on android May 12 22:01:52 http://hc.apache.org/httpcomponents-client/examples.html May 12 22:05:32 wow, okay. May 12 22:05:46 that httpscomponent that would run on anroid. \ May 12 22:11:59 hey soreachilles is there an market or non market application that allows navigating the openoffice powerpoint application to the next or previous slide May 12 22:12:11 dunno May 12 22:20:29 when I rotate my G1 screen by flipping out the keyboard, my a new instance of my Activity is created (the constructor is called, followed by onCreate). Totally unexpected. How can I save a little state between screen rotations? May 12 22:22:07 is that what onPause/onResume are for? May 12 22:22:36 and oncifgurationchanged May 12 22:22:42 onConfigurationChanged May 12 22:22:59 you have to try and get the state to a point where it adjusts elegantly May 12 22:23:13 yeah I save state in onConfigurationChanged and check if it's saved in onPause May 12 22:23:22 you can keep the activity alive tho i think May 12 22:23:31 infact i know you can May 12 22:23:33 thats what mine does May 12 22:23:38 gaz: any idea how? May 12 22:23:54 soreachilles: where do you save the state to? May 12 22:24:00 sqlite database May 12 22:24:07 iver got this in my android manifest May 12 22:24:09 android:configChanges="touchscreen|keyboard|keyboardHidden|orientation" May 12 22:24:18 i think that keeps it alive on those events ratheer than restarting it May 12 22:24:53 do you know if there are any disadvantages to keeping it alive? why does the OS default to restarting it? May 12 22:25:02 so now i open or close keyboard the game flips from landscape to portrait May 12 22:25:14 keeping it alive guarantees itll be there faster i think May 12 22:25:19 i'm guessing the os knows what it's doing, and it's better to just let it do its thing -- and just handle saving/restoring state May 12 22:25:46 it prob kills it because it assumes you might need a different init() on different oreitnation or something May 12 22:26:00 yeh im coming to that conclusion too May 12 22:26:07 it can work really nicely infact, May 12 22:26:48 emmby: the OS relaunches the activity in order to have it redo its layout in the new orientation May 12 22:27:29 putting that in your manifest says that your code will do all the necessary work itself May 12 22:29:01 when the OS is doing the destroy/create pair for the automatic orientation change handling, it also calls your activity's onRetainNonConfigurationInstance() method May 12 22:29:15 this is a hook so you can carry 'expensive' state along to the new activity instance May 12 22:30:09 huh May 12 22:30:51 With a MediaPlayer is there a way to find out what type of media the file is? May 12 22:30:54 This function is called purely as an optimization, and you must not rely on it being called. May 12 22:31:02 Get a MIME time from the MediaPlayer? May 12 22:31:08 http://developer.android.com/reference/android/app/Activity.html#getLastNonConfigurationInstance() May 12 22:31:23 yeah but docs for onRetainNonConfigurationInstance say it may not be called May 12 22:31:53 it's called in certain specific circumstances May 12 22:32:05 like it says, it's to support optimization May 12 22:32:11 y... May 12 22:32:22 if the optimization is not available, your code still has to work :) May 12 22:32:27 heh y May 12 22:32:32 that's cool actually May 12 22:32:34 ctate: onRetainNonConfigurationInstance looks like exactly what i was looking for. except maybe not :) May 12 22:32:35 i get it.. makes sense May 12 22:33:27 basically you should ensure you work fine with the normal onConfigChanged/onPause , but if you can speed that path up by using onRetainNonConfigInstance.. all the better May 12 22:33:34 if you want to avoid the destroy/create on orientation change entirely, you need to perform your own manual layout in onConfigurationChanged() May 12 22:33:36 so i have an activity that swaps out a couple views depending on what hte user does. the prob is that the view switches back to the default when i rotate the screen, so i want to save which view is the current view. would onRetainNonConfigurationInstance work in that case? May 12 22:33:47 yes emmby May 12 22:34:05 ctate: great, good to know. Thanks May 12 22:34:05 in onRetainNonConfigurationInstance() stash a record that says which view state you're in May 12 22:34:19 but you should also do that in onPause() :) May 12 22:35:11 yeah, note that you also need to save state in onStop() May 12 22:35:26 err, in onSaveInstanceState() May 12 22:35:29 sorry May 12 22:35:50 [and that state will be supplied to onCreate()] May 12 22:35:51 y... onSaveInstanceState, onPause .. and if you can optimize that path by using onRetainNonConfigurationInstance, all the better... May 12 22:36:19 I think those are the rules, heh May 12 22:36:28 thanks ctate for the info... good to know... May 12 22:36:47 onRetainNonConfigurationInstance() and its counterpart are very specifically for carrying information *in the same process instance* across the relaunch sequence driven by configuration changes. May 12 22:37:18 onSaveInstanceState() is much more general; it's for carrying app state across process instances. May 12 22:37:25 so bascially, if i save my state into the bundle provided to onSaveInstanceState(bundle) and then retrieve it from onCreate(bundle), all of my use cases should work properly? May 12 22:37:31 yes May 12 22:37:41 sounds much better. thanks May 12 22:38:13 but there are cases where onSaveInstanceState doesn't get called, and I need to save state.. so I do it onPause, for instance, switching between tabs May 12 22:39:13 I think tabs is the case, I'd have to check actually May 12 22:40:39 i would expect not May 12 22:40:58 onSaveInstanceState() means "your activity is going to be killed; please record your state so you can restore it the next time you run" May 12 22:41:51 http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) May 12 22:42:41 yeah but.... Note that it is important to save persistent data in onPause() instead of onSaveInstanceState(Bundle) because the later is not part of the lifecycle callbacks, so will not be called in every situation as described in its documentation. May 12 22:42:56 well, it depends May 12 22:43:25 as the documentation there describes, there are cases when onPause() is called but it may not be relevant to save instance state. May 12 22:44:21 if you're adding your own state semantic on top of the life cycle, that's one thing, but understand what you're doing :) May 12 22:44:58 just from reading the docs for onPause, it says.. "This callback is mostly used for saving any persistent state the activity is editing, to present a "edit in place" model to the user and making sure nothing is lost if there are not enough resources to start the new activity without first killing this one. " May 12 22:45:47 and edit in place is what i'm going for... but anyway, I think it's fine, I'm saving state in onSaveInstanceState and onPause (well, they know if the other saved state already so it's not double-saved) May 12 22:46:57 the docs in onPause make sense, per-instance vs gobal state.. May 12 23:00:06 I've got lat/lng coming from the network that I'm making Location objects for on the android side.. Location ctor takes (String provider) -- can I just use any string I want, like new Location("howdy") is ok? May 12 23:19:08 i have weird problem . when my app is back to life from phone sleep mode (screen off), there's no screen update. it work sok on emu, but on real device last visible (before went to sleep mode) screen frame is rendered . the only significant difference between real device logs and emu logs is message "Window already focused, ignoring focus gain ...". any idea what's wrong ? May 12 23:21:48 there's no surfaceDestroyd/Changed or onDetachedFromWindow calls. just - as expected - onWindowFocusChanged() (focus lost when went into sleep mdoe, focus restored when back) May 12 23:22:21 hi May 12 23:46:09 hi johnnie. Just a tip, don't ask to ask, just ask : 0 May 12 23:51:13 i have aleady asked May 12 23:52:00 just wanted to say hi, actually is the logfile of this channel published May 12 23:52:18 dox|: surely your activity gets onResume() or some such called, right? May 12 23:52:23 i would like to Read , and look up urls at later time May 12 23:52:46 when you joined the channel you should have been shown a message that asked that people not log the channels May 12 23:53:27 o May 12 23:54:20 soreachilles: the 'provider' parameter of the Location object will be filled in by the location provider May 12 23:54:43 for example, when you get a fix from GPS, it'll typically be set to LocationManager.GPS_PROVIDER May 12 23:55:27 in this case, I'm the provider.. I have lat/lng's on a server and I'm creating Location obj's on android. Seems to work just creating a Location with "somestring" May 12 23:56:05 yeah, it's informational to the Location consumer May 12 23:56:10 great, thanks May 12 23:56:33 seemed that way, but wasn't sure if Location() would start throwing away or interpreting the other fields, based on the passed-in provider. guess not, which is what I want... May 12 23:57:35 Location is pretty much the end product, the structure that conveys the geog info to the consumer. May 12 23:57:41 beautiful May 13 00:01:47 this camero widget is going to rock :) May 13 00:10:08 hmm May 13 00:10:27 what parameter do i have to pass to my emulator to make dp's actually scale according to device dpi May 13 00:10:30 ? May 13 00:10:37 -scale May 13 00:10:45 no, that just scales the window size May 13 00:10:53 -dpi-device also doesnt _seem_ to affect dp. May 13 00:11:39 oh wait, i think im being dense. i thought the g1 was 160dpi, so i was testing with 300 May 13 00:11:43 but i think that perhaps the g1 is 300 hehe May 13 00:13:47 what's the use of specifying a devices dpi to the emulator? May 13 00:14:25 I want Android to show me scaling of dp units based on the devices DPI May 13 00:14:29 as it is documented to do May 13 00:14:41 on the G1, dp == px, so i want to experiment with various device configurations where that is not true May 13 00:14:55 really....I didn't realize dp is scaled... May 13 00:15:31 thought sp was scaled May 13 00:16:53 sp is dp with a scaling factor for the users font size preference May 13 00:17:02 dp is a scaling factor based on device dpi. May 13 00:17:04 px is not scaled May 13 00:17:15 nice...I need to fix that.. May 13 00:17:30 used dp 86 times looks like May 13 00:17:34 anyway, looks like dp is weighted for a 160dpi screen, which apparently is what the G1 is May 13 00:17:39 so emulator -dpi-device 300 doesnt seem to affect anything May 13 00:17:41 but it should May 13 00:17:55 zhobbs_: you should rarely, if ever, use px. May 13 00:17:59 yeah, I just tried 500 to see if there was a visual difference May 13 00:18:27 i bet its a build parameter to get android to do something different with DPI May 13 00:19:21 ctate: onResume() is called when phone jumps form sleep mode (screen off) to hmm . idle? mode (android screen with clock and "press menu to unlock") May 13 00:19:50 > W/SurfaceFlinger( 49): ro.sf.lcd_density not defined, using 160 dpi May 13 00:19:52 hmmm ;) May 13 00:20:22 jasta: why? on a device with a higher dpi should your stuff scale larger? May 13 00:21:03 zhobbs_: yes, imagine if you had a device the same physical size of the G1, but with twice as many horizontal and vertical pixels. should all your images and hardcoded dimensions now appear awkwardly small proportionately? May 13 00:21:32 imagine if you said an image should be 80dp x 80dp, now on a device with the same screen size of the G1, your image would be half the physical size? sure it would look crisp as hell, but it would be very small. May 13 00:21:51 err 80px, i mean :) May 13 00:22:06 yeah, they would, but just does scaling an image to larger than it's actual size look ok, even if dpi is higher? May 13 00:22:19 it would look about the same, it would just be a little slower May 13 00:22:25 if the dpi was twice as high, the screen would be crisp as hell May 13 00:22:34 sure May 13 00:23:52 the market needs to properly support apk-configurations, so you can just keep different apk's for different types of devices May 13 00:24:01 and android versions May 13 00:25:55 im sure theyre working on it May 13 00:26:06 yeah, not a big deal yet... May 13 00:26:13 would have been nice for 1.5, but oh well May 13 00:26:31 maybe they did? :) May 13 00:27:48 well, don't think it's available for publishers yet... May 13 00:38:19 How do I safely block in the Android UI Thread? May 13 00:38:43 you don't May 13 00:39:08 romainguy_: There's no way to keep pumping events from one of my own functions? May 13 00:39:09 wow this sucks, I can't get the basic hello world to work in eclipse -_- May 13 00:39:26 svm_invictvs: no May 13 00:39:34 [2009-05-12 17:37:33 - Emulator] 2009-05-12 17:37:33.003 emulator[5134:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. May 13 00:39:42 yup, ro.sf.lcd_density definitely did something :) May 13 00:39:44 anyone ever get that? May 13 00:40:06 jasta: yeah, but it's not supported in cupcake May 13 00:40:13 AppleBoy: it's normal, you can ignore it May 13 00:40:25 AppleBoy: totally benign warning from the MacOS X graphics layers used by the emulator May 13 00:41:43 oh wow, the emulator has to go through the "boot" process? May 13 00:43:15 AppleBoy: the emulator is just that. it takes the compiled ARM + Dex code of an actual phone image, and runs that by emulating an ARM cpu + phone hardware. May 13 00:43:54 fair enough, just wasn't expecting it to take 20 seconds to do so May 13 00:44:03 as you might imagine, this is pretty cpu intensive :) May 13 00:45:18 I'll say, it uses 70% of my cpu May 13 00:45:19 romainguy_: Are you familiar with Swing? May 13 00:45:30 svm_invictvs: you could say that :) May 13 00:46:07 romainguy_: Okay, well, like the JFileChooser has a method called getSelectedFile();...it doesn't return until the user selected a file. Does Android have a facility like that. May 13 00:46:21 (fwiw, I worked in the Swing team for one year :) May 13 00:46:38 svm_invictvs: yes it does and no Android doesn't have that and no we won't add this capability May 13 00:46:39 romainguy_: also, in SWT you'd do something like while (!myCondition && Display.readAndDispatch() ) ; to do something like that. May 13 00:47:41 romainguy_: It returns before the file is selected? May 13 00:47:50 yes May 13 00:47:57 we don't block nor fork the UI thread May 13 00:49:01 svm_invictvs: what you'd do is use a separate choose-a-file activity that returns the selected file URI as a result. May 13 00:49:36 and use startActivityForResult() to kick it off May 13 00:50:38 ctate: It's actually simpler than that, it just shows a dialog that says, "Are you sure you want to exit?" and I wanted it to either return true or false if the user selected yes or no May 13 00:50:44 ? May 13 00:50:45 lol May 13 00:51:07 well do it differently May 13 00:51:15 just put a listener on the dialog's button May 13 00:51:26 And keep track of my own state. May 13 00:51:29 and btw, apps don't exit May 13 00:52:05 romainguy_: I know...but the activity gets destroyed and I have to re-set the view regardless. May 13 00:52:52 I have a surface view, and whent he activity gets destroyed.... May 13 00:53:06 if I bring it up again, then I get a black sceen, but the app is still running. May 13 00:54:03 romainguy_: Dunno what else I"m supposed to do. May 13 00:56:59 I'm trying to test an activity's response to a gesture from an instrumentation test. Any thoughts on generating gestures ? Does it have to be done using a itterator and dreamed up co-ordinates or is there a generator ? May 13 00:57:27 /factory May 13 01:06:41 Perhaps just a clue as to what differentiates a flick from a scroll in numeric terms ? May 13 01:08:07 seems dead sorry mate May 13 01:08:17 Happens : ) May 13 01:08:40 ive confused my brain from coding all day May 13 01:08:44 hehe straring blankly now May 13 01:08:52 im on the verge of finishing something May 13 01:08:56 but those last bugs always drag on May 13 01:15:21 recursv: ViewConfiguration.getScaledMinimumFlingVelocity() ? May 13 01:16:08 Cool, i'll take a look. Thanks May 13 02:01:15 if i'm defining prefs in xml, what name do i pass to getSharedPreferences() in order to retrieve them? May 13 02:07:15 why would one call startService() vs bindService()? rather maybe the question is in what instance would startService() be preferred? May 13 02:15:39 well.. May 13 02:16:00 I call startService because I want the service to outlive my activity May 13 02:16:09 I call startService() then bind May 13 02:16:23 oh ok so there's a different life cycle May 13 02:16:43 sorry for the n00b questions, i'm just starting to look at the dev guide and it just mentions the 2 May 13 02:16:49 i haven't looked at the api May 13 02:16:55 shrug, I'm a noob too, just hacked around with the service starting/ending stuff May 13 02:17:12 startService() means your activity has no interaction with the service directly. You can then later bind to the service if you wish to have a chat. May 13 02:17:18 i just have the sdk and android installed, havne't even created my first project May 13 02:17:28 recursv: that's what i was thinking May 13 02:17:42 but probably not a good way to do a "threaded" approach huh? May 13 02:17:48 aa May 13 02:17:54 Its better in a way May 13 02:17:54 mispaste. May 13 02:18:09 cuz it's easily attachable? May 13 02:18:15 no need to marshal? May 13 02:18:43 if it's in your proc, yeah you don't marshal, just pass a listener object from one activity to the service, and the service can call back on it May 13 02:19:09 but you have to bind to the service, and get the callback when the bind succeeds, then you can interact with the service.. and bind is async May 13 02:19:17 threading is something you usually should avoid anyway. A service has a guarenteed life span (good thing) and never interrupts the UI thread. May 13 02:19:45 the service shared the ui thread, they're on the same thread, just different activity lifetimes afaik May 13 02:20:15 that confuses me, but you may well be righgt May 13 02:20:55 yeah..this is fromthe service docs: Note that services, like other application objects, run in the main thread of their hosting process. This means that, if your service is going to do any CPU intensive (such as MP3 playback) or blocking (such as networking) operations, it should spawn its own thread in which to do that work. May 13 02:21:49 sweet. thanks May 13 02:21:56 my service spawns a thread then calls runOnUiThread() from the worker thread to back back to the ui thread.. but there are other ways to do that May 13 02:22:18 ugh can't type anymore, eyes and figers fried! cya May 13 02:22:34 i thought you WANTED to thread? May 13 02:35:56 yay, nay? May 13 02:38:45 Sort of. He wanted to thread to perform background processing but he needs to return to the ui thread to cause ui updates ( i assume) **** ENDING LOGGING AT Wed May 13 02:59:57 2009