00:45.07 | *** join/#android muthu (n=sushmu@59.92.40.245) |
01:22.34 | *** join/#android andrewlacy_ (n=andrewla@113.sub-70-210-190.myvzw.com) |
01:26.20 | *** join/#android jasonchen (n=jasonche@c-24-23-1-217.hsd1.mn.comcast.net) |
01:28.18 | *** part/#android jasonchen (n=jasonche@c-24-23-1-217.hsd1.mn.comcast.net) |
01:28.34 | *** join/#android jasonchen (n=jasonche@c-24-23-1-217.hsd1.mn.comcast.net) |
01:37.10 | *** join/#android Dralspire (n=dralspir@56-196.126-70.tampabay.res.rr.com) |
01:38.32 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
01:38.33 | jasta | yawn |
01:38.56 | yakischloba | good evening |
01:40.05 | jasta | yes. |
01:40.38 | yakischloba | heh. eventful weekend? |
01:47.40 | jasta | not realy |
01:47.41 | jasta | went camping |
01:47.48 | jasta | with some old family friends |
01:48.05 | *** join/#android andrewlacy (n=andrewla@adsl-76-220-111-124.dsl.pltn13.sbcglobal.net) |
01:50.16 | yakischloba | where at? |
01:52.28 | yakischloba | I'm trying to use android:visibility on a Button. Is this wrong? Eclipse is giving me "Error: Integer types not allowed" |
01:52.42 | jasta | visibility=false |
01:52.43 | jasta | not 0- |
01:52.58 | yakischloba | Oh. So i don't get the 3rd option? |
01:53.16 | jasta | err, i'm being dumb |
01:53.25 | jasta | yeah i think it's invisible/visible/gone |
01:53.31 | yakischloba | 0, 1, 2 |
01:53.39 | yakischloba | uhm. ok |
01:53.45 | jasta | no, you can't or at least should not use the integer form. |
01:54.20 | yakischloba | doh. I guess I read that table wrong. |
02:00.09 | yakischloba | What does the 'back' button do as far as activity lifecycle? |
02:00.24 | yakischloba | finish()? |
02:03.17 | f00f- | View.VISIBLE |
02:03.18 | f00f- | etc. |
02:03.48 | f00f- | yakischloba: yes by default unless you override onKeyDown |
02:03.59 | yakischloba | k |
02:09.31 | yakischloba | Am I correct that onFreeze() is skipped when ending an Activity with finish()? |
02:11.26 | yakischloba | or is it called but the Bundle is just discarded? |
02:13.05 | *** join/#android muthu (n=sushmu@59.92.89.234) |
02:33.49 | *** join/#android andrewlacy (n=andrewla@204.14.158.58) |
02:41.16 | *** join/#android aculich (n=aculich@216-15-124-74.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com) |
02:44.20 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
02:47.28 | *** part/#android aculich (n=aculich@216-15-124-74.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com) |
02:53.28 | jasta | yakischloba: it is probably still called, but i'm not sure. |
02:54.11 | yakischloba | i looked through the docs for a while, i couldn't figure it out. |
02:55.06 | yakischloba | whatever. Is there general consensus on how the back button is supposed to be handled? is it up to me to give the user some idea of whether or not the state will be saved? |
02:59.19 | jasta | yakischloba: the user is going to assume state is saved, because all other applications will do that. |
02:59.56 | jasta | it's a convention, not a rule, but one that user is likely to expect and take for granted. |
03:00.43 | yakischloba | k. |
03:04.38 | muthu | you save, onpause |
03:05.20 | jasta | actually, you save state in onfreeze, but you persist in onstop. |
03:05.37 | yakischloba | I thought I was supposed to persist in onPause. |
03:05.48 | muthu | depends on your flow |
03:06.32 | jasta | yakischloba: well yeah, that would depend on your application. onPause happens when something is displayed over your activity |
03:06.39 | jasta | like, a translucent window or what-have-you. |
03:07.00 | jasta | for some applications, onPause and onStop would represent basically the same case, so onStop might make most sense for readability. |
03:09.08 | yakischloba | I need to handle data validation on entry then I guess? I can't have data errors if I must persist in onPause(), and I don't get an opportunity to validate it and notify the user.. |
03:09.29 | yakischloba | I guess i've mostly been doing that anyway. |
03:09.34 | muthu | yeah, validate immediately |
03:09.39 | jasta | well, you could layer validation, actually. |
03:09.53 | jasta | so, for example imagine you had an application which required they enter a dollar amount |
03:10.22 | *** join/#android andrewlacy_ (n=andrewla@113.sub-70-210-190.myvzw.com) |
03:10.34 | jasta | and they had typed "1.", then got a call, did some other crap, and came back. under this scenario, "1." would probably not validate, but they do not expect the "1." to go away. |
03:10.44 | jasta | even though it would fail validation, you should still store it and recall for them in the Bundle. |
03:10.50 | jasta | but you wouldn't want to necessarily persist the "1." |
03:10.57 | jasta | since it wouldn't validate. |
03:11.35 | yakischloba | yeah. this gets complicated. |
03:11.42 | jasta | again, to highlight the difference, saving state is just a way to recover if your process disappears. |
03:11.52 | jasta | persisting is a way to recall even after the phone reboots |
03:12.07 | yakischloba | yeah of course. I'm just trying to wrap my head around implementation. |
03:12.14 | jasta | so, in this example it might make sense to save state regardless of validation, but only persist when it validates. |
03:12.33 | jasta | the best strategy in general though is to imagine all the possible ways the user can interact with *YOUR* activities, and design for those cases. |
03:12.40 | yakischloba | mmhmm. |
03:12.50 | jasta | Don't presume to have a good general purpose solution. |
03:13.09 | jasta | Every application will want to maintain and recall state differently, and to persist data objects differently. |
03:13.24 | jasta | Just imagine how the lifecycle actually translates to usage of your application, and cover those cases. |
03:13.47 | jasta | That is, the user is in the application one moment, and may navigate away indefinitely to do some other task, expecting to return to some reasonable state. |
03:14.07 | jasta | Sometimes that reasonable state requires nothing is saved/recalled. Other applications may have to be quite aggressive. |
03:25.36 | yakischloba | Is there a way I can get at the value set in setResult from the Activity setting it? (getResult?) |
03:26.02 | jasta | yakischloba: from the activity setting it? |
03:26.18 | jasta | How is it that you lost the value? :) |
03:26.52 | yakischloba | Well I've been drinking. Let me re-think and see if I didn't need to ask that question. |
03:26.52 | jasta | The general pattern puts setResult and finish very close to each other :) |
03:27.38 | yakischloba | I'm trying to check the result in onPause() |
03:28.28 | jasta | it would not be appropriate to set the result in onPause or onStop, since the user has made no choice yet. |
03:28.47 | yakischloba | I'm not setting. I'm *checking*. |
03:29.00 | jasta | only call setResult() just before you finish(). |
03:29.12 | jasta | There is no need for any other arrangement. |
03:29.18 | jasta | [that i can see] |
03:30.48 | yakischloba | Heres my scenario: I have the included 'back' button, a Save button and a Cancel button. If the user clicks Save or uses the 'back' button, I want the data to be persisted. If they click cancel, I don't want it to. So I want to setResult, then finish() in my Save/Cancel buttons, and check it in onPause() to see whether I should persist or not. |
03:31.46 | jasta | can you give me an idea what sort of data you're opreating on here? |
03:31.52 | jasta | what user interface are you trying to create? |
03:32.00 | yakischloba | pretty simple stuff. Age, height, weight, gender |
03:32.02 | yakischloba | etc |
03:32.22 | jasta | are you sure you understand what setResult() does? |
03:33.01 | yakischloba | Maybe? Is it inappropriate to think I could use it for two things here? |
03:33.33 | yakischloba | I understand that its supposed to be for the 'parent' Activity to know the outcome of its subActivity |
03:33.55 | jasta | No. It is designed only to return information to the calling activity. |
03:34.11 | jasta | No to your first question, yes to your second ;) |
03:34.37 | muthu | use setResult if you had started a subactivity |
03:34.51 | jasta | yakischloba: But you don't use setResult to save your state. |
03:34.58 | jasta | You do that independent of the result you plan to give to your caller. |
03:35.07 | muthu | calling finish is something you might want to again check your flow |
03:35.23 | *** join/#android Dralspire2 (n=dralspir@56-196.126-70.tampabay.res.rr.com) |
03:35.55 | yakischloba | They are one in the same. I want to have onPause() check as to whether the data should be persisted or not, and I want to inform my calling Activity as to whether it was or not |
03:36.24 | jasta | yakischloba: You can't inform your caller of anything until finish is called. |
03:36.34 | jasta | The onActivityResult method will only fire when the sub activity exits. |
03:36.44 | yakischloba | since I'll be validating the data prior to any of this, there shouldn't be any reason why the save would fail |
03:36.54 | jasta | That was my point, so in onPause or onStop, you haven't finished yet, and thus setResult does nothing useful. |
03:37.41 | jasta | So, as just as a measure of good design I would find another way to persist this data and call setResult only when the user has elected to leave this subactivity. |
03:37.58 | jasta | By the way, I am sensing that you are not using sub activities correctly here... |
03:38.26 | jasta | sub activities are for things like choosing a contact, a bookmark, or a file location. |
03:38.38 | jasta | Then whent he user makes a choice, the activity finishes and gives the choice back to the caller. |
03:38.59 | jasta | For persistent data part of your application's logic, a sub activity would seem inappropriate to me. |
03:39.17 | yakischloba | ok |
03:40.00 | muthu | jasta: are you sure setresult is called only after finish? |
03:41.48 | jasta | If I said that I meant before finish. |
03:42.11 | muthu | right.. no i'm not pickin on you |
03:42.29 | muthu | is it called before finish |
03:42.37 | muthu | or everytime an activity is hidden? |
03:42.38 | jasta | But I am certain that the result is only received by the caller until after the subactivity finishes. |
03:42.45 | muthu | ok |
03:42.57 | jasta | muthu: You can call it as much as you'd like. It will only be picked up the by the parent when the activity finishes. |
03:43.05 | jasta | That was my point. Calling it often makes absolutely no sense. |
03:43.24 | jasta | and is just likely to catch your application in an inconsistent state. |
03:43.37 | muthu | ok.. was wondering about the defaults here |
03:43.52 | jasta | this isn't a question of defaults. i don't even know what you mean by that. |
03:53.13 | yakischloba | Is it a good idea to close() databases onPause() and open() onResume? |
03:54.53 | muthu | better to open/close when you need them |
03:55.17 | yakischloba | ok |
03:55.32 | muthu | and do databases in background |
03:55.53 | yakischloba | erg. |
03:56.51 | yakischloba | I think I need to KISS for now and re-do bad parts later when I know what I'm doing :) |
03:57.07 | muthu | yup |
04:23.38 | jasta | lol, sweet |
04:23.56 | jasta | 3.2MB/sec from Adobe :) |
04:24.00 | jasta | at work |
04:25.09 | jasta | just bursted, but still ;) |
04:25.30 | jasta | hehe, 94MB in 1m2s :) |
04:26.45 | yakischloba | O_O |
04:46.03 | pawalls | jasta, yo |
04:47.54 | *** join/#android alex2308 (n=alex2308@daloo.de) |
04:52.26 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
05:20.06 | jasta | pawalls: sup |
05:37.43 | *** join/#android duey (n=Nick@203.96.223.40) |
05:58.17 | *** join/#android davidw (n=davidw@213.47.186.146) |
06:13.46 | *** join/#android borism (n=boris@194.126.108.2) |
06:18.17 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
06:24.15 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
06:40.41 | *** join/#android EQU (n=chatzill@77-252-115-250.ip.netia.com.pl) |
06:47.36 | *** join/#android alex2308 (n=alex2308@daloo.de) |
06:54.59 | *** join/#android chab7 (n=kvirc@212.92.4.114) |
07:06.13 | *** join/#android inZane-_ (i=nemo@dslb-084-058-058-133.pools.arcor-ip.net) |
07:32.06 | jasta | yawn |
07:43.37 | *** join/#android cutmasta (n=cutmasta@62.225.134.181) |
07:44.09 | *** join/#android cutmasta_ (n=cutmasta@62.225.134.181) |
08:00.00 | *** join/#android alex2308 (n=alex2308@daloo.de) |
08:02.51 | *** join/#android cutmasta (n=cutmasta@62.225.134.181) |
08:37.19 | *** join/#android anno^da_ (n=anno^da@p5B07F92A.dip.t-dialin.net) |
08:44.22 | *** join/#android mr_daniel (n=sysrq@e177155217.adsl.alicedsl.de) |
09:01.44 | *** join/#android dasilvj (n=dasilvj@163.5.255.63) |
09:02.11 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
09:27.08 | *** join/#android davidw (n=davidw@node-pt089-105-163-066.infra.schwaz.net) |
09:28.28 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
09:59.21 | *** join/#android chab7 (n=kvirc@212.92.4.114) |
10:38.54 | *** join/#android anno^da_ (n=anno^da@p5B07DD10.dip.t-dialin.net) |
10:57.36 | *** part/#android muthu (n=sushmu@59.92.89.234) |
11:10.36 | *** join/#android crib (n=chris@port-195-158-167-6.dynamic.qsc.de) |
11:28.28 | anno^da_ | Hello guys. |
11:28.31 | anno^da_ | someone here ? |
11:31.03 | EQU | yes :) |
11:33.33 | anno^da_ | Oh great. I think my question could be easy for you. :-) I'm trying to replace something in a String and can't find out how to do it the right way. I tried the replace functions of the String class but cant get it to work. |
11:33.52 | anno^da_ | I'm getting the following String back from the Flickr API: jsonFlickrApi({"stat":"fail", "code":96, "message":"Invalid signature"}) |
11:34.22 | anno^da_ | To use it as a JSONObject I have to get rid of the "jsonFlickrApi(" and the enclosing ")" |
11:35.04 | anno^da_ | Do you know how to achieve that ? |
11:35.50 | EQU | no :( |
11:41.32 | tric | anno: is it always this string? use String.substr ;-) |
11:42.14 | anno^da_ | yeah it is |
11:42.22 | anno^da_ | it is always this string |
11:42.50 | anno^da_ | and I dont know why they enclosed their JSON response with that String |
11:42.51 | *** join/#android muthu (n=sushmu@59.92.29.26) |
11:43.35 | tric | so check for starting "jsonFlickrApi(" and use substr() |
11:45.47 | *** join/#android michaelnovakjr_ (n=mnovak@96.56.111.166) |
11:48.27 | anno^da_ | well thats to easy to be true :) |
11:48.38 | anno^da_ | +too |
11:48.41 | anno^da_ | Thanks tric |
11:57.58 | *** join/#android mazzen (n=mortel@dhcp-ce168199.intern.uni-duisburg-essen.de) |
12:37.23 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
12:53.29 | *** join/#android tethridge (n=tale@207.235.54.1) |
13:00.55 | *** join/#android plxotl (n=plxotl@c-24-147-70-144.hsd1.ma.comcast.net) |
13:33.42 | *** join/#android AstainHellbring (n=Administ@unaffiliated/astainhellbring) |
13:34.52 | *** join/#android michaelnovakjr__ (n=michaeln@72-59-215-13.area3.spcsdns.net) |
13:39.52 | *** join/#android muthu (n=sushmu@59.92.52.187) |
13:50.59 | *** join/#android borism (n=boris@195-50-207-47-dsl.krw.estpak.ee) |
14:02.47 | gambler | ding... http://linuxdevices.com |
14:03.03 | gambler | android competitor newsworthiness |
14:04.52 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.wa.comcast.net) |
14:05.25 | *** join/#android yakischloba (n=jake@c-24-17-53-6.hsd1.mn.comcast.net) |
14:07.54 | *** join/#android aculich (n=aculich@pool-70-19-170-248.bos.east.verizon.net) |
14:23.05 | *** join/#android andrewlacy (n=andrewla@183.sub-75-208-214.myvzw.com) |
14:28.54 | *** join/#android mazzen (n=mortel@dhcp-ce168199.intern.uni-duisburg-essen.de) |
14:33.36 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
14:45.27 | *** join/#android zhobbs_ (n=zach@rrcs-24-106-158-216.central.biz.rr.com) |
14:52.35 | SanMehat | mornin |
14:52.40 | jasta | morning. |
14:52.44 | SanMehat | how goes. |
14:52.54 | jasta | ok :) |
14:53.01 | jasta | brb, shower time |
15:08.40 | jasta | hehe, weird, my cell phone interferes with my wireless keyboard and mouse |
15:08.51 | jasta | i would not have expected that |
15:09.15 | michaelnovakjr | what does it do to it? |
15:09.35 | jasta | it causes keys to be missed or repeated. |
15:09.56 | jasta | when the phone is transmitting, and the speakers are picking up the interference, i basically can't type |
15:10.14 | jasta | i have to move it away from the kb/mouse receiver. |
15:10.30 | *** join/#android yakischloba (n=jake@rnkfoods.com) |
15:11.21 | jasta | michaelnovakjr: i started working on my solitaire engine hehe |
15:11.33 | jasta | coding up a quick freecell game |
15:12.31 | *** join/#android Darkeye11547 (n=Craig@dsl253-084-234.hou1.dsl.speakeasy.net) |
15:12.54 | michaelnovakjr | sweet |
15:13.07 | michaelnovakjr | i'm finishing up the Messages apk |
15:13.12 | yakischloba | gross waste of time :/ |
15:13.20 | michaelnovakjr | why? |
15:14.23 | yakischloba | heh. working as kind of a supervisor for the last couple years i have learned to hate solitaire and freecell, as i've caught people playing that shit countless times on the clock ;) |
15:14.29 | SanMehat | hates MMC |
15:14.57 | *** join/#android andrewlacy (n=andrewla@167.sub-75-209-255.myvzw.com) |
15:15.06 | yakischloba | i regularly go around and uninstall solitaire. people actually go to the trouble of bringing it in from home and reinstalling it |
15:15.19 | michaelnovakjr | haha |
15:17.58 | *** join/#android jasonchen (n=chatzill@nat/google/x-92443f98a39533ac) |
15:18.29 | *** join/#android andrewlacy (n=andrewla@adsl-99-180-43-14.dsl.pltn13.sbcglobal.net) |
15:19.00 | *** join/#android aculich (n=aculich@c-66-31-201-16.hsd1.ma.comcast.net) |
15:35.44 | *** join/#android trigatch4 (n=chatzill@71-15-24-217.dhcp.hlrg.nc.charter.com) |
15:35.59 | trigatch4 | whats up |
15:36.55 | jasta | not much |
15:40.12 | jasta | the ADC round 1 deadline is fast approaching... |
15:40.20 | jasta | so we'll possibly get to see the results from that soon |
15:41.23 | michaelnovakjr | and maybe an SDK |
15:41.31 | jasta | i wouldn't count on that |
15:42.38 | michaelnovakjr | :) |
15:48.40 | yakischloba | heh |
15:55.09 | zhobbs_ | fast approaching for sure |
15:55.53 | jasta | approaching for sure. |
16:02.28 | *** join/#android haavi (n=blahhah@c83-254-97-71.bredband.comhem.se) |
16:04.04 | *** join/#android romainguy_ (n=gfx@72.14.224.1) |
16:09.15 | *** join/#android alex2308 (n=alex2308@daloo.de) |
16:10.04 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
16:10.49 | *** join/#android andrewlacy (n=andrewla@adsl-99-180-43-14.dsl.pltn13.sbcglobal.net) |
16:12.14 | *** join/#android aksyn (n=aksyn@gw.na.nu) |
16:20.00 | *** join/#android _newbie4 (n=kvirc@nat-n-163.tsi.tychy.pl) |
16:20.07 | *** part/#android _newbie4 (n=kvirc@nat-n-163.tsi.tychy.pl) |
16:20.53 | *** join/#android soulreaper (n=soul@HSI-KBW-091-089-243-112.hsi2.kabel-badenwuerttemberg.de) |
16:37.49 | jasta | yawn |
16:38.16 | michaelnovakjr | what's up |
16:38.28 | jasta | not much, just got to work |
16:38.38 | jasta | drinkin coffee ;0 |
16:38.52 | michaelnovakjr | :) |
16:39.29 | michaelnovakjr | my girlfriend dropped her macbook pro this weekend |
16:39.35 | michaelnovakjr | destroyed the hard drive |
16:40.13 | michaelnovakjr | i just happened to get a 320gb hard drive on friday, so i wiped mine and put it in her computer and installed the 320gb in mine, wasn't planning to have to do that this weekend |
16:51.08 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
16:52.32 | jasta | http://www.craigslist.org/about/best/sea/299213729.html |
16:55.51 | *** join/#android sayers (n=steven@c-76-20-182-119.hsd1.mi.comcast.net) |
16:59.38 | michaelnovakjr | :) |
17:01.49 | *** join/#android romainguy_ (n=romaingu@nat/google/x-a2689064713af3d4) |
17:11.21 | *** join/#android cheng (n=cheng@141.76.49.20) |
17:38.32 | michaelnovakjr | quiet today |
17:39.22 | *** join/#android chab7 (n=kvirc@212.92.4.114) |
17:42.35 | jasta | yup |
17:45.54 | jasta | what are you working on today? :) |
17:46.03 | SanMehat | is working on SD bugs |
17:47.15 | michaelnovakjr | jasta, trying to figure out if i can tie my app to the standard sms send action |
17:47.36 | jasta | surely you can? |
17:47.39 | michaelnovakjr | so if you are in your contacts list you can send an sms message through my app |
17:47.49 | jasta | that's just an intent, i'm sure. |
17:48.08 | michaelnovakjr | yea, it looks like they are tied to standard Android actions |
17:48.19 | michaelnovakjr | just have to figure out what that action is :) |
17:48.52 | jasta | I/ActivityManager( 514): Starting activity: Intent { action=android.intent.action.SENDTO |
17:48.58 | jasta | .... |
17:49.04 | jasta | i just use adb logcat to find that |
17:49.21 | michaelnovakjr | ah good idea |
17:49.26 | *** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle) |
17:49.41 | michaelnovakjr | its monday :) common sense is still booting up :) |
17:49.45 | jasta | the data section is the mobile |
17:49.57 | jasta | but it's sms:number actually |
17:50.58 | michaelnovakjr | cool |
17:51.51 | *** join/#android Thus0_ (n=petrus@209.249.195-77.rev.gaoland.net) |
17:53.24 | jasta | let me know if it works. that would be cool ;) |
17:53.31 | michaelnovakjr | definitely |
17:53.36 | michaelnovakjr | i'm putting it in now |
17:54.13 | michaelnovakjr | the app is coming along nicely... because of the way the keyboard is onscreen, i couldn't accomplish my idea of adding a small edittext under the message thread |
17:54.34 | michaelnovakjr | so there's a reply menu option that will pull up the send activity with the number populated |
17:54.37 | jasta | i wish we had android up on a phone with a traditional keyboard :\ |
17:54.59 | jasta | or if android had a built-in soft keyboard we could play wit |
17:55.00 | jasta | h |
17:55.04 | michaelnovakjr | yea |
17:55.06 | jasta | instead of the crummy one martin wrote hehe |
17:55.11 | michaelnovakjr | :) |
17:55.18 | michaelnovakjr | designing interfaces would be a bit easier |
18:16.48 | michaelnovakjr | hm jasta, are you familiar with the Fallback apk? |
18:17.26 | *** join/#android borism_ (n=boris@195-50-201-88-dsl.krw.estpak.ee) |
18:20.13 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
18:20.38 | *** join/#android mazzen (n=mortel@dhcp-ce168199.intern.uni-duisburg-essen.de) |
18:32.59 | zhobbs_ | jasta: did you submit this, or did they find you and add it? http://www.android-freeware.org/download/five-alpha |
18:34.42 | michaelnovakjr | zhobbs_: they have a googlegroups i think jasta submitted to |
18:34.53 | zhobbs_ | oh ok |
18:41.56 | michaelnovakjr | jasta: pint |
18:41.58 | michaelnovakjr | ping* |
18:44.20 | *** join/#android yakischloba (n=jake@rnkfoods.com) |
18:48.41 | *** join/#android genclay (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
18:57.40 | *** join/#android jasta_ (n=jasta@32.159.70.111) |
18:57.45 | jasta_ | hola |
18:58.09 | michaelnovakjr | howdy |
18:58.47 | michaelnovakjr | i tried setting an receiver for that action... |
18:58.48 | yakischloba | jasta_: I see its lunch time |
18:59.05 | jasta_ | yup |
19:00.08 | michaelnovakjr | jasta, fallback keeps getting called on that action |
19:01.42 | jasta_ | do you need to request permissions? any interesting notes in logcat during installation? |
19:02.15 | michaelnovakjr | it shows my receiver during installation |
19:02.27 | michaelnovakjr | nothing out of the ordinary |
19:02.32 | jasta_ | hmm |
19:02.56 | michaelnovakjr | i wonder if the fallback apk is listening for the intent |
19:02.59 | jasta_ | commit and i'll take a look. maybe we can find something here... |
19:03.08 | michaelnovakjr | mostly because there's no apk for sms |
19:03.26 | jasta_ | probably but isnt the point that you can override? |
19:03.59 | michaelnovakjr | yep, its definitely listening |
19:05.54 | michaelnovakjr | i'm going to commit in a minute, testing something out |
19:10.33 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
19:10.35 | jasta_ | ok, im not at a computer anyway |
19:14.15 | michaelnovakjr | ok |
19:20.32 | *** join/#android mickrobk (n=mickrobk@c-67-173-250-134.hsd1.co.comcast.net) |
19:28.20 | *** join/#android chab7 (n=kvirc@212.92.4.114) |
19:33.00 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
19:36.47 | jasta | i am now ;) |
19:38.36 | *** join/#android OpnSrc1 (i=harisha1@gateway/tor/x-d2d2ee02af35953f) |
19:39.17 | jasta | michaelnovakjr: so does Messages actually work on a real device now? |
19:39.29 | michaelnovakjr | oh yea, its been working :) |
19:39.34 | jasta | nice |
19:39.38 | jasta | i think i'm gonna pick up a device todya ;) |
19:39.42 | michaelnovakjr | i use it as often as possible to get a feel for it |
19:39.46 | michaelnovakjr | sweet :) |
19:40.03 | michaelnovakjr | it interacts with the Contacts, has reply, create, etc |
19:40.16 | michaelnovakjr | and has the threaded view... still working on some of the UI aspects though |
19:40.37 | michaelnovakjr | intent-filters can have a priority? |
19:40.37 | jasta | nice :) |
19:41.13 | jasta | seems that way |
19:41.27 | michaelnovakjr | i'm looking at the fallback apk |
19:41.33 | michaelnovakjr | it registers the sendto action |
19:42.10 | michaelnovakjr | and the wallpaper settings |
19:42.12 | michaelnovakjr | which makes sense |
19:42.15 | jasta | and how are you looking at that? :) |
19:42.29 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
19:42.44 | jasta | are you making sure to include that you handle the sms scheme? |
19:43.02 | michaelnovakjr | yea, i'm looking at it through the Manifest |
19:43.16 | jasta | i know, i'm joking. you're using my reverse engineering :) |
19:44.18 | michaelnovakjr | :) |
19:45.44 | jasta | i just got a build error on latest svn of messages |
19:46.52 | michaelnovakjr | ? |
19:47.27 | michaelnovakjr | what's your error? |
19:47.28 | jasta | hang on, let me make sure it's not my fault |
19:47.41 | michaelnovakjr | ok |
19:47.51 | michaelnovakjr | i'm pretty sure the last commit built cleanly |
19:48.53 | jasta | it's complaining that you're using @Override in your anonymous implementation of OnPopulateContextMenuListener() |
19:48.58 | jasta | err, -() |
19:49.44 | michaelnovakjr | interesting |
19:50.34 | *** join/#android Mathiasdm (n=Mathias@surfvtk.ugent.be) |
19:50.36 | jasta | it looks like this is expecte dbehaviour. |
19:51.41 | michaelnovakjr | yea, for the context menu |
19:51.56 | michaelnovakjr | what's weird is that is setup in the code |
19:52.18 | michaelnovakjr | i might be doing it different;y |
19:52.19 | michaelnovakjr | ly |
19:53.31 | romainguy_ | @Override works on interface methods with Java 1.6 |
19:53.33 | romainguy_ | but not with Java 1.5 |
19:53.39 | romainguy_ | you must be both using different compilers |
19:53.41 | michaelnovakjr | i am using 1.6 i think |
19:53.47 | romainguy_ | you should stick to 1.5 |
19:53.51 | romainguy_ | that's what we use here |
19:53.58 | romainguy_ | 1.6 is supposed to work but... :) |
19:53.59 | zhobbs_ | damn, that's why some people have to delete my @Override's |
19:54.06 | michaelnovakjr | will do :) |
19:54.19 | romainguy_ | you can just setup your 1.6 compiler to compile in 1.5 mode |
19:54.23 | romainguy_ | use -source 1.5 -target 1.5 |
19:54.27 | michaelnovakjr | romainguy_ it does work as expected :) |
19:54.30 | romainguy_ | in Eclipse you can set the source level compatibility |
19:57.32 | jasta_ | i use 1.5, michael. |
19:57.47 | michaelnovakjr | makes sense then :) |
19:57.54 | michaelnovakjr | i'll update the code accordingly |
19:58.15 | jasta_ | it only affects interface implementations. |
19:59.17 | michaelnovakjr | cool |
20:02.59 | jasta | hehe, where'd you get the fancy icons? |
20:03.57 | michaelnovakjr | online, i have the page bookmarked |
20:04.07 | michaelnovakjr | i want to make the thread view icon much smaller |
20:04.14 | michaelnovakjr | clean that up a bit |
20:04.24 | michaelnovakjr | it bothers me |
20:05.47 | jasta | one thing i've noticed... |
20:05.51 | jasta | if you're watching your messages app |
20:05.55 | jasta | and a new message comes in, it doesn't update the UI |
20:06.11 | michaelnovakjr | yea, i have to fix that |
20:06.28 | michaelnovakjr | if you delete a thread the UI updates |
20:06.36 | michaelnovakjr | just have to add that in when a message comes in |
20:07.40 | jasta | Seems to do a lot of work when you navigate around? |
20:07.53 | jasta | i went from conversation view back to the main screen and logcat went very noisy |
20:08.24 | michaelnovakjr | yea, i still have lots of log messages in there |
20:08.48 | michaelnovakjr | it could use some cleaning up |
20:11.57 | michaelnovakjr | assuming i can get this intent working, i'll be cleaning it up tonight |
20:13.07 | *** join/#android romainguy__ (n=gfx@nat/google/x-3c861be3042503bf) |
20:14.29 | michaelnovakjr | how's the interface? |
20:16.57 | jasta | i like it, actually |
20:17.02 | jasta | except some small things |
20:17.21 | michaelnovakjr | probably the small things that bother me :) |
20:17.22 | jasta | like for example when replying on a thread, the text message box should be focused first |
20:17.25 | jasta | not the number |
20:17.41 | michaelnovakjr | yea, i'm going to make that the focus |
20:17.50 | jasta | and the Send/Cancel buttons should be horizontally aligned, i think |
20:17.55 | jasta | and should have greater padding between each other |
20:17.59 | jasta | greater margins, i mean |
20:18.34 | michaelnovakjr | yea |
20:18.47 | michaelnovakjr | that makes sense |
20:19.58 | michaelnovakjr | i put the buttons there so it would fit on the vogue screen |
20:20.08 | michaelnovakjr | different resolution than the emulator |
20:23.56 | *** join/#android egn (i=tux@nodes.fm) |
20:24.15 | jasta | michaelnovakjr: does it resolve numbers to contact names? |
20:24.23 | michaelnovakjr | yea |
20:24.29 | jasta | because i added my number as a contact then sent a message to myself from ddms but it shows as the number |
20:24.33 | jasta | not the name |
20:24.35 | michaelnovakjr | its probably a bit of a hack way right now :) |
20:24.36 | jasta | one has hyphens in it, the other doesn't. |
20:24.55 | michaelnovakjr | you were able to add two numbers to the contacts in different formats? |
20:25.23 | michaelnovakjr | that's one of the things on my todo list.... i have to properly use the contacts provider |
20:25.39 | michaelnovakjr | right now i am just going through the cursor returned myself |
20:25.41 | jasta | dude, you seem to be searching the list of contacts iteratively |
20:25.53 | jasta | there's lots of optimizations that need to happen here :) |
20:26.01 | michaelnovakjr | oh yea ;) |
20:26.20 | michaelnovakjr | there's interfaces i can work with in the contacts |
20:26.41 | michaelnovakjr | certainly takes a performance hit currently |
20:26.42 | jasta | also, i question whether or not you should refresh the conversation adapter in onResume(). |
20:27.06 | jasta | i would imagine that you could just use a managedquery and let a cursor adapter manage itself. |
20:29.27 | michaelnovakjr | i actually started writing the adapter today using the managedquery method |
20:30.33 | *** join/#android umdk1d3 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
20:31.14 | *** join/#android chomchom (n=chomchom@78.32.95.81) |
20:33.51 | michaelnovakjr | romainguy_ around? |
20:35.28 | romainguy__ | yes |
20:36.09 | michaelnovakjr | any idea how to override the SENDTO action? |
20:36.10 | michaelnovakjr | currently the fallback keeps getting called |
20:36.10 | romainguy__ | what do you mean? |
20:36.31 | michaelnovakjr | in the Contacts apk when you click the sms number it attempts to run the intent for the SENDTO action |
20:36.38 | romainguy__ | ok? |
20:36.45 | michaelnovakjr | comes up as unsupported, which is the fallback apk |
20:36.55 | jasta | michaelnovakjr: i wish you'd commit what isn't working so i can review it :) |
20:37.04 | jasta | you must just have a typo or something hehe |
20:37.04 | michaelnovakjr | i'm going to do that now |
20:37.07 | romainguy__ | do you have an intent filter for SENDTO in your application? |
20:37.13 | michaelnovakjr | yea |
20:37.54 | romainguy__ | maybe you did not do it correctly in your manifest :) |
20:38.16 | michaelnovakjr | im guessing |
20:39.34 | jasta | michaelnovakjr: just commit |
20:39.37 | michaelnovakjr | jasta, i committed it, its definitely a hack, once i get this working i plan to clean the whole thing up |
20:40.01 | michaelnovakjr | i've tried many variations |
20:40.03 | jasta | hehe, this is wrong :) |
20:40.05 | jasta | i'll fix. |
20:40.12 | michaelnovakjr | i figured |
20:40.26 | michaelnovakjr | does it need a receiver? |
20:41.00 | michaelnovakjr | i had it in a receiver before, i haven't added the file to the repo. |
20:41.21 | romainguy__ | can you paste your manifest? |
20:41.37 | jasta | i already fixed it |
20:41.38 | jasta | committing |
20:41.48 | michaelnovakjr | damnit, i knew it would be simple too |
20:42.03 | jasta | there |
20:42.17 | jasta | you had to register the sms scheme. |
20:42.41 | jasta | but i didn't handle it for you, i just got your activity up. you'll need to process the intent's data. |
20:42.50 | michaelnovakjr | yea |
20:42.51 | *** join/#android davidw (n=davidw@apache/committer/davidw) |
20:43.05 | michaelnovakjr | awesome |
20:43.12 | jasta | i set a priority, tho it's not necessary. |
20:43.15 | michaelnovakjr | i plan to clean that up a bit |
20:43.37 | michaelnovakjr | the createmessage activity uses that bad contacts code too :) |
20:45.56 | michaelnovakjr | thanks for the help jasta |
20:46.04 | *** join/#android soulreaper (n=soul@HSI-KBW-091-089-005-084.hsi2.kabelbw.de) |
20:46.38 | jasta | no problem, i knew exactly which one would make it work already :) |
20:47.02 | michaelnovakjr | :) |
20:47.23 | michaelnovakjr | now to clean up the code a bit, so it doesn't run so slow |
20:47.44 | michaelnovakjr | granted it is faster on the device than in the emulator... it could still use some cleanup |
20:53.31 | *** join/#android umdk1d4 (n=umdk1d3@adsl-dynamic-64-79-45-15.bridgeband.net) |
20:55.49 | *** part/#android zhobbs_ (n=zach@rrcs-24-106-158-216.central.biz.rr.com) |
21:02.17 | *** join/#android andrewlacy (n=andrewla@adsl-99-180-43-14.dsl.pltn13.sbcglobal.net) |
21:15.15 | michaelnovakjr | jasta, i'll be on later finishing up the apk |
21:17.16 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) [NETSPLIT VICTIM] |
21:17.16 | *** join/#android crib (n=chris@port-195-158-167-6.dynamic.qsc.de) [NETSPLIT VICTIM] |
21:17.16 | *** join/#android NiZoX (n=none@2a01:e35:8a13:a2b0:21c:c0ff:fe25:ff68) [NETSPLIT VICTIM] |
21:17.16 | *** join/#android Kraln (n=quassel@38.100.42.251) [NETSPLIT VICTIM] |
21:25.20 | jasta_ | cool, im just working on my solitaire engine to keep busy. |
21:25.30 | jasta_ | probably be done with that by the weekend. |
21:30.27 | *** join/#android NiZoX (n=none@2a01:e35:8a13:a2b0:21c:c0ff:fe25:ff68) |
21:36.39 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
21:39.04 | *** join/#android MontyMonoply (n=ken@69-196-141-79.dsl.teksavvy.com) |
21:40.33 | *** join/#android Kraln (n=quassel@38.100.42.251) [NETSPLIT VICTIM] |
21:41.03 | jasta | hey Dougie187 |
21:41.05 | *** part/#android MontyMonoply (n=ken@69-196-141-79.dsl.teksavvy.com) |
21:41.09 | Dougie187 | Hey jasta |
21:41.10 | Dougie187 | hows it going? |
21:41.13 | jasta | pretty good |
21:41.23 | Dougie187 | nice |
21:41.43 | Dougie187 | whats going down? |
21:42.28 | *** join/#android soulreaper (n=soul@HSI-KBW-091-089-005-084.hsi2.kabelbw.de) |
21:42.28 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) [NETSPLIT VICTIM] |
21:42.28 | *** join/#android crib (n=chris@port-195-158-167-6.dynamic.qsc.de) [NETSPLIT VICTIM] |
21:49.09 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
21:55.24 | *** join/#android duey (n=Nick@203.96.223.40) |
22:04.10 | jasta | Dougie187: not much, gonna buy the touch today :) |
22:04.11 | jasta | after work |
22:04.51 | jerkface03 | how much? |
22:05.08 | jasta | well, i'm renting it ;) |
22:05.15 | jasta | long story hehe |
22:05.52 | yakischloba | lol |
22:05.55 | yakischloba | scammer |
22:15.06 | jasta_ | hehe, no :) |
22:15.50 | Dougie187 | lol |
22:15.54 | Dougie187 | your getting a touch? |
22:21.30 | jasta_ | yeah. |
22:23.51 | Dougie187 | nice |
22:23.56 | Dougie187 | when are you getting it? |
22:24.07 | Dougie187 | today? or are you just "ordering" it today? |
22:24.47 | jasta_ | picking it up at the sprint store today. |
22:25.00 | Dougie187 | nice |
22:25.07 | Dougie187 | your borrowing it from the sprint store? |
22:25.35 | *** join/#android michaelnovakjr__ (n=mnovak@ool-18ba6e83.dyn.optonline.net) |
22:25.45 | michaelnovakjr__ | howdy |
22:25.48 | jerkface03 | 5 finger discount? |
22:26.50 | michaelnovakjr__ | huh? |
22:27.38 | jerkface03 | that's what they'll say when they see the touch missing from the store! |
22:28.05 | michaelnovakjr__ | ? |
22:29.23 | jerkface03 | exactly. |
22:37.40 | jasta | no, i'm buying it with service and returning it w/in the 30 day period ;) |
22:38.35 | Dougie187 | lol |
22:38.41 | Dougie187 | are they going to take it back with android on it? |
22:38.50 | jasta | android doesn't permanently install onto the device |
22:38.53 | jasta | it boots through haret only |
22:38.59 | Dougie187 | oh ok.l |
22:41.39 | jasta | it[s still gonna cost like $70 for the service for 1 month, tho |
22:41.45 | jasta | but that's fine :) |
22:42.02 | Dougie187 | thats pretty expensive to play with it. |
22:42.32 | jasta | yeah, but i really want to play with it. i want to play with it $70 worth :) |
22:42.46 | jasta | i want to make my app work on it ;) |
22:43.10 | Dougie187 | lol |
22:43.16 | Dougie187 | hows that rhythmbox plugin working? |
22:43.21 | Dougie187 | i take it no d2 for about a month? |
22:43.40 | jasta | the rhythmbox plugin has gone slow because i've been fixing so many bugs in libsyncml to work client-side |
22:43.47 | jasta | but as of about a week and a half ago i think i have them worked out |
22:44.03 | Dougie187 | nice. |
22:44.08 | Dougie187 | im excited for that. |
22:44.21 | jasta | me too,it's been bothering me not having it more and more every day at work |
22:45.25 | Dougie187 | yeah, thats when i always think about it, though... at work they are bastards and limit the internet usage so i dont think it would work at my work work, but at my school work it will |
22:46.59 | *** join/#android michaelnovakjr__ (n=mnovak@ool-18ba6e83.dyn.optonline.net) |
22:56.11 | jasta_ | yawn. |
22:57.29 | Dougie187 | bbl |
22:57.29 | *** part/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
23:05.02 | *** join/#android jasonchen (n=chatzill@nat/google/x-6d47b94a63b48365) |
23:10.02 | *** join/#android Dougie187 (n=doug@c-69-244-215-210.hsd1.fl.comcast.net) |
23:14.26 | michaelnovakjr__ | howdy jasta |
23:21.52 | jasta_ | sup |
23:22.34 | michaelnovakjr__ | not much, cleaning up the messages code |
23:24.55 | jasta_ | nice |
23:25.20 | michaelnovakjr__ | yea, definitely needs it |
23:25.32 | michaelnovakjr__ | still getting a device? |
23:31.42 | jasta_ | yup |
23:31.50 | michaelnovakjr__ | nice |
23:38.01 | *** join/#android jasonchen (n=chatzill@nat/google/x-016caf529ade117c) |
23:38.36 | jasta | ok, heaidng home |
23:38.38 | jasta | later folks. |
23:38.52 | michaelnovakjr__ | later |
23:55.08 | *** join/#android aculich (n=aculich@216-15-124-74.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com) |