**** BEGIN LOGGING AT Fri Jun 12 02:59:56 2009 Jun 12 03:01:53 hmm now my volume keys don work as theyre caught by my onkeydown Jun 12 03:02:43 are you calling super.onkeydown? Jun 12 03:02:49 Gaz, you should only be returning true on keys that you want to catch. everything else should return super.onKeyDown(keyCode, event); Jun 12 03:06:20 ohh Jun 12 03:06:22 thx Jun 12 03:08:00 thats weird, so it worked but now i dont get the display showing volume going up and down Jun 12 03:10:00 oh it makes the beep but doesnt sem to change Jun 12 03:10:03 guess i can fix that tommorow Jun 12 03:10:32 so i just put this in onkeydown ? super.onKeyDown(keyCode, msg); Jun 12 03:10:42 ah return that Jun 12 03:11:18 Gaz: if you're not handling the keypress, then do return super.onKeyDown(keyCode, msg); if you are handling it, return true Jun 12 03:12:05 if you have handled it* Jun 12 03:12:12 right Jun 12 03:16:57 thx it works Jun 12 03:22:34 on my edittext why do i have to click "next" before i can click done, my other one isnt liek that Jun 12 03:22:41 on the virtual keyboardi mean Jun 12 03:25:28 i'd guess it depends on whether there's another edittext after it. i.e. for input in landscape mode, so you don't have to go back and forth, but that is a guess Jun 12 03:38:27 wow Jun 12 03:38:32 and youre absolutely right Jun 12 03:38:45 what an odd but exceedingly lovely feature Jun 12 03:56:20 Is anyone familiar with using HttpPost in android and could point me to a good tutorial for org.apache.http, because most of the tutorials seem to be for org.apache.common Jun 12 03:59:35 meanburrito920__, you have to read the docs for 4.x even though it's in beta Jun 12 03:59:44 most of the Google links take you to their stable 3.x branch Jun 12 04:03:12 hrm, everyone knows http://dl-ssl.google.com/android/eclipse/ is a 404 right? Jun 12 04:04:08 b0nn, yeah, you have to download the zip and install it that way Jun 12 04:04:43 k Jun 12 04:08:20 b0nn, try http://dl-ssl.google.com/android/eclipse/site.xml Jun 12 04:16:42 weird Jun 12 04:16:53 I install the ADT plugin + SDK Jun 12 04:16:58 that is wierd. Jun 12 04:17:12 but when I try to create a new project Android isnt listed Jun 12 04:24:51 Hello...want in my java-application to mount a partition or to write in a file.sh and chmod that to a+x (777)...is it possible? Jun 12 04:25:46 schash: possible.. you can run native executables.. Jun 12 04:26:54 wmealing;thanks....but even in adb-console I couldn't chmod 777 /path.sh a file... Jun 12 04:27:15 schasch, not all paths allow executions. Jun 12 04:27:23 -s Jun 12 04:27:26 the sdcard for example Jun 12 04:27:48 wmealing:I no execution an sd? Jun 12 04:28:03 ...on SD? Jun 12 04:28:35 wmealing: wich path is allowed the write a file and chmod that....? Jun 12 04:28:36 you can't execute scripts from the SD Jun 12 04:28:38 or at least i can't Jun 12 04:31:12 wmealing: run native executables....I did that...an "ls -l" is fine.... but at mount-order the parameters were not accepted... Jun 12 04:31:42 wmealing: run native executables...how can I mount a partitition? Jun 12 04:31:50 mount is a native executable Jun 12 04:32:09 please attempt to be a little more verbose and exact in your questions. Jun 12 04:34:16 I was a able to exec("ls -l")....that was no problem but with mount something was wrong...too many parameters O guess...so how can I mount with running the 'mount-native-exec'? Jun 12 04:37:16 you would do it the same way, buy my guess is that your application/user does not have sufficient privileges to mount. Jun 12 04:37:22 s/buy/but Jun 12 04:39:31 asking me how.. is going to open a whole new can of worms. Jun 12 04:39:37 most of which i dont have the answer to Jun 12 04:40:05 so with my *.apk it is not possible to mount or to create somewhere a file and to chmod that a+x-777? Jun 12 04:40:27 you can create a file in /data/data/yournamespace/ Jun 12 04:40:40 that can be chmod 777 (not sure thats a good idea, but.. your call) Jun 12 04:42:49 wmealing:thanls...if mounting is not possible I will try to create a file.sh in /data/data/yournamespace/ and chmod that to 777.....that should go? Jun 12 04:43:29 well, change yournamespace whatever, make sure the uid of the app can r/w/x from it. Jun 12 04:43:29 etc Jun 12 04:43:46 schasch, and why would you want to chmod 777 ? Jun 12 04:45:10 wmealing:I would write a mounter.sh with a mount order of my ext3 partitition and exec() that.... Jun 12 04:45:29 your app still wont have superuser privs Jun 12 04:45:36 bad idea? Jun 12 04:45:56 write mounter.sh with my *.apk.... Jun 12 04:45:56 well, it wont solve your problem Jun 12 04:46:08 yep, i understand where you are coming from Jun 12 04:46:09 i really do Jun 12 04:46:17 i'm struggling with this _exact_ problem right now Jun 12 04:46:20 well, last night Jun 12 04:46:37 why...not allowed to mount? Jun 12 04:46:50 you need superuser permissions to mount Jun 12 04:46:52 .-( Jun 12 04:46:55 your app does NOT run as superuser Jun 12 04:47:06 however, i believe if you have a hacked phone.. you can request su permissions Jun 12 04:47:59 so NO way to mount a user...? Jun 12 04:49:04 you need to "become" uid 0 Jun 12 04:49:07 root Jun 12 04:49:09 super user Jun 12 04:49:43 and i think it -can- be done.. i just am stuck requesting/getting the right permissions Jun 12 04:51:40 wmealing: ...."and i think it -can- be done.. i just am stuck requesting/getting the right permissions"....what do you mean? Jun 12 04:52:00 could it be done or not?....sorry....? Jun 12 04:53:01 schasch, lets take a step back. Jun 12 04:53:14 schasch, is your phone rooted, ie do you have root Jun 12 04:55:13 I haveroot with adb shell...or not...??? Jun 12 04:59:51 i dont know, do you do "id" and it says you have id 0 ? Jun 12 05:02:05 I will test... Jun 12 05:04:22 # id Jun 12 05:04:22 uid=0(root) gid=0(root) Jun 12 05:04:25 yes... Jun 12 05:04:44 ok, now run "id" from your app Jun 12 05:08:17 ...wait please......I am testing.... Jun 12 05:13:55 wmealing:uid=10022(app_22) gid=10022(app_22) Jun 12 05:15:32 can you 'su' id Jun 12 05:25:51 22 was in the emulator.exe.... uid=10028(app_28) gid=10022(app_28)...on my device... Jun 12 05:26:01 su id I am testing.... Jun 12 05:26:05 ok Jun 12 05:26:31 you see where i'm going with this righ t? Jun 12 05:30:02 I user "output_ = exec("/system/bin/id", "", "");"....I am testing to involve su...? Jun 12 05:30:15 s/I user/I used Jun 12 05:31:26 ...??? output_ = exec("su /system/bin/id", "", ""); ...?...am testing... Jun 12 05:32:32 I did not found /system/bin/su.... Jun 12 05:37:52 exec("/system/bin/id", "", "") returned "uid=10028(app_28) gid=10028(app_28)"....but.....exec("su /system/bin/id", "", "") returned nothing and didn't change reult of exec("/system/bin/id", "", "")..... Jun 12 05:38:07 or how do I have to use su? Jun 12 05:38:36 I can not use "find" on my device..... .-( Jun 12 05:41:05 how do you do rowspan with a tablerow in a tablelayout? Jun 12 05:45:46 thanks... layout_span child Jun 12 05:46:09 a little channel confusion, nyt? :) **** ENDING LOGGING AT Fri Jun 12 06:20:50 2009 **** BEGIN LOGGING AT Fri Jun 12 06:21:13 2009 Jun 12 07:27:31 Hello can I mount my 2nd partitition from the SD at boottime?I remounted my / changed the init.rc, synced....but after booting it seems to be overwritten... .-( Jun 12 07:52:41 MidWindowManager.java is much different from PhoneWindowManager.java, the softkeyboard causes the window display not normal Jun 12 09:08:42 What is the right way to determine the caller name from the phone number ? Jun 12 10:10:36 how would i go about changing spelling language / keyboard layout from an app ? Jun 12 10:56:20 can i output info to the eclipse consol to more easy check values of variables etc ? Jun 12 10:58:01 thats what the debugger is for Jun 12 11:01:45 i tried using i am to dumb to useit it would seem Jun 12 11:02:32 its one of easier ones out there :P Jun 12 11:02:40 and you can use logging too Jun 12 11:02:43 see the documentation Jun 12 11:29:25 deebo: thanks i got it Jun 12 11:32:59 hey guys, anyon notice their game slow down when its playing background music? Jun 12 11:56:14 ok finaly figured out how to display imput method selector. can i from a notification set the intent to display it ? EG: "mInputMethodManager.showInputMethodPicker();" Jun 12 12:00:34 Hey urgent help needed...when i am uploading the Apk file in market it is displaying the following error "The certificate that signed this apk is not valid until the future. Create a new certificate" Jun 12 12:00:49 whats the problem Jun 12 12:02:47 mib_dgbwsbk8: mm could it be more clear than that? :) Jun 12 12:03:35 i didnt get u deebo Jun 12 12:04:50 Guys Urgent..!!!:( Jun 12 12:05:58 can someone explain me make sure your system clock is set correctly mib_dgbwsbk8 Jun 12 12:07:50 with what i have to compare..!! Jun 12 12:10:15 not sure what you mean ... Jun 12 12:10:20 just sync with a timeserver Jun 12 14:27:03 mib_dgbwsbk8: you there? Jun 12 14:27:14 i had that issue Jun 12 14:28:08 you might have found my blog if you googled infact Jun 12 14:28:14 its 4th for that hit Jun 12 14:28:28 mib_dgbwsbk8: http://gazy.spaces.live.com/blog/cns!C6DAB7D1A0F14906!1478.entry Jun 12 14:34:48 Hey Gaz Thanks lol..!!!:) Jun 12 14:43:05 hey, if you want to develop native code android apps, do you need the dev phone or is the htc magic ok too? Jun 12 14:44:08 the magic is fine Jun 12 14:59:37 ok Jun 12 14:59:52 how does the compilation work, do i need to get the android OS on my pc for that? Jun 12 15:03:40 :/ Jun 12 15:04:04 any suggestions for quickly converting longs to mm/dd/yyyy? Jun 12 15:04:18 dateformatter seems to be chopping up my listview scrolling badly Jun 12 15:22:41 mikedg: is it allocating or something? Jun 12 15:27:06 mikedg: funny, i noticed yesterday as well that formatting dates is very slow... i was quite surprised. Jun 12 15:31:36 Hm, I seem to recall something about this... Jun 12 15:32:17 I think it was in one of the I/O sessions someone had mentioned it Jun 12 15:36:15 mikedg: What does your core look like? a = DateFormat.getDateInstance for (..) { a.format(whatever); } ? Jun 12 15:38:42 mikedg: you will have to do it the hard way i'm afraid. no allocation, so, ensure you have a stringbuffer of the right size and then modify the characters in place Jun 12 15:38:59 mikedg: bear in mind in many locales dates are written differently Jun 12 15:39:40 * TD & Jun 12 15:41:14 mikedg: Yeah, definitely use the StringBuffer method if you aren't already Jun 12 15:42:04 make that a StringBuilder even Jun 12 15:44:30 that, too Jun 12 15:45:20 wait, no Jun 12 15:49:31 romainguy: Is there some way to detect that the lock screen is obscuring your activity? Jun 12 15:51:38 * kRutOn checks hasWindowFocus Jun 12 15:54:55 just just onStop() Jun 12 15:57:41 Yeah, but you get onResume before the user unlocks Jun 12 16:03:34 thanks guys for the above Jun 12 16:03:38 im gonna look into it now Jun 12 16:03:42 ran out for lunch Jun 12 16:04:36 a project that uses Apache 2.0 stuff can become a GPL project right? Jun 12 16:04:58 how do i handle displaying the licenses? if I dont use any of the Apache 2.0 stuff without significant modification? Jun 12 16:05:15 Like I want to open source QuickCut, which uses a handful of stuff from Anycut (Apache 2.0) Jun 12 16:05:20 but I want quickcut to be gpl Jun 12 16:07:25 mikedg: http://www.apache.org/licenses/GPL-compatibility.html Jun 12 16:08:00 hey, I kinda want to make the layout of Amazon mp3, so when you go from portrait to landscape it goes from 1x4 buttons to 2x2. Is there any tutorial/guide that mentions this? I'm a little lost with relative layout Jun 12 16:09:39 ivan: you just make a new layout and put it into layout-land directory Jun 12 16:09:42 same name Jun 12 16:09:45 the os will handle the switching Jun 12 16:10:14 lemme know if you need more explanation Jun 12 16:11:29 blanu: i think that confused me even more :) Jun 12 16:11:32 but thanks Jun 12 16:13:01 I think the key part is probably "Apache 2 software can therefore be included in GPLv3 projects, because the GPLv3 license accepts our software into GPLv3 works." Jun 12 16:14:41 thanks Jun 12 16:15:28 mike.. I'm taking about the redistribution of the elements. Jun 12 16:15:54 I want to achieve a CSS float:left kind of thing Jun 12 16:15:59 IvanSF: he's saying that there are actually two different layouts, with the same elements displayed differently Jun 12 16:16:13 ohhh Jun 12 16:16:20 I'm not sure you can do CSS type of stuff Jun 12 16:17:12 didnt know about layout-land Jun 12 16:17:13 thanks Jun 12 16:17:22 yeah you basically just make sure everything that you reference has the same id's Jun 12 16:17:36 and you require no code changes Jun 12 16:18:27 does any one know how view the comments left about your app on the android market....without using a phone? Jun 12 16:18:39 nwmotogeek: www.cyrket.com Jun 12 16:18:40 cyrket.com Jun 12 16:20:06 awsome thanks! Jun 12 16:20:22 mikedg: if you use layout-port you _must_ user layout-land or it just defaults to layout/? Jun 12 16:20:25 i'm interested in putting better than an 'adb' frontend on junit testing.. does anyone know of a tool ? Jun 12 16:23:22 ivan: i dont know i just use layout and layout-land Jun 12 16:23:28 dont know how it defaultls otherwise, sorry Jun 12 16:28:49 wmealing_: I think they basically munge the output of the InstrumentTestRunner, but I agree with you. Jun 12 16:29:06 mikedg: it worked, however if you change orientation while displaying the activity it won't change the layout Jun 12 16:29:07 wmealing_: They also allow you to output EMMA coverage files Jun 12 16:30:08 kRutOn, i'm going to look into it.. i just feel as though its a little simplistic for what i need/want Jun 12 16:37:28 grrr, i dont udnderstand dateformat.format with string buffer Jun 12 16:41:16 mikedg: What's it doing unexpectedly? Jun 12 16:41:56 im getting nothing in the stringbuffer Jun 12 16:42:15 public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition pos) Jun 12 16:42:17 i dont understand what fieldposition does Jun 12 16:42:20 so i set it to null Jun 12 16:47:01 i guess its not as big of a deal as I thought Jun 12 16:47:45 using Date.setTime instead of Calendar.settimeinmillis hen calendar.gettime is much much faster Jun 12 16:48:04 just have to worry about internationalization though since so much of Date has been deprecated Jun 12 16:48:34 oh yeah, the Calendar uses ICU Jun 12 16:49:37 i still overall have some shitty scrolling issues though :( Jun 12 16:53:55 maybe I can cache the formats, Jun 12 16:54:05 dont think that would help too much though bah Jun 12 16:55:47 yawn Jun 12 16:56:14 mikedg: whats the problem? Jun 12 16:56:37 i want to display 2 dates in each item of a gridview Jun 12 16:56:45 i have the dates in long Jun 12 16:56:56 its way to slow to scroll and do a dateformat imo Jun 12 16:57:07 well, create the format object only once Jun 12 16:57:09 first of all Jun 12 16:57:12 i did that Jun 12 16:57:20 private static final Jun 12 16:57:26 and store the formatted result as a string and re-use it. Jun 12 16:57:45 and have some way of flagging it dirty so you can still update entries if you need to Jun 12 16:58:01 are bitmaps involved btw? Jun 12 16:58:04 how can i reuse it since most of the dates are different Jun 12 16:58:11 no Jun 12 16:58:41 mikedg: the adapter has to hold all of your data objects already. you can also hold each data objects string representation Jun 12 16:58:53 if null, compute and store, if non-null, re-use. Jun 12 16:59:24 that said, i dont believe date formatting overhead is going to be enough to cause a gridview to scroll terribly slow. can you show me your code so i can prove you're not doing something else expensive? Jun 12 17:00:08 use traceview Jun 12 17:00:30 yes, also a good idea. use Debug.startMethodTracing/stopMethodTracing inside of getView() Jun 12 17:00:35 and run traceview on the resulting trace files Jun 12 17:00:49 but i bet if you paste your getView call we'll be able to identify a big problem easily Jun 12 17:00:50 theres 24 dateformats occurring per page Jun 12 17:00:54 i commented out the portion that formats the dates and it scrolls nicely Jun 12 17:00:55 actually might be up to 32 per page Jun 12 17:00:55 30 i mean Jun 12 17:00:55 ill pastebin it Jun 12 17:02:45 http://pastebin.com/m11012094 theres this, i made a custom TextView that takes longs and formats them Jun 12 17:02:49 this is the problematic method Jun 12 17:03:00 and if I uncomment the if (0==0) return it runs nicely Jun 12 17:03:10 or if I stick a constant into the super.settext Jun 12 17:04:05 im not sure why you extended TextView for this purpose Jun 12 17:04:12 a simple utility function would have been far more general purpose Jun 12 17:04:30 i had a reason at some point :/ i dont remember though Jun 12 17:05:11 can you show me your getView() call either way? Jun 12 17:06:15 mikedg: do you make database calls in getView/bindView? Jun 12 17:06:45 it's an extended cursoradaptor Jun 12 17:07:11 well, if you cant show me the method, just use debug tracing as was mentioned earlier. Jun 12 17:07:16 that will tell you what you need to know Jun 12 17:07:21 i have to run Jun 12 17:07:27 oh ok Jun 12 17:07:33 if your on later ill paste again Jun 12 17:07:39 i wont be Jun 12 17:07:43 thanks Jun 12 17:07:45 :( Jun 12 17:10:51 http://pastebin.com/m643981d8 Jun 12 17:10:58 if you wanna take a look herrio :) Jun 12 17:13:33 mikedg: What's your formatter initialized as Jun 12 17:13:51 private static final DateFormat mFormatter = new SimpleDateFormat(DATE_FORMAT); Jun 12 17:14:05 not worrying about internationalization now tho Jun 12 17:17:16 can someone comment on what's the correct way of doing that: Activities A -> B -> C. I want to remove A abd B from the back stack when launching C so that pressing back in C won't take the user back to A or B (but pressing back in B will take the user back to A) ? Jun 12 17:17:21 mikedg: i thought you said bitmaps were not involved? Jun 12 17:17:52 i thought you meant directly with the date stuff Jun 12 17:17:58 anyway, i still recommend that you store the string representation in the adapter Jun 12 17:17:58 you know, I remember at Google IO something about Dates having to figure out their timezone or whatever, which is a huge performance problem Jun 12 17:18:00 the IO Session "Debugging Arts of the Ninja Masters" actually has SimpleDateFormat format() as an example for some innocent looking function to be very time costly. they used it to illustrate the use of the traceview Jun 12 17:18:31 exactly what poke said ;) Jun 12 17:18:34 i missed that session :( Jun 12 17:18:42 apparently it made an impression on everyone Jun 12 17:18:42 lol Jun 12 17:18:43 mikedg: well go read it :) Jun 12 17:18:48 http://code.google.com/events/io/sessions/DebuggingArtsNinjaMasters.html Jun 12 17:19:16 you do not want to know how I currently handle this little problem :P Jun 12 17:19:55 their solution was to put of the calculating the date to a thread and then fill in later Jun 12 17:20:10 can sqlite3 do anything nice to help? Jun 12 17:20:32 poke: ahhhh thats a good plan, similar to how the messaging app does that crap Jun 12 17:21:49 should it not be posable to change the language in serrings -> locale & text ->touch input -> keyboard language, i cant seem to find this setting in the api referance. Jun 12 17:22:10 cause the user really cant read the dates while they are scrolling in my app anyway Jun 12 17:27:20 thanks for the think tank guys Jun 12 17:31:15 is there a way to get the current visiblity of the window's progress bar? (basically, I'm looking for isProgressBarIndeterminateVisible() to complement setProgressBarIndeterminateVisibility() ) Jun 12 17:40:03 I created an sd card and I'm trying to load the avd but it gives me a warning: emulator: WARNING: ignoring locked SD Card image at /dump/128megs.sdcard Jun 12 17:41:27 did one of your emulators die oddly? Jun 12 17:44:04 No I never ran this emu. android create avd --name avd_128megs --target 2 --sdcard /dump/128megs.sdcard Jun 12 17:47:14 anxiolytic_1: is the sd card mounted or being used by anything else? Jun 12 17:47:53 does the emulator binary have privs to read and write the sdcard file? Jun 12 17:48:13 The card isn't mounted (I mounted it, added files, unmounted). permissions are 777 Jun 12 17:48:59 does the emulator have rx permissions on /dump? Jun 12 17:49:17 rwx Jun 12 17:49:43 oh aye :) Jun 12 17:49:54 I got it working. I moved the file to another partition which is ext3. dump was fat32 Jun 12 17:52:13 hello,how can I change /init.rc in koolu-7-beta?.......my changes are lost after reboot... Jun 12 17:57:38 Has anybody had any luck getting the android source code lately? I'm getting an error: "fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not known)" Jun 12 17:58:18 name lookup works for me right now. sounds like a DNS problem in your direction. Jun 12 17:59:07 I've been unable to get a maps API key the entire week. The form to submit your MD5 cert is a 404 Jun 12 17:59:07 morrildl, ping Jun 12 17:59:18 anxiolytic_1, there's another link, one second Jun 12 17:59:21 that one is old Jun 12 18:00:07 anxiolytic_1, http://code.google.com/android/maps-api-signup.html Jun 12 18:00:09 that's the link you need Jun 12 18:00:30 KNY: pong? Jun 12 18:01:04 morrildl, I was told to talk to you or jasonchen about ADC2 questions Jun 12 18:01:17 ctate, yeah, it looks like a DNS problem, though I am able to download the manifest OK. Jun 12 18:01:20 I need to find out what an actual ICMP echo response looks like so I can quote that when people ping me Jun 12 18:01:24 KNY: okay Jun 12 18:01:39 morrildl, most IRCds use ping/pong, IIRC Jun 12 18:03:13 KNY: thanks Jun 12 18:03:26 anxiolytic_1, no problem, took me like 30 minutes to find it last night haha Jun 12 18:03:49 Strange. I'm able to download a branch, but not the whole project from git. I guess the cupcake branch it will have to be. Jun 12 18:20:13 morrildl, did you disappear or did you not get my /msg? Jun 12 18:25:27 kny: what questions do you have about adc2 Jun 12 18:26:16 mikedg, private questions, hence the /msg Jun 12 18:26:21 regarding app ideas Jun 12 18:26:37 oh Jun 12 18:26:45 cheater! Jun 12 18:26:48 haha Jun 12 18:27:10 well, I can tell you the quick summary from my chat with him--ADC2 apps do not need to comply with the DDA Jun 12 18:27:32 dda Jun 12 18:27:32 ? Jun 12 18:28:04 http://www.android.com/us/developer-distribution-agreement.html Jun 12 18:28:34 did you ask if we can submit multiple apps Jun 12 18:28:37 can someone look at this and tell me if they notice anything wrong http://pastebin.com/d639cd175 Jun 12 18:28:49 its nice that they dont have to comply with DDA Jun 12 18:29:29 so we can make dirty dirty apps that offer alternative markets! Jun 12 18:29:38 right? Jun 12 18:29:43 the alarm is in queue and goes off... I can see it in adb, but it never reaches AlarmService.java Jun 12 18:30:40 mikedg, yeah, I suppose you could but then you couldn't distribute it after the comp was over Jun 12 18:31:09 who cares if you win $200k for your porn market Jun 12 18:33:52 lalala Jun 12 18:33:57 here's the service it calls http://pastebin.com/df4356ff Jun 12 18:34:36 it never even steps into onCreate... ideas? Jun 12 18:36:11 did you know this page? you can see how the ranking of every app has changed over time in the market place: http://androidstats.com/ranking/application/8110 Jun 12 18:37:30 Hmm, I wonder if anyone got experience with using proguard with android apps? Jun 12 18:37:44 How to finetune the optimization phase so that dx won't barf? Jun 12 18:38:26 mpardo: when you say it goes off, what do you mean? Jun 12 18:38:32 your code receives the alarm? Jun 12 18:39:06 mpardo: also, just FYI, if you're setting a once-a-day alarm, you might want to think about using setInexactRepeating() instead Jun 12 18:39:11 the alarm is "triggered" and then rescheduled (repeating). I can see using "adb shell dumpsys alarm" Jun 12 18:39:40 but it's not delivered? or what? Jun 12 18:40:08 yacc, it's barfing? gimme a sec, I'll find out what settings I'm using Jun 12 18:40:33 ctate, exactly. I'm debugging... and the code should step into the service, but it doesn't Jun 12 18:40:43 tauno, mine is barfing about: [apply] com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type int using a local variable of type java.lang.Object. This is symptomatic of .class transformation tools that ignore local variable information. Jun 12 18:40:48 is it launching the service at all? Jun 12 18:40:52 nope Jun 12 18:41:09 tauno, adding -dontoptimize makes that go away, but it also turns my <10KB app into a 50KB app. Jun 12 18:41:21 what is AlarmService ? Jun 12 18:41:29 yacc, ah yeah, I'm also using -dontoptimize :( Jun 12 18:41:41 its my class that extends Service Jun 12 18:42:07 tauno, and I do not think that there are more detailed options to specify what it is allowed to do, ... Jun 12 18:42:14 yacc: did you try with --no-locals Jun 12 18:42:22 in the log, do you see it even *trying* to launch the service? Jun 12 18:42:22 I don't remmeber why but it might be the same reason that it was acting silly on me when it was turned on :( Jun 12 18:42:27 i'm not sure setInexactRepeating will work because the time to go off is a preference setting and the user will expect the app to do what it wants Jun 12 18:42:31 kRutOn, --no-locals for dx or for proguard? Jun 12 18:42:32 also, if you just fire that PendingIntent yourself, does it start the service? Jun 12 18:42:36 yacc: d Jun 12 18:42:38 yacc: dx Jun 12 18:42:40 let me check Jun 12 18:42:49 mpardo: if the exact fire time is important, then yeah, inexact is not for you Jun 12 18:43:21 ctate, you mean in the logcat view? Jun 12 18:43:28 yes Jun 12 18:43:41 let me set run the test again and take a look Jun 12 18:44:17 kRutOn, not that 50K is that when I think, similiar programs that have to carry the same data seem to be >25KB even for Java programs anyway. Jun 12 18:44:24 can I ask why the droid compiler isn't optimizing the code as much as proguard? <10KB to 50KB seems like a lot of room to improve things there Jun 12 18:44:24 kRutOn, what does --no-local do? Jun 12 18:44:45 tauno, Well, the comparision is unfair. Jun 12 18:45:09 tauno, 10KB was without data tables, ... ;) Jun 12 18:45:25 ah ok, I understood you compared the proguard optimized vs non-optimized .apk size :) Jun 12 18:46:03 yacc: I forget exactly, but I had to search through the source code for a while to find out. Jun 12 18:46:53 tauno, but with dx --no-locals and proguard running with optimizations I'm getting still 39K to 49K before. Jun 12 18:47:16 http://drunkhobo.com/~sean/wasted_again.mp3 Jun 12 18:47:16 tauno, well, yes the app was somewhat slimmer without the data it needs to know about ;) Jun 12 18:47:22 ctate, "Unable to start service Intent... blah... : not found" Jun 12 18:47:31 what kind of crap is that? Jun 12 18:47:58 yacc, so --no-locals worked? Jun 12 18:48:05 tauno, yeah. Jun 12 18:48:11 lol hold on a sec Jun 12 18:48:16 great, have to try that too then :) Jun 12 18:48:26 ctate, manifest Jun 12 18:48:48 if danfuzz beats you on the head for using --no-locals, it's not my fault :-) Jun 12 18:49:09 it does something.. bad? :P Jun 12 18:49:16 The irritating thing are all these undocumented thingas like --no-locals. Jun 12 18:49:26 Or how adb ppp is supposed to work, ... Jun 12 18:50:04 kRutOn, well, I've got his permission to use that option I think, as a workaround for a bug I reported, anyway ;) Jun 12 18:50:22 woot! that worked Jun 12 18:50:38 yacc: Actually, it appears Dan replied to your message with this before. Jun 12 18:50:47 yeah, that's what I just ran into Jun 12 18:51:02 I was trying to find any instances where he mentioned no-locals and its use Jun 12 18:51:38 Apparently it turns off some error checking Jun 12 18:52:07 He requests any .class file that causes an error with dx that is fixed by --no-locals to be submitted as a bug to be triages Jun 12 18:52:10 kRutOn, well, the optimize proguard problem is new. Jun 12 18:52:10 triaged Jun 12 18:52:45 kRutOn, well, the error message is quite informative. Jun 12 18:53:05 kRutOn, I mean, proguard is probably being clever and tries to use one local variable for different types, ... Jun 12 18:53:13 kRutOn, curious that JVMs allow this. Jun 12 18:53:47 kRutOn, dx OTOH has this "clean-room-reimplementation" feel ;) Jun 12 18:54:50 kRutOn, I've got the "--no-locals" permission because scala match statements seem to create local variables for overlapping bytecode regions, ... Jun 12 18:56:20 yacc: yeah, a lot of tools do things like that Jun 12 18:57:27 kRutOn, well, not sure what the Google stance on this is. Jun 12 18:58:00 While being holy and following the specs seems sane, it throws out a number of interesting stuff in the Java space, ... Jun 12 18:58:03 mpardo: belated, the problem was that you hadn't declared the service in your manifest? i'm guessing? Jun 12 18:59:46 ctate, yep Jun 12 18:59:58 the small crap we often forget Jun 12 19:02:45 Does android.net.http.RequestQueue exist? I have seen a few posts mentioning that class Jun 12 19:03:04 but couldn't find it Jun 12 19:09:03 skyred: not in the SDK Jun 12 19:11:07 i am still unabel to locate how to change settings -> locale & text ->touch input -> keyboard language, i have tried google it and of cause also http://developer.android.com/reference/packages.html *cry* Jun 12 19:20:21 Is it possible to add a new TableRow to a TableLayout? Jun 12 19:23:41 yacc: yes Jun 12 19:23:59 romainguy, AddView? And how do I remove the views later? Jun 12 19:26:23 removeView() Jun 12 19:26:25 removeView(child) Jun 12 19:28:44 And for a TableLayout I need to add always a TableRow that can contain further stuff, right? Jun 12 19:35:10 does one check in the default.properties file? Jun 12 19:37:08 yacc, read the build.xml file Jun 12 19:37:20 yacc: no you can add arbitrary views Jun 12 19:37:45 KNY? Jun 12 19:37:55 yacc, are you using ant? Jun 12 19:39:48 I think build.properties says it must be checked in Jun 12 19:40:02 at least the default template does Jun 12 19:42:18 kRutOn, if he's not using ant then it doesn't matter Jun 12 19:51:18 I can't remember, what do I put as the name in the manifest if a receiver is nested in another class....I thought it was "com.something.Outerclass#NestedClass", but that didn't work, and I can't find the documentation I need for it Jun 12 19:52:26 $ is the usual notation Jun 12 19:52:38 KNY: thanks Jun 12 19:52:46 sorry, I just completely drew a blank on it Jun 12 19:53:09 no guarantee that it's right :) Jun 12 19:54:23 a manifest receiver has to be a *static* inner class Jun 12 19:54:29 it can't be an ordinary inner class Jun 12 19:54:35 it is a static inner class :) Jun 12 19:54:42 try com.Something.Outerclass$NestedClass Jun 12 19:55:03 KNY, yes, using ant. Jun 12 19:55:20 yacc, then feel free to check it in. just don't check in local.properties :) Jun 12 19:55:34 it was a DPE....for some reason I keep typing Manager as Mananger Jun 12 19:55:45 KNY, is it so simple to smell my intense loving emotions for eclipse? ;) Jun 12 19:56:00 haha Jun 12 19:59:50 I can put the emu in landscape using numpad 7 or ctrl+F11. Is this the same on Windows? Jun 12 20:02:59 KNY, no idea why people insist to use that nuclear super charged editor, that makes the newest hardware feel like a 8 bit homecomputer straight from the 80s ;) Jun 12 20:03:23 yacc, maybe on your machine. works fine over here Jun 12 20:03:43 get more RAM Jun 12 20:03:49 if/how can I stop a TextView from autolinking the string "1.2.3.4"? :) the text contains real links so I can't totally disable it I guess Jun 12 20:04:06 also, I seem to recall early computers being pretty fast due to their extremely special purpose coding :) Jun 12 20:05:00 all you need in life is vim Jun 12 20:05:17 KNY, well, I had once a project lead that insisted on using it, I once managed to branch, fix typo, run uniitests, merge while his shiny new laptop was munching at a "workspace update" from svn ;) Jun 12 20:05:47 haha Jun 12 20:06:37 KNY, well, my laptop was 2.5 years old at this point, had had a single core, and some GB less RAM than his. Jun 12 20:06:54 KNY, not sure if that is funny, ... Jun 12 20:07:40 thankfully, no one forces you to use any particular editor Jun 12 20:07:44 what a world we live in Jun 12 20:25:10 why does the textview try to link what it thinks are IP adresses? I could understand that it starts to link when it sees 1.2.3.4:123 or 1.2.3.4/something etc.. but why does it think all numbers that are in the form x.x.x.x are IP adresses? :) Jun 12 20:26:07 Because of addresses like 10.x.x.x Jun 12 20:27:04 It probably isn't setup to ignore number length Jun 12 20:29:44 tauno: so it thinks that 500.325.2.9 is an IP address? heh Jun 12 20:32:16 idk if it links over 255 numbers :) Jun 12 20:32:32 I guess not Jun 12 20:33:31 Tauno have you fixed your problem ? Jun 12 20:34:37 would be nice if the autolink option had the following parameters: web,tel,mail,IP etc that you can or together to get finer control of the linking stuff Jun 12 20:34:40 drumm, no Jun 12 20:34:59 maybe there's already something there to disable the autolinking of IPs.. haven't founf that yet Jun 12 20:35:14 What context is it being used in. Because it might be worth splitting up the numbers if possible Jun 12 20:35:48 it's a version/serial number Jun 12 20:36:42 I wonder if you could encode the decimals using HTML entities and trick it Jun 12 20:37:20 For.. ? Because "-"'s are more common with serial Numbers. and a version could be. 1.234 Jun 12 20:37:45 I use a.b.c in my version numbers, personally Jun 12 20:38:22 Fair enough. Jun 12 20:38:46 I can't change the number itself, it has to be in the form x.x.x.x I have no power over it Jun 12 20:47:14 anyone know the max date i can put into android.text.format.Time ? Jun 12 20:47:22 for my version numbers, I use http://a.b.c.d/ Jun 12 20:49:13 KNY, you happen to know the html entity for "."? :)) Jun 12 20:49:39 * kRutOn . o O ( man ascii ) Jun 12 20:50:06 :( Jun 12 20:50:10 . Jun 12 20:50:29 I was more looking for human-readable form of ˙ but that sure wasn't it :) Jun 12 20:52:13 names are deprecated Jun 12 20:52:26 kRutOn, thanks.. stupid as I am, I went to http://www.w3schools.com/tags/ref_entities.asp to search for it :/ Jun 12 20:53:32 I can blame it on "I'm overworked" again :P currently my 14th hour at work :/ Jun 12 20:54:14 ..who am I kidding.. I'm just not the sharpest knife on the table Jun 12 20:54:43 I think you should only use < > & and " Jun 12 20:54:56 the rest should be in the &#xNNNN; format Jun 12 20:55:09 k, I'll try to remember that Jun 12 20:55:22 hey guys, I'm trying to get the vodafone MMS settings, anybody got a magic in the UK? Jun 12 20:55:26 and btw, this did the trick - it won't autolink it anymore :) Jun 12 20:55:43 (sorry I know off topic) Jun 12 20:55:45 tauno: I'll be sure to submit a bug fix for the autolinker :-) Jun 12 20:57:26 grr :P Jun 12 21:21:06 I'm checking out the location stuff, but I'm having some trouble actually getting a Location from my LocationManagers getLastKnownLocation() method. I tried inputing GPS coordinates in DDMS, but couldn't get that to work. Now I resorted to using a mock location provider, but I'm still not getting anything. Is any of you guys able to spot an error with the code at http://pastebin.com/m1c61ff5a ? Jun 12 21:22:29 This is SDK 1.5. I tried both r1 and r2 with the same result. Jun 12 21:25:13 Settings -> Applications -> Development -> Allow mock locations Jun 12 21:25:52 that's checked? (idk if it matters for your case.. just noticed the setting one day :) ) Jun 12 21:28:08 tauno: thanks for that tip, but it is already checked :) Jun 12 21:28:57 evening gents, I am trying to parse efficiently a 500kb xml file Jun 12 21:29:06 struggling to find a way ot do it quickly Jun 12 21:30:56 don't use xml? :) Jun 12 21:32:02 im forced to use xml Jun 12 21:32:04 the feed is xml Jun 12 21:32:04 renegadeandy, use SAX? Jun 12 21:32:10 well kny Jun 12 21:32:34 im looking at this : http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html Jun 12 21:32:37 but its still bloody slow Jun 12 21:34:55 I've used SAXParser and it's pretty quick though I've never used it on a 500kb file Jun 12 21:36:01 the biggest I've tested against was ~200kb Jun 12 21:36:18 use two SAXparsers, it'll be 2x faster Jun 12 21:36:29 sry for the lame joke :/ Jun 12 21:36:39 back to my cave with me.. Jun 12 21:37:10 and how quick was that kny Jun 12 21:37:14 lol tauno cheers, Jun 12 21:37:27 actually, maybe if i threaded it - one form bottom, one from top!? Jun 12 21:38:00 renegadeandy, uh, I don't know. Fast enough for my use? Jun 12 21:38:05 why not code it up quickly and test? Jun 12 21:38:36 yeah im doing it now Jun 12 21:39:47 if this was a line from the xml : Jun 12 21:39:49 Jun 12 21:39:52 if i did Jun 12 21:39:59 xpp.STARTTAG{ Jun 12 21:40:11 xpp.getAttribute(0) would that be the text attribute? Jun 12 21:42:48 have u guys heard of Open Mobile System? Jun 12 21:42:53 OMS Jun 12 21:43:15 it's a system built on top of android from china Jun 12 21:43:20 http://bbs.cool3c.com/article/9212 <- it's in chinese Jun 12 21:43:27 http://www.omsdn.net/ Jun 12 21:44:00 ...no Jun 12 21:52:48 od dam Jun 12 21:52:54 nah this file is just way too big Jun 12 21:52:57 it just takes oto long to parse Jun 12 21:52:59 hmm Jun 12 21:53:30 chouman82, interesting Jun 12 21:55:35 does anybody know any web services for football Jun 12 21:55:37 football news Jun 12 21:59:16 real football, or that american thing? ;) Jun 12 22:02:04 cp d.android.com omsdn.net; sed 's/Android/OPhone/g' omsdn.net/* Jun 12 22:02:06 done **** ENDING LOGGING AT Fri Jun 12 22:02:30 2009 **** BEGIN LOGGING AT Fri Jun 12 22:03:25 2009 Jun 12 22:06:33 Anyone know where/how to install the wst xml plugin for eclipse on Fedora to install the android sdk? Jun 12 22:07:44 kRutOn, nah, they have support for wiidgeeets with htmlcssjscript :P Jun 12 22:07:58 ..and they have a shiny webpage :)) Jun 12 22:08:30 perlmonkey2 just do it manually Jun 12 22:08:32 just as easy Jun 12 22:08:36 "Fetion is an popular instance message software provide by CMCC." Jun 12 22:08:41 anyone seen images for the next android dev phone? Jun 12 22:08:53 guys - is there a way with webview to remove the url bar Jun 12 22:08:59 I came across some images the other day but i can't find them anymore.. Jun 12 22:09:07 renegadeandy: looking for it now (not sure where to start) Jun 12 22:16:15 perlmonkey2 if ur on windows i can walk u thru it Jun 12 22:17:15 renegadeandy: nope, fedora Jun 12 22:17:19 thanks though. Jun 12 22:17:40 renegadeandy: it shoudn't be overly different. Where would I find the wst xml package? Jun 12 22:23:34 getting the wst plugin is covered on the troubleshooting page iirc Jun 12 22:27:45 mx: sorry, but the android sdk troubleshooting or eclipse? Jun 12 22:29:18 android Jun 12 22:29:52 got it, thank you, thank you Jun 12 22:29:58 well, got the link :) Jun 12 22:48:26 heh, that troubleshooting guide just says "You need to install the required components." for the error I got. Very helpful :P Jun 12 22:49:51 perlmonkey you want to install the xml eclipse plugin? Jun 12 22:59:32 permonkey2: http://developer.android.com/guide/appendix/faq/troubleshooting.html#installeclipsecomponents Jun 12 22:59:42 did you check that? Jun 12 23:56:00 i am going crazy =( i can't find info about changing spell check language anywhere ? os this not posable to do ? Jun 13 00:12:27 fanno highly doubt it will correct foreign languages Jun 13 00:16:42 well all i am trying to do is create a program that allow users to more quickly to change the spelling language rather than having to go to the settings area every time Jun 13 00:36:56 does anybody have any experiance making use of the gps Jun 13 00:37:01 as in getting somebodies location Jun 13 00:39:02 like say latitude? Jun 13 00:54:54 renegadeandy: on my htc magic it has danish language on it Jun 13 01:12:03 Hi -- I've created a text file in my data/data directory on the device, and am trying to adb pull it onto my desktop pc... I get permission denied.. what's the right way to do this? set the file permission on the device.. or... ? Jun 13 01:28:38 is anybody still here Jun 13 01:33:53 i am Jun 13 01:36:57 fanno do you know how to make a custom view Jun 13 01:37:04 i.e web view with a lil button panel at bottom Jun 13 01:39:19 viewing web content ? Jun 13 01:40:44 have you seen this one ? Jun 13 01:40:45 http://developer.android.com/reference/android/webkit/package-summary.html Jun 13 01:46:49 raugust: yeah, that link doesn't help at all. Jun 13 01:47:34 hmm why they want a 25$ reg fee to register on android market ? Jun 13 01:47:35 I'm using the 3.4 instructions and they seem to imply that the install can be completed without the wst/xml req. And then the update will pull it in. But I can't complete the install Jun 13 01:47:54 fanno because u can sell ur apps on it Jun 13 01:47:58 and they gota make a bit of money Jun 13 01:48:04 but i dont wanna see them .. Jun 13 01:48:09 what? Jun 13 01:48:16 *sell Jun 13 01:48:17 i ment Jun 13 01:48:24 u wana giv for free? Jun 13 01:48:25 its a free app Jun 13 01:48:30 fanno, doesn't matter Jun 13 01:48:35 u can sell under my name if u want Jun 13 01:48:43 it's for accountability and all that Jun 13 01:48:57 I mean seriously, it's $25. How much did you spend on your phone? Jun 13 01:49:15 dunno how much that is in $ hehe Jun 13 01:49:58 i created a small app that alow you to change input method from the notification area so you dont have to change everytime you need to type a different language Jun 13 01:50:06 ok Jun 13 01:50:08 well Jun 13 01:50:10 if u wana distribute Jun 13 01:50:15 i can do it, and make it free for u Jun 13 01:50:20 if u dont wana do the $25 signup Jun 13 01:50:56 think of it this way: apple is $99 just for the privilege of submitting your application to be reviewed Jun 13 01:51:36 bah, been chasing my tell....keep googling back reports that the Fedora eclipse build is incompatiable with the android sdk. Jun 13 01:51:48 KNY: well the good think about that is that the apps are "good" i have had a few apps that crash my phone already =( Jun 13 01:52:34 then get an iphone Jun 13 01:52:37 i have both Jun 13 01:52:40 and developed on both Jun 13 01:52:41 nah Jun 13 01:52:44 this is FAR FAR AFAR superior Jun 13 01:52:47 anyway Jun 13 01:52:47 i dont like them =P Jun 13 01:52:49 thats the deal Jun 13 01:52:51 u pay Jun 13 01:52:52 use me Jun 13 01:52:55 use someone else Jun 13 01:52:57 or lump it Jun 13 01:53:06 KNY - have u any experiance with making modified web views? Jun 13 01:53:20 no, or else I would have answered your question Jun 13 01:53:30 roight Jun 13 01:54:29 renegadeandy: chill =P i was just making convesation no need to get defensive =). i like android and OS so why else would i get a android phone =) i am just suprised to see the fee thats all Jun 13 01:55:00 fanno, like I said, it's $25 and you get to publish any apps you want (that comply with the DDA) Jun 13 01:55:17 for free or not Jun 13 01:55:33 whats dda ? Jun 13 01:55:47 developer distribution agreement Jun 13 01:56:13 hehe Jun 13 01:56:15 ok Jun 13 01:56:24 boo i cant use paypal ! Jun 13 02:00:49 how can i "version" the releases and name them "beta" or what not ? as this is ofcause first release and only tested on one type of device ? Jun 13 02:03:41 what do they mean by this " Keep my email address confidential." is this is my email is displayed on the market ? or are they talking about not selling the email ? Jun 13 02:12:53 night night all Jun 13 02:13:08 and beh now my creditcard is also rejected !!"#%"%&"¤&#% Jun 13 02:20:22 alrgiht Jun 13 02:20:25 off to bed for me Jun 13 02:20:27 night mate **** ENDING LOGGING AT Sat Jun 13 02:59:57 2009