**** BEGIN LOGGING AT Mon Dec 14 23:57:07 2009 Dec 14 23:57:35 ..now imagine if windows would silently update itself ;) Dec 14 23:58:51 ctate, have you heard of an issue where menu icons from an apps drawable are scaling too big in the menu blocking the label? Dec 15 00:01:41 michaelnovakjr: scaling? hmm. do you have assets in both mdpi and hdpi, or something? Dec 15 00:01:42 yep Dec 15 00:01:43 ctate, i have assets in drawable too... testing on a 1.5 device Dec 15 00:01:43 the icons are 48x48 like the icon docs say Dec 15 00:01:51 is droid draw the best editor for android ui's ? Dec 15 00:02:22 perlmonkey2: what are you actually writing? Dec 15 00:02:24 hi Dec 15 00:03:02 perlmonkey2, all sticky intents will not broadcast to manifest receivers Dec 15 00:03:03 perlmonkey2: the battery-changed broadcast is only sent to running apps because it's sent *frequently*, and it would be a huge performance problem [and battery drain!] to keep launching apps just to deliver it all the time. Dec 15 00:03:06 ctate: an app to keep the battery level in the messages. Dec 15 00:03:18 ew Dec 15 00:03:29 why do you need to update the battery status every few seconds? Dec 15 00:03:37 [potentially] Dec 15 00:03:44 what's the difference between that and a widget to do it, besides a widget taking up valuable real estate Dec 15 00:03:44 just check it every minute or so, using an alarm Dec 15 00:03:48 does it get sent frequently? I thought it only got sent if the battery level drops 10% or if the power state changes? Dec 15 00:03:57 the power state changes a lot Dec 15 00:03:58 ctate: an alarm........ Dec 15 00:04:00 hmm Dec 15 00:04:05 hi all Dec 15 00:04:07 ctate, power state as in plugged in state Dec 15 00:04:12 pfn: different broadcast Dec 15 00:04:25 pfn: i believe perlmonkey2 is talking about the battery-*level* broadcast Dec 15 00:04:38 ctate, hm when i removed the icons out of the -mdpi -hdpi -ldpi folders the menu icons showed up properly.... Dec 15 00:04:40 ACTION_BATTERY_CHANGED which should be if the % chagnes. Dec 15 00:05:08 at least that is what I have from my old working Activity before I overwrote the code :P Dec 15 00:05:18 ACTION_BATTERY_CHANGED only gets sent every 10% I thought... Dec 15 00:05:33 or if you unplug the phone Dec 15 00:05:35 or plug it in Dec 15 00:05:42 pfn: unless I copied and pasted something really wrong, that is waht I used in my Activity which did the same thing. Dec 15 00:06:04 register gf0113dlc Dec 15 00:06:14 It was called when the battery % changed and the intent contained the level and scale values Dec 15 00:06:17 anyway, *all* sticky broadcasts are registered receivers only Dec 15 00:06:28 and ACTION_BATTERY_CHANGED is a sticky broadcast Dec 15 00:06:55 pfn: so waht I'm doing is creating a service which does absolutely nothing but register a BR. Dec 15 00:07:18 But I blew away my code example of registering a BR and can't seem to find another :P Dec 15 00:07:43 not sure what an IntentFilter should look like. But I'll find something. Dec 15 00:07:45 perlmonkey2, you can't register a BR for sticky broadcasts from AndroidManifest.xml Dec 15 00:08:05 pfn: right, I'm not doing that. Dec 15 00:08:09 I'm doing it in my service Dec 15 00:08:11 perlmonkey2, you can register a BR from a Service or Activityfor sticky broadcasts Dec 15 00:08:37 registerReceiver(receiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); Dec 15 00:09:15 oh snap....you rock. Dec 15 00:09:43 wow....I said 'oh snap'. I apparently do *not* rock. Dec 15 00:10:09 heh Dec 15 00:13:45 man, no wonder why droid development always have a refresh button on edit =_= Dec 15 00:13:52 everything is being saved in the state Dec 15 00:14:27 perlmonkey2: i still say it's bad design to have a service sitting there watching the battery level Dec 15 00:14:37 that's very high overhead, i.e. it eats battery Dec 15 00:14:51 ctate: yes, I like your idea of using an alarm every 5 minutes or so. Dec 15 00:15:05 ctate: But I want to get this bit of code working as these are just toys to learn with so far. Dec 15 00:15:38 I don't know, wasn't someone complaining that ACTION_BATTERY_CHANGED only occurs every 10% of _LEVEL? Dec 15 00:16:07 pfn: well on 1.6 I know it doesn't. I get 1% granularity on met Activity which registers that BR> Dec 15 00:16:24 Droid only reports 10% increments of battery level Dec 15 00:16:31 maybe that's the reason Dec 15 00:16:48 that's a hw issue, not platform Dec 15 00:16:57 Can any one hellp a 100% noob creat a simple app Dec 15 00:17:07 timo, d.android.com has tutorials Dec 15 00:17:10 timo: Do you have Eclipse all set up? Dec 15 00:17:21 first thing I'd do is import some example apps from the SDK. Dec 15 00:17:40 perlmonkey2 im too noob to learn Dec 15 00:17:58 I have the sdk installed and can run adb commands Dec 15 00:18:31 timo: don't sell yourself short, no one is too noob to learn :P Dec 15 00:18:54 helloworld is boringly easy Dec 15 00:19:02 its from experincce :'( Dec 15 00:19:23 i cant even understand hello world Dec 15 00:19:27 timo: have you read through the documentation? Dec 15 00:19:49 There are tuts you can work through until you've got the basics. Dec 15 00:20:20 timo, read thinking in java (free ebook) and then try the samples/examples at d.android.com Dec 15 00:20:34 i will do thou Dec 15 00:20:51 i once done some c ++ so im not totally in the dark Dec 15 00:21:39 but all it was cout:std stuff Dec 15 00:22:12 that isn't really doing c++ Dec 15 00:22:59 i was also doing else and break commands Dec 15 00:23:00 Hi all, Did anyone plug a HTC via USB in Ubuntu and use adb on it? Dec 15 00:23:28 Guedes: an HTC what? HTC makes many different phones. Dec 15 00:23:46 Sorry, Hero, with android... Dec 15 00:23:56 i'm trying: http://developer.android.com/guide/developing/device.html#dev-phone-1 Dec 15 00:24:40 Any one fancy learning with me we can talk over msn and help each other when confused? Dec 15 00:24:54 timo: here is the right place to ask Dec 15 00:25:11 And i'm using Ubuntu Hardy Heron. but "adb devices" returning an empty list of devices attached ":/ Dec 15 00:25:16 Guedes, there's a name, adp1, adp2, etc. Dec 15 00:25:33 Guedes, that'd be adp1 Dec 15 00:25:47 anyone know anything about 2.0 or 2.1 coming to ADP2 by any chance? Dec 15 00:25:56 Guedes: did you enable USB debugging first on the handset? Dec 15 00:26:03 hummm... Dec 15 00:26:21 ctate: good point... let me see, thanks. Dec 15 00:30:34 do people make christmas versions or put eastereggs in their apps? :) Dec 15 00:32:01 perlmonkey2 can i have a link to eclipse please just confused my selftrying to google it lol Dec 15 00:32:12 www.eclipse.org Dec 15 00:33:07 ohh i thou it would be specefic to andriod Dec 15 00:33:15 ctate: btw, i'm thinking if htc hero supports usb debugging Dec 15 00:33:39 i guess only htc dream Dec 15 00:33:41 timo: you'll have to install an android-specific plugin Dec 15 00:33:51 every android phone supports usb debugging - as long as you enable it Dec 15 00:33:59 anyone know anything about 2.0 or 2.1 coming to ADP2 by any chance? Dec 15 00:34:19 Leeds: hum... is it an option in phone? Dec 15 00:34:26 yes Dec 15 00:34:48 * Guedes searching it again... Dec 15 00:34:58 RobinB: is this from the eclipse website or from the andriod sdk i have that installed btw. Dec 15 00:35:22 it says on the installation guide from the android dev site Dec 15 00:35:52 Guedes: settings->Applications->Debugging Dec 15 00:36:06 timo: http://developer.android.com/sdk/installing.html#InstallingADT Dec 15 00:36:12 ah! Dec 15 00:36:35 Leeds: yes... thanks.. there is a "Development" item there... Dec 15 00:36:40 Quick question...is there a built in dialog which displays a "Sending..." style dialog with a loading spinner and cancel button? Dec 15 00:37:05 adb devices shows it now. thanks ":D Dec 15 00:37:23 Guedes: the Hero *should* support USB debugging Dec 15 00:37:30 Guedes: cool Dec 15 00:37:35 aha, ther eyou go Dec 15 00:37:38 you found it :) Dec 15 00:37:46 ctate: yes, thanks! Dec 15 00:37:51 ":D Dec 15 00:38:32 Hmm, in the notifications, the only thing that is sticky is the icon. I have a weather app which updates the temp and has a sticky temp notification. Is that really an icon and not text? Dec 15 00:38:34 is there anyway to make eclipse quick and snappy? it seems to be the slowest IDE I've ever used, and yes, I have a decent system, core i7 with 8gb of ram Dec 15 00:38:35 Greetings! Q: When (attempting to) fade an ImageView, revealing the view beneath, z-order wise, is it enough to give it a background of @android:color/transparent ... ? (Thinking no, because I tried that and it fades to _black_ instead.) Clues appreciated! Dec 15 00:39:20 unixdev: you don't have to use it... Dec 15 00:39:41 Leeds: what do you recommend for android dev? I thought it was the only option Dec 15 00:39:42 perlmonkey2: not sure what you mean... Dec 15 00:39:58 unixdev: vim does the job with aplomb, as per usual Dec 15 00:40:08 some people use IntelliJ Dec 15 00:40:15 unixdev: idea might be an option. I think they have some android related functionality. I haven't used it (for android) myself Dec 15 00:40:17 it's just that the SDK has a lot of Eclipse integration Dec 15 00:40:22 @ctate: Exactly. Dec 15 00:40:56 how do i ensure that a class isnt inactivated/GC'ed in android? do i ahve to use a Service ? Dec 15 00:41:04 Leeds: okay, in the home screen (not pulling down the notifications) there is a icon and text scroll upon a new notification. The icon stays but the text leaves after a few secs. Instead of an icon I want to have the text stay. And a weather app I have does this (or else has a ton of icons it changes to representing all the possible temps). Dec 15 00:42:20 perlmonkey2: it uses a ton of "icons" and abuses the notification mechanism to keep updating the display. it's really heinous, very high overhead. Dec 15 00:42:37 you cannot make the text persist Dec 15 00:42:52 ctate: Are you talking about WeatherBug notifications? Dec 15 00:42:59 yup Dec 15 00:43:00 that's what I was referring to. Dec 15 00:43:21 we've looked at it. it's really abusing the mechanism and we're debating making it just not work. Dec 15 00:43:33 [throttling the rate at which an app can post notifications, or something.] Dec 15 00:43:38 my weather app doesn't do that ;) Dec 15 00:43:49 thank you, Leeds :) Dec 15 00:43:56 Well that is too bad. I was hoping the notification bar could be used to show data like that. Dec 15 00:44:08 it does, however, abuse the alarm manager slightly, and needs to get updated Dec 15 00:44:13 ctate: but that is good to know that the not bar shouldn't be used that way. Dec 15 00:44:16 perlmonkey2: what if 2 apps both want to do that? Dec 15 00:44:17 Leeds: how slightly? :) Dec 15 00:44:25 yeah, ==Leeds Dec 15 00:44:32 just don't go there :) Dec 15 00:44:54 Leeds: I've had two bars doing that. Just looks like a 59F sitting next to a another number. Dec 15 00:45:05 ctate: doesn't use setInexactRepeating when it really should - that's why I said slightly :) Dec 15 00:45:22 heh Dec 15 00:45:25 ctate: IntelliJ has an android plugin! thank you, I'll give that a try Dec 15 00:45:27 eclipse feels slow? on an i7? Dec 15 00:45:28 virus! Dec 15 00:45:36 pfn: no no, not a virus Dec 15 00:45:36 eclipse is blindingly fast on my box Dec 15 00:45:39 pfn: oh c'mon. Eclipse is a total pig. Dec 15 00:45:43 pfn: what os are you running? Dec 15 00:45:48 win7 Dec 15 00:45:55 it also keeps running out of memory on me. :( Dec 15 00:46:00 It is snappy on my old T8300. Dec 15 00:46:03 linux has less than optimal experiences with eclipse Dec 15 00:46:06 eclipse is a pig for sure, but name a decent IDE that isnt Dec 15 00:46:09 ctate, increase heap size in eclipse.ini Dec 15 00:46:11 ctate, seriously :p Dec 15 00:46:16 pfn: no such file; this is a Mac Dec 15 00:46:20 Intellij, Netbeans both use at least as much resources as eclipse Dec 15 00:46:22 mostly i need more than 4 gigs in my machine Dec 15 00:46:27 lol, I feel your pain ctate Dec 15 00:46:43 how do I call getPackageManager in an Activity? Dec 15 00:46:47 ctate, I dunno how eclipse on mac does it, but there's an eclipse.ini in windows and linux that controls how much memory it gets Dec 15 00:46:53 ctate: hmm. check the command line arguments you use to launch eclipse. don't know how that is handled on mac though Dec 15 00:46:53 ctate, and by default, eclipse uses like 256m max Dec 15 00:47:00 some ridiculously low number Dec 15 00:47:05 I think maybe it needs a Context but I can't seem to call getContext() either Dec 15 00:47:16 pfn: eclipse blows chunks on osx, thats what im using right now Dec 15 00:47:18 ronghail: your activity *is* a Context Dec 15 00:47:21 ronghail, an Activity is a context Dec 15 00:47:36 so just call getPackageManager() outright Dec 15 00:47:40 unixdev, maybe that's the reason... Dec 15 00:47:43 unixdev, with an i7/8gb ram i do hope you've invested in an SSD too Dec 15 00:47:47 it's a method on Activity, inherited [eventually] from Context Dec 15 00:47:53 getPAckageManager cannot be resolved to a type Dec 15 00:47:54 but it's certainly not slow on windows Dec 15 00:48:02 So its the offical Android OS dev's position that how Weatherbug uses the notification bar is wrong? Dec 15 00:48:08 ronghail, you should try typing it right :) Dec 15 00:48:08 no SSD just yet...need to push more apps first Dec 15 00:48:08 PackageManager p = new getPackageManager(); Dec 15 00:48:14 no Dec 15 00:48:19 ronghail, you should try using the right syntax Dec 15 00:48:26 PackageManager p = getPackageManager(); Dec 15 00:48:27 why would you think you need to 'new' Dec 15 00:48:38 Any devs in portland, oregon are invited to the androidpdx usergroup at the SE luckylab at 6pm tonight. Dec 15 00:48:42 ugh. because I am retarded Dec 15 00:48:47 thanks Dec 15 00:50:11 hi Dec 15 00:50:20 anyone there? Dec 15 00:50:20 donpdonp: wish I was there. I'm pretty sure I'm the only "android dev" in a hundred miles. Dec 15 00:50:49 perlmonkey2: thats crappy. what city are you in? Dec 15 00:51:00 donpdonp: heh, tiny town in SE OK. Dec 15 00:51:01 question, can you set values to resources? Dec 15 00:51:04 such as string Dec 15 00:51:10 all the functions are get Dec 15 00:51:17 perlmonkey2: right on. way to carry the android flame :) Dec 15 00:51:37 donpdonp: got to do something to keep entertained around here :) Dec 15 00:51:58 lol. /me goes to drink beer... i mean attend user meeting Dec 15 00:52:04 heh Dec 15 00:53:36 Nyceane: no, you can't change resources Dec 15 00:55:00 If I only changed the notification on 10% changes I'd only need 10 icons (no sense in showing 0). Set the alarm at 5 minutes to update the notification. Make sure my permissions say I don't need phone state internet or any of the other shady perms all the other battery apps need. And boom, I'm famous. Dec 15 00:55:42 Hi Dec 15 00:55:45 Are there any ops around? Would it be possible to get the channel topic updated to include the Android Office Hours event scheduled for tomorrow? (http://android-developers.blogspot.com/2009/12/come-to-our-virtual-office-hours.html) Dec 15 00:57:04 so is there any sort of viewstate? Dec 15 00:57:11 or anything that I can use to store a value Dec 15 00:57:13 or session Dec 15 00:57:53 I need to get a value from the webservice, and to retreive it from other classes Dec 15 00:58:27 Nyceane, (bad practice) create a singleton that's your global state Dec 15 00:58:34 quick and dirty Dec 15 00:58:50 what's the right way of doing it? Dec 15 00:58:55 best practice Dec 15 00:59:12 the reason why I am doing it is because the variable will be repeatly used to send to the webservice Dec 15 00:59:29 its a guid to be used for security reasons Dec 15 01:00:56 or I can just passed it around everywhere I go... which is pretty bad pratice too, introduce complexity Dec 15 01:01:54 Nyceane, keep state somewhere, in a service or whatever, or pass it around as your intent data Dec 15 01:02:24 i have the eclipse up and runing time to see what i can do :P Dec 15 01:05:50 timo: good luck :) Dec 15 01:06:19 How can you create an Intent that is different enough that the AlarmManager will see two different calls to set() and not replace the first one, even if the Intent is launching the same Activity? Dec 15 01:12:53 leeds thank you mate Dec 15 01:14:36 I have a problem already **** ENDING LOGGING AT Tue Jan 05 05:57:21 2010