**** BEGIN LOGGING AT Wed Oct 30 02:59:58 2013 Oct 30 03:00:05 I didn't wait for the N5 b/c it's not coming to verizon - and as much as I hate them, they're the only carrier with reasonable coverage at my house Oct 30 03:05:06 dragorn: cant you just buy one > Oct 30 03:05:09 without carrier ? Oct 30 03:05:27 nexus 5 … doubt will be sold with any carrier in the UK Oct 30 03:05:45 StingRay_: i could, but not as a daily driver, and I've already got other modern nexus devices for 4.4 Oct 30 03:05:49 and never would pay carrier subs % if I want a phone Oct 30 03:06:44 if you're not buying it to be a phone, I don't see that the n5 offers much as a dev-only platform that you don't get from existing devices. as a phone, it might be awesome, but not for me Oct 30 03:07:13 maybe, but speed increase is always a good thing for testing I would think Oct 30 03:07:17 do think rather Oct 30 03:07:27 StingRay_: N4 was sold with few carriers in UK, although it was mostly online sales Oct 30 03:07:59 StingRay_: I'd say the obvious - of course the fastest hardware out there will run something pretty well. I'm more concerned about the median tho Oct 30 03:08:36 p_l: never seen it ?? how odd Oct 30 03:08:37 s/obvious/opposite/ Oct 30 03:08:40 sold by who ? Oct 30 03:09:22 anyhow, it's a fine phone I'm sure, but I live in the middle of nowhere. Verizon serves LTE, everyone else drops off entirely about 2 miles from my house :P Oct 30 03:09:24 StingRay_: carphone warehouse afaik had it with tmobile, I think. There definitely were carrier subsidies for Galaxy Nexus, iirc Oct 30 03:09:53 galaxy nexus yeah Oct 30 03:10:02 not seen any phones after that though Oct 30 03:10:12 nexus 4 etc Oct 30 03:10:47 I think I mainly seen them in either carphone warehouse or phones4u, so there... Also, consider the crazy supply chain issues with N4 Oct 30 03:21:30 http://imgbin.org/images/15515.gif Why google's singleTask activity works as expected Oct 30 03:28:38 <^cheeky> maven_: hey, umm how did you create that .. screen shot, if you don't mind me asking Oct 30 03:29:22 <^cheeky> http://www.youtube.com/watch?v=u8PzkGM60Lc Oct 30 03:45:53 ^cheeky: I use a gif recorder Oct 30 03:50:04 if im just startingout, what's better to learn with? adt or idea? Oct 30 03:50:26 i notice adt has more tutorials focused on it but idea is more ser friendly Oct 30 03:50:56 you mean Android Studio or Eclipse right ? Oct 30 03:52:10 intellij Oct 30 03:52:16 or eclipse hmm Oct 30 03:52:26 i havent looked into android studio too much Oct 30 04:01:30 android put out a version of android relabeled ADT; and then they put out a version of intellij called Android Studio Oct 30 04:01:51 I havent gone too far into it, but i dont know the difference between the android versions, and their original counterparts Oct 30 04:05:47 Hi android studio use the gradle as the build tool which make it VERY slow to run you app during the development, I can not understand why google use this f**k manner? Oct 30 04:06:12 android studio uses what you want Oct 30 04:06:20 ant maven gradle Oct 30 04:06:36 and no, I doubt gradle is slow (I use android studio ANT still ) Oct 30 04:13:24 StingRay_: but the gradle is the default build tool. Can this be changed? Oct 30 04:15:08 well if I'm using android studio, and ant is my build process, what do you think ? ;) Oct 30 04:18:06 Which studio version are you using? Oct 30 04:18:38 0.3.0 Oct 30 04:21:34 :( In fact, I like gradle rather than maven and ant, But when do android app dev using elcipse ADT plugin, once you hit the `run as android application` button, the `device choose dialog` will show up soon(no more than 2 seconds), but now when using gradle, after I click the `run` button, the gradle build process will take almost 5-6 seconds, the `device choose dialog` will show until then. Oct 30 04:21:55 I am using 0.3.0 too, so I wonder if I miss anything? Oct 30 04:24:52 how does one read error log on the device, from command line on your pc? Oct 30 04:25:19 my app crashes on launch, but I'd like more than just "unfortunately, has stopped" Oct 30 04:27:41 rurufufuss what ide are you using Oct 30 04:27:54 seand: command line on linux, not using IDE Oct 30 04:28:16 logcat seems to print a lot of unrelated logs Oct 30 04:28:35 why aren't you using an ide Oct 30 04:28:55 rurufufuss: what is your app doing ? Oct 30 04:29:02 StingRay_: crashing Oct 30 04:29:09 StingRay_: running the NDK hello-gl2 Oct 30 04:29:32 with some linked libraries, which I presume is causing the crash Oct 30 04:30:01 but knowing how to read logs from apps would be pretty important in the long term, I'm guessing Oct 30 04:38:11 hmm i seem to be missing some basic maths skills Oct 30 04:38:40 see this is what I get for being a designer, and where I fall all the time, i used to go for a smoke at school rather than go into maths Oct 30 04:38:43 ugh! Oct 30 04:40:00 * StingRay_ needs a time machine Oct 30 04:40:03 let me guess, gamedev and 3D? Oct 30 04:40:15 what me ? now ? Oct 30 04:40:16 no Oct 30 04:40:28 what makes you complain about math skills then? Oct 30 04:40:46 rolling a seekbar with custom ranges Oct 30 04:40:54 and lack of maths skills Oct 30 04:40:55 :) Oct 30 04:41:02 UI maths eh Oct 30 04:41:11 well no, basic maths Oct 30 04:50:39 i went to 'refactor-> move' to move my project and now there is an issue with the path of android dependencies Oct 30 04:50:46 how do i edit the libs path? Oct 30 04:53:51 dont you just do it in project structure ? Oct 30 04:54:01 ok going to have to ask maths 101 here Oct 30 04:54:15 I appologise of my amazing lack of basic math Oct 30 04:54:48 how do it get 50% of between -500 to 1500 ? Oct 30 04:55:12 or 50% of min to max so to speak Oct 30 04:55:36 min+((max-min)*0.5) Oct 30 04:57:37 or maybe just (a+b) * 0.5? Oct 30 04:59:04 Leeds: erm, not sure that works Oct 30 05:00:07 as in my slider reporting 100% is 1000 rather than 1500 Oct 30 05:01:46 cause min could be negative Oct 30 05:01:55 depends if you want the midpoint, or half the difference... meh, lunchtime Oct 30 05:02:18 well with 50% I was wanting the mid point Oct 30 05:02:32 between -500 to 1500 Oct 30 05:02:52 float interpolate(float factor, float a, float b) { return a * (1.0f - factor) + b * (factor); } Oct 30 05:03:10 feed 0.5 in factor, -500 in a, and 1500 in b, and you're done Oct 30 05:08:57 rurufufuss: I must be dense cause that still gives me wrong result Oct 30 05:09:00 hmmm Oct 30 05:09:20 then it's something else in your code I guess Oct 30 05:23:04 ah yes, me being very dense Oct 30 05:23:08 thanks :) Oct 30 05:39:03 hi all, trying to write a udev rule for my device, but its not in the list, its jetway which USB vendor id should i be using? thanks in advance Oct 30 05:41:19 meadhikari: you should look at lsusb to tell you Oct 30 05:43:38 Leeds, thanks got a id from there Oct 30 05:53:50 <^cheeky> ello o/ Oct 30 05:56:38 <^cheeky> every install of android studio .3.0 is corrupt on my mac , it keeps saying it dirty to move to the trash can Oct 30 05:57:25 <^cheeky> anywhere i can download a previous release Oct 30 06:04:32 <^cheeky> nvm Oct 30 06:04:47 <^cheeky> so its macs settings XD Oct 30 06:43:57 What is the best practice in android to take images and load them again in a gallery later to get correct rotation of them Oct 30 06:44:16 afaik exif data only works on some devices Oct 30 06:44:43 or maybe rotating before saving with using sensor direction Oct 30 06:48:36 http://developer.android.com/training/camera/photobasics.html doesnt mention rotation or orientation at all Oct 30 07:04:09 morning all Oct 30 07:06:04 morning Oct 30 07:06:13 still early for many here i guess, little activity Oct 30 07:13:11 Any idea why a nine patch might be "ignoring" the rightmost line of the image? Oct 30 07:15:13 besides AndroidRuntime in logcat, is there anything else that might be worth paying attention to? Oct 30 07:15:22 when debugging your apps, as in Oct 30 07:19:08 Hi All, is there a sample code to list gmail messages? Oct 30 07:24:43 gavilan2: tested the 9-patch in the sdk program? Oct 30 07:28:22 when you do printf/cout in the NDK, where does that text go? any way to make it appear in logcat? Oct 30 07:31:02 found it, looks like you have to redirect stdio Oct 30 07:32:36 anyone awake Oct 30 07:32:38 ?? Oct 30 07:32:44 yes Oct 30 07:33:03 sup Oct 30 08:10:44 Hi there! Oct 30 08:11:22 Is it possible to set the default theme for all XML layouts opened in the Graphical Layout editor in Eclispe? Oct 30 08:11:54 i.e., when I open a new XML layout file, it always selects the same stupid defaults... Oct 30 08:27:18 hi everyone :) Oct 30 08:37:42 Any ideas to handle USB accessories between multiple apps, but with exclusive of the accessory? Oct 30 08:38:29 Any ideas how to handle USB accessories between multiple apps, but with exclusive usage of the accessory? Oct 30 08:42:56 ^cheeky: There's 0.3.1 Oct 30 08:47:28 hello guys is it possible to launch a private app in google play Oct 30 08:47:30 ?> Oct 30 08:53:26 you can release beta apps Oct 30 09:11:17 I think you can restrict apps to a Gapps organisation Oct 30 09:12:55 https://www.dropbox.com/s/el1klj5952qoy0p/Screenshot%202013-10-30%2009.12.40.png <-- That's the option Oct 30 09:14:43 hi, all , how to disable a 3g data connection? does have an api for that ? Oct 30 09:20:26 no api for that Oct 30 09:54:28 hi! can't make /mnt/sdcard writible for others - chmod o+w /mnt/sdcard, it says: Bad mode Oct 30 09:55:13 on android emulator Oct 30 09:55:43 version of android 4.1 Oct 30 09:56:09 you shouldn't need to, AFAIK Oct 30 09:57:02 oles: try using numeric values Oct 30 09:59:38 lamedude, in this case no error displayed but permission is not granted Oct 30 10:00:03 oles: what's strace -f saying? Oct 30 10:00:28 you can alternatively try sth like 'busybox chmod'... and first of all, take a look at the sources of your android. perhaps someone crippled your chmod Oct 30 10:01:05 I discovered fbset to have some of its crucial capabilities cut out from the source in my case and had to reinstate them by hand Oct 30 10:01:21 um... busybox isn't part of android Oct 30 10:03:30 lamedude, http://pastebin.com/ARzrBPH6 Oct 30 10:04:31 oles: if you're using an AVD built by the SDK tools, which has an SD image, it should be accessible to all apps Oct 30 10:05:08 im using AOSP build Oct 30 10:05:18 why? Oct 30 10:05:36 i need patched framework Oct 30 10:05:44 for writing apps? Oct 30 10:06:08 oles: the chmod() syscall appears to have succeeded. you can briefly try chmod -R but I doubt this will help. I'd set a breakpoint on the chmod syscall implementation in the kernel :) Oct 30 10:07:34 lamedude, but ls -ld still says me that others don't have any permissions to write Oct 30 10:08:34 it's conceivable that some system component running in the background kicks in and restores permissions to their pristine state Oct 30 10:08:58 in your place, I'd check the output of logcat. Oct 30 10:10:05 lamedude, logcat shows no activity when i'm doing chmod Oct 30 10:10:07 or maybe it's mounted in a way that precludes write permissions Oct 30 10:10:33 i remounted it in rw mode Oct 30 10:11:49 oles: do you have android built in debug mode by any chance? Oct 30 10:12:10 lamedude, full-eng Oct 30 10:13:08 I always set everything to 'debug'. without it, I've been having plenty of issues difficult to resolve Oct 30 10:13:12 lamedude, i cat rebuild it however Oct 30 10:13:35 can* Oct 30 10:13:40 whats the best way to get phone orientation in android(not screen) Oct 30 10:13:44 oles: you could give some consideration to adding options such as kgdb, kprobes, symbols, debug, frame_pointer and the likes to the kernel Oct 30 10:13:56 sysrq Oct 30 10:15:03 lamedude, thx, are here any man or howto on it? Oct 30 10:17:02 oles: I didn't use one myself. either I built the kernel in a linux-like fashion. or took advantage of the linaro's build system which involved "mm android_kernel" (earlier I appended my kernel options to some .config/*.conf file or elsewhere, take a glance at the makefiles seems crucial at this point) Oct 30 10:17:24 taking* a glance Oct 30 10:24:08 lamedude, ok, thx :) Oct 30 10:24:45 oles: I can vaguely recall sth like 'mount -o umask=' as well Oct 30 10:25:00 it's possible that android imposes some extra restrictions on the sdcard mountpoint Oct 30 10:27:55 Hello. Anybody using jshybugger on android-sims? Oct 30 10:29:27 oles: hey! is this mountpoint a filesystem that supports permissions at all? :) Oct 30 10:32:27 either way, I'd take a look at your chmod command source, and the next in line would be the kernel's internal implementation (try grepping for the pattern SYSCALL_DEFINE*chmod) Oct 30 10:33:37 oles: perhaps someone more knowledgeable about android will come forward here later :) there might be a simpler approach to adopt in order to debug this Oct 30 10:34:31 but having everything in debug mode is probably bound to prove beneficial in the long run anyway Oct 30 10:35:10 lamedude, sdcard.img was made using sdk, fs if vfat Oct 30 10:36:29 is* Oct 30 10:43:43 oles: you could take a look at ./system/core/sdcard/sdcard.c Oct 30 10:46:30 oles: I find it quite informative Oct 30 10:49:08 lamedude, ohh i see, thanks! Oct 30 10:49:43 anyone knows how to share a local picture (took with camera) with Facebook? using FacebookDialog Oct 30 10:56:32 hi all Oct 30 10:57:49 I am trying to run a thread. there is no any error when I issue thread.start() but the thread is not actually running. anything new with threads in android? Oct 30 10:58:04 JuiceSSH, http://screencloud.net/v/w4X I don't have option like this Oct 30 11:19:13 is it possible to keep the view as it is on rotation, but only rotate for example a button Oct 30 11:24:51 Onack: what exactly do you want to do? Oct 30 11:25:05 leave the View in portrait? Oct 30 11:26:08 its a camera preview, so the display is showing what it should, but i want to have onOrientationChange give the correct orientation of the phone so i can rotate the buttons Oct 30 11:26:36 when i rotate the phone now the whole view is recreated with a second delay Oct 30 11:27:35 was reading about android:configChanges="orientation" in manifest, but it doesnt seem to do anything Oct 30 11:27:38 http://devnull-as-a-service.com/ *SNRK* Oct 30 11:28:22 Onack: you can force it to be a landscape from the begining Oct 30 11:28:33 which is what I would do with a camera preview Oct 30 11:30:26 thin i found something, gonna use the onSensorChanged event to rotate buttons Oct 30 11:30:43 i have a contextmenu though i think will come out wrong Oct 30 11:31:27 have you tried orientation|screenSize Oct 30 11:31:36 instead of just orientation Oct 30 11:33:03 wow thats way better Oct 30 11:33:04 and faster Oct 30 11:34:57 p_l: foaas.com Oct 30 11:36:10 tagrudev: Interesting - I wonder if i've previously linked our google dev account with our google apps domain or something Oct 30 11:36:37 that's the reason Oct 30 12:20:27 any of you have one of these> http://devicelab.vanamco.com/ Oct 30 12:29:49 the widget of the app isnt being removed from the homescreen after deletion of the App, dev fault or android? Oct 30 12:34:06 SrRaven-work, that should be an android problem Oct 30 12:34:21 are you sure you removed the right app? Oct 30 12:34:24 yes Oct 30 12:34:39 SrRaven-work, which Android version? Device? Oct 30 12:35:10 oh nvm it was herping derping Oct 30 12:35:11 :D Oct 30 12:37:03 if I have a tablet and in my res i have a drawable-large, and also some drawable-xhdpi, if the large is missing the icon, will it be taken from the chdpi? Oct 30 12:38:28 what is preferred by the system? screensize or resolution? Oct 30 12:39:05 [A3G1S]: ? Oct 30 12:39:07 sup Oct 30 12:39:13 <[A3G1S]> o/ hi Oct 30 12:39:31 <[A3G1S]> working on a project Oct 30 12:39:34 * [A3G1S] in office Oct 30 12:39:37 <[A3G1S]> hbu ? Oct 30 12:41:54 I'm fine I guess Oct 30 12:42:07 we started working in an efficient way Oct 30 12:42:09 thank god Oct 30 12:42:17 [A3G1S]: have you seen my question? Oct 30 12:42:29 <[A3G1S]> checking Oct 30 12:43:50 <[A3G1S]> i have a drawable-large, and also some drawable-xhdpi, if the large is missing the icon, will it be taken from the xhdpi*? Oct 30 12:44:02 <[A3G1S]> u meant xhdpi rite ? Oct 30 12:44:23 <[A3G1S]> what is preferred by the system? screensize or resolution? <-- if you ask me then resolution Oct 30 12:44:35 <[A3G1S]> but better get confirmation on this Oct 30 12:46:56 hmmmm Oct 30 12:47:02 that's what I came here for Oct 30 12:47:04 O_O Oct 30 12:47:11 where will I get confirmation for this?! Oct 30 12:47:14 You wouldn't put drawables in drawable-large anyway Oct 30 12:47:27 <[A3G1S]> yes Oct 30 12:47:34 <[A3G1S]> drawable-xhdpi Oct 30 12:47:38 explanation? Oct 30 12:47:38 <[A3G1S]> drawable-hdpi Oct 30 12:47:42 <[A3G1S]> drawable-mdpi Oct 30 12:47:45 <[A3G1S]> drawable-ldpi Oct 30 12:47:50 so what's the large for?! Oct 30 12:47:50 <[A3G1S]> check these Oct 30 12:48:00 <[A3G1S]> i never used large Oct 30 12:48:08 <[A3G1S]> just these ^^ Oct 30 12:48:15 large is for stuff that's dependant on screen size.. Like layouts Oct 30 12:48:34 it's for trying to differentiate tablets and phones Oct 30 12:48:44 we need the tablet drawables to be 60% bigger Oct 30 12:48:48 product... Oct 30 12:49:00 If you want different drawables on tablets, you provide drawable-large-mdpi, -large-hdpi, -large-xhdpi, etc Oct 30 12:49:03 Like usual Oct 30 12:49:09 damn! Oct 30 12:49:19 it's too much data for me Oct 30 12:49:24 I don't wanna!!! Oct 30 12:49:53 <[A3G1S]> but thats the proper way Oct 30 12:53:13 well... Oct 30 12:53:16 ok..... Oct 30 12:53:17 :S Oct 30 12:53:27 thepoosh, http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch Oct 30 12:53:38 Mavrik: thanks! Oct 30 12:53:57 here is my tribute! http://imgur.com/gallery/qpuGJa3 Oct 30 12:55:58 thepoosh: Also. Go through the tutorials: http://developer.android.com/training/basics/supporting-devices/screens.html Oct 30 12:56:10 kk Oct 30 12:56:12 thanks Oct 30 12:56:21 I usually do the backend side of our apps Oct 30 12:56:22 thepoosh: and best practices: http://developer.android.com/training/multiscreen/index.html Oct 30 12:56:32 but I now have ownership on a UI feature Oct 30 12:56:37 hate those... Oct 30 12:56:58 me too. I have never liked coding GUIs. Oct 30 12:57:43 I don't really understand it Oct 30 12:58:01 where I love dealing with concurrency, DB and server stuff Oct 30 12:58:11 we have a guy here who loves custom UI Oct 30 12:58:14 and creating it Oct 30 12:58:20 I just lack the feel for it Oct 30 12:58:38 I love manipulating the system to do what I want it to Oct 30 12:59:22 same here, although I prefer lowlevel stuff; AVR, PICC, low-memor/low-cpu constraints, etc. Oct 30 13:00:20 never dealt with stuff lower than dalvik Oct 30 13:00:24 I mean Java Oct 30 13:00:42 ok. Oct 30 13:00:46 I will eventually want to learn the lower levels of Android Oct 30 13:02:14 Anyone used the USB host API? Oct 30 13:09:27 anybody using jshybugger to debug WebView apps? Oct 30 13:09:35 *html5 Apps Oct 30 13:11:40 xored: are you wirting this as part of an IDE such as Corona or Phonegap? Oct 30 13:12:09 thepoosh: yes Oct 30 13:13:05 which one? Oct 30 13:13:17 does it have a testing mechanism? Oct 30 13:32:13 doing layouts takes up 90% of my time writing apps Oct 30 13:32:16 it's so terrible. Oct 30 13:33:35 can you use eclipse to debug on the emulated device Oct 30 13:33:48 if i'm not supposed to, then thats that. Oct 30 13:33:50 i'll stop trying Oct 30 13:33:50 wmealing: it doesn't work that way Oct 30 13:34:02 right, well.. thats that Oct 30 13:40:52 what is inside "Sdk tools, sdk platform tools, sdk build tools" that it allow to create app ? Oct 30 13:41:40 I mean "Build Tools" are specifically to "compile" java code and pack it to "apk" Right> Oct 30 13:41:41 ? Oct 30 13:52:45 thepoosh: cordova 3.1.0 and now, it does not. Oct 30 13:53:12 wmealing: you can for native apps, you cant for html5 apps. And console.log is not debugging if you mean adb logcat Oct 30 14:03:22 in a ViewPager, if i do setCurrentItem(0), i get a blank screen Oct 30 14:04:09 this happens when a currentItem != 0 is being shown Oct 30 14:04:45 when the viewPager is shown the first time, item 0 shows OK, and in "normal navigation" too Oct 30 14:26:29 bluesm_: http://developer.android.com/tools/building/index.html Oct 30 14:26:46 also look in the tools/ant/build.xml file for the nitty gritty details Oct 30 14:29:15 what is different about an android APK package when copmared with a regular java package? Oct 30 14:29:29 target vm Oct 30 14:29:33 for one Oct 30 14:29:44 i.e. jar vs apk Oct 30 14:29:59 apk is a jar with more metadata Oct 30 14:30:22 google the structure of an apk file Oct 30 14:30:39 googling as we speak :) Oct 30 14:32:53 jasabella: wikipedia seems to have a nice breakdown of it: http://en.wikipedia.org/wiki/APK_(file_format)#Contents Oct 30 14:33:07 im reading :) Oct 30 14:44:11 ohnoes stackoverflow broken what will i do Oct 30 14:44:50 i heard quora is pretty good *sniggers* Oct 30 14:44:53 Start writing your own code? :p Oct 30 14:45:03 or expert sex change Oct 30 14:45:25 i have a fragment inside actionbar tab, when i rotate, oncreateview is called multiple times. is this supposed to happen? Oct 30 14:46:25 No, you have multiple instances of that fragment attached Oct 30 14:47:39 make sure you only call add once on your fragment manager, and check if the fragment is already attached before calling add Oct 30 14:47:41 isn't it a public holiday when SO goes down? Oct 30 14:48:09 yeah it's broken osxorgate lol Oct 30 14:48:27 i like their error images. Oct 30 14:48:46 looks up for me? Oct 30 14:49:08 hm the view hierarchy shows only 1 fragment though Oct 30 14:49:15 yeah, it's working again. Oct 30 14:49:46 is there a guide somewhere which explains what all the folders in package explorer are for? :) Oct 30 14:49:54 some are obvious Oct 30 14:49:56 others arent so much Oct 30 14:49:58 (im new) Oct 30 14:51:24 jasabella: you mean inside root? Oct 30 14:51:39 the / directory, that is Oct 30 14:51:51 im in adt Oct 30 14:52:13 which package explorer are we talking about? Oct 30 14:52:19 adt Oct 30 14:52:35 adt is not an explorer of any sort... Oct 30 14:52:50 well, you could launch a shell with adb... Oct 30 14:53:34 couple dozen folder :/ Oct 30 14:53:48 gimme an example Oct 30 14:54:13 values_v14 Oct 30 14:54:43 you mean about organizing the app's files? Oct 30 14:54:53 yup Oct 30 14:56:10 it's very similar to a "regular" java project. src/ has the app's source files (essentially, code). libs/ contain the libraries that you app uses. Oct 30 14:56:42 bin/ contains the binary files that are built. Oct 30 14:57:10 res/ contains resource files for the app. Oct 30 14:57:52 thanks fellas, i indeed needed to check if the fragment was not there already.. the activity just remade the tags and accompanying tablisteners Oct 30 14:58:03 more android specific stuff is the gen/ dir which contains some automatically generated classes that the app utilizes and there is a way resource files are organized. Oct 30 14:58:47 hi, i have a PrefActivity, the key i have stores an Integer, but when the PrefActivity try to start i receive ClassCastException, java.lang.Integer to java.lang.String Oct 30 14:59:02 jasabella: res/drawable-* contain the drawables (big surprise). the suffix (e.g. hdpi) means what screen it is intended for. Oct 30 14:59:13 i cannot have a shared pref with Integer values ? with String everything works fine. Oct 30 14:59:45 jasabella: res/layout and res/menu are self-explanatory i feel. Oct 30 14:59:49 daivyk: putInt should exist for prefs editor Oct 30 15:00:53 jasabella: res/values is the generic value directory. it keeps your app's... values. if there is a suffix for the values directory's name then it says what specific devices those values apply to. Oct 30 15:01:06 CallumTaylor: inside the XML i have , what you are saying is that i need another element to handle int, is that it ? not EditTextPreference Oct 30 15:01:41 jasabella: e.g. values-v14 applies to devices that are running on api level 14 and above. Oct 30 15:02:00 jasabella: i think that's a quick rundown. anything more i should clarify? Oct 30 15:05:02 I'm not too sure about the XML side Oct 30 15:05:05 this may be useful http://kmansoft.com/2011/01/02/implementing-a-styleable-preference-for-a-list-of-integers/ Oct 30 15:05:18 or http://www.lukehorvat.com/blog/android-numberpickerdialogpreference/ Oct 30 15:07:32 Where I could find contents of @android:Theme.NoTitleBar Oct 30 15:07:57 CallumTaylor: the problem is that inside the shared prefs i have an Interget, ex.: gateway port number, this number is stored as Integer, but on the xml i am passing this key gateway_port, when i try to open the PrefActivity i get this error that cannot be casted. Oct 30 15:08:15 EditTexts use strings, not ints Oct 30 15:08:27 bluesm_: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/themes.xml Oct 30 15:08:54 one option would be to call a parseInt on it, if you know its definitely going to be an integer Oct 30 15:09:19 SimonVT: ok Oct 30 15:09:45 thx :) Oct 30 15:09:52 CallumTaylor: or stores all the prefs as String Oct 30 15:12:03 CallumTaylor: Those themes are on the device ? so if version of Android change, my App could change its look ? (I found several examples where one app have "different buttons" for different versions of android. Right ? Oct 30 15:13:39 yeah, you would have a styles.xml in different folders such as values-v11 for api 11 and above Oct 30 15:13:55 values-us for united states only etc Oct 30 15:14:11 http://developer.android.com/guide/topics/resources/providing-resources.html Oct 30 15:15:42 How can I record steaming audio data playing with media player, (as in tunein app)? Oct 30 15:26:40 HAving a project compiling for googles api. What is the difference in my project now? Oct 30 15:29:44 Hello colleagues. Oct 30 15:31:32 Q: Is it possible to turn the screen off, but still obtain touch and fling input? I'd like to read flings and taps, but keep the power consumption down, since it's supposed to be done without looking at the device. Oct 30 15:31:54 A.k.a. eyes-free remote control. Oct 30 15:32:03 Lachezar: not with official APIs, afaik Oct 30 15:32:04 it might be possible to set the brightness so low its basically off Oct 30 15:41:39 p_l: Does that mean there are 'unofficial' APIs that may help? Oct 30 15:44:21 I doubt apps would have access to anything like that Oct 30 15:44:47 Lachezar: not so much unofficial as outside android, I'd say Oct 30 15:45:24 if you have root, and know the exact details of the device, you could shutdown GPU and switch off backlight Oct 30 15:45:44 without switching off input Oct 30 15:46:19 I believe it's deliberately unsupported to avoid cases where users can't see anything on screen due to misbehaving application? Oct 30 15:49:47 p_l: I get it. Probably not a good idea in the first place. Back to FM remote control :) Oct 30 15:50:52 hello. I have 2 visual glitches with SVG pictures under 4.2.2 - the first is, a logo is not shown. the odd thing is, that there are several SVGs, all shown, but this logo is simply missing. The asset is present (e.g. shown under iOS and the browser version ). Any guesses Oct 30 15:51:46 Lachezar: the "screen disabled, cpu on" state in android also shuts off touchscreen (usually), because you do not to butt-call someone :P Oct 30 15:52:25 Lachezar: yes, it's possible, if you root the device and run a custom kernel Oct 30 15:52:29 other than that, not so much Oct 30 15:52:36 more or less what p_l said. hang on, let me find you a link. Oct 30 15:53:18 Lachezar: https://play.google.com/store/apps/details?id=me.paranoid.touchcontrolfree ... But it roots the device and puts a custom kernel on, so suuuuper sketchy and scaryt Oct 30 15:59:37 * Lachezar needed a handful of seconds to understand what a butt-call is. Oct 30 16:00:11 critically different from booty call, I take it. Oct 30 16:00:11 isn't it usually called a "butt-dial"? Oct 30 16:01:06 because we all have rotary dials on our phones :) Oct 30 16:01:27 Doh! Is there an app to emulate rotary dialer? Oct 30 16:01:35 I'm *sure* there is Oct 30 16:01:56 * Lachezar made the mistake to search for rotary dialer on Google Play... Oct 30 16:02:44 got a couple of US$200 textbooks on rotary engineering (drilling and reactors) Oct 30 16:04:00 drilling is hard business. Oct 30 16:05:18 man, riot spends so much time on creative for their website events, it's nice Oct 30 16:05:23 Not starting a flame/war here: What do you think about the Motorola modular phone? I'm pretty sure if such a thing is produced it will be Android based. Oct 30 16:05:30 hmm, I assumed reactors meant nuclear, but apparently it's a more generic term in the appropriate industry... you learn something every day :) (also, I learned the name of the last Emperor of China earlier on) Oct 30 16:05:35 http://promo.na.leagueoflegends.com/en/harrowing/ Oct 30 16:05:42 like that recent bit of website magic, it's nice Oct 30 16:06:01 I wonder what kind of android apps they could design if they were to make companion apps to the games... Oct 30 16:06:27 Lachezar: I think Android is a given... personally, I think if they do get anywhere with it, it'll be MotoMaker 2.0, rather than end-users snapping phones together - like the whole "bendable displays" thing which turned into "factory-bent" displays Oct 30 16:07:07 the idea of being able to order a phone to be built with your exact required spec is interesting, but I think there are a lot of business issues, never mind technical Oct 30 16:09:54 I also doubt the mass market would want that. I have no doubt that the type of people who frequent IRC would be interested in picking their screen and flash LEDs and whatnot, but "normal" people wouldn't. Oct 30 16:09:59 For me, I don't see the point.. It's likely going to be quite a bit more expensive than a phone with the same specs.. Probably bulkier as well Oct 30 16:10:10 Leeds: Given the fact, that Motorola is not really a top-player maybe moving to such a 'niche' might prove beneficial? Oct 30 16:10:40 there has to be a reason why they're promoting it Oct 30 16:11:28 anyway, I still think it's not really technically feasible Oct 30 16:12:43 Leeds: Reactor is also used for inductors in e.g. transmission grids Oct 30 16:12:46 i think its a cool idea for people like hackers, same with ardurinos and what not Oct 30 16:12:52 SimonVT: Considering the current phablet devices I have the feeling that a modular device can be competitive in size, and price. Oct 30 16:12:55 i don't think it'll hit off in the consumer market Oct 30 16:13:29 CallumTaylor: Who knows... Maybe once it's actually available the market will adopt it. It may even spur new businesses. Oct 30 16:13:37 maybe Oct 30 16:14:13 Honestly with the iStuff craze (mono-cock) I can see it going very niche. Oct 30 16:15:24 I would probably be OK with spending twice the price of a comparable mono-block smart phone if it looks promising. Oct 30 16:15:51 really, you'd pay over US$1000, $1500+ for a top-end phone? Oct 30 16:16:19 Leeds: Well... If it's something I can see myself using/upgrading/handling in the next 5 years, why not? Oct 30 16:16:35 you'd still be paying for the upgrades Oct 30 16:17:06 Leeds: Paying for one upgrade will (expectedly) be quite cheaper than byuing a new phone altogether. Oct 30 16:17:46 except of course those upgrade modules will have to have retail markup, and packaging, and the overhead of modular connectors, etc. Oct 30 16:18:18 Leeds: I have a HTC One X. The battery is going bad. Now I have to buy a new phone, because the battery is not (easily) replaceable. Oct 30 16:18:44 Leeds: Well. The phones go through the same retail right? Oct 30 16:18:55 yes, but you buy a unit, not parts Oct 30 16:19:15 and the limitations of a modular design. look at laptops, the ones you can upgrade yourself are bulky and get bad battery life and /never/ will be a sweet, portable machine. the ones that are unrepairable/unupgradable are really sweet machines right now. Oct 30 16:19:22 And then... Once the APIs/Connectors are visible a pleathora of Chinese Cheapies will emerge. Oct 30 16:19:33 I also have a One X, and it would be a *lot* cheaper to pay HTC to replace the battery using their tools than to buy a new phone Oct 30 16:19:34 does anyone know if any of the sample code from google io 2012 is still available? Oct 30 16:19:57 Leeds: Except that I do not have that service where I live. Oct 30 16:20:14 Lachezar: HTC have no service in your country? Oct 30 16:20:53 Leeds: Nope. Gotta give it to my carrier, if they like me I get a dumb-phone temp, and if I get lucky I will get it back in a month-two. Oct 30 16:21:26 well, that sucks... I would probably not buy a phone if I knew I couldn't get service for it - HTC here typically have a 3-4 day turnaround Oct 30 16:21:28 Leeds: But hey... I got it for free, wouldn't buy it otherwise. Oct 30 16:21:35 ah Oct 30 16:21:53 got my One for free, with service :) Oct 30 16:24:27 kevinb: Well I believe most hardware today can be made into USB peripherals. Obviously a SoC is a module itself, but there are a number of projects that show, that a /simple/ SoC can be converted to much more by adding USB peripherals. Oct 30 16:25:07 soldered down usb is still going to be a lot smaller than even the smallest of connector Oct 30 16:25:26 And the SoC removes one of the bottle-necks of PC design: the CPU-Memory-Video bridge. Oct 30 16:26:50 kevinb: True, but who's to say the 'backbone' is not a USB hub? And we're not talking USB connectors, but USB-style bus to connect the different modules. Oct 30 16:27:07 Does anyone know of any workarounds for a surfaceview violating the z-order? There's the z-buffer calls, but they dont' seem to actually fix the problem in any meaningful way. In my case, i've got a surfaceview in the base layout then an overlay (showcaseview); the surfaceview happily craps all over it and draws at the top of the buffer Oct 30 16:29:16 dragorn: SurfaceView works by basically punching a hole in your other views and drawing the surface through the hole. it's weird. API 14 introduced TextureView which behaves much more sanely Oct 30 16:30:05 kevinb: interesting; I'll check it out Oct 30 16:30:17 ultimately all I need to do is draw on a canvas in a widget Oct 30 16:30:33 so I'm not particularly in love with surfaceview per se Oct 30 16:31:04 the big disadvantage of TextureView is that it's API 14+ only Oct 30 16:31:15 and i think it has a very minor speed penalty but probably not worth worrying about Oct 30 17:15:22 kevinb: api level doesn't concern me, i'm 4.0+ only due to USB support requirements Oct 30 17:18:58 kevinb: (fortunately) Oct 30 17:22:44 Is eclipse IDE the most popular environment for dev'ing android apps? Oct 30 17:22:53 Or are there some Vim configs out there now? Oct 30 17:26:05 ADT is the branded version of eclipse that google bundles with all the necessary plugins, but android studio is the beta they will be replacing ecplise with Oct 30 17:26:09 based on intellj Oct 30 17:26:10 http://developer.android.com/sdk/index.html Oct 30 17:26:33 that being said vim with nerdtree and tagbar I think its all you need until you have to edit UI Oct 30 17:26:59 the android SDK does give you command line tools to build, run emulator, debug, check logs, etc Oct 30 17:40:04 Hey everyone. I am trying to connect a friends HTC One to my Ubuntu machine, when I do it is not recognized (adb devices, or lsusb) any suggestions would be appreciated. Oct 30 17:48:29 Hey Guys, Can you please tell me what i am doing wrong here? http://pastebin.com/7Zt46jkm. Problem: on call of clickNewCurrency(), everything is fine till postData()'s 1st 'starting' line. Oct 30 17:48:31 then nothing Oct 30 17:48:34 nothing happens Oct 30 17:49:17 Update got 10-30 23:13:17.860 8006-8006/com.mayur.exchangerate W/IInputConnectionWrapper﹕ getSelectedText on inactive InputConnection & 10-30 23:13:17.870 8006-8006/com.mayur.exchangerate W/IInputConnectionWrapper﹕ setComposingText on inactive InputConnection warning Oct 30 17:50:50 can someone take a look at my manifest file and tell me why galaxy 7.7's read as 'supported' on the developers console, but i can't install it from the play store? http://pastebin.com/Eqah9J9u Oct 30 17:51:20 what is the error when installing Oct 30 17:51:41 pfn: if you're addressing me - it just says that my device isn't supported, when trying to dl it from play Oct 30 17:52:21 pfn: are you familiar with HTC One and Ubuntu? Oct 30 17:52:25 Xtreme: if postData isn't getting called, then the exception is being caught on line 180 Oct 30 17:53:18 bjrohan, it's the same as setting up any android phone on ubuntu Oct 30 17:53:28 CallumTaylor, postdata is called. Line 140 is executed Oct 30 17:53:30 then nothing.. Oct 30 17:53:31 add the appropriate vid/pid to udev.conf or whatever it is Oct 30 17:53:35 except those two warnings.. Oct 30 17:53:39 thorecles, install it manually from adb and read logcat Oct 30 17:54:06 pfn: the problem I am having, i can get my G'Nex recognizd, but not the HTC One Oct 30 17:54:13 yawn Oct 30 17:54:16 vid/pid must be set correctly Oct 30 17:54:19 probably Oct 30 17:54:35 oh nice! Managed to sigsegv dalvik Oct 30 17:54:36 from pure java Oct 30 17:54:38 so "starting" gets logged out Oct 30 17:54:39 that's just awesome Oct 30 17:57:40 pfn, how do I set that again? Oct 30 17:57:47 udev.conf Oct 30 17:57:51 pfn: taking a look now Oct 30 18:00:19 pfn, where do I find the device number to add to the udev.conf? Oct 30 18:00:28 bjrohan, lsusb, dmesg, etc. Oct 30 18:00:45 pfn lsusb doesn't list the device :-( Oct 30 18:00:51 but it should Oct 30 18:01:02 if your device doesn't show a notification, then enable it on your device Oct 30 18:01:31 enable what? Oct 30 18:01:44 usb debugging Oct 30 18:01:45 I have USB debugging on Oct 30 18:01:55 well, your device sounds broken then Oct 30 18:01:59 or get another usb cable Oct 30 18:02:02 that is enabled, I have also rebooted the phone after enabling dev tool, USB debugging Oct 30 18:02:03 if the device doesn't show up in lsusb it's not being enumerated by the usb subsystem Oct 30 18:02:20 and something is very wrong - agreed, try another cable; is your cable charge-only? Oct 30 18:02:20 get another usb cable Oct 30 18:02:21 te phone is showing that it is charging Oct 30 18:02:28 charging isn't the same as usb connectivity Oct 30 18:02:30 get another cable Oct 30 18:03:04 BAM, new cable did it Oct 30 18:03:10 sheesh Oct 30 18:03:21 now take a pair of scissors Oct 30 18:03:25 and cut that old cable in half Oct 30 18:03:26 and throw it out :P Oct 30 18:03:28 I shall Oct 30 18:03:45 OR, put a big sticker on it that says "Trojan Magnum" and call it your USB charging condom :P Oct 30 18:04:00 wow, you can truly to some amazing memory corruption with a textureview Oct 30 18:04:16 hehehe Oct 30 18:05:09 pfn: only thing i'm seeing is "unknown permission android.permission.ACCESS_BACKGROUND_SERVICE" Oct 30 18:05:59 going to add "android:required=false" to see if that fixes Oct 30 18:06:20 I have a question about libraries. I have one a library that depends on actionbarsherlock. Now I have my project (call it PROJECT) that uses my libarary(myLib). Do I need to add actionbarsherlock and myLib to PROJECT as libraries or do I only need to add myLib because actionbarsherlock is in myLib as a library? Oct 30 18:21:10 hey guys, is there any reason why WifiManager would have an ip address of "/192.168.1.89" ? Oct 30 18:22:03 later when running this through Guava's InetAddresses.fromInteger(..) returns /89.1.168.192 .. Oct 30 18:22:53 sounds like you're endian swappign somethign you shouldn't be Oct 30 18:23:25 why do you think it shouldn't have an IP of 192.168.x.x? That's one of the reserved ranges for local natted networks - it's entirely plausible it would have such an address Oct 30 18:24:26 hello, if we have many activity, is it okay to don't make a class for it? but this activity is still capable of doing simple things? Oct 30 18:25:16 dragorn: I understand the ip is, in fact, 192.168.1.89.. but why do I get "/192.168.1.89" when looking at the WifiManager class and then "/89.1.168.192" when going through the Guava class? Oct 30 18:25:46 because you're treating it as a little endian 32bit ip block and byteswapping it in guava, when you shouldn't be Oct 30 18:25:54 and I'm not endian swapping anything, unless I should, my line looks like: return InetAddresses.fromInteger(wifiManager.getConnectionInfo().getIpAddress()).toString(); Oct 30 18:26:08 I would expect frominteger is byteswapping Oct 30 18:26:20 okay Oct 30 18:28:19 it still doesn't explain the presence of the / in the string however? Oct 30 18:28:58 i have no idea what you're doing to put a / in your string. check the docs for whatever library you're using to turn the int into a string. Oct 30 18:29:30 I'm not doing anything, like I said, WiFiManager shows that (I've looked through it with the debugger) Oct 30 18:31:29 getipaddress returns an int. You're doing something to put a slash in it. I assume something in inetaddresses.frominteger Oct 30 18:32:03 <|0xD34D|> yeah WifiManager has no method for IP and WifiInfo returns an int like dragorn mentioned Oct 30 18:32:37 again, I'm looking, with the debugger, onto WiFiManager and WiFiInfo. the Inet4Address property in WiFi info (mIpAddress) says "/192.168.1.89" Oct 30 18:32:48 It's nothing to do w/ wifimanager and everythign to do with whatever provides inetaddresses Oct 30 18:33:51 you're looking at the wrong thing then. It's an integer, network-endian, 4 bytes, each byte is an octet of the address. There is no string representation, let alone one with a /. Whatever you're using to turn that int into a string (in this case, InetAddresses.whatever) is adding a /. Look at that code. Oct 30 18:34:09 Hey guys. http://pastebin.com/wrV2HJBp should i worry about last 4 warnings? Oct 30 18:34:25 Hello, good afternoon guys. Please, i'm trying to show a dialog message before starting an activity. But it ignores the dialog message e calls the activity without showing the message. How could it wait until the user click oK to start the another activity? Oct 30 18:35:08 deleet: InetAddresses returns an IPV4Address. The code of the toString method of that is: Oct 30 18:35:14 return ((hostName != null) ? hostName : "") Oct 30 18:35:14 660 + "/" + getHostAddress(); Oct 30 18:35:31 so like I said. The library you're using to convert the integer is adding a slash. Oct 30 18:37:22 dragorn: I see what the issue is, that helped, thank you Oct 30 18:37:39 and you're right that Guava expects big endian but WifiManager returns little endian Oct 30 18:42:56 hm so tehre's some sort of additional voodoo to using a textureview I'm not understanding Oct 30 18:46:37 Hey guys, I'm seeing some extra padding on views on certain phones. Seems to happen on a "recomputePadding" call in the View class. Whats going on there? Oct 30 18:54:36 " It is a work-in-progress and it will be disabled by default. You'll be able to enable it by going to the Preferences dialog, navigate to the Compiler > Gradle page and check the box "Use in-process build"" Oct 30 18:54:46 phew, i was hoping for this Oct 30 18:55:39 if they can get AS build time to gradle command line daemon build time, that would be awesome. fast enough for me ;) Oct 30 19:04:41 http://www.stanleycolors.com/2013/10/halloween-costumes-programmers-people/ Oct 30 19:05:09 if I am on a rooted phone Oct 30 19:05:34 and I want to make a new ringtone file in default media location Oct 30 19:06:30 should I just use Java counter part of fopen et al. or I need to do some other tweaking as well to ensure that my app tells OS that it have root's access Oct 30 19:11:02 your app doesn't have root access - dalvik doesn't run as root. You'll have to invoke helpers via su for each root operation Oct 30 19:13:53 helpers, can you please elaborate or point me to some documentation dragorn Oct 30 19:16:11 root is pretty much unsupported; if you can avoid using it, avoid it. Oct 30 19:17:41 avoid requiring root at all costs Oct 30 19:18:05 you mean within your app? Oct 30 19:18:20 what else would "requiring root" mean Oct 30 19:18:22 I have embraced the rotted side :-P Oct 30 19:18:51 reading http://su.chainfire.eu/#how Oct 30 19:19:02 pfn: i don't know, hence the question. obviously Oct 30 19:27:16 Hello. I'm new to Android development, and as an exercise I'm trying to build maurycyw's StaggeredGridView (https://github.com/maurycyw/StaggeredGridViewDemo) in Android Studio, however it seems to not have the Gradle build system...is there a way to migrate it to Gradle without using Eclipse? Oct 30 19:27:38 http://sufficientlysecure.org/index.php/2013/10/29/google-play-billing-hacked/ Oct 30 19:29:42 my god this guy sounds butthurt about them not mentioning him Oct 30 19:36:16 well it would've been good for self-promotion when looking for a job Oct 30 19:42:46 i think the big news for today was NSA's MUSCULAR Oct 30 19:43:36 its bad if they did not mention him Mavrik Oct 30 19:47:39 yeah Oct 30 19:47:46 they should really have menioned it Oct 30 19:54:29 and my app idea has bee implemented by the dude who discovered the vulnerability Oct 30 19:54:34 :'( Oct 30 19:54:40 what was your app idea Oct 30 19:54:48 gotta find some new idea :-( Oct 30 19:54:52 ad blocker Oct 30 19:55:13 Looney whats an add blocker? never heard of those Oct 30 19:56:10 mock me all you can g00s, but I will soon think of another idea about which I will learn has not only been taken but implemented already Oct 30 19:56:20 that's generally the case Oct 30 19:56:25 easy problems have all been solved Oct 30 19:56:28 there is nothing new under the sun :) Oct 30 19:57:37 everything i've worked on i didn't come up myself; i just asked on reddit what apps people wanted implemented Oct 30 19:58:07 where can I ask such question, /r/showmetheway ? ? Oct 30 19:58:37 Looney i saw this article the other day, but it was about writing. i don't see why it would not apply to writing software, either. live an interesting life, have interesting problems, have interesting solutions for those problems ;) http://www.ryanholiday.net/so-you-want-to-be-a-writer-thats-mistake-1/ Oct 30 19:59:30 i asked on android or androidapps. but i think there are probably a few jobs or hobbies where people could use a specialized app, but don't know any app developers Oct 30 19:59:36 not sure how to find those people, though Oct 30 20:00:03 i've seen a few things on HN to hook up devs with people having ideas, forgot the specifics though Oct 30 20:00:12 reddit is the place to meet the weirdest lot that exists Oct 30 20:00:16 crowdsourcing kinda things Oct 30 20:03:37 Looney, I stopped writing software for 3-4 years because I couldn't think of anything interesting to write that wasn't already implemented Oct 30 20:04:02 after a few years of that I got bored of not doing anything and started applying for jobs ;) Oct 30 20:04:06 so, after the break, did you have any ephiphany ? ? Oct 30 20:04:19 ok Oct 30 20:05:38 today I was thinking that I might renegotiate my contract to be part time instead of full time... Oct 30 20:08:08 seand: reddit is the place to get work in case you have a quick turn around time Oct 30 20:08:24 http://www.reddit.com/r/androidapps/comments/1piali/request_there_was_a_ringtone_maker_app_that_also/ Oct 30 20:08:35 Looney: i thought you were referring to side projects, not professional work Oct 30 20:08:49 it's good I don't extract value from my job. I take pride about the speed that I can get stuff done though. Oct 30 20:09:34 well, I thought of putting a paid adblocker on market Oct 30 20:09:46 to sit back and see how it does Oct 30 20:10:04 Ad blockers aren't allowed on play store Oct 30 20:10:05 but thank God, I didn't waste my 25$ Oct 30 20:10:20 I'm currently looking at taking up maintenance and future deveopment of some 10 year old perl system. It's so gory. It apparently ran on top of 16 databases, 9 informix and 7 mysql. I discover scripts running from cron in various servers that scp in and do stuff to make shit happen. EDIFACT messages. Custom code generator that is the worst I've ever seen, even worse than autotools. This one has everything. Oct 30 20:10:59 sounds like the last place i worked at :) Oct 30 20:11:11 http://www.reddit.com/r/androidapps/comments/1phh5i/looking_for_an_app_to_disable_external_speaker/ Oct 30 20:11:14 oh dear sounds lovely Oct 30 20:11:28 now this can be done in reasonable time-frame Oct 30 20:11:50 :-P Oct 30 20:12:16 i'm reading this critique about the Ara concept from Moto http://jjcm.org/blog/mac_pros_and_modularity/ Oct 30 20:12:35 but i think one thing he forgets, is that electrical interconnects are probably only necessary for power Oct 30 20:12:39 communications can be optical Oct 30 20:13:27 the funniest part is that it has a standardized database schema that it contorts certain flat-file import product database into... and then a cache table which is actually the fields of the flat file which is constructed somewhere (still looking for the script that does that). Oct 30 20:13:28 modulars dunno Oct 30 20:13:40 probably wont happen till battery gets 10x better Oct 30 20:14:02 then half of the system runs against the reconstructed cache table, and other hard against the more properly normalized tables, and this same database is replicated from informix to mysql, apparently for speed reasons Oct 30 20:14:21 other hand each modular part can have its own battery Oct 30 20:14:22 I've no idea what their problem was. I made a stupid view and made a select to see how slow this table is as pure view and it returned all records in 4 seconds Oct 30 20:14:35 with interconnects so one plug can recharge all modulars Oct 30 20:14:36 alankila all sounds like normal stuff in legacy enterprise batch ETL Oct 30 20:14:38 several million rows too. *shrug* Oct 30 20:14:48 is this surprising ? Oct 30 20:15:31 if they have java crap, maybe you can clean some up and use spring batch Oct 30 20:15:38 it's all perl shite Oct 30 20:16:03 but it's kinda funny. There's this giant pile of poo that does everything in crazy contorted way and a minimal implementation that does *the same* could be done in couple of days Oct 30 20:16:22 just by having someone who doesn't make simple things complicated Oct 30 20:16:54 this is a really bare-bones product ordering system. There's *no reason whatsoever* that it needs to do all that crazy hoop-jumping. Oct 30 20:16:57 thats common too. what i have seen happen, often enough, is that some system needs access to data, but for performance reasons system 1 on continent A can't just jdbc into system 2 on continent B, so sys admins, getting tickets that systems are timeouting and shit, write some perl crap to copy tables around Oct 30 20:17:51 a lot of the 'decret glue' data flow between legacy systems in enterprises actually gets written by sysadmins Oct 30 20:17:59 and this greatly confounds the enterprise architects Oct 30 20:18:07 I think it's just that informix really sucked as database, or they administrated it very poorly Oct 30 20:18:10 they have nice little diagrams ... Oct 30 20:18:22 there's a lot of effort spent on optimizing what simply doesn't seem to be a problem at all, especially at modern times Oct 30 20:18:28 but only the sysadmins really know how shit is wired together, queus, etc Oct 30 20:18:48 maybe some of those systems used to xfer data over costly links Oct 30 20:18:54 its hard to say, without knowing the story Oct 30 20:18:56 the other problem is of course using components that don't fit the problem. Oct 30 20:19:12 one thing - as bad as all this stuff is - is that i usually found the story rather fascinating, about how the shit came to be Oct 30 20:19:19 if customer's data doesn't fit in your schema, the easy answer is to define a new schema that fits and forget about the generic components. :-/ Oct 30 20:19:32 its basically archeology Oct 30 20:19:45 Yep, that it is. I kind of enjoy digging into old, horrid codebases Oct 30 20:19:47 you are digging through eras in a civilizations history Oct 30 20:19:55 If I create a new timer in java, will it be created off the Main Android UI thread? Oct 30 20:19:56 I leave behind properly intended minimal code that solves the problem *and nothing else*. Oct 30 20:20:01 indented too Oct 30 20:20:55 oh, and then there is the "system A" owned by group A, "system B" owned by group B (totally different business unit) and for political reasons, they aren't just going to let you 'access' their system … but they will be happy to give you a nightly feed Oct 30 20:21:18 I view my value as a compression algorithm. I take 100 lines of code and usually output something between 10 and 25 lines. This is the norm. Oct 30 20:21:43 alankila, the developer the world needs, but not the one it deserves Oct 30 20:21:44 if it's very bad outsourced code, it's close to 1:10. If it's already competently written, there's not much bullshit to cut through. Oct 30 20:22:26 goodcode = code - badcode; Oct 30 20:22:48 wish it was that simple to get rid of bad code :P Oct 30 20:23:03 it is the hardest work I know. Also the only work I really know. :-p Oct 30 20:23:10 it is as simple as calling removeBadCode() Oct 30 20:23:42 XXCoder the best code is the code that doesn't exist ;) Oct 30 20:23:53 lol Oct 30 20:24:02 g00s: I agree, actually. Code existence is a bug. Oct 30 20:24:10 stick that on your CV Oct 30 20:24:17 It is not a good thing that it exists at all, not automatically. It must justify its presence. Oct 30 20:24:18 <^cheeky> yeah hence why i don't have cOdeee !!!! Oct 30 20:24:21 <^cheeky> :)O Oct 30 20:24:49 Most of the time, I end up just deleting everything because some crazy coder and wrote a complicated abstraction that he used in exactly one place Oct 30 20:25:13 oh brother Oct 30 20:25:17 often there are hundreds of lines of shit that could be literally replaced by one expression. One line of code. People who do this sort of thing must be insane. Oct 30 20:25:40 I use abstraction only when theres in least 3 variants Oct 30 20:26:23 is there no app to download 1080 video from YouTube ? ? Oct 30 20:26:27 I think it was Joel Spolsky who said that most programmers are really deadly bored in their job and view themselves as architects and that's what guides them to make all that crazy complexity where none is needed. Oct 30 20:26:42 CS: programming to solve problems Oct 30 20:26:58 alankila wheni get bored i want to simplify things Oct 30 20:27:22 the system is done when it functions as expected, and nothing can be removed ;) Oct 30 20:27:28 lol Oct 30 20:27:29 When I setError("error message") on a checkbox, it shows the red exclamation mark, but it doesn't show the error message. Is that how it's supposed to be? Oct 30 20:27:45 I wish there were more people like you. Just today, I killed something like 10 applications from customer's version control. They have over 150 product source codes there, but I think around 100 of them is discontinued Oct 30 20:27:47 "hey I have this extra functions when I'm done, not sure where its from" Oct 30 20:28:01 and you should see the state of their databases. I'm surprised if 10 % of the tables in them are actually in use. Oct 30 20:28:08 I kill shit left and right and it never seems to end Oct 30 20:28:16 can you chart db usage? Oct 30 20:28:30 not in sense of "which tables get selects" Oct 30 20:28:50 I guess I could look top_sql and build statistics of queries that actually get executed but I'd have to run that over months, literally, to get enough info Oct 30 20:29:04 table rename and wait see how long before someone complains? lol Oct 30 20:29:10 it's easier to ask if anyone knows what an app is for, and if nobody has any clue, just delete it Oct 30 20:30:16 The databases are probably solving themselves over time because they do update them and migrate from one host to another. It's likely that the old tables get lost at some point. Oct 30 20:30:58 there's a big iso8859-1 to utf-8 encoding migration coming at some point which requires definition changes to pretty much every table Oct 30 20:31:01 this will sort it out Oct 30 20:31:58 though, I'm predicting that I have to do it. Oct 30 20:32:30 well semi-nice Oct 30 20:33:02 hm; so has anyone used a textureview in a fragment doing 2d canvas ops? It seems fairly straightforward, and it works - right until the activity is destroyed, when all of a sudden it corrupts video memory all over and blows up with a sigsegv Oct 30 20:33:05 <^cheeky> please please nexus 5 don't be a fatty Oct 30 20:35:52 When I setError("error message") on a checkbox, it shows the red exclamation mark, but it doesn't show the error message. Is that how it's supposed to be? Oct 30 20:36:07 i found setError to be buggy as hell Oct 30 20:36:17 at least on 4.0, it did the weirdest shit Oct 30 20:36:30 like callouts hovering over the actionbar, etc Oct 30 20:36:42 Sounds like usual android stuff. Oct 30 20:36:50 yeah Oct 30 20:37:19 MediaRecorder doesn't work in the emulator because it doesn't have the device support? Oct 30 20:37:27 Do we have any talk about a new API yet? I mean, someone should really unfuck Android. Oct 30 20:38:07 A lot of html5 attempters, and someone even ported Qt to android (though it looks and feels like shit if my experience is typical). Oct 30 20:39:19 ron_frown was saying when you turn on the right logging, bionic crashes regularly Oct 30 20:39:56 lots of areas needing unfucking ;) Oct 30 20:40:25 tizen apparently got a dev device out Oct 30 20:40:35 they're 5 years late, but maybe better late than never Oct 30 20:40:45 If I create a new timer in java, will it be created off the Main Android UI thread? Oct 30 20:40:57 EGHDK: what is that, TimerTask? Oct 30 20:40:59 alankila i thought i read last week samsung was winding down tizen for a while Oct 30 20:41:17 EGHDK: don't use TimerTask Oct 30 20:41:28 alankila we'll find out what samsung's aspirations are at their developer conference Oct 30 20:41:39 they seem to be adding a slew of new apis to android Oct 30 20:41:45 that are proprietary Oct 30 20:41:59 That was kind of to be expected. They are in the position to take over Android Oct 30 20:42:08 popularity makes right Oct 30 20:42:17 this is going to be like the Matrix Oct 30 20:42:24 google is also bumping open source apps off and replacing em with closedware Oct 30 20:42:26 as Agent Smith gets more powerful, so does Neo Oct 30 20:42:37 They're about a million apps away from taking over Android Oct 30 20:42:39 I am trying to do a project where I show how timers are used to trigger certain periodic actions in routers in link state routing. I'm not sure whehter to use a timer or a timer task alankila and evanc Oct 30 20:42:54 EGHDK: use Handler#postDelayed Oct 30 20:43:27 Does that use a timer? Because per the project specs, I must use "Timers" Oct 30 20:43:35 SimonVT if samsung is smart, they will provide a proper superset of CTS capabilities; so regular apps could run on their flavor, but there will be samsung specific variants, like Twitter Oct 30 20:43:43 EGHDK: the project spec is not literal Oct 30 20:44:08 EGHDK: interpret timer to mean "a task that runs at some point in the future". With android, you need to use the right tool for the job, like maybe an alarm registered with alarmmanager or something Oct 30 20:45:34 Do you think this would be easier to do with a timer in a simple java cmd line program instead of trying to do it in android? Oct 30 20:45:55 You can't and shouldn't even think about a command line application on android. This thing doesn't really exist. Oct 30 20:46:40 you can't even run a jar/class file from command line on android device. There is only dalvik vm, and it's only available by this zygote thing, and it can only run android applications proper. Oct 30 20:48:20 though I've been thinking about the possibility of hacking an android app that could load a .dex and run it from command line, just to see where the boundaries are Oct 30 20:48:43 alankila: No, I mean ditch android completely, and just do a regular public static void main application that runs in the command line. Oct 30 20:48:47 perhaps even do class->dex conversion on the fly Oct 30 20:49:02 EGHDK: that is confusing. Do you plan to run this on a phone? Oct 30 20:50:28 I don't think he knows Oct 30 20:50:41 alankila, you can with terminal ide Oct 30 20:51:08 alankila, you can also run dalvikvm from commandline Oct 30 20:51:18 pfn: heh, looks pretty fun Oct 30 20:51:29 pfn: on a stock device? I must look into this. Oct 30 20:51:32 yes Oct 30 20:51:39 alankila: No. I just need to do this project. And the teach told us we can write it as a basic java application, or an Android app. I jumped into android (without first learning java) so I always tend to do assignments in Android instead of regular java Oct 30 20:51:46 Being able to run non-android apps that are nevertheless written in java would be useful Oct 30 20:51:54 you've always been able to run the dalvikvm command Oct 30 20:52:00 basically I'd want a wrapper with capability 'java -jar foo.jar' Oct 30 20:52:05 I don't care what it does, but this must work Oct 30 20:52:08 that'll run any dex Oct 30 20:52:25 you can terminal ide for the latter Oct 30 20:53:41 alankila: Exactly. so I want to try writing this in Java, but I'm not sure whther I would use a Timer or Timertask Oct 30 20:54:18 EGHDK, go ask ##java Oct 30 20:54:22 why ask here... Oct 30 20:54:36 "The vim editor has been setup with java development in mind and is extremely powerful. Also vim has been setup by default in a humane way, so that starting on this long and glorious journey won't begin with a punch in the face." Oct 30 20:54:54 that's a lot of promising when editor such as vim is concerned. Oct 30 20:55:17 This looks pretty fun though. Oct 30 20:55:35 ? Oct 30 20:55:50 just reading what terminal ide says Oct 30 20:56:46 I've been hoping to slowly get to the point where android device could build and run its own software Oct 30 20:57:32 there is a book coming out about writing android on android Oct 30 20:57:35 Like AIDE? Oct 30 20:57:59 probably uses AIDE ? Oct 30 20:58:00 yeah Oct 30 20:58:23 Perhaps even kind of like AIDE. Oct 30 20:59:05 yeah, there's aide too Oct 30 20:59:58 I guess I'll treat it as a benchmark when cyanogenmod can build itself on cyanogenmod device Oct 30 21:00:07 that is the point of self-hosting. Oct 30 21:00:35 hah Oct 30 21:00:37 though it has little practical value considering the relatively low performance of phones and tablets Oct 30 21:00:45 not interested in self-hosting yet Oct 30 21:00:48 still, it should happen at some point. Oct 30 21:01:00 if you're running android as your desktop os, maybe Oct 30 21:01:00 but standalone, no way Oct 30 21:01:11 intellij on android :) Oct 30 21:01:29 self-hosting make sense when it's your primary/only work environment Oct 30 21:01:51 I guess I originally hoped that android laptops and like would become commonplace Oct 30 21:02:29 as it is, all mobile OSes are still extensions and consumption devices Oct 30 21:03:08 i think we're seeing (slow) convergence of mobile/desktop : Windows 9 / WP 9, iOS / Mac OS, Ubuntu, Ubuntu Phone Oct 30 21:03:27 and, if I can butt in, Linux / Android. Oct 30 21:03:33 Android / Chrome ;) Oct 30 21:05:07 does anyone own a chromebook Oct 30 21:05:49 I'll have to play with this terminal ide later. Oct 30 21:06:17 9 hours of crap code per day makes alan a sleepy boy. Oct 30 21:08:55 Hi, how get I a disabled TextView of a ListView to have greyed out text? I'm currently using android.R.layout.simple_list_item_1 for the ArrayAdapter. Oct 30 21:14:36 alankila: maybe when android x86 becomes more mature Oct 30 21:14:53 right now theres not enough developers and its bit buggy Oct 30 21:23:28 Hi guys, I have an issue when trying to run unit test in Android studio with Junit Oct 30 21:23:35 anybody has experience with that :) Oct 30 21:24:35 I got a class not found as an output even if my class exist and the TestSuite class is in the same directory as the class I want to test Oct 30 21:30:18 i predict this is going to be hot http://inhabitat.com/camper-kart-is-a-tiny-home-that-pops-out-of-a-shopping-cart/ Oct 30 21:30:29 in the US :) Oct 30 21:31:20 a product hobos can afford Oct 30 21:43:44 g00s: nice, finally, product to steal carts for. :P Oct 30 21:44:50 hehe Oct 30 22:22:16 hm, AS is flagging an @Override'd method as an error because one of the variable names didn't match up, is that right? the signature was correct (types) Oct 30 22:22:28 parameter names, rather Oct 30 22:26:44 probably Oct 30 22:30:25 g00s: Doesn't sound right, but I have no idea really. Oct 30 22:33:50 hey kjeldahl , cheers Oct 30 22:35:25 cheers to you as well! Oct 30 22:35:43 g00s: Pretty sure that's wrong. Oct 30 22:36:39 for instance, no issues with this in eclipse: Oct 30 22:36:39 g00s, java 1.5 Oct 30 22:36:39 @Override Oct 30 22:36:41 public void onCreate(Bundle flergBlerg) { Oct 30 22:36:55 also, parameter types Oct 30 22:37:13 sure, 1.6 and types are ok Oct 30 22:37:38 does it compile from commandline? Oct 30 22:37:44 always the canonical test Oct 30 22:38:03 i just gradle cleaned and everything went normal :| Oct 30 22:38:10 well, you cleaned... Oct 30 22:38:29 so its ok now Oct 30 22:51:22 The docs note that ContentProviders maintain their own pool of threads. Is this right? If i put a breakpoint in the query(...) of a ContentProvider it appears to always be the same thread I initiated the query from. Oct 30 22:52:16 also since this isn't an async call the only way this would be possible is if the thread I made the call with was suspended / joined. I see nothing like this in the source code of ContentProvider Oct 30 22:54:32 "ContentResolver and ContentProvider classes hide the details of how the interprocess communication is managed, ContentProvider methods that respond to those requests—the methods query(), insert(), delete(), update(), and getType()—are called from a pool of threads in the content provider's process, not the UI thread for the process." Oct 30 22:54:40 doesn't appear to be right. Maybe i'm missing something Oct 30 22:55:24 nuxusr where is that ? Oct 30 22:55:31 http://developer.android.com/guide/components/processes-and-threads.html#ThreadSafe Oct 30 22:56:39 also from this SO post: http://stackoverflow.com/questions/3491747/which-thread-runs-contentprovider Oct 30 22:56:53 nuxusr you might only see this if the call is from outside the process Oct 30 22:59:48 hm, weird. i smell becon in the library - /how can this be/ Oct 30 22:59:52 *bacon Oct 30 23:00:06 Your ass is on fire? Oct 30 23:00:28 ha Oct 30 23:00:57 Or the laptop in your lap is overheating? ;-) Oct 30 23:01:44 More likely, your mind playing jedi tricks with your nose; time to eat! Oct 30 23:02:05 * g00s looks at his granola bar Oct 30 23:02:15 i should have wrapped this in bacon, yes Oct 30 23:02:53 Anyway, nappy time here. Nite all. Oct 30 23:03:00 night Oct 30 23:03:11 dont let the bacon bug bite Oct 30 23:16:35 Hey pals: two quick questions. 1. How can I manage exceptions in my endlessadapter if the networking is happening in a task? http://pastie.org/8444126 Oct 30 23:16:58 And 2. See line 34 / 55, what would be a better way to do this instead of just waiting to get back the real number? Oct 30 23:20:36 pass them into the adapter's constructor and not actually instantiate it until the necessary data is available? Oct 30 23:22:22 Pass what? Oct 30 23:23:44 I do endless lists a bit differently - there's an event to listen for that fires when the user scrolls to some arbitrary distance from the end of the list Oct 30 23:23:59 that even then gets handled, and the dataset is updated accordingly Oct 30 23:25:46 okay Oct 30 23:31:42 I need an endless list that is endless up and down, heh Oct 30 23:31:55 and it's repeating Oct 30 23:32:35 probably implement another list view that treats count, and position differently Oct 30 23:32:50 how would it be endless going up? Oct 30 23:33:03 it repeats Oct 30 23:33:07 i have a viewpager and i want to automatically pass through all pages when the user first enters the activity. i've been able to do it by starting the visit loop in some event listener, e.g. menu action Oct 30 23:33:11 it loops Oct 30 23:33:15 oh Oct 30 23:33:32 like the Expedia app Oct 30 23:33:48 yeah i see what youre saying Oct 30 23:34:18 but i'm trying to achieve when the user visits the activity, but i'm getting some illegalstate exception Oct 30 23:36:44 What do you think about the presenter pattern to decouple the logic from activity so it's independent from platform and easy unit-testable? Any other/better pattern that improve testability, modularity? Oct 30 23:38:18 pfn: can't you do that pretty easily by modding the position in getView()? it wouldn't loop _forever_ since eventually your int would overflow Oct 30 23:38:23 but it's a start Oct 30 23:39:27 evanc, yeah, except it doesn't quite work right where you can't scroll up from 0 Oct 30 23:39:39 that was my initial plan Oct 30 23:39:55 just set Integer.MAX_VALUE count, mod it, and set the start position to be MAX_VALUE / 2 Oct 30 23:41:05 what's the data backing the endless list? Oct 30 23:41:18 not really endless in this case Oct 30 23:41:31 it's just looping Oct 30 23:41:37 and the databacking doesn't really matter Oct 30 23:43:30 actually Oct 30 23:43:31 getIteam() Oct 30 23:44:48 pfn: ah good point. Oct 30 23:44:57 hi Oct 30 23:45:12 hi rallat Oct 30 23:48:15 dunno how well listview would work setting a position MAX_VALUE / 2 Oct 30 23:48:18 that sounds like an O(n) operation Oct 30 23:48:22 hmm, maybe not Oct 30 23:49:14 since the views are cached, and scrolling shouldn't really be a problem either... Oct 30 23:49:28 <^cheeky> i want to knowww Oct 30 23:56:49 pfn: gotta remove the scrollbar from the UI, too, haha Oct 31 00:02:16 pfn: can you weigh in a bit on my question above pls. Oct 31 00:02:26 you seem to be knowledgeable about this stuff :] Oct 31 00:16:44 waffles? Oct 31 00:17:26 erm wrong room Oct 31 00:17:32 bacon waffles ;) Oct 31 00:17:35 too late Oct 31 00:17:37 send me em now Oct 31 00:17:42 g00s: i hate bacon Oct 31 00:17:45 mmm, waffles. NOBACON Oct 31 00:17:54 * Leeds is in the middle of breakfast Oct 31 00:18:04 i don't support the slaughter and torture of animals because they "taste bacony" Oct 31 00:18:20 soy bacon then :) Oct 31 00:18:34 jk i'm just a muslim so no bacon Oct 31 00:18:37 breakfast << plate<< waffles << peanut butter << syurp << fork Oct 31 00:18:41 oops forgot ; Oct 31 00:18:53 XXCoder c++ dev :) Oct 31 00:19:04 c# too I think Oct 31 00:19:16 so you support the slaughter and torture of plants? Oct 31 00:19:19 ;p Oct 31 00:19:32 sreich: only if they're lamb Oct 31 00:19:43 funkbox: smbc has something for everyone. http://www.smbc-comics.com/index.php?db=comics&id=1722#comic Oct 31 00:19:53 mmm you guys make me want to make some breakfast for a midnight snack Oct 31 00:20:13 haha Oct 31 00:20:16 good thing dinners coming soon Oct 31 00:24:50 desmin88, re-ask your question Oct 31 00:40:05 Hello devs. I feel ashamed by asking this but ... I swear I've Googled this and the solutions I find never work. ADT is telling me that "Archive for required library: 'blabla/ProjectName/libs/._android-support-v4.jar' in project 'ProjectName' cannot be read or is not a valid ZIP file". I've tried everything I've found in Google. :( Oct 31 00:42:30 Any ideas? Oct 31 00:42:56 are there any tutorials for programming outside of the IDE? i want to understand what's going on Oct 31 00:42:57 pfn: how can I manage exceptions in my endlessadapter if the networking is happening in a task? http://pastie.org/8444126 Oct 31 00:43:03 And 2. See line 34 / 55, what would be a better way to do this instead of just waiting to get back the real number? Oct 31 00:43:41 jasabella: what parts for 'outside' do you mean Oct 31 00:44:27 calling javac myself, generating the meta data on the command line Oct 31 00:44:33 (apk metadata) Oct 31 00:44:47 that kind of thing Oct 31 00:45:37 o Oct 31 00:46:11 a deeper understanding of the process of what is going on if you get what i mean Oct 31 00:47:06 i guess an analogy would be like using vs and just adding files to my project and pressing build, i dont "appreciate" what the linker is doing if all i did was use vs Oct 31 00:47:38 yes i get it Oct 31 00:48:26 jasabella: setup a project using just ant to build, you can either read the build log to see the steps it's taking, or go pull apart the ant build files Oct 31 00:49:26 hmmm :) Oct 31 00:58:05 I guess nobody can help me on my thing. :( Oct 31 00:59:35 desmin88, I'm not gonna read your code, but you pass the exception back as your result Oct 31 00:59:45 your result type will be a container that has your Result or Exception Oct 31 01:02:05 .-. why didnt i think of that Oct 31 01:03:16 My android grald take a long time to build(http://imgbin.org/images/15529.gif[),how about yours? Oct 31 01:03:37 http://imgbin.org/images/15529.gif Oct 31 01:07:56 a long time to build? 8 seconds? Oct 31 01:08:14 you need to redefine your definition of a long time Oct 31 01:14:54 lol Oct 31 01:21:24 i think, one thing thats sad about being a regular at the library - is you notice the kids abandoned by their parents, making this place 'child care' Oct 31 01:22:16 hi all Oct 31 01:23:08 who goes to libaries anymore /s Oct 31 01:23:56 well, i come here for quiet and internet. at least they have internet Oct 31 01:24:57 this kid, sitting next to me, is dropped off every day by his mom around 2pm and picked up around 8. he has chronic asthma attacks every day - i seriously sonder if his mom has even taken him to the doc. Oct 31 01:25:14 i want to call CPS Oct 31 01:25:53 do it. Oct 31 01:26:07 maybe you should ask the kid first Oct 31 01:26:09 why he was left there Oct 31 01:26:18 know his story first Oct 31 01:26:40 btw, this has been going on for at least a year ;) Oct 31 01:27:16 i think the librarians know; it becomes an issue for them (if something happens to the kid after they close, but the parent hasn't come yet) Oct 31 01:27:58 a long time to build? 8 seconds? // but even I modify one character or a color or something else it will cost 8 seconds... Oct 31 01:28:19 youre still building the same thing Oct 31 01:28:28 how do you expect it to incrementally build stuff Oct 31 01:29:46 But it seems that the eclipse ADT is faster than studio when run the app Oct 31 01:29:47 i mean only have to build the new code Oct 31 01:31:18 ah i see Oct 31 01:32:52 Without the build tool, when we run a piece of code(with main method) the IDE compile it (autoly) and run it. With build tool like maven there maybe some other goals like `clean, compile, test , package, run` involved which will slow the speed. Oct 31 01:33:40 maven_: 8 seconds is nothing Oct 31 01:33:41 relax. Oct 31 01:35:59 So I wonder if android gradle does any extra job except the compile, package and run. :) I care about this because I am doing the UI, layout job, then I have to run the app so frequently. Oct 31 01:37:44 yes it does Oct 31 01:38:30 maven_ what i do sometimes is use AS, but use gradle from the command line. my build takes only 3-4 seconds Oct 31 01:38:50 gradle has to be in daemon mode though Oct 31 01:39:03 i guess the next AS will run gradle in-process Oct 31 01:39:04 command line? I will have a try Oct 31 01:39:37 really guys its not that bad Oct 31 01:39:50 your project or account-wide gradle.properties has to have org.gradle.daemon=true Oct 31 01:41:47 ok Oct 31 01:46:45 is anyone here going to andevcon in a couple of weeks, in SF? Oct 31 01:55:09 there's a con? Oct 31 01:55:19 timewasted i am Oct 31 01:56:32 canadancow awesome. I'm coming by myself, so hopefully folks are willing to get out and meet new people Oct 31 01:57:09 rager, yes. Check out andevcon.com Oct 31 01:57:35 think it's worth doing? Oct 31 01:57:50 it'd be cool to see what people are doing these days in android dev Oct 31 01:57:59 and I haven't convinced my bosses to send me to a con yet Oct 31 01:58:11 My company is sending me, so yes. :) It looks like the talks are mostly technical, rather than sales Oct 31 01:58:59 looks pretty cool. are the classes posted on youtube later on ? Oct 31 01:59:10 whats hte handler for when an app is shut down.. aka by task manager swipe / etc Oct 31 01:59:42 I don't know. That would be awesome though. Oct 31 01:59:48 why would a blackberry guy be giving a keynote an an android conference O.o Oct 31 01:59:58 g00s: what con Oct 31 02:00:00 because bb runs android apps? Oct 31 02:00:11 ookaaay Oct 31 02:00:26 maybe. I'm curious myself Oct 31 02:01:21 yeah Oct 31 02:01:32 apparently theres way to sideload google play on bb Oct 31 02:01:38 then you can do whatever Oct 31 02:01:50 i wonder if facebook is going to buy BB Oct 31 02:01:54 hehe Oct 31 02:02:14 nahhh yahoo will buy bb Oct 31 02:02:25 then facebook buys yahoo Oct 31 02:02:34 ha Oct 31 02:02:49 even worse Oct 31 02:02:54 fisher toys buys bb Oct 31 02:02:57 RIM still has patents, at least Oct 31 02:03:00 then facebook buys fisher toys Oct 31 02:03:21 the IP alone is probably worth enough to make it worth buying to any of the handset manufacturers after the 3rd or so lap around the drain Oct 31 02:11:31 "Android Custom Views, the Right Way" looks cool Oct 31 02:11:40 i never did figure that out :) Oct 31 02:11:59 android.app.ServiceConnectionLeaked: Oct 31 02:13:36 Yeah, I thought so as well. I have done quite a few composite views, but I this sounds really interesting. I'm probably doing things all wrong. Oct 31 02:14:32 actually, there are quite a lot of interesting classes - wish i could go Oct 31 02:17:19 after reading the syllabus, i realize i don't know much about android at all :| Oct 31 02:17:30 i could probably learn something from most of the classes Oct 31 02:18:08 There is a lot to learn for sure. Oct 31 02:18:17 theres always something to learn Oct 31 02:19:12 definitely. I've been doing Android development for 3 years and still feel like I don't know anything. ;) Oct 31 02:19:27 :)] Oct 31 02:21:40 the mixing of case conventions in java is confusing :/ Oct 31 02:22:35 jasabella, how so? Oct 31 02:25:11 com.example.Project.ClassName lives in com.example.project Oct 31 02:25:42 and ClassName.doSomething Oct 31 02:27:11 How is that mixing of conventions? The casing clearly shows what part is package name, what part is classname and what part is a method or member Oct 31 02:28:48 i find it sort of inconsistent, just me :( Oct 31 02:29:30 jasabella, Really it is just a matter of understanding convention. It isn't inconsistent at all. Oct 31 02:29:35 Inconsistent how? Oct 31 02:32:17 jasabella, no worries. You will get the hang of java. :) Oct 31 02:32:47 fuck Oct 31 02:33:04 on the one hand, it's in Burlingame... which is so far away Oct 31 02:33:16 but on the other, it's the first con I have a good sell on for my bosses Oct 31 02:35:05 okie Oct 31 02:35:24 yea i will :) Oct 31 02:36:28 Yeah, I'm not excited about it being so far from the city. I am hoping to make it to the pier or china town the day I get in. Otherwise I don't see it happening. Oct 31 02:38:05 whats this android con u guys are talking about Oct 31 02:38:47 all the cool things google didn't talk about during i/o :) Oct 31 02:39:28 now I WISH I could get to IO Oct 31 02:55:30 is there a handler i can bind to for when an app is closed in the app list? like swiped away **** ENDING LOGGING AT Thu Oct 31 02:59:58 2013