**** BEGIN LOGGING AT Sat Dec 29 02:59:59 2012 Dec 29 03:00:31 funkbox: it keeps spewing out SSL errors in my logcat, that bothers me, esp since none of my own apps even use it Dec 29 03:00:44 weird Dec 29 03:00:55 that's actually super weird Dec 29 03:01:27 read time outs Dec 29 03:01:56 haven't seen it Dec 29 03:01:59 but the product is solid Dec 29 03:02:23 i run it even while developing Dec 29 03:04:57 android rocks man Dec 29 03:08:03 crap, the inkscape guys aren't producing native builds for os x anymore. I use this for my android icons Dec 29 03:08:36 g00s: illustrator! Dec 29 03:08:39 0.48.4 is available for win/linux though Dec 29 03:08:55 funkbox: heh, yeah if i could afford it. inkscape has been such a pos Dec 29 03:09:10 g00s: i'm sure there's some stuff you could sell Dec 29 03:09:17 you don't use your couch that often do you ? Dec 29 03:09:23 funkbox: i dont have a couch Dec 29 03:09:28 or your-- no. Dec 29 03:09:32 in fact, i dont have much of anything :) Dec 29 03:09:38 g00s: your laptop ? Dec 29 03:09:42 i'm sitting on a medicine ball. i sleep on a camping mat Dec 29 03:09:50 where do you live Dec 29 03:09:56 everywhere, nowhere Dec 29 03:09:58 college dorm, probably Dec 29 03:10:04 i miss college Dec 29 03:11:37 AmandaC: might be japan Dec 29 03:11:42 they do crazy stuff like that Dec 29 03:11:45 sleep.. Dec 29 03:15:14 * AmandaC should probably get ready for sleep soon, actually. Dec 29 03:15:22 Just one more test... Dec 29 03:21:14 YAY! Version 0.1 of my MyTracks remote app for the LV is working! Dec 29 03:21:31 LV? Dec 29 03:21:39 I can start a recording, pause, resume, and stop one! Dec 29 03:21:43 g00s: LiveView Dec 29 03:22:05 \o/ Dec 29 03:22:08 ... except it appears to be crashing the service when it stops the recording Dec 29 03:22:24 the MyTracks code used to be pretty terrible Dec 29 03:22:35 not sure if it was improved since Dec 29 03:23:16 It's got a remote control API that another app for the LV uses, but I felt that it was way too general, I don't care about my heart rate or three pages of stats when I'm walking Dec 29 03:23:48 I care about my time out and about, my distance walked, and the speed I'm going ( I don't know how to get at the last one, yet ) -- nothing more Dec 29 03:24:03 I probably care more to pause for, eg, a store break. Dec 29 03:24:20 MyTracks.. oh, that tracking software was it? Dec 29 03:24:26 yes Dec 29 03:24:37 I am thinking of using it to map my walks for Ingress. :P Dec 29 03:24:40 I was thinking it had something to do with music first Dec 29 03:24:54 An understandable confusion Dec 29 03:25:12 I opted for endomondo soon after trying mytracks a few years ago Dec 29 03:25:45 yeah, it's got a massive overhaul somewhat recently, no clue how it compares currently Dec 29 03:25:57 but endomondo keeps startling me with "LAP ONE!" Dec 29 03:25:58 i tried the new one, its still clunky Dec 29 03:26:06 this is the first time i am hearing of this thing Dec 29 03:39:30 funkbox: what thing? Dec 29 03:39:52 I'm putting my project into a git repo. Which eclipse files do I want to keep? Dec 29 03:40:13 hey guys, im learning androiddevelopment, anybody else use libgdx for games? Dec 29 03:40:53 I've been using eclipse to build automatically. Should I write an Ant script maybe? Dec 29 03:41:24 AmandaC: my tracks Dec 29 03:41:29 RustyShackleford: google eclipse / android / .gitignore Dec 29 03:41:29 funkbox: ah Dec 29 03:41:57 for example, you'll want to exclude gen/ Dec 29 03:42:49 * AmandaC has never included gen/ since it ;'s all reproducable from src/ and res/ anyway Dec 29 03:42:54 anything with .java Dec 29 03:43:31 i exclude .classpath, .project, and .settings/ Dec 29 03:44:32 what a way to die: dude locks himself in a duffel Dec 29 03:45:07 g00s: does this duffel bag smell like decomposing human to you? Dec 29 03:47:30 i dont have anything under "new" in newly installed eclipse Dec 29 03:49:08 nvm, just had to change my perspective Dec 29 03:51:05 intellij my good man Dec 29 03:51:56 haha, im just starting and most tutorials use eclipse, ecspecially android stuff Dec 29 04:31:57 do i need to explicitly call process.destroy in order for everything to be 'finalized'? Dec 29 05:26:38 why isn't there a control/shift/alt state for key input? Dec 29 05:59:25 Pfhoenix: there is shift. Dec 29 05:59:59 Pfhoenix: and some apps emulate ctrl/alt, such as terminal and connectbot Dec 29 06:00:15 I don't recall, but `hacker's keyboard` might have ctrl/alt Dec 29 06:02:02 it does Dec 29 06:02:34 ./adb push to nexus 7 is really slow Dec 29 06:03:12 I use hacker's keyboard Dec 29 06:03:29 not sure how to read the control key as a state modifier, though Dec 29 06:03:47 and also - what did people do before Fragments in API 11? Dec 29 06:04:10 I want my app to be API 10 minimum Dec 29 06:04:39 android.support.v4 or something? Dec 29 06:06:48 http://pastie.org/5592004 I am calling this isOnline() methode to check the internet connection status in my app. If the connection is available it return true. and if the connection is not available it should pop up an alert dialog to retry or finish. My question is, will calling isOnline() from within the function work? I mean I need to return to the method which called it at first! Dec 29 06:07:13 ndk question, you can examle a stack trace after a crash using this method Dec 29 06:07:15 http://bootloader.wikidot.com/linux:android:crashlog Dec 29 06:07:31 however where do i find the symbol tables needed to tell me the sourc eline numbers involved ? Dec 29 06:07:36 If user clicks on on retry button, it should try the isonlin() check agaian. Dec 29 06:20:03 anyone play around with BlueStacks ? Dec 29 06:29:11 how do i kill emulator-5554 Dec 29 06:34:50 how do i launch an emulator? Dec 29 06:36:53 linuxuz3r: did you look at the docs :/ Dec 29 06:43:09 thanks Dec 29 06:43:26 should i kill emulator-5554 Dec 29 06:45:48 with IDEA, how do I get controls in the activity layout editor to snap and align together? Dec 29 06:47:00 is there a cool ui toolkit for android Dec 29 06:48:36 linuxuz3r cooler than eclipse? Dec 29 06:48:46 Its pretty much awesome imo! Dec 29 06:49:38 i want to use my own images as buttons and stuff Dec 29 06:49:51 You can do that in eclipse Dec 29 06:52:04 with just the sdk? Dec 29 06:53:47 Yeah it comes with eclipse! :/ Dec 29 06:56:12 I mean clipse and adt bundle. Dec 29 06:57:12 eclipse and awesome do not belong in the same sentence Dec 29 06:58:32 With the adt-eclipse bundle I think it can pass! Dec 29 06:59:15 not even close Dec 29 06:59:23 IntelliJ's IDEA is far superior Dec 29 06:59:33 although I'm right now fighting it's layout editor Dec 29 07:00:00 Pfhoenix Its IDEA more than simply awesome. I love it, but I never managed to get it to work with facebook sdk! :( Dec 29 07:00:14 IDEA is* Dec 29 07:00:59 For UI and adding libraries etc eclipse bundle is better. But for the pleasure of coding the joy of it, IDEA is the best choice! Dec 29 07:01:45 the newest version has a graphical android UI builder thingy. although I haven't actually tried it Dec 29 07:02:35 JesusFreke IDEA? Dec 29 07:02:38 I'm fighting it right now Dec 29 07:02:45 oh ok. Dec 29 07:02:57 all I want is to get this LinearLayout to snap the two views to be aligned with one another Dec 29 07:03:02 apparently that's too much to ask Dec 29 07:03:12 heh Dec 29 07:03:15 obscurant1st: yea Dec 29 07:03:22 I might try it in the future. For now I will have to gfo with eclipse! I need to complete this project asap! :D Dec 29 07:03:55 Pfhoenix why don't you create the UI in eclipse and copy it to the xml in IDEA if you want it done the easy way! :P Dec 29 07:05:01 new IDEA has a graphical UI editor Dec 29 07:05:08 a designer view Dec 29 07:05:10 oh really, you don't say ;) Dec 29 07:05:16 "(11:01:45 PM) JesusFreke: the newest version has a graphical android UI builder thingy. although I haven't actually tried it" Dec 29 07:05:23 :D Dec 29 07:05:38 I really dislike Eclipse Dec 29 07:05:40 JesusFreke: :D totally missed that Dec 29 07:05:42 I always loved the phrase "You don't say" Dec 29 07:05:44 hehe Dec 29 07:05:50 obscurant1st: ... Dec 29 07:05:52 I'd rather not open it for any reason Dec 29 07:05:54 you don't say. Dec 29 07:06:42 BTw can someone please tell me how can I kill my application in my simulator in eclipse? Not programmaticaly! Dec 29 07:07:07 NVM got the pid in adb Dec 29 07:07:42 i disabled the UI designer plugin in IDEA Dec 29 07:08:02 it's that bad? Dec 29 07:08:04 it kept closing other parts of the window whenever you'd open any layout xml Dec 29 07:08:09 hah Dec 29 07:08:28 i'm sure they fixed it before the final release of 12, but i've always been an EAP man and I couldn't stand it Dec 29 07:13:45 How fast is MediaMetadataRetriever? Dec 29 07:14:10 just a little slower than you want Dec 29 07:14:19 really? Dec 29 07:14:28 cause right now I'm doing 480p decoding with libavcodec Dec 29 07:14:28 :) Dec 29 07:14:29 it takes exactly 12.24 microseconds per operation. always. Dec 29 07:14:40 Theora/OGG Dec 29 07:14:46 and it can do 25 FPS Dec 29 07:14:53 on Galaxy Tab 10.1 Dec 29 07:15:24 Now ... if I switched over to MediaMetadataRetriever... would this really give me a boost? Dec 29 07:15:33 and I'll probably have to use 3GP or something Dec 29 07:15:44 but will it really decode faster knowing that the CPU is Tegra2 Dec 29 07:16:34 how do you kill or delete an emulator Dec 29 07:16:48 the one that i wanna delete is emulator-5554 Dec 29 07:16:48 why so violent? Dec 29 07:17:13 you normally find the emulator process.. and kill it with any of the normal tools Dec 29 07:17:15 I mean like, as an interface for decoding frames from a video... is it faster than let's say running libavcodec natively? Dec 29 07:17:35 can you give an example JesusFreke Dec 29 07:17:45 ps -A | grep qemu Dec 29 07:17:47 find pid Dec 29 07:17:52 kill pid Dec 29 07:17:57 and if I decode frames I'll have to send them through JNI anyway Dec 29 07:18:10 where find pid is obviously a logical operation. not an actual command ;) Dec 29 07:18:36 And I even forgot to ask... what would you guys recommend for someone trying to decode video natively (in JNI) Dec 29 07:19:19 Would you recommend using MediaMetadataRetriever and a 3GP or libavcodec and some other format (bear in mind, I'm looking for performance) Dec 29 07:19:33 barque: it's somewhat unlikely that you'll find anyone here with that specific knowledge Dec 29 07:19:41 :S Dec 29 07:19:50 at least anyone that's here and actively watching the channel at this moment :) Dec 29 07:20:00 Good point, it's early in the morning anyway Dec 29 07:20:14 So you guys don't dabble in video decoding ? :P Dec 29 07:20:19 and it's a bit esoteric. I don't think many people would have experience with video decoding :) Dec 29 07:20:22 I don't :) Dec 29 07:21:22 Well, it's a big deal for me now cause I'm doing porting a C++ engine to android using JNI/NDK Dec 29 07:21:35 for work mind you Dec 29 07:21:55 So a lot of things like TextureSurfaces and such are a no-no given that they were added to the SDK much latter Dec 29 07:22:17 ever gotten a crash dump in logcat for ndk / c / c++ code ? how do i symbolicate it Dec 29 07:22:18 the maximum we can discard is api-level 10 Dec 29 07:22:32 k0nichiwa, using Visual Studio Dec 29 07:22:37 use* Dec 29 07:22:49 the nVidia NDK for VS is great for C++ stack traces Dec 29 07:23:00 c/c++ Dec 29 07:23:11 the logcat is freakin' HORRID though Dec 29 07:23:14 no filtering whatsoever Dec 29 07:23:31 api-level 9* Dec 29 07:23:33 btw Dec 29 07:23:43 barque, where can i get nvidia ndk? Dec 29 07:23:45 (the maximum we can discard) Dec 29 07:23:54 linuxuz3r, the Internet? Dec 29 07:24:03 I think it comes with or you have to install cygwin Dec 29 07:25:33 visual studio sounds like a nightmare Dec 29 07:25:50 well, from experience, both VS and eclipse have been nightmares Dec 29 07:25:51 how would you even set up vis studio to do android .. cygwin, ugh Dec 29 07:26:01 causes as many problems as it solves probably more Dec 29 07:26:12 well try it, I'm using it at work Dec 29 07:26:15 it really isn't that bad Dec 29 07:26:19 not worse than eclipse anyway Dec 29 07:26:37 same problems that happen on eclipse, happen here too... IDE crashes, pdb service turding out etc. Dec 29 07:26:46 I'd blame Android :D Dec 29 07:26:51 at the moment id just like to symbolicate the crash dumb i got in logcat Dec 29 07:27:10 those crash dumps are somewhat useless ... give limited stack trace etc. Dec 29 07:27:12 good luck Dec 29 07:27:31 you should be able to get a line number out of it if it goes back to your own code Dec 29 07:27:42 but where is the symbol talbes i need ? Dec 29 07:27:57 at my workstation... it highlights exactly the line of code and the entire stack trace along with complete variable info in memory Dec 29 07:27:59 on a crash Dec 29 07:28:12 i can run it in a debugger Dec 29 07:28:18 sure Dec 29 07:28:26 but the debugger isn't able to deal with a crash in the driver that traces back into my code Dec 29 07:28:28 which is what i have Dec 29 07:28:34 yeah well Dec 29 07:28:39 try VS :] Dec 29 07:28:43 gdb just says it's crashing in strlen ... but in reality its a opengl driver crash Dec 29 07:29:09 geesh all these microsoft certified engineers around trying to push micro$soft stuff Dec 29 07:29:17 barque, are you an MSCE ? Dec 29 07:29:20 hahah I work at a video game design studio Dec 29 07:29:21 and no Dec 29 07:29:31 I could care less about Microwhatever Dec 29 07:29:44 I'm just saying this is what I use at work Dec 29 07:29:48 and it works fine Dec 29 07:30:27 btw Dec 29 07:30:30 i love java Dec 29 07:30:44 since i know VB.NET and some C# Dec 29 07:30:50 its easy to pick up Dec 29 07:30:55 especially threads and timers Dec 29 07:30:55 :D Dec 29 07:31:39 hm i think maybe it crashed when it compiled my shader Dec 29 07:31:45 ok, how the hell do I turn off an application that I started from my service? Dec 29 07:32:05 at about that time i suddenly get "in mgmain jni_onload" which must be a crash reporting shared lib Dec 29 07:32:08 the Intent to launch an app has no way of managing the intent after I've called startActivity(someIntent); Dec 29 07:32:25 or am I missing something.. Dec 29 07:32:25 barque, you use cygwin ? Dec 29 07:32:30 yes Dec 29 07:32:42 I think you have to set it up with the android NDK from nVidia Dec 29 07:32:51 it provides the toolchain for compiling for android native Dec 29 07:33:01 do you do native acitivites ? Dec 29 07:33:08 tried it once... no Dec 29 07:33:10 I don't like glue Dec 29 07:33:13 for several reasons Dec 29 07:33:23 oh ... then hwat kind of ndk stuff are you doing Dec 29 07:33:26 mainly cause I cannot wrap other Java stuff on top Dec 29 07:33:36 the non-native-activity stuff Dec 29 07:33:38 you do native renderer for glsurfaceview ? Dec 29 07:33:46 with a Java entry point, System.loadLibrary (...) Dec 29 07:33:48 etc. Dec 29 07:33:54 you do native renderer for glsurfaceview ? Dec 29 07:33:56 yes the renderer is native Dec 29 07:34:04 i c that is the same approach im using Dec 29 07:34:09 I use surfaceHolder callbacks to send in the native window Dec 29 07:34:22 SurfaceChanged, SurfaceLost Dec 29 07:35:58 you ever get crashes in the gl driver ? Dec 29 07:36:18 never mind doesnt matter =) Dec 29 07:36:22 im not switching to vs at this point Dec 29 07:36:33 I get crashes everywhere Dec 29 07:36:35 and deal with them Dec 29 07:36:51 see the Java crashes are easy cause I get an Exception and Logcat tells me exactly where Dec 29 07:36:56 at which Java call Dec 29 07:37:10 the C++ calls however, I'm lucky enough I get a ton of info dumped right into Visual Studio Dec 29 07:37:14 usually i assume if i run it in a debugger Dec 29 07:37:17 and cna KeyEvents be dispatched by a service?! or kill an application that was started up by my service? Dec 29 07:37:19 i can easily find an exception Dec 29 07:37:29 but in this case for some reason gdb thinks there are only 2 stack frames Dec 29 07:37:42 probalby some driver weirdness, non-standard stack frames so it can't figure it out Dec 29 07:38:43 anyway good luck Dec 29 07:39:31 how do you prevent an app from going to landscape mode? Dec 29 07:40:02 linuxuz3r: http://stackoverflow.com/questions/2730855/prevent-screen-rotation-android Dec 29 07:40:05 seriously, google Dec 29 07:40:12 configuration, sensorPortrait Dec 29 07:40:18 or something like that Dec 29 07:40:28 Add android:screenOrientation="portrait" to the element in the manifest or landscape and you're done. Dec 29 07:40:39 barque: same thing Dec 29 07:40:40 screenOrientation=“sensorPortrait" Dec 29 07:40:50 well not exactly Dec 29 07:41:01 sensorPortrait allows for both reversePortrait and Portratir Dec 29 07:41:10 Portrait* Dec 29 07:41:16 ugh Dec 29 07:42:02 since new people have entered the channel, I think reposting my question is valid Dec 29 07:42:25 can KeyEvents be dispatched by a service?! or kill an application/intent that was started up by my service? Dec 29 07:44:47 app update is unreliable, i edit my code and it compiles but i dont think the shared lib is always updated on the device correctly Dec 29 07:44:56 very annoying working with tools like this Dec 29 07:46:53 barque, if ur still there, is there some code you use or trick to improve smoothness of touch data ? Dec 29 07:47:34 Nothing special Dec 29 07:47:40 I just pass in touchEvents Dec 29 07:47:49 through JNI Dec 29 07:50:39 If I have two different subclasses of an abstract class, and another class acting as a container, how can I use one method to store either of the subclasses, and then identify which subclass it was when I pull them back out? Dec 29 07:51:47 So you're trying to work around the diamond problem to have it all over again? Dec 29 07:52:19 Nice... Dec 29 07:54:36 barque, what? Dec 29 08:03:30 Could anybody point me a tutorial or give me some advice on getting an app to send HID to a PC Dec 29 08:03:51 would be greatlly apreciated Dec 29 08:05:57 how popular is intellij among the android developer community? Dec 29 08:21:25 inteliJ++ Dec 29 08:22:13 sounds like everybody prefers intellij; maybe google should give up on the adt Dec 29 08:22:55 well; i think the tool dev is totally open; not sure if thats the case with the android plugin in intellij Dec 29 08:29:33 hm, i've never heard of or used intellij before.. Dec 29 08:29:40 or it sounds familiar.. not sure from where Dec 29 08:29:55 is it nicer than eclipse? Dec 29 08:30:04 arnorhs: you probably heard about it from ron_frown :) Dec 29 08:30:13 resident idea evangelist Dec 29 08:30:19 ah Dec 29 08:30:23 who is not evangelizing right now Dec 29 08:30:31 probably not though.. i just started hanging out here a day ago Dec 29 08:31:02 but i've been doing some android development in the last 3-4 months or so.. Dec 29 08:32:05 and working with eclipse and ADT sucks big balls… would intellij be a better experience? Dec 29 08:32:55 what would be interesting is if intellij made kotlin easy to use on android Dec 29 08:34:42 kotlin? Dec 29 08:34:52 g00s: kotlin? Dec 29 08:35:04 yeah, a jvm language from jetbrains Dec 29 08:35:27 ah Dec 29 08:35:54 if it's a JVM language i'd imagine it not working so easily for android..? Dec 29 08:36:50 the more out of sync android java and oracle java get; the more unfortunate i think it was that google chose java at all Dec 29 08:36:53 i don't know how that stuff works, but i thought things built on the JVM wouldn't be so easily transferred to the Dalvik vm? Dec 29 08:37:12 g00s: yeah, maybe Dec 29 08:37:14 arnorhs: depends. scala works ok Dec 29 08:37:20 oh, really? Dec 29 08:37:23 clojure doesn't Dec 29 08:37:26 you can write scala code for android? Dec 29 08:37:35 yeah, some people here do Dec 29 08:38:05 that sounds worth trying Dec 29 08:38:18 p_l: is going to be using prolog :) Dec 29 08:38:31 hah nice :) Dec 29 08:38:55 is there a good article I can find on using scala for android dev? Dec 29 08:39:17 hmm; well pfn is the resident expert - he may have an idea. i dont know personally Dec 29 08:39:50 i found some random via google Dec 29 08:40:29 obviously kotlin will have a killer ide ;) Dec 29 08:41:09 g00s: and why is that? Dec 29 08:41:15 intellij :) Dec 29 08:41:22 ok, i see Dec 29 08:41:34 so intellij is much better than eclipse? Dec 29 08:41:43 clojure and scala have plugins for eclipse/intellij; of varying quality Dec 29 08:42:03 i can't say. i played with it only a little Dec 29 08:42:39 ok Dec 29 08:45:13 oh this article points towards a few languages you can use: http://robots.thoughtbot.com/post/5836463058/scala-a-better-java-for-android Dec 29 08:45:15 i had no idea Dec 29 08:47:53 You know Dec 29 08:48:36 personally I think it would've been better had Dalvik been done away with and the Android system itself was just built to have been a complete Linux platform Dec 29 08:49:07 like MeeGo :) Dec 29 08:49:14 :) Dec 29 08:49:29 there's a Clojure fork that works on Android Dec 29 08:50:06 ivan: has that been worked on lately? i didn't see anything about it in the 1.5 release notes Dec 29 08:50:09 ivan: nice, do you have a link? Dec 29 08:50:25 For instance, I have to develop for android at work Dec 29 08:50:54 and I have to use such things as libavcodec (running on the CPU alone) and OpenAL4Android (which uses the Media class through JNI) Dec 29 08:50:55 https://github.com/sattvik/clojure Dec 29 08:51:11 vvery horrible choices mind you Dec 29 08:51:16 http://clojure-android.blogspot.com/ Dec 29 08:51:20 but I have very little in terms of alternative Dec 29 08:51:29 s Dec 29 08:51:39 ivan: thanks! Dec 29 08:51:52 barque: what do you use those for? Dec 29 08:52:06 I hear people connect to an nrepl server running on their phone; haven't tried it yet Dec 29 08:52:07 work, I'm porting over a game engine from C++ Dec 29 08:52:33 very little choice as you can imagine Dec 29 08:52:56 when the engine was being ported to the iPad, the guys have little to no issues doing it Dec 29 08:53:15 every library/interface provided was HW-accelerated as much as possible Dec 29 08:53:33 a whole different story when you're bringing in OpenAL or libavcodec/theora yourself Dec 29 08:53:37 yeah Dec 29 08:55:09 Again, I fail to see why some firms get hellbent on fetishes regarding languages Dec 29 09:01:04 what the hell kind of API method isthis??? static boolean isUserAMonkey() Dec 29 09:01:06 Returns "true" if the user interface is currently being messed with by a monkey. Dec 29 09:01:17 amazing stuff the ActivityManager has for methods Dec 29 09:01:32 http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() Dec 29 09:03:31 chaos monkey ? Dec 29 09:05:13 Hahahahahahaha Dec 29 09:05:34 in principle, it could be used to detect nonhuman input. Dec 29 09:05:41 for example, rain. Dec 29 09:06:03 or touchscreen activated by a leg, in pocket Dec 29 09:06:34 I accidentally managed to buy an app from pocket typing Dec 29 09:06:43 However, they have a great choice of words Dec 29 09:06:48 fortunately, I was within the 15 mins Dec 29 09:07:42 oh right.. i remember this monkey thing Dec 29 09:07:46 yeah, api is pretty crazy Dec 29 09:08:29 btw.. for those who haven't heard of chaos monkey: http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html Dec 29 09:15:58 gn Dec 29 09:16:37 gn Dec 29 09:42:57 So, I find that I can't kill a process when I have the process ID, the package name, etc... and I started the Intent, but can't kill it :( Dec 29 09:48:37 Argh!!! how the crapload do I kill a process that's currently running on the foreground to just die... Dec 29 09:48:41 die die die Dec 29 10:33:26 Hey developers, I have a question, if my app wants to receive a message from a server, how is that done? Dec 29 10:33:32 i mean, what's the mechanism? Dec 29 10:37:16 if you mean a push message, look into google cloud messaging Dec 29 10:46:08 thank you Leeds Dec 29 10:46:37 pleasure Dec 29 10:58:59 hello people, it'd like to be able to boot android and totally disable the shell console, does removing "service console" from init.rc is enough ? Dec 29 11:01:32 hello guys Dec 29 12:00:48 hi all, i'm fairly new at android development, and using eclipse. i've been using git for years - how do i integrate git with my android code? what needs to be under version control? just the src directory? Dec 29 12:02:17 ? Dec 29 12:04:00 or if it's more complicated and the whole eclipse project should be in git (not just src directory), what do i need in .gitignore? Dec 29 12:24:45 arnorhs: don't believe g00s, what I said was that I planned to learn prolog in 2013... though I know of at least one implementation that could be used on Android (with NDK) Dec 29 12:44:14 Is it possible to have a List in which each element has a TextView, an EditText and a Button? Dec 29 12:51:26 How do I convert the string "@drawable/down" to an int? Dec 29 12:52:00 Is it maybe an uri? Dec 29 12:53:02 um for what purpose Dec 29 12:53:49 I have the resource in that format and what to convert it to an int so I could use imageView.setImageResource(int) Dec 29 12:55:00 but you already know that at compile time so why not just use R.drawable.down Dec 29 12:55:48 No, I will not know it in compile time actually Dec 29 12:55:56 I will build up my view programmatically Dec 29 12:57:59 well if you wish, there was just a question on stackoverflow that answered this question... http://stackoverflow.com/questions/14076484/load-a-string-resource-based-on-selected-menuitem-resource-id-android-java Dec 29 12:58:21 thx Dec 29 12:59:24 that stuff is really slow though Dec 29 13:00:56 Wonder how measurable that is after all Dec 29 13:01:11 Would I notice? Dec 29 13:01:45 I am actually defining a view using my homebrew xml Dec 29 13:01:51 anli: you? Probably not. Some of you users? Yes Dec 29 13:02:00 p_l: ? Dec 29 13:03:04 anli: in my experience, a lot of the devs always assume that just because their app works fine on a) uber-powered latest-gen devices b) their surprisingly ideal testing conditions (no other apps hogging memory/cpu, etc), the app will work the same for their users :/ Dec 29 13:03:48 But 1k of xml was parsable in no time in 1998 Dec 29 13:04:09 anli: you'll die not on the parsing, but on reflection and view building Dec 29 13:04:12 Well, I know computers has become slower nowadays, but anyway Dec 29 13:04:43 View building just cant be that cumbersome to any unit if there are two buttons and an image, maybe a textfield Dec 29 13:04:44 and the 1k of XML can be parsed in as little as few milliseconds, to as long as few hours, depending on the contents :) Dec 29 13:05:09 Its no rocket science Dec 29 13:05:11 anli: it's something to profile, IMO Dec 29 13:05:53 make sure that after you build the first version of the dynamic views, that you carefully profile the whole path. Also, Android's views use precompiled XML Dec 29 13:06:44 just a bit of whine from someone who till yesterday used a 2nd gen android device (read: it arrived with 1.5/1.6) Dec 29 13:07:19 This is a format I would prefer for me view (or the like): http://pastebin.com/QXhR7Qdv Dec 29 13:07:29 me=my Dec 29 13:07:55 Maybe I can just omit the root element Dec 29 13:08:18 I am not a fan of android prefixes and androd:layout_width="wrap_content" spam Dec 29 13:08:22 anli: will the XML change while application is deployed (i.e. loaded from other sources etc.?) Dec 29 13:08:28 no Dec 29 13:08:58 then omit the whole custom stuff, and use XSLT to process your format into Android's and add it as a step in build.xml Dec 29 13:08:59 oh, the indentation was fubared on one line Dec 29 13:09:07 or two Dec 29 13:09:39 otherwise you're doing yourself and your users disservice Dec 29 13:09:50 In which way? Dec 29 13:10:38 by using less tested, less complete, less supported, less optimized path for something that is crucial to user experience Dec 29 13:11:10 Well, if the view building was crucial to the performance, you are absolutely right Dec 29 13:11:11 with XSLT, you can create a transform that will take your XML and make it into android standard view stuff Dec 29 13:11:17 ok Dec 29 13:11:24 Maybe I should read up on that then Dec 29 13:11:26 basically doing all the stuff at compile time Dec 29 13:11:57 also, consider reading up on styles instead of putting all the stuff inline Dec 29 13:12:15 Wonder how many millis it would be to actually create the view programmatically, I find it strange that it would affect anything Dec 29 13:12:22 (and I'm actually sympathetic to the idea of not using Android's XML syntax) Dec 29 13:12:35 :) Dec 29 13:12:46 Yeah, its a bit of "please, rip my eyes out" Dec 29 13:13:27 I cant believe anyone have actually constructed that Dec 29 13:13:35 anli: it's not just creating the view, it's the whole path - for android's XML, it's 1) preparsed into quickloaded binary form (no string handling etc., and unicode isn't that fast) 2) you get all the caching, optimizations etc. in framework Dec 29 13:13:46 anli: for XML, it's not that bad Dec 29 13:13:57 someone might made it as 2nf xml Dec 29 13:14:08 instead of nf xml Dec 29 13:14:44 Oh, didnt know the difference Dec 29 13:14:47 (nf = normal form, 2nf = second normal form, aka "WTF the idiots were thinking making that") Dec 29 13:15:15 :) Dec 29 13:15:20 second normal form XML is the stuff where you use separate tags for every single bit of data, with not an attribute in sight Dec 29 13:15:49 Ah Dec 29 13:15:58 beloved by autogenerated serializers, apparently, and by the idiot who made Apple XML plist format Dec 29 13:16:00 I think attributes not bad really Dec 29 13:16:03 +are Dec 29 13:16:10 hehe Dec 29 13:16:35 So a xslt is a declaration of how to convert my xml format to the android xml format then Dec 29 13:16:51 they aren't. XML, however, was designed as *markup*, to portably add semantics to data where data was usually much larger than the tags Dec 29 13:17:12 anli: XSLT = XML Stylesheet Language Transform or something like that Dec 29 13:17:35 XML (yuck) "programming language" that describes how to take an XML document and turn it into another document Dec 29 13:17:37 But its only about conversion/transoformation, lets say that I invent a tag, that becomes a view with an ondraw handler Dec 29 13:17:40 oops Dec 29 13:17:49 Its _not_ only about conversion Dec 29 13:17:51 Sorry Dec 29 13:17:58 well, that would require a bit of your own view writing, but it's doable Dec 29 13:18:26 yeah, and circles should of course be defined in the xml, not in a custom made view ondraw handler Dec 29 13:18:35 CircleView or the like Dec 29 13:18:38 That would be so crappy Dec 29 13:18:43 that is, you'd need to create your own widget (View class) and refer to it in generated XML (by fully-qualified class name as tag name) Dec 29 13:18:57 Exactly, and how nice is that Dec 29 13:19:01 ^ that's the method for fully-custom stuff while using framework Dec 29 13:19:08 sometimes necessary Dec 29 13:19:40 I want the xml to totally define the look of my view, without checking for custom ondraw handlers Dec 29 13:20:30 anli: custom handlers are just for veeeery specific stuff (Usually I'd go for that if I also had custom interactions, not just drawing.) Dec 29 13:20:37 And what about the style stuff, I want a box with rounded corners, but I dont want to define a style just to achieve that Dec 29 13:21:20 Setting the style as background Dec 29 13:21:34 ...is not what I prefer Dec 29 13:21:45 anli: you can locally override the style, iirc Dec 29 13:21:59 Then or something is cooler Dec 29 13:22:15 well, not pixels then Dec 29 13:22:36 I actually wonder why any measures can be given in pixels Dec 29 13:22:41 But thats maybe only me Dec 29 13:23:09 anli: well, for the "pixel-perfect" designs :) Dec 29 13:23:27 yeah, but pixels doesnt make a lot of sense on a phone Dec 29 13:24:57 you might be surprised. There's a lot of weird stuff out there Dec 29 13:26:37 Well, its actually the same when creating a webpage, you always work with pixels even if you do not know squat about the monitor the user is having Dec 29 13:28:16 I'd probably use pixels for veeery fine lines Dec 29 13:29:25 yeah, but when the number of pixels has increased beyond distinguishability, you will not need to work with pixels any longer Dec 29 13:31:08 ... that made me check... and... N4 is the *first* device where I can't see individual pixels o_O Dec 29 13:33:00 Wonder when computer monitors will come there Dec 29 13:33:24 anli: the day when MS finally throws a party about killing all the crap people made Dec 29 13:33:35 :) Dec 29 13:34:07 cause manufacturers don't want to make screens that make fonts too small because people made programs that assume specific DPI Dec 29 13:35:22 funnily enough, Linux/Unix actually backslid there - with Xft2 each program is responsible for being DPI aware, but X11 is DPI-independent (and used to come with 75 and 100 dpi font packages) Dec 29 13:36:59 Its a problem that font sizes are given in pixels Dec 29 13:37:18 Not even I do that Dec 29 13:37:47 But I have no problems specifying div dimensions in pixels, for some strange reason Dec 29 13:39:04 btw, Apple's "hires" is done by a bit of cheating - they carefully choose resolutions that let's them map things like 4 pixel squares as one bigger, so they can support existing apps ;) Dec 29 14:32:03 Does anyone know a way of generating a SOAP service from a WSDL to be used inside android? Dec 29 14:32:13 I was searching the internet and couldn't find something good enough. Dec 29 15:01:49 dafuq, ant is suddenly crashing with a nullpointerexception out of the blue Dec 29 15:02:59 meh, ran android manager and reinstalled sdk and now it's working again Dec 29 15:03:08 * pragma- peers suspiciously at google Dec 29 15:07:58 hi all, i'm fairly new at android development, and using eclipse. i've been using git for years - how do i integrate git with my android code? what needs to be under version control? just the src directory? Dec 29 15:07:59 or if it's more complicated and the whole eclipse project should be in git (not just src directory), what do i need in .gitignore? Dec 29 15:13:00 antgel look at android projects on github Dec 29 15:15:31 antgel: I think every file except those that says 'this file must not be committed in version control' Dec 29 15:15:42 I also leave gen out because it's going to get generated Dec 29 15:16:28 if I have an application that I've written and ran on my phone but I no longer have the code Dec 29 15:16:50 I want to get the application's code again, the APK file, I want it back Dec 29 15:16:50 I am starting a service using startService(). I need to know if it is running or not. I am using ActivityManager.getRunningServices(). Will startService() block until an entry is generated in the activity manager? Dec 29 15:17:00 actually I thought project.properties was one of those files that were supposed to be left out but ... hmm I have that too included now Dec 29 15:17:22 yury: no, startService like everything else (almost) returns immediately and starts sometime later Dec 29 15:17:54 hm... maybe I have been getting luck so far then Dec 29 15:19:01 in general it's not a normal problem to have. Usually your application's logic can dictate if the service needs to be running or not. Android will try to keep it running as long as there are more calls to startService than stopService concerning that particular service and if the application process is still alive Dec 29 15:20:06 I am using a SwitchPreference to trigger a service start (I know, it is not really a preference). However, I want the switch to also be an indicator of whether or not the service is running. I have a SharedPreferences change listener that triggers the service, but to save typing, it shares code with the part of my program that updates the UI. Dec 29 15:20:16 I have no idea if the ActivityManager returns the actually-really-running set of services, or services marked as 'needs to be running' Dec 29 15:20:32 alankila: well, I would like to know precisely that Dec 29 15:21:13 so, if I start the service, but it does not really start, the switch could potentially, in a race condition, flip right back Dec 29 15:21:37 I has not happened yet, or maybe it has and Android switches are a pain to use Dec 29 15:23:24 anyway, is there a better way to check for running services? Dec 29 15:23:30 you could engineer your service to crash periodically and force android to restart it and then try to investigate if you ever get that service excluded from the list Dec 29 15:23:37 or something like that Dec 29 15:23:50 API says I should not be using getRunningServices() Dec 29 15:24:23 yeh, it does. Dec 29 15:24:39 I feel a global variable is not reliable either Dec 29 15:24:47 the service could be killed without me knowing Dec 29 15:25:04 would onDestroy be called if OOM killer gets a hold of it? Dec 29 15:25:05 5the service's onDestroy() will get called if it's killed Dec 29 15:25:14 oh, maybe not if it OOMs Dec 29 15:25:58 I doubt this will be an issue, but I want the least hacky way of checking if my service is running or not Dec 29 15:26:29 I'd simply maintain the state locally in a preference and then engineer some hack that triggers during application start to get the service going based on preference value Dec 29 15:26:29 whta does your service do? Dec 29 15:26:41 XMPP Service Dec 29 15:26:46 I see Dec 29 15:27:18 most of the android API is such that only the people who wrote the framework know how to use it correctly. Or that's how it feels to me, anyway. Still, it's open source, so get the source and investigate if you can stomach the mess that it seems to be inside Dec 29 15:27:31 I hate Java Dec 29 15:27:41 with a passion Dec 29 15:27:49 so, not happening Dec 29 15:28:03 well, let's just say that you're on your own then, more or less. Dec 29 15:28:11 thanks, anyway Dec 29 15:28:35 I guess I'll stick with getRunningServices() untill Google decides to obsolete it Dec 29 15:28:46 and try to remove my potential race condition Dec 29 15:29:15 given backwards compatibility the method never goes away, probably, but it would be useful for the documentation to actually cover your use case. Dec 29 15:29:58 While this note is on the next method, I think it neaty summarizes my fears: Dec 29 15:30:01 "This should never be used for core logic in an application, such as deciding between different behaviors based on the information found here. Such uses are not supported, and will likely break in the future. " Dec 29 15:30:29 well, there you are then. I wish that note would have been copied to every method it maybe applies to, though. Dec 29 15:32:22 do event handlers ever interrupt logic running on the main thread? Dec 29 15:32:38 such as in say, onStartCommand in a service Dec 29 15:32:43 no, the android UI is single-threaded. The only way events get processed is if the code has returned to the mainloop Dec 29 15:32:59 hm... odd Dec 29 15:33:08 you're odd. Dec 29 15:33:29 no, my program behavior is odd Dec 29 15:34:57 alright, thank you all Dec 29 16:02:52 I have an intent-filter listening on android.intent.action.SEND to receive shared contacts. It's working, but I'm only receiving the vCard. I would like to get the CONTENT_LOOKUP_URI or something else instead. Any ideas? Dec 29 16:46:02 hi. how can I check using code whether there is exists a GPS on the device or not? Dec 29 16:58:12 argh, I hate java Dec 29 16:58:42 don't we all? Dec 29 16:58:56 "this method may throw is exception in another reality, you MUST add a try and 5 catch blocks before you can run it" Dec 29 17:00:31 Anoia: in a world, where both our exceptions are totally underwater... Dec 29 17:03:06 throw UnsupportedEncodingException Dec 29 17:03:32 despite a hard coded "UTF8" which should always exist :) Dec 29 17:03:58 well how is the compiler to know that? Dec 29 17:04:10 it should trust me :) Dec 29 17:04:34 or a flag saying @I really can;t be arsed to add this meany catches@ Dec 29 17:04:35 You're the user, never trust user input. :P Dec 29 17:04:39 :p Dec 29 17:05:04 besides, just do catch(Exception) Dec 29 17:05:27 and get a Findbugs warning Dec 29 17:05:58 nvm Dec 29 17:06:03 UnsupportedEncodingException shouldn't be a checked exception imo Dec 29 17:13:04 hi AmandaC asl? Dec 29 17:14:04 linuxuz3r: people still say that? Dec 29 17:14:10 how last century... Dec 29 17:14:41 ;p Dec 29 17:15:11 linuxuz3r: how cute, you think you stand a chance. :) Dec 29 17:15:14 and what does their age, gender and physical location have to do with anything? Dec 29 17:15:22 AmandaC: maybe trying to turn you.. Dec 29 17:16:00 many have tried, none have succeeded. Dec 29 17:16:03 yes very much Dec 29 17:16:08 so asl? Dec 29 17:16:17 none/yo/business Dec 29 17:16:39 and why just amanda? Dec 29 17:17:01 or are you going for the obviously female nicks? Dec 29 17:17:34 Anoia, u female? Dec 29 17:17:37 AL? Dec 29 17:19:06 78/f/OR Dec 29 17:19:34 when did #android-dev become a dating channel? Dec 29 17:19:37 wtf? Dec 29 17:19:43 luyang: no clue Dec 29 17:19:46 :) Dec 29 17:20:04 luyang: dunno, but it's entertaining, not had anyone liek this for |7 years Dec 29 17:20:13 not since my 71st birthday Dec 29 17:20:15 :p Dec 29 17:20:21 you're not 78 buddy Dec 29 17:20:35 clearly Dec 29 17:20:38 luyang: to some lower life forms, anywhere is a dating channel, as long as there's prospective females. Dec 29 17:20:56 luyang: frankly, I don't mine it in-channel, it's when they start PMing asking for naked pics that I get unsettled Dec 29 17:21:25 s/mine/mind/ Dec 29 17:22:06 yeah Dec 29 17:22:13 seconded Dec 29 17:22:29 I just find it childish Dec 29 17:22:39 and that's when I break out my dick mutilation photos, that'll learn them Dec 29 17:22:44 not that I would mind dating an Android girl Dec 29 17:22:59 luyang: sorry, I;m taken Dec 29 17:23:08 that's ok :) Dec 29 17:23:31 you're asleep Dec 29 17:23:51 hmmm? Dec 29 17:24:48 I got a privmsg saying you were asleep Dec 29 17:25:15 oh, I thought I was sleep typing :) Dec 29 17:25:49 Anoia: don't you hate when that happens? I find it more annoying when I wake up in the morning with a dozen new lines of functioning code, with no clue hjow they work or what they do Dec 29 17:26:18 yep, they're normall a better standard than my normal code :p Dec 29 17:26:27 and documented Dec 29 17:26:33 haha Dec 29 17:26:49 * AmandaC needs to document this LiveView API she's been tweaking, put it up somewhere Dec 29 17:29:04 linuxuz3r has gone very quiet Dec 29 17:29:53 im watching porn Dec 29 17:29:57 what is liveview? isn't that some sonyericsson thing? Dec 29 17:29:59 jk Dec 29 17:31:36 luyang: yeah, it was a massive flop, but I love mine. :P Dec 29 17:31:44 ok Dec 29 17:31:46 cool Dec 29 17:31:59 * Anoia goes back to her HTTP client code Dec 29 17:32:14 I want to get this auth adapter to actually login soonish Dec 29 17:32:57 * AmandaC should go for a walk to find out if the MyTracks API actually works how she thinks, or if it's just a tease Dec 29 17:44:49 argh, Unhandled exception type XXX also stops me from using them in static variable initialisers :| Dec 29 17:52:53 I love you too, Eric! But you're still not getting in my pants. Dec 29 17:57:44 hmm, is it possible to stream mp4 audio with MediaPlayer? :/ Dec 29 18:11:13 mbarisa: I don't think that mp4 is a codec, it's a container format for audio + video Dec 29 18:11:18 I might be wrong, though Dec 29 18:14:48 Hi, I'm trying to animate a fragment hide using fragmenttransaction.hide, with a custom animation (from here http://stackoverflow.com/questions/4817900/android-fragments-and-animation) Dec 29 18:17:03 I have a simple master-detail layout (google currents tablet style). the animation works, but with the effect that master list slides out to the left, but as it does so the container that it was in remains static, then vanishes after the animation completes (and the detail fragment only then fills in the space). Dec 29 18:17:04 any suggestions on how to make the detail fragment seamlessly expand at the same time as the master list is sliding out? Dec 29 18:17:21 I;m getting a host not resolvable exception from my http client code, could this be a cover for a missing permission? Dec 29 18:17:31 if so, which do I need to make HTTP requetes? Dec 29 18:17:55 I dont; see it listed on the http client and httpurl connection pages Dec 29 18:18:02 Anoia just android.permission.INTERNET and no, your app would die violently, instead of not resolvvable Dec 29 18:18:54 useful... Dec 29 18:19:08 no to find out why my app can;t resolve it yet everythign else can.. Dec 29 18:19:12 thanks Dec 29 18:19:35 Anoia: wait, are you making a custome HTTP client implementation? Dec 29 18:21:22 no I wasn;t, but the internet permission means I no longer get the not resolvable exception Dec 29 18:21:36 I now get SSLpeerunverified Dec 29 18:21:55 I had similar issues when testing it with wget so will complain at the host Dec 29 18:22:06 it does redirects between hosts and silly things Dec 29 18:25:27 hello for development one project in android exist one guide and best practice ? Dec 29 18:25:39 java.net.UnknownHostException Dec 29 18:25:52 dummies_freelanc: err, sorry? Dec 29 18:26:00 there are guides and best practices, yes Dec 29 18:26:07 see http://developer.android.com Dec 29 18:27:04 yes i know but i do referencies to wireframe , tools, testing and java Dec 29 18:44:23 I can't seem to find the APK in the root folder of my folder, shouldn't it be under gen/ ? Dec 29 18:44:29 I've built, cleaned, etc... Dec 29 18:45:02 in the root folder of my project I mean :P Dec 29 18:46:39 Is it possible to get the email address of developers on google play or is that information hidden? I'm asking since I want to know whether it's useful to have a separate email address for development. Dec 29 18:47:52 Sicp: it's not gen. I think it's out? Dec 29 18:48:01 out? Dec 29 18:48:03 no Dec 29 18:48:06 bin? Dec 29 18:48:14 yea, I meant bin/ Dec 29 18:48:17 gen is for things like the generated R.java Dec 29 18:48:19 sorry; well yea it isn't there Dec 29 18:48:20 ah, ok Dec 29 18:48:29 find -name "*.apk" :) Dec 29 18:48:41 but I am looking at the folder, no need for ninja shit Dec 29 18:48:41 :P Dec 29 18:50:15 apk is in out Dec 29 18:50:28 ain't no such directory as 'out' here Dec 29 18:51:48 maybe its an IntelliJ thing? (thats what I use) apk is in out/production/appname/appname.apk Dec 29 18:52:11 capella: yeah, it varies based on what you're building with Dec 29 18:52:19 ant, eclipse, intellij, gradle.. :) Dec 29 18:52:22 usually with Eclipse it's under bin Dec 29 18:52:29 ah Dec 29 18:53:40 hmmm, getting ssl peer unverified exceptions, which is commone, lots of people asking and lots of peopel answering with an @accept everything@ solution, then lots more people saying that's evil and bad Dec 29 18:54:05 but none i can see explaining what's missing to allow it to be verified by normal SSL stuff Dec 29 18:54:33 or is the http clinet just not useing the general key store? Dec 29 18:58:45 Anoia: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html Dec 29 18:58:58 note: old. but I think it should still be relevant. Dec 29 19:00:06 thanks Dec 29 19:00:13 I was still reading through http://stackoverflow.com/a/6378872/588306 Dec 29 19:00:40 Anoia: looks like a good one :) Dec 29 19:02:15 but why's it not being accepted using androids built in key store? Dec 29 19:06:28 the built in browser says it is valid with no errors Dec 29 19:07:01 nevermind, apk was generated again Dec 29 19:07:07 just Eclipse being Eclipse Dec 29 19:07:09 <3 Dec 29 19:07:34 Anybody in here know how AIDL bindings work? It seems that MyTracks kills the service for some reason when you stop recording atrack, it stops the service, but I'm never getting a ServiceConnection.onServiceDisconnected Dec 29 19:07:53 a/atrack/a track. Dec 29 19:15:52 LOL Dec 29 19:15:53 https://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION Dec 29 19:17:42 hi guys, anyone using couchdb on Android, and if so, which libraries do you recommend I look at ? Dec 29 19:24:25 "Eclipse being Eclipse" is why I change to intelliJ :P Dec 29 19:25:27 capella: is it easy to learn intellij? and are there no drawbacks? Dec 29 19:25:40 AmandaC: can't tell if serious. What on earth? Dec 29 19:25:54 there's also "LIKE_TRANSACTION", so IDK Dec 29 19:26:19 most likely the _TWT is joke, based on the final string, but that's unnerving stuff Dec 29 19:26:52 Very easy ... and very similar to Eclipse, just less .... "quirky" Dec 29 19:26:57 AmandaC: http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey%28%29 Dec 29 19:27:09 luyang: I knew about that one Dec 29 19:27:15 capella: are you using the free community version? and is it light on computer resources? Dec 29 19:27:27 can it use the same emulator and good ui tooling etcetc? Dec 29 19:27:28 yes and yes Dec 29 19:27:43 yes ... though I don't use emulator Dec 29 19:27:47 * AmandaC used IntelliJ for awhile on her netbook Dec 29 19:29:05 though I turn off a lot of auto completion as it interrupts my train of thought while typing out long code sequences Dec 29 19:29:29 (hardcore :P ) Dec 29 19:30:01 gorram semicolons Dec 29 19:30:05 capella: are you saying I could just install intellij free version and give it a go? Dec 29 19:30:13 and it will work out of box with android dev? Dec 29 19:30:34 yep - I was up and building in 25 mins - import my Eclipse projects nicely Dec 29 19:30:55 sounds goodieo Dec 29 19:31:19 But I switched from Ubuntu VM / Eclipse IDE to host WIN / IntelliJ so I had to re-download a few things Dec 29 19:31:31 (slowed me up) Dec 29 19:43:49 I'm gonna give IntelliJ a go… It feels weird though since I've invested so much time learning all keyboard shortcuts etc in Eclipse Dec 29 19:56:50 capella: I have installed IntelliJ and imported an Android project. Now how do I run it? Dec 29 19:57:47 push the big green play button? Dec 29 19:57:58 aah, edit launch configs Dec 29 19:58:12 Yep - emulator or device connected? Dec 29 19:58:42 gotta set it up for the project, it'll remember after that Dec 29 19:59:18 I get hundreds of errors Dec 29 19:59:39 it doesn't generate R Dec 29 20:00:29 Imported projects contain unknown natures: com.android.ide.eclipse.adt.AndroidNature Dec 29 20:00:29 Dec 29 20:01:17 hmmm ... how'd you import that? Eclipse is mucked up in there Dec 29 20:01:23 OK I need a Module Dec 29 20:01:30 I don't have any module Dec 29 20:01:37 It is angry with me now since I didn't configure one Dec 29 20:02:04 I hadn't actually added a configuration previously Dec 29 20:02:52 capella: any idea? Dec 29 20:03:19 cant ... see ... through ... internet :P Dec 29 20:03:43 (laughs - starting my IDE) Dec 29 20:04:05 ok Dec 29 20:04:16 it's a drop down list in the run config Dec 29 20:04:20 but it's empty now Dec 29 20:04:27 I guess it should populate a list of projects? Dec 29 20:05:35 slow startup - running host WIN with Ubuntu VM up and building Firefox .... sloooooooooooowwwww Dec 29 20:06:53 ok Dec 29 20:07:36 did your build complete successfully? Dec 29 20:07:49 no Dec 29 20:07:55 I just imported an Eclipse project Dec 29 20:08:01 I dunno if I configured the sdks properly Dec 29 20:08:43 click the build button - ignore what appears to be errors in the IDE / edit panels Dec 29 20:09:15 (for now) Dec 29 20:09:28 20:58:53 Compilation completed with 100 errors and 35 warnings in 10 sec Dec 29 20:09:29 etcetc Dec 29 20:09:52 I think I need to configure an AVD and get it to generate R from the xml files Dec 29 20:10:35 I'm wondering if I have to do something for IntelliJ to understand it's an Android project Dec 29 20:10:42 Is this a project you wrote? AVD only required if you want to run with the emulator ... shouldnt affect building Dec 29 20:10:44 Did the project build in your eclipse IDE? Dec 29 20:11:21 (I should've level set these questions before we went down this path) Dec 29 20:11:38 yes I think it builds in Eclipse… lemme double check Dec 29 20:12:24 launching eclipse is slooooooow Dec 29 20:13:06 android sdk content loader takes forever Dec 29 20:15:31 I can try with a different proejct Dec 29 20:16:32 ok - ill be in and out of the rooms for the next couple hours ... checks back later Dec 29 20:16:56 Should I import project or module Dec 29 20:16:56 ok Dec 29 20:16:58 cya Dec 29 20:18:03 and ... project Dec 29 20:18:10 cya Dec 29 21:03:02 ok I got it working but I'm not super impressed Dec 29 21:09:54 is it possible to listen for a double-tap on a widget ? Dec 29 21:30:38 tibbi, GestureDetector.OnDoubleTapListener Dec 29 21:31:05 though I hate everyone who uses double taps. The main effect of double taps is delaying the recognizion of single taps, which are way more important. :-/ Dec 29 21:31:45 though in a few cases you can actually act on the single tap and the double tap without fucking up Dec 29 21:31:51 yeah. plus there's usually better ways of doing it Dec 29 21:32:15 doubletap == zoom in Dec 29 21:32:16 for me Dec 29 21:32:21 double tap to zoom is the only real use I can think of Dec 29 21:32:21 yeah Dec 29 21:33:41 even then I'd rather see tap with 2 fingers or something such take norm. The rationale is that you already use two fingers for scale, rotation, etc. operations Dec 29 21:33:50 so it'd be logical that 2-finger tap would be the default zoom changer Dec 29 21:34:01 double tap with two fingers is to zoom out Dec 29 21:34:22 the Android 4.2 "Complete action using" dialog has a perfect use of double tap. you single tap to select (then press just once or always) or you double tap as a quick way of "Just once". it doesn't delay the single tap as single tap just selects the app normally Dec 29 21:35:05 sounds like usability nightmare to me. Impossible to really discover what the double tap does, or if it is even supported. Dec 29 21:35:31 that being said a lot of people are apparently very, very impatient so they want to deal with any UI the least possible time Dec 29 21:35:37 definitely low discoverability, but it's not a necessary feature anyway as there is already the "Just Once" button Dec 29 21:35:41 ok thanks Dec 29 21:35:46 alankila, that's what it does in Google Maps anyway Dec 29 21:36:24 wait, maybe it's single tap with two fingers to zoom out. hmm Dec 29 21:36:36 kevinb: novel and clever is usually bad Dec 29 21:36:40 my phone's dead so I can't heck Dec 29 21:36:42 check* Dec 29 21:37:32 leslie: no USB cord? Dec 29 21:37:49 nope, can't find it. I have another charger but it's not usb and I cba Dec 29 21:38:08 ah Dec 29 21:38:43 I've just been using adbWireless for now Dec 29 21:39:01 heh Dec 29 21:39:10 funkbox: interfaces are usually bad, regardless of if they're novel and clever or not Dec 29 21:40:02 i dont think there is any standardization of gestures across the gestural UIs Dec 29 21:40:27 http://www.lukew.com/ff/entry.asp?1071 Dec 29 22:16:47 Hello guys.. Dec 29 22:18:42 I have some activities. like one to select category then one to select product and then one to select preferences. Dec 29 22:18:51 if user press back things seem ok Dec 29 22:19:02 but if he hits up then i get cycles Dec 29 22:29:41 this might come under "job solicitation", I guess, but I'd like to run the i2c-tools on my tablet. I've found blog posts saying it can be done, just compile them, but I don't have an android cross-compile setup yet Dec 29 22:30:00 and was wondering if anyone had one and would be willing to build some binaries that might work Dec 29 22:31:22 alternately, what's a good guide for setting up an android cross-compile setup? Dec 29 22:39:36 I have a blank activity with fragmented view. I would like to make one (or two) of thows views/displays to be listview, can some one here point me in the right direction? Dec 30 00:12:01 ok, my service starts up Pandora, or any other app, but Pandora has services that run in the background. How can my application, that started up the Pandora app be able to turn it off? Dec 30 00:13:13 I want to turn off/kill Pandora before loading the next MP3 player, or Spirit FM, or what ever other app I want to load. Dec 30 00:14:18 And for the controlling of media, how do I send keyEvents to the underlying OS??? so far I can catch keyevents, but I can't seem to send any. Dec 30 00:20:55 Wonder if the ADK has examples of the phone app to control media Dec 30 00:24:20 possilbe Dec 30 00:25:20 * Tonisius browses around google's git account Dec 30 00:26:15 * comradesven farts Dec 30 00:27:03 * capella pees a little Dec 30 00:27:30 is anyone familiar with Intent.ACTION_MEDIA_BUTTON, it appears then when I send an intent using sendOrderedBroadcast that com.sec.android.app.music.CorePlayerService is getting the intent and canceling the media request. Dec 30 00:27:58 Hmmm, that's an awkward one.. Dec 30 00:28:06 That looks like something I need for my app Dec 30 00:28:29 cbates: sounds like it should do that, so that all your media apps don't turn on at the same time Dec 30 00:28:54 cbates: if you think about it, the primary sound application should handle the media buttons, otherwise, ALL your media apps will respond to the Intent of action Dec 30 00:29:26 <_3ntr0py> hello folks Dec 30 00:29:46 which makes sense, except that com.sec.android.app.music.CorePlayerService was not the registered application in the AudioManager Dec 30 00:29:56 <_3ntr0py> how are you ? I need a bit help with launching new activity when expandview list is clicked Dec 30 00:30:33 <_3ntr0py> can anybody help me ? I was following someone's tutorial but they did not mention about how to make the sublist to open the activity when clicked Dec 30 00:30:43 <_3ntr0py> i can paste bin what I got so far Dec 30 00:30:55 cbates: hmm, interesting, this is something I will need to review too. Since I'm making a media controller/service for my IOIO board (think media center). I'm still trying to get Pandora to turn off before I load my next app (Digitally Imported Radio) Dec 30 00:31:21 <_3ntr0py> currently when I click on the sublist it gives pop out output the name of the clicked list Dec 30 00:31:49 so AudioManager handles the different apps that it can use to intercept, I recall there being an IntentServer that handles all available intents that every app can use. Dec 30 00:31:56 <_3ntr0py> I am new learner in android Dec 30 00:32:03 I saw it last night, let me see if I can find it again Dec 30 00:32:41 http://www.mkyong.com/android/how-to-open-an-url-in-androids-web-browser/ Dec 30 00:34:32 trying to figure out how com.sec.android.app.music.CorePlayerService even got the message, its register to receive ACTION_MEDIA_BUTTON of course but should not have received unless it had called AudioManger.registerMediaButtonEventReceiver Dec 30 00:38:20 was using https://github.com/corygwilliams/MediaButtons as a tutorial of a way to write a generic play/pause application. Dec 30 00:38:46 cbates: thanks! I was looking for something like that, but maybe it's hard coded to handle media if no other is registered? Dec 30 00:39:55 the interesting code is in Broadcaster.java , does the simulated play/pause etc etc Dec 30 00:41:03 maybe, I can see the event being deregister though. Dec 30 00:41:04 12-29 18:56:28.928: I/AudioService(716): AudioFocus abandonAudioFocus(): removing entry for android.media.AudioManager$42085800com.sec.android.app.music.CorePlayerService$7$420e5590 Dec 30 00:42:06 just used the "AudioManger" filter in LogCat. Dec 30 00:42:47 can see different audio apps taking control as you switch from pandora to spotify etc Dec 30 00:43:30 when I manually send the commands though com.sec.android.app.music.CorePlayerService takes control Dec 30 00:44:53 do you see when it decides to "take control"? Dec 30 00:46:18 yeah as soon as I send the intent using sendOrderedBroadcast Dec 30 00:46:40 as a note I am sending it using a widget Dec 30 00:47:09 I wonder if the base os is assuming a click sound of some sort Dec 30 00:47:54 forget it, I only see it when I send a play/pause action Dec 30 00:48:11 other actions don't cause the media control to be taken Dec 30 00:48:22 Hmm, because nothing is playing I'm assuming Dec 30 00:48:44 You're heading into territory I will be dealing with this coming week. Dec 30 00:49:08 I have all my app launching on my IOIO board already, I've been trying to stop music on Pandora before launding the next media player Dec 30 00:49:20 it may just work for you, this appears to be an issue with the galaxy s3 with jellybean Dec 30 00:49:24 but I wasn't able to send the media buttons. Dec 30 00:49:27 I have the same cell phone Dec 30 00:49:29 Sprint version Dec 30 00:49:39 was trying to "fix" it for fun Dec 30 00:49:57 I have 3 S3's one with CM10.2, CM10, Sprint Stock Dec 30 00:50:15 I'm also testing with HTC Evo, Evo 3d, and HTC Hero Dec 30 00:50:21 CM10 will probably work Dec 30 00:50:30 I suspect its something samsung did Dec 30 00:50:44 and wow thats a lot of phones Dec 30 00:50:47 It is possible, the audio stack is very different from what I've learned. Dec 30 00:51:11 I upgraded the HTC evo, Evo3d, and HTC hero to the S3s (3 phone lines on my account) Dec 30 00:51:28 since I pay all the bills in the family, I decided to stay with the S3s, and let the family use the older versions Dec 30 00:51:41 but I test with them at night, while they sleep Dec 30 00:51:43 lol, thats a good way to do it Dec 30 00:52:08 The CM10.2 is the only one with cell access, the other two are just wifi phones Dec 30 00:52:10 stealing their phones to wipe and play with roms? :P Dec 30 00:52:18 no, they all haveCM7 Dec 30 00:52:22 I see Dec 30 00:52:22 the HTC phones Dec 30 00:52:30 but I like the fact they have FM radio's on them Dec 30 00:52:40 heh Dec 30 00:52:44 :-) Dec 30 00:53:07 and I ultimately want to embed the HTC phone into my IOIO board and have it all integrated with bluetooth when I decided to hand over an S3 to my girlfriend when I decided to do that Dec 30 00:53:18 so, I'm trying to switch apps, but killing them doesn't work Dec 30 00:53:46 I've tried killing them by PIDs, iterating over all processes with the package name of com.pandora.android, but it wont stop the damned music Dec 30 00:53:53 if you register as a media app you can take control that way Dec 30 00:54:10 so, I was thinking, hit the media stop button via service broadcast, then kill the processes, wait 100ms, and launch the app that was requested Dec 30 00:54:20 hmmm Dec 30 00:54:28 the apps should kill themselves Dec 30 00:54:39 its pretty common for anther media app to start playing Dec 30 00:54:45 cbates, that makes sense... play a single sound, and don't release? Dec 30 00:55:06 switching from podcaster to spotify for example Dec 30 00:55:08 I was trying to fgure out how it did that. Dec 30 00:55:36 or just register as the primary Dec 30 00:55:38 for some reason, Digitally imported's radio wont stop playing the last running media player, unless it's the only one, must be a programming issue then Dec 30 00:55:43 and don't play anything Dec 30 00:55:47 ok Dec 30 00:55:53 spotify kills other apps? Dec 30 00:55:58 registerMediaButtonEventReceiver Dec 30 00:56:09 I mean stops other media apps? Dec 30 00:56:19 not directly just takes over as the main media app Dec 30 00:56:24 I'll download that on my lab phones, and switch to that. Dec 30 00:56:27 the other apps should kill themselfs Dec 30 00:56:51 if they are "good" media apps that is ;-) Dec 30 00:57:13 https://sphotos-a.xx.fbcdn.net/hphotos-ash4/470672_4998933051439_463957763_o.jpg <--- Dec 30 00:57:56 so far, playing around with tone control, volume control, and the 3rd knob is supposed to be scrolling, but I have yet to figure out how to control like a HID device via a service Dec 30 00:57:57 thats a serious toy Dec 30 00:58:21 http://www.adafruit.com/products/885 <-- using this Dec 30 00:58:37 right now, just working on buttons, and application handling Dec 30 00:58:50 yeah volume etc is pretty straight forward, its the play/pause thats tricky Dec 30 00:59:11 I may go low level when I decided to physically tear down an HTC Hero, or the Evo Dec 30 00:59:12 don't know what the audio manager doesn't have control of that Dec 30 00:59:35 I wish it was straightforward, like volume, technicallym it should be in the same control Dec 30 00:59:56 just telling the MediaManager to stop all and take full focus, which is what I wanted to do Dec 30 01:00:17 stopping I have working Dec 30 01:00:25 its the starting again thats killing me Dec 30 01:00:35 launch the app you want, and then hit play? Dec 30 01:00:48 wait a few ms, then hit the play audio button? Dec 30 01:01:25 trying to make universal media controls. the eventual goal is to add the controls to the notification bar Dec 30 01:01:44 hmmm Dec 30 01:01:49 you mean the notification drawer? Dec 30 01:01:55 like most other apps already do? Dec 30 01:02:14 I'm trying to extend the ViewPager class in order to override onDraw and onTouch, but I'm getting an exception, "Unable to start activity ... error inflating class" Dec 30 01:02:22 that seems... bad, since the Google Play, PowerAmp, and any decent media player already includes media control in the notification area Dec 30 01:03:50 yeah except the 2 use spotify and pocket cast Dec 30 01:04:35 its mostly a hello world app really Dec 30 01:05:52 so I have FragmentPagerAdapter with two ListFragments in my activity Dec 30 01:06:08 for some reason, when I rotate the screen, my app crashes Dec 30 01:06:11 ttyl, have to run Dec 30 01:06:21 cbates: don't slip on the ice! Dec 30 01:06:42 any ideas why a rotation would make this crash? Dec 30 01:07:11 Any ideas why I would get this error? Here's the full output: http://pastebin.ca/2297900 Dec 30 01:12:11 hello guys Dec 30 01:12:18 where can i create ids.xml file? Dec 30 01:14:09 hey, can someone point me to a good explanation of these contentresolver URIs? Dec 30 01:14:24 in my head they're just tables, but then after that it doesnt make sense, because they'd have to be huuuuge tables... Dec 30 01:16:12 why would they have to be huge? Dec 30 01:28:01 I've a question regarding types. I was wondering why "unsigned long" is being used in lieu of "addr_t", specifically in '/kernel/drivers/char/random.c' Dec 30 01:29:18 e.g., the function "randomize_range()" Dec 30 01:31:39 well, i just dont understand why like ContactsContract.Data.CONTENT_URI can contain all sorts of things Dec 30 01:31:44 like name, number Dec 30 01:32:13 group Dec 30 01:32:13 etc Dec 30 01:42:58 <_3ntr0py> hello folks Dec 30 01:43:21 <_3ntr0py> can anybody help me with expandablelistview issue Dec 30 01:43:46 <_3ntr0py> I am following tutorial, but they don't mentioned how to start an activity via child menu Dec 30 01:43:58 <_3ntr0py> I can post the pastebin Dec 30 01:44:00 <_3ntr0py> thanks Dec 30 01:44:40 <_3ntr0py> right now I can get the group list and child list to appear but I can't get the new activity to start when clicked Dec 30 01:51:19 bah, i just made a stupid mistake, my class constructors weren't public Dec 30 01:53:24 jstream: doesn't the error yell at you about it not being public? The one that spews all over LogCat Dec 30 01:53:30 <[z0rt]> I've a question regarding types. I was wondering why "unsigned long" is being used in lieu of "addr_t", specifically in '/kernel/drivers/char/random.c' Dec 30 01:54:13 <[z0rt]> e.g., the function "randomize_range() Dec 30 01:54:32 [z0rt]: no clue, but I don't see what that has to do with application development? Dec 30 01:54:48 <[z0rt]> *sorry for that re-paste, the text was garbled earlier* Dec 30 01:55:08 <[z0rt]> I thought this chan was for any development regarding android Dec 30 01:55:33 * AmandaC shrugs Dec 30 01:56:02 <[z0rt]> am I mistaken? If so, sorry Dec 30 01:56:14 no clue Dec 30 01:56:21 rotation is causing my app to crash. Dec 30 01:56:25 heh - C is sill android :p Dec 30 01:56:37 I'm not sure why. What happens when the screen rotates? Dec 30 01:56:46 I can't figure out why my fragments aren't recreated Dec 30 01:57:15 AmandaC: No, it doesn't say anything about the constructor being public, http://pastebin.ca/2297900 FWIW Dec 30 01:57:56 jstream: it must be a lint error I'm thinking of Dec 30 01:59:54 ... or maybe I'm thinking of inflating fragments? Dec 30 01:59:57 * AmandaC shrugs Dec 30 02:00:03 * AmandaC is too dazed to think Dec 30 02:06:20 I'm curious about using the NDK Dec 30 02:06:30 does that mean I can write an app using Qt? Dec 30 02:07:58 I don't think that's the purpose of it, no Dec 30 02:08:22 certainly not any of the UI stuff Dec 30 02:08:31 <[z0rt]> ^ Dec 30 02:15:30 the NDK is basically for OpenGL games, as far as I can tell Dec 30 02:16:44 <[z0rt]> the ndk is pretty much for writing complex and process-intense algorithms in C to speed things up Dec 30 02:17:26 which is to say it's unnecessary for the most part Dec 30 02:18:02 Hi Dec 30 02:18:09 <[z0rt]> you could put it that way, I guess Dec 30 02:19:56 Anyone need help Dec 30 02:20:35 I have a 'standards' question: If I am using FragmentActivities and Fragments, should I keep to using it all the time and never use a regular Activity?. My example would be the GTALK app how you have a full chat up, and when you click "Add Friend", it takes you to a new activity Dec 30 02:25:42 Personally, I use Activities/FragmentActivities for change of context. Though you're moving about fragments within one activity, you're doing that to display data and usually the same data differently. Dec 30 02:27:08 That's always subject to change though. Take a tabbed action bar activity with multiple fragments. Dec 30 02:31:06 "In general, you should only use the NDK if it is essential to your app—never because you simply prefer to program in C/C++." I think that excessively subjective. Dec 30 02:32:48 <[z0rt]> there's always renderscript =) http://developer.android.com/guide/topics/renderscript/advanced.html Dec 30 02:58:41 RubyPanther: If you knew the platform, you'd know how much you say goodbye to when you choose c/c++ Dec 30 02:59:16 I'm trying to create an async task that will make http requests Dec 30 02:59:29 the java parts? Dec 30 02:59:40 the examples I see seem more complicated than what I need Dec 30 02:59:57 is there anything wrong with creating an URL object and calling url.openStream()? **** ENDING LOGGING AT Sun Dec 30 02:59:59 2012