**** BEGIN LOGGING AT Thu Mar 05 02:59:56 2009 Mar 05 03:01:09 glad i'm not the only person confused Mar 05 03:22:45 are you using this? http://developer.android.com/reference/android/test/ApplicationTestCase.html Mar 05 03:54:17 morganx: I'm using its parent androidTestCase Mar 05 03:54:44 maybe I should just go ahead and try ApplicationTestCase Mar 05 03:54:55 all though i'm not really testing an application class Mar 05 03:55:09 night all Mar 05 04:19:21 i'm having a problem building android , getting this error. http://dpaste.com/6661/ Mar 05 04:28:21 this is the main branch checkout.. just running "mm", fedora 10 x86_64. Mar 05 04:28:32 the problem with being on this side of the planet is that you are awake when the core developers are a sleep. Mar 05 05:21:35 Kristine Saunders sauntered into the cooking class cradling books next to her Mar 05 05:21:39 torso. Curly blond hair brushed over most of her back as she ascended into the Mar 05 05:21:42 stool across from Dean. His eyes traced a path slowly from her supple legs to Mar 05 05:21:45 her button nose. Cheerleader, prom queen, girl friend of the biggest jock in Mar 05 05:21:48 school: how could Steve not want to have these women be the first guinea pig for Mar 05 05:21:51 his experiment? Steve Black found his goal in life very early. After seeing Mar 05 05:21:54 women mature around him, he wondered how Mother Nature told the body where to Mar 05 05:21:57 put all the advancements? Even more pressing, what made her say "stop?" In his Mar 05 05:22:00 opinion, there were young women out there who needed a few more inches of space Mar 05 05:22:03 between their t-shirt's lettering. He never even dreamed of the Mar 05 05:22:05 possibility that Mar 05 05:22:08 women would not want a bigger chest. After pining over the medical books during Mar 05 05:22:11 his senior year, Dean had found a possible answer: Rearranging the body's Mar 05 05:22:13 placement of nutrients. Certain drugs caused accelerated breast growth along Mar 05 05:22:16 with other side effects. Determining how to counter the other side effects Mar 05 05:22:19 became Steve's task. Teased because his father was a druggist, Steve now thanked Mar 05 05:22:22 his lucky stars. Working with his fathers pharmacological computer program, he Mar 05 05:22:25 had added drugs into the equation that might counteract the negative effects and Mar 05 05:22:28 even speed up the one positive effect he longed for. Alas, he always hit a Mar 05 05:22:30 theoretical wall: what should trigger the growth? Fatty foods could cause Mar 05 05:22:33 higher Mar 05 05:22:36 blood pressure. High sugar content might burn off too quickly. It had to be Mar 05 05:22:39 something easy. The answer struck him while watching Oprah one afternoon. Mar 05 05:22:41 Water-weight gain was the subject. Bloating of the female body during Mar 05 05:22:44 menstruation! Dean fed a drug into the equation that was the exact opposite of Mar 05 05:22:47 the one's women used to fight off water retention. The result: A drug that Mar 05 05:22:49 would Mar 05 05:22:52 emulate the body's call for change during puberty, using water as the catalyst Mar 05 05:22:55 and fuel source. Dean dubbed it 'Nature's Helper.' As a test, Steve put just a Mar 05 05:22:58 trace of the powdered substance into his co-worker's sandwich. Working for the Mar 05 05:23:01 local movie theater turned out to be exciting for once. Minutes after Mar 05 05:23:03 eating her Mar 05 05:23:06 lunch, she was constantly drinking 12 ounce cups of water. Steve watched Mar 05 05:23:08 closely for any signs of discomfort or any other malady, but she just continued Mar 05 05:23:11 her duties, periodically taking long sips from her drink. Being only 13, the Mar 05 05:23:14 girl seemed surprised at the end of the day when her uniform seemed a bit too Mar 05 05:23:17 snug in some areas, even becoming concerned that she'd shrunk it somehow in the Mar 05 05:23:20 wash. Steve heart had raced! The girl had reacted favorably to the drug, but Mar 05 05:23:23 Steve found there to be a problem already: the water-retention ratio was Mar 05 05:23:26 too low. For all the water the girl drank, she should have been sporting a much heavier Mar 05 05:23:29 chest. Steve had gone back to the computer. He found that in his haste to make Mar 05 05:23:32 the drug he'd miscalculated an amount. In the following days he continued his Mar 05 05:23:35 observations of the girl. Elated, Steve discovered no other miscalculations or Mar 05 05:23:38 misguided events had occurred. The girl had "budded" just slightly, and it Mar 05 05:23:40 seemed to be staying. Now he was ready. "Class," Mrs. Cumerine sang as she Mar 05 05:23:43 power-walked in and around the room. "Today we will be making sugar cookies. Mar 05 05:23:46 You'll find your ingredients sitting underneath your counters, so go ahead and Mar 05 05:23:49 begin preparing," Quickening her step, she exited. Since this was the first Mar 05 05:23:51 class Mar 05 05:23:54 of the day, Mrs. Cumerine rarely stopped her exercise to begin teaching. Mar 05 05:23:57 Twenty-seven years of teaching baking had done horrors for her figure, and last Mar 05 05:24:00 year she had begun fighting back. Steve looked about him. Thirty students Mar 05 05:24:02 filled Mar 05 05:24:05 the brightly lit room. Two other males enrolled in the class, but they had Mar 05 05:24:07 signed on to get an easy "A." Mrs. Cumerine had made them consider otherwise Mar 05 05:24:10 when they'd made a bong out of a cucumber the second day of class. Being the Mar 05 05:24:13 only male in the class, Steve had gotten many jibes from the other students. He Mar 05 05:24:16 now grinned knowing the situation could not be better. As the class began to take Mar 05 05:24:19 the ingredients from their shelves, Steve hoped that no one would notice the Mar 05 05:24:22 slightly bluish tint to the sugar. As he glanced around, none of the girls Mar 05 05:24:25 seemed to notice anything peculiar. None had even noticed the lids to some of Mar 05 05:24:28 the sugar containers were missing. When he replaced half of the sugar with his Mar 05 05:24:31 drug early this morning, he'd done it without the aid of lights and had Mar 05 05:24:33 misplaced Mar 05 05:24:36 some lids. Now, everything was going as planned. A half hour crawled by as the Mar 05 05:24:39 women clanked their preparatory dishes in the sinks, only moderately washing Mar 05 05:24:42 them. Soon timers went off and the girls rushed to their ovens to procure Mar 05 05:24:44 their Mar 05 05:24:47 cookies. Mrs. Cumerine heard the noise and power-walked in again just long Mar 05 05:24:49 enough to see the results of the class. After scanning the entire room's trays, Mar 05 05:24:52 she quickly waddled away from the room again to finish another lap around the Mar 05 05:24:56 school before the period was over. She hadn't even noticed that Steve didn't Mar 05 05:24:59 prepare a tray. He just sat with a huge smile on his face: the girls were Mar 05 05:25:01 eating Mar 05 05:25:04 the cookies! Steve's heart raced. Holly Singleton, the skinniest girl in the Mar 05 05:25:07 class, had just nibbled on a cookie and was getting a glass of water. As she Mar 05 05:25:10 tilted her head back and drained the glass, Steve began to sport a rather quick Mar 05 05:25:13 boner. Show time! Holly set down her glass and began to clean up around her Mar 05 05:25:16 area. As Steve stared at her, he noticed her white sweater begin to show more Mar 05 05:25:19 "meat." Her breasts were growing, and none too slowly either. In a short 10 Mar 05 05:25:22 seconds, Holly had gone from an A-cup to almost a C-cup. Then they'd stop Mar 05 05:25:24 growing. Steve figured that from the little amount of water she'd drunk Mar 05 05:25:27 that the Mar 05 05:25:29 ratio of water to growth was very high. He grinned. Another girl was taking a Mar 05 05:25:32 sip of water. Heather Greer was an overweight girl with a pleasant smile. She Mar 05 05:25:35 oh god. Mar 05 05:25:35 downed about half a cup of water and began copying down a recipe. Her V-necked Mar 05 05:25:38 sweater gave Steve a first-hand view of the top of her tits as they began to Mar 05 05:25:41 swell outward. With each breath her bosom seemed to heave a bit more. Mar 05 05:25:44 Soon, her Mar 05 05:25:46 36 inch bust had grown to almost 40 inch, but Heather continued to focus on her Mar 05 05:25:50 book. She'd only adjusted the side of her bra slightly during their expansion. Mar 05 05:25:53 Steve noticed out the corner of his eye that Holly's head snapped back quickly Mar 05 05:25:56 from her duties. He averted his eyes from her as Holly quickly scanned the Mar 05 05:25:58 room, Mar 05 05:26:01 looking desperately around to see if anyone was noticing what she was noticing; Mar 05 05:26:01 please dont paste your erotica here. Mar 05 05:26:03 her bigger boobs. Thinking that no one was watching her, she slyly moved Mar 05 05:26:06 your less talkative than usual Mar 05 05:26:06 her arm Mar 05 05:26:09 across her chest, and her eyes grew very wide. Steve wondered what was going Mar 05 05:26:12 through her mind, now that she'd noticed her new ampleness. To Steve's dismay, Mar 05 05:26:15 Holly turned a pale white and quickly left the room. "Well shit," Steve Mar 05 05:26:17 grumbled, Mar 05 05:26:19 "I can't have that happen. What if they all leave?" Steve got up slowly, Mar 05 05:26:22 noticing happily that Kristine was munching down cookies and filling a sport jug Mar 05 05:26:25 with water. As he walked through the room, he watched as most of the girls Mar 05 05:26:28 began Mar 05 05:26:30 to scarf down cookies and reach for their glasses. 'It must be making them Mar 05 05:26:34 thirsty,' Steve thought. He quickened his pace and headed to the only door in Mar 05 05:26:36 the room. He closed the door behind him as Kristine began to suck greedily on Mar 05 05:26:39 the straw from her sport jug. Steve pushed the button in to lock the door, then Mar 05 05:27:31 poor dan. Mar 05 05:27:44 he must have sensed i was going to ban him Mar 05 05:27:48 why poor dan Mar 05 05:27:58 you think that was an accident ? Mar 05 05:28:12 no Mar 05 05:28:15 oh ok. Mar 05 05:28:25 i figured it was accidental paste. Mar 05 05:28:58 gambler: would you know anything about the error above ? Mar 05 05:29:25 having a problem building master. following instructions from http://source.android.com/download , getting http://dpaste.com/6661/ , Fedora 10, 64 bit. Mar 05 05:31:03 I dunno. I havent coded C in awhile... Mar 05 05:31:19 I really wish though they were releasing the sdk in 64bit version tho. Mar 05 05:31:41 to me, it looks like a build / makefile problem Mar 05 05:31:51 but i dont know enough about the build. Mar 05 05:31:59 thanks anyway. Mar 05 05:32:32 yeah id say so. that other thing is just a warning after all Mar 05 05:35:20 Whenever I load an SSL page in WebView, it fails with errorcode -11. Mar 05 05:35:27 non-ssl pages load fine. Mar 05 05:37:19 got some kind of proxy ? Mar 05 05:37:36 I'm in the emu. Mar 05 05:37:44 Good point - I'll try on the device. Mar 05 05:38:16 The same url works in the browser on the emu, though... Mar 05 05:43:23 rsteckler: no proxy settings.. can you wire dump the request.. see if the remote host is getting data. Mar 05 05:44:58 I could setup a fake cert somewhere and do so. Right now, though, I'm just hitting https://www.google.com Mar 05 05:45:07 If I take off the "s", it loads fine. Mar 05 05:45:21 it loads fine in the browser, but WebView doesn't load it on the emu or the device. Mar 05 05:45:35 It's like webview doesn't support ssl by default and I'm missing a setting or delegate somewhere. Mar 05 05:46:32 lworks here on the live phone Mar 05 05:46:40 hmm Mar 05 05:48:42 using a webview? Mar 05 06:02:33 rsteckler, I included my own version of bouncy castle for ssl because that was 'hidden' in the sdk some time ago. Mar 05 07:04:33 morning Mar 05 07:06:17 morning Mar 05 07:09:51 whats up= Mar 05 07:10:50 having problems building the source tree. Mar 05 07:11:01 not sure what i broke Mar 05 07:11:08 my final goal for.. this week is to have vpnc building. Mar 05 07:11:11 make: *** No rule to make target `out/target/product/generic/obj/lib/libhardware_legacy.so', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/libpixelflinger_intermediates/LINKED/libpixelflinger.so'. Stop. Mar 05 07:11:18 is where i am at now Mar 05 07:12:33 ah, sucks :( Mar 05 07:12:49 most. Mar 05 07:13:07 the internet is not helping me. Mar 05 07:13:58 damn those lolcats. Mar 05 07:18:58 So after some investigation, it's not possible to load an https page in the WebView, when the page has a certificate "problem". The browser uses a method not available in the SDK to work around cert problems. Mar 05 07:19:24 The real bummer is that the cert "problem" in question isn't really a problem. It just looks like Android doesn't ship with the Equifax Root CA Mar 05 07:20:12 rsteckler: is it because the webview needs to be configured where to get the certs from ? Mar 05 07:20:17 (on the disk ?) Mar 05 07:20:26 as the browser.. doesn't have the problem does it ? Mar 05 07:21:08 I don't think you can. Most of the SSL portions of WebView (and WebViewClient) have a @hide annotation on them so they can't be used from the SDK Mar 05 07:21:17 But built-in apps are able to use them Mar 05 07:21:39 The SSL portion in question here is the notification that there is a cert problem, and the abiltiy to diagnose and bypass it. Mar 05 07:25:31 I cant get my screencoord to work out of my proj and view matrix Mar 05 07:26:36 Anyone good at matrices and projected screen coords? :) Mar 05 10:17:56 Has anyone used the compass in android a loT? Mar 05 11:25:58 is there a way to center the image inside an ImageButton? Mar 05 11:43:31 I guess one way is to make it into a 9patch Mar 05 12:55:36 My compass is moving a lot when my phone is still. Anyone got the same problem? Mar 05 13:28:30 What´s the min and max value for compass? Mar 05 13:53:32 0 - 359? Mar 05 14:02:15 nope :( Mar 05 15:09:51 missing org.eclipse.equinox.launcher Mar 05 15:15:23 addHeaderView() is making the view as small as possible, no matter what I set for its layout params... I want it to be as wide as the list view :/ Mar 05 15:19:58 and ?android:attr/listItemPreferredHeight doesn't work... I'm gonna have to set a fixed size and nest this thing like 3 views deep to get it to look right Mar 05 15:24:00 So making a "real world" direction in three axis is better using orientation than magnetic field? Mar 05 15:24:50 local: I think you need both Mar 05 15:25:17 the accelerometer alone doesn't tell you which way you're facing, only which way is down Mar 05 15:33:38 I mean orientation, not acceerometer Mar 05 15:34:36 you also need your approximate location in order to determine magnetic variance Mar 05 15:34:44 so that you know which way is true north, not magnetic north Mar 05 15:35:00 where I live (new jersey) it's appx 12 degrees, which is much larger than you think. Mar 05 15:37:20 hmm Mar 05 15:37:58 if you just want the direction you´re facing. Say you´re standing still Mar 05 15:38:47 you can use Orientation for north/south/east/west right? Mar 05 15:39:04 Then use sin/cos to compute x and z values Mar 05 16:31:23 ugh, this focus stuff doesn't make any sense Mar 05 16:32:06 I have a header in this list view that's supposed to be clickable.. when I touch it, I get a click event. when I long press it, nothing happens, as expected. Mar 05 16:32:40 but when I use the d-pad, pressing it *doesn't* give me a click event, and long pressing it *does* show the list's context menu, which are both wrong. Mar 05 16:34:45 and then the buttons in my popup window are clickable, but there's no highlight when they're being held down... Mar 05 16:34:52 complete insanity. Mar 05 16:42:58 craaazy Mar 05 18:53:52 what's a good eclipse branch merging tool Mar 05 18:54:17 subclipse seems to only copy an entire branch over another branch instead of asking to solve conflicts Mar 05 18:58:50 herriojr: i would use tortoisesvn (if in windows) to merge that stuff Mar 05 19:00:18 yeah, don't use subclipse for more complicated things Mar 05 19:01:04 vity android Mar 05 19:01:47 sorry Mar 05 19:02:01 how to transfer a vector from an intent to another activity? Mar 05 19:02:05 pleas help. Mar 05 19:03:43 anyone knows how to transfer an object via an intent to another activity? Mar 05 19:04:50 viju85: your object needs to implement parcelable Mar 05 19:05:57 is there any example which i can refer to regarding parcelable? Mar 05 19:06:45 also, please just have your discussion in one channel, not both Mar 05 19:07:11 ok sorry. Mar 05 19:07:16 shall not do it again. Mar 05 19:07:25 look at the docs for parcelable Mar 05 19:09:42 viju85: Parcelable (and more generally Bundle) are the data containers used for IPC in Android Mar 05 19:09:54 i am looking at it. but cant get an exact idea of the implementation part for parcelable. Mar 05 19:10:00 Start with http://developer.android.com/reference/android/os/Parcelable.html Mar 05 19:10:19 and http://developer.android.com/reference/android/os/Bundle.html Mar 05 19:10:26 for examples of their use, see the sample code Mar 05 19:12:00 passing information from one activity to another is typically done via the Intent used to launch the activity Mar 05 19:12:11 a Bundle can be attached to that Intent, and then the recipient can extract the information Mar 05 19:12:38 viju85: what type of data are you sending? Mar 05 19:13:02 Vectors and ArratLists Mar 05 19:13:14 i know how to send arrayLists. Mar 05 19:13:17 via intent. Mar 05 19:13:34 Vectors is where i dont know how to send. Mar 05 19:14:18 viju85: implement parcelable Mar 05 19:14:20 Parcel does not directly support Vector Mar 05 19:14:28 then how do i do it? Mar 05 19:14:31 extend vector Mar 05 19:14:39 have your subclass implement parcelable Mar 05 19:15:01 what can a vector do that an arrayList can't? Mar 05 19:15:03 ... and then the subclass implementation of the Parcelable interface can deal with how to marshall the vector's contents in and out of the Parcel Mar 05 19:15:11 zhobbs: synchronization! :D Mar 05 19:15:16 ah Mar 05 19:15:30 but you're right Mar 05 19:15:40 vol: *ugh* Mar 05 19:15:40 you really ought to just use an arraylist instead of a vector, unless you're doing threadsafe stuff Mar 05 19:16:01 ctate: oh yeah baby Mar 05 19:16:06 if threadsafe addAll() is what you really need, you need to think hard about your design :P Mar 05 19:16:28 hi. is this a decent place to find android freelancers? Mar 05 19:16:39 god save us from java.lang locking mechanisms :) Mar 05 19:16:52 Gothfunc: here or #android Mar 05 19:17:04 [ #android is the channel directly mentioned right now on the developer.android.com site ] Mar 05 19:17:16 even better would be the mailing lists Mar 05 19:17:21 hehee.. thanks guys let me dig deeper into parcelable and try it out. thanks. Mar 05 19:18:27 I need an app that adds a context menu to android browsers that bookmarks the viewed page with a website, very much like this: http://code.google.com/p/android-delicious-bookmarks/ Mar 05 19:18:48 the data would just be posted off to the website with a saved username and password Mar 05 19:20:14 anyone capable and willing, for recompense of course Mar 05 19:20:21 ? Mar 05 19:21:28 sounds pretty simple... Mar 05 19:21:36 I'm too busy though Mar 05 19:21:42 np :) Mar 05 19:27:39 the hard part is access to the Browser's internals to learn what is being viewed, i'd think Mar 05 19:27:58 and especially to change its menus etc Mar 05 19:29:39 you interested in the task at all ctate? i'm sure we can figure out how hard it will be Mar 05 19:29:59 ctate: that project he linked to just has an intent filter for inserting a bookmark Mar 05 19:30:04 ha, as if i have any time for more Android work. :) Mar 05 19:30:20 :) Mar 05 19:30:22 zhobbs: neato Mar 05 19:30:22 http://code.google.com/p/android-delicious-bookmarks/source/browse/trunk/android-delicious-bookmarks/AndroidManifest.xml Mar 05 19:30:30 Gothfunc: i work for Google on the Android project, btw. Mar 05 19:30:42 gotcha. good work :) Mar 05 19:31:01 <3 my G1 Mar 05 19:31:15 been waiting for this little slice of the future for too long Mar 05 19:32:50 zhobbs: i still don't see offhand how one would insert stuff into another app's menus, though. neat about intercepting the bookmarks though. Mar 05 19:33:20 yeah, I think with that app you don't create a new menu item, you just handle the bookmark action in the browser Mar 05 19:34:14 not even that; it just registers itself as an alternative handler for the bookmark action, so the user is presented with the usual resolver dialog Mar 05 19:34:21 yeah Mar 05 19:34:25 what happens to messages/callbacks queued up in a View/Handler when that Activity is finished() or killed? they are discarded right? can they cause a delay in the killing/finishing/GCing? Mar 05 19:45:23 they can cause a delay Mar 05 19:45:59 in some circumstances. a lot of the activity code knows not to try to do much work after finish(), but the handlers are still running through their work queue Mar 05 19:49:08 so that means there is probably code that needs to be run....that's why there's no Handler.removeAllCallbacks() Mar 05 19:49:22 jarsigner is telling me nable to sign jar: java.util.zip.ZipException Mar 05 19:49:24 unable Mar 05 19:49:26 any ideas? Mar 05 19:49:50 unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 694 but got 695 bytes) Mar 05 19:50:10 zhobbs: oh yeah, it's important that the app handlers run to completion. there are synchronous protocols between the app and the OS that continue to be enforced during the teardown process. Mar 05 19:53:37 ok...what I'm noticing is that I have a pretty heavy Activity and it seems to take a while before all it's resources get released for GC... Mar 05 19:54:06 and a really obnoxious user can cause it to run out of memory by rapidly opening/closing this Activity over and over again Mar 05 19:54:18 (or obnoxious QA person) :) Mar 05 19:56:35 solution: unjar, delete manifest files, rejar, resign. Mar 05 20:00:11 Is there a color picker somewhere in Android? I started to write one, but it's not terribly fast. Mar 05 20:08:54 zhobbs: are you certain you aren't leaking anything? Mar 05 20:09:40 ctate: no, I probably am....but if I open and close this activity eventually the heap will return to the value it was before I opened it Mar 05 20:09:59 it just takes 10 seconds of forcing GC in ddms Mar 05 20:10:07 hrm Mar 05 20:12:18 so in 10 seconds you can open and close this activity 2-3 times, so as you can see GC will never keep up Mar 05 20:13:13 I need to make sure I'm removing all messages/callbacks from handlers though Mar 05 20:16:05 do you free resources in onDestroy, and do you see that method actually being called? Mar 05 20:16:10 [every time] Mar 05 20:17:51 I unbind to a service and stop a Handler loop in onStop, and in ondestroy I unset various listeners, etc Mar 05 20:18:26 but onStop is being called...I've been careful not to leak the service connection Mar 05 20:19:59 my phone number is showing up with my app in the Market. Mar 05 20:20:14 remove it in the contact info in the Market control panel Mar 05 20:20:15 is there a way to not have that show? other developers just have an email address for their apps Mar 05 20:20:39 zhobbs: 'the phone number you entered is invalid' when i try Mar 05 20:20:59 under 'edit profile' on http://market.android.com/publish/Home Mar 05 20:21:21 oh i see Mar 05 20:21:23 for each app Mar 05 20:21:25 yeah Mar 05 20:21:58 zhobbs: thanks! i got one weird phone call asking for help with this guy's webcam Mar 05 20:22:14 haha Mar 05 20:22:23 my app has nothing to do with webcams :) Mar 05 20:26:33 he wants you to watch him masturbate Mar 05 20:26:45 and why do your users have your phone number Mar 05 20:26:58 gee thanks for that vol Mar 05 20:27:00 nvm, should have scrolled up Mar 05 20:27:18 ctate: to be brutally honest, I'd give it a 50% shot of being the truth Mar 05 20:31:27 is there any way to suppress the "A large number of SMS messages are being sent" warning? Mar 05 20:33:41 from the assets directory, is there a way to get what I want as a file and not as an imput stream? Mar 05 20:40:07 digitalspaghetti: write it to a file on /sdcard and then you have it as a file :) Mar 05 20:40:28 digitalspaghetti: it is an input stream because it *isn't* a file; it's an entry in your app's .apk container file Mar 05 20:46:00 nm, actually having it as a IS will let me skip a step from what I want to do Mar 05 20:47:24 heh Mar 05 20:59:07 in a content provider, when I call getContext(), it returns the context of the calling activity, correct? Mar 05 21:56:44 how do i implement a progress bar while parsing an XML from the web? Mar 05 21:57:19 i tried the api demo but the progress bar shows up after the xml parsing is complete. please help. Mar 05 21:59:09 use a MessageHandler to update your UI while you're processing your xml. Mar 05 21:59:23 I am, of course, hoping that you're not pulling the XML straight from your onCreate method : ( Mar 05 22:00:19 no i am pulling it from onListItemClick Mar 05 22:00:36 but i tried this message handler Mar 05 22:00:51 shoudl i use onStart, onStop ? Mar 05 22:08:17 does the messageHandler for the progress bar need to extends Activity? coz my Parser class is already extending DefaultHandler? Mar 05 22:10:30 ogad : ( Mar 05 22:10:33 n o Mar 05 22:10:40 look in the api demos Mar 05 22:10:56 the only thing you need to override is handleMessage Mar 05 22:11:19 and then you send messages using myHandle.sendMessage(aMessage) Mar 05 22:11:44 send your progress as arg1 or something Mar 05 22:12:04 hey vol, i while ago i asked how to determine whether the device was locked or not and i remember you answering me but i don't remember what you said. do you recall? Mar 05 22:12:16 adb shell Mar 05 22:12:17 id Mar 05 22:12:22 should be 1000 or something Mar 05 22:12:23 try su Mar 05 22:12:28 if that works, id Mar 05 22:12:33 if it's 0, you're root! (hooray!) Mar 05 22:12:46 oh wait, locked meaning rooted? Mar 05 22:13:00 or as in locked to a mobile provider, because if so I didn't say anything about it Mar 05 22:13:21 oh no no, i mean the OS GUI being locked Mar 05 22:13:58 Oh, you mean the keyguard Mar 05 22:14:00 i want my application to behave differently based on whether the device is in use or not Mar 05 22:14:05 yes Mar 05 22:14:41 oh uh Mar 05 22:14:43 hmm Mar 05 22:14:53 I just disable it :\ Mar 05 22:16:24 I don't know, maybe KeyguardManagerinKeyguardRestrictedInputMode would tell you Mar 05 22:16:49 I would imagine that there might be an intent or two you can catch Mar 05 22:22:53 yeah i've been trying to search for something but have been unsuccessful so far. The word "locked" with regard to mobile phones doesn't help the results. I'll just have to dig through the docs I suppose. Thanks. Mar 05 22:24:11 ha Mar 05 22:24:28 well, are you holding a partial wakelock or something? Mar 05 22:24:42 if the device is sleeping, you're not going to be running Mar 05 22:30:24 it's a background service that vibrates incoming SMS messages in morse code and I don't want it to run if you're using the device because you can obviously just read the message Mar 05 22:33:36 I'm getting 20-22 fps on device, and all I am doing is drawing a full screen background image. That seems a bit crap Mar 05 22:35:00 thesquib: using a SurfaceView? Mar 05 22:35:07 how are you drawing? Mar 05 22:36:01 Currently just a view Mar 05 22:36:09 I also have SurfaceView setup Mar 05 22:36:19 I draw with Canvas.drawBitmap() Mar 05 22:36:49 yeah Mar 05 22:36:55 use a SurfaceView and you can draw directly Mar 05 22:37:08 With a View you have a rediculous 16 bit -> 32 bit -> 16 bit conversion Mar 05 22:37:21 oh, right Mar 05 22:37:39 the framerate for our app shot up from like 2 fps (if lucky!) to 10 fps or much better, depending on what we're drawing Mar 05 22:38:20 dang, my fps overlay hasn't been setup on surfaceview Mar 05 22:38:22 what the heck? did someone just replace the developer.android.com site with the msdn? :X Mar 05 22:38:22 brb Mar 05 22:38:59 ? Mar 05 22:39:27 yeah Mar 05 22:39:42 well not MSDN for me, but they definitely have some DNS issues or something Mar 05 22:40:05 fixed now Mar 05 22:40:43 Victor S Gomez Projectos Sociais - Artas Mar 05 22:40:46 .... o_O Mar 05 22:41:58 haha yeah that was where i was Mar 05 22:42:41 The indian make up diva! Mar 05 22:42:45 what the heck is going on here D: Mar 05 22:44:00 how can i use com.android.mms.ui.RecipientsEditor in my app? App crashes when I put it in a layout XML and I also can't import it. Mar 05 22:45:27 Argh. I wish the contacts stuff was more straightforward Mar 05 22:45:29 vol: hmm I get 23 fps constant using surface view. When you say you can draw directly, you are referring to locking the Canvas?? Mar 05 22:45:38 Yeah, it's really awesome that I can use kinda sorta not really sql to do this. Mar 05 22:45:51 Yeah :P It is fun Mar 05 22:45:52 thesquib: yes. You want something else to be drawing for you, you don't want to do this in the draw method Mar 05 22:45:59 give some thread the SurfaceHolder Mar 05 22:46:05 then have it lock, then blit, then unlock and post Mar 05 22:46:21 Honestly, 23fps isn't the worst. Look at the fps for the api demos. Mar 05 22:46:26 (for opengl, etc) Mar 05 22:46:27 yeah Mar 05 22:47:15 True, but this is a static image. A game requires 5 - 10 sprites on the screen, changing position all the time Mar 05 22:47:35 24fps might not be the phone struggling; it might just be the theoretical max draw speed. Mar 05 22:47:43 try drawing a bunch of lines and stuff, and see what happens. Mar 05 22:48:14 well.. drawing a single color, full screen gets about 60fps Mar 05 22:48:18 what size is the image? you can get higher than 23fps with just a background Mar 05 22:48:45 I'm wondering if the bitmaps I have created are getting converted on every draw Mar 05 22:49:04 The background is 320x480 pixels, black and white gradient Mar 05 22:49:09 thesquib, http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html Mar 05 22:49:17 However, I have tried with a full color picture and it was the same Mar 05 22:51:05 heh, nice tbr. Posted today! Mar 05 22:51:59 haha yeah. i read it this morning and i've been sitting here thinking that I remembered hearing about background and FPS somewhere recently... Mar 05 22:53:37 It is quite annoying that all this stuff happens in the background, and there is a trickle of information coming out about it Mar 05 23:01:02 so if i want functionality of "core" classes (such as com.android.mms.ui.RecepientsEditor) I basically have to mirror them? that's lame. Mar 05 23:01:14 hey tbr, the article mentions setting @null Mar 05 23:01:34 Does this set view.setBackground to null Mar 05 23:02:44 Argh! Mar 05 23:02:55 My kingdom for a "unique" prefix to this stupid contact manager interface : ( Mar 05 23:03:50 that provider? Mar 05 23:04:17 I managed to create a wrapper for that recently.. It is hardly intuitive! Mar 05 23:04:30 yeah, the content provider Mar 05 23:04:40 the problem is that I have duplicates, or maybe I want both the phone AND address/email/etc Mar 05 23:05:26 yeah, Mar 05 23:05:36 why not just have get all Detail from contact X Mar 05 23:05:41 *details Mar 05 23:05:49 well, that wouldn't be so bad either, since I know what I'm looking for Mar 05 23:05:57 it's more an issue of getting this in aggregate. Mar 05 23:06:05 and getting it without the tons of duplicates Mar 05 23:06:23 contact x has 3 phone numbers, a fax number, two email addresses, and two postal addresses. Mar 05 23:06:44 I'm only interested in the mobile number and the primary email, say. Mar 05 23:06:51 yeah Mar 05 23:06:59 so, since this isn't REALLY SQL, and I can't actually join Mar 05 23:07:06 I have to do two seperate queries and then merge the results Mar 05 23:07:06 exactly Mar 05 23:07:18 I just made myself an Entry class Mar 05 23:07:25 and filled that out with everything Mar 05 23:07:37 "Entry" as in ContactEntry Mar 05 23:07:54 And then access/modify that, before commiting back to the provider Mar 05 23:08:08 There is no nice way to query it. Mar 05 23:20:59 when i use Progress Dialog, i display the dialog using show() and then start the parser. But somehow, the dialog is not showing up. Mar 05 23:21:05 ghj Mar 05 23:21:39 if i comment the parser method and run the app, i see the progress dialog. Mar 05 23:21:50 could you tell me where i am going wrong? Mar 05 23:28:18 sigh. Mar 05 23:28:24 are you running this off the ui thread? Mar 05 23:28:26 (yes) Mar 05 23:28:40 create a new thread that does your parsing and return from your listener immediately Mar 05 23:28:49 you really should not be blocking in the ui thread Mar 05 23:46:37 i keep seeing android.provider.Telephony.Mms referenced in the Android source but I can't find it anywhere Mar 05 23:50:36 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/provider/Telephony.java;h=18c64ed182030f49af02163bb89976d8382a79d6;hb=master Mar 05 23:50:49 viju85: http://helloandroid.com/node/243 Mar 05 23:51:00 More precisely, http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/provider/Telephony.java;h=18c64ed182030f49af02163bb89976d8382a79d6;hb=master#l1101 Mar 05 23:54:12 thank you. i must have been in the wrong git branch or something... Mar 05 23:55:06 ofc note that everything in that file is @hide Mar 05 23:55:28 i.e. subject to change at any time in any release Mar 05 23:56:40 is that why i can't use anything like RecipientEditor in my application? Mar 05 23:57:25 i'm mirroring it locally in my application so that changes in subsequent releases won't break anything Mar 05 23:57:49 yes, that's why Mar 06 00:03:43 changes in subsequent releases are likely to break stuff anyway. Those are content provider APIs, i.e. data. The fact that you have a copy of a private constant in your app doesn't mean that that constant won't get a new meaning in a future release. Mar 06 00:06:23 this is my Structure: onListItemClick - i start the parser . i want the progressdialog just before the actual parsing starts. Mar 06 00:06:28 i went thru the link. Mar 06 00:06:30 u sent. Mar 06 00:06:56 True, I suppose i'm not mirroring it actually. Just locally implementing a local working copy at its current state. Mar 06 00:07:06 -local Mar 06 00:08:22 http://pastebin.com/pastebin.php?dl=d5b175c7d Mar 06 00:08:57 ( http://pastebin.com/d5b175c7d ) Mar 06 00:11:44 hah! Mar 06 00:11:56 I lose 25 FPS when I draw a PNG with a bit of transparency in it Mar 06 00:12:03 Full screen that is. Mar 06 00:12:13 blending is costly Mar 06 00:12:46 Hmm.. But it is blending with whatever is in the background. Mar 06 00:12:55 that's the point of blending Mar 06 00:12:58 I know Mar 06 00:13:18 Sorry, I meant, what it is blending with is outside of my control. Mar 06 00:13:34 yes Mar 06 00:14:20 as the android developer blog points out today (linked earlier) it's not totally out of your control Mar 06 00:14:36 True. Mar 06 00:15:17 thesquib: it's having to even test for blending that is so expensive Mar 06 00:15:37 and the mem bus is just so freaking slow Mar 06 00:17:47 Will the test for blending always occur? How does it decide to check Mar 06 00:19:19 if the png has transparency there will always be blending, iirc Mar 06 00:19:25 For instance: I draw a portion of a PNG which is 320x480 the portion getting drawn contains no transparency, but other parts of the image do. Mar 06 00:19:53 even if the eventual clipped subarea does not have any translucent pixels Mar 06 00:20:14 So it checks the alpha bits every time. Mar 06 00:20:59 i'm not really up on the .png format; there may be a bit in the header that says whether it contains any translucent pixels Mar 06 00:21:10 (for example) Mar 06 00:21:26 well yeah, it can't be because I'm drawing bitmaps anyway. It must check the alpha bits everytime. Mar 06 00:21:31 no blending occurs for pixels that are not opaque Mar 06 00:22:03 but if your PNG contains one non-opaque pixel, it will be treated as a ARGB_8888 source that will go through slower code paths Mar 06 00:22:06 even when no blending occurs Mar 06 00:22:18 ah Mar 06 00:22:22 Skia is smart enough to skip blending opaque pixels Mar 06 00:22:29 but it will still be slower than using an opaque image Mar 06 00:22:36 (which ends up being a straight memcpy) Mar 06 00:23:51 So, BitmapFactory.createBitmap will always create an ARGB_8888 bitmap if the png contains at least one non-opaque pixel. Even if the config is specifed as ARGB_4444 Mar 06 00:24:10 ARGB 4444 is still non opaque Mar 06 00:24:13 so you still have blending Mar 06 00:24:18 Yes Mar 06 00:24:21 and ARGB 4444 gives you really low quality Mar 06 00:24:38 Low quality, less memory used. Mar 06 00:25:25 the quality isn't work it imo Mar 06 00:25:38 ok Mar 06 00:25:44 565 is bad enough Mar 06 00:25:52 So, in short. A solution would be to cut up images so opaque images are seperate from non opaque. Mar 06 00:26:00 that would definitely help Mar 06 00:26:40 why is my progress dialog displaying after the parsing of the xml is complete rather than displaying before? Mar 06 00:26:44 please help. Mar 06 00:26:59 you are blocking the UI thread Mar 06 00:27:07 i bet you're doing hte parsing in ... that. Mar 06 00:28:18 yeah i am calling the parser in that class. Mar 06 00:28:26 but how else could i implement it Mar 06 00:28:27 ? Mar 06 00:28:38 use a Thread Mar 06 00:28:40 spin the parsing off to a separate thread Mar 06 00:29:00 parsing is done inside onListItemClick. Mar 06 00:29:10 use a Thread Mar 06 00:29:56 viju85: yeah, that means you are not letting the UI continue to do stuff until your parsing call returns Mar 06 00:30:35 and if parsing takes more than a few seconds you'll get ANRd Mar 06 00:30:37 romainguy: I have a game I am porting. I basically need to quickly draw regions of bitmaps on top of a base bitmap, and then blit that to the screen. Currently the fps are fairly low, so I'm investigating ways to improve this. Most of the drawing code is easily transferred Mar 06 00:30:46 i tried using a thread also. it still does the same. a short code snippet is shown here:http://pastebin.com/pastebin.php?dl=d58a65e9b Mar 06 00:31:22 please take a look and tell me where i am going wrong. Mar 06 00:31:24 I just thought I would explain the basis of my questions. Thank you for the advice with regards to transparency, I will look into this. Mar 06 00:31:33 yuck, download link. do you have an in-web link for that pastebin? Mar 06 00:31:50 ctate: http://pastebin.com/d58a65e9b Mar 06 00:31:58 oh that's easy tahnks Mar 06 00:32:50 I also spent a bit of time investigating the feasibility of using GL through a pbuffer/2d texture or a Canvas with GL backing, however it is either unsupported on the platform or the gains are small or non existant. Mar 06 00:32:52 you're not creating a trhead at all Mar 06 00:33:04 I mean you are Mar 06 00:33:05 viju85: you're still calling xr.parse(new InputSource(url.openStream())) directly from within onListItemClick() Mar 06 00:33:06 but you are not using it Mar 06 00:33:12 you need to call it *from the other thread* Mar 06 00:33:59 in this code, the other thread just spins the cpu and does nothing until CityParser.isRunning becomes false Mar 06 00:34:32 Yes. so i need to call the startDisplay() thread from the Parser thread? Mar 06 00:34:55 you need to put the parsing into the other thread Mar 06 00:35:29 but i can't do that because parsing depends on the "position" of the onListItemClcik Mar 06 00:36:45 you need to pass the info to the other thread, then Mar 06 00:37:20 you could for example look up the Handler and HandlerThread classes in the Android framework Mar 06 00:37:44 Handler is for setting up asynchronous tasks in response to message packets that can contain data Mar 06 00:38:52 you mean like messageHandler? Mar 06 00:39:02 or you could just use class state accessible to the inner thread class Mar 06 00:39:35 i do not know how to do that! Mar 06 00:39:38 i mean you might want to look at http://developer.android.com/reference/android/os/Handler.html and http://developer.android.com/reference/android/os/HandlerThread.html Mar 06 00:40:40 i am using a Handler in my code though. Mar 06 00:41:55 i think you need to go through the basics of threading Mar 06 00:42:42 ok let me read up the HandlerThread and Handler docs. Mar 06 00:42:57 no, threading in general i mean Mar 06 00:43:05 also reread http://developer.android.com/guide/practices/design/responsiveness.html Mar 06 00:43:55 the inner class thing is this: inner class instances are tied to their enclosing class instance, and can see the member variables Mar 06 00:44:51 this is useful for defining inner classes that are the worker thread things, and then they can just look at the outside class's state (i.e. your activity's state) to see what needs to be done when they're told to run Mar 06 00:46:09 What if I know that transparency will always be full or partial - is there some sort of optimal way I can use this knowledge within the android graphics system? Mar 06 00:46:39 Sorry - that is fully opaque or fully transparent. Mar 06 00:51:04 urgh full opaque doesn't make sense. Must be time for a walk. ;-) Mar 06 01:02:05 ctate: better to start using cupcake's AsyncTask class :) Mar 06 01:08:19 is it possible to not use the normal application icon for the "add a shortcut" menu? Mar 06 01:12:08 romainguy__: belated sure, but FOR NOW... ;) Mar 06 01:16:11 ctate: they can grab the said class from git Mar 06 01:16:14 it's totally standalone Mar 06 01:16:22 oh sweet Mar 06 01:16:25 KNY: you can use whatever icon you want Mar 06 01:16:32 and yes in that case go for it, AsyncTask rocks Mar 06 01:18:42 I love P1 bugs with no repro steps and no screenshots Mar 06 01:19:14 romainguy__, how do I go about that? I was under the impression it was automatic Mar 06 01:19:49 ah you mean for Add > Application Mar 06 01:19:53 not Add > Shortcut? Mar 06 01:22:19 no, add -> shortcut Mar 06 01:22:36 where would the alternate icon be specified? Mar 06 01:22:54 this isn't for the shortcut itself; it's for the pop-up menu/tree thing Mar 06 01:33:05 is there any way to suppress the "A large number of SMS messages are being sent" warning? Mar 06 01:36:12 sounds like a fair warning Mar 06 01:36:20 ;) Mar 06 01:44:58 it is but the use of my app causes way too many of them Mar 06 01:46:47 romainguy__: I found the instruction for Ubuntu Linux(32 bit) is 'sun-java6-jdk' in http://source.android.com/download (should be 5?) Mar 06 01:47:07 gasolin_: er what? Mar 06 01:47:42 java version should be 5.0? Mar 06 01:47:47 not 6.0 Mar 06 01:47:50 not necessarily Mar 06 01:48:01 you can use Java 6 if you want Mar 06 01:48:12 but the description said that Mar 06 01:48:25 said what? Mar 06 01:48:41 va 6 is not supported, because of incompatibilities with @Override. Mar 06 01:48:50 ah Mar 06 01:48:53 actually you can use it Mar 06 01:49:00 you just have not to use @Override on interface methods Mar 06 01:49:01 that's all Mar 06 01:49:09 (and you can do that in your app) Mar 06 01:49:56 I know, I just want to say the instruction is not that accurate :p Mar 06 01:50:08 thanks then :) Mar 06 01:50:44 it confused me a bit since ubuntu 32bit/64bit have to install different jdk version:p Mar 06 01:53:39 i want to terminate my app from within an OnClickListener, would MyApp.this.finish() do the job? Mar 06 01:54:34 don't Mar 06 01:55:44 how would i go about doing it properly? Mar 06 01:55:56 you don't Mar 06 01:56:37 but i will Mar 06 01:56:57 this is an agree/disagree warning dialog and if you disagree, the app needs to exit Mar 06 01:58:41 it seems to work in the emulator so i'll go with it Mar 06 02:01:21 EULA? Mar 06 02:02:40 tbr: http://tkcodesharing.blogspot.com/2009/01/how-to-display-license-agreement-on.html Mar 06 02:08:31 excellent, thanks. that's basically what i had started doing Mar 06 02:13:31 hmm, wonder what goes in exitNotAcceptedApplication(); Mar 06 02:14:29 khert: trade secret Mar 06 02:28:12 khert, if you look on his google code repository it's just a call to finish() Mar 06 02:29:25 heh, which is what you wanted to do to begin with Mar 06 02:38:32 the 325 character max description is aggrivating Mar 06 02:39:27 and no screenshots of the apps, what's up w/ that.. Mar 06 02:44:26 yeah that too. neither of my apps are anything that requires a screenshot to really understand but for games and more advanced general apps it's a must **** ENDING LOGGING AT Fri Mar 06 02:59:57 2009