**** BEGIN LOGGING AT Wed Aug 07 02:59:58 2013 Aug 07 04:03:49 it's eclipse's nap time Aug 07 04:06:04 zzzz Aug 07 04:38:05 hi guys, whenever I open eclipse it fails to open with this error: https://gist.github.com/emilevictor/a7a1225fcaa21b3e2e8b Aug 07 04:45:46 Are there limits to the native heap size in Android? Aug 07 04:56:57 emilevictor: try eclipse -clean or whatever that is Aug 07 04:59:45 Now that I've figured out how to auto-import imports in emacs, I don't see a need to ever have to open Eclipse again. I'll see how that goes. Aug 07 05:04:50 Ologn what emacs stuff are you using ? Aug 07 05:05:20 g00s, jdee-2.4.1 Aug 07 05:06:43 g00s, http://www.emacswiki.org/emacs/JavaDevelopmentEnvironment Aug 07 05:06:56 Ologn yeah … i remember that one Aug 07 05:08:19 I do a (setq jde-global-classpath) to my API 17 android.jar Aug 07 05:08:56 I'm more of a vi guy then an emacs guy...I might get into emacs more though...especially now that I'm using it for this Aug 07 05:09:26 Maybe I can automate auto-imports more, although others may be working on it Aug 07 05:09:30 Ologn also try sublime :P Aug 07 05:09:36 i play around with all 3 Aug 07 05:09:42 i need to settle on one Aug 07 05:10:00 seems like i do most in IDE these days - but its good to know one stand-alone editor Aug 07 05:10:06 The kids at my college use sublime Aug 07 05:10:18 almost 0 learning curve Aug 07 05:10:29 vim and emacs have tons of historical baggage Aug 07 05:10:54 baggage has its upsides and downsides Aug 07 05:11:25 i'm not so comfortable with sublime being closed source tho; for some reason - an editor - to me its so fundamental, i would like something open source Aug 07 05:12:06 Does anyone know any book, article, or whatever which talks about how to manage software complexity? Aug 07 05:12:09 I was using Linux back in 1995 because it was open source, even though Slackware and fvwm etc. sucked Aug 07 05:12:22 Gavilan3: SICP? Aug 07 05:12:34 hah, me too. tried to load slack on some PoS Sager laptop Aug 07 05:12:44 1995 Aug 07 05:12:47 from floppies Aug 07 05:12:54 Code Complete is helpful for complexity to some extent Aug 07 05:13:23 hm, Complexity Aug 07 05:13:29 I still have an old laptop I "bricked" with LILO Aug 07 05:13:41 hehe Aug 07 05:14:16 I still have it around...when I have time to mess with it...still has some old data I want Aug 07 05:15:05 Gavilan3 all i can say is : complexity is the enemy :P Aug 07 05:15:10 g00s git her done Aug 07 05:15:29 yeah i'm reading this book on git too Aug 07 05:15:48 to me git is like c++ Aug 07 05:16:02 a bit more complex and def sometimes easier to screw yourself Aug 07 05:16:07 but very therapeutic Aug 07 05:16:28 hehe Aug 07 05:17:03 I dont like how vastly different it seems a lot of c++ projects are Aug 07 05:17:09 i didn't know git had different merge strategies you can choose Aug 07 05:17:21 default is recursive Aug 07 05:17:59 the thing with git is it miles above any free alternative Aug 07 05:18:10 or not free Aug 07 05:18:15 I've used a lot Aug 07 05:19:27 my worst experience was ClearCase, holy crap Aug 07 05:20:15 my company didn't have CC MultiSite - so they tried having the guys offshore using the Client over the wan and it never worked Aug 07 05:20:17 whata PoS Aug 07 05:21:00 I have to use p4 Aug 07 05:21:06 I hate it Aug 07 05:21:10 lots of weird little bugs Aug 07 05:21:11 then, keeping CC aliv requires like a full time admin for like every 10 projects about Aug 07 05:21:29 shit like ui dialogs literally pop up random size and its diff every time it pops Aug 07 05:21:29 so you get these people who don't write software ... Aug 07 05:21:50 and files will show as checked in, diff appropriately against previous ver Aug 07 05:21:53 yet enforcing the tools and procedures on the developers on how to use the most important tool Aug 07 05:21:56 NOBODY ELSE SEES YOUR CHANGES Aug 07 05:22:01 until you check out and check back in Aug 07 05:22:15 ron_frown i dunno man, maybe your admin was just a dumbass Aug 07 05:22:20 i know a lot of people who like p4 Aug 07 05:22:33 g00s: Perforce? Aug 07 05:22:39 theres a lot of people that like svn Aug 07 05:22:49 jfpoole yes Aug 07 05:23:02 I haven't used Perforce in FOREVER. Aug 07 05:23:13 I liked it's branching model, but having to check out files was a pain. Aug 07 05:23:19 there is no branching Aug 07 05:23:29 it literallhy just copies it into a new source controlled folder Aug 07 05:23:34 that takes history with it Aug 07 05:23:38 and you can merge between roots Aug 07 05:23:46 Merging was better than SVN, at least. Aug 07 05:23:51 hahha no shit Aug 07 05:23:52 As I said, it's been FOREVER. Aug 07 05:24:02 svn boggled my mind Aug 07 05:24:12 half the tim eit'd shit all over my file Aug 07 05:25:06 yeah, i hated the sv cheap copy bs / trunk / branches / tags Aug 07 05:25:09 *svn Aug 07 05:25:23 p4 is pretty popular with game studios with lots of graphics assets Aug 07 05:25:26 git sucks for that Aug 07 05:25:37 I am sure p4 does too Aug 07 05:25:46 p4 has lost a lot of big clients in the recent past Aug 07 05:26:05 oh, i bet lots of people are going to git Aug 07 05:26:21 even ms is letting you use git as a primary store with tfs Aug 07 05:26:22 i was reading the ThoughtWorks Tech Radar, they recommended git for enterprise dev Aug 07 05:26:24 which is fucking amazing Aug 07 05:26:37 wish they'd accept defeat with ie Aug 07 05:26:41 and quit pushing it Aug 07 05:28:01 Ologn: Sadly, that's the best answer I got so far, and probably the best one I'll get..... Aug 07 05:28:05 msysgit still feels pretty cheesy in windows Aug 07 05:28:12 what's the best way to know when View has been measured and thus v.getLayoutParams().width will be > 0? Aug 07 05:28:20 Gavilan3 looking for a book on complexity ? Aug 07 05:28:20 g00s: In my case, complexity is my friend.... Aug 07 05:28:25 g00s they have better replacements now afaik Aug 07 05:28:36 the vs.net git plugin is nice Aug 07 05:28:43 g00s: yup..... Aug 07 05:29:04 http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/ed5b594103c4_B6D0/image_8.png Aug 07 05:29:06 Gavilan3 well, lots of stuff outside software domain.. maybe systems thinking Aug 07 05:29:15 http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/ed5b594103c4_B6D0/image_2.png Aug 07 05:29:36 hey guys, I tried eclipse -clean but it didn't work Aug 07 05:29:37 https://gist.github.com/emilevictor/a7a1225fcaa21b3e2e8b Aug 07 05:29:41 the error still happens :( Aug 07 05:30:14 ron_frown what is that ? Aug 07 05:30:20 visual studio Aug 07 05:30:24 with its git plugin Aug 07 05:30:33 emilevictor if you dont have too much, and you are really stuck, try deleting your workspace :( Aug 07 05:30:44 mmm Aug 07 05:30:47 I'm trying to get that one back Aug 07 05:30:48 what is the error Aug 07 05:30:49 ron_frown so what git plugin are they using, msysgit ? Aug 07 05:30:58 because I'm also trying to get my keystone working again Aug 07 05:31:00 they wrot their own around some libgit3 or some shit Aug 07 05:31:05 things are all sorts of FUBAR for me right now with this app Aug 07 05:31:09 native client on windos Aug 07 05:31:17 ron_frown oooooo, nice Aug 07 05:31:25 do I have to use a ViewTreeObserver to know when a View has been measured? Aug 07 05:31:27 is it freely available and working outside VS ? Aug 07 05:31:32 no Aug 07 05:31:36 its part of .net Aug 07 05:31:36 :( Aug 07 05:31:43 er part of vs.net Aug 07 05:31:57 vs.net is also what mkaes me so nuts about c++ Aug 07 05:31:59 actually, Hg looked nicer than git, but i only wanted to learn one Aug 07 05:32:06 vs.net is amazing Aug 07 05:32:24 but I dont want to use vs.net for c++ stuff because ms interpetation of c++ is interesting Aug 07 05:32:31 and ide suppor tis pretty crap Aug 07 05:32:45 intellij needs a c++ ide and a .net ide Aug 07 05:32:46 g00s: what? Aug 07 05:32:54 emilevictor well, i guess i would try deleting the workspace, creating an ant build , building with ant to see at least if the project is sane, and then if so, maybe re-import that into a fresh eclipse workspace Aug 07 05:33:01 i mean, your exception was pretty bizarre Aug 07 05:33:27 Gavilan3 http://www.amazon.com/Systems-Thinking-Third-Edition-Architecture/dp/0123859158 Aug 07 05:33:34 do you know where my keystone might be? Aug 07 05:33:47 no Aug 07 05:33:48 Can someone explain the difference between the debug keystone and the "normal" one is? Aug 07 05:33:58 yeah, it's specified by me when I create it isn't it Aug 07 05:33:59 bummer Aug 07 05:34:02 you can delete the debug one and nobody cares Aug 07 05:34:11 you lose the release one, and you are screwed Aug 07 05:34:15 yep Aug 07 05:34:20 do they have the .keystore extension? Aug 07 05:35:14 mine does Aug 07 05:37:55 Gavilan3 the 'modern' way - oh man, i'm going to get flamed - of dealing with complexity is encapsulation, one of the main OO tenets. so in many kinds of software , OO design is key to managing complexity Aug 07 05:38:15 there are many paradigms, functional, etc Aug 07 05:38:45 but your mind tends to classify things, epistemologically - like a class hierarchy Aug 07 05:38:53 from what i hear :) Aug 07 05:39:18 i feel like i'm not going to do this argument justice Aug 07 05:39:28 also, what you see spouted as OOP... isn't Aug 07 05:39:59 Alan Kay alwats rags on the current state of things Aug 07 05:40:22 he's pretty upset these days :| Aug 07 05:40:29 g00s p_l: I know all that stuff... I just need a "reputable source" that explains that clearly..... Aug 07 05:40:53 any1 having issues w/ passing JSON as a POST via HTTP? i found it breaking at my "&"'s that were in my JSON .. whats a proper way of escaping those? Or preparing the JSON for an HTTP POST? Aug 07 05:40:55 Gavilan3 well, try reading the blue DDD book Aug 07 05:41:36 complexity is a tough topic , i'm not qualified to say much about it - except that it often kicks my ass Aug 07 05:41:48 i find android more complex than it needs to be Aug 07 05:42:01 hey guys, just a question.. How can I switch between listview and gridview using the same adapter? Both of them will show a image with text only the layout is different. Aug 07 05:42:28 Gavilan3 also, in software engineering, there are complexity metrics in code - even OO complexity metrics - for whatever they are worth Aug 07 05:43:22 what's the DDD book? Aug 07 05:43:26 Driven Domain Design? Aug 07 05:44:00 yeah, i think there is a smaller one now Aug 07 05:44:22 your question is so open ended though, i'm not sure what i can say Aug 07 05:44:45 you want the best abstractions to deal with complexity in software Aug 07 05:44:54 java doesn't have many of those :P Aug 07 05:45:05 this is where p_l and i say 'lisp' :D Aug 07 05:45:12 g00s: Anyway, if you have doubts about managing complexity, you can ask me... I know how to do it, I just don't have a reputable source about it..... Aug 07 05:46:02 are you coming from a project management perspective, or a systems design perspective ? Aug 07 05:46:24 g00s: A programmer perspective.... Aug 07 05:47:01 can anyone answer me please? Aug 07 05:47:13 Nimooli: No Aug 07 05:47:36 Gavilan3 well, from programming perspective, its mostly coupling and cohesion ;) Aug 07 05:47:50 Gavilan3, are you anyone? Aug 07 05:48:12 Nimooli: Maybe.... Aug 07 05:48:27 g00s: or decoupling and uncohesion.... Aug 07 05:50:34 anyhow, my bg is more computer engineering - not software engineering Aug 07 05:50:45 we're lower in the stack :P Aug 07 05:54:18 p_l what do you think about this http://radar.oreilly.com/2013/01/the-future-of-programming.html Aug 07 05:54:27 see section "Data computing" Aug 07 05:54:39 what languages do you think work best here ? Aug 07 05:55:55 g00s: SQL, Pig, some of the functional languages (NOT Javascript) Aug 07 05:58:30 fucking JS Aug 07 05:59:11 i remember reading Chris Date's book on relational theory years and years ago; he railed on SQL Aug 07 05:59:17 Date is mr Relational ;) Aug 07 05:59:24 Darkcoder: I send pm Aug 07 05:59:29 in his book, he used an academic language called D Aug 07 05:59:57 but there are no D databases ; SQL was too limiting to describe relational theory Aug 07 06:01:05 g00s: of course, I am not necessarily a fan of how SQL looks, but look at Sequel library for Ruby Aug 07 06:01:23 (or .NET's LINQ) Aug 07 06:02:05 p_l: SQL is evil... Aug 07 06:04:13 Gavilan3 maybe you would get better answer if you did 'Ask HN' Aug 07 06:05:04 g00s: definitely more of a hipster answer :> Aug 07 06:05:36 p_l: Use http://gemtalksystems.com/index.php/products/maglev/ Aug 07 06:07:33 Gavilan3: Meh Aug 07 06:08:05 GemStone/S is nice, but I don't trust when a cursory look can't give me the pricing data Aug 07 06:08:16 if I had smalltalk, why should I load up Ruby? :> Aug 07 06:09:30 (mind you, I am not against using proprietary software. But this is a bit of an out-of-context suggestion) Aug 07 06:10:41 is redline the one i heard about ... Aug 07 06:11:38 p_l hehe, what do you think of Groovy :P Aug 07 06:13:01 g00s: I only use it for gradle. Doesn't have best choices in terms of syntax from such limited pov. Doesn't seem to have enough hype to survive in the ADHD crowd Aug 07 06:13:28 yeah, i noticed a google trends things seems like its popularity is tanking Aug 07 06:13:52 it was one of the first jvm languages i think Aug 07 06:13:56 Outside of some stuff related to Grails, I don't think it was ever that popular... Aug 07 06:14:01 yeah Aug 07 06:14:06 g00s: pretty sure I've used older Aug 07 06:14:28 i kinda dont want to learn it , honestly. but need to know enough for grails. i don't see myself using it for anything else Aug 07 06:14:50 not grails, gradle Aug 07 06:14:54 ugh Aug 07 06:15:38 p_l also , is your FF23 behaving for you? i had a weird case this morning installing disocnnect.me; it did not ask any kind of confirmation - just installed it without acknowledgement either O.o Aug 07 06:15:47 Groovy showed up in 2003... I think the stuff I had to use at uni was older Aug 07 06:16:02 g00s: I've got FF22 still Aug 07 06:16:17 gotta make sure your tree style tabs works :P Aug 07 06:17:24 anyway, the shit I had to use for one of the courses at uni was in version way above 1.0, and we used a very old version from before 2003 which had warnings about Java 1.2 incompatibility, iirc Aug 07 06:17:50 p_l a jvm language ? Aug 07 06:17:52 JESS it was called, an interpreted offshoot of CLIPS in java Aug 07 06:17:54 in 2003 ? Aug 07 06:17:59 OH Aug 07 06:18:02 thats a rules engine Aug 07 06:18:05 :| Aug 07 06:18:09 g00s: it's a full language, actually Aug 07 06:18:24 i wanted to use it but licensing was bad Aug 07 06:18:28 yeah Aug 07 06:18:37 then drools came out, seemed good enough Aug 07 06:18:41 bleh Aug 07 06:18:51 * g00s wonders what happened to jess Aug 07 06:19:07 Drools is what happens when you get Prolog and Java drunk horribly, then do everything bad that still won't abort the kid Aug 07 06:20:30 anyway, there's a bunch of old jvm-implemented languages Aug 07 06:22:12 if only python didn't have that indentation bullshit - drives me up the wall Aug 07 06:24:37 hey bankai_ i just saw this :P https://news.ycombinator.com/item?id=6170582 Aug 07 06:24:58 yeah, this scrolling thing with the mouse is pissing me off. maybe i have to look at terminator Aug 07 06:25:07 BeanShell is pretty old (2000), Rhino apparently started in 1997, Jython similarily 1997, some weird thing called BBj in 2001, NetRexx is from... 1996? SISC is 2002, and given that Kawa mentions JDK 1.1... Aug 07 06:25:43 oh, BeanShell Aug 07 06:25:46 holy cow Aug 07 06:25:52 yeah Rhino is old ... Aug 07 06:25:59 wonder if its rotting Aug 07 06:26:38 I do not even want to know how old are the three commercial JVM COBOL implementations Aug 07 06:26:40 i jused Jython with grinder Aug 07 06:26:58 other than that they probably kick the shit out of Java when it comes to ease of writing I/O ;) Aug 07 06:27:00 fuck Rexx is old as hell too Aug 07 06:27:23 but i thought Kawa was new Aug 07 06:28:02 ... one of those COBOL implementations is cloud-based Aug 07 06:28:23 haha Aug 07 06:28:32 g00s: and apparently includes support for CICS Aug 07 06:28:39 and 15 different dialects Aug 07 06:28:42 ... mommy\ Aug 07 06:28:45 right up your alley ! Aug 07 06:29:46 ... it has JCL. Holy shit. Aug 07 06:30:05 i used JCL on VMS :| Aug 07 06:30:32 oh g'd... Aug 07 06:30:35 * g00s runs Aug 07 06:39:12 Good morning. I am trying to debug app on real device from windows installed on virtual box (native os is linux). Windows can access to device, also it shows and adb interface detected but when i click run ( IDE is Visual studio) there is nothing in device list. Aug 07 06:40:50 VS can do android? well there you go ... Aug 07 06:41:04 i have to deal with mondroid Aug 07 06:41:59 i'm afraid that the problem is in virtualbox Aug 07 06:42:00 g00s: ... btw, did I recommend "Qualia the Purple" to you yet? :D Aug 07 06:42:58 but is there a way to upload apk in device and run it from terminal? Aug 07 06:43:33 Deck`: adb install && adb shell am Aug 07 06:44:02 then you can use ADB to get a TCP/IP connection to debugger attached to the application etc. Aug 07 06:44:34 well i will try to run apk from windows manually Aug 07 06:48:36 p_l lolwut, Manga ? Aug 07 06:49:23 Deck`: have you assigned that the device to VirtualBox? Aug 07 06:51:08 yes Aug 07 06:51:34 well, i managed to upload apk via 'adb install' and run it by clicking on icon Aug 07 06:51:47 so windows can deal with usb device i think Aug 07 06:51:55 the problem is in visual studio Aug 07 06:52:20 Ok... (also puzzled that VS does android) Aug 07 06:52:26 are the wtf flags going on with anyone else? Aug 07 06:52:27 haha Aug 07 06:52:38 vs does not do android Aug 07 06:52:50 Hi does anyone have any idea on how to use any of the STL libraries (static stlport preferably) with the NDK in standalone mode? I've followed the instructions in the STANDALONE-TOOLCHAIN.html which states: "determined by your use of the --stl= option described previously" but if I specify anything like --stl=stlport I just get: arm-linux-androideabi-g++: error: unrecognized command line option '--stl=stlport' - any ideas? This is driving Aug 07 06:52:50 me crazy. Aug 07 06:52:53 even if you are doing the mono shit, you basically just use monodevelop Aug 07 06:53:14 g00s: one that is freaky when it comes to science, though it doesn't seem so ;P Aug 07 06:54:12 NDK seems so half - assed Aug 07 06:54:19 dear god Aug 07 06:54:22 why did they even bother Aug 07 06:54:23 payday come quick =) Aug 07 06:54:27 why did I spend so much cash Aug 07 06:54:48 g00s: people bothered them enough Aug 07 06:56:19 g00s: anyway, anything that manages to use interpretations of quantum mechanics as core plot element and makes Fermat's Principle into metaphor for something *SCARY* is worthy of reading, IMO ;) Aug 07 06:56:41 man, even the manga is over my head these days Aug 07 06:57:56 (it explains everything on the way, btw) Aug 07 07:00:03 Calling the NDK half-assed is kind of a compliment. Aug 07 07:00:26 * p_l ponders installing Gentoo/FreeBSD Aug 07 07:01:09 Gentoo? for real? Aug 07 07:01:35 maybe these days its better; it was so broken Aug 07 07:02:01 g00s: Gentoo is quite well right now Aug 07 07:02:14 now, Gentoo/FreeBSD is this weird thing... Aug 07 07:02:26 though more normal than Gentoo/NT Aug 07 07:02:41 it was great when Daniel Robbins was involved Aug 07 07:02:46 when he left it went downhill Aug 07 07:02:57 it had a bit of time when stuff was bad, yes, but now it's quite well Aug 07 07:03:06 i meant to play around with CoreOS, i mentioned to ron_frown the other day Aug 07 07:03:25 haha Aug 07 07:03:31 I was gonna work on that today Aug 07 07:03:37 spend have the day fucking about with u-boot =( Aug 07 07:04:28 g00s: meh, systemd Aug 07 07:06:24 if I were making something along those lines, I'd have used a very simple init system and drop Mesos on top of the ssytem Aug 07 07:06:27 *system Aug 07 07:06:50 is anyone familiar with a bug where widgets do not appear until the device is restarted? Aug 07 07:09:01 balls2thewall sounds normal 9.9 Aug 07 07:10:18 normal o_0 ? Aug 07 07:10:49 ive had this on a few devices > 4.0. surely its not a "feature" now Aug 07 07:11:21 balls2thewall its a miracle android boots up at all :| Aug 07 07:12:37 balls2thewall i was just mentioning this to p_l earlier http://radar.oreilly.com/2013/01/the-future-of-programming.html Aug 07 07:12:47 android is about 'Dangerous Computing' Aug 07 07:13:22 wobble Aug 07 07:14:14 basically john carmacks view on android in this years quakecon =D Aug 07 07:18:11 balls2thewall: don't think I've ever seen that on any of my Nexus devices at least :) Aug 07 07:18:37 never had such an issue even on my old frankenstein of an android Aug 07 07:18:42 I stopped reading at "The PC era is coming to an end" Aug 07 07:19:21 neither have i p_l, it seems the newer the android the more likely its going to happen Aug 07 07:19:30 i suddenly got this after an upgrade to 4.3 Aug 07 07:19:51 https://code.google.com/p/android/issues/detail?id=24208 Aug 07 07:30:08 balls2thewall: can't even find any widget apps without a launcher activity :) Aug 07 07:30:49 g00s: do you have any idea how to specify to use the stlport? Aug 07 07:31:42 very unaesthetic appel1 :/ i cant do that Aug 07 07:33:16 balls2thewall: so the bug hasn't been fixed? I thought it was a 4.0 only issue? Aug 07 07:33:33 ;_; Aug 07 07:34:06 sounds a bit to me like launcher-specific issue Aug 07 07:35:11 p_l: hasn't it to do with the apps are locked until the user has interacted with an activity feature? Aug 07 07:36:37 appel1: I rather suspect something related to caching Aug 07 07:37:04 p_l: true Aug 07 07:37:17 install -> doesnt show up -> restart -> shows up -> uninstall -> install again -> shows up Aug 07 07:37:22 anyone know how I'm supposed to use the --stl=stlport parameter to arm-linux-androideabi-g++ ??? Aug 07 07:38:28 a bit odd that jbq closed the issue with WrongForum when someone could reproduce it in the emulator Aug 07 07:38:51 ain't that -stdlib=stlport ? Aug 07 07:40:08 mitch0: not according to the docs and not when I try it either.. Aug 07 07:40:21 hm. dunno then, sorry Aug 07 07:40:53 This is so frustrating... How do google expect us to use the NDK when such a simple thing doesn't work... Ahhhhhhhh! Aug 07 07:40:54 I'm waiting for google to finish porting libc++ and offer a clang-based toolchain ;) Aug 07 07:41:13 mitch0: It seems that NDK r9 does Aug 07 07:41:39 does what? Aug 07 07:41:53 clang? Aug 07 07:41:56 provides clang. Aug 07 07:42:05 yeah, that's half the way there Aug 07 07:42:15 the bigger gain would be libc++ Aug 07 07:42:32 Hi all, I have a viewpager (pages are fragment) and one page contains a horizontal listview, how can i handle the touch action on the right way? Currently the horizontal listview isn't scolling, it switched the page index instead off scrolling inside the horizontal listview Aug 07 07:42:33 (preferably included in base android) Aug 07 07:42:59 mitch0: rather hard to do Aug 07 07:43:33 FrancescoV: horizontal listview? are you using a custom component for that? Aug 07 07:43:53 better fix bionic's linker and make the NDK scripts ship the correct libc++ for the application Aug 07 07:44:22 what's wrong with the linker? Aug 07 07:44:27 too slow to link c++? Aug 07 07:44:43 FrancescoV: also, look into requestDisallowInterceptTouchEvent Aug 07 07:45:09 karlo: yes i'm using a custom component for that Aug 07 07:46:12 mitch0: no, it doesn't do certain things to make recursive linking easier Aug 07 07:46:23 c++ sucks at link time anyway ;) Aug 07 07:46:25 why not just port the gold linker? Aug 07 07:47:23 mitch0: you're mistaking build-time linker with the run-time linker Aug 07 07:47:46 oh, yeah. too early, not enough coffee ;) Aug 07 07:47:51 the first creates binary files for future running, the second loads and links them together in memory to run them Aug 07 07:48:37 the second also implements the whole "DSO" thingy :) Aug 07 07:52:16 hello, I was wondering if anyone was having problems accessing google play services from eclipse? Aug 07 07:53:03 my application doesn't run anymore, I am getting a message in my logcat that says "google play service resources were not found" Aug 07 07:59:59 * vslice14 hello Aug 07 08:13:28 vslice14: They do not run in the emulator. Aug 07 08:13:29 well Xamarin studio found my device and tried to deploy but said "Deployment failed because of an internal error: Could not find file Mono.Android.Platform.apk" Aug 07 08:13:58 i am running it on a physical device Aug 07 08:14:29 You did include it as a "project dependency" (the Google Play SDK) in your Eclipse project? Aug 07 08:15:27 yes i did. and i even redownloaded the google-play-services-lib from the sdk manager Aug 07 08:15:31 If you have a listview and you want that the height of the item is X dp. X dp = 5 items visible on screen, is this possible to create this? Aug 07 08:16:41 so then i reverted back to my code that i saved from a week ago. at that time it worked perfectly with the library but when i ran it today i got the same message Aug 07 08:18:12 vslice14: From the error message, it sounds like it may have gotten the code (the jar), but not the compiled-in resources. If you're sure everything is ok, I'm out of ideas. Aug 07 08:18:42 vslice14: have you updated your android sdk manager? Aug 07 08:19:21 i just don't understand why it won't detect it all of a sudden. I've updated everything from the sdk manager and I'm targeting 4.3 Aug 07 08:20:07 how do i make sure i get the compiled-in resources? Aug 07 08:21:17 http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject Aug 07 08:23:14 i've done all that, but i haven't made any changes to my manifest. But that's not required when referencing google-play-services-lib right? I mean its been working ever since yesterday Aug 07 08:24:44 No, the manifest stuff is only necessary if the library got it's own activities. You've tried a complete rebuild as well, right? Maybe you could paste-link more of the logcat errors? Aug 07 08:25:10 08-06 16:42:32.286: W/ResourceType(2977): getEntry failing because entryIndex 906 is beyond type entryCount 129 08-06 16:42:32.286:W/ResourceType(2977): Failure getting entry for 0x7f0b038a (t=10 e=906) in package 0 (error -2147483647) 08-06 16:42:32.286: E/GooglePlayServicesUtil(2977): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. Aug 07 08:25:30 I'm not even gonna try to read that. Use pastebin or a similar service. Aug 07 08:25:36 and yeah i rebuilt and cleaned the project Aug 07 08:25:53 im new to this...how do i use pastebin and what is that Aug 07 08:26:02 And paste longer snippets, including call stack info etc. Aug 07 08:26:40 Go to pastebin.com . Copy whatever you need to share and paste it into the "New paste" area. Then paste the resulting link here. Aug 07 08:33:16 kjeldahl: http://pastebin.com/X3YKvPQW Aug 07 08:34:12 I'm making a video player, it's using videoView and some custom controllers (play/scrub/pause/progress spinner etc). It all works fine, except for one annoying detail. When I seek for instance, the stream stops a bit and I show the spinner, but I get the onSeekComplete before the actual video is playing. I've also tried to poll the isPlaying function, to see if that can correctly inform me if actual video content is playing, but no luck. Anyone got a clu Aug 07 08:34:13 e ? Aug 07 08:34:28 the line where the error occurs says "The Google Play services resources were not found. Check your project configuration to ensure that the resources are included." Aug 07 08:36:09 This you've tried: http://stackoverflow.com/questions/18068627/logcat-message-the-google-play-services-resources-were-not-found-check-your-pr The Project > Clean part... Aug 07 08:36:54 Hey guys. I got a problem with a ViewFlipper. I want to do something similar to a slideshow. But i want to go through all views and stop when it reaches the last one. I found a solution for this here: http://stackoverflow.com/questions/12610106/how-to-stop-android-viewflipper-from-looping (Answer 3). My problem is now that this.flipper.getAnimation() returns a Nullpointer. I hope you can help me. Here is my relevant code: http:/ Aug 07 08:36:54 /www.pasteall.org/44666/java Thanks in advance. Aug 07 08:38:26 kjeldahl: yeah i saw that. actually that question got posted the same day i had my problem. I even made my own question on it as well. http://stackoverflow.com/questions/18091509/google-play-services-resources-were-not-found-error Aug 07 08:38:58 Hm, seems the Play stuff is pretty widespread. Come to think of it, yesterday, when I rebuilt my application (Killermatch), the login button decoration (which comes from the Play SDK) disappeared for at least one build. But it came back. Looks like some weird bug. Aug 07 08:39:09 "Play stuff problems" I meant. Aug 07 08:39:59 I'm only use Gradle for building (not Eclipse, not AS), so it definitively could newly introduced bugs. Aug 07 08:40:09 using* Aug 07 08:40:35 *sigh* What a sentence I wrote! Aug 07 08:40:36 i was talking to someone that develops an app on the android platform and he said that his manager who knows someone at google said that the services were down for some reason. but this is unofficial Aug 07 08:40:59 havchr: by spinner do you mean the spinning progress bar ? Aug 07 08:41:35 shmooz, yeah, sorry, my wording might have you confused with the actual SpinnerView Aug 07 08:41:41 The "bug" only hit me once last night. Have worked fine since then and haven't seen the bug since. But I did not look at my logcat when it happened. Could be the same error (no red button, but the area was still clickable). Definitively some resource issue. Aug 07 08:42:36 i even restarted eclipse though. maybe tommorow ill restart my entire computer and phone and see if that works. but i mean idk why that would Aug 07 08:42:38 vslice14: Sry, have no other ideas, other than making SURE everything gets rebuilt, i.e. remove generated R.java files etc (which I think Project > Clean should do). Aug 07 08:43:00 thats fine, thanks for your help though Aug 07 08:43:23 Hello. My ListFragment becomes invisible on orientation change. on my containing Activity's onResume() method, the ListFragment isn't null, and isVisible() returns false. I tried to create a new transaction to show the fragment, but the screen is still bank. Aug 07 08:43:57 Last I remember, I didn't face this problem when I defined the fragment in the layout file of the activity Aug 07 08:44:08 sulaiman: there are multiple ways of handling rotations in android Aug 07 08:44:19 kjeldahl: should i manually remove the r.java and clean or should i just clean? because i did clean the project Aug 07 08:44:25 sulaiman: 3-4 methods - try some time investigating what fits best for you Aug 07 08:44:29 just not manually remove the R.java Aug 07 08:44:57 monsti, which methods are those? Aug 07 08:45:06 kjeldahl: I wrote a video player app too, and I put the indefinite progressbar in a Runnable thread of its own Aug 07 08:45:13 sulaiman: 3-4 i can't wirte them in one line in irc Aug 07 08:46:00 vslice14: As long as it's the generated one in your project, yes. Or make sure that it does not exist before you attempt a rebuild after cleaning. Aug 07 08:46:06 i'll first try to define a fragment in the layout file () and see if I face this problem Aug 07 08:46:30 oops I meant havchr Aug 07 08:46:49 ok ill give it a shot Aug 07 08:47:16 (if you manage to convince Eclipse to stop building automagically.. ;-) Aug 07 08:47:36 shmooz, cool. But did you find a good way to enable/disable it? I haven't found a state that correctly reflects actual playing video content. Aug 07 08:48:18 shmooz, I'm thinking of maybe having it stay a second or two extra on screen after for instance onSeekCompleted and fading out. Aug 07 08:48:50 Heya folks, quick question - is it possible to pass instances of LruCache between activities? Aug 07 08:49:39 I'm seeing threads hanging in some Android versions, but not in others. Did something significant change in AsyncTask and or Executors lately? Aug 07 08:49:42 havchr: it sortof works, it checks every 300 ms to see what state it's in , playing or not, I also placed a percentage indicator in the middle of the progress spinner using VideoView.getBufferPercentage(); Aug 07 08:50:23 Tee_Pee: Probably not. Aug 07 08:52:04 shmooz, I tried polling videoView.isPlaying , but it was telling me it was playing even though the video was not steadily playing. This was only tested so far with seeking and not with bad network, which I will test soon. Aug 07 08:53:36 havchr: here's my code for that part ... http://pastebin.com/k7YuFUfw Aug 07 08:54:32 I use getBufferPercentage to determine that instead of isPlaying Aug 07 08:54:55 shmooz, thanks. Maybe isPlaying was my mistake, will try and use the bufferPercentage instead. Thank you again : ) Aug 07 08:55:20 havchr: good luck :) Aug 07 08:58:45 anyone still here? Aug 07 09:00:07 Does someone have an Idea for my viewflipper-problem? Aug 07 09:01:04 what's the problem? Aug 07 09:02:06 why ViewPropertyAnimator does not extend Animator? ... Aug 07 09:02:08 i have a logcat message that says " Failure getting entry for 0x7f0b038a (t=10 e=906) in package 0 (error -2147483647)" with TAG "ResourceType" does anyone know what that could mean. It precedes the message that says "Google play services resources not found" Aug 07 09:03:03 i assume its an error in the gen R.java files then since it can't find the resources?? Aug 07 09:03:48 kjeldahl: ^ Aug 07 09:04:00 Very likely some trouble with generating or the generated R.java yes. Looks like it specifices what went wrong (not finding resource with the given id). Aug 07 09:05:13 hmm. i deleted the R file, cleaned, and then rebuilt it. but ill try it again. That's the order right? delete, clean, and then build. should i also delete the R in the google-play-services-lib project? Aug 07 09:07:30 kjeldahl: btw i got eclipse to delete the R w/o building right away ;) Aug 07 09:07:31 shmooz, hmf, weirdly I only get 0 from the buffer percent. Maybe http-live doesn't buffer like that. I'll try with an rtsp stream. Aug 07 09:07:45 meetoman, I posted it soemwhere up there. I wrote it to you in a dialog. Aug 07 09:07:59 vslice14: Since you're using Eclipse, I'm not sure it's relevant, but it may be if they are updating the Eclipse plugin similarily to the Gradle plugin. https://plus.google.com/+TorNorbye/posts/1XTfNjgV7hT https://code.google.com/p/android/issues/detail?id=56843 Aug 07 09:09:05 vslice14: Well, I do not know all the details, but probably. The point is resources get ids during build time, and then Play Services can not have a static file with ids that does not change when you do a clean rebuild. It needs to coordinate ids across projects (yours and the library). Aug 07 09:12:04 havchr: yeah I haven't tested with http-live, only rtsp, it works fine, the 300 ms delay is not noticable Aug 07 09:13:58 monsti, I verified that the list fragment works on orientation if I hardcode the fragment in the containing activity's layout file. Can you point me to one of the methods to prevent the fragment from going invisible if I instantiate the fragment in code? I have tried manually setting the visibility, transaction.show(nonnullexistingfragment) onResume, but that doesn't work Aug 07 09:14:14 google "handling rotation in android" Aug 07 09:14:21 read one of the 2000000 articles Aug 07 09:14:40 Can anyone pls suggest me one lightweight HTML parser? Aug 07 09:18:05 yeah that didn't work :/ maybe its a problem on google's end... but i think i've got down to knowing the error may be in the resources part of the project. I searched the R.java file for the constant 0x7f0b038a but i couldn't find it in either my project or google-play-service-lib Aug 07 09:19:00 kjeldahl: i think it may still be looking for a taken out resource? Aug 07 09:21:21 shmooz, in true Android fashion, I'm getting weird results. It works somewhat on galaxy s3 on rtsp, but not on http-live , it doesn't work at all on galaxy nexus (4.3) , I only get buffer = 0 :) Aug 07 09:21:42 vslice14: I do not think anything has been taken out; then I would have been hit yesterday as well. I think it's about the resources not getting proper matching ids. Aug 07 09:22:32 vslice14: I released an update to my app some 11 hours ago, and it seems to work fine. I rebuilt it now in another office, and still runs fine. Aug 07 09:22:57 vslice14: BUT, I'm using Gradle, which is probably more up to date these days than the ADT plugin for Eclipse. Aug 07 09:23:18 eclipse doesn't support gradle correct? Aug 07 09:23:23 havchr: weird, it worked on my htc panache / mytouch4g , so I figured I was done Aug 07 09:23:23 is it possible to have a label aligned left and a button aligned right with a linear layout? Aug 07 09:23:33 vslice14: The gradle plugin had the problems you describe a few weeks ago. It may very well be they have fixed it with gradle, but haven't updated the ADT plugin for Eclipse yet. Aug 07 09:23:59 vslice14: Correct, Eclipse uses the ADT plugin (which I believe they are still trying to support). Aug 07 09:24:10 havchr: let me know if you come across a better solution, I'll try it too Aug 07 09:24:35 * kjeldahl runs off to grab lunch. Aug 07 09:30:44 monsti, I know you are getting annoyed, but I haven't come across any that helps me deal with a fragment gone invisible. I'll try again later Aug 07 10:11:25 Anyone experienced in staged rollouts? I pushed a new version to 20% in Google Play yesterday, but noticed today in my crashlogs there is a bad regression in the new release. What is the best way for yet another update? Aug 07 10:12:46 It seems it's possible to have multiple APK in production (more than two) with a percentage each but I've never tried this. Aug 07 10:17:54 Hey guys. I got a problem with a ViewFlipper. I want to do something similar to a slideshow. But i want to go through all views and stop when it reaches the last one. I found a solution for this here: http://stackoverflow.com/questions/12610106/how-to-stop-android-viewflipper-from-looping (Answer 3). My problem is now that this.flipper.getAnimation() returns a Nullpointer. I hope you can help me. Here is my relevant code: http:/ Aug 07 10:17:54 /www.pasteall.org/44666/java Thanks in advance. Aug 07 10:17:57 Noooo, why did it change to Google Wallet. I don't like the layout. 1. I can't see the names of the people who have bought the apps like I previously could and 2. It's complaining about Tax. Do I really need to pay tax??? Aug 07 10:18:02 snowpong: Just do a new release to the same percentage of users? If that does not go out to the same 20%, then the whole feature is bullshit, isn't it? Aug 07 10:19:02 snowpong: Well, if the 20% is random, you still need to do another rollout to fix the regression, and as soon as it's fixed, you roll out to 100%, right? Aug 07 10:19:36 snowpong: I've only used the alpha/beta rollout schemes, where the population is static. Not sure about percentage rollouts (as you can guess). Aug 07 10:20:01 kjeldahl: I've tried both, and the staged one is just random people Aug 07 10:20:18 kjeldahl: what I don't know is what happens when I add another staged on top of the first Aug 07 10:20:51 kjeldahl: I can only "increase the percentage" for the existing staged rollout, I can't cancel or override it seems Aug 07 10:20:51 snowpong: Wow, sounds a bit crazy. Each new staged rollout creates another set of permutations of upgrades. Aug 07 10:21:37 snowpong: I guess the question is if it remains the same percentage, will it go out to the same group as last time, or a random new subset (with both people who did not receive previous upgrades and people who did). Aug 07 10:22:13 kjeldahl: yeah - I have no idea what will happen Aug 07 10:24:40 Hey guys is there a way of switching back from google wallet? I can't keep track of the number of downloads i have or see the names of people who have bought Aug 07 10:25:41 snowpong: Haven't found any confirmation, but it should be the same 20% for each release. If not, by the time you've had a few 20% releases, 90% of your user base will have upgraded. That's hopefully not a feature they want... Aug 07 10:29:11 hey guys Aug 07 10:29:31 kjeldahl: I'll just have to upload a new apk (when I have a fix) and see what they UI says... Aug 07 10:29:34 just a quick question: is there some way to supply 2 layouts to the spinner in the actionbarsherlock? Aug 07 10:29:56 snowpong: Please come back and share! I would like to know as well. Aug 07 10:30:00 like what it is when displaying at the top and another one for the items in the list when its open? Aug 07 10:30:02 kjeldahl: will do Aug 07 10:31:31 hum: i currently have 3 services (A,B,C). A binds to B, B binds to C and when binding, they get messengers. Then, B gives a messenger of C to A, such that A can message directly to C. Is this a bad setup w.r.t security? Aug 07 10:31:51 Hey guys is there a way of switching back from google wallet? I can't keep track of the number of downloads i have or see the names of people who have bought Aug 07 10:36:58 hey guys, do you know if inflate() method of LayoutInflater is asynchronus or not? Aug 07 10:37:38 defuera: Not. Aug 07 10:38:32 But that doesn't necessarily mean the views will actually have been drawn when it returns. Aug 07 10:38:47 Hey guys is there a way of switching back from google wallet? I can't keep track of the number of downloads i have or see the names of people who have bought Aug 07 10:40:34 thx, but could u explain me one thing, Im creating a list view with customized adapter. when I try to create an ImageView via findViewById() - it returns null for about six times before it returnes actual value.. Aug 07 10:42:37 defuera: Hard to say. Sounds like you're doing something fishy. If you share some actual code maybe somebody could help. Aug 07 10:42:44 the code is very simple and common http://pastebin.com/PSNS7Z7D Aug 07 10:44:05 am I missing something obvious today?) Aug 07 10:44:19 Your findViewById isn't looking in "view", is it? Is that the problem? Aug 07 10:45:27 emm, what do meam? Aug 07 10:46:10 try view.findViewById instead. Aug 07 10:46:16 oh oh oh Aug 07 10:46:33 damn!!! so obvious! thanks) Aug 07 10:46:39 you're welcome! Aug 07 10:46:46 ahhh, what a stupid ) Aug 07 10:47:45 Hey guys is there a way of switching back from google wallet? I can't keep track of the number of downloads i have or see the names of people who have bought Aug 07 10:57:58 Does anyone have experience with Google Analytics for Android? Aug 07 11:04:13 Hey guys is there a way of switching back from google wallet? I can't keep track of the number of downloads i have or see the names of people who have bought Aug 07 11:05:27 Amorgos: Well, I have it active in my app, but I haven't used it much yet. I probably can't answer much questions about it. Aug 07 11:05:50 how do i get hold of the view that is contained within actionbarsherlock's navigation view? Aug 07 11:06:31 How do I use google checkout instead of being automatically directed to Google Wallet Aug 07 11:23:28 You don't, google checkout is going away Aug 07 11:23:41 And I don't see why you need the name of the people who bought Aug 07 11:28:49 I like to keep a close relation with customers. There was this one unhappy customer who was really unhappy and gave me a one star so I fixed the problem and emailed them personally and they were delighted and changed it to five stars. I won't be able to do that anymore, customers are now just a number Aug 07 11:29:17 But hey it's fine Aug 07 11:29:30 I mainly just like the checkout interface better Aug 07 11:33:15 Is it worth using mobile ad networks like Tap for Tap? Aug 07 11:35:04 Do these things actually get you more downloads and is it worth it? Aug 07 11:53:25 Hey guys. I got a problem with a ViewFlipper. I want to do something similar to a slideshow. But i want to go through all views and stop when it reaches the last one. I found a solution for this here: http://stackoverflow.com/questions/12610106/how-to-stop-android-viewflipper-from-looping (Answer 3). My problem is now that this.flipper.getAnimation() returns a Nullpointer. I hope you can help me. Here is my relevant code: http:/ Aug 07 11:53:26 www.pasteall.org/44666/java Thanks in advance. Aug 07 12:02:44 Hi does anyone have any idea on how to use any of the STL libraries (static stlport preferably) with the NDK in standalone mode? I've followed the instructions in the STANDALONE-TOOLCHAIN.html which states: "determined by your use of the --stl= option described previously" but if I specify anything like --stl=stlport I just get: arm-linux-androideabi-g++: error: unrecognized command line option '--stl=stlport' - any ideas? This is driving Aug 07 12:02:45 me crazy. Aug 07 12:09:25 hi #android-dev, anyone here has experience with GCM CCS whitelisting? Aug 07 12:17:36 monsti, I got it working, I was populating the list inside onCreateView(), I moved the code inside onActivityCreated() Aug 07 12:20:43 i dont think i undrstand multi touch events ugh Aug 07 12:20:58 why are there not pointer actions for each pointer? Aug 07 12:30:18 I have a question about using the appcompat Support Library with an Ant build system. Aug 07 12:30:29 How can I make it work? Aug 07 12:31:06 I have added android.library.reference.n=path/to/appcompat to project.properties and the build system is detecting it and trying to compile it. Aug 07 12:32:10 But I get a long list of errors such as the following: Aug 07 12:32:11 [aapt] Generating resource IDs... Aug 07 12:32:37 [aapt] /XXXX/adt-bundle-linux-x86_64/sdk/extras/android/support/v7/appcompat/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'. Aug 07 12:33:08 Because you're not compiling against api14+ Aug 07 12:33:09 I get errors like that for the files in appcompat/res/values-v11 and appcompat/res/values-v14 Aug 07 12:33:39 Oh. Aug 07 12:34:26 Okay, I see where the problem is. Aug 07 12:35:17 * str4d smacks itself over the head with a large trout. Aug 07 12:35:59 Thanks for the reality check SimonVT ^_^ Aug 07 12:57:28 Hi all Aug 07 12:57:57 Can anybody help me? I have a problem with Google Play services Aug 07 13:01:55 Noone can help you without knowing what the issue is Aug 07 13:04:45 @SimonVT: Sorry you are right, the problem is about google sign in Aug 07 13:05:33 @SimonVT: some users are reporting me they cannot access to google play services, every time the try to sign in they get Unknown Error code 4 Aug 07 13:06:54 @SimonVT: i have tried to cancel the certificate from Google API console and relink the application in the developer console but it didn't work Aug 07 13:07:38 @SimonVT: i can sign in without problems and other users can too but many others cannot i really do not understand why Aug 07 13:26:54 if you want to set the width of an imageview with code using layoutparams, is this with pixels or dp? Aug 07 13:27:14 kjeldahl: so I tried it out Aug 07 13:27:28 kjeldahl: it seems the new APK overrides the existing staged rollout Aug 07 13:28:33 Hola Aug 07 13:28:38 SimonVT: Stop being everywhere! Aug 07 13:29:07 kjeldahl: so the existing people on the old release (80%) were unaffected, the release from yesterday which was released to 20% is unpublished and the new upladed APK replaces the 20% spot Aug 07 13:29:08 Wat Aug 07 13:29:18 FrancescoV: Pixels Aug 07 13:29:23 Always pixels in code Aug 07 13:29:29 Unless it a method that converts dp to pixels Aug 07 13:29:38 SimonVT, tnx :) just found it too Aug 07 13:33:10 SimonVT: Did you read what i wrote? I mean, do you know how can i fix my issue? Aug 07 13:33:43 I was just letting you know that to get an answer you should ask a question :) Aug 07 13:34:36 SimonVT: How do i fix the Unknown Error on google play services sign in? Aug 07 13:35:05 I have no idea Aug 07 13:35:41 You should just ask your question. If anyone knows, they'll answer. If not, you're fucked Aug 07 13:36:19 SimonVT: K, thanks :) Aug 07 13:40:50 Is there any reason why a DialogFragment(http://pastebin.com/rYF7a0dU) would crash the app on rotation? Aug 07 13:42:13 Radsr: stacktrace stacktrace stacktrace Aug 07 13:42:58 Radsr, from the topic: http://imgur.com/jacoj Aug 07 13:43:16 I want to get a Bitmap from a View after onCreate()... when is the best time to do this? Aug 07 13:44:16 poutine, haha Aug 07 13:44:20 Leeds, http://pastebin.com/z0uANLi6 Aug 07 13:44:52 Looks like it's failing to get the drawable from imgGetter... Aug 07 13:45:35 com.rubenrocha.encrypttotal.MainActivity$AboutDialog$1.getDrawable(MainActivity.java:372) Aug 07 13:46:20 Leeds, why would it be a NullPointer though? It's a resource that's there all the time... Aug 07 13:46:33 that would obviously depend on your code... Aug 07 13:47:31 Leeds, very true, but I don't see any other way of doing it, unless I take the getDrawable off.. but I do want that image there... Aug 07 13:47:42 Maybe because you only get the drawable the first time the method is called, but you always set the bounds Aug 07 13:49:32 Bitmaps are the devil Aug 07 13:50:08 SimonVT, well, on device rotation, i believe onCreate is called again(I may be wrong), and it calls the method that gets the drawable from there.. Aug 07 13:50:12 so it should be defined... Aug 07 13:52:42 Maybe you're calling it more than once Aug 07 13:52:46 Attach a debugger and find out Aug 07 13:53:13 debuggers are for squares Aug 07 13:53:19 use system.out.println Aug 07 14:00:57 anyone knows why "android:textStyle="bold"" not working in ListView? Aug 07 14:01:31 elichai2, did you set it to the list item? Aug 07 14:02:19 basilisk, what do you mean? Aug 07 14:02:23 im getting a json string using HttpClient execute. When i get latin characters fails to parse json using jackson, I want to filter that string switching from á to a. Tried many ways from internet, and ended up make my own method using a Hashtable . The problem is that always get containsKey to false.. any tips on that? Aug 07 14:02:48 which adapter are you using for the list view? Aug 07 14:03:26 adapter = new ArrayAdapter(this, Aug 07 14:03:26 android.R.layout.simple_list_item_1 Aug 07 14:03:26 , s1); Aug 07 14:04:31 basilisk, i'm trying to do that the whole ListView will be bold... Aug 07 14:04:50 thats your problem. instead of simple list item, you need to create your own layout (which should have textview as its root) and pass that to the adapter Aug 07 14:05:10 wow. I figured the problem out, i was running imageNumber++ on the image, so on rotate, it would get image 1 instead of 0 which doesn't exist! Aug 07 14:05:21 basilisk, no way to do that without creating a custom ListView? Aug 07 14:05:37 elichai2: creating a custom listview isn't too difficult Aug 07 14:05:38 no need to create a custom list view, just a layout Aug 07 14:05:44 ok.... Aug 07 14:05:49 one last question Aug 07 14:06:52 there is a way to do that the background image will a little more Transparented Aug 07 14:07:37 (what i mean is that it's hard to read the text because that backgroung image is hidding it, so i want it to be a little Transparent....) Aug 07 14:08:19 you might want to try adding alpha or tint to it Aug 07 14:09:36 basilisk, you mean to edit the image itself? Aug 07 14:10:15 hi all Aug 07 14:10:39 I need to manage a date field... does the date type exists in sdk? Aug 07 14:11:15 elichai2: http://developer.android.com/reference/android/widget/ImageView.html#setColorFilter%28int,%20android.graphics.PorterDuff.Mode%29 Aug 07 14:11:34 g41n: http://developer.android.com/reference/java/util/Date.html Aug 07 14:12:42 im trying to get away from hardcoding the path to an existing database that comes with my app. however, im having a hard time figuring out how exactly to use getFilesDir().getPath() to do that. all i get is crashing... here are the two lines showing what im using now and what im trying to use: http://pastebin.com/0Xc5qcpp. any idea what im doing wrong? Aug 07 14:12:48 dougsko: thanks... how I've missed it? lol Aug 07 14:12:51 basilisk, how can i use it to make the background image more brighter/transparented? Aug 07 14:14:49 .... Aug 07 14:16:22 basilisk, ? Aug 07 14:16:57 dougsko: I can't find how to cast it.. Date d = new Date (mystringdate.toInteger()); doesn't works... Aug 07 14:17:55 nro (int) mystringdate Aug 07 14:17:59 *nor Aug 07 14:18:31 g41n: sorry, ive never actually used it myself. just saw that doc and thought it might help Aug 07 14:18:48 dougsko: ok, thanks anyway... I'll find it ;) Aug 07 14:19:14 elichai2: from what I can gather from the docs, try setting the mode to LIGHTEN and supply some grayscale color depending on how much lighter you want it Aug 07 14:20:09 g41n: look at SimpleDateFormat to parse the date string Aug 07 14:21:19 Maestro: does it works with timestamp too? Aug 07 14:21:34 Maestro, i will try.... Aug 07 14:21:38 you define the format yourself, so it should work Aug 07 14:21:53 I could pastebin an example from my own code Aug 07 14:22:27 Maestro, i would like if you will do it :) Aug 07 14:22:44 elichai2: that was directed to g41n Aug 07 14:22:51 ohhh :( Aug 07 14:24:08 Maestro, i can't understand how can i use SetColorFilter() on the background itself... :( Aug 07 14:26:28 elichai2: the background of what, specifically, the listview? Aug 07 14:26:41 Maestro, of the Activity itself Aug 07 14:27:26 (i use RelativeLayout and then setContentView in the code...) Aug 07 14:29:07 elichai2: try using an imageview for the background, and apply the tint to that imageview Aug 07 14:29:40 no wait, that might not be possible Aug 07 14:31:20 elichai2: you don't need the imageview Aug 07 14:33:02 so? Aug 07 14:33:08 try this: get the top element of your layout, the listview or some layout object Aug 07 14:33:30 and? Aug 07 14:33:58 use getBackground() to get the Drawable object for it, and use setColorFilter() on that Aug 07 14:34:23 Maestro, use getBackground() on what? Aug 07 14:35:55 the topmost view in your layout hierarchy Aug 07 14:36:42 you mean that if i have " list = (ListView) findViewById(R.id.listView1);" i need to do "list.getBackground().setColorFilter()" Aug 07 14:37:07 you could try that Aug 07 14:37:47 how can i dump output of db.rawQuery("select * from table_name", null) into a string or something? Aug 07 14:39:35 omid8bimo, you mean the result? Aug 07 14:39:47 Xabster: yup Aug 07 14:40:10 you loop over the resultset, and you use the resultsetmetadata to get column count Aug 07 14:40:57 if you just want to dump the data to a string for debugging purposes, use DatabaseUtils.dumpCursorToString() Aug 07 14:41:50 oh, didn't know there was such a class Aug 07 14:42:37 Maestro: Date date = new Date(Long.parseLong(mystringdate)); Aug 07 14:42:39 hrnt: that's what i need :) Aug 07 14:43:03 g41n: did that work? Aug 07 14:46:20 i am trying to use the ActionBarSherlock library. i created a project from source, marked it as library and added it under android->add library in my real projext. i changed all the extends and it compiles and all is good but it dies on creating the main activity. "unable to instantiate activity", the exception says java.lang.classnotfound. any idea what is wrong ? i've been messing with Aug 07 14:46:20 this all day :( Aug 07 14:50:17 also changed all fragmentmanagers and actionbar objects to support.v4 Aug 07 14:51:15 equex: it's probably a good idea to also mention what class was not found, that part is pretty important. Aug 07 14:53:16 actually it would be useful if you pasted (to a pastebin) the complete exception message and the stack traces Aug 07 14:53:25 alankila: its the main activity class . (which extends SherlockFragmentActibity) Aug 07 14:53:29 alright will do Aug 07 14:54:57 elichai2: did you get it to work? Aug 07 14:56:25 Maestro, my Emulator doing problems right now LOL Aug 07 14:56:33 haha Aug 07 14:56:39 Maestro, so i first trying to get it work :) Aug 07 14:57:11 ok so i didnt really see the message about 'unable to resolve superclass...' as you can see in the paste. but still, i don't know how to fix it. looks to me like there is a typo somewhere (the uppercase L in Landroid/support/v4... message) -> http://pastebin.com/EjKf8Nfc Aug 07 14:57:33 The support library isn't being exported when you build Aug 07 14:58:54 The super class of Watson is FragmentActivity. It can't find FragmentActivity, so Watson is evicted.. The super class of SherlockFragmentActivity is Watson. Watson can't be found (it was evicted), so SherlockFragmentActivity is evicted.. etc Aug 07 15:03:11 there is no LIGHTEN in setColorFilter() Aug 07 15:03:50 you're looking for Mode.LIGHTEN, but use Mode.SCREEN instead Aug 07 15:04:49 Mode from PorterDuff or from AvoidXfermode? Aug 07 15:05:34 elichai2: PorterDuff in that case Aug 07 15:06:19 and what color(int) to put? Aug 07 15:07:11 elichai2: use this: final int color = Color.argb(255, 155, 155, 155); Aug 07 15:07:12 snowpong: Regarding 20% staged rollout; that's excellent news, and how it should work, although they could have mentioned this specifically in their description (which is very brief). Aug 07 15:07:27 kjeldahl: yepp Aug 07 15:08:18 elichai2: 255 is the transparency, in this case there's none, and the other numbers are the amount of brightness to apply, between 0 and 255 Aug 07 15:08:25 alankila got it to work now :) Aug 07 15:09:02 kjeldahl: when you upload a new APK when you already have an existing one in staged rollout you cannot select a percentage, you can only say "Publish in production" or some such thing. It then unpublises the previous staged rollout and replaces it with the one you just uploaded Aug 07 15:09:36 essentially it supplants the old staged rollout with the new APK Aug 07 15:09:40 Maestro, the app just crashed :( Aug 07 15:10:58 snowpong: Good, that makes sense. Just keep pushing out releases until it's golden, then up to 100%. Good. Thanks for confirming it. Aug 07 15:11:12 is it possible to programatically invoke the "take bug report" on ICS+ ? Aug 07 15:11:54 when i open the camera on a tablet, it's been rotated, how can i fix this? on my camera or my prieview? Aug 07 15:11:59 kjeldahl: no problem - It's actually quite a nice feature now that I understand it more completely Aug 07 15:12:59 Maestro, i'm getting NullPointerException on that line :( Aug 07 15:13:10 funkbox: http://developer.android.com/reference/android/content/Intent.html#ACTION_BUG_REPORT looks like it'd do that; I haven't tried it. Aug 07 15:13:43 elichai2: I'll paste some code Aug 07 15:13:53 thanks Aug 07 15:13:56 chrisboyle: thanks! Aug 07 15:13:59 good morning Aug 07 15:14:21 does anybody knows how to create a path track app with gps Aug 07 15:14:35 snowpong: Agree, a VERY nice feature. It also does not depend on people joining G+ groups like the alpha/beta feature does. The last thing one can wish for is to pick the users individually, then that would make the alpha/beta thingy more or less obsolete (for anything but the most nerdy users). Aug 07 15:14:53 popers: you mean like this? http://code.google.com/p/mytracks/ Aug 07 15:15:17 popers: receive gps sensor data, record it in database along with the coordinates and given precision, with frequent sampling of the current position, then calculate a best possible path through the intersecting spheres. Aug 07 15:15:33 popers: Actually, I do lol Aug 07 15:15:39 what happened to the feature graphic, in the web version of the store? Aug 07 15:15:46 I built one on a mobile web app in my Special Topics course last semester Aug 07 15:15:53 using HTML5/javascript/Python Aug 07 15:15:54 kjeldahl: I find Testflight for beta testing + staged rollout to be a good combo - with Testflight I can track who have installed and tested the latest beta package Aug 07 15:16:03 yep Aug 07 15:16:10 thanks Aug 07 15:16:27 snowpong: Testflight still requires sideloading, right? That's even more nerdy than G+ groups.. ;-) Aug 07 15:17:05 kjeldahl: hehe, yeah - good point :) Aug 07 15:18:32 elichai2: http://hastebin.com/luxopigaca.java Aug 07 15:19:01 this is how I've done it Aug 07 15:19:10 I've gtg right now, I'll be back in 30 mins or so Aug 07 15:19:22 Maestro, it's a problem if i set the background in xml? Aug 07 15:20:26 funkbox: maybe I spoke too soon: "since API level 1", and: am start -a android.intent.action.BUG_REPORT -> Error: Activity not started, unable to resolve Intent { act=android.intent.action.BUG_REPORT flg=0x10000000 } :-( Aug 07 15:23:26 Hello everyone, Leeds from #android directed me here. Aug 07 15:23:38 Good ole #android Aug 07 15:23:47 I have a peculiar problem with running several Android emulators on the same host and GCM. Aug 07 15:24:16 I've installed Android-x86 in a QEmu VM and I'm spinning up several instances using cow2 disk images. I use chimpchat to install my app, which then registers with GCM and then my server. Aug 07 15:24:35 Sometimes the reported GCM ids are identical, sometimes they are not. After I send a multi-cast message to the instances, GCM will give me an updated canonical ID for each instance that is the same across all instances. :-( Aug 07 15:25:46 sledge__, did you by any chance clone the VMs after adding Google account? Aug 07 15:26:00 No, I didn't add a Google account. Aug 07 15:26:37 A naive question about drawing Drawables to a Canvas, via Drawable.draw(Canvas) -- is there a way to set the blending mode (eg: similar to what one of the PorterDuffXferMode types might do?) Aug 07 15:27:50 sledge__, how exactly are you even getting GCM IDs without a valid Google account? Aug 07 15:28:15 Mavrik: You don't need a Google account with >= 4.0.4. Aug 07 15:28:28 Mavrik: I'm running a 4.3 image. Aug 07 15:29:00 ah. Aug 07 15:29:01 Hmm. I wonder if renderscript approximates sqrt or something. I have a program that renders fine on webgl but renderscript version is artifacted Aug 07 15:29:07 sledge__, anyway that looks like a cloning problem Aug 07 15:29:22 the problem seems to point to inaccuracy in distance estimation function, which is based on measured length of a vector Aug 07 15:29:41 Mavrik: I do run a shell command using adb that randomizes the ANDROID_ID before I install my app. Aug 07 15:29:47 maybe have to write sqrt(p.x * p.x + p.y * p.y + p.z + p.z) and see if that is more accurate than length(p.xyz) Aug 07 15:30:57 sledge__, I very much doubt they use ANDROID_ID due to reliability issues Aug 07 15:30:58 square the rest of your universe. Aug 07 15:31:19 alankila, that would not surprise me :) Aug 07 15:31:21 Mavrik: Any insight into what values I should change? Aug 07 15:31:21 I remember I hit this kind of problems before when I ran this code as opengl sl program on android, it was just artifacty Aug 07 15:31:32 sledge__, try nuking Google Play services data Aug 07 15:31:52 Compiling with C++ compiler produced working code, and using renderscript to compile it again produces broken results. *sigh* Aug 07 15:31:54 alankila: Is it running on GPU? Aug 07 15:31:58 no Aug 07 15:32:03 Mavrik: Where would that file reside? Aug 07 15:32:05 well it might but not on this hardware Aug 07 15:32:35 Then I wonder if somebody used just one iteration of the NEON instruction not realising that it's just an iteration in an approximation rather than an instruction that computes the answer. Aug 07 15:32:50 Mavrik: Or is there an intent that I can fire for that? Aug 07 15:32:55 Gumboot: tell me more Aug 07 15:33:05 sledge__, that tends to be on /data partition under proper package name Aug 07 15:33:12 I doubt there's an intent, but there is a GUI button Aug 07 15:33:16 I can do newtonian iteration myself if that's what it takes Aug 07 15:33:30 don't like it but I do need accurate sqrt Aug 07 15:33:35 do you need the length or the inverse length? Aug 07 15:33:45 NEON divides and square roots don't exist as instructions; the instructions that are there are simply steps in NR approximations. Aug 07 15:34:25 But maybe if somebody wasn't paying attention then they just dropped in a single instruction rather than a loop. Aug 07 15:34:27 alankila, precompiled lookup table wouldn't work_ Aug 07 15:34:28 Or maybe they got bored and stopped early. Aug 07 15:34:29 _ Aug 07 15:34:29 Mavrik: com.google.android.gsf Aug 07 15:34:37 Mavrik: ? Aug 07 15:34:49 sledge__, I don't know the new package name for GSF out of my head, sorry. Aug 07 15:35:02 I forget what the instructions approximate. I've always managed to avoid the problem. Aug 07 15:35:25 alankila: Can you get the disassembly? Aug 07 15:35:42 Does anybody know how to fix the Unknown Error on google play services sign in? Aug 07 15:35:43 ... I don't think so. It is built on the phone, and I guess dynamically, by the renderscript compiler Aug 07 15:35:50 maybe I can find it somewhere under the app's data, lemme hunt for it Aug 07 15:35:53 It's cached in app data somewhere. Aug 07 15:36:04 Gumboot: even division is? that seems odd :/ Aug 07 15:36:17 zinx: Division is which? Aug 07 15:36:20 Okay If ound render.o under /data/data Aug 07 15:36:24 going to see if I can disassemble this Aug 07 15:36:25 Gumboot: an approximation in NEON Aug 07 15:37:10 http://infocenter.arm.com/help/topic/com.arm.doc.faqs/ka14282.html Aug 07 15:38:16 Maybe there's a VFP divide. I forget. Aug 07 15:38:39 uh egads… keep forgetting just how terrible those spec sheet pages are -_- Aug 07 15:39:29 Gumboot: sounds like there is Aug 07 15:39:57 So plain old scalar C code isn't affected, but when you're trying to vectorise you have to work harder. Aug 07 15:40:00 I only find vsqrt.f32 Aug 07 15:41:46 alankila: are you sure the results are from an inaccurate sqrt? Aug 07 15:41:47 I think that's a VFP instruction rather than NEON. The compiler may be set to avoid it if it's building for NEON. Aug 07 15:43:17 zinx: no, I'm afraid I'm not sure if that is the problem. I can find no mention of vsqrt being approximating, so I guess it finds the answer to the limit of the floating point precision Aug 07 15:43:17 Generally you want to avoid mixing VFP and NEON operations. This isn't made any easier by the instruction naming. Aug 07 15:43:26 but something is wrong Aug 07 15:43:57 alankila: how are you using length()? Aug 07 15:44:06 maybe you could just paste the RS somewhere :/ Aug 07 15:44:09 zinx: 'return length(p.xyz) / p.w' Aug 07 15:44:52 As I recall the cache is made of elf files, so you can find them the disassembly should be trivial to extract. Aug 07 15:44:55 zinx: https://github.com/alankila/live-mandelbox/blob/master/src/fi/bel/android/livemandelbox/rs/render.fs the results from mandelboxDistance seem imprecise Aug 07 15:45:17 Gumboot: I already found and disassembled it. I suspect that is the code it runs. Aug 07 15:45:33 I do not know how to recognize NEON instructions. I guess it would be use of qN variable names? it does that Aug 07 15:45:38 somebody experience with game development? how is this game made? https://play.google.com/store/apps/details?id=com.pilotfishmediainc.flowconnect&hl=nl Aug 07 15:46:09 qN (and sometimes dN) register arguments are a bit of a giveaway. Also, starting with 'v'. Aug 07 15:46:22 But there's a lot of overlap between VFP and NEON for both of those tests. Aug 07 15:46:26 FrancescoV: in Dutch? Aug 07 15:46:36 FrancescoV: it's a simple game, you can create similar games using game engines or libraries like libgdx Aug 07 15:47:19 Leeds: I'm from belgium yes Aug 07 15:47:57 Mavrik: I'll try to do a factory reset on each instance. Aug 07 15:47:57 FrancescoV: like mine https://play.google.com/store/apps/details?id=com.inferno.mobile.dotdot Aug 07 15:48:13 lordjone: tnx, i'll check it out, haven't experience with game development but currently i'm developing apps like foursquare, QR code ... Aug 07 15:48:38 FrancescoV: k understood :) Aug 07 15:48:50 If you see 'vrecpe' in there, that's the NEON one. Aug 07 15:50:35 No, I just see vsqrt.f32 in use. Aug 07 15:50:46 hi all, I have prolems adding ksoap2 library in android studio Aug 07 15:50:47 Mavrik: Hmm. Doesn't exist. Aug 07 15:50:52 anyone use it? Aug 07 15:51:02 Gradle: error: package org.ksoap2 does not exist Aug 07 15:51:56 alankila: And a divide, too? Aug 07 15:52:19 alankila: i'm not sure about length(), but your "linearRand" function can't possibly work as expected Aug 07 15:52:50 libgdx is crossplatform? Aug 07 15:52:59 zinx: what do you mean? Aug 07 15:53:19 zinx: in any case the linearRand is not a problem, it's just used during setup phase and not at all during the final rendering phase. Aug 07 15:53:36 alankila: kk Aug 07 15:53:43 it *seems* to produce random numbers in the linear congruential generator sense just fine though Aug 07 15:54:24 FrancescoV: Yes Aug 07 15:54:40 ok :) nice Aug 07 15:54:51 see you all later! Aug 07 15:54:53 I'm really surprised that there is some double precision code generated ... filterscript is specced to only use 32-bit operands. Aug 07 15:56:12 I guess it opportunistically uses double precision sometimes. Just odd. Aug 07 15:56:21 alankila: Can you post the disassembly? Aug 07 15:57:26 elichai2: if you set the background in XML, then you can skip the line with setBackgroundResource Aug 07 15:57:57 in fact I do not understand arm properly. What could vmul.f32 d6, d2, d2 mean? Aug 07 15:58:00 For NEON instructions, a d-register operand is always a vector of at least two values, rather than double-precision. If it's a legitimate double-precision operation it'll be VFP and the instruction will be suffixed with .f64. Aug 07 15:58:13 Ah. Aug 07 15:58:17 damn this confusing thing Aug 07 15:58:23 It's pretty hard going. Aug 07 15:58:28 gotta go... bye Aug 07 15:58:53 https://bel.fi/alankila/render.txt Aug 07 15:59:12 Even more fun is where letters get stuck on the front or the back of mnemonics to modify their meaning, but the meaning of some letters is substantially different depending on whether it's added to the front or the back. Aug 07 15:59:22 The key iteration runs from 22c Aug 07 15:59:25 like hadd versus addh. Aug 07 16:00:00 It starts with the n = clamp(n, -1, 1) * 2 - n Aug 07 16:01:59 Looks like non-approximate operations to compute the length. Should be right but I'd have to read much more carefully to say that with confidence. Aug 07 16:02:49 Yes, that is my thinking as well. It looks correct to me. I wonder if this code requires denormals to function -- I don't think so, but I haven't really looked seriously into such a possibility either Aug 07 16:03:15 You could try wrecking your denormals on a platform that works, by adding and subtracting a smallish value. Aug 07 16:03:25 as far as I know, the denormals are disabled in filterscript, and I can't turn them on either, but I guess I could rename this with renderscript and try with higher floating point precision Aug 07 16:03:46 well, if (fabs(v) < 1e-18) v = 0 sort of thing would do it Aug 07 16:03:59 Or that. Aug 07 16:04:14 but I don't think the values I run into this program are small, really Aug 07 16:05:37 anyone have the 2013 n7? and playing with usb host? Aug 07 16:05:44 I'm seeing some wacky results in testing Aug 07 16:06:52 Maestro, here? Aug 07 16:07:11 I wonder if the odd mix of denormal-capable and not-denormal-capable instructions could cause issues. Aug 07 16:07:24 * Gumboot should go to work. Aug 07 16:09:17 $P4gh3tt0 Aug 07 16:09:32 i wish i could register that as a domain Aug 07 16:09:53 i used it as a Java class in a library Aug 07 16:10:24 you could probably find an IDN which looks like it, but nobody would ever be able to type it :) Aug 07 16:10:30 i also like using $ as a method name too Aug 07 16:10:59 addMoney($(12)); Aug 07 16:11:16 wraps ints or floats in our Money object for tests Aug 07 16:13:31 elichai2: hey Aug 07 16:13:36 hey :) Aug 07 16:13:53 i used Color.argb(255, 155, 155, 155) but it's too much Aug 07 16:14:02 what every number here say? Aug 07 16:14:09 just look at my paste Aug 07 16:16:16 Leeds: i totally forgot about two domains I have which are upside-down text Aug 07 16:16:19 you just reminded me Aug 07 16:16:29 Hmm... I think I must have algorithmic bug of some sort. I built with renderscript and it still looks distorted, and that should have been correct Aug 07 16:16:51 Alright, going to dig into comparing the webgl and rs/fs version line by line, there must be a bug somewhere there Aug 07 16:17:42 Maestro, ok Thanks :) Aug 07 16:18:06 np Aug 07 16:20:45 where are applications' runtime-created data files stored? Aug 07 16:21:04 /data/data/pkg/... Aug 07 16:21:21 got it, thanks :) Aug 07 16:22:19 and my file manager even has a hex viewer! perfect Aug 07 16:22:35 Java supports UTF8 for classnames (think: upside-down text!) but IntelliJ doesn't seem to like it. Does anyone know if Eclipse allows this? Aug 07 16:22:58 sounds like "a bad idea(TM)" Aug 07 16:23:05 lol Aug 07 16:23:21 JakeWharton is up to no good again Aug 07 16:23:22 good to know though Aug 07 16:23:41 wait a sec, the alpha and the RGB are int right?(so it won't help to change brightness from 0.334 to 0.337) Aug 07 16:23:54 When has JakeWharton ever been up to good SimonVT? Aug 07 16:34:42 does galaxy note have a large screen? as in will it report itself as a tablet? Aug 07 16:36:34 report itself how? Aug 07 16:42:09 Mavrik: Removing the play services db file crashes gapps. :-( Aug 07 16:43:48 JakeWharton: as in what does it say it is when checking for support-screens Aug 07 16:43:56 I have a method that returns a Location from the LocationManager, the issue I am having is that if the Location returns null it throws an error, this occurs in the method. So I can catch the null and my thinking was to build a Location using hard coded lat lon value, is there a better way to go about this? Aug 07 16:44:14 and whether it will pick from layout-large etc Aug 07 16:44:45 you shouldn't be using those size buckets to determine what is a table Aug 07 16:44:54 that's what the smallest width stuff is for Aug 07 16:47:28 JakeWharton: good point Aug 07 16:49:20 i've an isTablet method that i gotta figure out Aug 07 16:49:25 JakeWharton: just curious, vis-a-vis unicode class names. (I don't use either IntelliJ or Eclipse either ;) but, are you referring to Unicode class names in the source text itself? Aug 07 16:50:31 funkbox: values/bools.xml true, values-sw720dp/bools.xml false, return context.getResources().getBoolean(R.bool.is_table); Aug 07 16:50:48 JakeWharton: that's making just way too much sense Aug 07 16:51:38 kbs: yes. you can name a class Foo (but in upside-down unicode text) and javac will compile and run it just fine. but IntelliJ complains Aug 07 16:53:18 anyone have any idea what's up with this error I'm getting in logcat? _CompareMachineId: This is a DRM_E_MACHINEIDMISMATCH as device Unique ID is not CPU info Serial No Aug 07 16:53:38 JakeWharton: as I understand it, java source itself only accepts ascii (you have to use unicode escapes, and that translation occurs in the lexer itself.) Dunno if that makes sense, but suprised utf-16 (or other encodings ) are working from straight source. http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.1 Aug 07 16:56:33 is there a way in eclipse to define multiple res folders? i have different branding requirements that use the same resource names, but different images Aug 07 16:57:08 so i want to have a folder for brand1 and brand2 with just the specific branded resources Aug 07 16:57:43 so, apropos conversation the other day... http://goo.gl/k8RZcY Aug 07 16:59:06 (re: jbq and lawyers) Aug 07 17:05:33 smoak: the Gradle build system supports that Aug 07 17:12:43 JakeWharton: right, thats what im using, but i have other devs on my team that want to continue using (and building with) eclipse Aug 07 17:13:10 i doubt the ADT plugin will see support for that for some time (if ever) Aug 07 17:13:16 i receive a json in utf8 and in the debug i see its string as Men\u00fa when it should be Menú (spanish accent) , is that possible to make the string to be UTF8 so the json validates ? Aug 07 17:24:59 Tomasso: It's probably safer to leave it escape-encoded in ascii; in theory any parsers are supposed to convert it back to unicode. Aug 07 17:27:48 There's a tricky encoding hint that's mentioned in rfc4627, but it's simpler (imo) to leave source in ascii, to avoid errors... Aug 07 17:29:12 hi guys, I want to implement a simple sound visualizer. I did some research and I found the classes: Visualizer and Audio Recorder. If I want to visualize the sound from the phone;s player, do I have to capture with the Audio Redorder class and use Visualizer class to obtain frequencies and amplitude? is that all? is that correct? is there any other thing I should know? I have the renderer... Aug 07 17:29:14 ...prepared Aug 07 17:33:45 There should be a proper word for this encoding - UTF-ascii-escaped :-) a.k.a. java source code. Aug 07 17:33:49 Scumbag appcompat library, won't work in eclipse evn though I followed their directions Aug 07 17:33:49 D: Aug 07 17:34:44 how can I link a visualizer to the phone's music player? Aug 07 17:39:10 Zgary: looks like you pass the visualizer a session id Aug 07 17:39:25 Zgary: from the music player. http://developer.android.com/reference/android/media/audiofx/Visualizer.html Aug 07 17:41:17 thank you dougsko, I;ll look into it Aug 07 17:43:02 Zgary: sort of, but iirc the FFT you can get from android is poor quality one Aug 07 17:43:24 what's the best book for learning Java OO principles and design models and practices? Aug 07 17:43:26 it's an integer hack without much care about utmost correctness. Perhaps suitable for some simple visualization purposes, but not really good enough for real work Aug 07 17:44:25 moonlightcheese Java is OO ? Aug 07 17:45:47 I designed FFT which uses phase change between overlapping windows to refine the estimate of the FFT frequency within each bin Aug 07 17:46:01 i think that book is in the same section as 'high performance scientific computing with Visual Basic' Aug 07 17:46:08 I've got my app automatically sending text messages, but they don't show up in the built-in messaging app. How do I get them to do that? Aug 07 17:46:14 it sort of works, I tried to use it as a guitar tuner but at least over air and without amplification the mic can't seem to capture much of the fundamental frequencies Aug 07 17:46:24 perhaps cepstrum analysis would have worked better for that particular purpose Aug 07 17:47:10 worked fine for test signals though :-/ Aug 07 17:47:50 i just want to write cleaner code... Aug 07 17:47:57 oh, get Clean Code Aug 07 17:48:32 now i just come up with solutions sort of on the fly rather than adhering to the best principles for the problem at hand. Aug 07 17:49:19 me too. let me know how we can get out of this rut Aug 07 17:49:23 alankila: heh, sounds like fun. I had done some related stuff for measuring the acoustic impedance of a didgeridoo. The biggest problem I had was the transeiver I was using (just a little piezo element) couldn't really generate the low frequencies to hit the fundamental of the didge Aug 07 17:50:00 Forkk, you'd need to insert them into the database Aug 07 17:50:04 there might be a contentprovider for that Aug 07 17:50:13 yeah just found an article Aug 07 17:50:14 * alankila idly wonders what digeridoo is like in the inside Aug 07 17:50:15 thanks Aug 07 17:50:23 I guess it's just a hollow tube Aug 07 17:50:24 alankila: it's literally just a tube Aug 07 17:50:42 you can grab a 5' length of PVC and use it as a didge (although a somewhat crappy sounding one) Aug 07 17:50:43 well, in that case isn't there a theoretical answer for the acoustic impedance? Aug 07 17:51:02 JesusFreke do you play that the same time your are riding your monocycle ? Aug 07 17:51:09 yes, although they typically don't have a straight bore Aug 07 17:51:11 (and coding on top of that, right?) Aug 07 17:51:29 but yes, I wrote a program to calculate the theoretical impedance too Aug 07 17:51:51 the problem with that is that it's hard to get accurate measurements of the bore of an actual didgeridoo :) Aug 07 17:52:19 hey guys, im trying to get away from hardcoding the path to an existing database that comes with my app. however, im having a hard time figuring out how exactly to use getFilesDir().getPath() to do that. all i get is crashing... here are the two lines showing what im using now and what im trying to use: http://pastebin.com/0Xc5qcpp. any idea what im doing wrong? Aug 07 17:52:29 you could probably measure diameter sorta, then use a conic section approximation Aug 07 17:52:34 g00s: not typically, but I have before :p Aug 07 17:52:51 (or even just typical hollow tubes end-to-end) Aug 07 17:52:56 zinx: right, I model the bore as a series of conic sections Aug 07 17:53:13 dougsko: how do you use mCtx from a static value? Aug 07 17:53:13 but it's hard to measure that for an actual didgeridoo Aug 07 17:53:17 JesusFreke: yeah Aug 07 17:53:26 dougsko: getDatabasePath() Aug 07 17:53:38 dougsko: I bet your mCtx is initialized much later than the static value gets eval'd Aug 07 17:53:50 not to mention this implies mCtx is declared as static too Aug 07 17:54:00 JesusFreke: how about another approach? Aug 07 17:54:08 JesusFreke: send white noise in one end, measure at the other ;P Aug 07 17:54:16 zinx: that was the other part of the project :) Aug 07 17:54:17 alankila: yes, i declare- private static Context mCtx; right under my class definition Aug 07 17:54:35 dougsko: and how do you initialize that? You usually don't have any kind of context at class loading time Aug 07 17:54:42 well, except maybe for Application but ... Aug 07 17:55:06 if you don't care about the relative strength of the various impedance peaks, you can just slap one end of the didge, record the sound and throw an fft at it Aug 07 17:55:31 alankila: i first call it with, mDbHelper = new DicewareDbAdapter(this); Aug 07 17:55:38 alankila: is that what you mean? Aug 07 17:55:58 JesusFreke: i think you'd probably be better off w/ white noise over a longish period of time Aug 07 17:56:27 moonlightcheese: i was thinking about that but the database isnt created in the app. it comes with it under the assets folder so im not sure that would apply Aug 07 17:56:32 JesusFreke: or you could send pure sine tones down it Aug 07 17:56:37 zinx: slapping works quite well, just to figure out the frequencies of the peaks Aug 07 17:56:41 hehe Aug 07 17:56:50 averaging a ton of FFTs with white noise excitation is a good way to capture the non-time-dependent filtering characteristics of a system. Aug 07 17:57:31 (which is the most interesting/relevant aspect of the impedance curve) Aug 07 17:57:35 why average them when you can do one big ol' fft :/ Aug 07 17:58:04 zinx: fair enough but I found it easier in one project to just do a bunch of 2048 point FFTs and sum the power spectra together and then graph it Aug 07 17:58:41 shrug, modern computers can do pretty large FFTs, and if you need it blurred a bit, you can just window the input and get a much better blur :P Aug 07 17:58:49 I got a very pretty picture out of it in the end, like it had been done mathematically rather than experimentally Aug 07 17:59:02 very little noise Aug 07 17:59:54 It's interesting how an ideal tube produces a substandard didgeridoo. You end up getting a very "hollow" sound, from the missing even (odd? whatever) harmonics. Aug 07 18:00:02 zinx: okay but when you do say 2^16 point FFT you end up with 64k bins, so in general if you just want to model something fairly simple you'll be smoothing the result somehow Aug 07 18:00:30 JesusFreke: there's even a lot of inharmonic sounds in a normal digeridoo Aug 07 18:01:04 alankila: so, you can window it with e.g. a discrete gaussian window if you like Aug 07 18:01:40 alankila: doing that, you can also make /very/ precise estimates of the peaks, using parabolic fitting on the log power spectrum Aug 07 18:02:51 I see. The log of gaussian is a parabola, and your theory is that a single peak was blurred by gaussian window Aug 07 18:02:58 (discrete gaussian window is precisely exp(A * (cos(theta) - 1)) in the fourier domain, and cos() can be approximated with a fair degree of accuracy in the area of interest by a parabola) Aug 07 18:03:17 zinx: not exactly, at least not for a normal drone sound (not counting all the frictive type sounds you could potentially make). The sound is still basically harmonic, it just has an an unusual distribution of the harmonic frequencies, since the impedance peaks don't normally match up with the harmonics of the base frequency Aug 07 18:03:37 alankila: more specificly, that no other signals of interest are significantly in the band Aug 07 18:03:47 fine, fine Aug 07 18:04:52 JesusFreke: idk, i would expect some phase shifting along the way to introduce some more frequencies, probably at much lower energy i'll give you Aug 07 18:07:03 JesusFreke: would also be highly time dependent :/ Aug 07 18:07:44 yeah. It was a fun project :) Aug 07 18:07:54 I haven't done anything with that for several years though Aug 07 18:07:55 :D Aug 07 18:08:07 I was building/designing didges at the time :) Aug 07 18:09:00 JesusFreke: don't you have some recordings of your Didgeridoo playing floating around? It's a strange instrument, for sure. Aug 07 18:09:17 kbs: http://www.youtube.com/watch?v=LDISXCBUXhg Aug 07 18:09:36 note: I'm not a great player or anything :) Aug 07 18:10:10 I can't seem to find any information anywhere about filtering extras with an IntentFilter. Is this not possible? Aug 07 18:10:21 JesusFreke: pretty neat. Aug 07 18:12:40 Any ideas as to why when following googles instructions to add appcompatv7 to my eclipse workspace it won't let me us the appcompat resources? Aug 07 18:13:04 nevermind, I'll just figure out a better way to do this Aug 07 18:22:32 my favorite version of appcompat is setting minsdk to 14 Aug 07 18:25:52 Appcompat, y u no work Aug 07 18:25:52 D:< Aug 07 18:27:25 Anyone here have appcompat v7 working in Eclipse and wanna tell me what dumb thing I'm doing wrong with Eclipse? Aug 07 18:27:51 Why does writing to the sent messages database require READ_SMS permission? Aug 07 18:28:59 Brian|CS anyone still use eclipse :P ? Aug 07 18:31:14 yay, now my scala-android builds are fast Aug 07 18:31:18 * pfn implements proguard caching Aug 07 18:31:49 https://github.com/pfn/android-sdk-plugin/blob/master/src/ReferenceFinder.scala Aug 07 18:35:50 g00s: I don't want to use Eclipse, but i need something done and I'm not familiar enough with Android Studio for these time constraints Aug 07 18:35:54 but now I can't use fucking appcompat Aug 07 18:35:59 because in studio its just 1 line Aug 07 18:36:05 but in eclipse I follow googles steps exactly Aug 07 18:36:08 and it says missing resources Aug 07 18:36:08 >.> Aug 07 18:37:18 maybe google should put up an AS 'crib sheet' Aug 07 18:37:57 i feel comfy enough with itellij to get things done, but feel like i'm missing something (special leet features) Aug 07 18:38:25 maybe even a 2 column recipe: in eclipse | in AS Aug 07 18:39:13 crib sheet to do what... Aug 07 18:39:21 in eclipse: in idea: Aug 07 18:39:40 JesusFreke haha Aug 07 18:43:09 I feel like an old man using Eclipse and Ant on the build server Aug 07 18:43:35 nseidm1 actually the ant stuff works, better than what i can say with the gradle stuff atm Aug 07 18:43:47 oh yeah, have to see if 0.5.6 is out Aug 07 18:45:12 with ant, i could easily get the antlr task working with android builds - with gradle, it seems like google didn't extend the java plugin so lots of things are broken out of the box Aug 07 18:45:40 still can't figure out how to get the gradle protobug thing to work right with my android gradle stuff Aug 07 18:45:45 *protobuf Aug 07 18:52:45 alankila: after some messing around, i figured out what you really meant and i got it working. thanks! Aug 07 18:53:59 dougsko: yeah I just left you hanging in there but you can't use mCtx if it's uninitialized & you should have given us the stack trace anyway rather than just saying it keeps on crashing Aug 07 18:54:15 Fuck you eclipse Aug 07 18:54:17 I had to debug that issue myself Aug 07 18:54:18 a common java pattern of using static values doesn't work on android, or is difficult to make working Aug 07 18:54:24 and its because eclipse fuckedmy project settings Aug 07 18:55:39 alankila: statics are great, you better be careful though Aug 07 18:56:21 watch those NPEs and leaks Aug 07 18:56:30 the whole framework is piece of poo. I almost look forwards to making every android application as web application or something. Aug 07 18:56:37 lol Aug 07 18:56:43 one of my "modules" (is that the right word for it?) doesnt show up in android studio even though its referenced in my build.gradle Aug 07 18:57:57 alankila: the framework is quite elegant, memory efficient, and well designed. If opinion is otherwise it's a fail at being a competent programmer. Aug 07 18:57:58 libraries i think is more accurate Aug 07 18:58:04 great I updated eclipse and now my htc phone doesn't get seen anymore Aug 07 18:58:13 either way, in my project view i dont see my library Aug 07 18:58:35 shmooz that would be adt / ddms, not eclipse :| Aug 07 18:58:52 g00s: it happened to you too ? Aug 07 18:59:03 shmooz no. droid-1 always works ! Aug 07 18:59:18 I reinstalled the HTC_drivers.exe and it still don't work Aug 07 18:59:52 shmooz use the command line tools to debug; get eclipse out if the equation Aug 07 18:59:59 adb devices, etc Aug 07 19:00:03 nseidm1: or it could be a sign of having better taste Aug 07 19:00:28 nseidm1 i think it was an elegant framework for constraints 5 years ago Aug 07 19:00:47 but now, a lot of this stuff in the framework seems to pointless Aug 07 19:01:14 yeh it was optimized for hardware people had 5 years ago. Now it's just clunky. Aug 07 19:01:23 and in the future, it will seem doubly as clunky Aug 07 19:01:28 and java on hw 5 years at at that Aug 07 19:02:52 oh shit Aug 07 19:02:53 https://plus.google.com/112218872649456413744/posts/9HHRURorE7g Aug 07 19:02:57 Is there any word on jdk7 support by the way Aug 07 19:03:00 if Android is clunky I feel bad to Java developers Aug 07 19:03:03 *for Aug 07 19:03:31 alankila somebody asked at the last I/O fireside - it didn't seem like it Aug 07 19:04:01 had to give up mapdb in my project because no nio.2 Aug 07 19:04:18 i think they should just shitcan the whole java framework Aug 07 19:04:29 and if they can't, google has designed themselves into a corner Aug 07 19:05:09 so i wonder what JBQ will be doing now Aug 07 19:05:23 nseidm1, android is more clunky than java Aug 07 19:05:52 yeah, android is vastly worse than anything you deal with in java with the possible exception of some of the clunkiest most enterprisey bullshit piles they use at some hellholes Aug 07 19:06:07 but i think java informed some of the design decisions we see in the framework Aug 07 19:06:16 i mean, like linguistic determinism Aug 07 19:06:22 I don't know what you mean Aug 07 19:06:30 you think in the language you know Aug 07 19:06:33 oh Aug 07 19:06:34 well, thats debatable Aug 07 19:06:42 lots of arguments against it Aug 07 19:06:56 I think it is more C-like, you don't find java frameworks coming with a lot of int enums because java has enum type Aug 07 19:07:37 but the platform-managed lifecycle for objects user is extending is really the killer, and general lack of synchronous APIs, and avoidance of threading even where it would probably make sense Aug 07 19:08:20 it makes everything callback oriented, event driven, and full of flaky code like "does this object I need exist yet? If not, better retry later and hope platform initialized it for me". Or you just redesign everything to try to work out some way to make this thing work Aug 07 19:09:45 i think async is here to stay, you see it in a lot of places now. but yeah, there aren't many primitives at the library or language level in java (that i'm aware of) that make this easier Aug 07 19:10:07 yeah, they wanted async, it's probably not a bad choice in architectural sense Aug 07 19:10:11 fwiw, i use google.com.internal.util.statemachine for great effect Aug 07 19:10:27 though it would be nice to have some language help with making callbacks and coroutine like things. Aug 07 19:10:41 * pfn has 1 word for it Aug 07 19:10:41 some stuff like RxJava can make some things less painful Aug 07 19:10:43 jdk8 has lambdas I hear. Probably will never see them on android. Aug 07 19:11:00 scala fixes this problem now Aug 07 19:11:12 hey all Aug 07 19:11:22 I personally feel ThreadPools and EventBus designs are quite. Aug 07 19:11:25 elegant. Aug 07 19:11:32 I guess I'm conceding to the scala overlords. My resistance to it has been whitted down. All I need is the final push, and the dark waters of scala 100 metres below will welcome me. Aug 07 19:11:46 * edwardthefma is looking for some 1 who has devloped a app using google cloud messiging Aug 07 19:12:02 alankila, https://github.com/pfn/android-sdk-plugin Aug 07 19:12:05 alankila, really quite easy :p Aug 07 19:12:30 go looks pretty interesting, actually. (esp for folks from a C/Java background) Aug 07 19:12:31 pfn do you think google could do anything to make scala a better citizen on android ? Aug 07 19:12:49 it works of course, but could it be improved on android ? Aug 07 19:13:00 g00s, not really, google can't do anything to making side-effectless programming a better citizen Aug 07 19:13:20 and as it is, it is 100% operational on android, presuming you don't abuse memory Aug 07 19:13:39 what do you think needs improving? Aug 07 19:13:42 i meant along the lines of improving dvm for scala Aug 07 19:13:55 i keep seeing dismal dvm benchmarks Aug 07 19:14:07 with respect to? Aug 07 19:15:08 is there a way to use code templates from the command line? http://developer.android.com/tools/projects/templates.html Aug 07 19:15:31 pfn well , it seems like it could have a better GC Aug 07 19:15:42 (for one) Aug 07 19:16:00 * edwardthefma is looking for some 1 who has devloped a app using google cloud messiging Aug 07 19:16:46 code templates from the commandline? Aug 07 19:16:54 edwardthefma: I think it's better asking questions in here, than attempting to find someone Aug 07 19:17:07 and no Aug 07 19:17:22 if you're doing it from the commandline, do it by hand Aug 07 19:17:44 edwardthefma iosched 2013 uses gcm Aug 07 19:17:54 you can see the best practices there Aug 07 19:17:55 pfn: fair enough Aug 07 19:18:17 the only template you get from the commandline is the one produced by android create project Aug 07 19:18:31 onCraete{ // fill me in } Aug 07 19:18:33 kool Aug 07 19:18:34 hehe Aug 07 19:18:37 SimonVT: Ping Aug 07 19:20:26 FFUUUU Aug 07 19:20:33 Why is SimonVT's menudrawer not working Aug 07 19:20:40 I imported as an android library Aug 07 19:20:42 and it just don't work Aug 07 19:20:50 works fine here Aug 07 19:20:51 hi, android.media.AudioRecord is only for getting sound from microphone? how can I get sound from a music player? I am trying to build a visualizer Aug 07 19:21:08 Brian|CS: only been one time when I've noticed even a bug Aug 07 19:21:10 Zgary: I believe there are privacy concerns involved Aug 07 19:21:13 other than that, very happy Aug 07 19:21:25 oh and the bug didn't last long ;) Aug 07 19:21:31 you can't just capture audio from anything. The visualizer can get you some low-quality samples of the current audio output though Aug 07 19:22:11 so the best way is to have the app to play the music also? cant get any sound from other sources.. :( that sucks Aug 07 19:22:28 StingRay_: I just downloaded the zip of his repo, imported it into eclipse, and its giving me errors >.> Aug 07 19:22:42 zip ? Aug 07 19:23:06 you mean git clone zip ? Aug 07 19:23:42 should be fine Aug 07 19:23:48 are the low quality samples enough? I want to build a 5 bars simple visualizer. I do want it to respond real time with music, I have a cool method to show the beats. I neeeeed those beats! Aug 07 19:23:50 I think I did that last time I updated it Aug 07 19:23:56 what errors ? Aug 07 19:24:47 The pebkac kind Aug 07 19:25:06 errors due to plebbery? Aug 07 19:25:30 ACTION_POINTER_INDEX_MASk cannot be resolved etc. Aug 07 19:25:55 Lets see Aug 07 19:26:04 http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_POINTER_INDEX_MASK Aug 07 19:26:08 Wasn't added until api8 Aug 07 19:26:18 So we can deduce that you at least need to build against api8 Aug 07 19:26:30 Continue doing that until you arrive at 16 Aug 07 19:27:29 SimonVT Thanks :D Aug 07 19:27:43 I guess I should ask this now, but does drawermenu in any way conflict with ActionBarCompat? Aug 07 19:27:47 at least as far as you knwo Aug 07 19:28:03 Well, google fucked up the content id's Aug 07 19:28:17 So you can't use the attach method, unless you drag the window Aug 07 19:28:42 D: Aug 07 19:29:18 Unless you proxy android.R.id.content in findViewById to R.id.action_bar_whatever_google_came_up_with on api <=14 Aug 07 19:32:17 Never tried that tho.. Just guessing Aug 07 19:32:42 Not going to look into it/fix it, I'd rather just make the library ics+ :p Aug 07 19:43:13 14+ is the way to go Aug 07 19:43:54 hey nseidm1 Aug 07 19:43:59 hey mannnn Aug 07 19:44:24 you taking over the world over there or whatttttt Aug 07 19:45:18 what are we going to do tonight brain? what we do every night pinky.. try to take over the world! Aug 07 19:45:19 :D Aug 07 19:47:34 lol Aug 07 19:48:26 just found out about the radiooptions binary, quite useful Aug 07 19:50:05 how many other professions let you blame insects for your own mistakes? Aug 07 19:53:28 rhetorical or trick question? Aug 07 19:53:36 Hi all Aug 07 19:53:51 I have an app where I'd like the actionbar to be hidden - like an overlay - on one activity Aug 07 19:53:53 but not on the rest Aug 07 19:54:04 the use theme NoTitleBar Aug 07 19:54:08 or request FULLSCREEN Aug 07 19:54:20 I can accomplish the first part by setting windowActionBarOverlay to true Aug 07 19:54:22 or set overlay mode, and toggle visibility Aug 07 19:54:29 for a theme I spec to the one activity Aug 07 19:54:44 but the actionbar persists on being overlayed as it transitions from one activity to the next Aug 07 19:55:28 I even set windowActionBarOverlay to false on the theme that controls everything else (AppTheme) but that does not seem to work Aug 07 19:55:44 Anyone have any ideas as to wtf I could be doing wrong? Aug 07 19:55:51 why not keep it as an overlay, and use the hide and show methods Aug 07 19:56:07 because then I have to specify paddingTop=?actionBar Aug 07 19:56:26 on a bunch of different elements Aug 07 19:58:15 Hey guys, I'm having an issue where the buttons I have on my main activity look as if they are always pressed (dark grey, hard to read, and don't animate when actually pressed) Aug 07 19:58:21 But in the layout preview they look fine Aug 07 19:58:26 what might I be doing wrong? Aug 07 19:59:28 so as I've been perusing around on stackoverflow, I've also been hearing other people including me having issues with google play services. The error we are receiving is "Google Play services resources were not found" Aug 07 20:00:26 I have it added as a dependency to my project, it worked before i updated the sdk's, and I've rebuilt and cleaned my project Aug 07 20:00:31 fas: they are disabled? Aug 07 20:00:36 ah got it. seems like im sliding between fragments, hence why it appears that the actionbar is an overlay Aug 07 20:01:07 I think this has to be an issue with either eclipse not building the R files correctly or a bug in the google-play-services-lib Aug 07 20:01:31 Napalm: I just clicked "enabled" and they didn't change Aug 07 20:01:35 they still work too. Aug 07 20:01:53 clicked enabled? Aug 07 20:02:58 Napalm: yup. No change Aug 07 20:06:57 how would i structure my project if i want different resources per productFlavor using gradle? Aug 07 20:09:55 src/flav1/res ? Aug 07 20:11:11 cool gradle 0.5.6 is out Aug 07 20:11:15 \o/ Aug 07 20:11:27 does anyone know where to submit bug reports for google play services? because the only place i know to submit bug reports is related specifically to android only Aug 07 20:13:19 I've recently found myself having to support and add features to a project that's new to me. In an effort to make tracing the code easier I'm adding Log.d() statements to many of the functions. Question: aside from cluttering logcat with debug messaging, is there any other impact say in terms of performance or memory consuption that I should be aware of? Aug 07 20:13:43 of course, generation of temporaries in the Log() call Aug 07 20:14:13 you can use proguard to strip out Log statements, but i think only dexguard will remove the side effects Aug 07 20:14:17 (in the args) Aug 07 20:15:19 it would have been nice if android logs was more like slf4j in that regards Aug 07 20:16:25 zanberdo if you find logging useful to your way of understanding flow, you can also check out android-loopback i think its called; another option in more flexible logging Aug 07 20:16:45 err, android-logback Aug 07 20:18:14 shame that the Lilith log monitor is such a PoS Aug 07 20:18:28 g00s, thank you for your input. i will have to look up all three of those: progaurd, dexgaurd and android-logback (and yes, I find the logging extremely helpful as I'm still learning the lifecycle and having the logging has already helped me to solve one nagging issue that occurred as a result of a change in API 13 and orientation changes destroying activities when external camera intent called) Aug 07 20:19:04 I just wish I could double-click a log entry and have it jump to my code. But I've made it a bit less painful by setting the tag to my class file name. Aug 07 20:19:45 that would be a nice UX; i think logback will let you put the method name in the formatter Aug 07 20:19:58 but as far as clicking and jumping there... Aug 07 20:21:17 seems like PatternLayout lets you specify class/method/name of the log call Aug 07 20:22:04 and line Aug 07 20:22:50 somedays I feel like a man drowning... Aug 07 20:23:07 thanks for the suggested reading though! :) Aug 07 20:23:16 i'm already underwater, i try to come up for air once in a while :( Aug 07 20:26:57 hm, 0.5.6 didn't fix the publishing stuff - not that the releasenotes said it would. oh wells Aug 07 20:28:19 nice - gradle 1.7 really is much faster Aug 07 20:28:30 fast enough? hmm, but it was terribad Aug 07 20:28:36 Good afternoon everyone! Does anyone know if there is a way to remove the "Settings" key from the android keyboard? I'm setting up a kiosk unit and I don't want users changing the language and input settings. Aug 07 20:30:12 Brendan55: yes Aug 07 20:30:31 Brendan55: download the source to the keyboard, compile and install and then select it as the default keyboard Aug 07 20:30:37 hey Napalm Aug 07 20:30:52 hey Aug 07 20:31:19 Brendan55: https://android.googlesource.com/platform/packages/inputmethods/LatinIME/ Aug 07 20:31:31 Thank, Napalm. Aug 07 20:31:47 hello all Aug 07 20:35:52 p_l about our talk yesterday, i just learned about Julia. have to check that out Aug 07 20:38:15 Brendan55: want a keyboard without settings button? Aug 07 20:38:45 I do indeed! I just downloaded the source you linked and was about to dig in Aug 07 20:40:16 wouldn't be surprised if Napalm has it modded and built already. 5 min seems like a long time for him. Aug 07 20:40:29 lol Aug 07 20:40:34 haha Aug 07 20:43:22 Nexus 7 acquired! Aug 07 20:44:01 now, to wait a few weeks for my OTG cable to arrive from Taiwan or wherever Aug 07 20:44:31 hey all Aug 07 20:50:33 helloall Aug 07 20:52:41 edwardthefma: you dont have to keep saying that you know :) Aug 07 20:52:54 :D Aug 07 20:53:01 you dont need acknowledgment, do you ? Aug 07 20:53:04 lol Aug 07 20:54:06 * edwardthefma waves @ Aug 07 20:54:37 perhaps i should go to bed Aug 07 21:00:51 I've just found a function that checks the android.os.Build.VERSION.SDK_INT > 8 but AndroidManifest.xml has minSdkVersion="10". If I understand minSdkVersion, won't this prevent the app from being installed on devices older than API 10 (and thus make this particular function useless)? Aug 07 21:01:54 yes Aug 07 21:02:03 the function is probably left from a previous version of the app Aug 07 21:08:27 yes, I'm sure it was. Okay, just wanted to be sure before I nixed it from the source. Cheers. Aug 07 21:10:32 anyone here having issues with google play services? more specifically its resources not being found? Aug 07 21:11:12 vslice14: I was seeing those messages in logcat, but nothing seemed broken, so I've just been ignoring it Aug 07 21:12:58 if i define versionName and versionCode in my AndroidManifest.xml, is there any way to read this in my gradle build? of course i could put it in android { defaultConfig {} } Aug 07 21:14:03 maybe that resource is linked to getting locatoin updates? anyways it may be linked to eclipse not building the R.java correctly. i rebuilt and cleaned but it didn't work so im going to submit a bug report Aug 07 21:15:02 vslice14: a bug report for R not generating ? :) Aug 07 21:15:25 im not the only one https://code.google.com/p/android/issues/detail?id=40273&q=R.java&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Aug 07 21:16:40 except the difference in this case is that they're not the same package name. on of the resource numbers "0x7f0b038a" according to logcat, is not being found Aug 07 21:17:49 and why is R not being generated ? Aug 07 21:19:33 its being generated. Aug 07 21:20:05 but the logcat error message says "Google play services resources were not found" Aug 07 21:21:36 used to work fine for me when I was using eclipse Aug 07 21:21:43 vslice14, I think I saw the same thing in my logcat but wasn't experiencing any issues so I too have been ignoring. Aug 07 21:21:44 and still fine in android studio Aug 07 21:23:04 is there a way to use a debug res/values/strings.xml file and a release res/values/strings.xml file when building with gradle? Aug 07 21:23:49 for any of you receiving this error, are you requesting location updates in your project? and if so, is it working? Aug 07 21:25:04 out of interest what has "requesting location updates" got to do with a static R resource ? Aug 07 21:26:02 the thing with me is that my map view is coming up, and i even went back to an older version of my project that used this library and worked fine getting the location updates. except now that it doesnt get the location updates. that's why i'm thinking the R resource may have somehting to do with it Aug 07 21:27:04 doubt the 2 are at all connected Aug 07 21:27:29 just sounds like the play services lib project is not setup correct, maybe build order or someting ? Aug 07 21:27:38 I'm trying to put on/off switches in a ListView, but still allow the user to select the items in the listview, but I can't seem to make it so the user can select anything in the listview. I've messed with descendant focusability, but none of that seems to do anything. Could anyone provide some help please? Aug 07 21:27:58 is there a way to listen for the soft keyboard being dismissed without overriding onKeyPreIme() in the View? Aug 07 21:28:41 Forkk: not sure your giving any info, what is "do anything" ? Aug 07 21:28:44 i have it added as a dependency. its been working fine for the past 2 months and this error just randomly appeared. and i know the project is set up correctly because i am getting the map view Aug 07 21:29:09 StingRay_, none of what I've tried visibly affects the behavior of the ListView in any way. Aug 07 21:29:38 I can still toggle the switches and the entries are still not clickable. Aug 07 21:29:51 and its like when a res file has an error the entire gen file disappears since it can't get built. again just a hunch Aug 07 21:30:27 foomanshoe: I recommend Volley; others probably have other library recommendations Aug 07 21:30:35 how would I go about performing multiple HTTP requests in parallel? Would I use multiple AsyncTasks running with an executor? Would I use a single AsyncTask that spawns multiple threads? Aug 07 21:30:39 Volley doesn't have much in the way of documentation, sadly. I think Square has retrofit? Aug 07 21:30:41 evanc: gotcha, shall check it out. Aug 07 21:31:04 yeah, I believe I've seen square's library Aug 07 21:31:05 foomanshoe: search for Ficus' I/O talk on Volley if you're curious Aug 07 21:31:37 Aha, nevermind, just got it to work... For some reason, setting focusable to false on the switches fixed it Aug 07 21:33:16 evanc: Volley looks great Aug 07 21:33:27 don't have headphones right now, so can't view the video. Aug 07 21:33:36 foomanshoe: the slides should give you the gist of it Aug 07 21:33:44 aye Aug 07 21:36:35 That's great. Aug 07 21:36:51 evanc: is there an indication that Volley will eventually be integrated into the Android SDK? Aug 07 21:38:29 foomanshoe: I'm not sure, to be honest. I haven't seen one, but it'd be great to have it (or something similar) be a first-class citizen in Android Aug 07 21:38:40 yeah Aug 07 21:38:45 instead of saying "here's URLConnection.java; have fun!" Aug 07 21:39:28 evanc: there's HttpClient :p Aug 07 21:39:29 well... even if it's integrated into the sdk, you won't be able to use it for the forseeable future Aug 07 21:39:35 it'd be nice if volley were shipped with the support lib Aug 07 21:39:43 romainguy: /me glares Aug 07 21:39:50 or available as another artifact/org in the m2repo that sdk manager ships no Aug 07 21:39:52 pfn: definitely agree Aug 07 21:39:53 w Aug 07 21:40:11 I don't mind pulling in more libraries, but it should be available somewhere easy to incorporate Aug 07 21:40:20 I think the only canonical source for it now is aosp? Aug 07 21:40:27 pfn: yeah Aug 07 21:40:42 it's pretty simple to get a jar to drop into your project, but the fact that you have to do that kind of sucks Aug 07 21:40:57 Napalm: I'm having a little trouble compiling the LatinIME out of the box. Am I supposed to download the whole of Android source code to build this one project? Aug 07 21:41:22 Brendan55: no it only requires https://android.googlesource.com/platform/frameworks/opt/inputmethodcommon/ Aug 07 21:41:36 Brendan55: gimme a second, i will compile it for you without settings button on keyboard Aug 07 21:42:08 evanc: might be a good idea to provide a github mirror, with a compiled jar, for convenience purposes. Aug 07 21:42:12 You will be my hero good sir! Aug 07 21:42:30 foomanshoe, with any luck, it'll show up either on maven central, or in the sdk's m2repo Aug 07 21:42:34 soon-ish Aug 07 21:43:34 yeah Aug 07 21:43:37 considering it doesn't require any resources, publishing to maven central should be a nobrainer Aug 07 21:43:50 anyone hacking on glass here? Aug 07 21:51:37 I have been today. Aug 07 21:51:43 But that was for my greenhouse. Aug 07 22:15:22 Brendan55: still around? Aug 07 22:16:15 yeah, I'll be right back though Aug 07 22:17:12 hurry Aug 07 22:17:13 i have to go Aug 07 22:24:48 I am so sorry, Napalm. I'm here Aug 07 22:29:21 Brendan55: https://github.com/slightfoot/android-kioskime Aug 07 22:29:58 Brendan55: that should compile nicely in Eclipse for you Aug 07 22:30:12 You are my hero! Aug 07 22:30:14 Thank you Aug 07 22:30:24 it still needs some editing to the code to remove the settings button Aug 07 22:30:33 i started, but dont have time to finish Aug 07 22:31:22 search all *.xml files in the res\ directory that contain the word KIOSK in uppercase to see my changes Aug 07 22:31:55 Brendan55: if you pull the repo into your own github account you can send me a pull request and i will update mine with your changes tommorow Aug 07 22:31:57 cya Aug 07 22:32:53 That's awesome! Thank you again Napalm Aug 07 22:33:00 infact Aug 07 22:33:08 whats your github account name? Aug 07 22:33:26 Brendan55: ^ Aug 07 22:33:48 brendanschulz Aug 07 22:34:29 Brendan55: ive added you as a collaborator to https://github.com/slightfoot/android-kioskime so it should me you can push changes Aug 07 22:35:05 Awesome! Aug 07 22:35:13 wanna edit the readme and see? Aug 07 22:36:10 Got it Aug 07 22:38:26 Brendan55: cool, best of luck.. let me know how it goes.. i'll be around same time tommorow Aug 07 22:38:45 Will do. Thanks again and have a good evening Aug 07 22:48:06 lol "IMPORTANT: If you have not manually set pricing for Hungary and Taiwan in the Google Play Android Developer Console by [insert date], 2013, Google Play will automatically assign Buyer’s Currency prices for your products. " Aug 07 22:48:36 the intern forgot to put the date on the Google Play announcement email sent 20min ago Aug 07 22:51:17 ? Aug 07 22:51:31 Developer Console by [insert date] Aug 07 22:51:37 thats how the email arrived Aug 07 22:51:43 mine says august 12 Aug 07 22:51:57 oh Aug 07 22:52:00 second paragraph Aug 07 22:52:11 first paragraph has the date Aug 07 23:03:51 rottz the intern was replaced by a hamster a while back Aug 07 23:18:53 i dont supposed there is a way for the gradle tasks like connectedCheck to just print a summary on the console? Aug 07 23:21:07 ugh, connectedCheck isn't even launching the tests on the device but reports everything as passed Aug 07 23:23:54 yawn Aug 07 23:29:17 is there a way to get the buildType being executed in gradle? something like def buildType = project.("android").currentBuildType? Aug 07 23:35:02 um, anyone notice running instrumentTests on devices is totally broken in 0.5.6 ? Aug 07 23:35:09 you have to be fucking kidding me ! Aug 07 23:35:47 g00s, if I add instrumented tests in my sbt plugin, will you finally try it? :p Aug 07 23:41:47 these tools often make me question my sanity ... Aug 07 23:41:58 * pfn shrugs Aug 07 23:42:00 am i just doing something dumb, or is it this horribly broken ? Aug 07 23:42:06 at least if you'd use sbt, you'd have some asshole like me helping you out Aug 07 23:42:07 surely it must be me ! Aug 07 23:42:18 * pfn shrugs Aug 07 23:42:25 hehe Aug 07 23:44:02 hmm, why is android:button getting ignored by my checkbox when I'm setting it via style= Aug 07 23:55:23 * pfn sets it explicitly :( Aug 07 23:57:52 hey all Aug 07 23:57:58 has anyone run into an issue where ADB doesn't respond(or has issues like 'protocol fault' and 'device not found') immediately after using adb install? Aug 07 23:58:10 not i Aug 07 23:58:20 it seems that the ADB server and/or daemon restarts after the install in a script i've got Aug 07 23:58:39 and i'm having a very hard time reproducing it in a small test case Aug 08 00:00:19 adb does seem flaky in general for me Aug 08 00:00:35 there are also random occurances of it not working for one command in a long sequence Aug 08 00:02:05 anyone has experience with LXC? Aug 08 00:04:28 adb is flaky for me too Aug 08 00:04:53 i have to do adb kill-server && adb devices a few times before a connection is made Aug 08 00:05:08 once its there it stays up usually Aug 08 00:05:13 until it crashes :D Aug 08 00:05:15 well, it'll happen in the middle of preforming tasks in this situation Aug 08 00:05:24 it *usually* stays up for quite a while Aug 08 00:05:31 i think the tools team needs new leadership Aug 08 00:05:47 but this adb install X ; adb install Y ; adb install Z ; adb am instrument Aug 08 00:05:51 harsh, but ... Aug 08 00:05:53 combo seems to always break something Aug 08 00:06:09 adding adb wait-for-device after each install works around it Aug 08 00:06:33 but i've also noticed that it is dependent on the other actions before the install -- i can't reproduce it in a small test script that i wrote Aug 08 00:07:24 When is/are Google devs going to improve Dalvik? is there some sort of plan/roadmap around that? Aug 08 00:08:08 hwrd|work that js benchmark this morning from mozilla was funny, is that what got you thinking ? Aug 08 00:08:41 g00s: Yeah, mostly. But generally I just feel it could be generally improved (keep in mind I don't do like Dalvik on the reg so I'm kinda shooting in the dark) Aug 08 00:12:46 hwrd|work what got me wondering, was when ximian translated the java framework to c# with some automated tool and then ran it against their mono vm; seemed like performance was much better Aug 08 00:13:01 to me, thats pretty much a direct comparison Aug 08 00:13:08 real life Aug 08 00:13:57 if the results were valid, seems like there is a LOT of room for performance improvements. maybe jelly bean could have run OK on GB era HW :) Aug 08 00:15:22 My launcher activity is configured with an ImageView inside a FrameLayout. The ImageView configured to load an image via a resource. The when I open the resource I can clearly see the image (it's a 480x720 png file) however it's rendering on my Galaxy S3 as a simple white background. And ideas as to why this might be? Aug 08 00:26:55 Leeds oh oh Aug 08 00:27:31 g00s: ? Aug 08 00:27:40 Leeds i guess you didn't read yet Aug 08 00:28:24 um? Aug 08 00:28:31 :) Aug 08 00:32:02 ok then... Aug 08 00:32:59 right Aug 08 00:33:07 now what? Aug 08 00:34:07 well, I'm going to finish my breakfast, and at some point you might say something with context :P Aug 08 00:35:01 Leeds your breakfasts will never be the same after this Aug 08 00:35:08 enjoy this one ! Aug 08 00:35:31 savor each bite Aug 08 00:35:41 even if its not bacon Aug 08 00:36:06 If it doesn't have bacon, is it really breakfast? Aug 08 00:36:13 Is it even food? Aug 08 00:36:37 the Soylent guy has it all wrong Aug 08 00:37:32 well, presumably soylent has bacon Aug 08 00:37:39 second hand bacon.. but still :) Aug 08 00:39:25 dont tell that to the pigs getting the Soylent Aug 08 00:39:26 g00s: you gonna tell me what you're talking about then, or not? Aug 08 00:39:52 Leeds https://plus.google.com/112218872649456413744/posts/9HHRURorE7g Aug 08 00:40:05 did you post that this morning already ? Aug 08 00:40:09 yeah... I replied to that post Aug 08 00:40:46 oh , i see Aug 08 00:43:02 I sort of assumed it had been discussed already while I was offline :) Aug 08 00:43:36 i didn't see anything at all Aug 08 00:43:44 also didn't see anything on HN until late Aug 08 00:43:57 see, i dont use RSS anymore without Reader so I'm often clueless Aug 08 00:46:07 anyway, I don't think there's all that much to say about it Aug 08 00:47:48 AOSP doesn't actually matter all that much, in the real world... jbq was put in that position too many times, and I don't think anyone can fault him for having had enough Aug 08 00:50:02 Leeds did jbq mention whether he is staying at google ? Aug 08 00:50:42 he hasn't, AFAIK - wouldn't surprise me if he doesn't know himself... he certainly wouldn't be the first Android burnout to vanish into the belly of the beast Aug 08 00:51:19 I saw some speculation that quitting in public like that may not be career-promoting Aug 08 00:57:05 Leeds did JBQ do anything with the x86 / MIPS images, even QA ? Aug 08 00:57:08 frankly, it sounds like the first thing he should be doing is taking a month or two sabbatical, if he's no longer on deadline... anyway, /me post-breakfast afk Aug 08 00:57:23 g00s: dunno... my guess would be no Aug 08 00:57:59 Leeds you can apply for AOSP maintainer position :D Aug 08 01:08:49 :-) Aug 08 01:55:28 does each activity create its own fragment manager? Aug 08 01:59:05 Yep Aug 08 01:59:48 so its not a singleton?... getFragmentManager() implies its a singleton... Aug 08 02:01:10 No, it's not a singleton Aug 08 02:01:58 so it would probably be the source of a crash complaining the activity is destroyed when calling commit()?... If its not a singleton, that means it should hold a reference to the activity it was instantiated from right>? Aug 08 02:02:25 im basically instantiating it once, and attempting to reuse it :S Aug 08 02:02:32 Yeah, it has a reference Aug 08 02:07:42 if i have an asynctask, is there a way to tell which activity called it after its finsihed? Aug 08 02:08:31 store that info in the task? Aug 08 02:08:38 like when you call it Aug 08 02:09:05 for example, i have a task called login. activity1 calls login to see if the login is ok or not, if its ok, then activity1 will go do something. activity2 might want call login also, so when login is finished, i want activity2 to do something else Aug 08 02:09:45 set / check state of logging in? Aug 08 02:10:40 hmm, i see. Like have a variable called whoami in the task, when activity1 calls it, the whoami in the task will be activity1, and when activity2 needs to call it, its whoami will be activity2 Aug 08 02:10:57 yes, but that's a bit hacky Aug 08 02:11:07 it would be better to have some sort of state validation Aug 08 02:11:16 UserManager.isLoggedIn() or something Aug 08 02:12:42 ok, so the main class that activity1 and activity2 is extending would have a function called isloggedin, and the asynctask onPostExecute would call that isloggedin function and set a variable that both activity1 and activity2 can look at Aug 08 02:13:02 sort of Aug 08 02:13:08 or maybe that function should be called setLogin or something, and then isloggedin can be called from the acitivites Aug 08 02:13:13 you'd make a singleton of sorts Aug 08 02:13:27 that would handle logging in, checking whether the use is logged in, logging out, etc Aug 08 02:13:31 a private class variable with getters and setters Aug 08 02:13:34 your activities dont extend it Aug 08 02:13:37 its its own thing Aug 08 02:13:48 but its accessible by something like UserManager.getInstance() Aug 08 02:13:53 sort of like sharedPreferences Aug 08 02:14:21 I can't seem to figure out how to export just charged orders for a certain product on Google Wallet - any tips? Aug 08 02:14:22 then you could do stuff like if (!UserManager.isLoggedIn()) { new LoginTask.execute(); } Aug 08 02:14:37 I do a search with "charged" and then do an export with a date range and get tons of crap Aug 08 02:15:00 Pyuruku: hmm, i see. interesting. Aug 08 02:30:51 lo all Aug 08 02:32:51 can someone point me in the right direciton with ViewPager? I've got 3 fragments that i can swipe between. I need to update a spinner on fragment 2 after something happens on fragment 1. Is there a good way to do this? Aug 08 02:35:49 flipture: many ways Aug 08 02:36:07 all depends on design I would think Aug 08 02:36:56 ok so what i'm doing that would require a refresh in fragment 1 is calling an activity. i tried running the refresh in onActivityResult Aug 08 02:37:00 but that didn't seem to work Aug 08 02:37:11 maybe becuase thats not the fragment thats calling the activity Aug 08 02:37:28 i'd like to have it refreshed when i swipe to it, i think... Aug 08 02:38:02 any hints on what to google to see what my options would be? Aug 08 02:38:13 not really Aug 08 02:38:15 i'm looking at the docs on android.com now... just don't see anything that pops out Aug 08 02:39:04 well change the backing data, call the fragment directly, event bus, manage it with a service, implement some state system that the frags read, interface Aug 08 02:39:08 loads of way Aug 08 02:39:20 just depends on the design/flow I guess Aug 08 02:39:25 hurm Aug 08 02:39:39 what do you mean by backing data? Aug 08 02:39:43 and call fragment directly? Aug 08 02:39:53 those sound the most likely to work Aug 08 02:40:01 they all work Aug 08 02:40:09 well for me :) Aug 08 02:40:29 backing data = whatever data needs to change on fragment 2, or whatever wherever it gets the data for that change from Aug 08 02:40:40 eg list, loader/cursor whatever Aug 08 02:40:53 so from fragment 1, update spinner adaper on 2 Aug 08 02:40:56 something like that Aug 08 02:41:00 call directly = if there is an active instance, get it with fragmentManager Aug 08 02:41:07 and call some method directly Aug 08 02:41:12 ah ok gotcha Aug 08 02:41:34 all instances are active when i need ot make changes so that ight work perfectly Aug 08 02:42:04 dont forget you may have to proxy the fragment tag Aug 08 02:42:12 if you're in a viewPager Aug 08 02:42:20 cause you dont set the ident TAG Aug 08 02:42:25 the pager does Aug 08 02:42:40 or the adapter may need to keep instances Aug 08 02:42:48 if there are very few neways Aug 08 02:42:52 ah right Aug 08 02:43:16 it makes a little sense. I have a bit more to learn but that gets me going in the right direction... Aug 08 02:43:19 thanks man Aug 08 02:43:31 np, good luck Aug 08 02:44:44 I'm sure i'll be back :) Aug 08 02:44:59 been in the process of moving so haven't had a lot of time to fiddle lately... sucks... Aug 08 02:57:23 How can a background thread modify the UI even after the Activity is left and reloaded? Aug 08 02:59:18 any other thread (other than main ui thread) cant alter UI, reguardless of activity Aug 08 02:59:21 Hey does anyone know any good android beginner tutorials other than the one on the site? Aug 08 02:59:21 Or maybe some good apps to look at and dissect. Aug 08 02:59:46 aztecmew: just use the getting started guides/tuts Aug 08 02:59:56 you already know java ? **** ENDING LOGGING AT Thu Aug 08 02:59:59 2013