**** BEGIN LOGGING AT Thu Feb 05 02:59:58 2009 Feb 05 03:06:22 can you set text size in a listview? Feb 05 03:09:10 You can set a row layout in the adapter, which can change the text size. (At least that's the way I'm changing text size, among other things, in my program) Feb 05 03:18:19 mmkay Feb 05 03:18:20 thx Feb 05 04:57:17 what's the best way to normalize phone number strings for comparison? Feb 05 04:57:24 there's probably a built-in way yah? Feb 05 04:57:56 eg does +15035551212 == 503-555-1212? Feb 05 04:59:04 android.telephony.PhoneNumberUtils? Feb 05 05:00:58 TiberiumX: thanks, will look! Feb 05 05:05:43 hrm, nothing that'll take a string and return some normalization of a phone number Feb 05 05:05:57 bah Feb 05 05:06:01 yes there is Feb 05 05:06:18 or close enough for comparison purposes Feb 05 05:06:29 android.telephony.PhoneNumberUtils.compare(string A, string B) Feb 05 07:25:46 romainguy, sorry to bother you again but.. are you there? :P Feb 05 08:08:57 What do I have to implement in order to be able to select my ImageView "Button" with a scroll whell ? (which callback method is it) Feb 05 14:48:52 anybody know of sample code for capturing and using the backbutton? Feb 05 14:50:47 hi Feb 05 14:50:58 Anyone know if there will be Opengl-ES 2.0 support in next Android version? Feb 05 15:16:28 DJTachyon, "public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { //TODO: to something; return true;}}" Feb 05 15:17:12 roar.. "do something".. not "to something" Feb 05 15:26:37 I got a problem. I have set the lock pattern well in October and haven't activated it since that. Now I have clicked the "Require Pattern" by an oversight. Feb 05 15:26:58 Well now to deactivate the pattern I have to insert the old pattern :P Feb 05 15:27:03 to change the pattern it is the same Feb 05 15:27:12 how the hell can I get rid of that pattern :D Feb 05 15:27:24 (I got root perhaps this could help :) ) Feb 05 15:27:45 (at the moment I have my screen time out to never :P) Feb 05 15:29:15 you're screwed :P Feb 05 15:29:28 Not really :P Feb 05 15:29:42 Oh man there must be a possibility *g Feb 05 16:06:37 for Parcelables, what's the preferred method to read/write boolean values. I don't see a read/writeBoolean. Also, my class has an ArrayList and writeList seems to puke on it. Help? Feb 05 16:38:39 Anyone here who can answer some AIDL questions? Feb 05 16:44:31 right, today's task is to get my head around Remote Services :) Feb 05 16:46:06 anno^da_: has it not asked you for your gmail account? Feb 05 16:47:43 anybody know how to register hitting enter as an okay on an edittext dialog? Feb 05 16:49:27 edittext.setOnKeyListener ? Feb 05 16:49:43 infact, it is - hold on Feb 05 16:50:45 kay Feb 05 16:51:09 this machine doesn't have up to date code, just grabbing it now from the repo Feb 05 16:53:40 http://paste.ifies.org/321 Feb 05 16:53:49 thats wihtin an alert dialog Feb 05 16:54:01 so it might be slightly different, but mostly the same Feb 05 17:00:11 perfect! Feb 05 17:00:12 thanks Feb 05 17:00:56 my app is soooo close to being done Feb 05 17:01:03 i just need testers Feb 05 17:50:00 Can anyone here answer some questions on AIDL? Feb 05 18:47:41 i'm just about to start leaning it Feb 05 18:47:50 i need a service based music player Feb 05 18:56:21 hmm.. Dianne told me to RTFM about having more than one activity that can be launched from the app list. Feb 05 18:56:48 the problem with this is that the FM is really not that specific about stuff :/ Feb 05 18:56:50 "If your .apk contains multiple top-level applications that the user can launch, then you will probably want to assign different affinities to each of the activities " Feb 05 18:57:15 "probably want"? Feb 05 18:59:26 the wording indicates that I have a choice there..but it seems I have not because without it, things go wrong :( Feb 05 19:00:40 tauno: http://code.google.com/android/reference/android/R.attr.html#taskAffinity Feb 05 19:01:37 and "A good convention for coming up with distinct names is to append your .apk's package name with a colon separated string. For example, the "com.android.contacts" .apk may have the affinities "com.android.contacts:Dialer" and "com.android.contacts:ContactsList"." Feb 05 19:01:37 the task vs application distinction is kind of subtle and hard to grasp at first Feb 05 19:02:03 is also not really working because you get a " Invalid taskAffinity name test.activity:ActivityA in package test.activity: bad character ':'" error :/ Feb 05 19:02:05 you only get one entity per .apk file Feb 05 19:02:05 Do you logically have two applications in your apk, or two entry points into the same application? Feb 05 19:02:16 tauno: whoops! file a bug on that :) Feb 05 19:02:37 although the text may well have changed since that docs drop was cut; that was a long time ago Feb 05 19:02:41 jbq, two entry points IMO :) Feb 05 19:03:30 tauno: a "task" in Android is an activity history & flow grouping Feb 05 19:03:40 OK, so in this case the default behavior is typically the desirable one: all your activities end up on a single stack, so that hitting "back" out of one of your activities goes to the previous one on that stack. Feb 05 19:04:28 when the activity stack is shuffled around due to things being started, finished, 'Back' handling, etc, each task is kept together Feb 05 19:04:40 jbq, my problem is that when I open activityA from launcher, it opens A. I then go back to Home and hit the ActivityB launcher. Guess what activity gets displayed in response to that? yes, Activity B.. not A Feb 05 19:05:05 tauno: err, why wouldn't it? you told it to launch B, and it did! Feb 05 19:05:09 That sounds correct - the user did an action that launched activity B, so activity B is displayed. Feb 05 19:05:14 alright, im sick of stabbing in the dark with git. can anyone recommend good reference material (book or otherwise)? Feb 05 19:05:16 sry Feb 05 19:05:20 I meant A :) Feb 05 19:05:43 how did you go to Home? with 'Home' or 'Back'? Feb 05 19:05:47 try both; they're different :) Feb 05 19:05:49 tauno: now that sounds like a bug, and isn't what I'd expect. I'll defer to ctate here, as he's a framework guy and I'm not. Feb 05 19:06:03 Home - let me try it again to be 100% sure Feb 05 19:06:08 that's what i would have guessed Feb 05 19:06:39 jasta: for git in general, or about the basic day-to-day operations that someone would do in the android tree? Feb 05 19:06:40 now, i'm not up on what exactly the Intents are that are fired by Launcher shortcuts Feb 05 19:07:01 i do know they're not necessarily what I might expect. romainguy, you around? Feb 05 19:07:11 tauno: can you pastebin your AndroidManifest.xml ? Feb 05 19:07:49 it's there: http://groups.google.com/group/android-developers/browse_thread/thread/e722004928cd1dca/a2e2582ec424f4ac?lnk=gst&q=launcher Feb 05 19:07:50 my basic guess is that since you hit the Home key, your app is still running (stopped), and activty A is still running. Feb 05 19:07:54 jasta: http://git-scm.com/documentation Feb 05 19:08:13 thanks Feb 05 19:08:28 ctate, you are right - if I go back using Home, then clicking B starts A. If I go with the "back" key, then B is launched Feb 05 19:09:05 great. Feb 05 19:09:09 I also posted the intents from logcat etc.. Feb 05 19:09:17 quick summary of the distinction between Home and Back: Feb 05 19:09:29 when you hit 'Home', the system starts the Launcher activity Feb 05 19:09:40 ctate: what tauno describes is interesting, and it's not what I'd expect from a straight startActivity()... Feb 05 19:09:42 i.e. brings it to the front if it's already running Feb 05 19:10:12 when you hit 'Back', the frontmost activity is finished entirely, and you go back to the previous activity in the history stack Feb 05 19:10:41 jbq: there's something slightly more general than "expected" about the way the launcher starts activities from shortcuts, iirc Feb 05 19:11:14 this looks like he's starting activity B, but the task it's affine with is already running *and* a sufficiently matching activity is running in it, so it just brings that to the front. Feb 05 19:11:16 Yeah, it sounds like it tried to behave like a task switched before it behaves like an activity launcher. Feb 05 19:11:28 s/switched/switcher/ Feb 05 19:11:53 if the two activities had different task affinities, they'd conceptually be "different apps" in terms of history & UI flow, and this would not happen Feb 05 19:12:12 :D for me at least, it's totally not logical that starting activity B brings activity A to the foreground :/ For me at least.. and I'm more a end user than a framework developer :P Feb 05 19:12:39 i am not sure why it doesn't launch B either, tell the truth Feb 05 19:13:01 but it's clear that this is what's happening in terms of the task management, and that part is consistent with my understanding of the model Feb 05 19:13:13 Well, the logic is that if you're e.g. in a Gmail compose screen, task-switch to something else, go back to home, and hit Gmail, you go back to the compose screen you left, not to the inbox. Feb 05 19:13:28 give ActivityB a different task affinity and try again Feb 05 19:13:36 ahhh, right Feb 05 19:13:43 tasks over activities Feb 05 19:13:44 jbq, yeah.. if you put it like this, it sounds more logical :) Feb 05 19:14:03 and the way the launcher starts activities does not force a specific activity, just the matching activity's task. Feb 05 19:14:15 ffs, more idiots emailing me from the market about MeetM Feb 05 19:14:19 *Me Feb 05 19:14:26 people keep thinking it's my app Feb 05 19:17:35 tauno, ctate: I wonder if the task/activity being switched to can detect that it was "re-launched" with "activity B" when it's brought back to the front. Feb 05 19:17:55 there may well be a new intent delivery, yes Feb 05 19:18:14 startActivity() is very complicated and there are lots of weird cases, so i can't say for sure in this case Feb 05 19:19:02 now i'm curious; lemme look at the code :) Feb 05 19:19:51 btw thanks for quoting so much material, both the manifest and the logcat output when you try to launch. that's got useful info! Feb 05 19:20:49 jbq, yes, it would be sweet if you e.g. in a Gmail compose screen, task-switch to something else, go back to home, and hit Gmail, you go back to the compose screen you left, not to the inbox. and if you hit another Gmail icon like "Gmail-inbox" then it would launch inbox, not the compose screen. Feb 05 19:21:57 ctate, np, I've been fixing bugs myself for a few years and it's always great if testers file bug reports better than "use case x does not work" : Feb 05 19:22:01 :) Feb 05 19:22:24 tauno: the solution was locking the phone and entering the wrong pattern several times. Feb 05 19:22:36 anno^da_, lucky you (: Feb 05 19:22:40 :) Feb 05 19:23:07 tauno: if you look at the logcat output, you can see the "Starting activity blah blah" message says what Intent flags it's been passed Feb 05 19:23:18 in this case, FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_RESET_TASK_IF_NEEDED Feb 05 19:24:56 it's the latter flag that is behind the behavior you're seeing Feb 05 19:26:08 it basically means for the launch to just bring the task back in its previous state, not adding on and doing something new Feb 05 19:26:28 that's why you get the previous state -- the task brought to the front with A running -- and not B added on Feb 05 19:27:11 ctate, thanks for clearing this up Feb 05 19:28:04 so like Dianne said, the way for you, the app writer, to avoid this is to use task affinities Feb 05 19:28:25 which tells the OS that no really, they're to be considered separate tasks/applications/history flows/etc Feb 05 19:29:57 (if you just give ActivityB alone a taskAffinity, no need to muck with A, it should be fine -- since any specified affinity will be different from the default (unspecified) one) Feb 05 19:44:33 when building layout items in code, is there an equivalent to android:layout_width="fill_parent"? (without using setWidth(displayWidth)) Feb 05 19:44:37 cross-posted from #android Feb 05 19:46:13 ctate, filed a bug about the ":" in task affinities documentation.. just in case :) http://code.google.com/p/android/issues/detail?id=1925 Feb 05 19:46:36 thanks Feb 05 19:47:21 i might just immediately decline it as already fixed, but thanks :) Feb 05 19:48:04 (: Feb 05 19:48:13 tauno: duplicate of http://code.google.com/p/android/issues/detail?id=1384 :) Feb 05 19:48:15 i already filed that bug... Feb 05 19:48:16 KNY-, setLayoutParams() Feb 05 19:48:25 heh - small world! Feb 05 19:48:26 tauno, thanks Feb 05 19:48:29 argh.. I didn't check, sorry :( Feb 05 19:48:35 yup, 1384 is mine :) Feb 05 20:47:28 hey jasta Feb 05 20:47:39 jasta: you wouldn't happen to have any AIDL experience would you? Feb 05 20:57:26 tons Feb 05 20:58:04 did you have a specific question? :) Feb 05 21:15:14 hello, I am having an issue I wonder if someone can help me Feb 05 21:15:27 I tried to update my app and i got an error Feb 05 21:15:46 You have another published application on Market with the same package name (com.x.x). Go to that other application, and click upgrade. Feb 05 21:15:59 now i cannot find or update my app Feb 05 21:16:03 has anyone seen this? Feb 05 21:20:51 what's your package name? Feb 05 21:21:07 com.sunny.BrainChallenge Feb 05 21:21:31 now it has disappeared off ot the market completely, cant even find it on the phone Feb 05 21:21:48 are you Sunny Rajpal? Feb 05 21:22:13 yes Feb 05 21:22:53 Your application no longer exists in your Developer Console? Feb 05 21:23:05 no it is gone Feb 05 21:23:10 i had two now i have one Feb 05 21:23:24 you had two? Feb 05 21:23:40 Why did you have two of the same application? Feb 05 21:23:48 i had two apps in the market place Brain Challenge and aother one Feb 05 21:23:58 only the BrainChallenge is effected Feb 05 21:24:13 How did you try to upgrade your app? Feb 05 21:24:33 click on it, then on Upload Upgrade Feb 05 21:24:45 then i uploaded the new apk Feb 05 21:25:00 but i guess it did not upload successfully Feb 05 21:25:03 then what happened? Feb 05 21:25:29 then i clicked back and then tries it again, then it gave me the error Feb 05 21:25:46 and i logged out and logged back in, in case that might help Feb 05 21:26:02 now it does not show up and when i try to add it again i get the same error Feb 05 21:26:21 i guess i can change the package name and reupload it but i dont want to lose my stats Feb 05 21:26:26 from what I experienced, when you upload an upgrade your app disappears until the upgrade is complete Feb 05 21:26:48 email their tech support Feb 05 21:27:34 yeah i shot an email off, i was just looking to see if someone else had an issue like this Feb 05 21:27:51 What made you click back? Feb 05 21:29:05 silly thing, i forgot to download the old one to my phone first to test the upgrade Feb 05 21:29:31 i had uninstalled it to test new version Feb 05 21:29:54 but still i never commited the upload, this should not be how it works Feb 05 21:30:41 When you select a file it automatically gets uploaded and checked for consistancy Feb 05 21:31:03 You didn't "publish" the app, but you did upload it Feb 05 21:31:12 yes that is right Feb 05 21:31:36 but now it does not show up at all Feb 05 21:35:18 jasta, tauno -- what firmware rev are you using on your devices? something stock, or a custom build from cupcake, or what? Feb 05 21:44:50 im using stock g1 Feb 05 21:45:40 soon i think were gonna order a batch of ADP1's and do a custom build from cupcake. Feb 05 21:45:43 but we're not really there yet Feb 05 21:53:41 jasta: okay, thanks Feb 05 22:01:29 ctate, stock (UK version) and stock SDK emulator (1.0r2 is the latest i believe) Feb 05 22:03:00 jasta, heh - we're also trying to get one or two adp1's to try our apps on cupcake before it's released to the masses..but "we're not really there yet" (: Feb 05 22:23:52 anyway, short answer is you can't actually use : in android:taskAffinity names, so use "__" or something. Feb 05 23:11:21 who is we btw? Feb 05 23:13:30 me and other guys and girls working with me == we :) Feb 06 00:40:55 is there a way to get notified anytime an activity starts up? Feb 06 00:44:40 the next time that ANY activity gets started? Feb 06 00:44:47 or the next time that YOURS gets started? Feb 06 01:15:19 ctate: any activity Feb 06 01:16:01 dietricha: you can't tell; the activity manager is not wired to notify about that, i believe. Feb 06 01:16:08 hm Feb 06 01:17:15 i'll look into the activity manager then. maybe could poll for differences in what's active... Feb 06 01:28:08 dietricha: what are you trying to accomplish? Feb 06 01:29:43 ctate: to track what apps get used the most Feb 06 01:30:10 from what code, though? in general there are privacy concerns with letting apps know about other apps' existence & usage on the phone. Feb 06 01:30:52 ctate: from application code. to show, for example, a list of shortcuts to most-used apps Feb 06 01:31:07 * ctate nods. Feb 06 01:31:50 yes that would be nice, but as i said there are larger problems with allowing 3rd party app code to know stuff about other apps' usage patterns etc. Feb 06 01:32:11 ctate: from the "activity monitor" type apps already existing, it's possible to do that stuff :/ Feb 06 01:32:34 i clearly need to look into that, then :) Feb 06 01:32:55 (are they in the Market? i should look at what they're doing) **** ENDING LOGGING AT Fri Feb 06 02:59:57 2009