**** BEGIN LOGGING AT Tue Apr 10 03:00:00 2012 Apr 10 03:03:25 why are the v7 support lib sources not in frameworks/support.git Apr 10 03:05:09 whoops Apr 10 03:05:19 stupid Colloqueueueueuey Apr 10 03:09:12 so I am not supposed to set something like "settings" as an action item, and supposed to put it in the collapsable part of the actionbar. Apr 10 03:09:27 how do I specify that in XML? Apr 10 03:09:33 it is currently eluding me Apr 10 03:10:33 jakewharton: so that it could be a completely fubar'd library release? :-) Apr 10 03:10:57 killring: works just fine here Apr 10 03:11:07 though I liked my own back port better Apr 10 03:11:10 [22:52:16] <@ctate> mantas322: also, *Hashtable*? for srsly? Apr 10 03:11:11 +1 Apr 10 03:11:17 it's actually not that bad, but it is slightly broken as shipped and could use a little more in the way of docs Apr 10 03:11:27 how is it broken? Apr 10 03:11:36 the attr file Apr 10 03:11:54 attrs, that is Apr 10 03:12:20 what is broken about it? Apr 10 03:12:21 layout_marginStart and layout_marginEnd specifically Apr 10 03:13:08 try using it with a sdk pre-14... it doesn't work because the attrs are undefined Apr 10 03:13:35 (at least it didn't for me and someone else noted the issue) Apr 10 03:14:04 well that's an incentive to use an SDK that was created in this decard Apr 10 03:14:07 decade Apr 10 03:14:10 stupid Coloqueueyeyeye Apr 10 03:14:37 I don't need to be targeting a user base any smaller than I already am :-) Apr 10 03:14:41 All I see is "always" and "ifRoom"... what can I give android:showAsAction in order to put an item in the overflow always? Apr 10 03:14:48 compile SDK != min SDK != target SDK Apr 10 03:14:55 readme: never Apr 10 03:15:08 phew, thanks Apr 10 03:15:18 that's not in the action bar doc. :| Apr 10 03:15:23 killring: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Apr 10 03:15:27 readme: it is Apr 10 03:16:00 It's not in the Guide, though Apr 10 03:16:14 where in the guide it says "You should not make settings an action item" Apr 10 03:16:18 then doesn't tell me how Apr 10 03:16:25 that's what the docs are for Apr 10 03:16:30 guide is high-level Apr 10 03:17:16 I respectfully disagree and think that if they are going to mention always, and ifRoom in the same paragraph that they tell me not to make "Settings" an action item, that they shouldn't omit this information. Apr 10 03:17:30 there are other values that they don't mention too Apr 10 03:18:05 they also don't explain how it's an enum value that you can OR Apr 10 03:18:13 I was seriously scanning the guide over and over wondering wtf where is it, for almost an hour. Apr 10 03:18:44 http://developer.android.com/reference/android/view/MenuItem.html#setShowAsAction(int) Apr 10 03:18:47 JakeWharton: fair enough... given the recent adt changes, I probably could safely bump up most of my SDK versions without too many problems Apr 10 03:19:04 using the newer SDKs affords you all kinds of advantages Apr 10 03:19:15 "Never show this item as a button in the action bar" Apr 10 03:19:20 is the doc for SHOW_AS_ACTION_NEVER Apr 10 03:19:23 there's nothing wrong with using older SDKs, but you gain nothing Apr 10 03:19:32 am I supposed to assume that it means "put this in the overflow"? Apr 10 03:19:42 thankfully you were here to help Apr 10 03:19:48 I don't think I would have gotten it so easily Apr 10 03:20:02 in what way? (beyond the obvious conditional feature additions) Apr 10 03:20:47 well, none if you take out conditional additions! Apr 10 03:21:03 lol... just wanted to make sure :-) Apr 10 03:21:38 " SHOW_AS_ACTION_NEVER is the default." Apr 10 03:21:47 correct Apr 10 03:21:52 When I do this, no overflow shows up. Apr 10 03:21:58 press the menu key Apr 10 03:22:06 is that the "overflow"? Apr 10 03:22:10 yes Apr 10 03:22:12 I was doing it more out of habit to ensure that I was safe to run on not accidentally using unsupported features w/o adding the conditional logic Apr 10 03:22:16 I thought the overflow was represented by the three vertical dots/ Apr 10 03:22:21 on devices without a menu key it is Apr 10 03:22:23 what happened to those Apr 10 03:22:32 ok, so that *only* happens if my device has no menu key Apr 10 03:22:34 at the same time, I didn't see a lot of benefit from actually using a sdk more recent than what I was actually using Apr 10 03:22:38 readme: correct Apr 10 03:22:42 ah, thank you Apr 10 03:22:53 killring: there is zero benefits beyond enabling the use of new features Apr 10 03:23:07 is/are Apr 10 03:23:25 what's that called when there's a disagreement between quantity Apr 10 03:24:32 that's my thinking. and since I already have access to ~95% of it already... the last 5% (beyond the compat lib) doesn't help me right now Apr 10 03:25:12 it helps me :) Apr 10 03:25:16 I want my Holo-based theme! Apr 10 03:25:23 * killring already has that :-) Apr 10 03:25:54 the stuff I'm working on is 3.x and higher only (hence the not needing to target a smaller user base :-) Apr 10 03:26:06 pfsh Apr 10 03:26:08 go 3.2+ Apr 10 03:26:23 then you get all the awesomeness of -w and -sw resource filters and ViewPropertyAnimator! Apr 10 03:26:33 3.2+ is where I want to end up for that exact reason Apr 10 03:27:09 I'll probably drop 3.0 with my current app and 3.1 in a few months Apr 10 03:27:32 does anything still use 3.0/3.1? Apr 10 03:27:36 yep Apr 10 03:27:56 a very small # of 3.0 but for some reason 3.1 keeps hanging on in my stats Apr 10 03:28:26 which seems strange since I think all the major tablets have had 3.2 avail for several months at least Apr 10 03:29:00 yeah Apr 10 03:29:02 but users are idiots Apr 10 03:29:14 I have have to downgrade to ADT r16 :( Apr 10 03:29:25 r17/18 breaks Robolectric hardcore Apr 10 03:29:27 true... if they forget to check or opt out of the update Apr 10 03:29:50 I've had pretty good luck with 17 & 18 (so far) not breaking things Apr 10 03:30:02 our build is massively complex Apr 10 03:30:06 we had hoped it would go smoother Apr 10 03:30:13 can't say the same about the 3-4 releases before that (something broke after every update) Apr 10 03:31:04 happily, now that I've got gridlayout, I can get to fixing some horrendous layouts Apr 10 03:31:49 (I stopped counting levels after 15) Apr 10 03:32:03 :O Apr 10 03:32:11 I would have written my own ViewGroup at that point Apr 10 03:33:24 I was on my way to doing so when I stumbled across a combination of nested table and linear layouts that took care of it for a while... but now I need to go back and mop that mess up after seeing how it was performing on my nexus s Apr 10 03:36:45 morning all Apr 10 03:38:20 JakeWharton, is ABS in maven central now? Apr 10 03:38:27 yes Apr 10 03:38:31 as of about two weeks ago Apr 10 03:38:35 wahey Apr 10 03:39:16 Just got the r7 support lib to build in the android4maven project so I'm waiting on the privileged contributor to GPG sign and deploy to central Apr 10 03:39:23 then we can start using that instead of r6 Apr 10 03:39:54 how much work is it getting into central? Apr 10 03:40:15 almost none Apr 10 03:40:24 the work is ensuring what you're deploying is what you want Apr 10 03:40:35 because once it's there you can't touch it Apr 10 03:40:45 i assume there's some criteria? Apr 10 03:42:19 https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide?__utma=246996102.1135081335.1334029302.1334029302.1334029302.1&__utmb=246996102.8.10.1334029302&__utmc=246996102&__utmx=-&__utmz=246996102.1334029302.1.1.utmcsr=maven.apache.org|utmccn=(referral)|utmcmd=referral|utmcct=/guides/mini/guide-central-repository-upload.html&__utmv=-&__utmk=45711783#SonatypeOSSMavenRepositoryUsageGuide-6.Central Apr 10 03:42:20 cRequirement Apr 10 03:42:27 friendly URL Apr 10 03:43:56 easy peasy Apr 10 03:44:22 it would seem that way Apr 10 03:44:38 the hard part when doing it for Android is ensuring your dependencies are also in central Apr 10 03:44:49 so we have to work to get new versions of the OS and support lib into central before we can update our libs Apr 10 03:46:12 heading hom Apr 10 03:46:14 e Apr 10 03:48:04 What is the best IDE (feature rich, more powerfull) out there for Android development? Apr 10 03:48:18 is sdk 18 & art 18 behaving for everyone ? Apr 10 03:48:19 vi! Apr 10 03:48:27 damn coloqueueueeeyye Apr 10 03:48:31 vi is not IDE Apr 10 03:48:38 g00s: working for me Apr 10 03:48:42 sdk 18 & adt 18 Apr 10 03:48:46 killring: :) Apr 10 03:48:57 Eclipse and IntelliJ are two good contenders Apr 10 03:49:01 Eclipse is supported by Google Apr 10 03:49:32 From those two Ecplipse and IntelliJ which would you preffer? Apr 10 03:50:08 ok, well I can actually only comment on the adt 18 bit :-) Apr 10 03:50:10 I haven't tried IntelliJ. Eclipse has layout building though (IntelliJ only viewing), so I prefer Eclipse. Apr 10 03:50:44 layout builder.. good point Apr 10 03:51:25 g00s: are you having problems or just looking for canaries? Apr 10 03:51:33 killring: canaries ! Apr 10 03:52:01 lol... we'll I'm still alive after moving both linux and mac to 18 Apr 10 03:52:11 :) Apr 10 03:52:55 mac performance greatly improved, linux seems somewhat better (but obviously missing the best bits) Apr 10 03:53:22 missing in adt? Apr 10 03:53:36 gpu emulation on linux Apr 10 03:53:41 oh Apr 10 03:55:53 Does anyone know how to remove a repository from eclipse? I've got one that is an invalid link so I can't check for an updated adt because the broken repo comes before it and eclipse aborts the update when it errors Apr 10 03:58:59 This is more abstract Java than Android but does anyone know of a blocking EventBus/Queue mashup that will hold events until there is a subscriber to consume them? Apr 10 03:59:22 hmm... I just realized that I hadn't actually tested for gpu emulation on linux in 18... Apr 10 04:00:02 well look at that... it seems to be there Apr 10 04:02:26 oh? Apr 10 04:02:48 the opengl demos are running which I don't ever recall them doing before Apr 10 04:03:20 and my app is actually getting a pretty decent framerate in the emulator for the first time since... well, ever Apr 10 04:03:41 damn, I might have to stop ragging on the emu soon :-) Apr 10 04:03:44 That looks good Apr 10 04:12:50 heh... even the renderscript demos are running pretty well Apr 10 04:13:18 Does anyone know of any libraries to read an ogg/icecast stream's embedded metadata right off hand? Apr 10 04:15:19 I wish Guava would implement a WeakReference EventBus already Apr 10 04:16:57 I guess I could probably write a proxy that managed the references internally and only subscribed once for events to the actual bus Apr 10 04:17:01 but I shouldn't *have* to Apr 10 04:58:53 Does anyone know how it's possible to use the AndroidManifest.xml verison number in a jar build? Apr 10 05:07:17 JakeWharton: what would a WeakReference eventBus look like ? Apr 10 05:07:26 Hm. I'm not exactly clear on how to pass data from an activity to a fragment that the activity spawns Apr 10 05:07:44 g00s: same API as a normal event bus but without holding the subscribers as hard references Apr 10 05:08:00 ah, ok Apr 10 05:08:19 i didn't worry about that since i'm careful to unregister ;) Apr 10 05:08:35 hmm, maybe i did do that Apr 10 05:08:50 quick question: Is the ASUS Transformer Prime currently a good tablet to get for development, or is there something better (in some way) being released "any week now" ? Apr 10 05:09:10 we just bought a bunch of WiFi XOOMs at work Apr 10 05:09:19 they were like $300 and run ICS Apr 10 05:09:34 i was hoping the asus nexus tablet was going to be available in may Apr 10 05:09:42 but it doesn't look so Apr 10 05:10:28 JakeWharton: you mean the "Motorola XOOM with Wi-Fi - tablet - Android 3.0 (Honeycomb) - 32 Gt - 10.1"" ? Apr 10 05:10:36 yes Apr 10 05:10:41 it runs 4.0.4 now Apr 10 05:11:30 ok. so basically half the number of cores, and some 10-20% cheaper than the prime? Apr 10 05:11:55 love my transformer Apr 10 05:11:59 tml_: I have an Archos g9 myself (and it's firmware has an update for ICS) Apr 10 05:12:10 "for development" means you don't care about cores Apr 10 05:12:15 at least to me it does Apr 10 05:12:53 well, having suffered with the emulator until now, I want it to be as fast as possible (when iterating install app-debug-install...) Apr 10 05:13:45 tml_: anytablet will be 10x faster than a phone Apr 10 05:13:59 uhh not entirely true Apr 10 05:14:02 um... Apr 10 05:14:05 my ass running ICS is 4.8x faster than the emulator Apr 10 05:14:12 lol Apr 10 05:14:16 ok? =) Apr 10 05:14:19 My S2 isn't that much quicker than the dualcore tablet Apr 10 05:14:19 any reputable tablet maker Apr 10 05:15:11 Coby Apr 10 05:15:20 my transformer is plenty fast Apr 10 05:15:25 otoh, the Prime keyboard thing is kinda a good thing to be able to have especially for the kind of apps I am working on... Apr 10 05:15:35 then get it Apr 10 05:15:51 ship it! Apr 10 05:15:52 anyone use aide here ? or hmmm Apr 10 05:16:16 or aNJEDI ? Apr 10 05:16:57 can compile and sign on the device it is so nice Apr 10 05:17:47 JakeWharton: doing it now;) Apr 10 05:18:51 tml_: what one ? Apr 10 05:18:55 (as I won't be paying for it myself anyway, it doesn't really matter if something with better price/performance and as good build etc quality comes out next week or month...) Apr 10 05:19:05 I particularly like the galaxy tab 2 10.1 Apr 10 05:19:08 my mom got one Apr 10 05:19:11 fast as shit, and good price Apr 10 05:19:14 and its been awhile since i seen u in php tml Apr 10 05:19:23 php? Apr 10 05:19:37 ya? Apr 10 05:19:46 dominicdinada: the Prime Apr 10 05:19:48 diff tml ? Apr 10 05:19:53 nice..... Apr 10 05:19:57 * tml_ wonders what he has to do with php Apr 10 05:20:05 and how anybody can be seen in php Apr 10 05:20:25 hello I have two actionbar tabs with listfragments, i add items from one listfragment it should end up in the other. i am wondering how I can call notifyDataSetChanged? Apr 10 05:20:50 well i stayed away got as far as php can go and plus java apps for devices such as the droid offer fast turn around Apr 10 05:21:56 dominicdinada: if you mean a php channel, you must be confusing me with somebody else; I have never used php... Apr 10 05:22:13 yes diff tml then Apr 10 05:24:11 anyhow any sus tablet or htc rocks Apr 10 05:24:41 asus* Apr 10 05:33:41 Is there software along the same kind of lines as Jing that lets you create videos of the Android display? Apr 10 05:36:36 HDMI capture is usually a good solution Apr 10 05:36:41 you can get a dongle for $15 on amazon Apr 10 05:37:06 hi all Apr 10 05:37:10 mini-usb -> HDMI dongle, that is Apr 10 05:37:18 capture dongles will be a bit more expensive Apr 10 05:37:33 $50-100 probably Apr 10 05:37:40 Knossos: and if you have to use a separate camera, *please* use a tripod and manual focus;) Apr 10 05:38:17 JakeWharton: Thanks, I'll have a look around Apr 10 05:38:23 btw, I've tried pluggin the mhl cable into a hdmi->dvi adaptor, but I don't get a picture Apr 10 05:38:32 someone trying to recording video on their phone for app demo ? Apr 10 05:38:35 the phone is trying to output Apr 10 05:38:46 does that make sense? Apr 10 05:38:57 Yeah, that is what I want to do. So I can make a video of basic features. Apr 10 05:39:05 Hey Jake, thanks for ABS ;P Apr 10 05:39:14 you are welcome Apr 10 05:39:23 released any apps that use it? Apr 10 05:40:20 not yet, may take a while, just tried ABS yesterday for the first time and want to adapt my in-dev app Apr 10 05:40:40 i was a little confused tbh that i need to build my app against 13+ Apr 10 05:41:00 I've made 4 Apps using ABS so far. Wonderful project. Apr 10 05:41:26 Hm... can I use getFragmentManager with my ABS fragment, or is there a support method? Apr 10 05:41:37 Having to make equivalent Apps in all versions of Android is enough to drive you bananas ;p Apr 10 05:42:52 Ah yeah, getSupportFragmentManager was it Apr 10 05:44:13 tobib: make sure you're using version 4.0+ Apr 10 05:44:17 which requires API 14+ Apr 10 05:44:23 ABS 3.x is horrid :) Apr 10 05:45:21 does ABS use native AB on 3.0? Apr 10 05:46:04 ABS 4.0 uses native on Android 4.0+ Apr 10 05:46:33 ah ic Apr 10 05:49:26 my LocationListener isn't called on location change in the emulator and I'm unable to find the problem. I've pasted my code to pastebin perhaps one of you could find the problem? Link: http://pastebin.com/SwnWRP3L Apr 10 05:51:05 ron_frown, hello Apr 10 05:51:25 howdy Apr 10 06:05:18 Will a PriorityQueue return elements of equal priority in the order they were added? Apr 10 06:05:53 I guess that would defeat the purpose of its name if it didn't Apr 10 06:06:00 hah Apr 10 06:07:00 may Apr 10 06:07:02 man Apr 10 06:07:05 i think the order of equal elements is undefined Apr 10 06:07:05 I must be out of it Apr 10 06:07:19 I just hit build on an xcode build for ios devic Apr 10 06:07:30 g00s: but then i'd just be a heap Apr 10 06:07:31 not a queue Apr 10 06:07:34 *it'd Apr 10 06:07:36 picked up my android phone that wasnt in any way shape or form connected to my lappy Apr 10 06:07:42 and expected the app to pop up Apr 10 06:07:53 JakeWharton: bingo, for equal priority elements ;) Apr 10 06:08:08 I gotta say Apr 10 06:08:12 c++ is my new bitch Apr 10 06:10:17 Maybe I'm better off using two queues rather than a priority queue Apr 10 06:10:22 I only have two priorities Apr 10 06:11:45 Hi all. Noob here. Do u guys know how does Google Market filter the apps? Any source to explain how it works? Apr 10 06:18:05 I dual boot osx and ubuntu on a macbook, anyone care to give an argument for one or the other for android dev? Apr 10 06:19:49 emulators seem faster on linux Apr 10 06:19:59 than macbook? Apr 10 06:20:05 er osx Apr 10 06:20:08 I beg to differ =) Apr 10 06:20:09 yeah Apr 10 06:20:14 I have a MONSTER ubuntu box Apr 10 06:20:20 and a regular 2012 macbook Apr 10 06:20:30 I dont notice any real diff in perfomance Apr 10 06:20:40 my macbook seems slower Apr 10 06:20:41 that being said, if you are going to do any ndk or platform stuff Apr 10 06:20:43 haven't tried the new stuff yet Apr 10 06:20:45 use linux Apr 10 06:20:46 period. Apr 10 06:27:14 Just started Maven-izing modules at work today for a more componentized and reusable set of projects and had fun interacting with JNI stuff for the first time Apr 10 06:27:43 cheers JakeWharton / ron_frown.. Apr 10 06:28:10 i think uni was going to be modernized in java 9 / 10 … quite a ways from now :) Apr 10 06:28:13 the only reason I even run osx is for ios dev but I haven't touched that in 6 months :P Apr 10 06:28:19 *jni damn colloquuuuueye Apr 10 06:28:29 way prefer to be running something with apt Apr 10 06:28:36 Hi, I'm running my app in debug mode and it's stuck at "Waiting for HOME 'android.process.acore' to be launched." The emulator shows the 3G/bars/battery/time bar at the top and all black below that. Nothing in the error log, nothing in logcat. When I install it on my phone, it says it has stopped unexpectedly. Ideas? Apr 10 06:29:37 I, too, prefer apt Apr 10 06:29:39 how I miss it Apr 10 06:29:48 preds: apt doesn't make up for having to deal with X XD Apr 10 06:30:06 what's to deal with? Apr 10 06:30:14 when it doesn't work ! Apr 10 06:30:28 * g00s remembers the days of writing his own X config files Apr 10 06:30:30 I've never had it fail to auto detect everything for the last 3 years Apr 10 06:30:38 thankfully that isn't needed any more Apr 10 06:31:31 ron_frown left already, but I wonder if he meant "don't use Windows" and not "use Linux" Apr 10 06:31:44 i.e., Mac OS X seemed to work fine for NDK stuff when I tried? Apr 10 06:31:55 seems to work for me too Apr 10 06:32:41 (I just switched to using Linux for my NDK work for "political" reasons: I didn't want to use my personal beloved MacBookPro on work stuff that I don't even enjoyo that much;) Apr 10 06:39:01 JakeWharton: how do you organize your project and corresponding test project within the same git repo ? Apr 10 06:39:10 src/main/java Apr 10 06:39:12 src/test/java Apr 10 06:39:21 i think doh, the maven way Apr 10 06:39:27 yeah Apr 10 06:39:36 I use maven for everything Apr 10 06:39:54 I think the ADT recommends a test/ folder on the same level as src/ ? Apr 10 06:40:11 it actually creates a separate project in the eclipse workspace Apr 10 06:40:24 you you would have workspace/foo and workspace/foo-test Apr 10 06:40:38 I never stored my projects in the workspace when I used Eclipse Apr 10 06:41:07 so yeah, i am experimenting with that … have project/main and project/test Apr 10 06:41:23 the maven layout allows for much more than just java which is nice Apr 10 06:41:23 and import these into eclipse, but outside the workspace Apr 10 06:41:52 for my maven-ized but non-maven-like projects I usually did library/, test/, sample/, etc. Apr 10 06:41:55 all top level folders Apr 10 06:42:27 i guess the adt wants a specific organization. Apr 10 06:42:40 * g00s wonders if the intellij android stuff is more flexible Apr 10 06:43:37 yeah I still use that organization Apr 10 06:43:39 see ABS Apr 10 06:43:47 :) Apr 10 06:44:00 I hate food. Apr 10 06:44:02 er. Apr 10 06:44:04 I ate foot. Apr 10 06:44:07 wtf Apr 10 06:44:12 it's a maven projects with submodules that still allows for using standard ADT in Eclipse Apr 10 06:44:13 are you ok? Apr 10 06:44:20 My typing. Apr 10 06:44:23 coloqueueue? Apr 10 06:44:36 I ate food. Apr 10 06:44:42 pragma-: we all did Apr 10 06:44:44 * JakeWharton slow claps Apr 10 06:44:50 thats better than the food eating pragma- Apr 10 06:45:29 But my stomach... so full Apr 10 06:45:42 Feels like vinegar and baking soda Apr 10 06:46:49 pragma-: try some alks-selzter Apr 10 06:46:57 *alka-seltzer Apr 10 06:47:12 I wish I could puncture myself and install a valve so I could release gas directly from my stomach Apr 10 06:47:28 * pragma- tempted. Apr 10 06:47:37 seems like you are releasing gas just fine ! Apr 10 06:56:45 Collections.synchronizedMap(new WeakHashMap()) Apr 10 06:56:52 beautiful thing right there Apr 10 07:02:13 What's so beautiful about that? Apr 10 07:05:13 hi Apr 10 07:05:36 because for my use case I no longer have to worry about hard references nor concurrency Apr 10 07:05:37 can one connect/run eclipse project on a phone without the usb cable? Apr 10 07:05:51 since i forgott my cable .. :-/ Apr 10 07:08:14 any haxx around it? Apr 10 07:09:04 beStKodeReveR: adbWireless Apr 10 07:10:23 Ge0rG thankZ man! Apr 10 07:10:48 I need a WeakList though Apr 10 07:13:03 Ge0rG da.. im not root... Apr 10 07:13:37 readme: http://www.gizmag.com/red-wine-compound-fight-obesity/22081/ Apr 10 07:17:22 beStKodeReveR: you better become root then ;) Apr 10 07:17:39 hi, would be great if someone could look over this: http://stackoverflow.com/questions/10080731/populate-expandablelistview-from-database-query-with-cursor Apr 10 07:18:57 List of a List of a HashMap?!?!?!? Apr 10 07:20:23 DarsVaeda: it would be in an order of magnitude easier to just write your own adapter rather than trying to squeeze yourself into a SimpleExpandableListAdapter Apr 10 07:20:29 *of an Apr 10 07:20:49 really? hmm Apr 10 07:21:05 I actually found the SimpleExpandableListAdapter not too simple Apr 10 07:21:23 I believe that's because your use-case is not all that simple Apr 10 07:21:35 Pragma: I was here first Apr 10 07:21:36 I thought so :/ Apr 10 07:21:37 so before i go to the drastic measures I'm thinking I have to go, is there a better way to keep accurate metadata from an OGG icecast stream aside from subclassing MediaPlayer and scanning blocks of data for vorbiscomment blocks before feeding the blocks on to the MediaPlayer as per normal? Apr 10 07:22:06 JakeWharton: but with that own adapter I still populate the expandablelist? Apr 10 07:22:15 Yes Apr 10 07:22:20 just extend ExpandableListAdapter Apr 10 07:22:27 and by accurate i mean in sync with the playing audio, since grabbing the data externally will give metadata for a new song before the current song's buffered audio is played out Apr 10 07:22:40 okay I guess there are tutorials or such online for doing this task? Apr 10 07:23:56 probably Apr 10 07:24:01 okay thanks! Apr 10 07:24:02 it may not be too difficult to just figure out Apr 10 07:27:13 JakeWharton: with your "keywords" I just found this, which looks exactly like what I was trying: http://roningamer.blogspot.de/2010/07/android-custom-expandable-list-adapter.html Apr 10 07:27:41 excellent! Apr 10 07:29:16 hello, i am trying to include osmdroid in my project.. however, I get the following error: Conversion to Dalvik format failed with error 1 Apr 10 07:31:00 is this fixable ? Apr 10 07:32:54 Insayne: have you googled it? because i'm seeing tons of hit when I do. Apr 10 07:33:46 yes, I have - problem with the suggestions are to remove the added library Apr 10 07:33:57 which isn't really a solution, as I am trying to use the .jar Apr 10 07:34:51 and I don't seem to be affected by proguard here... Apr 10 07:42:23 hello Apr 10 07:48:16 hi Apr 10 07:55:35 well, let me ask the question in another way, How am I supposed to include a .jar i downloaded (osmdroid in this case) for it to work? Apr 10 07:55:49 using eclipse Apr 10 08:00:09 put it in the libs/ folder Apr 10 08:00:16 right click in Eclipse > build path > add to build path Apr 10 08:00:35 yeah, thats when I get this awesome error... Apr 10 08:00:52 are you sure it's compatible with Android? Apr 10 08:01:00 yeah, its osmdroid Apr 10 08:01:14 http://code.google.com/p/osmdroid/downloads/list Apr 10 08:01:18 can you see if it works for you ? Apr 10 08:01:59 what I do is, create folder libs in my project - right click it, import / general / filesystem, browse to the folder, select the .jar, clock ok Apr 10 08:02:16 then i right click project, choose build path, configure, libraries, add the jar Apr 10 08:02:21 thats correct? Apr 10 08:04:26 just running an empty project at this stage gives me a top level exception: java.lang.IllegalArgumentException: already added: Lmicrosoft/mappoint/TileSystem; Apr 10 08:07:22 any idea? Apr 10 08:08:29 you have the .jar twice in your classpath Apr 10 08:08:39 how so ? Apr 10 08:08:43 check your project properties Apr 10 08:09:06 I don't see it twice ? Apr 10 08:09:25 good morning Apr 10 08:09:40 good extremely late at night Apr 10 08:09:44 haha Apr 10 08:09:56 JakeWharton, i am supposed to see it twice in build path / osmdroid ? Apr 10 08:10:05 no Apr 10 08:10:21 you should only see it once Apr 10 08:10:25 yes, I do Apr 10 08:10:39 but since you said I have it twice... I am wondering, where it would show up a 2nd time ? Apr 10 08:10:54 in the project properties Apr 10 08:10:58 java something Apr 10 08:11:14 I can't remember what it's called in Eclipse Apr 10 08:11:46 Who cares what it's called in Eclipse? Only morons use that. Apr 10 08:11:56 hrm, well I don't see it there twice :( Apr 10 08:12:10 I was told to use eclipse... by people inhere! Apr 10 08:12:29 Pro-tip: If you see Eclipse installed on your co-workers computer, report him to your boss so he can be replaced by someone smarter. Apr 10 08:13:20 well, I wonder now why I don't see it a second time Apr 10 08:14:47 so I can't be helped? :( Apr 10 08:17:06 JakeWharton, is it possible its something else? Apr 10 08:17:23 I have no idea Apr 10 08:17:48 hey Mr Jake since you're here is there anything special I need to do to get ABS working on a MapActivity? Apr 10 08:18:23 use SherlockMapActivity Apr 10 08:18:28 and the maps plugin Apr 10 08:18:38 DL @ http://abs.io/download Apr 10 08:18:45 i wonder how well osm works on android Apr 10 08:18:55 g00s: it sucks Apr 10 08:18:57 g00s, so far, not at all Apr 10 08:19:06 I ported it to fragments about a year ago Apr 10 08:19:07 Didn't the wikipedia app switch to osm? Apr 10 08:19:07 Hi is is the right place to ask about publishing the app in the android maerket(google play) Apr 10 08:19:09 I wanted to use the google maps API like on PC, and make my custom map... Apr 10 08:19:15 but supposedly thats not possible ? Apr 10 08:19:39 The only thing nice about it is that it's a true Java API rather than some WebView wrapper Apr 10 08:19:44 but the tiles are ugly as hell Apr 10 08:19:49 and the interactivity was shit Apr 10 08:19:54 but hey, fragments and maps! Apr 10 08:20:01 Apr 10 08:20:06 oh I want to make my own tiles, just get google maps controls really Apr 10 08:20:33 http://blog.wikimedia.org/2012/04/05/new-wikipedia-app-for-ios-and-an-update-for-our-android-app/ and they are using mapquest tiles, they said Apr 10 08:24:42 where can I get a list a images Apr 10 08:24:48 like 50-100 items long Apr 10 08:25:04 ones I can fetch over HTTP Apr 10 08:25:15 google image search for blue waffles? Apr 10 08:26:52 My country name is not listed in the terms and agreement list while publishing my application on google play. any suggetions on wat can be done for this Apr 10 08:27:13 if i instantiate a fragment with arguments, when the fragment is killed/recreated the arguments bundle should still be populated right? Apr 10 08:29:48 well, if I get an API key for google maps, i still cant replace the tiles? Apr 10 08:36:20 dumb question: you can replace resources.arsc and XMLs in an apk without having to de/recompile it and resigning it for it to work correctly? Apr 10 08:36:34 if i wanted to preserve the original signature Apr 10 08:37:01 hairlessmangina: you can not replace anything in an apk without having to re-sign Apr 10 08:37:24 hm Apr 10 08:37:39 then how are there kits that auto modify your systemui.apk Apr 10 08:37:52 doesn't systemui.apk need platform signature? Apr 10 08:38:36 maybe they only work on custom roms? dunno Apr 10 08:39:50 what they seem to be doing is decompiling the apk, make changes, recompile it, take the modified resources.arsc and XML and replace them in the original systemui.apk Apr 10 08:40:26 resign it! Apr 10 08:40:38 but i dont understand how it's doing that without resigning with the correct platform key Apr 10 08:40:44 systemui.apk needs platform key Apr 10 08:40:46 ,oO( android is full of resignation ) Apr 10 08:42:04 I DONT GET IT Apr 10 08:42:12 surely someone knows the answer to this Apr 10 08:43:24 hairlessmangina, maybe they do resign it ? Apr 10 08:43:54 anyhow, is someone inhere capable of getting the latest osmdroid into their project? Apr 10 08:44:12 no Apr 10 08:44:16 i am looking at the .bat Apr 10 08:44:25 there is no signing at all Apr 10 08:47:12 can anyone of you manage to get osmdroid running? Apr 10 09:13:58 Hi all...could any one throw somelight on how to query using cursorloader? thanks Apr 10 09:29:54 hi all Apr 10 09:37:22 how do I convert an existing xml file layout into a view object? I need to return it in a function Apr 10 09:39:28 trying to load an html page into a webview Apr 10 09:39:29 .loadUrl("file:///android_asset/assets/day1_description.html"); Apr 10 09:39:55 ls assets/day1_description.html Apr 10 09:40:20 ok, it didn't load without the assets/ part in the URL and also not with it.. Apr 10 09:40:24 removing it again.. Apr 10 09:41:45 i think i know what might be the reason.. the asset is not in the main project but rater in a lib that is used by the main app Apr 10 09:42:10 i wonder how android/eclipse handles packaging of assets, if there's assets in a referenced project/library Apr 10 09:45:35 hey folks, is there somebody who tried to run the android ICS emulator image with intels x86 kernel (recompiled the whole thing)? Apr 10 09:45:59 hi Apr 10 10:00:19 Does an android that support OpenGL ES2 support ES1 too? Apr 10 10:02:05 is it possible to have the background of a dialog dimmed, but don't fade in the background, if the dialog was closed? Apr 10 10:02:05 I have a dialog, which starts another dialog. When I dismiss the second dialog, the background of dialog 1 will get bright for a short time and goes back to dimmed afterwards.. is there a way to disable this? Apr 10 10:02:20 yes luc^_^ Apr 10 10:02:37 Ravenheart: Thank you :] Apr 10 10:03:01 hi Apr 10 10:07:49 hi! Apr 10 10:08:42 for my developing i would use NumberPicker but i can't declare them in my code … looks like there is no library … does anybody know how can i use them? Apr 10 10:11:43 was introduced in api level 11 Apr 10 10:12:07 ok and how can i know which is my API level? Apr 10 10:12:27 oh i found it Apr 10 10:14:18 and is it possible to have an android 2.3.3 with an API level 11? Apr 10 10:14:33 nope Apr 10 10:14:47 http://developer.android.com/guide/appendix/api-levels.html Apr 10 10:15:50 thnks Apr 10 10:16:43 essentially, this means if you want to use number pickers on a phone you'll need to target ICS Apr 10 10:16:53 or provide an alternative on older devices Apr 10 10:18:00 ok Apr 10 10:18:07 i'll pu an ICS target Apr 10 10:18:36 that'll mean your app will only run on about 2% of devices (at the moment) Apr 10 10:19:33 lol i know but it's for a university project so i won't put it on the market Apr 10 10:19:43 ah, sure, np then Apr 10 10:30:14 is it possible to change the step of a number picker? Apr 10 10:32:18 hi, how to cancel a repo sync in progress, ctrl+c doesnt work .. Apr 10 10:32:35 guigui22: I've done sth. quite similar and just created a new subclass from the TimePickerDialog and overwrote the needed methodes Apr 10 10:32:52 ok Apr 10 10:33:03 thanks i'm gonna try that Apr 10 11:01:34 i have a broadcast receiver for CONNECTIVITY_CHANGE. when i enable wifi the receiver is called three times, everytime i get OBTAINING_IPADDR from WifiInfo.getDetailedStateOf(wifiInfo.getSupplicantState()) but never CONNECTED state. i want to start a serviceintent if wifi connection is completly established.any thoughts on that? i can post source code if you need :) Apr 10 11:02:37 wreiner: endless loop with a timeout you set? Apr 10 11:03:05 nope i thought i'll get a broadcast for every change Apr 10 11:03:21 Hi, where can i find the radio roms for my GTI9250T nexus? should it be in the source tree of 4.0.4? Apr 10 11:03:43 just loop until you have the desired condition... Apr 10 11:04:59 ok thanks i try that Apr 10 11:05:02 nachos: this is a dev channel for discussing programming Apr 10 11:05:29 Mikellip: as if #android would know. Apr 10 11:05:43 nachos sound good right about now seeing as its lunch time Apr 10 11:05:53 lunch eng_full Apr 10 11:05:58 ? Apr 10 11:06:19 your not a developer Apr 10 11:06:22 oops Apr 10 11:06:25 yeah, seeya Apr 10 11:07:07 i am a dev a novice dev Apr 10 11:07:07 detecting horizontal swipes on a listview. is this a good approach? http://pastesite.com/34153 Apr 10 11:07:37 checks a] if total velocity is greater then 200 and secondly if velocity in X direction is greater than in y direction Apr 10 11:07:48 are those velocities in some sort of unit? Apr 10 11:07:49 i think there ar standards for that Apr 10 11:08:20 ay captain Apr 10 11:08:32 Snuffel: where would i find this treasure? Apr 10 11:08:42 hi Snuffel o/ Apr 10 11:09:11 tapas: google Apr 10 11:09:13 hi hackkitten Apr 10 11:09:14 how's life Apr 10 11:09:21 I'm famous :D Apr 10 11:09:23 ^-^ Apr 10 11:09:30 omg. the unit is pixels per second Apr 10 11:09:45 i wonder if it's at least density pixels Apr 10 11:09:46 mmm Apr 10 11:09:56 i'm famous, too :D Apr 10 11:10:11 * hackkitten is on TV and stuff in the Netherlands a lot now :o Apr 10 11:10:16 * tapas plays quakelive and gets totally awesomely fragged in a fragmovie by some clan mates of strenx :D Apr 10 11:10:22 :) Apr 10 11:10:23 yay~ Apr 10 11:10:33 heh Apr 10 11:10:35 cool Apr 10 11:10:38 * hackkitten is merely suing the major Dutch hospitals Apr 10 11:10:39 :3 Apr 10 11:10:41 i hope you enjoy it Apr 10 11:10:46 you're doing important work Apr 10 11:10:57 suing for what? Apr 10 11:11:00 I agree, tapas is doing something important :) Apr 10 11:11:41 Mikellip > handling my case totally wrong for seven years, forcing me towards unneeded surgery and causing psychological trauma Apr 10 11:11:49 http://www.youtube.com/watch?v=1YLvDTxxbJQ Apr 10 11:11:56 0:44 Apr 10 11:11:58 :D Apr 10 11:12:01 :D Apr 10 11:12:19 who is strenx, BTW? :o Apr 10 11:12:24 my nick in QL is nipple Apr 10 11:12:29 heh Apr 10 11:12:33 oh strenx is just one of the best pro quakelive players Apr 10 11:12:39 ah :) Apr 10 11:13:02 i actually get asked sometimes "are you nipple from that frag movie?" :D Apr 10 11:13:17 famous for getting my ass kicked in an almost poetic way Apr 10 11:13:57 anyways.. i'll google now for the damn swipe detection Apr 10 11:14:02 hackkitten: ouch :< that sucks Apr 10 11:15:51 Mikellip > this is the press release my lawyer wrote over a week ago, translated into English: http://mayaposch.blogspot.com/2012/03/press-release-on-official-gender-change.html Apr 10 11:16:05 gives some indication ^-^ Apr 10 11:19:26 hackkitten: were you ever involved with the open source shooter project nexuiz/xonotic? Apr 10 11:19:42 i faintly remember having a transgendered person there.. Apr 10 11:21:19 tapas > nope, and I'm not transgender :P Apr 10 11:22:08 hackkitten: oh so you're a former dude going dudette? :) Apr 10 11:22:19 nope~ Apr 10 11:22:22 if you read it sais hermaphrodite Apr 10 11:22:34 * hackkitten is a twin-in-one~ Apr 10 11:22:46 interesting, but terrible about the things you had to go through Apr 10 11:22:52 oh yes Apr 10 11:22:56 so dude AND dudette? Apr 10 11:23:01 yes :) Apr 10 11:23:05 ah, gotcha :) Apr 10 11:23:11 hrm, what would you guys recommend as a maps API ? Apr 10 11:23:17 but originally dude? Apr 10 11:23:58 hackkitten: oh ok.. sorry for the noise then :D Apr 10 11:24:01 Zider > only officially, my body has always been primarily female :P Apr 10 11:24:11 * hackkitten hands tapas a cookie :) Apr 10 11:24:18 hackkitten: hm.. confusing.. :) Apr 10 11:25:08 Zider > www.mayaposch.com is my site... has some technical details if you're interested :) Apr 10 11:27:36 you still have both hackkitten? Apr 10 11:27:37 hackkitten: I see.. (still somewhat confused) well.. as long as you're that pleasant bunch of text on my screen labelled "hackkitten" you can be whatever.. ;) Apr 10 11:28:29 Insayne > yup, and keeping it that way Apr 10 11:28:38 Zider > thanks :D Apr 10 11:28:52 and both genitals are fully developed? Apr 10 11:29:00 hackkitten: I like the menu btw.. even tho it's just "alphabetical" characters with no relation to the entries.. ;) Apr 10 11:29:15 Insayne > nah, both partial. Still need to find some medical specialists to help with that :( Apr 10 11:29:17 Zider, was it you who refered me to osm ? Apr 10 11:29:25 hackkitten, damn :( Apr 10 11:29:28 Zider > thanks :) Apr 10 11:29:37 Insayne: I don't even know what osm means, so I doubt it. ;) Apr 10 11:29:40 hackkitten, thats what I always wondered about, if hermaphrodites are fully developed Apr 10 11:29:45 alright Apr 10 11:30:10 well, I want to make a "custom" map (using graphic tiles), what would you suggest I use? the google maps API doesn't let me load my own map... so yeah :( Apr 10 11:30:15 It is probably different from case to case Apr 10 11:30:32 Insayne > it really differs per case... generally the answer is 'no' :) Apr 10 11:30:32 Regarding hermaphrodites :) Apr 10 11:30:38 :D Apr 10 11:31:24 You are the living proof for that the god that most religions describe is non-existant, as I see it :-D Apr 10 11:31:48 Not that there's lack of reasons to be an atheist, though :-P Apr 10 11:32:28 yeah, this totally related to religion before Apr 10 11:32:32 heh :) Apr 10 11:33:20 so no suggestions for a map api ? Apr 10 11:33:21 Mikellip: or that he/it exists but has butterfingers.. ;) Apr 10 11:33:46 I have fingers in her butt. Apr 10 11:33:54 :P Apr 10 11:34:11 hackkitten: no trials of NyanKana? Apr 10 11:35:09 Zider > not yet, working on it :) Apr 10 11:35:58 Mikellip > the fun part is Christians/Muslims telling me that my existence is unnatural Apr 10 11:36:08 hackkitten: ah. :) I was gonna try it out but I'm flat broke so I can't even afford the low price it has :/ Apr 10 11:36:10 * hackkitten feels pretty natural~ Apr 10 11:36:25 Zider > sorry to hear that, I share that problem :) Apr 10 11:36:33 hackkitten: so they tell me ;-) Apr 10 11:36:46 :) Apr 10 11:37:35 hackkitten: Hospitals are unnatural so they can just refuse modern care and go away, k :-P Apr 10 11:38:28 with all the pollution today, AIR isn't natural.. so they can just suffocate :P Apr 10 11:39:06 :D Apr 10 11:39:39 Zider > got any suggestions on what to do for a NyanKana demo? Not sure how to limit it yet Apr 10 11:42:05 no suggestions? :( Apr 10 11:42:53 Insayne > sorry, no idea :( Apr 10 11:43:27 :( Apr 10 11:43:36 can you do me a simple favor? can you try if OSM works for you ? Apr 10 11:43:50 hackkitten: limited number of characters I'd imagine.. hard to tell without having tried the full version :) Apr 10 11:43:52 I would supply you with links, ofc Apr 10 11:44:08 OSM = Open street maps? Apr 10 11:44:12 Jak_o_Shadows, correct Apr 10 11:44:23 I don't get the library imported so that it works Apr 10 11:44:23 hackkitten: maybe some online highscore system only for paid version? I dunno.. Apr 10 11:44:45 Zider > I'll give it some thought :) Apr 10 11:44:56 * Jak_o_Shadows once made a wxPython OSM viewer that with a little effort, be made into a truly generic one. Apr 10 11:45:06 hackkitten: time limiter - allow ppl to play the full game, for free, for 30 mins Apr 10 11:45:14 hi, can someone help with the latest android sdk? I updated mine and now i can no longer open SDK manager app? it pops up a console window and disappears, no output Apr 10 11:45:42 Jak_o_Shadows, would you be interested in being so kind, and trying to figure out why I don't get it to work properly? Apr 10 11:46:00 any tips for getting android to build faster using eclipse? I've got like five library projects going on at the moment Apr 10 11:46:23 Insayne > that's an idea... :) Apr 10 11:46:29 nervermind, found answer http://stackoverflow.com/questions/5199811/android-sdk-manager-wont-open Apr 10 11:46:35 Insayne: I only did it using wxPython, which is likely a lot different, but sure. Apr 10 11:46:37 why does system32 folder have java.exe? Apr 10 11:46:48 okay, well let me link you Apr 10 11:47:02 http://code.google.com/p/osmdroid/downloads/list Apr 10 11:47:08 http://www.reddit.com/r/Android/comments/s2ek5/app_developer_makes_app_to_really_get_up_in_the/ :) Apr 10 11:47:29 Insayne: Um, slight problem, http/https browsing is borked on my computer at the moment. Apr 10 11:47:29 I'm off to study drivers license.. on work hours.. :D Apr 10 11:47:33 cya! Apr 10 11:47:40 ouc Apr 10 11:48:27 have fun, Zider :D Apr 10 11:48:43 hackkitten, could you try to get OSM into an empty project ? Apr 10 11:48:52 It fails at compiling/running for me Apr 10 11:49:18 Insayne > what's OSM? Apr 10 11:49:23 OpenStreetMaps Apr 10 11:49:26 oh, right Apr 10 11:49:41 http://code.google.com/p/osmdroid/ Apr 10 11:49:59 what's the error you get? Apr 10 11:50:07 let me re-generate it Apr 10 11:51:59 Conversion to Dalvik format failed with error 1 Apr 10 11:52:10 java.lang.IllegalArgumentException: already added: Lmicrosoft/mappoint/TileSystem; Apr 10 11:52:42 which is insane here - all i did was, create libs folder, import the jar as file system, then do the build properties, and add the .jar of it as library Apr 10 11:52:46 yet this is what I end up with Apr 10 11:53:01 diddle Apr 10 11:53:06 diddle ? Apr 10 11:53:12 yup Apr 10 11:53:13 did you google that error? Apr 10 11:53:20 ofc Apr 10 11:53:25 Anyone tried gpu emulation successfully yet? Apr 10 11:53:41 it used to be a bug with proguard - and is when you got twice the same .jar loaded Apr 10 11:53:44 neither of those are my case Apr 10 11:53:56 why isn't reto meier on here Apr 10 11:53:58 thus I am lost Apr 10 11:54:05 i want to make a joke about him Apr 10 11:54:35 anyone? Apr 10 11:54:48 Saltbread, what isnt working for you ? Apr 10 11:55:31 well, whenever I create an AVD and set gpu emulation to on, the AVD starts up and then crashes out with an emulator-arm not responding message Apr 10 11:55:51 ah, dunno Apr 10 11:56:14 I'm using the GPU of a Sandy Bridge CPU with the latest video drivers Apr 10 11:57:16 I checked the Intel website and they report that as long as you have the latest drivers from them, that OpenGL should work Apr 10 11:57:52 and I have already checked to make sure that my CPU/GPU is supported Apr 10 12:00:43 Insayne: dunno if that helps any. but when i add a jar, i dump it in libs/ right click on it and add it to the build path Apr 10 12:00:54 ok Apr 10 12:01:20 thats pretty much what I've done Apr 10 12:01:50 and it doesn't work - hence my confusion Apr 10 12:02:07 curious question: has anyone noticed the influx of big names and old developer app updates recently? Why do you think that is all of a sudden? Apr 10 12:02:31 android has overtaken iOS :D Apr 10 12:02:47 in both absolute phone numbers and growth rate in the pad segment Apr 10 12:03:32 agreed tapas but I didn't think that would be enough for the fanboys to support both platforms Apr 10 12:04:29 Saltbread: well, there's a lot of money in it :D Apr 10 12:04:47 honestly I thought it might be because of Google IO 2012. In my mind, it was like the developers were children that was being naughty and IO 2012 was mom coming home so they scamper to fix the house :) Apr 10 12:05:00 android is a bitch to dev for though Apr 10 12:05:11 how so sylon? Apr 10 12:05:26 too many devices / specs / screen sizes combinations Apr 10 12:05:27 note I am not a developer... but I am interested in developing Apr 10 12:05:43 it|s only a bitch when clients want pixel exact screens Apr 10 12:05:44 plus you need to support 2.2/2.3/4.0 so you can never use latest stuff Apr 10 12:05:53 i.e. port iOS apps to android and reuse the designs Apr 10 12:05:53 but doesn't the emulator make that process easier ? Apr 10 12:05:57 had to do that.. Apr 10 12:06:08 Saltbread: the emulator is so frigging slow, it's almost unusable Apr 10 12:06:16 considering what 2.6% ppl use ICS Apr 10 12:06:36 sylon: target 2.2 and use the support packages to ease the pain :D Apr 10 12:06:43 tapas: did you see the improvements they posted? the GPU and VM acceleration for x86 its experimental Apr 10 12:07:05 sylon: yeah i tried the x86 image Apr 10 12:07:15 Target 4.0 and learn to use if (isThisIcs) { newApi() } Apr 10 12:07:17 sylon: the gfx part isn't really that much faster Apr 10 12:07:34 tapas, which is why I asked if anyone had gotten gpu emulation working... as of yesterday, there was an update that exponentially accelerates 4.0.3 using the GPU and 2.3.x was accelerated a few weeks ago using Intel CPU virtualization Apr 10 12:07:56 i guess Saltbread oh cool. didn't see that yet.. Apr 10 12:08:07 SimonVT: do you have any examples of how to use that? i thought if you targetted 4.0 ppl below cant install? Apr 10 12:08:22 sylon: http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Apr 10 12:08:34 * tapas reads Apr 10 12:09:04 thx' Apr 10 12:09:41 I can't get my own gpu emulation working; I am guessing mine isn't working because I am using the GPU from an Intel 2500K chip. That's why I wondered how many of you had tried it and what graphic cards you were using Apr 10 12:09:50 i didn't know you had a blog Apr 10 12:10:01 Oh, I don't really Apr 10 12:10:10 I was going to write some posts.. Only did that one :p Apr 10 12:10:52 I did that too :( Apr 10 12:10:57 blogging is hard Apr 10 12:11:42 * hackkitten blogs a lot Apr 10 12:11:45 * hackkitten has three blogs Apr 10 12:11:57 i am only subscribed to one of them, the android one Apr 10 12:12:15 SimonVT: your first post was very inspirational to me Apr 10 12:12:46 thanks :p Apr 10 12:13:48 Saltbread: i am yet to try it but i have amd not sure if it will work Apr 10 12:13:55 what do you do btw SimonVT Apr 10 12:14:23 its a 6570M mobile gpu Apr 10 12:14:27 well come on sylon try it now :) Apr 10 12:14:43 do i just download the 4.0.3 sdk? Apr 10 12:14:46 I study power engineering :p Apr 10 12:14:55 and creat a V15 avd? Apr 10 12:15:06 i only have 2.3.3 sdk at the moment lol Apr 10 12:15:11 yeah just launch and update anything that needs an update and you are all set Apr 10 12:15:25 hmm, so if target level 8 offers everything i need, why not avoid all the hassle and jut set min sdk version and target sdk version to 8 and be done? Apr 10 12:15:25 havent bothered getting ICS Apr 10 12:15:34 yeah exactly sylon Apr 10 12:15:36 GPU emulation doesn't work here either ;/ Apr 10 12:15:46 what GPU u using SimonVT? Apr 10 12:16:10 geforce 9800gt Apr 10 12:16:19 ok im trying Apr 10 12:16:33 Lots of people are having issues, just check the bug tracker Apr 10 12:17:03 SimonVT: do you have the latest drivers installed for it? Apr 10 12:17:08 yea Apr 10 12:17:57 man amd sucks with drivers Apr 10 12:17:59 do you get the same error I do: emulator-arm not responding? Apr 10 12:18:08 my drivers were made in 2010 i have issues with some games Apr 10 12:18:37 yes Apr 10 12:18:45 SimonVT: how do you know if gpu is wokring or not Apr 10 12:18:54 since i have never tried a ICS avd Apr 10 12:18:54 it crashes Apr 10 12:19:04 SimonVT: LOL Apr 10 12:19:09 <`z> ICS takes 10 minutes on first bootup Apr 10 12:19:14 <`z> and around forever to shut down Apr 10 12:19:23 <`z> and if i just force it to shut down Apr 10 12:19:26 <`z> it never starts up again Apr 10 12:19:26 <`z> ever Apr 10 12:19:30 `z: sounds just like my phone lol but its CM9 Apr 10 12:19:30 sylon: make sure u edit the avd and add gpu emulation and set it to on Apr 10 12:19:41 then for sure it'll be using the gpu Apr 10 12:19:45 <`z> but probably because i was emulating a galaxy nexus Apr 10 12:19:49 <`z> 1280*720 Apr 10 12:19:56 hrm, i think I might have to give up on osmandroid, it doesnt work Apr 10 12:20:17 can you guys recommend a library for making your own map? Apr 10 12:20:19 Insayne: oh that, i tried it for a while, gave up and started using data+gmaps Apr 10 12:20:25 Insayne: It shouldn't be too difficult to write a map viewer, depending on how you can display images on android. Apr 10 12:20:34 but thats as a user, not dev Apr 10 12:20:43 `z: what's your hardware like m8? Apr 10 12:21:06 Jak_o_Shadows, well, I just want an image viewer, where i can tile images when you zoom in Apr 10 12:21:26 If I have a fragment inside an activity ( a menu system ) clicking on a element in it goes into a sub-menu system ( currently fires off an intent which is picked up by a new action loading the same intent ) this can happen multiple times (ie the menu is n deep). Is there a better design pattern than this, or should I keep firing an intent/catching it each time? Apr 10 12:21:43 Good thing about maps is that they all use the same schema for tile names/sizes. Apr 10 12:22:04 and OSM supplies basic map projection stuff. Apr 10 12:22:12 Well, see - on PC, it was possible iwth the API to make your own map (like for minecraft for example) Apr 10 12:22:12 <`z> Salonce, m6? Apr 10 12:22:15 <`z> m8*? Apr 10 12:22:21 <`z> oh no Apr 10 12:22:27 mate. Apr 10 12:22:30 <`z> um, i meant to say Apr 10 12:22:34 Jak_o_Shadows, but I get errors as soon as I include OSM Apr 10 12:22:35 `z: m8 as in mate Apr 10 12:22:44 <`z> ICS takes 10 minutes on first bootup when emulating* Apr 10 12:22:51 <`z> Saltbread, c2d t5750 Apr 10 12:23:04 <`z> some random intel integrated gfx: think it's GM965 Apr 10 12:23:11 <`z> ram 3GB Apr 10 12:23:21 when emulating graphics? Apr 10 12:23:23 Insayne: I mean basic projection like lat-lon to tile coordinates and such. Apr 10 12:23:54 yeah, I want something really basic - just with the zoom behaviour of google maps, tiled image loading Apr 10 12:24:01 For my python code, go to laptimer.sourceforge.net , develop, browse source, branch awesomeSauce, osmDataGet.py osmDataFunctions.py Apr 10 12:24:06 <`z> Saltbread, well.. don't know Apr 10 12:24:06 "  Also worth noting that you must have snapshots disabled to enable GPU emulation right now." Apr 10 12:24:06 <`z> :| Apr 10 12:24:10 I'd pastebin it, but my net is screwed. Apr 10 12:24:21 yeah, problem is i dont get osm working at all on android Apr 10 12:24:28 `z: did you edit your AVD with the gpu emulation to on setting? Apr 10 12:24:38 i believe you, but the simple "import osm" doesn't work, it fucks it up Apr 10 12:24:41 <`z> nope Apr 10 12:24:44 <`z> Saltbread, nope Apr 10 12:24:51 <`z> just default settings Apr 10 12:25:00 `z: will let you know soon how long mine takes i7 2630QM 8gb ram Apr 10 12:25:09 `z: ah ok...then your emulation is purely CPU. Apr 10 12:25:11 <`z> sylon, mmk Apr 10 12:26:13 `z: try enabling it man see if gpu works for you Apr 10 12:26:30 <`z> sylon, don't want to :| Apr 10 12:26:33 <`z> supposed to do work now Apr 10 12:27:05 lol im supposed to play games now Apr 10 12:28:21 <`z> lol Apr 10 12:33:21 gpu emulation dont work for me either Apr 10 12:33:47 My country name is not listed in the terms and agreement list while publishing my application on google play. any suggetions on wat can be done for this Apr 10 12:34:31 look at my buggy HTC one X: http://www.youtube.com/watch?v=v_NimKBfqFk Apr 10 12:34:34 *hate* Apr 10 12:35:36 I'm using "adb push ./mydir sdcard/". For some reason the .svn folders in mydir is being pushed whereas they were ignored by the adb command before. Why is that Apr 10 12:40:18 Should probably send it back, Snuffel :p Apr 10 12:42:29 wow....no one has had success with gpu emulation with the new 4.0.3 rev 2 ? Apr 10 12:43:00 guys make sure u run the SDK manager to make sure u have the latest updates of your packages Apr 10 12:43:19 Wondering if someone can point me in the right direction please, I have a Fragment which extends ListFrament, is there a way to add a "Fast Scroll" to a list fragment programmatically? Apr 10 12:44:01 SimonVT: thanks Apr 10 12:46:12 scratch that foudn it :) this.getListView().setFastScrollEnabled(true); Apr 10 12:51:34 How to enable opengl 2.0 in the new emulator?The devicegetconfigurationinfos doesn't return a supportses2.... Apr 10 12:58:58 and the emulator crash when I set GPU support on... Apr 10 12:59:04 does layout_weight work in a relativelayout? my views dont seem to expand horizontally Apr 10 12:59:13 No, jeppy Apr 10 12:59:22 It's an attribute of LinearLayout Apr 10 12:59:29 pff Apr 10 12:59:46 My country name is not listed in the terms and agreement list while publishing my application on google play. any suggetions on wat can be done for this Apr 10 12:59:49 You can do something similar Apr 10 13:00:08 layout_toRightOf="id" layout_alignParentRight="true" Apr 10 13:00:17 Should expand it from view to bounds Apr 10 13:03:16 SimonVT negative Apr 10 13:10:51 are intent arguments persisted when an activity is killed/recreated? Apr 10 13:13:41 hello Apr 10 13:14:07 intent extras, I should say Apr 10 13:21:20 syp Apr 10 13:21:22 sup Apr 10 13:21:54 my maps API library stopped working for ICS, getting NoClassdefError for android.security.MessageDigest Apr 10 13:21:57 any way to fix it? Apr 10 13:24:17 add the android.security.MessageDigest class to your app :> Apr 10 13:24:22 (I'm actually serious) Apr 10 13:24:29 i should have to Apr 10 13:24:30 (Though there may be other classes this depends on) Apr 10 13:24:39 if I'm using the google libraries Apr 10 13:24:41 it should be included Apr 10 13:24:44 yes, it should Apr 10 13:24:48 so that's kind of a funny regression Apr 10 13:24:53 this is bull shit Apr 10 13:24:55 are you using the google apis for API 16 or higher? Apr 10 13:24:59 if i have to do that Apr 10 13:25:02 using api 14 Apr 10 13:25:04 well tried it Apr 10 13:25:10 but i need to retain support for 2.2 Apr 10 13:25:10 try doing API level 16 or higher. Apr 10 13:25:17 yeah that's fine Apr 10 13:25:25 k ill need to download it Apr 10 13:25:26 this is just what you're compiling AGAINST. Apr 10 13:25:31 minSdk is the minimum version you support Apr 10 13:25:36 targetSdk is the highest version you've tested Apr 10 13:25:43 these are three different values. Apr 10 13:25:50 maps works fine for me on ics Apr 10 13:26:02 same Apr 10 13:26:23 i only have option for api level 14 in my sdk manager Apr 10 13:26:27 nothing in the 4.0.3 folder Apr 10 13:26:50 just gonna put this one out there Apr 10 13:26:54 but maybe you should open up the sdk manager Apr 10 13:26:59 and look in the "Android 4.0.3" section Apr 10 13:27:12 also, ignore what I said about 16, I meant 15 Apr 10 13:27:20 http://cl.ly/2t2s3B2a3d0p3S2g2W1C Apr 10 13:27:43 uh Apr 10 13:27:44 aww lov i thought you had early access to jellybean! Apr 10 13:27:50 I've got Google APIs in level 15 Apr 10 13:27:55 hm Apr 10 13:27:55 try refreshing your stuff Apr 10 13:28:23 also try updating your stuff Apr 10 13:28:33 ill try updating the sdk manager Apr 10 13:28:41 i have no sympathy for "it doesn't work" if you're significantly out of date Apr 10 13:28:45 platform tools 10 Apr 10 13:28:50 api14 r1 Apr 10 13:30:06 because i need to develop for 2.2 and above Apr 10 13:30:14 ...ok? Apr 10 13:34:36 hey CallumTaylor Apr 10 13:34:44 I don't think you "Get" how android does backwards compat Apr 10 13:34:50 nope Apr 10 13:34:57 it's always fucked with my head so i've just left it Apr 10 13:34:57 fun fact: newer SDKs are backwards compatible with older versions Apr 10 13:35:08 so you can set your project to build against API level 15 Apr 10 13:35:11 and still support API level 3 Apr 10 13:35:15 ok Apr 10 13:35:25 http://developer.android.com/resources/articles/backward-compatibility.html Apr 10 13:35:27 read this Apr 10 13:36:12 hey, whats video class is the best if one wants the controll buttons to dissapear when the video plays..like in youtube.. :) Apr 10 13:36:17 TIL that intent extras aren't persisted on an activity destroy/recreate, what's with that? Apr 10 13:36:20 so long as you don't directly use functionality only present in api 15. you can still detect and wrap it w/ reflection if you want the newer functions on the newer devices, so long as you can work with old devices w/out that feature Apr 10 13:36:24 CallumTaylor, also read http://developer.android.com/guide/index.html Apr 10 13:36:27 and all that jazz Apr 10 13:37:09 i get the development and such, the api levels just mess because they make it look like what your sdk version is what you're developing for Apr 10 13:37:18 but i guess you declare that in your manifest Apr 10 13:37:57 its been a long day, had to root my s2 because tmobile suck and haven't released the update Apr 10 13:38:02 I'm going to get lunch Apr 10 13:38:22 Good morning everyone' Apr 10 13:38:34 I can test whether the device running my app supports certain fields in a method using reflection, but how do I get the app to compile in Eclipse with a field that isn't available in my lowest supported API version? Apr 10 13:38:40 canadiancow, get your +o yet? :) Apr 10 13:38:56 lov evancharlton, i have a fanbase now Apr 10 13:39:05 christ Apr 10 13:39:18 jgb: project properties -> android -> project build target Apr 10 13:39:23 set this to, generally, the highest available level. Apr 10 13:39:27 this is WHAT YOU COMPILE AGAINST Apr 10 13:39:42 i like how this was just discussed Apr 10 13:39:45 where's SimonVT's link Apr 10 13:40:00 open up your androidmanifest file, look for the uses-sdk tag Apr 10 13:40:08 the minSdkVersion is THE MINIMUM VERSION THAT YOU WILL SUPPORT Apr 10 13:40:17 the targetSdkVersion is THE MAXIMUM VERSION THAT YOU HAVE TESTED AGAINST Apr 10 13:41:04 lov-> thx Apr 10 13:41:20 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Apr 10 13:41:26 someone should probably topic that Apr 10 13:41:30 more people need to read it Apr 10 13:41:54 this channel needs a bot :P Apr 10 13:42:18 like ##java has Apr 10 13:42:48 anyone want to point me where I can find docs on how to use the top notification bar for download & install status for features within an app? Apr 10 13:42:52 (what's it called?) Apr 10 13:43:03 on the down side it makes it more difficult to personally express your hatred at other peoples incompetence, often leading to killing sprees irl (as opposed to just bitching sprees on irc) Apr 10 13:43:45 ..... Notifications, maybe? Apr 10 13:43:54 Perhaps it would be Notifications that live in the Notification Bar Apr 10 13:44:13 09:41:25 < storkme> http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Apr 10 13:44:16 this, forever. Apr 10 13:45:46 mhm, ProgressBar lives there. neat. Apr 10 13:47:20 you know what sucks aobut things like http://developer.android.com/guide/market/expansion-files.html Apr 10 13:47:33 amazon's appstore is too big to ignore Apr 10 13:48:48 i ignore it Apr 10 13:50:06 it is? Apr 10 13:50:24 hi Apr 10 13:50:46 you MIGHT have your numbers skewed by virtue of working for a company that probably has extensive deals with Amazon for apps on their store. Apr 10 13:51:16 oh dear, turns out my Fragments onCreate is being called *before* my activities onRestoreInstanceState, so when the fragment is created it does not have access to some of the parent activities members and it crashes Apr 10 13:51:53 well im pretty sure rev/user is higher on amazon, enough so to make up for lack of users Apr 10 13:52:06 i dont htink anyone denies that amazon users are more likely to spend money than play users Apr 10 13:52:24 Yeah I'm gonna deny it Apr 10 13:52:25 ive never seen an actual breakdown of numbers between stores Apr 10 13:52:28 they'll flock to the app of the day and that's it Apr 10 13:52:32 lol Apr 10 13:53:04 i have made an activity which contains 6 tabs in it, I have applied HorizintalScrollView to these Tabs, and each tab opens a seperate activity whitin itself, Now the problem is when the user selects a tab that tab should scroll to the middle of the screen Apr 10 13:53:05 Just sayin, I haven't updated GPS notification on Amazon Appstore for a while, and there's a reason for that. Apr 10 13:53:10 yeah i pretty much only go for the app of the day Apr 10 13:53:13 do phones and tablets have different path for internal and external storage? Apr 10 13:53:30 Maybe Apr 10 13:53:34 Maybe not Apr 10 13:53:49 i have made an activity which contains 6 tabs in it, I have applied HorizintalScrollView to these Tabs, and each tab opens a seperate activity whitin itself, Now the problem is when the user selects a tab that tab should scroll to the middle of the screen Apr 10 13:53:56 hairlessmangina: "maybe" Apr 10 13:54:01 hairlessmangina: you should be using the api calls for this. Apr 10 13:54:05 faeezkadiri: we're not blind Apr 10 13:54:07 hairlessmangina: DO NOT HARDCODE PATHS Apr 10 13:54:10 storkme: did you look at onActivityCreated? Apr 10 13:54:15 i did not Apr 10 13:54:28 hairlessmangina: http://developer.android.com/reference/android/os/Environment.html Apr 10 13:55:00 well Apr 10 13:55:07 i am trying to figure out if http://forum.xda-developers.com/showthread.php?t=1474686 works for tablets too Apr 10 13:55:22 cuz that one is made for phones Apr 10 13:55:39 Optionally, you can set a different path for memory cards (no need to touch these lines in most cases, you should not touch): Apr 10 13:55:39 default_internal_sdcard = / EMMC Apr 10 13:55:39 default_external_sdcard = / sdcard Apr 10 13:55:45 doesnt that have to be changed for tablets? Apr 10 13:55:50 .... Apr 10 13:55:55 that has to be changed for every single fucking device Apr 10 13:55:57 go to #android-root Apr 10 13:56:01 you're talking about custom roms Apr 10 13:56:11 there's no guarantee of what the path is actually going to be Apr 10 13:56:21 you must not assume that /sdcard will exist Apr 10 13:56:36 i hardcoded my sd card parth, but it's not working Apr 10 13:56:44 have you tried turning it off and on again? Apr 10 13:56:48 nice Apr 10 13:56:51 C:\external_st~1 Apr 10 13:57:02 try eating the sd card; the enzymes in your digestive system will break down any corrosion on your card's contacts Apr 10 13:57:13 hrnt: seems like onActivityCreated is called *after* onCreateView? Apr 10 13:57:16 hah Apr 10 13:57:51 so I'm kinda fucked Apr 10 13:58:00 well that's hot. Apr 10 13:58:06 storkme: what do the docs say? Apr 10 13:58:08 poidh Apr 10 13:58:21 good question, don't really know where to look Apr 10 13:59:30 What's the issue anyway? Apr 10 14:00:12 hi, guys. i'm newbie. i want create a chat app. what is the best way to keep connection alive? Apr 10 14:00:41 necromancy Apr 10 14:01:53 essentially I'm trying to figure out which on* method in Fragment to override to access some members for the parent activity Apr 10 14:02:09 just call getActivity() Apr 10 14:02:17 allright, googling "android app download http file" isn't helping. what's the easiest way to just fetch a file off of a given HTTP URL to the device? do I have to use org.apache.http? Apr 10 14:02:29 use HttpUrlConnection Apr 10 14:03:17 aight, thanks. Apr 10 14:03:52 ok, not being able to keep the system bar hidden on android 4 sucks Apr 10 14:03:59 CallumTaylor: which doesn't work if the Activity hasn't been created yet :p Apr 10 14:04:16 then the fragment won't be shown Apr 10 14:04:28 call it in onActivityCreated Apr 10 14:04:32 in the fragment class Apr 10 14:04:44 that's too late Apr 10 14:04:53 Really depends on what you're trying to do Apr 10 14:04:53 I just dropped it in onCreateView Apr 10 14:05:14 fuck sake eclipse is being a dick Apr 10 14:05:20 its saying my main class was not found Apr 10 14:05:22 it'll do that Apr 10 14:05:23 when clearly its there Apr 10 14:08:49 anyone else had this problem Apr 10 14:08:50 ? Apr 10 14:08:59 clean and rebuild Apr 10 14:09:03 you start an app and gets no class def found error for a class that clearly exists Apr 10 14:09:04 have Apr 10 14:09:05 or go to the errors tab Apr 10 14:09:15 no errors Apr 10 14:09:19 the classdef error could be due to improper imports Apr 10 14:09:20 wouldn't build otherwise Apr 10 14:09:23 do you have more than one project? Apr 10 14:09:32 yeah i have my library project Apr 10 14:09:35 right. Apr 10 14:09:44 does your library project have any jars, or other projects? Apr 10 14:09:58 yeah, the google apis and compatibility libraries Apr 10 14:10:03 support libraries* Apr 10 14:10:11 include them in your main app too Apr 10 14:10:34 I'm going insane, it was working like 20 minutes ago fine Apr 10 14:11:25 Pretty sure you don't have to mess with build path or export or anything as long as your jars are in libs/ Apr 10 14:11:37 Only if they're added manually Apr 10 14:11:39 not for android libraries, it seems Apr 10 14:11:45 idk, idc anymore Apr 10 14:15:17 Yea, shit in libs/ is automatically exported Apr 10 14:16:44 Did you try to use a bluetooth mouse with your androphone? Apr 10 14:17:02 If yes, is it working well, is it useful? Apr 10 14:21:41 still getting MessageDigest error Apr 10 14:21:47 even with api 15 google lib Apr 10 14:23:04 lov: I found this little gem in the sdk commits: "Add lint detector for Toast.makeText() without show()" Apr 10 14:23:22 that's a pretty good one Apr 10 14:24:50 that's fucking great Apr 10 14:25:25 Is there a way of knowing whether the action bar is split or not? Apr 10 14:27:14 I have a semi-transparent action bar on top of a MapView (just like the Google Maps app) and I need to place a view at the bottom of the screen. Apr 10 14:27:56 Is it possible to use Java functions inside a shared C library? Apr 10 14:28:16 And so I need to set the bottom margin of this view to the height of the bottom action bar (if it exists). Apr 10 14:30:01 right Apr 10 14:30:12 so if i set the build target to 4.0.4, then i can't run it on my 2.3 device Apr 10 14:30:28 Yes you can Apr 10 14:30:28 yet i need to use the 4.0.3 google apis because the map views don't work in ics Apr 10 14:30:36 won't let me deply to it Apr 10 14:31:12 What's your minsdk Apr 10 14:31:16 8 Apr 10 14:31:24 http://cl.ly/1q2A2G2C0H2I3Q24052E Apr 10 14:31:34 The issue really is that I've set android:windowActionBarOverlay to true. Apr 10 14:31:47 properties Apr 10 14:31:48 http://cl.ly/3r3I2P2C262n0x3d343e Apr 10 14:31:50 And if you double click the 2.2 device anyway? Apr 10 14:32:07 hm Apr 10 14:32:10 crashes Apr 10 14:32:16 but i think that might be my code Apr 10 14:32:27 but if it has a x next to it, then surely that means it's not compatible Apr 10 14:34:23 Hi. What is the best way to share constants (so fare only int ans string) between multiple android projects? (in the same workspace if that counts for anything) Apr 10 14:34:49 ugh ActivityGroup is deprecated Apr 10 14:35:19 when is it removed? Apr 10 14:35:41 Never Apr 10 14:35:55 As4xk: create a common android library, have your common projects use that library. Apr 10 14:36:20 Might be removed from the sdk, but your app will still be able to run Apr 10 14:36:29 mm Apr 10 14:36:44 i think its my tab system thats causing the class def not found error Apr 10 14:37:08 If you're putting activities in tabs you're definitely doing it wrong Apr 10 14:37:33 well this is a library i made a year ago Apr 10 14:37:42 so some apps are still using the old tabbing system Apr 10 14:37:47 Damn. Not calling moveToFirst() on a Cursor is disaster. Apr 10 14:38:10 Depends Apr 10 14:39:08 lov: Thanks :) Apr 10 14:42:36 hi Apr 10 14:42:48 I'm getting the following error "thread exiting with uncaught exception (group=0x4001b180)" but on real device only ... Apr 10 14:43:19 In my emulator the application works as expected ... but not on a real phone, and I didn't put the application on android market yet, because I need to test it first. Apr 10 14:43:36 can the error be present becuase the application is not signed or something? Apr 10 14:44:03 no Apr 10 14:44:28 evelyette: http://imgur.com/jacoj Apr 10 14:44:29 evancharlton, any idea about this error ... I received that when I called showDialog() Apr 10 14:44:47 and I'm returning the correct dialog from onCreateDialog() Apr 10 14:45:03 lov: after creating the library. Does the library project need to be build and placed on the device for my applications to work? Apr 10 14:45:07 ok let me put the trace online Apr 10 14:45:10 is it ok to use regex on javascript Apr 10 14:45:16 my sausage fell of the boat Apr 10 14:45:18 embeded in html Apr 10 14:45:29 As4xk: it will be included into your builds automatically, as long as they reference it as an android library to include Apr 10 14:45:43 evancharlton, actually the whole stacktrace is this: 4-10 16:34:07.921: W/dalvikvm(27137): threadid=3: thread exiting with uncaught exception (group=0x4001b180) Apr 10 14:45:49 evelyette: no it's not Apr 10 14:45:49 that's not the whole stacktrace. Apr 10 14:45:55 evancharlton: pastebin the WHOLE stacktrace Apr 10 14:45:57 er Apr 10 14:46:01 evelyette: pastebin the WHOLE stacktrace Apr 10 14:46:02 lolol Apr 10 14:46:06 4-10 16:34:07.921: W/dalvikvm(27137): threadid=3: thread exiting with uncaught exception (group=0x4001b180 Apr 10 14:46:09 there you go, lov Apr 10 14:46:11 10:44:34 < evancharlton> evelyette: http://imgur.com/jacoj Apr 10 14:46:13 the WHOLE thing Apr 10 14:46:56 Thanks again lov. Apr 10 14:47:31 this is the whole stack dialog but the problem is with line 3: http://dpaste.com/729593/ Apr 10 14:47:52 the next lines are failing because the alertdialog is not being shown, so the user can choose an account Apr 10 14:47:53 line3 is just a warning Apr 10 14:48:08 caused by line 5 Apr 10 14:48:18 MoodDiaryActivity.java:622 Apr 10 14:48:24 there's your problem Apr 10 14:48:28 yes I know why this is failing Apr 10 14:48:37 and it's because showDialog isn't actually showing a dilaog Apr 10 14:48:38 dialog Apr 10 14:48:54 .... Apr 10 14:49:05 I'm not sure I want to know what's happening here Apr 10 14:49:08 but go on, pastebin your code Apr 10 14:49:16 has anyone used ActionBarScott? Apr 10 14:49:18 i heard it's awesome Apr 10 14:49:23 haha Apr 10 14:49:45 I want a listview that displays the contact's name, phone and my custom data field. Does that mean that i need to build a custom cursor adapter, that takes 3 different cursors?(one for each mimetype: StructuredName.CONTENT_ITEM_TYPE, Phone.CONTENT_ITEM_TYPE and my own mimetype) Apr 10 14:49:56 evelyette: you DO realize that showDialog is ASYNCHRONOUS, right? Apr 10 14:50:03 evelyette: you don't wait until it shows the dialog Apr 10 14:50:08 it just returns immediately Apr 10 14:50:25 lov, http://dpaste.com/729594/plain/ Apr 10 14:50:51 .... Apr 10 14:50:54 that's your createDialog code Apr 10 14:50:59 which is not at all where your exception is Apr 10 14:51:32 also, strongly consider using the Log class instead of System.out Apr 10 14:51:39 hi!, I develop an application and i need to use RadioButton, but when i execute my program, i've this error: "java.lang.RuntimeException: Unable to start activity ComponentInfo java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.RadioGroup" does anybody know why? Apr 10 14:51:47 canadiancow|work: Is it a Zynga fork of ActionBarSherlock that's styled to look like iOS? Apr 10 14:51:49 yes, I'm calling the showDialog(DIALOG_ACCOUNTS); and right after that the error occurs, so yeah the error occurs before the dialog is shown Apr 10 14:51:53 SimonVT: :( Apr 10 14:51:58 do you know how can I wait for the dialog to be shown and not continue execution ? Apr 10 14:52:06 guigui22: You're trying to cast a Button to a RadioGroup Apr 10 14:52:08 guigui22: looks like you are messing up with id Apr 10 14:52:16 hi I am decoding a bitmap from a byte array using BitmapFactory.decodeByteArray() and am seeing the bitmap be roughly 15x larger than the initial byte array. Is that type of size increase normal? Apr 10 14:52:33 but i used the right id… that's why i don't understand … Apr 10 14:52:42 Did you clean project? Apr 10 14:53:08 no i'm gonna try that Apr 10 14:53:19 guigui22: double check that the id is not already used by another widget in the same xml file or that you are not using the wrong xml file (like layout-land ...) Apr 10 14:53:26 hey evelyette Apr 10 14:53:28 10:50:02 < lov> evelyette: you DO realize that showDialog is ASYNCHRONOUS, right? Apr 10 14:53:31 10:50:08 < lov> evelyette: you don't wait until it shows the dialog Apr 10 14:53:33 10:50:14 < lov> it just returns immediately Apr 10 14:53:34 ok Apr 10 14:53:53 lov, yes I saw that ... and I said that's exactly what's happening Apr 10 14:53:56 right,. Apr 10 14:53:58 marklar: it is possible Apr 10 14:54:04 so now I need to force it to wait Apr 10 14:54:07 no Apr 10 14:54:11 that is what you do NOT want to do. Apr 10 14:54:13 thanks … i just cleaned the project… and it works... Apr 10 14:54:25 so do showDialog(), then while(inDialog) Apr 10 14:54:25 you want to continue execution in the event callback from the user doing something in the dialog. Apr 10 14:54:32 mikedg: don't start >:| Apr 10 14:54:33 ok, so I need tocraete another function that will be called after the user clicks a button Apr 10 14:57:23 mikedg: Do you have any idea on what would cause that? Is it the format being different? Apr 10 14:58:41 fuck sake Apr 10 14:58:57 why does my project keep trying to reference /tools/support/annotations.jar Apr 10 14:59:01 it doesn't exist Apr 10 14:59:43 Cus it needs it for lint annotations Apr 10 14:59:59 can't find it though Apr 10 15:00:07 is there an eclipse equivalent of ctrl+shift+t for like android xml files? Apr 10 15:00:07 idk wtf is happened to my sdk Apr 10 15:00:12 its massively ballsed up Apr 10 15:00:27 Then fix your sdk Apr 10 15:00:34 Cus it's definitely there Apr 10 15:00:36 trting Apr 10 15:00:38 trying Apr 10 15:03:59 how important is it to actually extend SherlockFragmentActivity? could i just copy the code from there somehwere else and use it? Apr 10 15:05:08 I have compiled a shared library with NDK-build, and have used the functions in it in my virtual Android device. Is it possible to call a Java function from it? Apr 10 15:05:37 I really want to use the FileOutputStream from my library... Apr 10 15:05:42 It's not that important. All SherlockFragmentActivity does is attach ActionBarSherlock and dispatch various events Apr 10 15:06:03 so is that a "yes" to my second question? Apr 10 15:06:09 yes Apr 10 15:06:18 Does anyone know if it is possible to call a Java function from a C library??? Apr 10 15:06:35 yes it is Apr 10 15:06:37 with JNI? Apr 10 15:06:38 using jni, yes Apr 10 15:06:39 JNI Apr 10 15:07:04 for file operations, that's probably more trouble than it's worth Apr 10 15:07:27 Why would that be trouble? Apr 10 15:07:30 Is there a way that I can finish an activity and send an intent to the activity behind it in the stack? (pref without using startActivityForResult Apr 10 15:07:43 I am using JNI, yes. Apr 10 15:07:48 zambo: not without startActivityForResult() Apr 10 15:08:30 hmm Apr 10 15:09:07 well you can marshall the data and use it through java, or just use the posix file system operations Apr 10 15:09:17 Unless you know exactly which activity is behind in the stack.. but you probably should use startActivityForResult Apr 10 15:10:27 I do SimonVT Apr 10 15:11:31 Jonathan_Eyre: what does you library do? Apr 10 15:11:53 [11:10:27] I do SimonVT Apr 10 15:11:56 is he any good? Apr 10 15:11:59 Then just startActivity the other Activity and set the CLEAR_TOP flag.. But as I said, you should use startActivityForResult if you want to deliver results.. That's what it's there for Apr 10 15:12:12 ~_~ Apr 10 15:12:32 Well, it use tomcrypt for encryption, and it organises data files. Apr 10 15:13:13 seems like a bad idea Apr 10 15:13:31 JNI is usually for stuff you can't easily duplicate in java Apr 10 15:13:53 SimonVT, I am avoiding it because of this issue: http://code.google.com/p/android/issues/detail?id=15394 Apr 10 15:13:55 either because of performance or because it's a large amount of legacy code Apr 10 15:14:08 s/JNI/NDK/ Apr 10 15:14:08 You can't easily duplicate the encryption libraries in java. Apr 10 15:14:14 but I can probably work around it and still get it to work with onActivityResult Apr 10 15:14:35 Jonathan_Eyre: I'm looking at tomcrypt, and android already offers most of the relevant ones Apr 10 15:15:07 Jonathan_Eyre: anyway, the glue code you'd have to write is significant Apr 10 15:15:36 Jonathan_Eyre: plus you'd have to offer a special NDK module for every architecture you want your app to run on Apr 10 15:15:52 that's just ARM now Apr 10 15:16:02 but may include x86, MIPS, PPC in the future Apr 10 15:17:08 We should probably tell Google to put a hold on the other architectures, then. Apr 10 15:17:33 @SimonVT: thank you very much, CLEAR_TOP works perfectly for my case Apr 10 15:18:36 that, and libtom seems like an unmaintained, not invented here lib Apr 10 15:20:32 new ADT Apr 10 15:21:20 Hey, I use Intellij for Android programming, and have a problem with the ActionBarSherlock, I can't seem to get it to work as a libary. And I am confused on how to import it to get it to work. I'm using Intellij 11.0.2 Apr 10 15:21:30 hi! i would like introduce a "shake" function in my application, i look on the accelerometer parameter and we only can get the position, is there a shake function or an easy to program one? Apr 10 15:24:32 join #android Apr 10 15:24:35 oops Apr 10 15:24:52 does anyone have a gtalk 1.3download link ? xda has a few but im looking for the stock app Apr 10 15:25:24 guigui22: I don't know which docs you are reading, but see the API docs for SensorEvent, SensorManager Apr 10 15:25:29 "Fixed Ant issues where some jar libraries in the libs/ folder are not picked up in some cases." Apr 10 15:25:38 ok Apr 10 15:26:15 thanks Apr 10 15:26:31 guigui22: detecting a shake is some simple vector multiplication Apr 10 15:27:00 or rip it from some code sample, I'm sure someone has done this Apr 10 15:27:22 yeah: http://android.hlidskialf.com/blog/code/android-shake-detection-listener Apr 10 15:27:24 i'm sure too … Apr 10 15:27:49 ohhh thanks a lot, i'm gone read this Apr 10 15:28:03 guigui22: link to a possible solution: http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it Apr 10 15:30:28 Have somebody tried the ActionBarSherlock? I need help implementing it in my app. Can't get it into Intellij as a library. Apr 10 15:30:49 I use ABS, but with Eclipse Apr 10 15:31:09 how do you imclude it? Apr 10 15:31:15 include* Apr 10 15:31:17 Make sure you have the compat lib in your build path Apr 10 15:31:27 It's included with ABS in the /libs folder Apr 10 15:31:53 android-support-v4.jar? :) Apr 10 15:31:59 also ABS is an Application Library, not just a java lib Apr 10 15:32:04 yes android-support-v4.jar Apr 10 15:32:43 difference between App lib and java lib is? Apr 10 15:33:10 Frikish: lib project also copies over resources, etc Apr 10 15:33:13 instead of just code Apr 10 15:33:44 Yeah, but I don't know how to set it up with InteliJ, maybe you can just do it with the project.properties Apr 10 15:33:56 but choosing to use something non-standard when you can't fix the inevitable problems yourself is asking for trouble Apr 10 15:34:22 Create a new android module, add it to your project, add dependency Apr 10 15:34:23 Success Apr 10 15:34:48 yeah, apparently: http://blogs.jetbrains.com/idea/2010/09/android-library-projects-support/ Apr 10 15:35:03 Anyone mind looking over some setting description copy? http://imgur.com/a/cem21 Apr 10 15:35:16 what is lint? Apr 10 15:35:25 the stuff in your belly-button Apr 10 15:35:29 CallumTaylor: it's a code analyzer Apr 10 15:35:34 my belly button is clean Apr 10 15:35:49 http://tools.android.com/tips/lint Apr 10 15:36:13 so something i'll never look at and never use Apr 10 15:36:39 Something you should look at, and should use Apr 10 15:36:44 ^ Apr 10 15:41:12 do all ABS themes/styles have "sherlock" in them? Apr 10 15:41:57 Yes Apr 10 15:42:00 Pretty sure, e.g. Theme.Sherlock.Light Apr 10 15:42:04 hmm Apr 10 15:42:08 mayb ei just need to clean Apr 10 15:42:12 when i added abs, my button got fucked up Apr 10 15:42:13 :P Apr 10 15:46:14 I have now made a module from the source folder "library", and I have the moudle visible in the IDE, but no one of the imports work. I get red allover the place, still. Apr 10 15:50:26 hm. apperent if you cuddle with the mac it does what it should. everything works now -.- Apr 10 15:50:34 I hope. Apr 10 15:50:49 grr Apr 10 15:50:53 how do i... oh shit Apr 10 15:51:18 cuddle? Apr 10 15:51:22 are you asking how to cuddle? Apr 10 15:51:30 are you offering to show me? Apr 10 15:51:42 ;) Apr 10 15:52:06 still getting noClassDefFoundError with map views on 4.0.3 even though I'm using api 15 google apis Apr 10 15:52:38 trying to use android.security.MessageDigest Apr 10 15:54:21 Anyone had this before ? : Not enough space to show ad! Wants: <480, 75>, Has: <0, 800> Apr 10 15:54:44 0x800 is how I would like all ads to show up. Apr 10 15:54:53 is it possible that the error is because I'm testing on a cyanogen modded phone? Apr 10 15:55:24 it's possible Apr 10 15:55:37 CallumTaylor: stacktrace Apr 10 15:55:41 Try in the emulator Apr 10 15:55:44 sec Apr 10 15:55:51 If it works, it's probably cyanogemmod Apr 10 15:55:56 http://pastebin.com/h2wWNL9c Apr 10 15:55:57 [11:54:43] 0x800 is how I would like all ads to show up. Apr 10 15:55:58 are fragmenttransactions asynchronous? Apr 10 15:56:02 but without ads, i cant provide you with awesome free stuff :( Apr 10 15:56:04 ok ill give it a go Apr 10 15:56:08 although google maps works Apr 10 15:56:09 Yes, siyb Apr 10 15:56:49 canadiancow|work: its not free if it kills my brain cells with flashing annoying animations, and sends my data to some company which creates profiles Apr 10 15:57:05 so pay for the ad free version :) Apr 10 15:57:11 SimonVT: thought so. can i make them synchronous? Apr 10 15:57:31 canadiancow|work: I offer my main app for free and people are still buying it. Apr 10 15:57:48 without dirty hacks like post(...) Apr 10 15:57:59 siyb: FragmentManager.executePendingTransactions Apr 10 15:58:22 SimonVT im getting exceptions because im not using SherlockActivity Apr 10 15:58:33 04-10 11:57:19.769: E/AndroidRuntime(24410): Caused by: java.lang.IllegalStateException: SherlockFragment must be attached to a SherlockFragmentActivity. Apr 10 15:58:45 That's cus you're using SherlockFragment Apr 10 15:58:45 SimonVT: thanks a lot :> Apr 10 15:58:49 no Apr 10 15:58:57 i copied the code into my own fragment Apr 10 15:59:09 oh Apr 10 15:59:10 i see Apr 10 15:59:11 lol Apr 10 15:59:13 So.. Don't copy the exception? Apr 10 15:59:23 haha :) Apr 10 15:59:34 hello world Apr 10 15:59:36 Sheez, copy paste developers.. They're everywhere Apr 10 15:59:44 srs Apr 10 16:00:04 copying and pasting should make your skin crawl, as should any code duplication ;/ Apr 10 16:00:05 i know right Apr 10 16:00:12 this isnt really duplication Apr 10 16:00:16 as im not using the class im taking it from Apr 10 16:00:30 project A depends on B depends on C Apr 10 16:00:37 and there's a CActivity, BActivity Apr 10 16:00:43 but i cant stick ABS in C Apr 10 16:00:46 ugh Apr 10 16:00:51 BActivity extends CActivity Apr 10 16:00:53 fuck my life, its the cyanogen mod Apr 10 16:00:57 this isn't good Apr 10 16:02:17 sanity check: in order to build my project with ABS, i have to have the ABS project loaded into eclipse on every machine in which i develop Apr 10 16:02:34 can't just drop a jar in libs once it's setyp on one machine Apr 10 16:02:46 That's right Apr 10 16:02:53 krikey Apr 10 16:03:03 yep. Apr 10 16:03:10 o well, it is what it is Apr 10 16:03:27 Hopefully r19 will bring resources in jars Apr 10 16:03:44 * wongk crosses fingers Apr 10 16:04:08 nice thing about ActionBarCompat, once the source is merged in the tree, it lives nicely in git Apr 10 16:04:50 is the right way to connect the View to Model as follow : the Model notify the View that new data are available and the View ask the Model the data ? Apr 10 16:04:55 ActionBarCompat? Apr 10 16:05:25 cause up to now ... the Model put the new data in the View by the notification Apr 10 16:05:32 canadiancow|work: the Android sample that is a lightweight alternative to ABS Apr 10 16:05:49 ah Apr 10 16:07:52 so, how is ABS better than ABC? Apr 10 16:08:02 * Ge0rG got his APK size doubled by ABS :( Apr 10 16:09:04 I have a library project in my workspace, and two projects uses this library. When a make changes to the class files in the library, how can i rebuild the jar files so that the two other projects can use the new methods/members? Apr 10 16:09:35 Ge0rG, ABS i a full AB implementation Apr 10 16:09:38 is Apr 10 16:11:40 canadiancow|work: I know. but what is ABC? just a mockup? Apr 10 16:11:57 i think its a realy simple version Apr 10 16:13:08 odd... onCreateOptionsMenu is final in SherlockFragmentActivity, but not SherlockActivity Apr 10 16:13:36 what? Apr 10 16:13:43 are you sure there arent two? Apr 10 16:13:46 becuase i just overrode it Apr 10 16:13:51 The native is final in both Apr 10 16:14:08 The one that takes ABS parameters isn't in either Apr 10 16:16:20 i see the issue Apr 10 16:16:34 hi guys, i got a galaxy note. i seem to have fscked up my calendar (s-planner) app, as no matter how often i install it or copy it to /system/apps, it just wont appear in the app drawer anymore. any ideas how to get that fixed? Apr 10 16:16:34 So I've made a custom listlayout, how do I use this custom layout and embed it within another layout? Right now I'm simply using that layout for the whole screen but would like to use some of it for something else. Apr 10 16:16:55 cube_: #android #android-root Apr 10 16:17:20 just needed to port the imports Apr 10 16:18:09 SimonVT: tried both already! you guys are the pros! Apr 10 16:19:13 why are buttons on ics so much biggeR? Apr 10 16:21:02 storkme: they have to compensate for something? :-) Apr 10 16:25:38 My problem is, I could easily do it with any normal layout but since this is a custom layout, the layout actually gets created for each item in the list and is then stacked vertically like a list. Not sure how to embed this into yet another layout so I can have buttons beneath. Apr 10 16:25:50 i heard that chicks dig big buttons Apr 10 16:27:31 someone know the answer ? Apr 10 16:27:32 no that's Sir Mix-A-Lot Apr 10 16:27:35 43 ? Apr 10 16:28:05 aLeSD: I don't think anyone here can tell you what's right for your app Apr 10 16:28:16 do what makes sense Apr 10 16:31:14 do any of you guys pseudonamespace your class names when developing for android, or do you just let the package take care of namespacing Apr 10 16:32:51 Can't find anything online, so maybe I'm doing something wrong, but how do you setup gestures on a ListView that will work when the list is empty? Apr 10 16:32:51 I'm using a pretty basic ListActivity with a SimpleOnGestureListener and I'm attaching the listener using "getListView().setOnTouchListener(mGestureListener)" , but that only works when the list view shows up. I tried getting the empty view with "findViewById(android.R.id.empty)" , but that didn't help at all. Apr 10 16:33:27 readme: would there be any reason to not just use packages? Apr 10 16:33:55 readme: ... pseudonamespace? Apr 10 16:34:10 Namespace.Class as a classname Apr 10 16:34:10 evancharlton: XXClassName Apr 10 16:34:19 er, that wouldn't work Apr 10 16:34:29 readme: oh. Why would you do that? Apr 10 16:34:30 dammit guys Apr 10 16:34:34 dont do XXClassName :( Apr 10 16:34:36 it took me 5h already Apr 10 16:34:38 wongk: the reason I can think of is that it instantly identifies whether a class is part of your project or not with zero effort on the part of the maintainer Apr 10 16:34:40 i got a galaxy note. i seem to have fscked up my calendar (s-planner) app, as no matter how often i install it or copy it to /system/apps, it just wont appear in the app drawer anymore. any ideas how to get that fixed? Apr 10 16:34:54 wongk: upon looking at the class name, they know immediately without any inspection that it's your class Apr 10 16:34:58 GrimyHoboSack: you can set the empty view to a custom view Apr 10 16:35:00 readme: name classes sensibly. if it makes sense to use FooClassName then use that Apr 10 16:35:21 I'm debating over whats sensible right now for this Apr 10 16:36:10 Why would you need that ;O You got packages Apr 10 16:36:15 readme: seems like good practice to put those NIH classes in a different package Apr 10 16:36:41 yeah, I always use separate packages Apr 10 16:36:48 regardless of whether I use a pseudo-namespace Apr 10 16:36:57 wongk: Thanks, I'll try that. Apr 10 16:44:01 So I've made a custom listlayout, how do I use this custom layout and embed it within another layout? Right now I'm simply using that layout for the whole screen but would like to use some of it for something else. Apr 10 16:44:21 Like you'd use any other layout Apr 10 16:45:56 I'd like to have a table drawn in my layout...how would I do that? Apr 10 16:46:44 SimonVT: But how? Right now I'm using my row / list layout as my entire layout. These rows gets added as items are added. Apr 10 16:47:54 john_doe_jr: TableLayout? Apr 10 16:48:24 evancharlton: well, I'd like to have have the actual line drawn on the layout in a table like fashion Apr 10 16:48:33 cube_: wrong channel. Try #android or #android-root Apr 10 16:48:52 Moopz: ? ? not sure what you're asking Apr 10 16:51:12 SimonVT: I have this layout: http://pastebin.com/ubM3r02h - and my adapter looks like this: http://pastebin.com/np7GKnja - Right now I simply add list elements and it gets added, however I cannot seem to grasp how to use this layout within a different one. Apr 10 17:00:45 It appears that http://developer.android.com/reference/android/telephony/TelephonyManager.html#EXTRA_STATE_RINGING is not a boolean value but an int? 2 questions: how can I see the type of extras in the documentation? it seems not to be there. also, why is it an int, and not a bool? Apr 10 17:02:45 hm, it's not an int either Apr 10 17:02:47 maybe it's just not sent. Apr 10 17:03:29 public static final http://developer.android.com/reference/java/lang/String.html EXTRA_STATE_RINGING Apr 10 17:03:47 birbeck: public static final String is the type of the key Apr 10 17:03:51 I am interested in the type of the value Apr 10 17:04:24 but so far, I don't think it is even being sent. I could be wrong Apr 10 17:04:39 public static final int CALL_STATE_RINGING Apr 10 17:05:29 I assume that value corresponds to EXTRA_STATE, and the documentation does say it corresponds to EXTRA_STATE_RINGING, but I do not understand *why* that extra would need to be an int Apr 10 17:05:36 further, the value is not being sent Apr 10 17:05:52 that extra could be a boolean and retain the same value. Apr 10 17:06:11 functional value, that is, not literal. Apr 10 17:06:20 *sigh* I've got two reports from kindle users now, that they can't enter negative numbers into a android:inputType="number|numberSigned|numberDecimal" field, Apr 10 17:08:09 Oh wait, there's "retreiveWith" Apr 10 17:08:15 Never mind. Apr 10 17:13:21 EXTRA_STATE is a String and EXTRA_STATE_(IDLE|RINGING|OFFHOOK) are possible values. Apr 10 17:13:46 and CALL_STATE_RINGING is used by the TelephonyManager, but useless to someone implementing their own Receiver. Apr 10 17:13:51 CALL_STATE* etc. Apr 10 17:13:57 does anyone of you have a suggestion for a nice API to make my own map ? Apr 10 17:14:15 You mean you don't want to use Google Maps? Apr 10 17:14:31 I do, but I was told I can't make my own custom map - and have to use the world map they provide Apr 10 17:15:03 Insayne: you mean custom tiles? Apr 10 17:15:08 yeah Apr 10 17:15:14 and offline too Apr 10 17:16:36 any idea if you can use the regular mapview to do so ? Apr 10 17:16:46 I highly doubt it Apr 10 17:17:27 and there is no API that can aid me in this? Apr 10 17:18:06 the closest you can do is just overlay your own tiles on the mapview Apr 10 17:18:19 with full alpha Apr 10 17:18:28 but you still need to write your own code to do that Apr 10 17:18:39 or convince someone else who's done it (cough cough) why they should share their code ;) Apr 10 17:19:15 *ahem* cause I would like to learn and share different-than-realworld maps with people Apr 10 17:19:50 woah, ABS tripled the size of my app vs. ActionBarCompat Apr 10 17:20:12 and quadrupled the awesomeness Apr 10 17:20:14 also: your app is small Apr 10 17:20:19 wongk: so, what is ABC missing compared to ABS? Apr 10 17:20:19 it is very small Apr 10 17:21:03 Ge0rG: i did not do a feature comparison Apr 10 17:21:04 well how hard would it be to make a pinch to zoom, and load another resource as soon as a certain zoom level was reached? Apr 10 17:21:26 wongk: It must be missing something, or not? Apr 10 17:21:38 i would assume so Apr 10 17:21:54 like, does imageview have a zoom by default? Apr 10 17:22:52 All ABC does it show an actionbar with an icon, title and action items Apr 10 17:23:01 Check the ActionBar docs for everything it doesn't do Apr 10 17:23:32 which is exactly what i needed, so i haven't noticed any missing features :P Apr 10 17:23:58 * Ge0rG already had to replace the title with a custom view to embed an additional icon. Apr 10 17:24:03 if ABS tripled the size of your app you're still under 1MB so you have nothing to worry about Apr 10 17:24:12 i am indeed Apr 10 17:24:16 way under Apr 10 17:24:21 I can memorize more Dalkvik than that Apr 10 17:24:50 lol Apr 10 17:24:55 im not saying it's a problem, just making an observation Apr 10 17:25:26 People just don't care about size any more. Apr 10 17:25:27 observations are woreless without intent Apr 10 17:25:32 i do Apr 10 17:25:35 she does Apr 10 17:25:37 * Jug6ernaut stops Apr 10 17:25:51 maybe about waist size, but not apk size... Apr 10 17:26:23 Jug6ernaut: you can safely ignore my observations, then :P Apr 10 17:27:59 * Jug6ernaut does Apr 10 17:29:23 triple your size! for free! Apr 10 17:29:39 so I assume double buffering causes this? http://i.imgur.com/I5sUV.jpg .it doesnt look good in motion. I don't understand... Apr 10 17:29:53 those things are going from right to left Apr 10 17:29:59 30fps Apr 10 17:33:49 and a screenshot http://imgur.com/9Xrs6 Apr 10 17:34:54 zapa123 make a video...i cant tell what ur problem is Apr 10 17:38:30 Hurray, found my problem. onFling wasn't firing on my TextView because onDown in the SimpleOnGestureListener was apparently capturing the event. Overrode onDown to just {return true;} and it's working now. Apr 10 17:47:36 [proguard] *** can't find enclosing method 'void surfaceCreated(android.view.SurfaceHolder)' in class *** Apr 10 17:47:36 hi all, has anyone worked with the accelerometer api before? Specifically, can it detect that say, it just moved upwards 3 feet? Apr 10 17:47:51 Anyone know how to go about fixing this? I have a couple overrides of surfaceCreated in my app Apr 10 17:49:53 a Toast can be used without an Activity. I need a dialog that can be raised and dismissed programmatically without an Activity. Like a toast, except without a time limit. Apr 10 17:50:07 How can I do this? Apr 10 17:50:50 Jug6ernaut: yeah im uploading Apr 10 17:51:41 readme: Sounds like you should be using a notification Apr 10 17:51:56 SimonVT: a notification won't suffice for this. It needs to be in the users face. Apr 10 17:52:17 I understand this debate and don't want to have it. I'm certain this is the UX I want and I've seen my competitor do it and I am full well intent on doing so. Apr 10 17:52:22 Currently reading Toast.java for clues. Apr 10 17:52:49 ^_^ Apr 10 17:52:55 AlertDialog doesn't require an activity does it? Apr 10 17:53:05 It crashed when I tried it, and the page says a lot about activities. Apr 10 17:53:07 just a context Apr 10 17:53:16 oh Apr 10 17:53:28 I'll try it once more Apr 10 17:54:15 Jug6Alt: Apr 10 17:54:22 jug Apr 10 17:54:28 http://www.youtube.com/watch?v=eMO1hVfR8II Apr 10 17:54:49 readme: the docs are kinda fuzzy on the matter Apr 10 17:54:58 doens't say explicitly one way or the other Apr 10 17:54:59 Toast.java has some weird code in it. Apr 10 17:55:07 here you can see it clearly. if you pause video at anytime you see how everything is doubled. its too visible Apr 10 17:55:30 so its probably because double buffer? it doesnt work well for this, what i can do? Apr 10 17:55:59 Java question: Is there any way to turn an ISO country code into an ISO language code? Apr 10 17:57:29 Chronax: like US -> en_US? How would that be possible? Apr 10 17:57:37 country != language Apr 10 17:58:00 Chronax: let me know how you would do that for someplace like switzerland, with 4 languages Apr 10 17:58:11 or like the US Apr 10 17:58:13 es_US Apr 10 17:58:19 don't be rediculous Apr 10 17:58:26 there's only one language here, Merkin. Apr 10 17:58:32 and if you don't like it, you can GIIIIIT OOUUUUTTTTT Apr 10 17:58:34 I won't be (though I will be ridiculous) Apr 10 17:58:42 ridiculous Apr 10 17:58:49 http://r-i-d-i-c-u-l-o-u-s.com/ Apr 10 17:58:51 what is the best way to implement multi-touch (pinch to zoom), double tap to zoom/dezoom, for a big image? Apr 10 17:58:56 * lov points himself to rediculous.theworstpossibleway.com Apr 10 17:58:59 I really should make that Apr 10 17:59:08 Oops! Google Chrome could not find r-i-d-i-c-u-l-o-u-s.com Apr 10 17:59:30 canadiancow|work: yeah, I keep meaning to make it (like http://d-e-f-i-n-i-t-e-l-y.com/) Apr 10 18:00:29 just a quick question on hardware ... can I use a Mac PPC G5 running ubuntu to build kernels and roms on? are there SDK or build chains that will work with it? Apr 10 18:00:59 donavan01: I doubt it, but I don't know that for a fact Apr 10 18:02:16 ludiciris Apr 10 18:02:25 ! Apr 10 18:05:10 anyone know how to use parcels in c++? Apr 10 18:06:04 Jug6ernaut: i linked a video Apr 10 18:06:29 How do those apps work that have OSD display? I've seen for example a CPU monitor that draws the CPU usage with a nx1 line of pixels underneat the notification bar Apr 10 18:06:52 basically, how can I display something OSD without grabbing the focus Apr 10 18:07:32 windowmanager hacks Apr 10 18:08:24 lov: it's not a hack :-/ Apr 10 18:08:25 grr my setProgressBarVisibility(false) isn't working Apr 10 18:08:26 it's a public API Apr 10 18:08:37 readme: you can draw Views from Services Apr 10 18:08:52 a hack cant be a public api? Apr 10 18:08:56 zapa123 what is your problem? Apr 10 18:09:16 double image when played on device Apr 10 18:09:25 evancharlton: where should I look to learn how? Apr 10 18:09:28 birbeck: there's nothing hacky about using it Apr 10 18:09:44 so will an AlertDialog work from a Service, for example? Apr 10 18:09:53 Not that I advocate that for most uses Apr 10 18:10:01 and no double image when i use the emulator Apr 10 18:10:09 in 99% of scenarios doing that would be a bad idea, ftr/. Apr 10 18:10:12 zapa123 i can see it...BUT double buffering shouldnt cause that issue unless mayb your not clearing your buffer when u do a free skip Apr 10 18:10:17 readme: yeah, it would. You shouldn't do it. Apr 10 18:10:18 evancharlton: cool, ill remember that point in my next code review Apr 10 18:10:18 cant* Apr 10 18:10:23 evancharlton: yeah yeah Apr 10 18:10:27 its not a hack, its a public api :) Apr 10 18:10:27 evancharlton: it'll confuse the SHIT out of a user, and I'd really recommend that android guard/disable that codepath in future versions Apr 10 18:10:33 ok, I was trying to do it from a BroadcastReceiver. I suppose that's my problem. Apr 10 18:10:37 because down that road lies horrific malware Apr 10 18:11:27 lov: there are a lot of APIs that can be abused Apr 10 18:11:28 I'm making a caller id app and I need to display a dialog on the screen for the duration that the call received screen is displayed for. So I set up a BroadcastReceiver to monitor the phone state. Apr 10 18:11:38 is that really a misuse of this pattern? I don't think it is. Apr 10 18:11:45 lov: zomg I can write an app which rm -rf /sdcard Apr 10 18:11:51 we should totally remove sd card apis Apr 10 18:12:31 evancharlton: there's a difference between disruptive and scummy Apr 10 18:12:40 readme: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#TYPE_SYSTEM_ALERT http://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW Apr 10 18:12:44 readme: start there Apr 10 18:12:47 evancharlton: thanks Apr 10 18:12:49 Do you guys use Java/droid sdk fulltime or does anyone here use any other frameworks such as titanium etc.? Apr 10 18:12:49 I'm envisioning an app that will listen for activitymanager to say that intent X has started, and will display a fullscreen ad Apr 10 18:12:55 anyone know a good "tutorial activity" not a tutorial on how to make one, but one for the user Apr 10 18:12:59 the user will have no fucking clue where that ad came from, and will blame a totally innocent app Apr 10 18:13:05 lov: you can do that with READ_LOGS Apr 10 18:13:10 s/intent X/activity X/ Apr 10 18:13:12 lov: maybe you should not imbue peoples intentions with malice before you even know what they are. Apr 10 18:13:16 Jug6ernaut: i do use frame skipping. hmm Apr 10 18:13:24 stoned: i have never used anything except native sdks Apr 10 18:13:30 lov: you could also do that with PACKAGE_ADDED or whatever it is Apr 10 18:13:35 :| Apr 10 18:13:42 I'm using the READ_LOGS thing as an example for a trigger Apr 10 18:13:52 point is, user can't long-press home and see, oh, it was XYZ blocking my UI Apr 10 18:13:56 I'm interested in 2d game dev for iphone and droid Apr 10 18:14:01 What tools would you recommend? Apr 10 18:14:02 because it's injected straight into the windowmanager Apr 10 18:14:17 zapa123 it somewhere in your drawing, double buffering will not be ur issue, as its just swapping out frame buffers, instead of drawing directly to screen u draw to a buffer Apr 10 18:14:18 stoned: I'd recommend going to d.android.com, and calling it "android" since "droid" is a verizon marketing term Apr 10 18:14:21 lov: isn't that why there's a permission? Apr 10 18:14:21 anyone know how to use parcels in c++? Apr 10 18:14:27 evancharlton: users look at permissions? Apr 10 18:14:33 lov: ok Apr 10 18:14:35 lov: users look at anything? Apr 10 18:14:39 ^^ Apr 10 18:14:41 stoned learn opengl Apr 10 18:14:43 lov: I don't own android Apr 10 18:14:49 I have an iphone Apr 10 18:14:54 Jug6ernaut: how i should clear my buffer? Apr 10 18:14:54 I didn't know Apr 10 18:15:05 stoned: if you're going to develop on the OS you should at least know what the hell it's called Apr 10 18:15:08 zapa123 using opengl? Apr 10 18:15:10 you joined #android-dev, not #droid-dev Apr 10 18:15:13 guessing no? Apr 10 18:15:17 Jug6ernaut: no just sdk Apr 10 18:15:21 lov and why is this such a sore point? Apr 10 18:15:25 so canvas? Apr 10 18:15:27 yes Apr 10 18:15:43 Does it stop being android b/c someone called it droid? Apr 10 18:15:45 I find it obnoxious, like using Comic Sans or calling your phone an ipod Apr 10 18:15:51 Silly arguments ... Apr 10 18:15:53 u shouldnt need to clear the canvas, you must be just drawing hte image twice? Apr 10 18:16:13 anyhoo, d.android.com Apr 10 18:16:22 WAI IS ACTIONBAR SO HARD Apr 10 18:16:25 the preferred setup is java / eclipse Apr 10 18:16:30 but you can use C++ if you're a masochist Apr 10 18:16:30 lov, sounds like a personal problem to me. You're too wound up. Relax and take a walk before you pop a nerve b/c of some random irc guy. Apr 10 18:16:33 canadiancow|work abs Apr 10 18:16:36 imo Apr 10 18:16:40 abs doesn't make it easier... Apr 10 18:16:43 or harder? Apr 10 18:16:48 well its not hard Apr 10 18:16:50 I'll call it droid, just to annoy you now. Apr 10 18:16:51 it's true. I should calm down. the 70 hour work weeks aren't helping. Apr 10 18:16:52 abs isnt Apr 10 18:17:06 hey lov i could lighten your load if you want Apr 10 18:17:11 o_O Apr 10 18:17:12 lov is an op :o Apr 10 18:17:12 for that quarter mil salary Apr 10 18:17:20 undercover op Apr 10 18:17:21 lol Apr 10 18:17:41 shitty troll is shitty Apr 10 18:17:42 anyhoo Apr 10 18:17:48 i am a troll Apr 10 18:17:55 just look at my name Apr 10 18:18:00 trololol Apr 10 18:18:07 anyone know how to use parcels in c++? :P Apr 10 18:18:09 stoned: Apr 10 18:18:09 http://www.cocos2d-iphone.org/ Apr 10 18:18:09 http://www.cocos2d-x.org/ Apr 10 18:18:09 http://unity3d.com/ Apr 10 18:18:09 http://www.libsdl.org/ Apr 10 18:18:09 http://sio2interactive.com/ Apr 10 18:18:09 http://www.anscamobile.com/corona/ Apr 10 18:18:10 http://gamesalad.com/ Apr 10 18:18:10 http://www.stonetrip.com/ Apr 10 18:18:14 go play Apr 10 18:18:16 omg Apr 10 18:18:19 please dont do that... Apr 10 18:18:21 *snrk* Apr 10 18:18:26 wtf Apr 10 18:18:26 stoned? Apr 10 18:18:34 some people are having fun Apr 10 18:18:38 i lost my elephant Apr 10 18:18:39 evancharlton: o/ Apr 10 18:18:40 :( Apr 10 18:18:45 mikedg, i found a cow Apr 10 18:18:47 has anyone else used a stripper's piss as bong water? Apr 10 18:18:49 lol evancharlton Apr 10 18:18:50 sigh Apr 10 18:18:50 i have Apr 10 18:18:52 EVERY TIME Apr 10 18:18:57 I need to +b everythingWorks Apr 10 18:18:59 * Jug6ernaut thinks he will leave this madnes...now... Apr 10 18:19:07 eh? Apr 10 18:19:08 i need to +b everything Apr 10 18:19:24 everythingWorks: you're always stealing my tab-complete :( Apr 10 18:19:24 +b ALL the nicks Apr 10 18:19:32 *muahaha* Apr 10 18:19:33 would it be more efficient to have sharepreferences with a different file for every character (a character creation app) or a database Apr 10 18:19:33 mikedg: maybe its in the room Apr 10 18:19:54 i dont know, noones talking about it Apr 10 18:20:26 this place needs more +b Apr 10 18:20:46 how do you create rectangle shap in android? Apr 10 18:20:56 canvas.drawRect() Apr 10 18:21:31 why does actionbar progress not work for me Apr 10 18:21:34 T_T Apr 10 18:21:46 cause you dont know how to use it? Apr 10 18:21:50 +1 Apr 10 18:21:59 a service should inherit the permissions of the application that defines it, correct? Apr 10 18:22:27 hmm I assume I was kicked by a bot for spamming URLs there… sigh Apr 10 18:22:34 yea...a bot... Apr 10 18:22:34 TheBunny: dude, I'm not a bot Apr 10 18:22:47 hmm then why did you kick me? Apr 10 18:22:47 dragorn: permissions go with the application, not the service. So, yes. Apr 10 18:22:49 dragorn: yes Apr 10 18:22:54 evancharlton: that's what I thought Apr 10 18:22:58 TheBunny: for spamming URLs Apr 10 18:23:09 FFS I give up trying to help people then Apr 10 18:23:33 thanks... having a weird bug, just trying to confirm my thinking is straight before I waste more time on it Apr 10 18:23:48 TheBunny: awesome, you just became closer to nirvana. Apr 10 18:24:05 ActinoBarSherlock: I use "split action item", and wants the middle menu item to be a "list navigation", anybody who can guide me? Apr 10 18:25:15 TheBunny: try to help with fewer than 3 lines at a time Apr 10 18:26:36 "/ignore -channels #android-dev * JOINS PARTS QUITS NICKS" Apr 10 18:26:48 JERKS Apr 10 18:26:51 lol, sorry Apr 10 18:27:13 :> Apr 10 18:27:27 son of a Apr 10 18:27:32 bitch Apr 10 18:27:36 I hate when I cant see the answers over all joins :P Apr 10 18:27:46 s/set/setSupport/ Apr 10 18:27:51 lolol Apr 10 18:29:57 SimonVT: I heared you knew about ABS, ActinoBarSherlock: I use "split action item", and wants the middle menu item to be a "list navigation", anybody who can guide me? Apr 10 18:30:46 I have no idea Apr 10 18:31:48 when i pause the game and when pause doesnt draw anything else than "Paused" string this happens http://www.youtube.com/watch?v=ZpRSSBGmJls what possibly can cause this? Apr 10 18:32:35 i cant figure it out Apr 10 18:32:41 how do i make the damn progress bar show up in ABS Apr 10 18:33:09 I just the actionbar, but splitted, with 3 menu elements. But there are no xml files I see that i can edit to get the textview in there. :( Apr 10 18:33:31 canadiancow|work: The indeterminate one? Apr 10 18:34:01 zapa123: you're probably still swapping buffers. Apr 10 18:34:07 i want the horizontal to be indeterminate Apr 10 18:34:11 zapa123: but it's your graphic engine, you should know what's going on here Apr 10 18:34:12 but for now, i'll settle for just the horizontal one Apr 10 18:34:20 This may sound like a stupid question, but is it possible to receive a call from the same phone number twice, during the duration of the phone call with that same number? Apr 10 18:34:23 zapa123: there's really nothing we can do to help you aside from general guidance Apr 10 18:34:33 readme: I'm not quite sure what you mean but yes, probably Apr 10 18:34:37 hm Apr 10 18:34:52 lov: well if it wasn't I could use a hashmap to store my notifications for each number Apr 10 18:34:58 canadiancow|work: requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setSupportProgressBarINdeterminate(true) ? Apr 10 18:34:58 now I need something more complicated Apr 10 18:35:11 readme: I'd recommend you just do that anyway Apr 10 18:35:11 no i dont want the spinning indeterminate Apr 10 18:35:19 i concur Apr 10 18:35:20 oh-kay Apr 10 18:35:25 its too easy to turn it down. Apr 10 18:35:27 having a number call you while you're on the line with that number is a possible but really pathological case Apr 10 18:35:42 you could always have some sort of "overflow" member variable for really weird cases like that Apr 10 18:35:47 but the hashtable is gonna be simplest Apr 10 18:36:19 yeah i like that idea Apr 10 18:36:22 one extra var just incase Apr 10 18:36:37 could make it an arraylist or something Apr 10 18:36:43 if you're getting the same number calling, it might happen again Apr 10 18:37:01 i'll see what happens without the feature Apr 10 18:37:05 ok SimonVT i have it showing up determinately Apr 10 18:37:09 I'm really curious why you're considering this case in the first place. Apr 10 18:37:37 ;d Apr 10 18:37:50 lov: my brain can't help it Apr 10 18:38:41 SimonVT http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate(boolean) Apr 10 18:39:10 MAYBE THIS IS AN ABS BUG Apr 10 18:39:29 MAYBE Apr 10 18:39:29 *cough* JakeWharton *cough* Apr 10 18:39:31 WHY ARE WE SHOUTING Apr 10 18:39:36 I DONT KNOW Apr 10 18:39:57 who dat is Apr 10 18:40:30 http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate(boolean) JakeWharton Apr 10 18:40:33 or setSupport... Apr 10 18:40:35 R Apr 10 18:40:36 T Apr 10 18:40:36 F Apr 10 18:40:37 M Apr 10 18:40:42 :( Apr 10 18:40:53 all of those calls have to be prefixed with support Apr 10 18:41:04 YES Apr 10 18:41:06 AND IT IS Apr 10 18:41:08 AND IT'S NOT WORKING Apr 10 18:41:10 because somebody decided to make them final Apr 10 18:41:17 are you requesting the proper window feature? Apr 10 18:41:20 using the correct import? Apr 10 18:41:26 yes Apr 10 18:41:32 i can get the non-indeterminate one showing Apr 10 18:41:36 hey guys Apr 10 18:41:41 much as I want to see you smooching Apr 10 18:41:43 but setSupportProgressBarIndeterminate(true) does nothing Apr 10 18:41:45 can you get a room or /msg or something Apr 10 18:41:57 /msg lov i'd like to get a room with you ;) Apr 10 18:41:59 whoops Apr 10 18:42:06 or maybe yell at each other in Canada DRY so that my phone blows up Apr 10 18:42:09 that'd be great too Apr 10 18:42:11 LOL Apr 10 18:42:13 haha Apr 10 18:42:41 oh lov, y u so silly Apr 10 18:43:26 canadiancow|work: http://imgur.com/ehBIF Apr 10 18:44:00 lol Apr 10 18:45:29 ActinoBarSherlock: I use "split action item", and wants the middle menu item to be a "list navigation", anybody can guide me? Apr 10 18:45:34 ok so can you make the actionbar's horizontal progress bar indeterminate? Apr 10 18:45:37 docs seem to indicate you can Apr 10 18:45:41 but it dont seem to worky Apr 10 18:46:42 You can use an indterminite one in the action bar, but I don't think it turns the horizontal bar into one Apr 10 18:46:56 http://developer.android.com/reference/android/app/Activity.html#setProgressBarIndeterminate(boolean) Apr 10 18:47:00 Sets whether the horizontal progress bar in the title should be indeterminate (the circular is always indeterminate). Apr 10 18:47:05 I think it uses an action item Apr 10 18:47:19 hrmm Apr 10 18:47:48 Meh, now I'll have to actually try it Apr 10 18:50:01 if it's not supported, i'll probably just increment it from 0 to 10000 until it's done Apr 10 18:50:51 oh son of a bitch Apr 10 18:50:56 the new tools STILL DONT WORK WITH MY JAVA PATH Apr 10 18:51:08 Why can't you just use the cirular one? Apr 10 18:51:34 hey, how can I draw a shape using the shape property in xml? Apr 10 18:51:56 t0mless, because it takes up valuable space Apr 10 18:53:45 You take up valuable space. Apr 10 18:55:03 canadiancow|work: are you trying on ICS? Apr 10 18:55:08 yes Apr 10 18:55:17 i cant even get it working without ABS Apr 10 18:55:20 *sigh* Apr 10 18:55:24 good Apr 10 18:55:26 for me Apr 10 18:55:29 bad for you Apr 10 18:55:31 :) Apr 10 18:56:53 how do you draw rectangles in android? Apr 10 18:57:01 canvas.drawRect Apr 10 18:58:22 jakeWarton.writeCode(); Apr 10 18:59:10 false Apr 10 18:59:26 mJakeWharton.writeCode(); Apr 10 18:59:46 IllegalStateException Apr 10 19:00:15 mIRC.getUser("JakeWharton").writeCode(); Apr 10 19:00:30 catch( JakeWhartonDrunkException ) { throw new BadCodeException( absSource ); } Apr 10 19:00:39 hahaha wow Apr 10 19:00:46 lol Apr 10 19:01:45 \scumbagwavesonics{insults JakeWharton's code}{with invalid Java} Apr 10 19:02:22 It's called "Computer Modern" but it makes your document look archaic. Discuss. Apr 10 19:02:29 ;) Apr 10 19:02:37 evancharlton, only his drunk code :P Apr 10 19:03:10 ctate: you think that's crazy? one drives on a parkway and parks on a driveway! Apr 10 19:03:32 Computer Modern "was most recently updated in 1992". Irony is a harsh mistress. Apr 10 19:04:04 so i think i found a bug in ICS Apr 10 19:04:07 and honeycomb? Apr 10 19:04:14 although i havent tested hc Apr 10 19:04:15 want a cookie? Apr 10 19:04:22 no, i want to file a bug report Apr 10 19:04:26 but im too busy Apr 10 19:04:26 b.android.com Apr 10 19:04:26 what is it? Apr 10 19:04:44 b.android -> bandroid Apr 10 19:04:54 ctate: better than comic sans Apr 10 19:05:01 it was introduced in the 90s but only makes you look like a joke Apr 10 19:05:25 lov: http://www.mcsweeneys.net/articles/im-comic-sans-asshole Apr 10 19:05:46 YES Apr 10 19:05:50 * ctate | Metafont has a versioning system similar to that of TeX, where the number asymptotically approaches e with each revision. Apr 10 19:06:04 that's the geekiest thing i've read in a long time Apr 10 19:06:07 you say that like it's a good thing Apr 10 19:06:09 and that's despite working at Google Apr 10 19:06:47 ctate: there's some piece of software that uses an oscillating function that approaches some number as x -> inf Apr 10 19:06:48 (TeX versions approach π) Apr 10 19:07:35 I can't remember any more details, but it's really confusing because then you can have X > Y, but |X-N| < |Y-N| is what matters Apr 10 19:07:59 it was some idiotic OSS, of course Apr 10 19:10:35 hahah Apr 10 19:10:44 I filed a bug yesterday, but someone already fixed it :( Apr 10 19:11:00 selfish people Apr 10 19:11:04 aw Apr 10 19:11:15 no fun Apr 10 19:24:39 q, am trying to deserialize JSON from within my android app and am getting a "Could not find class 'com.google.gson.GsonBuilder'" error, and an java.lang.NoClassDefFoundError: com.google.gson.GsonBuilder exception Apr 10 19:25:07 what am I doing wrong? I added the Gson JAR to the java build path for the project Apr 10 19:25:10 and no dice Apr 10 19:25:19 (am using eclipse) Apr 10 19:25:47 canadiancow|work: ahoy Apr 10 19:26:14 also, the past two updated to the emulator fixed the issues I was having running ICS in-emulator so wanted to give a big thanks to the Android dev tools team Apr 10 19:26:28 What is "android:taskAffinity" for? Apr 10 19:26:34 the GPU emulation is pretty sweet so far too, :) Apr 10 19:27:18 I read the stackoverflow threads and tries their fixes, so far nothing has worked Apr 10 19:27:20 anyone know how to use parcels in c++? :P Apr 10 19:27:25 (for the Gson thing) Apr 10 19:27:39 nebkat: i do, but what the heck are you doing? :) Apr 10 19:27:57 ctate: trying to hack the appwidget system? lol Apr 10 19:28:03 also, just using Parcel, or are you writing native Binder code? Apr 10 19:28:11 binder yup Apr 10 19:28:17 yeah that's not gonna end well Apr 10 19:28:24 well anyway Apr 10 19:28:27 im trying to do this Apr 10 19:28:40 bindappwidgetid thing Apr 10 19:28:50 pass a parcel to an executable Apr 10 19:28:52 anyway, i'd suggest you dig into the AOSP sources and look at the way the handwritten native Binder users are written Apr 10 19:29:01 ctate: I dont know c++ Apr 10 19:29:07 :P Apr 10 19:29:08 what do you mean by "pass a parcel to an executable"? Apr 10 19:29:11 you don't know c++ Apr 10 19:29:16 wtf are you doing Apr 10 19:29:19 a parcel is just a chunk of serialized data Apr 10 19:29:30 whan should i use Log.i vs Log.v ? Apr 10 19:29:38 how are you coding for the NDK if you don't know c++ o_O Apr 10 19:29:43 (with some smarts about how to handle file descriptors and binders) Apr 10 19:29:43 As4xk, it's all log levels Apr 10 19:29:46 or at least C? Apr 10 19:29:50 As4xk, pick levels you want to use, use log levels to filter them Apr 10 19:29:54 ctate: idk... I need to get the parcel to the binder_transact executable and then transact that to the appwidget service Apr 10 19:30:05 As4xk: howeve ryou want, really. in theory you use .v for the most verbose chatty random stuff, .i for legitimately informative Apr 10 19:30:16 pfn: so there is no "standard" for what information is verboce and what is info? Apr 10 19:30:19 .d for debug logs that fall between those in terms of chattiness Apr 10 19:30:28 really, I thought .d was more verbose than .v Apr 10 19:30:29 .w for actual warning, and .e only for bona fide serious errors Apr 10 19:30:33 As4xk, there isn't Apr 10 19:30:35 .v is the most verbose Apr 10 19:30:40 (by convention) Apr 10 19:30:42 anyone? even a good tutorial for importing third party libraries into an android app would be sweet just so I can double-check that I didn't do anything stupid Apr 10 19:30:46 seems a bit odd, but ok Apr 10 19:30:54 ctate: what would be the simplest way to marshall a java parcel and then unmarshall it in c++? Apr 10 19:30:59 is .d dropped when the application isn't in debug mode? Apr 10 19:31:05 As4xk: no Apr 10 19:31:05 james541: jars, or android library projects Apr 10 19:31:17 is everything droppen when logcat is not connected? Apr 10 19:31:21 nebkat: what you're saying doesn't even make sense. there's no such thing as a parcel "to" something, and there is no "binder_transact" executable. Apr 10 19:31:22 readme: Gson comes in a jar, so jars I guess Apr 10 19:31:24 james541, drop it in libs of your project Apr 10 19:31:30 or does is log it to someehre anyway? Apr 10 19:31:31 ctate: no im making my own Apr 10 19:31:32 james541, then add the jar to your project's build path Apr 10 19:31:33 james541: with a jar, if you're using eclipse, you just create a directory, drop the jar in, and right click the jar and select add to build path. Apr 10 19:31:33 let me show you Apr 10 19:31:35 pfn: the raw jar? Apr 10 19:31:40 james541, yes, the jar Apr 10 19:31:44 the compiled jar Apr 10 19:31:47 and like i said: a Parcel is just serialized data. Apr 10 19:31:51 pfn: will do, thanks Apr 10 19:32:21 thanks nebkat pfn and ctate :) Apr 10 19:32:21 ctate: I know Apr 10 19:32:29 ctate: I have this Apr 10 19:32:29 http://pastebin.com/XsQc523C Apr 10 19:32:54 wait, wuh? do I make a "lib" folder in my project root and plop it there? Apr 10 19:33:05 how can I get a parcel, like on line 29, from a marshalled parcel in java? Apr 10 19:33:07 james541, a libs directory Apr 10 19:33:14 I already added it to the project buildpath, but I'll re-add it once it is where it should be Apr 10 19:34:02 nebkat: like i said, go to the AOSP sources and find examples there Apr 10 19:34:18 there filed my bug Apr 10 19:34:23 iirc at least SurfaceFlinger and some of the bluetooth binder components are handwritten in C++ Apr 10 19:34:35 the JAR shows up in "Referenced Libraries" in Eclipse is that what you guys meant? Apr 10 19:34:37 ctate: i've tried that, have been looking at many files, but as i said I dont know any c++ Apr 10 19:34:39 but basically just look for people calling transact from native code Apr 10 19:35:06 is there any reason Theme.Sherlock would affect a Button? Apr 10 19:35:13 don't take this the wrong way, but if you aren't facile with C++ you're not likely to be successful with hacking this stuff. Apr 10 19:35:23 ctate: I have seen many "jobject parcel" stuff, but nothing about the marshalled parcel Apr 10 19:35:34 I understand that Apr 10 19:35:39 ok, I'll make a libs folder in the project root and drop the jar there and re-add it to the build path, here goes Apr 10 19:35:41 :P Apr 10 19:35:46 it's a hint, "don't wanna teach you c++" Apr 10 19:35:46 the java-side parcel object just holds a native Parcel object as its underlying storage Apr 10 19:36:03 you can see how it's done in the Parcel native implementation Apr 10 19:36:53 I see that the marshall and unmarshall are native functions Apr 10 19:37:01 but they are in android_util_binder.cpp iirc Apr 10 19:37:06 not in Parcel.cpp Apr 10 19:40:27 ctate: oh well thanks for the tips, I'll get my friend to help me out with it :) Apr 10 19:43:25 also remember that binder stuff has uid-based security applied to it Apr 10 19:43:34 but good luck on whatever you're attempting to hack? :) Apr 10 19:44:07 pfn,readme: that worked thanks Apr 10 19:44:11 all good now Apr 10 19:45:33 canadiancow|work: no Apr 10 19:45:52 cause hwen i switched themes, my button got big Apr 10 19:45:52 :P Apr 10 19:45:58 JakeWharton, how is the plugin working out for you, are you on 0.2.1 yet? Apr 10 19:46:10 I got side-tracked Apr 10 19:46:13 haven't had a chance to work on that project Apr 10 19:47:10 hello all Apr 10 19:47:13 You are awesome. Regards, The Google I/O Team Apr 10 19:47:18 Apr 10 19:47:28 canadiancow|work, eh? Apr 10 19:47:37 well the message was longer - i'm paraphrasing Apr 10 19:47:39 or rewriting Apr 10 19:47:39 * pfn hopes for a last-call contest this year Apr 10 19:48:00 canadiancow|work: here's the message I got Apr 10 19:48:03 Apr 10 19:48:13 JakeWharton any reason the holo theme would fuck my buttons Apr 10 19:48:17 i thin kthe backgrund images are too big Apr 10 19:48:23 but they were shrinking prior to holo'ing Apr 10 19:48:27 probably Apr 10 19:49:50 i'll test it on my nexus one Apr 10 19:50:16 hubroid looks hot on the GN :3 Apr 10 19:51:18 what? Apr 10 19:51:58 haven't had a change to compile it yet Apr 10 19:52:01 chance Apr 10 19:53:21 ctate: it gets run as root ;) Apr 10 19:58:36 nebkat: yeah, okay; then whatever, have fun Apr 10 19:58:45 and just don't let me run your code on my phones :) Apr 10 19:58:52 ctate: lol Apr 10 20:02:12 hi, anyone can give a look at my xml parser? it crashed with a nullpointer exception after i trasformated it into an async task :( Apr 10 20:02:38 alexxio: look at your stack trace first Apr 10 20:02:54 evancharlton: lol, no! don't you know how coding works? Apr 10 20:03:18 you guys should know, asynctasks and xml don't mix Apr 10 20:03:22 Anybody ever use something like an InputMask or something for CC expiry EditTexts? Apr 10 20:03:26 it only says nullpointerexception Apr 10 20:03:30 I'd like to constrict input to MM/YY. Apr 10 20:03:36 alexxio: you lie. Apr 10 20:03:47 alexxio: I guarantee you that is not true Apr 10 20:03:58 wait wait :D i'll explain better Apr 10 20:04:29 iot says a lot of stuff, but talks about lot of packages that don't bring me to the solution :P Apr 10 20:04:33 *it Apr 10 20:04:36 alexxio: I doubt that Apr 10 20:05:27 actually, the incriminated line is : Document doc = parser.getDomElement(xml); Apr 10 20:05:34 where xml is a string Apr 10 20:05:39 I would bet parseer is null Apr 10 20:05:41 parser* Apr 10 20:05:59 i concur Apr 10 20:06:05 null parsers fuck shit up Apr 10 20:06:13 null parsers ftw Apr 10 20:06:21 pull narsers Apr 10 20:06:48 Hello, I'm trying to get proguard working on my app. I have an exception for *** JavaCallback*(...); , which seems to be preserving my main activity's 'public EGLConfigParms JavaCallback_InitEGL(EGLConfigParms RequestedConfig)', however the class EGLConfigParms does not seem to be showing up in my mapping.txt Apr 10 20:07:01 and this of course causes a runtime exception Apr 10 20:07:04 according to logcat, it comes from the parser line: is.setCharacterStream(new StringReader(xml)); Apr 10 20:07:20 alexxio: then is is null Apr 10 20:07:27 is is? Apr 10 20:07:33 yep is is Apr 10 20:07:40 InputSource is = new InputSource(); Apr 10 20:07:57 in the function public Document getDomElement(String xml){ ... } Apr 10 20:08:19 alexxio: congratulations, you're debugging! welcome to programming Apr 10 20:08:23 :P Apr 10 20:08:32 :D Apr 10 20:08:40 sorryyyyy but still i can't understand Apr 10 20:08:50 did you figure out the solution? Apr 10 20:09:15 We got a single line of stack trace, along with 2 semi-related lines code, and you expect us to find a solution? Apr 10 20:09:20 how could I possibly figure out your solution from here? Apr 10 20:09:26 we're mindreaders, duh Apr 10 20:09:33 we have special esp and telepathy powers Apr 10 20:09:42 he only needed to give us the keys to lock in on his mind and computer Apr 10 20:10:11 i thought i was doing some common mistake, so it is not Apr 10 20:10:27 Common mistake is not initializing a variable before using it Apr 10 20:10:31 may i paste the whole passage to pastebin? Apr 10 20:11:17 you should ask pastebin if you can Apr 10 20:11:33 alexxio: yes Apr 10 20:11:41 alexxio: you can always paste to pastebin Apr 10 20:15:21 http://pastebin.com/P6rYUcTa Apr 10 20:15:33 and http://pastebin.com/ND4sS8fv Apr 10 20:16:22 where's your exception Apr 10 20:17:22 i have it :D Apr 10 20:17:26 * g00s runs Apr 10 20:19:43 here http://pastebin.com/yp7tkv0m Apr 10 20:20:14 you passed in a null Apr 10 20:20:36 So getDomElement is returning null Apr 10 20:20:41 no Apr 10 20:20:49 xml passed to getDomElement is null Apr 10 20:21:09 i.e. varDownloadTaskC.getString(...) returns null Apr 10 20:21:59 here i put the class downloadtask: http://pastebin.com/HtPruhEL Apr 10 20:22:23 your line numbers don't match up Apr 10 20:22:28 Heh Apr 10 20:22:36 but your xml input is null Apr 10 20:22:44 you do new StringReader(xml) Apr 10 20:22:44 actually in this last pastebin you can see that i do at the end: Log.v("aaa",response); and response is shown good Apr 10 20:22:46 that xml is null Apr 10 20:22:58 You do know doInBackground is on another thread? Apr 10 20:23:10 As in, it doesn't block on .execute until it's done Apr 10 20:24:01 ? Apr 10 20:24:03 uh, wit … trying to create a new project in the adt but it says 'package name must be specified', yet it is. Apr 10 20:25:59 pfn: when i declade new stringreader(xml), i am supposing xm is not null because it comes from the async request Apr 10 20:26:10 see what SimonVT said Apr 10 20:26:47 ok it is in another thread Apr 10 20:27:04 you need to learn how to work with threads properly, i.e. use asynctask properly Apr 10 20:27:09 re-read the documentation for asynctask Apr 10 20:27:41 but the thread return response in the right way, so recursively, how can that be null? Apr 10 20:28:15 because the thread isn't done Apr 10 20:29:31 g00s: what package name did you choose Apr 10 20:30:05 pfn: what do you u suggest me to do? should i use onPostExecute? Apr 10 20:30:36 alexxio: do the work in doInBackground, post the results in onPostExecute... is there something about that you're not getting? Apr 10 20:31:12 readme: my fault. i was quickly testing something and 'package' was part of the package Apr 10 20:31:29 You need to go back and understand how asynctask works, maybe even how threading works Apr 10 20:33:03 in my eclipse project , there is a dir 'Android Dependencies' and in that , annotations.jar. I guess i never noticed that before … what is it ? Apr 10 20:33:15 lint annotations Apr 10 20:33:33 SimonVT: thanks Apr 10 20:34:09 SimonVT: i understour help..i know how they work, but by example i run into this problem and i couldn't go on without your help...thanks Apr 10 20:34:16 *understand Apr 10 20:41:50 star me please http://code.google.com/p/android/issues/detail?id=28588 Apr 10 20:42:07 you're always a star in my book Apr 10 20:42:10 <3 Apr 10 20:42:14 ok then Apr 10 20:42:59 …and my book is of those who I want to kill Apr 10 20:43:06 *whom Apr 10 20:43:47 canadiancow|work: i see no issues in PhoneWindow that would cause that Apr 10 20:43:54 perhaps the drawable does not include an indeterminate state Apr 10 20:44:16 either way it's a bug Apr 10 20:44:21 YOU'RE A BUG Apr 10 20:44:24 :( Apr 10 20:44:27 r.android.com Apr 10 20:44:28 you fix it Apr 10 20:44:34 so how would that work for you JakeWharton if it's fixed in 4.0.5 or whatever Apr 10 20:44:41 would it only work on <4.0? Apr 10 20:45:16 it 4.1 comes out, ABS will use compat on <4.1 Apr 10 20:45:29 if it gets fixed in 4.0.5, you're screwed Apr 10 20:45:59 Or, just unregister the native wrapper Apr 10 20:46:01 so you wouldnt consider using ABS over native if native had a bug that ABS fixed? Apr 10 20:46:35 ABS will always proxy to native on at least the highest released API level Apr 10 20:46:58 SimonVT / JakeWharton, can that be overidden? Apr 10 20:47:11 why does my main xml now open up in gueditor anymore it just did Apr 10 20:47:14 ActionBarSherlock.unregisterImplementation(ActionBarSherlockNative.class) Apr 10 20:47:22 What JakeWharton said Apr 10 20:47:34 cool Apr 10 20:47:36 well i wont do it for now Apr 10 20:47:54 also, that won't work for Light.DarkActionBar theme Apr 10 20:52:24 JakeWharton: off topic, but would you ever use git rebase for any situation involving a local-only project ? Apr 10 20:52:32 * g00s is just learning git Apr 10 20:52:41 local-only? Apr 10 20:52:43 probably not Apr 10 20:53:00 ok, thx Apr 10 20:53:12 i know people who routinely use git rebase -i with local work in order to pick and choose which chunks to actually commit, etc. Apr 10 20:53:16 scary :) Apr 10 20:53:19 I rebase/squash before pushing to GitHub Apr 10 20:53:34 or for rebasing my branch against a newer master and then pushing Apr 10 20:53:38 though ofc more often git add -i Apr 10 20:53:52 the flag is called -i because it is short for INSANE Apr 10 20:53:58 haha Apr 10 20:54:49 ctate: i do this very very often to reform and tidy my commits before pushing Apr 10 20:55:02 he said "local-only project" Apr 10 20:55:14 but yeah, if you're evern going to send the patch elsewhere it's really common Apr 10 20:55:34 not sure why you think -i would be short for insane then if 2 sentences later you admit it's a common flow Apr 10 20:55:41 are developers commonly insane perhaps? Apr 10 20:55:51 rebase is useful when collaborators have pulled your git repository and you have later revised the history of it Apr 10 20:56:09 i had to use it yesterday when i put password in a file and then committed :| Apr 10 20:56:12 http://help.github.com/remove-sensitive-data/ Apr 10 20:56:13 ehh, no, im not gonna touch that. Apr 10 21:00:05 jasta: git developers are, yes. :) Apr 10 21:00:34 I have a TabActivity that contains tabs, where each tab is FragmentActivity. I have on rare occasions observed a situation where when switching to a random tab for the first time will cause the tab container to just display white, not my fragment. Manually killing the application and relaunching it *fixes* the issue. Has anyone seen something like this, I'm not sure where to look from a debugging perspective? Apr 10 21:01:24 developernotes: if you already have fragments, it would be easy to not use the catastrophe called TabActivity Apr 10 21:01:37 see the support library demos Apr 10 21:01:39 ^ Apr 10 21:01:47 what he said Apr 10 21:01:54 what ctate said Apr 10 21:01:54 EMPHATICALLY Apr 10 21:02:04 TabActivity should die alone and penniless. Apr 10 21:02:21 g00s: what would you recommend as a replacement of the TabActivity? Apr 10 21:02:54 Anybody ever use something like an InputMask or something for CC expiry EditTexts? I'd love to figure out how to mask the input to something like MM/YYYY. Apr 10 21:03:10 The problem is that it is intermittent, I wish I could consistently reproduce it. Apr 10 21:04:07 You can use TabHost, you can use the actionbar tabs, or you can simply make your own button bar Apr 10 21:04:18 And simply replace the fragment shown Apr 10 21:04:31 developernotes: see FragmentTabs.java in support library demos to see one way SimonVT mentioned Apr 10 21:05:56 SimonVT: g00s: I am using a TabHost within the layout for my view within the TabActivity (so maybe I don't need to extend the TabActivity anyway)? Apr 10 21:06:15 any idea why i keep disconnected from my gtv over adb? Apr 10 21:06:25 * SimonVT dislikes tabhost as much as tabactivity Apr 10 21:06:31 I vote for solution #2 or #3 Apr 10 21:06:37 Chronax: seems there's no inputType for that, only date. You can accomplish it with an InputFilter Apr 10 21:06:40 http://developer.android.com/reference/android/text/InputFilter.html Apr 10 21:06:50 http://developer.android.com/reference/android/widget/TextView.html#setFilters(android.text.InputFilter[]) Apr 10 21:07:42 SimonVT: g00s: ok, thanks for the feedback - I take a look at those options. Apr 10 21:08:36 SimonVT: what about TabWidget? Apr 10 21:08:48 No, TabWidget is awesome!!1 Apr 10 21:11:01 http://www.gizmag.com/dreamon-iphone-dream-control-app/22110/ Apr 10 21:11:08 ctate: You should rm -rf http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Apr 10 21:11:16 trust me i have been tempted Apr 10 21:11:34 you should git rebase it out of AOSP too Apr 10 21:11:41 haha Apr 10 21:11:46 g00s: large scale pseudoscience, awesome. Apr 10 21:12:00 JakeWharton: for a second I thought you were suggesting it's use. ;-) Apr 10 21:12:08 "its" Apr 10 21:12:14 SimonVT: can you use TabWidget w/o TabHost ? i don't think i have ever tried that Apr 10 21:12:22 yeah Apr 10 21:12:24 seriously people; apostrophes are not actually hard. Apr 10 21:12:24 :) Apr 10 21:12:26 ctate: aye, was fast typing. Apr 10 21:12:26 it just acts like a radio button Apr 10 21:12:40 interesting Apr 10 21:13:05 ctate: look out, here comes an s! Apr 10 21:13:06 ctate: irc chat isn't often super formal. :-) Apr 10 21:13:16 yes it is Apr 10 21:13:20 developernotes: most of us wear tuxedos Apr 10 21:13:23 it is here on #android-pedant Apr 10 21:13:24 true Apr 10 21:13:26 :) Apr 10 21:13:40 #android-pendant Apr 10 21:13:49 (curious fact: i know someone who basically never uses contractions in his writing or speech) Apr 10 21:13:49 that's where i'll be Apr 10 21:14:11 I don't use contractions when typing Apr 10 21:14:20 …a blog post Apr 10 21:14:24 ctate: weird; I know someone who basically never uses contractions correctly in his writing or speech. Maybe they're evil twins! Apr 10 21:14:47 his name is "the internet" Apr 10 21:15:10 JUnit 4 rocks, but it pisses me off that it won't run JUnit 3's TestSuites out of the box Apr 10 21:15:18 And everyone's all "Just use the annotation" Apr 10 21:15:33 it's dynamic, bro Apr 10 21:15:41 hhmmm might have to check that out Apr 10 21:16:01 Try to convert to a parameterized suite Apr 10 21:16:06 *Trying Apr 10 21:16:28 equally as annoying thus far in that I'm forced to return data as a Collection Apr 10 21:17:33 ha, that seems redundant :P Apr 10 21:18:03 JakeWharton, man Google should include ABS in the damn compat lib Apr 10 21:18:11 it has too many compromises Apr 10 21:18:45 and bugs Apr 10 21:19:06 Wavesonics: google should have thought about action bars and compatibility a bit more Apr 10 21:19:14 they really want to push the ICS UX, but they dont have a backwards compatible impl of the KEY navigation component!! Apr 10 21:19:15 oh well, i don't see anything changing Apr 10 21:19:23 g00s, exactly.. Apr 10 21:20:12 You complain too much, g00s Apr 10 21:20:13 I don't miss the dedicated search key except that it was a sweet short cut for voice commands. I want a dedicated voice button Apr 10 21:20:28 g00s: not all of us have the future sight like you Apr 10 21:20:35 SimonVT: sometimes, there is much to complain about. anyhow, i wonder what iosched 2012 will do for its actionbar Apr 10 21:20:47 the third eye Apr 10 21:20:51 hehe Apr 10 21:21:19 Easier to complain than use the tools available to solve the issue :p Apr 10 21:21:54 setContentView(new WebView("http://app.g00s.com")) Apr 10 21:21:55 BOOM Apr 10 21:21:55 i'm not entirely happy with the way the tools available "solve" the issue. ok - next topic Apr 10 21:22:01 works on every device Apr 10 21:22:11 awesome, thanks JakeWharton Apr 10 21:22:19 that's how I do it Apr 10 21:22:24 Plus, easily ported to iOS Apr 10 21:22:26 nobody looks at the action bar source Apr 10 21:22:28 it's just a WebView Apr 10 21:22:34 LO Apr 10 21:22:35 :P Apr 10 21:22:41 VE Apr 10 21:22:53 i need a hair cut badly Apr 10 21:22:55 true story. Apr 10 21:23:00 as do I Apr 10 21:23:01 shave your head Apr 10 21:23:04 that's what i did the other day Apr 10 21:23:08 need to find a place in this city by the bay Apr 10 21:23:52 sweet: Elon Musk is going to be on the Daily Show tonight Apr 10 21:24:06 does he cut hair? Apr 10 21:24:18 mmmm maybe? Apr 10 21:24:34 Maybe John Steward will ask him that very question tonight. Apr 10 21:24:44 >.> at some point a number of days ago i scrolled up for something in this channel and forgot to scroll down, took a few minutes to scroll all the way down just now Apr 10 21:24:53 analysis says you guys talk too much! Apr 10 21:25:03 LOL Apr 10 21:25:12 drag the scrollbar? Apr 10 21:25:18 ctrl + end? Apr 10 21:25:18 ive done that b4 Apr 10 21:25:18 irssi Apr 10 21:25:21 lol, who has a scrollbar in their irc client Apr 10 21:25:25 noobs Apr 10 21:25:30 DigitalKiwi: /win goto end or something, isn't it? Apr 10 21:25:30 I do! Apr 10 21:25:31 i do :( Apr 10 21:25:53 SimonVT: evancharlton: pfn: i arrived to the point... it needs a while until the app can download the whole file, so i get a *null* pointer, it is null until it takes the whole file. ok, is there a way to wait the end of file downloading? Apr 10 21:25:54 what client doesnt? Apr 10 21:25:58 (readme) Apr 10 21:26:03 Xchat Apr 10 21:26:07 does Apr 10 21:26:07 Insta down-scroll: f5 Apr 10 21:26:08 her is the current action bar situation: http://imgur.com/EBZ5c Apr 10 21:26:10 irccloud :p Apr 10 21:26:19 Hey, anyone know a simple efficient way of detecting a file type? Failing big time here Apr 10 21:26:22 irc4losers doesnt i think Apr 10 21:26:35 Gumboot: hmm didn't do anything Apr 10 21:26:36 cantIntoCode|PC: check the magic number/fourcc Apr 10 21:26:37 alexxio: onPostExecute is called when doInBackground returns Apr 10 21:26:40 Do your stuff there Apr 10 21:26:49 cantIntoCode|PC: what would define the type? Apr 10 21:27:01 the header... Apr 10 21:27:28 not everything has a header Apr 10 21:27:28 DigitalKiwi: /sb end Apr 10 21:28:19 Gumboot: SWEET Apr 10 21:28:35 thanks! Apr 10 21:28:51 so if you extend android:Theme, you get non-holo even on ICS? Apr 10 21:28:55 or am i missing something Apr 10 21:28:58 just need a way to make sure something selected is .zip, is there documentation for it? maybe I fail at googling -_- Apr 10 21:29:02 yes, canadiancow|work Apr 10 21:29:14 apparently changing an app to holo fucks some stuff up Apr 10 21:29:15 :P Apr 10 21:29:20 can i use ABS without holo? :P Apr 10 21:29:22 haha Apr 10 21:29:23 (easily) Apr 10 21:29:31 SimonVT: i got it but i'm unsure of how to do it in my case...because with onpost execute i can't return back to my previous activity Apr 10 21:30:22 what do you mean "return back to my previous activity"? Apr 10 21:30:33 finish() Apr 10 21:30:34 ! Apr 10 21:31:05 the work the AsyncTask is doing is relevant only to a particular activity, and if the user navigates away from it things are broken? Apr 10 21:32:24 nono i want to be more clear Apr 10 21:32:43 i declared an inner class that is an async task into a normal class Apr 10 21:33:20 so in postexecute i write in the outer class, the private String response; Apr 10 21:33:35 the i return the string response to the activity that called it Apr 10 21:34:08 i can't find a better mode to retrieve a string from internet and after the string is ready, parse it Apr 10 21:34:45 alexxio: it's _Async_Task -- you don't wait for a return value. It just goes, then you handle the result in onPostExecute. Apr 10 21:34:52 I think you are having trouble thinking asynchronously Apr 10 21:35:10 tell us what you are doing from the user perspective, rather than developer Apr 10 21:35:35 no no, the point is from the developer point of view Apr 10 21:35:37 :P Apr 10 21:36:00 ctate: do you know internally, if google uses ActionBarCompat for apps, like maps or whatever ? Apr 10 21:36:13 ctate: http://developer.android.com/resources/samples/ActionBarCompat/index.html Apr 10 21:36:13 the problem is quite simple though Apr 10 21:36:19 alexxio: why do you think you need to "return the string response to the activity that called it" Apr 10 21:36:21 g00s: assuredly no :) Apr 10 21:36:43 you can just save it in a field. but I assume you want something more than that. Apr 10 21:36:52 alexxio: what is your app supposed to do, from the user's perspective, if they do whatever it is that kicked off the async task... but then immediately hit the 'back' key before the response comes back from the server. Apr 10 21:37:29 follow me: i just do String xml=class,getfrominternet(URL); and class is an outerclass that has an inner asynctask. Apr 10 21:38:31 the problem i have is that xml is null in the first nanoseconds, until it retrieves it from start to end Apr 10 21:39:05 alexxio: you need to kick off whatever code is going to use the value in xml from onPostExecute Apr 10 21:39:11 thats the *point* of asynctask Apr 10 21:39:21 do not design a polling mechanism to wait for the asynctask to end, that's ridiculous. Apr 10 21:44:03 when the async task is complete -- i.e. when its onPostExecute() is run -- you take that opportunity to then run the code that acts on the result Apr 10 21:45:37 :) Apr 10 21:45:46 thanks Apr 10 21:46:10 does ViewPagerIndicator support left and right arrows? Apr 10 21:53:03 os x lion is seriously fucking with me. why would desktop 2 be to the right of desktop 3 Apr 10 21:53:15 Natural Direction Apr 10 21:53:28 :| Apr 10 21:53:35 evancharlton: got my OSD working :) Apr 10 21:53:41 [17:53:15] Natural Direction Apr 10 21:53:43 this Apr 10 21:54:03 if you're touching the display, i want to drag the page Apr 10 21:54:20 but if hte touchpad is NOT the display, i want it to behave like a scrollbar Apr 10 21:55:44 readme: excellent Apr 10 21:55:58 hello Apr 10 21:56:01 readme: abuse it, and I'll hunt you down and brick your phone Apr 10 21:56:20 am running into an odd problem starting AVD. i set up an image in AVD and when i hit start.. the green bar fills up.. and then nothing. Apr 10 21:56:29 no errors or any indicators of what went wrong Apr 10 21:57:03 evancharlton: i won't. i'm just going to use it to sell viagra. Apr 10 22:02:59 etuleu: no Apr 10 22:03:13 JakeWharton, :( Apr 10 22:03:18 it's open source Apr 10 22:03:22 add it Apr 10 22:03:29 I noticed someone forked it and implemented something Apr 10 22:03:36 yeah but it wasn't done very well Apr 10 22:03:42 I see Apr 10 22:04:03 one more question: is it possible to limit the width of the titles? Apr 10 22:04:09 they start overlapping if they are too long Apr 10 22:04:17 no Apr 10 22:04:24 using title indicator Apr 10 22:04:38 ok so I could limit the length of the string Apr 10 22:04:40 JakeWharton i need a list of apps available for donwload in canada that use ABS (or normal AB) Apr 10 22:04:48 are you kidding? Apr 10 22:04:50 there's tons Apr 10 22:05:01 non-google apps Apr 10 22:05:11 you say that, but after going through my phone... Apr 10 22:05:36 the three featured ones on abs.io Apr 10 22:05:38 i guess Apr 10 22:06:30 Pay with Square, GitHub Gaug.es, SeriesGuide, Fandango, Plume, Guardian Crosswords, FriendCaster, Location Scout, Mentions, Moola, Papermill, Reddit News, Settle Up, MusicBrainz, Trivialist, Apr 10 22:06:32 go wild Apr 10 22:07:46 Scan.me Apr 10 22:08:04 fandango's screenshots dont really show an actionbar Apr 10 22:08:06 All of my apps :) Apr 10 22:08:28 welll except one, but i'm working on that right now Apr 10 22:11:49 anyone? avd just doing nothing? ever heard of this happening? Apr 10 22:11:58 recreate it Apr 10 22:12:00 close restart Apr 10 22:12:03 reboot machine Apr 10 22:12:07 take the dog for a walk Apr 10 22:12:16 3 out of 4 of those things should help Apr 10 22:12:36 rebooting wont help Apr 10 22:12:38 so go for a walk Apr 10 22:13:08 sorry wasn't listening. reboot the dog? okay then. Apr 10 22:13:09 rebooot again? Apr 10 22:13:21 yeah! Apr 10 22:13:24 could this comp being windows running on bootcamp be a problem? Apr 10 22:14:22 suuuuure, blame it on windows Apr 10 22:14:32 d4rklit3: no Apr 10 22:14:50 ok i'll tr to restard : / Apr 10 22:14:54 restart Apr 10 22:14:57 the emu always goes real slow and doesn't work the first time you use it Apr 10 22:15:01 just restart it Apr 10 22:15:10 the issue is that it doesn't even try to start Apr 10 22:15:18 the green bar fills Apr 10 22:15:22 actually half way Apr 10 22:15:23 How do I keep a ListView that is being constantly updated from overriding the position after the user scrolls? Not the ListView is not being updated with new row, just text on each row. Apr 10 22:15:28 then closes... and nothing happens Apr 10 22:15:38 uninstall the sdk and reinstall it Apr 10 22:15:49 sounds like you fubar'd something Apr 10 22:15:50 well this is the second install Apr 10 22:15:51 already Apr 10 22:15:57 is ADT required for this? Apr 10 22:16:04 no Apr 10 22:16:07 just the SDK Apr 10 22:16:43 im going to restart the machine Apr 10 22:16:44 brb Apr 10 22:17:20 if i have a service and writes some actions under intent-filter in the manifest file. What does the service do with these intents? (as it is not a broadcast receiver) Apr 10 22:17:30 ... Apr 10 22:17:44 As4xk: the intent filter limits what kind of intents the service can receive Apr 10 22:18:59 To inform the system which implicit intents they can handle, activities, services, and broadcast receivers can have one or more intent filters. Apr 10 22:19:10 so if a create a anonymous inner class of BroadcastReceived i do not need to register the intents i want to listen for programmicaly? Apr 10 22:19:11 bad choice of words Apr 10 22:19:30 yes Apr 10 22:20:06 there are two kinds of BroadcastReceiver registration Apr 10 22:20:07 evancharlton do you have +o on g+? Apr 10 22:20:14 oh shit lov's there Apr 10 22:20:22 but how does android know which instance of broadcastReceiver to deliver the intent? Apr 10 22:20:23 1. at runtime, called "registered receivers", and 2. in your app's manifest, called "manifest receivers" Apr 10 22:20:30 manifest receivers cannot be nonstatic inner classes. Apr 10 22:20:52 As4xk: it's a broadcast i.e. all listeners get it. Apr 10 22:21:07 readme: you can target the intents, though ... Apr 10 22:21:22 all receivers that match the delivery criteria get it Apr 10 22:21:38 sometimes that means only one receiver Apr 10 22:21:41 sometimes it means zero :) Apr 10 22:22:08 or over nine thousand Apr 10 22:22:32 As4xk: if it's a receiver declared in your manifest, the OS instantiates one *for* you, and calls that. Apr 10 22:22:36 but if i have two inner classes of broadcastReceiver. (for any dumb reason) Both would get the intents written in the manifest file? (sorry for asking the same question you might just have answered :p) Apr 10 22:23:03 18:20 <@ctate> manifest receivers cannot be nonstatic inner classes. Apr 10 22:23:04 Receivers declared in the manifest *cannot* be inner classes Apr 10 22:23:12 unless the inner class is declared static Apr 10 22:23:32 i'm talking about services. i have no receivers in my manifest file Apr 10 22:23:47 * ctate | but how does android know which instance of broadcastReceiver to deliver the intent? Apr 10 22:23:53 that's about receivers :() Apr 10 22:24:09 thats receivers created inside the service Apr 10 22:24:16 As4xk: it doesn't matter because the platform will not know that there is a little inner class hiding out inside your instance. if it is made static you can refer to it in the manifest by its fully qualified name. Apr 10 22:24:21 you need to register programmatically Apr 10 22:24:35 aha! yes, if you explicitly call registerReceiver() from your code, it doesn't matter how the receiver objects are declared or instantiated Apr 10 22:25:15 it will invoke the specific BroadcastReceiver subclass instance that you pointed at Apr 10 22:25:47 Ah. and non-static inner classes of broadcast receivers need to register programmicaly, and is not affected by the intent-filter in the manifest file? Correct? :p Apr 10 22:25:57 you don't *have* to register them programmatically Apr 10 22:26:02 but that is the general use case Apr 10 22:26:22 you can do Apr 10 22:26:48 As4xk: typically, the reason for declaring a receiver in your manifest is that you want your app to be *launched* when the broadcast happens, even if it is not currently in use. Apr 10 22:27:33 while we are on broadcastreceivers Apr 10 22:27:37 ahh. I see. Been wondering aboute this for a while. Thanks to all of you! Apr 10 22:27:43 kicking a thread off from a broadcast receiver is a nono, right Apr 10 22:27:49 that should be instead inside a service Apr 10 22:28:01 readme: well, it sort of depends on what you're doing Apr 10 22:28:12 ctate: quick request over http Apr 10 22:28:17 in general i would not suggest that; the lifetime of a broadcast receiver -- especially a manifest-declared one -- can be quite ephemeral Apr 10 22:28:30 http request? dude. use a Service. Apr 10 22:28:37 yeah, that's what I was confirming Apr 10 22:28:47 is this a manifest receiver? Apr 10 22:28:49 I was just seeing if I could do it there without having to use two services to get my optimal setup Apr 10 22:28:51 one does not simply make a quick http request Apr 10 22:28:51 [he asks, leadingly...] Apr 10 22:28:52 Yes Apr 10 22:29:23 remember that in a manifest receiver, the rest of your app is not necessarily 'live' at that point in time, plus it might get killed again *as soon as you return from onReceive()* Apr 10 22:29:31 I think IntentService may be the right choice? Apr 10 22:29:34 the lifetime of a receiver is sharply limited Apr 10 22:29:43 I need to kick off a request from the broadcast and then post the result to another service when it completes Apr 10 22:29:45 spin a service to do the work in a sane and coherent way Apr 10 22:29:50 readme: you can see some http stuff in the iosched intentservice Apr 10 22:29:58 IntentService is often a handy approach Apr 10 22:30:20 also note that if it's a wakeup alarm broadcast that fires while the device is asleep, you need to do a wakelock dance Apr 10 22:30:31 because otherwise it will immediately go back to sleep as soon as you return from onReceive() Apr 10 22:30:45 there's a lot of sample code and discussion out there for you to consult Apr 10 22:30:49 readme: also see WakefulIntentService Apr 10 22:30:51 :) Apr 10 22:31:01 thanks Apr 10 22:38:25 its scary how many unused classes proguard removes Apr 10 22:38:35 remove ALL the classes! Apr 10 22:38:52 How can I maintain scroll position on a ListView when it's being updated in the main UI thread? Apr 10 22:38:59 [proguard] Number of removed instructions: 8895 Apr 10 22:39:01 in ONE pass Apr 10 22:39:05 (more were done) Apr 10 22:40:10 canadiancow|work: i guess it doesn't think your code is worth keeping around or something Apr 10 22:40:20 :D Apr 10 22:40:37 -keepallcanadian Apr 10 22:40:39 classes went from 4784 to 3913 Apr 10 22:41:51 so you know what i dont like about the system bar? Apr 10 22:41:56 theres no way to bring up voice actions Apr 10 22:42:03 i liked my press-and-hold-search :( Apr 10 22:42:28 I'm so thirsty for an answer Apr 10 22:43:51 (who was asking about TabActivity earlier? i didn't point out at the time... TabActivity is *deprecated*, silly! don't use it!) Apr 10 22:45:35 ctate: just put in a bunch of Thread.sleep(1000); calls all over TabActivity Apr 10 22:45:40 it'll get phased out real quick Apr 10 22:46:09 it will still take a few years ;) Apr 10 22:46:10 why bother. the users of the TabActivity will probably add those to their application code themselves. Apr 10 22:46:21 try { Thread.sleep(1000); } catch (InterruptedException e) { Thread.sleep(2000); } Apr 10 22:46:22 ha ha ha Apr 10 22:46:33 throw new RuntimeException("Don't use TabActivity, n00b"); Apr 10 22:46:52 that should go in the emulator images Apr 10 22:47:02 does lint mention if you use deprecated apis ? Apr 10 22:47:26 i guess since i still have target = min = 8 there is not much deprecated for me :) Apr 10 22:47:29 eclipse mentions if you use deprecated... Apr 10 22:47:33 will those who are slow enough to use deprecated APIs have updated ADT so they even have lint? Apr 10 22:47:46 How can I install the android SDK? All I saw was a zip files with the tools, but not an installer. Apr 10 22:48:09 maslen: its not an installable package, well there might be one but you can just unzip and start using it Apr 10 22:48:26 thats what she said Apr 10 22:48:28 (I forgot to mention I'm on ubuntu 11.10). Apr 10 22:48:39 readme: hah Apr 10 22:54:23 i would be interested to see how cross-platform android/ios/wp7 projects are organized - that share things like graphics assets Apr 10 22:54:34 (directory structure wise) Apr 10 22:54:57 wp has fixed resolution i believe? Apr 10 22:56:09 at least mostly, yeah Apr 10 22:56:16 480x800 i think Apr 10 22:56:46 just wait until it goes to 960x1600 Apr 10 23:04:53 canadiancow: pixel doubler!!1 Apr 10 23:07:48 library project y u no work Apr 10 23:10:10 g00s: it doesn't work Apr 10 23:10:28 when we get assets they're made for iOS and Android separately Apr 10 23:11:21 JakeWharton: ok. i was thinking about creating a single git repo that encompassed each port of my project, and their assets, but it seems like there are too many differences, and i should keep them in separate repos Apr 10 23:11:22 they just keep original high-res versions somewhere and then make the platform-specifcs Apr 10 23:13:45 I've got a library project, and I think the reason it's not working is that I've got it in a separate directory other than my workspace, two levels back and then up two levels. Apr 10 23:13:53 anyone ever experience problems with this Apr 10 23:19:16 readme: lib projects will be fixed in adt 3000 Apr 10 23:19:32 i've just pulled the jar out of the lib project and said *** it already Apr 10 23:19:43 I'll work on the lib separately. I already made an elaborate setup to unit test it anyway Apr 10 23:26:11 how can I make an upside layout? Apr 10 23:29:25 public class UpsideLayout extends ViewGroup { } Apr 10 23:41:22 O.k.. Can you direct me on what I could put on the onLayout() method? I can't seem to find anything.. Mostly I see is onDraw.. Apr 10 23:41:45 'on' ? Apr 10 23:41:54 in? Apr 10 23:43:16 you're writing a new layout? do say you've read http://developer.android.com/guide/topics/ui/custom-components.html -- yes? :) Apr 10 23:44:57 Yes.. I'm trying to make an upside down layout.. I will update after my animation.. with listener.. Apr 10 23:45:47 what's an upside down layout? Apr 10 23:46:12 hi Apr 10 23:46:18 I am simulating a rotation Apr 10 23:46:55 and it roates 180.. I just can't figure out how to update my layout so all my buttons are to the new position Apr 10 23:47:05 how can I get keycodes for special chars (ie, ęąćłóćźż or even €)? Apr 10 23:47:06 and can be touched and toggled.. Apr 10 23:47:44 citopr do you also write texts upside down? Apr 10 23:48:03 and dare i ask why? Apr 10 23:48:22 yes.. it will be text and buttons.. Apr 10 23:48:27 why? lol Apr 10 23:48:29 what's the deal with this? Apr 10 23:48:29 adapter.notifyDataSetChanged(); Apr 10 23:48:40 uʍop ǝpısdn Apr 10 23:49:16 ooo look at ctate doin tricks\ Apr 10 23:49:19 If I set this adapter property, should it prevent the listview from losing current scroll position? Apr 10 23:50:20 anyone know anything about flashing MetroPCS to Boost Mobile? Apr 10 23:50:40 ok.. can I pm really quick :(.. Apr 10 23:50:49 thought I'd ask.... Apr 10 23:51:12 Kittens: try #android-root on caturday Apr 10 23:53:07 g00s: thank you Apr 10 23:53:34 ok.. I have a landscape view that I am simulating landscape left and right.. I just cans seem to update the button/layout position after the animation.. Apr 10 23:54:27 My buttons don't work of course.. Am I suppose to rotate the Matrix?.. Apr 10 23:54:56 so .. in the support library (r7) there are v4, v7, and v13 directories, but only v4 and v13 have jars Apr 10 23:55:13 Every now and then the phone calls I am sending to the emulator are sent as conference calls. I don't do anything to provoke this, as far as I can tell. Apr 10 23:55:19 any ideas? Apr 10 23:55:45 oh wait, not emulator has froze Apr 10 23:55:57 maybe it was cold Apr 11 00:01:43 g00s: v7 is a library project? Apr 11 00:02:40 Hi, my app displays a bmp but when you open or close the phone, it gets fuzzy. Why is this and how can I stop it? Apr 11 00:04:01 JakeWharton: ok , i see now Apr 11 00:04:10 (i just guessed) Apr 11 00:04:27 it's not in AOSP therefore it doesn't exist to me Apr 11 00:04:31 hmm, maybe not Apr 11 00:04:34 ./android/support/v13/android-support-v13.jar Apr 11 00:04:34 ./android/support/v4/android-support-v4.jar Apr 11 00:04:35 ./android/support/v7/gridlayout/libs/android-support-v7-gridlayout.jar Apr 11 00:05:13 v13 should include v7, I think Apr 11 00:07:01 uh, yeah, the v7 dir does not have a src/ dir … w t f Apr 11 00:07:21 (unlike the others - JakeWharton is that what you meant by not being in aosp ? ) Apr 11 00:07:36 no Apr 11 00:07:51 it's not in frameworks/support.git of the Android source tree Apr 11 00:07:58 whereas v4 and v13 are Apr 11 00:08:02 hm Apr 11 00:08:29 I can only build Maven artifacts for central from sources in the git repo Apr 11 00:09:23 Well, I should say we choose to only build artifacts for central from git sources Apr 11 00:09:51 weird that extras/android/support/v7/gridlayout/src is empty Apr 11 00:10:47 readme explains why, just don't understand why the source is not there Apr 11 00:11:07 ok, whatever Apr 11 00:20:44 If one is already using addView(view, layoutParams) there is no need to call view_setLayoutParams(), right? Apr 11 00:24:19 mmmmmm Apr 11 00:24:26 i feel the warmth of maven builds soothing my soul Apr 11 00:25:08 Just mavenized 5 modules out of our core project Apr 11 00:25:55 readme: correct Apr 11 00:26:59 * pfn chuckles a little Apr 11 00:28:12 JakeWharton: well, do you happen to know why my system overlay window isn't obeying the gravity layout param? Apr 11 00:28:15 http://pastie.org/3765353 Apr 11 00:28:28 also, this isn't limited to the great JakeWharton... if anyone else knows. Apr 11 00:28:38 NO IT"S MINE Apr 11 00:28:57 hi Apr 11 00:29:08 instead of center, it is just aligned top. same happens with bottom, etc. Apr 11 00:30:06 i use macosx and CLI ant, without eclipse. how to have the 'new' emulator ? updating packages in 'android' is enough ? Apr 11 00:30:41 yes Apr 11 00:31:47 readme: thanks. tried that. but then i create an avd with ICS4.0.3 and API Level 15 but still slow... normal ? Apr 11 00:32:24 cpu field is ARM (armeabi-v7a) Apr 11 00:32:33 readme: how are you adding that? Apr 11 00:33:28 "We’re working on providing emulator support for more hardware features including Bluetooth and NFC." … pretty cool, i'm curious how they will implement this Apr 11 00:33:58 anyone having a fast emulator on macosx ? Apr 11 00:34:28 JakeWharton: the view created by makeHUDView gets passed to the View parameter of setHudView Apr 11 00:34:49 When using the TextView marquee... how can I make it so it scrolls only until the end of the line? Right now it keeps scrolling and scrolling until it's back again Apr 11 00:34:52 how are you adding it to the window? Apr 11 00:35:03 line 30, wm.addView(view, params) Apr 11 00:35:04 or is setHudView a feature I don't' know about Apr 11 00:35:26 maybe. i had to interrogate evancharlton to find out about this Apr 11 00:35:56 it allows you to have an OSD view, basically Apr 11 00:36:17 Hey guys question for the devs/smart people out there I own a droidx phone. My battery started taking a dump i/e dying in under an hour. Dont know if phone calibrated to the crappy batter or not got new one, wiped battery stats etc phone would be fine would go to 1% in under 2 hours but I can remain at 1% for hours on end. I tried as mentioned earlier wiping battery stats when battery was Apr 11 00:36:17 reported at 100. tried installing new rom etc. still it does the same thing the only thing I can think of is after battery hits 1% is to let it die completly, but i heard letting your battery die completly can be bad for battery? any suggestions? Apr 11 00:36:56 this channel is for discussing app development. try #android Apr 11 00:37:22 that would make a good channel topic Apr 11 00:37:25 heh Apr 11 00:38:10 readme k will post to other channel thx Apr 11 00:39:36 oh, huh http://phandroid.com/2012/04/10/android-design-guidelines-updated-for-settings-app-navigation/ Apr 11 00:40:27 Hi I have a problem Apr 11 00:40:29 why does ics always shut my tablet down its annoying Apr 11 00:41:02 because it uses the battery Apr 11 00:41:04 which is finite Apr 11 00:41:07 I'm not sure how to get read the files in my raw folder Apr 11 00:41:12 I have this Reader is = new BufferedReader(new InputStreamReader(raw, "UTF8")); Apr 11 00:41:25 any reason you're not using assets/ ? Apr 11 00:42:13 ._. Apr 11 00:42:20 okay.. I'll read about assets then Apr 11 00:42:31 assets are easier Apr 11 00:42:41 the only advantage to /res/raw is that you can use resource filtering Apr 11 00:42:41 s Apr 11 00:42:49 so if you don't need that then I see no advantage Apr 11 00:42:53 anyone having the new emulator running on macosx ? Apr 11 00:42:54 g00s are you familiar with ListView's and maintaining Scroll state when the adapter is being updated on a UI thread? Apr 11 00:43:01 I have some large string in soem files Apr 11 00:43:08 like 5 mbs worth Apr 11 00:43:18 i FIGURED I'D STICK THEM INTO MY RAW FOLDER AND READ THEM Apr 11 00:43:22 oops capslock Apr 11 00:43:23 mantas322: whe they said; you get at raw assets via the Asset Manager Apr 11 00:43:32 JakeWharton: final verdict was I had to stick my view inside a LinearLayout that took up the whole screen... I am sure I could use FrameLayout or something too, but.. That's what I've got for now anyway. Apr 11 00:43:39 they don't get unpacked into the file system; they get read directly out of the .apk Apr 11 00:43:57 'Gravity' confuses me Apr 11 00:44:30 where is the feature to turn off the auto shutdown on the transformer running ics i see it no whre Apr 11 00:44:38 readme: -9.8m/s Apr 11 00:44:45 hurrrr Apr 11 00:44:46 JakeWharton, ^2 Apr 11 00:44:47 on EARF Apr 11 00:44:51 well played Apr 11 00:45:47 dominicdinada: pretty please use #android for these questions Apr 11 00:45:56 This guy has a lot of great apps... https://play.google.com/store/apps/developer?id=JCook+LTD Apr 11 00:46:16 Grand Theft Auto, Call of Duty... Apr 11 00:46:35 just bought them all Apr 11 00:46:42 Ctrl+A > BUY!!!! Apr 11 00:47:15 where's goog to the rescue? Apr 11 00:48:16 I reported one of his apps as inappropriate any how...don't want this junk muddling up the market... Apr 11 00:49:15 I wonder how he got all the 5-star Apr 11 00:49:31 maybe some incentive to rate Apr 11 00:49:54 friends Apr 11 00:49:58 other scammers Apr 11 00:50:12 hm, so amazon now has in app purchasing. it used to be they were a subset of real android, i guess not they are extending Apr 11 00:51:04 hey pfn Apr 11 00:51:11 im off, speak more tomoz Apr 11 00:52:49 im trying this http://www.41post.com/3985/programming/android-loading-files-from-the-assets-and-raw-folders Apr 11 00:53:06 mantas322: just read the docs Apr 11 00:53:07 thats JakeWharton, this looks like what I need. Apr 11 00:53:09 it's like two lines Apr 11 00:53:22 getAssets().openAsset("filename") Apr 11 00:53:29 IOUtils.readStream(stream) Apr 11 00:53:39 Ologn: i like this one, because the screenshots are the repressed psychological needs of the scammer https://play.google.com/store/apps/details?id=appinventor.ai_JTLAKT.ZombieLife#?t=W251bGwsMSwxLDIxMiwiYXBwaW52ZW50b3IuYWlfSlRMQUtULlpvbWJpZUxpZmUiXQ.. Apr 11 00:53:40 or HttpUtils Apr 11 00:55:09 JakeWharton whats a really cool non-google app that uses actionbar Apr 11 00:55:15 i need something hawt Apr 11 00:55:18 SeriesGuide Apr 11 00:55:20 Pay with Square Apr 11 00:55:35 GitHub Gaug.es Apr 11 00:55:43 Friendcaster Apr 11 00:55:49 Plume Apr 11 00:56:03 square cant be downloaded in canada, i have the rest Apr 11 00:56:13 but i mean something big Apr 11 00:56:21 like wtf is plume Apr 11 00:56:21 Plume has like 3 million users Apr 11 00:56:24 lol Apr 11 00:56:26 Friendcaster has a few million Apr 11 00:56:30 big enough? Apr 11 00:56:37 it needs to be a name i recognize Apr 11 00:56:39 like "YouTube" Apr 11 00:56:45 lol Apr 11 00:57:05 https://play.google.com/store/apps/details?id=com.laurencedawson.reddit_sync does that use it? Apr 11 00:57:07 readme: "Find a job" indeed... Apr 11 00:57:10 it's a super nice app Apr 11 00:57:37 twitter is too iOSs Apr 11 00:57:39 twitter is too iOSy Apr 11 00:57:44 canadiancow|work: ABS or just action bar? Apr 11 00:57:49 just actionbar Apr 11 00:57:55 wtf apps are you looking at Apr 11 00:57:58 they all have them Apr 11 00:58:13 i just need examples :( Apr 11 00:58:27 how about Gmail Apr 11 00:58:27 the ones im looking at dont Apr 11 00:58:28 JakeWharton: pretty soon the best app evar is gonna have it too :3 Apr 11 00:58:32 non-google readme Apr 11 00:58:35 oh, sorry Apr 11 00:58:45 canadiancow|work: coverage mapper Apr 11 00:58:56 <3 Apr 11 00:59:05 any app optimized for 3.0+ should have an actionbar... Apr 11 00:59:12 pfn: great, find me one :P Apr 11 00:59:12 Has anyone ever set a contentdescription for a view? Apr 11 00:59:18 there should be plenty of those by now Apr 11 00:59:19 how about pulse Apr 11 00:59:20 What wording do you use there? Apr 11 00:59:36 whatever i guess i'll just use my own two apps to fill up the sapce Apr 11 00:59:41 think of it like alt text on an Apr 11 00:59:54 canadiancow|work: TED Apr 11 00:59:59 You know, I went through the whole dot-com bubble, and I'm getting a feeling of deja vu lately... Apr 11 01:00:06 canadiancow|work: evernote Apr 11 01:00:15 Foursquare Apr 11 01:00:16 Twitter Apr 11 01:00:17 canadiancow|work, imdb Apr 11 01:00:17 Facebook Apr 11 01:00:18 How is it read out to the user? Do I say "shows an email" or "this is the email body" or "email body" Apr 11 01:00:18 Instagram Apr 11 01:00:21 anything Apr 11 01:00:26 anything that doesn't suck has one Apr 11 01:00:28 this actionbar may be fake, though Apr 11 01:00:28 Millennial Media doubling on IPO day, Instagram for one billion and that sort of thing Apr 11 01:00:30 in evernote Apr 11 01:00:32 i'll take ted Apr 11 01:00:46 even flixster has an actionbar Apr 11 01:00:51 /and/ actionbar tabs Apr 11 01:00:57 ted has a fucking splash screen? Apr 11 01:00:58 uninstall Apr 11 01:01:52 evernote Apr 11 01:01:58 actually, evernote is just plain weird Apr 11 01:02:08 don't even know if that can be constituted as an actionbar Apr 11 01:02:48 its faux Apr 11 01:02:56 fauxtionbar Apr 11 01:04:22 im writing a presentation on why the actionbar is important Apr 11 01:05:50 "Because it's Android." Apr 11 01:05:51 boom Apr 11 01:05:52 next Apr 11 01:06:04 canadiancow|work: people love the TED app Apr 11 01:06:10 I'm not one of them Apr 11 01:06:23 JakeWharton, im serious Apr 11 01:06:28 this is like....a fight Apr 11 01:06:29 and i plan to win Apr 11 01:06:48 "beacuse it's android" will be rebutted with "android apps are inconsistent, and we want to maintain a consistent style in our apps" Apr 11 01:08:07 You'll get punished in Play ratings if you look like a ported UI? Apr 11 01:08:19 "You are dumb. You do not drive 30MPH in a school zone and on the Autobahn." Apr 11 01:08:19 boom Apr 11 01:08:20 next Apr 11 01:08:35 also, how else are you planning to provide facilities traditionally provided by menus, now that actionbar has replaced menus? Apr 11 01:08:50 we dont have menus Apr 11 01:08:53 "When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. After HONEYCOMB, it is planned to change this back to a single thread to avoid common application errors caused by parallel execution" Apr 11 01:09:02 we have a 4.6 average rating after 100k+ ratings Apr 11 01:09:04 fullscreen games are pretty much the only apps that can get away without one Apr 11 01:09:10 Is there a way to use AsyncTask such that I always get serial execution on all api versions? Apr 11 01:09:13 partly because they dont' look like iOS apps, either :) Apr 11 01:09:15 without using my own synchronization? Apr 11 01:09:27 readme: write your own Executor Apr 11 01:09:29 it's not hard Apr 11 01:09:36 like guys, im on your side. but i need to fight a managerial hierarchy of ios users Apr 11 01:09:44 who have never even heard of ActionBar Apr 11 01:09:45 or you can use a HandlerThread or something that is specifically *for* serialized execution Apr 11 01:09:50 or that Apr 11 01:10:43 readme, use your own copy of AsyncTask.java Apr 11 01:10:52 readme, only way to ensure consistent behavior across versions Apr 11 01:10:53 pfn: Dude. Apr 11 01:11:00 ... Apr 11 01:11:09 ? Apr 11 01:11:16 readme: copy ICS's android.jar into your project to ensure consistent behavior on all platforms Apr 11 01:11:16 oh Apr 11 01:11:30 that's kind of intrusive relative to, say, just using a HandlerThread to offload the work in a serialized manner :) Apr 11 01:11:38 JakeWharton: that should work Apr 11 01:11:41 ctate, it is Apr 11 01:11:55 but if all your code is in an asynctask already Apr 11 01:11:57 * pfn shrugs Apr 11 01:12:06 it would be nice if AsyncTask was consistent. I'm just going to have to cancel any existing asynctask if a new one comes. it's not that hairy of a problem Apr 11 01:12:17 ctate, and for that reason, i still disagree with the behavior change in ics :p Apr 11 01:12:24 pfn: i know you do Apr 11 01:12:35 it was changed because in practice more people were getting it wrong than were getting it right. sigh. Apr 11 01:12:52 le sigh Apr 11 01:13:47 10-line executor of your own, problem solved for all time Apr 11 01:13:52 JakeWharton: what's wrong with the TED app just out of interest? Apr 11 01:14:04 doubly-stacked action bar Apr 11 01:14:05 JakeWharton: i Apr 11 01:14:12 what JakeWharton said - it's not hard to write your own executor [or copy the one from ICS] and use that explicitly Apr 11 01:14:13 action bar + tab navigation + sub-tab navigation Apr 11 01:14:19 yo dawg i heard you like actionbars Apr 11 01:14:25 i do Apr 11 01:14:27 ctate, but but but, that involves writing code! ;-) Apr 11 01:14:28 I'll use your suggestion when I really need it, for sure Apr 11 01:14:31 so much so, that i made an actionview an actionbar Apr 11 01:14:36 pfn: awww, izza widda woo.... Apr 11 01:14:53 is this #android-DEV? now i'm not so sure! Apr 11 01:14:54 :) Apr 11 01:15:09 #android-ihaveaproblem-writemycodeforme Apr 11 01:15:34 ITYM #stackoverflow Apr 11 01:15:55 http://www.youtube.com/watch?v=FYKH5S93hT0&feature=related#t=01m11s #android-technoviking Apr 11 01:16:15 I enabled android:scrollHorizontally="true" and android:scrollbars="horizontal|vertical" in my textview, and I can scroll horizontally in it - however I get no horizontal scrollbar when I am, only a vertical on Apr 11 01:16:18 *one Apr 11 01:16:58 when i search for ActionBarCompat, it seems like i just get a bunch of people having problems with it Apr 11 01:17:21 subscribe to ABS mailing list... after I subscribed my inbox went from ~1000 to 9999 Apr 11 01:17:31 should have selected abridged. whoops. Apr 11 01:17:34 haha Apr 11 01:17:43 yeah i still get instant emails Apr 11 01:17:56 i am thankful for the 'mute' feature in GMail Apr 11 01:18:09 That still keeps the conversations unread though :/ Apr 11 01:18:21 well i still open them Apr 11 01:18:24 I keep my real email on my own server and use gmail for mailinglists and stuff Apr 11 01:18:29 does a x86 intel image for ICS exists ? i just get the 2.3 :/ Apr 11 01:18:31 but I get notified on all of them, on my device Apr 11 01:18:45 "Blah blah can't find Theme.Holo.Light.DarkActionBar" "Use Android 14" *mute* Apr 11 01:18:57 heh Apr 11 01:19:23 I may throw in a "Love Jake" every now and then Apr 11 01:19:42 no comma either Apr 11 01:19:44 it's a command Apr 11 01:19:52 Speaking of which, I've noticed that the Google Books app has the holo theme on my 2.3.3. How did they do that? (if google can misuse themes from newer versions, I want to as well) Apr 11 01:20:38 They're not misusing it. They are creating a branding and consistent look to the app Apr 11 01:20:43 It's not pure Holo Apr 11 01:21:24 OS UI consistency? Piffle Apr 11 01:21:45 So they package a theme of their own in similar to Holo then Apr 11 01:21:53 yes Apr 11 01:21:56 because Holo is clean Apr 11 01:22:00 and therefore a fantastic base Apr 11 01:22:32 Backporting pure Holo is stupid. Using pure Holo as a foundation for a custom theme tailored to your app across all platform versions is genius. Apr 11 01:22:58 ctate: still there ? Apr 11 01:23:26 obligatory: "in my opinion" Apr 11 01:23:36 I can't tell the difference so Apr 11 01:23:44 They might as well be using pure Holo Apr 11 01:23:57 JakeWharton: so you think this is a bad idea https://github.com/ChristopheVersieux/HoloEverywhere Apr 11 01:24:02 extremely Apr 11 01:24:21 Oh awesome Apr 11 01:25:29 there are all kinds of problems with that library anyway Apr 11 01:25:45 pre-HC rotate drawable cannot animation in reverse Apr 11 01:26:04 barely any of the actual styles of the widgets were back ported so buttons don't have any padding Apr 11 01:26:23 it's impossible to properly theme an AlertDialog to look like ICS without writing your own based on Dialog Apr 11 01:26:38 time to run with the snakes Apr 11 01:26:48 snakes slither Apr 11 01:28:15 * lakers4ev is now away, auto-away after 20 minutes (log\on pager\on) Apr 11 01:35:02 JakeWharton's snake slithers? Apr 11 01:35:09 yeah it doesn't run Apr 11 01:41:00 I am starting to hate asynctask Apr 11 01:41:14 so use a loader Apr 11 01:41:56 I'm not even using an activity or fragment :) Apr 11 01:42:03 asynctask is for noobs; just use thread and handler. Apr 11 01:50:21 pragma`, it's all about executors Apr 11 02:03:26 anyone know if theres a way to view picasa albums from code without having to do all the downloading of them etc and displaying manually? Apr 11 02:14:01 how long as that thing been showing up on google when you search? Apr 11 02:14:12 like if i search for 'canada' Apr 11 02:14:20 i get a huge summary of the country beside the results Apr 11 02:16:26 canada sucks Apr 11 02:17:17 the USA needs to invade canada and remove its pathetic useless existence Apr 11 02:17:36 like God intended. Apr 11 02:17:52 It's about time Alaska connected directly to the USA Apr 11 02:17:57 you know, if I were to travel internationally, I'd much rather put a canadian flag on my backpack than a US flag Apr 11 02:18:25 I'd much rather not put any flag on my backpack. Apr 11 02:19:24 If I'm going to put anything on my backpack, it's going to be a long-legged voluptuous woman. Apr 11 02:19:38 All cultures can respect that. Apr 11 02:19:53 Except muslims. Apr 11 02:20:06 have fun in the middle east Apr 11 02:20:27 The middle east is a heathen cesspool that needs to be nuked. Apr 11 02:20:29 Besides the horizontal scrollbar ever showing up, sometimes horizontal scrolling just refuses to work in my textview. I only ever set the property in xml and never change it Apr 11 02:20:42 My android Native library got deleted some how from my project, anyone know how to readd it? Apr 11 02:22:00 Stop using an IDE. Apr 11 02:22:25 a) you're obviously too stupid to use it; b) their auto-crap is more trouble than they're worth; c) you're obviously too stupid to use it. Apr 11 02:22:50 o_O Apr 11 02:22:53 have i mentioned that you're obviously too stupid to use an IDE? Apr 11 02:22:56 pragma- stfu Apr 11 02:23:17 I'm glad to see you are a genuis at the matter and have provided excellent help on the topic. Apr 11 02:23:26 I aim to please. Apr 11 02:23:28 genius Apr 11 02:30:24 I wish Adam Powell came in here so I could make e-love to him Apr 11 02:31:21 you all should read the excellent discussion (and some idiots chiming in every now and then) here: https://plus.google.com/u/0/113735310430199015092/posts/ADZRqnt7PHj Apr 11 02:31:50 tl;dr Apr 11 02:34:01 i read Apr 11 02:36:58 quite informative Apr 11 02:37:22 i think i prefer the new solution despite the havoc it's going wreak over the next year or two Apr 11 02:41:22 hmm when i try to use an intent to launch a webview to view a picasa album it takes me to my own web albums, how do i avoid this? Apr 11 02:54:18 so JakeWharton, "In the case of the Back button, you should make navigation more predictable by inserting into the task's back stack the complete upward navigation path to the app's topmost screen. This allows users who've forgotten how they entered your app to navigate to the app's topmost screen before exiting." Apr 11 02:54:19 that's new Apr 11 02:54:23 but is anything else? Apr 11 02:54:58 not really Apr 11 02:55:27 and how is that done? overriding onBackPressed()? or actually manipulating the stack? Apr 11 02:55:44 TaskStackBuilder Apr 11 02:57:40 ah Apr 11 02:57:41 cool Apr 11 02:57:48 i think coverage mapper might need this in one spot Apr 11 02:57:57 handling the coveragemapper.com uri and going directly to the map Apr 11 02:58:08 but im not sure any zynga games ive worked on would benefit **** ENDING LOGGING AT Wed Apr 11 02:59:58 2012