**** BEGIN LOGGING AT Tue May 21 02:59:58 2013 May 21 03:01:35 looks great, thanks May 21 03:01:43 * g00s reads May 21 03:03:26 g00s: heading out to play some tennis, i'll be back on in like 45 minutes :) May 21 03:04:41 hey is there something special i have to do other than setting android:background="@drawable/whatever_id" to get it to recognise a 9 patch? May 21 03:04:51 my background is showing up with the 9 patch border May 21 03:06:34 erdos: name it whatever_id.9.png May 21 03:06:37 bbl May 21 03:06:40 did that May 21 03:07:08 hmmm May 21 03:07:20 this layout editor in eclipse seems to be a bit buggy still' May 21 03:07:37 google code is buggy, wut ? May 21 03:08:01 erdos: write xml by hand, use it as preview ;) May 21 03:10:21 maybe it's just my noobyness May 21 03:10:36 or bypass xml totally May 21 03:10:43 well, for 80% of it May 21 03:10:45 :) May 21 03:10:46 with java code? May 21 03:10:51 god no May 21 03:10:55 god yes May 21 03:11:04 for 80% of things May 21 03:11:05 :) May 21 03:11:17 you know how much quicker it is ? May 21 03:11:21 StingRay_: you're in for a world of hurt man :) May 21 03:11:30 in what way ? May 21 03:11:36 hehe May 21 03:11:39 and no I'm not May 21 03:11:43 :) May 21 03:11:43 hehe what about separation of display and function? StingRay_ you seem like the kind of pedantic guy that likes best practices! May 21 03:12:18 well, my view manager/creation is seperate May 21 03:12:32 just I found it too slow in xml, to do what I wanted May 21 03:12:45 tried just code solution, and fast as hell compared May 21 03:13:02 but tbh, my use case is a bit…erm…. well, odd atm May 21 03:15:42 * g00s remains skeptical XD May 21 03:17:07 anyone have any more ideas as to why i would be getting `Unable to open log device '/dev/log/main': No such file or directory` when trying to use logcat on nexus 4 4.2.2 stock? May 21 03:20:58 i'm reading about the CAB, because i'm so far behind but … when it shows up, what is the function of the 'checkmark" on the left ? May 21 03:21:39 ? May 21 03:21:56 ron_frown: here http://developer.android.com/design/patterns/selection.html May 21 03:22:11 "Using the contextual action bar (CAB)" May 21 03:22:25 g00s so when do I ge to see the goods May 21 03:22:27 the leftmost icon, wut is that for ? May 21 03:23:02 the checkmark http://developer.android.com/design/media/selection_cab_big.png May 21 03:23:28 check is do it to it May 21 03:23:39 du wat May 21 03:23:53 pick your items May 21 03:24:01 pick your action int he drop down menu May 21 03:24:09 check does the deeds May 21 03:24:26 like, if my CAB has a menu 'delete, connect' … selecting that means (delete selected) or (connect selected) May 21 03:24:42 yes May 21 03:24:55 so if i have a menu, should i disable that checkmark ? May 21 03:25:30 In a PreferenceActivity is it possible to have a block of text that isn't a preference setting? (free text instructions) May 21 03:26:08 ron_frown: oh, i didn't see the second part of this sentence "Dismiss the CAB via the navigation bar's Back button or the CAB's checkmark button. This removes the CAB along with all selection highlights." May 21 03:26:29 dismiss via checkmark, weird i guess unless its some default action May 21 03:27:00 QbY: i think so, it will still be in the listview. See plain Preference May 21 03:27:01 honestly tho May 21 03:27:07 k. May 21 03:27:08 I dont think its the most straightforward thing in the world May 21 03:28:07 g00s: many thanks! May 21 03:29:04 ;) May 21 03:30:41 oi May 21 03:40:38 i'm experiencing a weird problem May 21 03:40:49 ron, check mark is "Done" not "Do the deeds" May 21 03:41:08 k, that makes some sense i guess ... May 21 03:41:13 I dont think so May 21 03:41:20 I was using it in an aosp app the other day May 21 03:41:23 and was like wtf?! May 21 03:41:32 this is the most akward way to interact with this data May 21 03:41:39 i have an Android app with a test suite that's running fine on one machine, but is failing on this one with the following instantiation error: http://pastebin.com/86yDbqpA May 21 03:41:49 " The action mode is disabled and the contextual action bar disappears when the user deselects all items, presses the BACK button, or selects the Done action on the left side of the bar." May 21 03:42:02 oh I believe you on that May 21 03:42:12 I just dont think its intuitive May 21 03:43:12 yeah, its kinda related to "done / discard" May 21 03:43:33 the relevant error is "The type FooData is not a valid substitute for the bounded parameter of the type ProviderTestCase2", but the type in question is definitely a subclass of ContentProvider May 21 03:44:00 and the app itself runs fine; it's just the test suite that's giving that error May 21 03:44:22 i've tried cleaning, rebuilding, everything i can think of, so far May 21 03:45:05 both machines are using the r22 SDK May 21 03:47:42 canadiancow: someone patched it or something May 21 03:47:54 ok. it works reasonably well May 21 03:47:58 the icon just doesnt change May 21 03:48:14 my bigger issue is the drawer_list_item.xml in the example app requires ICS :P May 21 03:48:28 maybe once xav pushes to central May 21 03:48:43 i can't be arsed to care about nav drawers until I can pull it from central May 21 03:49:34 i'm looking through the contacts res/strings.xml and see this: Phone-only, unsynced May 21 03:49:44 what is the "product" attribute ? May 21 03:49:59 don't see it documented in resources / string types May 21 03:52:40 dafuq, ami losing my mind May 21 03:54:47 hm, this must be preprocessed by the build system May 21 03:54:53 g00s, it may be so that it only gets included on phone builds May 21 03:55:01 yeah, thx May 21 03:55:04 so like on a tablet it would say "Tablet-only..." May 21 03:55:30 probably needs more C++ May 21 03:56:13 bugger, now it works May 21 03:56:15 go figure May 21 04:01:31 g00s: any thoughts? May 21 04:01:54 jasta: quick game of tennis, did rojo kick your butt :P ? May 21 04:02:39 jasta: just as clarification, the main use case for this is accessing the db from multiple processes; does this have a use case where everybody is in the same process ? May 21 04:03:28 architecturally, yes. May 21 04:03:46 but only in the same way that any of Android's components have use in the same process. May 21 04:04:07 ok May 21 04:04:18 the idea is to create an architecture that allows you to broad control over whether something lives in another process or not, with no architectural changes to your app May 21 04:04:58 cool / interesting May 21 04:05:28 did you mean to put .idea in git :P May 21 04:05:49 Yes, look at .gitignore May 21 04:06:09 k May 21 04:07:17 jasta: show your colleagues yet ? May 21 04:07:31 not yet May 21 04:07:32 excited tho May 21 04:07:42 :) May 21 04:07:47 this thing is some kind of android voodoo ;0 May 21 04:08:07 i have to look more at your cross process cursor thing May 21 04:09:04 newbie question: I'm looking at using ACRA in my app. How do i actually create a JAR build of ACRA? May 21 04:09:51 jasta: are you guys still using mqtt for messaging ? May 21 04:10:09 i'm sure you can confirm that very easily :) May 21 04:11:24 not sure … if i snooped with wireshark i should see a SSL socket connection , if i rip apart the apk i'm sure you proguarded it :) May 21 04:13:46 the names of public outer classes is typically left in tact, along with their packages May 21 04:13:59 ah May 21 04:14:09 anyone know where the source code for the android emulator (not the system images, the actual virtual machine core) is? it doesn't appear to be in the main AOSP source, the binaries are just in the prebuilt/ directory May 21 04:14:34 tophyr: you mean the source code for their hacked qemu? May 21 04:14:42 jasta: yes May 21 04:15:25 external/qemu, of course. May 21 04:16:09 * tophyr facedesk May 21 04:16:15 this is the directory i've been digging around it May 21 04:16:28 "where are my glasses" "... on your head?" May 21 04:16:37 except they're not just on my head, i'm looking through them May 21 04:16:41 ty jasta. May 21 04:33:18 jasta: your project; is this for IPC among several processes related to FB; or is this for public export for other apps to use also ? May 21 04:33:31 i'm thinking about uri permissions, etc May 21 04:33:36 it's not for public export. May 21 04:33:44 ah, k May 21 04:33:50 in fact, i need to add a TODO to explicitly check for accidental exported usage May 21 04:34:10 i mean you _could_ publicly export it if you wanted. but why would you want to gran raw SQL access to your shiz? :) May 21 04:34:20 hehe May 21 04:34:46 just gonna make my app where if they want to load x May 21 04:34:52 they have to write the queries themselves May 21 04:35:09 who the hell else is going to write them :P May 21 04:36:08 i think my greatest pain point atm is something RxJava tries to deal with, well as well as you can in java anyhow May 21 04:36:28 which would be like collections of futures which are queryable May 21 04:36:46 linq for asynctasks :P May 21 04:36:52 haha May 21 04:36:58 g00s wtf wtf wtf wtf?! May 21 04:37:09 I am boggling you've heard of rx May 21 04:37:10 hehe May 21 04:37:22 i also have looked into it before May 21 04:38:07 I use it for something I built a while ago May 21 04:38:14 but trying to explain to my boss what it was May 21 04:38:14 was May 21 04:38:19 not happening May 21 04:39:16 its not a rediculous concept May 21 04:39:26 but I couldnt get it through to him May 21 04:39:49 I'm trying to build ACRA, and mvn compile is giving me "Fatal Error: Unable to find package java.lang in classpath or bootclasspath" May 21 04:40:16 this is on Ubuntu 13.04, with the default system JDK May 21 04:40:19 acra as in the .net error reporitng shiz? May 21 04:40:22 oh, so maven gives errors in english now ? May 21 04:40:29 g00s: haha May 21 04:40:54 well, i assume it just needs to be pointed in the right direction, but i'm not too familiar with Maven May 21 04:40:58 any ideas? May 21 04:41:14 where does Maven configure this kind of thing? May 21 04:42:34 ron_frown: https://github.com/ACRA/acra May 21 04:42:52 oh derrrrrr May 21 04:43:09 yeah I forgot I gutted half of acra out and tied it up to ANOTHER .net thingy May 21 04:45:52 ron_frown: do you think Eric Meijer had to smoke something in order to come up with rx ? May 21 04:46:05 hahahah May 21 04:46:08 this is when i wonder, was steve right ? May 21 04:46:39 in other news, i really, really, really like the new play music. May 21 04:46:43 and the subscription service May 21 04:46:57 that it lets me share my subscription with my lady friend is pretty sweet too May 21 04:47:08 g00s reminds me of the invention of the jet turbine May 21 04:47:24 the technology at the time, jet turbines werent a logical progression May 21 04:48:01 jasta: i haven't tried it. how is five going ? :D May 21 04:50:05 oh man, last commit 3 years ago May 21 04:51:45 on what project? May 21 04:52:14 g00s: lol, what? :) May 21 04:52:47 https://github.com/jasta/five-server May 21 04:53:24 what a fun little project that was ;) May 21 04:53:34 if only play music wasn't just so freaking awesome :) May 21 04:53:44 but hey, mission accomplished. clearly, that was a very good idea. May 21 04:53:46 jasta do you work for google? May 21 04:53:51 no May 21 04:54:33 i think jasta could bring good reform to that team :D May 21 04:54:43 (android) May 21 04:54:53 eh, i think they have it under control. May 21 04:55:05 the only team over there that clearly has their head in the sand is the Play Store :) May 21 04:55:19 why, god why, 5 years later do we still not have a way to express dependencies? May 21 04:56:10 express dependencies? May 21 04:56:16 if it really is an "app ecosystem", why can't i actually depend on the functionality of some other app to build mine? May 21 04:56:42 no shit all this mavena nd gradle and shit May 21 04:56:47 you know, like how google does it, except that they prebake their common components into the firmware. May 21 04:56:51 I almost just dont see a need for that crap in the .net world May 21 04:56:53 ron_frown: no, i mean actual APK dependencies May 21 04:58:47 but i think it would be neat to go even further to a real distribution model May 21 04:59:25 would be great to reduce disk space pressure on older phones May 21 04:59:39 but APKs are far more important. i should be able to build a suite of apps that can all depends on each other May 21 04:59:56 dude I just found out on my hardware, I partitioned shit wrong May 21 05:00:01 so that i can build them as a federation working together May 21 05:00:38 only ever gonna have 2gig of space available May 21 05:01:06 jasta: kinda sounds like project jigsaw May 21 05:01:22 maybe? May 21 05:01:23 I say just walk away from fucking java May 21 05:01:25 what a nightmare May 21 05:01:43 I mean java8 shows some promise but when May 21 05:01:47 maybe this year, maybe next May 21 05:01:51 and then on android May 21 05:01:53 who the fuck knows May 21 05:02:08 ron_frown: objective-c ? XD May 21 05:03:02 NSActivity May 21 05:03:10 NSBundle ! May 21 05:08:43 like I said May 21 05:08:54 I like that apple pushed people into a subset of c++ May 21 05:09:16 ron_frown: im not sure you were following what im talking about. the kinds of dependencies i'm talking about are building your app using common frameworks so you don't have to jam everything into the same APK May 21 05:09:26 it's nothing to do with Java and everything to do with the Market. May 21 05:09:27 I know what your sayine May 21 05:09:41 I'm just bitching about something diff May 21 05:09:50 Google designs their apps this way, but they cheat and bake common parts of their frameworks into the system image. May 21 05:09:53 oh, i see ;) May 21 05:10:08 can i get some thoughts? https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 21 05:10:17 damned g00s is rubbing off on me May 21 05:10:37 beastmanrage: yeah you have to skeuomorph your slider :D May 21 05:10:51 g00s, which slider?! May 21 05:11:01 2nd screenshot May 21 05:11:04 Ok May 21 05:11:10 all that skeo … and then a plain android slider May 21 05:11:12 * beastmanrage googles skeuomorph May 21 05:11:16 bbl May 21 05:11:20 hot tub time May 21 05:11:20 take care May 21 05:11:26 jasta, nice! May 21 05:12:49 android needs a gac May 21 05:13:53 what is a gac May 21 05:14:05 .net its global assembly cache May 21 05:14:15 you toss versioned assemblies in it May 21 05:14:23 and anything in .net can access them May 21 05:14:25 the benefit? May 21 05:14:38 its like a folder for dlls, but you can have v3 and v4 of the same assembly May 21 05:15:58 ron_frown: how is that any different then naming systems like libpangomm-1.4.so.1.0.30 ? May 21 05:16:23 well the emphasis wasnt really the versioning May 21 05:16:28 beastmanrage: did you fix the bugs mentioned yesterday ? May 21 05:16:32 or maybe it was unintentionally I dont kno May 21 05:16:38 ron_frown: whats it used for then? May 21 05:16:47 the point is like jasta said May 21 05:16:58 fi your app could jsut require blah-1.2.3.4.jar May 21 05:17:02 ah May 21 05:17:04 and that gets installed into a dir other apps can use it form May 21 05:17:12 like how my online banking app requires the google mapping lib May 21 05:17:15 apps dont necessarily have to be your code plus huge apps May 21 05:17:15 and my kindle doesnt have it May 21 05:17:20 so i cant sideload the online banking May 21 05:18:14 shmooz: wish i had the time, hung up on a jellybean bug for Jarvis May 21 05:18:39 beastmanrage: someone was saying they could rotate dial backwards May 21 05:18:40 ron_frown: if i try to adb install the online banking app, Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] May 21 05:19:11 yeah May 21 05:19:13 I dont know May 21 05:19:23 I think a lot of hte mindset is java May 21 05:19:31 and if it were c++ or c, or c# or whatever May 21 05:19:34 shmooz: the animation doesnt rotate backwards, but you could essentially wind up the dial like a spring and watch it whip back 10 rotations May 21 05:19:38 it wouldnt have been don elike that in the first place May 21 05:19:58 ron_frown: is inside the main tag of the manifest May 21 05:20:14 I suppose that's a feature May 21 05:20:15 ron_frown: now if android could simply install said lib on-demand, everything would be perfect May 21 05:20:23 thats done that way on purpose May 21 05:20:25 ill go with that until i fix it ;) May 21 05:20:39 and speaking of that, how would i sideload that lib and just force it to work? May 21 05:20:41 those libraries are for people that pass cts compliance and have google certifhy their shit May 21 05:21:08 or could i maybe just fudge the manifest, hmmm May 21 05:21:17 i wish Google would spend some time on SpeechRecognizer May 21 05:22:31 speaktoid assistant had good voice recognition and natural sounding voices until they updated and made that paid version and the free version sounds robotic May 21 05:22:35 beastmanrage I've actually quite liked it May 21 05:23:47 there's a strange bug with >4.1 devices at the moment.. May 21 05:23:52 other than that it is nifty May 21 05:29:37 blah, how difficult can it be to point Maven at java.lang? May 21 05:30:05 uh, what? May 21 05:30:44 JakeWharton: I'm trying to build ACRA, and mvn compile is giving me "Fatal Error: Unable to find package java.lang in classpath or bootclasspath" May 21 05:31:00 do you have a JAVA_HOME set? May 21 05:31:52 yeah; maven compile -X reports: Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre May 21 05:32:45 Hello, could anyone give me some clues as to why in Google Analytics, under Engagment Events, it would give me a "number of your visits sent events" but doesn't show any reporting in the charts? am I missing something? May 21 05:33:55 under "[DEBUG] properties used", it reports that sun.boot.class.path includes /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar May 21 05:34:18 which should be right May 21 05:37:48 i tried setting CLASSPATH=$ANDROID_HOME/platforms/android-17/android.jar too May 21 05:37:50 in case it was that May 21 05:37:55 same error May 21 05:40:54 I just installed the jdk on my windows computer but cannot find where it was installed, but I need to set the enviroment variable. Any ideas? May 21 05:41:43 ron_frown: ive made progress with that online banking app now, talking to you gave me the idea to unpack and repack it without that lib marked as required May 21 05:42:16 if they use that shit, you are just delaying the inevitable May 21 05:42:48 ron_frown: as far as i can tell, the only thing they use the map lib for is to find nearby ATM's, the only feature i dont use May 21 05:43:00 so, lets just tear that feature out! May 21 05:43:24 do you have a bootloader on that device that will let you install zips May 21 05:43:30 or "flash" zips as most bootloaders put it May 21 05:43:58 ron_frown: no, but i have su working May 21 05:44:02 and i know how to unzip and put the files in the right place May 21 05:44:43 I'd be really really really surprised if there wasnt a package for google apps you couldnt just install on that device May 21 05:45:07 ron_frown: i already installed gsf and have gcm + play store 100% working May 21 05:45:28 ron_frown: but in the manifest file causes android to refuse to even install the package May 21 05:47:25 Hi everyone, would really appreciate if anyone knows anything about the following problem, could anyone give me some clues as to why in Google Analytics, under Engagment -> Events, it would give me a "number of your visits sent events" but doesn't show any reporting in the charts? am I missing something? May 21 05:50:36 ron_frown: crap May 21 05:50:40 ron_frown: 2 .super Lcom/google/android/maps/MapActivity; May 21 05:50:49 ron_frown: the main activity, subclasses a google map class! May 21 05:51:03 *facepalm*, so thats why it crashes when i fudge manifest only May 21 05:51:50 i'm guessing its just fragment based, and does that so it can pull in a MapView later on, *fudges more* May 21 05:58:20 ron_frown: and i forgot to also fudge the super.*() calls, oops May 21 06:00:58 ron_frown: and it starts! :D May 21 06:01:30 mire effort than I would have put into it May 21 06:02:08 ron_frown: ive tried to simply install the mapping lib before, but had no sucess May 21 06:02:58 was surpsingly simple May 21 06:03:15 what could be a cause for a service taking an eternity to restart? May 21 06:03:32 ron_frown: unpack it with apktool, remove the depency on google maps in manifest, and replace every reference of com/google/android/maps/MapActivity with android/app/Activity May 21 06:03:42 ron_frown: then repack with apktool, sign with the debug key, and zipalign May 21 06:04:08 i can now access my account balances and intiate transfers just like any device google has blessed May 21 06:04:34 and if i try to find a nearby ATM, it should crash, hmmm it just gave a list May 21 06:05:03 i cant make it crash!, lol May 21 06:05:58 ah, menu->view on map, kaboom! May 21 06:06:00 :D May 21 06:06:34 ron_frown: now that ive fixed that, i should get to bed May 21 06:09:10 JakeWharton, abs doesn't have the feature so the whole title is a button? May 21 06:09:17 is it possible to tap into the new offline voice recognition? May 21 06:09:24 canadiancow: no, that was introduced in 4.2.2 May 21 06:09:37 or something May 21 06:09:40 4.1.2 May 21 06:09:45 clever: whatever you are doing, there might be some other solution ;) May 21 06:09:51 4.2.2 i think May 21 06:09:57 something .2 May 21 06:10:04 whats the reasoning behind that? May 21 06:10:22 it wasn't around in 4.0 therefore it's not backported May 21 06:10:29 monsti: i basicaly forced an app using MapActivity to run on a device without the maps lib, everything except the MapView works now May 21 06:10:39 and i never wanted to use the MapView in the first place, so its done May 21 06:10:41 do you have to create the folder structure for instrument tests or can this be done automatically with android studio? May 21 06:10:46 oh you only backported ics stuff? interesting May 21 06:10:57 that's the only thing that makes sense May 21 06:11:00 so google recently announced that itll be making stock gs4s May 21 06:11:03 stock android* May 21 06:11:09 JakeWharton, i can see why one might want 4.2.2 features on 4.1 May 21 06:11:09 what does that even mean? just no bloatware? May 21 06:11:23 it means google will control the software, not samsung May 21 06:11:31 so no touchwiz, no extra apps May 21 06:11:34 faster updates May 21 06:11:35 etc May 21 06:11:38 but then you'd be using the compatibility implementation on 4.2.1 and before and the native version on 4.2.2 and up May 21 06:11:51 yes. is that bad? :P May 21 06:12:30 canadiancow, wouldn't rooting the phone and flashing the rom do the same thing? May 21 06:12:37 from ABS's view, yes May 21 06:12:37 flashing what rom? May 21 06:12:46 a* May 21 06:12:50 there is no stock google rom May 21 06:12:54 and this would allow it without rooting May 21 06:13:09 and rooting wont get you updates as fast as im hoping the google edition will May 21 06:13:34 so theres no stock google rom just android default correct? May 21 06:13:46 im not sure what you mean May 21 06:13:55 for samsung phones, theres a samsung rom May 21 06:14:02 for nexus phones, theres a google rom, or you can build your own aosp rom May 21 06:14:15 you might be able to build an aosp rom for non-nexus phones, but it's likely much harder May 21 06:14:31 i e.g. for amiga hardware ;) May 21 06:15:20 i have built the CM7 repo into a 'rom' for the raspberrypi, but the gralloc stuff was a mess May 21 06:15:33 ahh because its not hardware compatibile. so if i were to build an aosp rom the best/most compatible device owuld be nexus s/nexus 4 correct? May 21 06:15:41 and ive yet to find any decent documentation on that, so i cant really find the problem May 21 06:15:52 i think some nexus devices are easier to build than others May 21 06:15:54 and aosp roms = cyanogen and etc but just named differently? sorry ill ask any other questions in android-root May 21 06:15:58 i cant recall which is easiest right now May 21 06:16:04 no, cyanogenmod is not aosp May 21 06:16:06 aosp is aosp May 21 06:16:13 cyanogenmod is BASED on aosp, but has a lot of modifications May 21 06:16:26 canadiancow: its basicaly a fork, like the private samsung fork? May 21 06:16:26 but it basically used aosp as a framework May 21 06:16:31 but yeah, this is now approaching #android-root or #cyanogenmod May 21 06:17:08 clever its a "fork", but not in the same way blink is a fork of webkit May 21 06:17:18 when updates are pushed to aosp, CM merges them in May 21 06:17:33 so it's typically the latest AOSP plus other changes May 21 06:17:34 so they just keep the fork in sync with the original, when possible May 21 06:17:59 samsung probly does the same thing, but much less often May 21 06:18:07 they have to do the same thing May 21 06:18:12 otherwise it wont be compatible with apps and stuff May 21 06:18:14 it wont pass cts May 21 06:18:35 so they are all doing the same thing, its just a matter of open/private and how often they sync up May 21 06:18:48 and how much bloat they added May 21 06:18:49 and what of their own stuff they add on top May 21 06:18:55 not everything is "bloat" May 21 06:19:05 all depends on your viewpoint May 21 06:19:10 fair enough May 21 06:19:11 and if it can be shut off May 21 06:20:58 canadiancow: hmmm, looking thru the docs for zipalign, i see problems that i ran into with wine as well May 21 06:21:36 basicaly, the .text section of warcraft was not properly byte-aligned for mmap, so wine has to fake it with an annon mapping and reading the entire file (exactly why android needs zipalign, to save ram) May 21 06:21:58 and due to that, oprofile cant figure out what file the .text came from May 21 06:22:14 but now i'm really off topic! May 21 06:36:12 Good evening May 21 06:39:18 thatfreak: good evening May 21 06:39:45 [actually good morning here] May 21 06:40:00 Good morning then :D May 21 06:40:12 yeah,good morning May 21 06:40:18 =D May 21 06:41:21 >_> my service dies and restarts only when i enter the apps settings an look at it. why is it behaving like schrodingers cat May 21 06:44:02 Hi everyone, would really appreciate if anyone knows anything about the following problem, could anyone give me some clues as to why in Google Analytics, under Engagment -> Events, it would give me a "number of your visits sent events" but doesn't show any reporting in the charts? am I missing something? May 21 06:44:06 pls help May 21 07:05:43 anyone know how to create a test project to go along with my main project in android studio? Doesn't seem to be a template for it yet, but studio seems to support folders labeled as test folders. May 21 07:11:17 JakeWharton, i just made an ActionBarSherlockDrawerToggle class :P May 21 07:22:17 canadiancow: know what happened to ctate? haven't seen him in a long time May 21 07:22:41 he's still aroudn May 21 07:23:25 dunno why he's not here May 21 07:23:30 ask me when im at work and i'll ping him May 21 07:23:36 ;) May 21 07:27:09 canadiancow: sweet. I think there's a few floating around on GitHub as well May 21 07:27:41 i just merged ActionBarDrawerToggleHoneycomb into ABDT, and added checks for R.id.abs__home May 21 07:27:43 it was pretty trivial May 21 07:28:08 i did a quick search for it first, but nothing popped up on google May 21 07:28:18 one bug against abs, and it linked to something, but it wasnt obvious where the code was May 21 07:47:43 Hi, i need some help. right now i am developing an app where the app connects to a server over bluetooth and gets permanent some data the app should display. The problem i have is that the app should stay connected until user decides to disconnect and the input is much fasten then it can be displayed. So it leads to heavy memory consumption. Any suggestion how to avoid this? May 21 07:49:54 what data is it? May 21 07:50:23 you'll probably want to do something like stream the data to storage, while connected May 21 07:50:27 and display the data from there May 21 07:50:58 * Zharf nods May 21 07:51:02 if you do that right, with something like loaders, it shouldn't keep any more data in memory than it needs to display May 21 07:56:23 ok but can i access the stream and read from it while trying to store it? May 21 08:04:19 is it bad practice to point my projects at the compat library in the SDK instead of copying the library to my project folder? May 21 08:05:27 wutgui: you can, if you design for it May 21 08:06:19 on the UI side, you can use a CursorLoader, which will refresh automatically as the underlying source is updated May 21 08:06:55 that's assuming you're saving to a SQLite DB / content provider May 21 08:08:52 then you can save batches of data, and call notifyChange() May 21 08:10:24 or Cursor.onChange() May 21 08:13:09 Hi there, can somebody help me on my Bluetooth problem? http://pastebin.com/1Xyeh5Qb... it stopped working, keep getting this error instead of an connection May 21 08:14:11 i hate that damn popup that shows every time i go to pla.google.com May 21 08:14:25 The server is as simple as: http://pastebin.com/nVDWZvTX May 21 08:21:15 hi people. i'm new to android (not to dev or java in general), and i'm trying to get up to speed. i have skimmed the docs and apis but it is a lot to take in. i want to create a very simple app , with several "buttons" (probably custom graphics) at the top of the screen. i want to draw a circle in the middle of the screen, and when i click on each button i want it to move to the circle with an animation May 21 08:21:24 i have no idea whats going wrong, there was a point yesterday night where everything seemed to work (kind of) May 21 08:22:01 my first question is - can / should i do this with the standard layout containers or do i need to draw some sort of custom canvas and handle the animation myself? sorry if i'm not using the right terms, as i said i'm new to android May 21 08:22:10 any hints on the right direction appreciated May 21 08:23:48 i guess you have to draw, atleast the circle, into an canvas if you want "rich animations" May 21 08:24:17 but the canvas is just an embed object in a default layout container, which would include your buttons May 21 08:25:43 setamagiga: okay. so i can combine custom animations with a standard layout container? can you point me to the right part of the docs to read on this? May 21 08:27:01 anyone happen to know how to sum across a row in google spreadsheet? May 21 08:29:49 lasserix: this is an android development forum and not a google support forum => wrong place May 21 08:30:16 nm May 21 08:30:23 there is no place else, i know ;p May 21 08:30:46 antgel: i dont know where in the docs this is mentioned, but the technic is described here: http://www.techrepublic.com/blog/app-builder/bouncing-a-ball-on-androids-canvas/1733 May 21 08:31:11 android studio: Gradle: Unable to obtain path of project 'myapp'. Please re-import the project. May 21 08:31:32 I exported this project from eclipse and proceeded to try to reorganize it to match a new project in android studio May 21 08:31:39 anyone know hwo i can fix this error May 21 08:31:40 ? May 21 08:33:38 setamagiga: i'll have a look - thank you! May 21 08:36:42 hi all. i'm trying to get a transparent gradient in my app but, although i set up a shape gradient with the right alpha channel (#80cccccc), i got my transparent color rendered as black. i search the web and i found it could be related to opengl but i'm still wondering... anyone please? thanks May 21 08:37:26 Anyone can please suggest some lessons to learn programming for android on java? Also what programs woud you recommend, is Eclipse ok? Or it is too complicated for beginner? May 21 08:40:02 damccull: Many people have problems getting the export functionality working. An alternative is to simply "Import Project" from the main menu in AS and add dependencies manually. May 21 08:40:54 kjeldahl: It worked fine until I started reorganizing, lol. May 21 08:41:24 I think I might have found part of the cuase. It's not linked to a gradle project like the new autogen projects are. KNow how to link it by chance? May 21 08:42:03 Still have to following problem, need to get that shit done... Error: http://pastebin.com/1Xyeh5Qb Source: http://pastebin.com/nVDWZvTX May 21 08:44:08 Alina-malina: http://developer.android.com/training/index.html May 21 08:44:32 damccull, thanks! May 21 08:44:58 is there a standard Google Developer API key? May 21 08:48:57 damccull: Lucky you; I never managed to get Eclipse to export anything at all, it complained about me needing to have ADT version 22, which I did already. May 21 08:49:14 kjeldahl: heh sucks. May 21 08:49:42 kjeldahl: I had to download google's eclipse all over again and unzip it over the to of my old one to update my ADT May 21 08:51:10 I'm soo looking forward to Gradle becoming the number one build system, running independently of these "indistinguishable from magic" IDEs. ;-) May 21 08:51:30 that will be a huge pain to migrate from ant... May 21 08:51:50 i just want it to worrk! when i exported and imported to android studio, it was still building on ant I think May 21 08:52:03 or whatever uses the project.properties file May 21 08:52:14 i'm tryign to change the build system to gradle and having many problems May 21 09:08:39 is it possible to tell google play that I never ever want to update from talk to hangouts? May 21 09:10:31 hi guys, bounty expiring :P http://stackoverflow.com/questions/16509404/building-a-9-patch-drawable-at-runtime thanks May 21 09:12:48 hello, do any of you know about a library that could use the camera to scan documents and do post-processing (optimize colors, rotation, resizing etc)? Something like CamScanner but that is a Java/android library? May 21 09:14:00 Ge0rG: turn off automatic updates for it and just never update it May 21 09:14:07 Ge0rG: i like the new hangouts app May 21 09:14:11 but don't expect it to work forever. May 21 09:14:36 damccull: I don't want to see the notification. I don't want it to appear in the "update X apps" list May 21 09:14:48 damccull: also, I don't want to support google breaking XMPP May 21 09:15:48 You can't avoid it beeing shown there. May 21 09:16:17 Some things to hate with AS already: No default keyboard mappings for next/prev editor (when using splits), spell checking ("playerno" and "imgurl" are NOT typos), and defect null checks (and warnings, so what if ContactsContract.Profile.CONTENT_URI can be null if I check for it first). May 21 09:16:53 hi everybody. Can anybody tell me how I can access a View from outside an Activity? I have a helper class which is called from an Activity. In that class I do some heavy processing and would like to update a ProgressBar... I mean I can pass the Activity as a parameter to be able to call findViewById(), but I can't put "R.id.progressbar" or something like that in there, because it doesn't know "R"... how would I do this? May 21 09:17:03 Ge0rG: try to backup your current talk.apk, uninstall and reinstall from that apk. afaik that way it doesn't get linked to the Play store May 21 09:22:35 evident you cannot call a view from outside of the thread that it was defined in May 21 09:23:47 I suggest using an AsyncTask instead of your"Helper class" May 21 09:26:17 onDeleted is called in my AppWidgetProvider, but after deletion onUpdate still has the id May 21 09:27:53 how can i remove this phantom widget id? May 21 09:47:10 mc_plectrum: in my tests I found out that there might be a bug. I still get widget ids after I have removed all widgets from the homescreen May 21 09:48:23 nioncode: thx! maybe my pending intent is the reason, also i try to cancel it in onDeleted May 21 09:54:29 hey May 21 09:54:47 what's the best way to determine whether the running device is a sgs4? May 21 09:54:51 build.model? May 21 09:54:55 build.product? May 21 09:55:02 also, what would the values be? May 21 09:57:29 mc_plectrum: I think the issue is with the launcher itself, it keeps some non existing widget ids around May 21 09:58:46 nioncode: thats probably the reason, because i try to cancel the pending intent exactly as it is created, but after widget deletion it still fires May 21 10:03:25 When I hit the button the textview shows either 2 or 3 lines. When it goes from 2-3 lines or 3-2, the admob ad will move upwards/downwards a couple pixels. Why is that? http://pastebin.com/80YcnKhX May 21 10:04:38 from 3 -> 2 lines it is moved downwards, and from 2 -> 3 its moved upwards May 21 10:05:15 I mean the opposite :P May 21 10:05:36 hi all. i'm trying to get a transparent gradient in my app but, although i set up a shape gradient with the right alpha channel (#80cccccc), i got my transparent color rendered as black. i search the web and i found it could be related to opengl but i'm still wondering... anyone please? thanks May 21 10:05:51 Quacked: because the TextView gets smaller/bigger, so the next layout item moves up / down May 21 10:06:47 Right. How can I make sure the TextView doesnt move? :) That would also prevent it moving when the ad is loaded May 21 10:09:12 why don't you place the ad at the top or the bottom instead of in the middle of your layout? May 21 10:10:25 I'd like to have it above the button in this fragment :P May 21 10:17:11 ooh. unity3d free for android. tempting ... May 21 10:26:13 nioncode: decided that I wanted the ad under the button after all :p May 21 10:27:43 I have a CountdownTimer, I set the CountDownInterval (in constructor) to 10 seconds in miliseconds (10,000), it seems to run the onTick() more often than that..? May 21 10:54:17 Hi :> May 21 10:54:33 hey :) May 21 10:54:41 hi May 21 10:55:43 heyyyy ppl May 21 10:56:10 hey er_dos May 21 10:56:17 :) May 21 10:56:27 get your drawing working/ May 21 10:56:28 ? May 21 10:56:45 yes! May 21 10:56:50 i've made huge progress May 21 10:57:09 the memory usage for showing the pictures is down by 70mb, and no more memory problems May 21 10:57:40 er_dos: http://www.youtube.com/watch?v=1D1cap6yETA May 21 10:57:44 just getting through other little bits and pieces and getting familiar with the sdk May 21 10:58:52 hahhaha yes! that is exactly my sentiment! May 21 11:00:13 ok, i have a new issue, here's my code for a little popup dialog... http://pastebin.com/NmFHQkJR May 21 11:01:15 but it's telling me i can't have non-default constructors with fragments May 21 11:02:15 BUT if i make a setter for my OnSelectListener i don't know if it will be set before onCreateDialog is called, which will end up in a null pointer May 21 11:03:48 oh god, disregard that whole thing, eclipse is telling me exactly what to do May 21 11:03:50 >____< May 21 11:03:53 CARRY ON! May 21 11:09:46 Hi, There's MotionEvent.getButtonState() on android 14 and up on Java side, I can't find it on the NDK side, is it with a different name or something? May 21 11:10:48 So I have a bluetooth mouse and I'd like to be able to detect the button the user is pressing (left/right) May 21 11:11:33 hey May 21 11:11:48 AlexanderS: May 21 11:12:21 hello May 21 11:14:12 android vs ios May 21 11:14:22 which one to choose May 21 11:14:39 hi May 21 11:14:45 memoryleak: hi May 21 11:14:52 for android development i would go with android May 21 11:15:03 hrnt: obviously May 21 11:15:08 yola: i picked android because i had an android phone... May 21 11:15:17 but am asking which one to choose in general May 21 11:15:29 er_dos: ok reasonable May 21 11:15:56 what abt making money? May 21 11:15:56 Is there a simple way to test custom uri protocol handlers defined in the activity? Right now I'm sending E-Mails using an intent and waiting for the mail to arrive. And the myapp://abc link is not clickable in the mail app May 21 11:16:01 are you asking in terms of what sells more apps? May 21 11:16:44 actually not May 21 11:16:57 I have a viewpager and 3 tabs. Whats the best way of showing the same admob ad on the three fragments without it reloading when switching between tabs? May 21 11:17:04 which one is profitable building an app for android or ios May 21 11:17:27 yola: you should probably go platform independent May 21 11:17:33 oh, that only applies for games May 21 11:17:36 i think if you make something good for either there's enough people buying apps on both platforms May 21 11:18:07 ok May 21 11:18:16 what the programming May 21 11:18:20 which one enjoyable May 21 11:19:13 er_dos, I disagree, I can't imagine how mobile app development could ever be profitable May 21 11:19:16 but people still do it May 21 11:19:17 and I don't get it :) May 21 11:19:54 Quacked: you can just add it as a child in your layout or dynamically and set its layout param isDecor May 21 11:20:00 this is the best way May 21 11:20:22 Zharf: you mean u never started developing android apps? May 21 11:20:30 it also avoids another layer in the view hierarchy May 21 11:20:38 yola, I've been developing for android for 2.5 years now... May 21 11:21:03 and you haven't made any $$$? May 21 11:21:03 but I don't develop for money or glory May 21 11:21:15 Zharf: aha... that means your are the orginal May 21 11:21:18 hi guys... a newbie question: what tools usually you devs use to create images for apps more easilly? I mean, android just started with webp, doesn't support svg, so , you need to make something else to keep apps available to any resolution. How is it done? May 21 11:21:31 just for fun! May 21 11:21:51 yola, but it still seems like a far fetched idea that people are able to sustain themselves by selling mobile apps May 21 11:22:16 imo the bigger money is in ads, and anyone supporting ads can just go fuck themselves ;) May 21 11:22:37 Zharf: i was planning to start androi-programming and you are telling not start at all May 21 11:22:40 =D May 21 11:23:25 there's millions and millions of apps to choose from, the market is flooded with crappy and more crappy apps May 21 11:23:29 the users are confused May 21 11:23:40 it's impossible to find the actually good apps that you'd want to pay for May 21 11:23:46 SidGBF: we use SVG and have our build scripts render them to png's for our resources.. for most other graphics in the apps we use shape drawables where-ever possible and other drawable types to dynamically build images on-the-fly May 21 11:24:09 SidGBF: i also have code to parse and render SVG on android, but it needs more work May 21 11:24:37 Napalm: where do I set isDecor? May 21 11:25:06 Zharf: so what is the best way to make money in anyway? May 21 11:25:31 Napalm: is there a tip to pick between images and shapes? I mean, to avoid being a heavy app? May 21 11:25:38 yola, if it's just you writing apps for money, I don't think you'll make much... but you might learn enough to get a job at a company that does more than just android dev May 21 11:26:10 Zharf: aha. May 21 11:26:40 i want to joing GOOGLE:P May 21 11:26:50 let someone else worry about the incomes, is the best way to make money imo... not that I care about the money :p May 21 11:27:13 Zharf: that is good principle May 21 11:28:24 Zharf: how hard is joining google? May 21 11:29:09 just check their job offers, apply and see if they invite you May 21 11:29:11 I wouldn't know :) May 21 11:29:20 Quacked: your adview thingy https://gist.github.com/slightfoot/5619170 May 21 11:31:09 yola: very hard. typically there's 7-10 rounds of interviews for a technical position May 21 11:32:21 RobinB: wow May 21 11:32:33 hv u tried it? May 21 11:32:45 i've tried May 21 11:32:47 nothing... May 21 11:32:49 Quacked: ok? May 21 11:32:58 nioncode: is it possible to apply being undergrduate May 21 11:33:27 er_dos: what do u mean? May 21 11:33:39 i didn't get a response May 21 11:33:54 oh why? May 21 11:33:55 yola: nah, i don't want to at the moment May 21 11:34:01 who knows May 21 11:34:04 yola: you can apply for internships, seems to be a good way in May 21 11:34:15 SidGBF: well if you can do what you want without a png then great, check out the resources page in the sdk docs.. so lets take a button where you change the background color or do a background color overlay.. all that can be done in xml in a drawable. Then you only need the icon graphic itself of the button to be a resource and you can reuse it as the top layer of your button drawable. May 21 11:34:21 you apply though some random page on google, there's no way to follow up May 21 11:34:29 Napalm: but when I already inflate a different layout? May 21 11:34:51 er_dos: last month i applied for facebook May 21 11:35:10 there were an oline streeview programming question May 21 11:35:11 Quacked: what? i dont see the problem.. as long you place your view as a child of your viewpager you can then get the ViewPager.LayoutParams and set the isDecor to true May 21 11:35:13 i answered it May 21 11:35:23 then they kept silent May 21 11:35:35 Napalm: nice! thanks for this knowledge... I plan to start dev android in some month, but there are too many doubts :p May 21 11:35:36 streeview programming question? May 21 11:35:58 streetview is a company i think May 21 11:36:07 they prepare online programming questins May 21 11:36:13 oh right May 21 11:37:09 er_dos: are u student? May 21 11:37:21 nah i graduated in 2006 May 21 11:37:56 Found it. It's AMOTION_EVENT_ACTION_POINTER_{UP|DOWN} and the AMOTION_EVENT_ACTION_POINTER_INDEX_MASK that do the trick. May 21 11:38:08 Napalm: how do I place the view as child of the viewpager? I have three fragments set as tabs May 21 11:38:12 (regarding my question of handling other than primary buttons in NDK) May 21 11:38:13 I wouldn't even want to work for google May 21 11:38:18 er_dos: ok May 21 11:38:19 evil big corporations :E May 21 11:38:24 what do u do then May 21 11:38:59 freelance web development mostly, kind of getting bored of it though May 21 11:39:02 I work for a small subcontractee May 21 11:39:07 Quacked: what are you trying to do again? May 21 11:39:32 er_dos: emmmm May 21 11:39:38 i'm just gonna get rich of my android app and retire to a tropical island like Zharf May 21 11:40:02 good plan May 21 11:40:03 tropical island would be hellish for me :p May 21 11:40:21 north pole maybe? May 21 11:40:27 er_dos: you have android app? May 21 11:40:28 hehehe May 21 11:40:36 almost! May 21 11:40:43 north-pole is not very future-proof :) May 21 11:40:51 RobinB, yeah, south-pole might be better option May 21 11:40:58 i'm in the process of making this: http://gifbone.com/ into an android app May 21 11:41:07 i'm considering new zealand at the moment. May 21 11:41:16 Napalm: I have a viewpager with three tabs and I want to show an adview to the bottom of each of those fragments. But I'm using setOffScreenPageLimit(1) so moving from tab1 to tab3 reloads the ad. I don't want to reload the ad when moving between those tabs :) May 21 11:41:22 zharf was telling me that it is difficult to make money using android May 21 11:41:32 And I don't want to set the screenpagelimit to 2, because that messes up a lot of other stuff :P May 21 11:41:40 i'm sure it is May 21 11:41:46 but that's no reason not to try May 21 11:41:54 making money in mobile by yourself is difficult. discoverability is your biggest hurdle May 21 11:42:05 RobinB, exactly May 21 11:42:21 plus, even if i don't sell anything, making stuff is enjoyable, and you pick up good skills along the way May 21 11:42:31 er_dos++ May 21 11:42:40 er_dos: nice May 21 11:42:43 which you can always use in every-day type jobs May 21 11:42:44 Quacked: sure it would, so do as i suggested, move the advert code out of the fragments and into the parent that has the viewpager code. now look its magic.. the view doesnt reload when changing pages. May 21 11:42:45 that's a good way to approach it. May 21 11:42:58 :) May 21 11:43:14 RobinB: discoverability?? May 21 11:43:32 I hadn't written any code for a 2-3 years before I was give an android to play with (and a job :p) May 21 11:43:36 yola: people have to be able to find your app May 21 11:43:50 yola, like I said, there's millions of apps to scour to find your app May 21 11:43:57 hmmm May 21 11:44:00 with close to a million other apps out there, that's not an easy task, especially with the small window that is the play store / app store May 21 11:44:18 yeah i definitely don't think you can rely solely on people stumbling onto it May 21 11:44:27 Napalm: but I cant do onCreateView in the FragmentActivity (with the viewpager) May 21 11:44:36 there's several ways around it, but none of them are especially easy May 21 11:44:41 I have some 2k installs in half a year solely on people stumbling onto it :p May 21 11:44:48 you dont have to use onCreateView May 21 11:44:51 easiest might be having a popular app already, that you can use to cross-promote May 21 11:44:51 god May 21 11:44:52 but I never advertised it, and didn't care to either :) May 21 11:44:57 oh wait, sorry May 21 11:45:09 RobinB: aha May 21 11:45:12 just inflate your advert and add it to your viewpager May 21 11:45:46 RobinB: i am facing similar problem in my blog May 21 11:45:58 other options are spending $$$ on advertising. or getting lucky with review blogs. May 21 11:46:02 google refuses to approve my blog May 21 11:46:22 doing shady things? May 21 11:46:37 RobinB: J? May 21 11:46:39 ? May 21 11:46:46 well, why won't they approve it? May 21 11:47:16 i dont know because they assumed i will not benefit them May 21 11:47:29 my laptop battery is running out, got to get my charger May 21 11:47:45 RobinB: ok May 21 11:47:49 why does google need to approve your blog? May 21 11:48:28 if you want to use google adsene google must first approve your blog May 21 11:49:08 why do you need a blog to use adsense? -.- May 21 11:49:23 to make money May 21 11:49:29 doesn't compute May 21 11:49:38 they *refuse* to approve it, or they haven't yet approved it? May 21 11:49:45 i.e. have they actually rejected you? May 21 11:49:51 Zharf: ? May 21 11:50:06 Leeds: yeah May 21 11:50:16 yola, you make money from the ads from adsense, but why do you need a blog to use adsense? May 21 11:50:20 with no reason May 21 11:50:39 yeah, Google aren't big on 'reasons' May 21 11:50:55 Zharf: i want to make money with my blog using google addsesn May 21 11:50:59 addsense May 21 11:51:05 ok that makes more sense ;) May 21 11:51:10 write a better blog then May 21 11:51:18 although I'd still block your ads :E May 21 11:51:28 hah.. May 21 11:51:30 i think it is good May 21 11:51:38 i have got about 1200 visits May 21 11:51:53 http://javaprogrammmingintro.blogspot.com May 21 11:52:26 Leeds: have u faced the same problem ? May 21 11:52:34 nope May 21 11:54:56 I've made 55p from my blog May 21 11:55:48 Dark-Side: 55p=55 pounds? May 21 11:55:51 Heya folks, quick question regarding services and broadcastreceivers May 21 11:56:00 no yola May 21 11:56:05 £0.55 May 21 11:56:05 I have activity A and activity B May 21 11:56:21 they both have identical broadcast receivers May 21 11:56:42 a tech blog is hard to make any money on because the people who read it will more than likly be using adblock May 21 11:56:43 Dark-Side: tell me the secret then May 21 11:56:43 this results in an unwanted bug for me where activity A sends out a request, but activity B catches it May 21 11:56:43 Napalm: Do you know any youtube or even paid video classes that are actually good to learn? May 21 11:57:11 Napalm: like this? http://pastebin.com/4FaKw6aa May 21 11:57:14 I am trying to filter that out, any way to check e.g. an intent's calling activity? Or set up the intent filter on the receiver to ignore requests from other activities? May 21 11:57:18 You need a blog that gets high google rankings is simple everyday life problems that normal people who dont use adblock will find May 21 11:58:12 Dark-Side: like what? May 21 11:58:15 Namely, this is related to a search auto complete functionality, where I send a server request for that, and when activity B starts (search results), its autocomplete pop up box appears because an autocomplete request from activity a was underway May 21 11:59:11 yola: find out for yourself May 21 11:59:37 hah May 21 12:00:36 a friend of mine has made lots on a post about repairing a scratched motocycle helmet visor May 21 12:05:37 Napalm: and the decor_adview.xml should reallye be omg May 21 12:05:50 its whatever view you want May 21 12:05:57 it was an example May 21 12:06:04 yola: a daily blog of applying self-help principles would probably do i May 21 12:06:06 *it May 21 12:06:39 * Quacked scratches his head May 21 12:07:17 Quacked: what are you currently using for your ads? May 21 12:07:21 use that May 21 12:07:28 you dont have to inflate it May 21 12:07:53 just set the layout properties like gravity when you set the isDecor to true May 21 12:07:58 ads... the most reliable way to ruin your carma for 5 bucks a month May 21 12:08:17 karma May 21 12:08:26 i'm following the hello world tutorial at http://developer.android.com/training/basics/firstapp/running-app.html. using windows 7, eclipse juno, android sdk 4.2.2. i've just created a new android project, and it won't build. i get 'R cannot be resolved to a variable" in MainActivity.java lines 12 and 18. can anyone give this nevwbie a clue? eclipse has always frustrated over the years, but if i want to develop android it se May 21 12:10:09 You got cut off at " but if i want to develop android it se" May 21 12:11:06 And this doesn't really sound like an Eclipse problem. Did you skip any steps? May 21 12:12:54 Napalm: this is what I use for the ads: http://pastebin.com/EszRens9 May 21 12:14:35 antgel check the problems window in eclipse, most likely a badly named asset May 21 12:17:09 atm I have that pastebin in the decor_adview.xml, but all my fragments are blank May 21 12:23:12 Napalm: and this is the current decor_adview.xml: http://pastebin.com/3EXNR7xS May 21 12:23:29 With that no ads are displayed May 21 12:23:39 but all the fragments look normal May 21 12:25:06 I had forgot to do the adrequest May 21 12:25:10 * Quacked facepalms May 21 12:25:21 Quacked: you also should not wrap it in a LinearLayout May 21 12:25:29 use it as is May 21 12:25:36 and just add the android:layout_gravity to it May 21 12:26:20 I got error: Error parsing XML: unbound prefix without the linearlayout May 21 12:26:48 Just needed xmlns:android="http://schemas.android.com/apk/res/android" May 21 12:27:14 :) May 21 12:28:18 I do like this method, thanks for spoon feeding me :) May 21 12:28:44 Gaz`: hi, and thanks. the error messages above came from the problems window in eclipse, so let's say i already looked there :) how can i resolve this and why should i have a badly-named asset in a newly-generated project? May 21 12:28:52 and how do i find out what it is? May 21 12:30:43 nitind: hi, don't worry about the last sentence. i didn't skip any steps, i followed the tutorial. i don't know if this is an eclipse or other problem, all i know is that i can't even compile the most simple android project May 21 12:30:56 Obviously when loading the app and the ad isnt showed yet, it will move the other content up when it displays the ad. Should I try to avoid that with a blank space where the ad will be? May 21 12:31:17 yes May 21 12:31:44 this way if there is a net connection issue or something else, then at least they have more content on the screen May 21 12:32:08 yeah, so you mean I should NOT avoid it? May 21 12:32:34 i mean just leave it with wrap_cotent on the height of the adview May 21 12:33:14 yeah, I just don't like apps moving after I open them :p May 21 12:34:33 is this how selection is supposed to look with an image? http://penr.ee/P5gF May 21 12:35:14 I can't for the life of me figure out why tapping shows a full width selection, but one it is selected it doesn't include the image in selection May 21 12:35:14 don't think so, drudge May 21 12:36:00 what is the image a ImageView or ImageButton or what and what background did you set on it? May 21 12:36:35 it is an imageView, no background set. tapping looks like this http://penr.ee/P5oO May 21 12:37:41 imageView ? why not just have a "button" with a drawableLeft ? May 21 12:38:08 dear all , i have a sgs2 divice 4.1.2 JB , the problem is : there is a folder in DCIM named .thumbnail , this folder is geting so larg , 3.5 GB ,located in internal storeg , i did delete the folder from PC by connecting my mobile to it. but as soon as i take any photo , my divice create the folder . i understand that this folder is contain thumbnails of my images but , i did delete all May 21 12:38:08 my images , but the folder kip geting larg and larg ! May 21 12:38:48 StingRay_: https://gist.github.com/drudge/44b92d5c5ba448b0da92 May 21 12:39:08 drudge: yeah, but why not use a button ? May 21 12:39:22 I've never seen listview rows implemented as buttons May 21 12:39:24 as in whats the reason … I was just asking tis all May 21 12:39:47 oh it;s a list view May 21 12:40:00 huh, could still use a button :) May 21 12:41:44 just use a TextView May 21 12:43:19 Napalm: i am, just not sure why selection doesn't cover the image May 21 12:43:27 weirdest thing ever, "cannot resolve symbol android.R.id.home" May 21 12:43:32 because it goes underneath May 21 12:43:39 and you somewhere are setting it to blank May 21 12:43:54 wait May 21 12:44:08 remove the background from your textview May 21 12:44:13 and move it into the linearlayout May 21 12:44:23 that should fix your problem May 21 12:44:41 ah that did it May 21 12:44:46 thanks Napalm May 21 12:44:51 but you should use the linearlayout and imageview.. you can do it all with a simple textview May 21 12:44:51 hi to all, i have a problem with DNS in my client-server app. i have a dns that will be resolved in 2 ways, one for 3g, one for wifi. actually if i switch from 3g and wifi the only way to do app works is to forse close app in settings. there is a way to clean dns cache? or anyone have a better idea? May 21 12:45:12 Napalm: how so? May 21 12:46:02 someone already mentioned set the drawableLeft of the textview May 21 12:46:11 and add drawablePadding May 21 12:46:34 look up those attributes in the TextView docs and you will see the functions you have to call to set them in code May 21 12:49:29 Napalm: Perfect, works great. Thanks again May 21 13:11:49 I'm quite confused about how fillInIntents work in RemoteViews? Does anyone know where i can find a good example to explain it? May 21 13:12:05 i'm following the hello world tutorial at http://developer.android.com/training/basics/firstapp/running-app.html. using windows 7, eclipse juno, android sdk 4.2.2. i've just created a new android project, and it won't build. i get 'R cannot be resolved to a variable" in MainActivity.java lines 12 and 18. can anyone give this nevwbie a clue? May 21 13:13:04 antgel: is there anything in the gen/* folder ? May 21 13:13:20 StingRay_: hi, thanks for answering. let me check May 21 13:13:36 btw, thats a question, not an answer ;) May 21 13:14:33 StingRay_: semantics ;) anyway just waiting for eclipse to load (had to reboot) May 21 13:15:08 you going down a path where semantics are….somewhat important :) May 21 13:15:29 also, have you changed ANYTHING at all ? May 21 13:15:44 and is there no more info in the "error" pannel in eclipse May 21 13:15:45 ? May 21 13:15:54 StingRay_: i'm aware of the irony. :) anyway, gen is empty, and i haven't changed anything. just created the project May 21 13:16:18 StingRay_: i'm looking in the "Problems" panel, i don't have an "Error" panel. let me see if i can view it May 21 13:16:26 Problems yeah May 21 13:16:51 StingRay_: it's a vanilla project, nothing exciting May 21 13:19:15 i also tried to create a ApiDemos sample project to build, and that has the same errors (and others such as "IRemoteService cannot be resolved" May 21 13:21:54 you tried a clean on the project ? May 21 13:23:22 also check project properties, make sure android settings are correct and that the target api vals are there and that you have them downloaded in the sdk manager May 21 13:23:33 StingRay_: yep. hmm, this is weird. all the folders in MyFirstApp, including gen, are Read Only in Windows Explorer. i'm guessing this is very wrong - can you compare with yours? May 21 13:23:40 but how would that happen? May 21 13:24:18 StingRay_: properties are good - 4.2.2 present and correct May 21 13:25:00 is there an eclipse wizard for PreferenceScreens? May 21 13:41:49 Hello. I want to "style" this on my device (with all resolutions). What would be the best way to do that? http://theftspy.com/lizenz-screen.png May 21 13:42:16 Linear Layout and "ImageView" and TextView in a RelativLayout and 2 Buttons? May 21 13:44:10 misterli: just the standard way May 21 13:44:57 nice little visual, I would maybe consider the "prem acct" and "basic acct" in bold though May 21 13:45:22 cause the colors may just not be strong enough May 21 13:45:30 just an opinion though May 21 13:45:49 yeah. The colors and Font is not the Problem. I just want to let it look equal on all devices May 21 13:46:26 well you need muliple versions of the logo May 21 13:47:35 and the 2 elements that you call buttons are from a design stand, not totailly apparent that the user can click/choose May 21 13:47:42 yeah but base should be linearlayout, right? linear and then 3x relativlayout May 21 13:47:58 relativeLayouts ? May 21 13:48:01 why ? May 21 13:48:21 for the buttons. Ah. This is not required. I just have to design a custom Button. This would do the job. May 21 13:48:54 but like I said, not 100% apparent they are choice/buttons May 21 13:49:09 yeah. How about a border? May 21 13:49:21 assume that the user is…erm….not logical May 21 13:49:21 darker border. More thick May 21 13:49:34 misterli: would not be my choice no May 21 13:49:55 Ive always used eclipse, in eclipse it was possible to directly install the apk on the device (in debugging mode) by running as > android device. Does this feature exist in android studio? May 21 13:49:58 you should try and indicate an "action" May 21 13:50:25 and by that i mean, lets say "choose/ choose + move on" etc May 21 13:50:43 yes May 21 13:50:43 now think of a visual that indicates that May 21 13:51:00 and make it enough so that it's obvious to some extent May 21 13:51:11 without being..erm…. overbearing May 21 13:51:34 overbearing* May 21 13:53:08 misterli: as an example, ios does this with left to right arrows, cause the ui flow is such at that point as to move to the right May 21 13:53:15 etc May 21 13:54:29 yeah, i know. I'll about choosing arrows May 21 13:56:33 Is there a run on > android device for directly installing an apk on the device through adb? without signing it packaging, and mnanually doing it May 21 13:56:53 for android studio * May 21 13:57:01 I'm converting my app to also work with 2.3, what should I use instead of TaskStackBuilder (only works available for 3 and up)? May 21 14:00:34 How can I make a preference header that doesn't launch a fragment--essnetially just "intro" or instruction text. May 21 14:02:14 i'm following the hello world tutorial at http://developer.android.com/training/basics/firstapp/running-app.html. using windows 7, eclipse juno, android sdk 4.2.2. i've just created a new android project, and it won't build. i get 'R cannot be resolved to a variable" in MainActivity.java lines 12 and 18. can anyone give this nevwbie a clue? May 21 14:02:36 What is R? May 21 14:02:58 nitind: resources class May 21 14:03:05 Is it imported? May 21 14:03:31 antgel: sounds like its not imported or your project is not built, try a clean build of your project May 21 14:03:47 thijser: what about the TaskStackBuilder in the support library May 21 14:03:48 ? May 21 14:05:07 Napalm: i've tried a clean build. gen directory is empty. for some reason R.java doesn't even get generated. perhaps i shoudl have mentioned that as well May 21 14:05:12 When I start an activity from a fragment, what state does the fragment go into? isVisible() is still true, even though there is an activity with fragments in front of it May 21 14:05:26 antgel: probably because you have problems in your resources May 21 14:05:31 these are noted in the build log May 21 14:06:26 Napalm: now we're talking. where is the build log? i don't see it in any of my Problems, Console, or Error Log windows May 21 14:06:42 first i suggest you turn on verbose building May 21 14:07:10 go to window > preferences > android > build May 21 14:07:17 and click verbose May 21 14:07:19 then apply and ok May 21 14:07:26 do a clean build May 21 14:07:43 and then go to the console view pane and on the right make sure you select the Android log May 21 14:07:51 Napalm: i had already smelt something there :) had already changed from silent to normal. trying now May 21 14:07:52 you will see everything during the build process there May 21 14:09:34 Napalm: a great idea but the result was underwhelming: May 21 14:09:37 [2013-05-21 17:08:11 - MyFirstApp] Removing generated java classes. [2013-05-21 17:08:11 - MyFirstApp] Starting full Package build. May 21 14:09:54 and the rest? May 21 14:10:17 press the play button May 21 14:10:18 appel1: that is only from version 3 and up so not 2.3 unfortunately May 21 14:10:18 Napalm: that's all May 21 14:10:46 thijser: huh? May 21 14:11:30 Napalm: when i press play it tries to start a tomcat server from an old run configuration May 21 14:11:34 thijser: the support library works with api level 4 May 21 14:12:02 Napalm: when i click on arrow next to play it has 1: tomcat 7.0 server at localhost May 21 14:12:16 thijser: which is Android 1.6 May 21 14:12:28 antgel: sounds like you have chosen the wrong run configuration May 21 14:12:57 remove your current one May 21 14:12:59 Napalm: true but you told me to click play ;) i don't want to run it yet, just to build it May 21 14:13:04 hmm, let me check May 21 14:13:11 antgel: you can turn on auto build May 21 14:13:26 Napalm: auto build is always on anyway May 21 14:13:35 for me May 21 14:13:59 i don't understand why this is so hard to debug i.e. why there isn't enough visibility to see what's going wrong May 21 14:14:36 thijser: no idea if it does what you want though =) May 21 14:14:46 and this is a *new project* that i created according to tutorials. what could be simpler? :-/ May 21 14:15:25 hey there, anyone have any idea about intellij, everything builds fine from maven/cli but intellij shows unresolved method on "getChildFragmentManeger()" for some reason May 21 14:15:34 appel1: ahh I see now, stupid that I missed it, thanks :) May 21 14:15:41 Manager* May 21 14:17:23 antgel: sounds like you have actual eclipse problems May 21 14:17:40 antgel: i assume you've updated ADT inside eclipse May 21 14:18:31 Napalm: *shrug* i don't know. if there is a problem, why don't i see a relevant error? and indeed adt is fully up to date, as is eclipse May 21 14:18:56 antgel: ask yourself this, why did it try and run as tomcat May 21 14:19:32 antgel: next to the play button choose the drop down and go into the run configurations, remove everything there, then select your project on the left and press play May 21 14:19:39 it should then ask you want you want to run-as May 21 14:19:45 choose Android Application May 21 14:25:14 You can just right-click on the project itself for that, and see what's in the Run As menu. The default is to show you the launch types for the selected resource/project. May 21 14:25:36 /leave bye all May 21 14:32:54 can we obliterate phone gap? May 21 14:32:57 please May 21 14:33:56 WHy does it matter to you so much? May 21 14:34:20 nitind use your imagination! May 21 14:35:30 'sup channel? May 21 14:37:39 brx wants to obliterate PhoneGap, but won't say why. May 21 14:39:13 nitind simply because if a client wants to target multiple platforms they automatically think "phonegap!" May 21 14:39:45 openintercal is so much better. May 21 14:40:09 I am having trouble with CountDownTimer, it seems to only call onFinish() after 2 ticks, and ignores onTick for those 2 May 21 14:41:16 Still cant figure this out : ( May 21 14:41:30 Anyone versed in the intelliJ IDE? May 21 14:42:41 Has anyone tried Google Cloud Messaging ? Is it widely used? May 21 14:42:55 What would be an alternative? May 21 14:42:57 crised, ye May 21 14:43:21 brx_: Which is a similar product? May 21 14:43:33 why not use GCM? May 21 14:43:43 have you hadsome problemwith it? May 21 14:43:44 brx_: Can you explain me something? How does the server push into the device? May 21 14:43:58 Is the device listening in some port? May 21 14:44:02 How is the system? May 21 14:44:07 the device is registered with GCM May 21 14:44:16 your server sends a POST to google...then they send the push May 21 14:44:17 the device keeps a persistent socket connection open to the server for all apps to tap into May 21 14:44:23 crised: it piggy backs on the same system Google uses for their services like Gmail May 21 14:45:01 If they send a push, then the thedive must be listening, right? May 21 14:45:09 *device May 21 14:45:23 ye, its listening as appel1 and deleet said May 21 14:45:26 crised: it already is May 21 14:45:26 I just told you, there's a persistent socket connection always established at the OS level May 21 14:45:48 you just get 'broadcast receivers' (not exactly) from it May 21 14:46:11 deleet: A persistent socket connection? That would surely use more energy, than checks for updates every 10 minutes May 21 14:46:12 right? May 21 14:46:20 no it doesnt. May 21 14:46:32 (supposing not having Google apps on the phone) May 21 14:46:43 deleet: Why not? May 21 14:46:50 crised: if you don't have the Google apps then you can't use GCM May 21 14:46:50 because of the way cell radios work May 21 14:47:08 and you need the device to be registered with a google account in order to use GCM, like appel1 says May 21 14:47:57 Which would be an open source alternative to this? How can I make a server that pushes directly to the device? (without google servers) May 21 14:48:01 the gcm connection is already "using more battery". if you add your own, you are further increasing the suckage. May 21 14:48:15 crised: you hate your users battery that much? May 21 14:48:16 crised: you could use xmpp, imap or mqtt May 21 14:48:24 I've used xmpp before successfully May 21 14:48:32 xmpp is HARD on mobile. May 21 14:48:42 appel1: I'm thinking in a corporaate app, where they won't like Google inside May 21 14:48:54 Ge0rG: true but it can work if you customize it properly May 21 14:48:57 you can encrypt the message May 21 14:49:06 deleet: yes, this is what I mean by "hard" May 21 14:49:07 So having Google Maps, automatically GCM is enabled May 21 14:49:12 mmk May 21 14:49:13 that can leave you vulnerable to tresaffic analysis it course May 21 14:49:17 traffic May 21 14:49:39 crised: not sure about maps, but when you register a gmail account in android, you have gcm. May 21 14:49:52 and recently, maps started refusing to work without a gmail account May 21 14:49:56 I'm not sure if to use maps you need an account or not May 21 14:49:58 oh ok May 21 14:50:11 with no obvious reason May 21 14:50:34 pattern gathering most likely May 21 14:50:40 crised: so Android is pretty much off the table then considering most of it is written by devs at Google May 21 14:50:41 is there a wizard in eclipse for preferencescreens? May 21 14:50:46 Ge0rG: So it's impossible to use Google Maps in android without gmail account? May 21 14:51:10 you need an account to use any of the google services/apis dont you? May 21 14:51:11 crised: you can use the google maps api in your app without a google account I believe May 21 14:51:13 crised: as of some months ago, yes. May 21 14:51:27 crised: the Google in the name of the app gives it away I think =) May 21 14:51:30 brx_: do you need one for displaying information through the api? May 21 14:51:39 (the user not the developer) May 21 14:52:58 deleet, not sure, displaying information such as what? May 21 14:53:45 The persistent socket connection is TCP based, right? May 21 14:54:09 hey there, anyone have any idea about intellij, everything builds fine from maven/cli but intellij shows unresolved method on "getChildFragmentManager()" for some reason May 21 14:54:21 crised: yes May 21 14:54:29 crised: maybe it is even xmpp May 21 14:55:12 Ge0rG: mm, Weird thing that there isn't a framework already done to do the same thing as Google does. May 21 14:55:59 Is there really no option in android studio to Run as > android application? gah.. May 21 14:56:37 brx_: well, to fetch map tiles via the gmaps api, does the user still need a google account? May 21 14:56:39 * Delvien is switching back to eclipse more than likely May 21 14:56:41 crised: what kind of framework? a cloud push messaging service? who would be interested in writing and maintaining it? May 21 14:57:05 deleet: I think all you need for fetching tiles is the api key May 21 14:57:14 deleet: and of course the gmap library installed May 21 14:57:15 crised: there hasn't really been any significant push to replace Google stuff with 'open' stuff at all, for any services - the core platform is open, the services mainly aren't, and most people don't care May 21 14:57:28 deleet, i was going to say i thoughtyou did need an account, but seems Ge0rG knows more than me May 21 14:57:59 yeah, it is hard enough to do such a simple thing as an IM client :) May 21 14:58:35 crised: one difficulty with an open source replacement is that a lot of it requires a server backend.. May 21 14:58:40 also, of course, you need a back-end to do server push May 21 14:58:44 appel1: yeah :) May 21 14:58:55 I think an app with GCM will be much simpler than quering every 5 minutes server for updates May 21 14:59:07 crised: is there a point for this integration? I dont think people will use it instead of google's because google's is essentially free May 21 14:59:23 it's also cross platform now so there's even less of a point now May 21 14:59:26 deleet: I was thinking only in privacy matters May 21 14:59:39 for what it's worth, my 'main' app does every N minute querying... I don't control the server, but I'm thinking I really should put together a 2013 edition with GCM and do the server querying myself May 21 14:59:42 so encrypt your data before you send it May 21 14:59:48 and have the local device decrypt it May 21 15:00:05 deleet: I suggest ROT-13 May 21 15:00:15 deleet: I see May 21 15:01:02 double rot13! May 21 15:01:20 Leeds: clearly secure May 21 15:01:27 GMC only supports 4Kb payload data? So this is just to poke the device May 21 15:01:32 Ge0rG: double the security! May 21 15:01:44 Delvien: I can run my app on my htc phone with Android Studio, not sure what you're asking May 21 15:01:45 crised: it's only to _wake_ the device.. then you do w/e you want May 21 15:01:53 you can get a lot of data into 4k May 21 15:02:06 you can fit a tiny bit of payload if you like, such as instructions to what to look for May 21 15:02:15 but the goal is to wake up, perform action, go back to sleep May 21 15:02:38 it's not for sending images to clients :P May 21 15:02:42 deleet: wake the device, then the device should fetch Restful resource May 21 15:03:01 crised: you can send a fetch: url command in the payload for example May 21 15:03:07 deleet: I see... Do it works backwards to send from device to server? May 21 15:03:14 deleet: I see... May 21 15:03:18 I believe it does now, after Google I/o 13 May 21 15:04:10 it was announced, not sure if it's actually available yet May 21 15:04:16 and I can open the same project folder from eclipse in Android Studio and run from there, but when I go back to eclipse I have to clean the project to get it to work in eclipse again May 21 15:04:20 shmooz how? I cant seem to find where to do it May 21 15:04:58 shmooz in eclips i just right click the project Run as > android application, but in android studio I cant find it May 21 15:05:07 I dont think studio is quite ready for prime time yet May 21 15:05:09 give it another month May 21 15:05:21 Delvien: in project properties you can select if you want USB Device or Emulator preferred , or if you want it to ask you to choose one with a dialog May 21 15:06:12 shmooz: is it not in the run configuration rather than proj properties ? May 21 15:06:34 Delvien: to be more precise, to the left of the RUN button it says your Project name, click on it and select Edit Configurations May 21 15:07:32 and under the General Tab, you'll see a 'Target Device' section, I select the 'Show chooser dialog' myself to have it ask me which device or emu May 21 15:07:41 What's a good way to avoid DialogFragment resizing if text size is changed between 2-3 lines? Here is a screenshot: http://bildr.no/image/1621404.jpeg and here is the XML: http://pastebin.com/B7EVppfk May 21 15:07:55 shmooz you sir, are awesome. May 21 15:08:07 my pleasure :) May 21 15:08:21 Quacked: set a maxLines property May 21 15:08:37 :O May 21 15:08:54 next time read the sdk :P May 21 15:09:24 https://github.com/excilys/androidannotations/wiki - wow, that looks like magic. anyone used itß May 21 15:09:25 Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES], uh ohs lol May 21 15:09:30 s/ß/?/ May 21 15:12:20 Thanks, Napalm May 21 15:12:27 though minLines would be better suited here May 21 15:12:33 but you pointed me in the right direction, hehe May 21 15:13:00 guess i can just do test keys then sign before shipping. man i kind of miss eclipse May 21 15:14:42 Delvien: whats up? you using the new Android Studio May 21 15:14:44 I'll keep eclipse around until I get good at Android Studio, they both work side by side May 21 15:15:49 Napalm: thanks but again, what is running to do with this? the problem is before i even try to run it, during the compilation phase May 21 15:16:07 Napalm yeah May 21 15:16:23 Napalm: i don't see how changing the "Run As" configuration has anything to do with building May 21 15:19:42 so, pretty much desperate here, bounty ends in 3 hrs .. http://stackoverflow.com/questions/16509404/building-a-9-patch-drawable-at-runtime May 21 15:20:06 I'll throw some beer to anyone who solves this lol May 21 15:20:17 deleet: you dont need a ninePatch for that May 21 15:20:18 at all May 21 15:20:27 how so May 21 15:20:36 for a unversal way, use a shape + layer-list May 21 15:20:39 2 layers May 21 15:20:43 2 shapes May 21 15:20:46 done May 21 15:20:48 :) May 21 15:20:49 it's not just *this* image May 21 15:20:52 it's hundreds like it :P May 21 15:21:03 thats a really bad way to create a nine-patch in code May 21 15:21:10 it doesnt account for how they have changed in the framework May 21 15:21:27 deleet: 2 shapes, really easy May 21 15:21:30 lightweight May 21 15:21:33 color inputs May 21 15:21:39 can have millions May 21 15:21:43 :) May 21 15:21:55 again, it's not always this kind of image or shape or anything .. I need something generic May 21 15:22:10 put it this way May 21 15:22:19 any prog gen bitmap 9patch May 21 15:22:20 I've thought about doing that before but it won't work since all I'm getting from the other side is literally an image May 21 15:22:24 your better off using shapes May 21 15:23:30 I know that but I can't, unless I go about parsing every pixel in the source image in the first place May 21 15:23:38 which, btw, is also unfeasible May 21 15:23:55 Napalm: do you have better suggestions? May 21 15:24:45 why would you load and parse bitmaps ? May 21 15:24:49 GCM -> A Google account is not a requirement on devices running Android 4.0.4 or higher. May 21 15:24:54 Ge0rG: ^ May 21 15:25:00 deleet: yes, i had code for this once, one moment May 21 15:27:51 deleet: are they always buttons? May 21 15:28:27 it the nine patch always works the same way? May 21 15:32:19 Napalm: yeah. On 4.0 I can get it to work just fine, not on 2.3 May 21 15:32:33 they're always 'buttons' yes May 21 15:32:58 are they always the same size? May 21 15:33:04 the images May 21 15:33:14 no, the image sizes differ, the insets as well May 21 15:34:13 deleet: the best thing i can advise is to use http://androidxref.com/ and see how the ninepatches chunks have changed between the versions and in the code detect the running version and account for it May 21 15:34:38 deleet: it might be worth, looking into what those skiped bytes mean May 21 15:35:08 see, I've copied the entire byte array chunk from the same image generated from appt and got the same result May 21 15:35:28 crised: wow, I wonder how they bind it then... May 21 15:35:49 deleet: this looks helpful http://androidxref.com/2.3.6/xref/packages/apps/Camera/src/com/android/camera/ui/NinePatchChunk.java May 21 15:36:58 yes I've seen this before and that's essentially what that factory method builds May 21 15:46:50 Hey, guys. Our company is looking for an active cross-platform mobile development toolkit. We're currently using Appcelerator but are having difficulty getting complex applications to work. It doesn't seem to have an active/existent IRC channel, either, which to me is a yellow flag. Any ideas? May 21 15:47:14 don't do cross platform? :D May 21 15:47:19 Worklight? May 21 15:47:57 https://code.google.com/p/j2objc/ could also be useful May 21 15:59:38 having an active irc ecosystem should not be any sort of flag for development activities May 21 16:02:35 pfn: That, and StackOverflow, just helps with support.. May 21 16:02:55 But that's not a huge thing. May 21 16:05:48 I mean, does anyone in here do mobile development on something other than the native SDKs? May 21 16:06:13 Pritchard, im sure there are plenty on the channel who do May 21 16:06:54 Well, if you know any of them, tell them to give me a ping :) May 21 16:10:54 man, I hate R.java--friggin' inlined constants are such a nightmare May 21 16:11:15 we should invent a way to click a link on your phone, and have it open on your computer May 21 16:15:23 hmm, how do I align stuff on a centerline in a relative layout? May 21 16:20:43 I guess I'll ditch the relativelayout then May 21 16:22:18 awc737, a reverse chrome-to-phone May 21 16:22:29 awc737, anyway, if you use chrome on phone and computer, your links are synchronized May 21 16:22:35 so what you open on phone is available on pc, and vice versa May 21 16:23:17 pfn, can you open it on the pc though, just by clicking the link on the device? May 21 16:23:36 not in a single click, no May 21 16:29:19 pfn, reverse chrome2phone... TM May 21 16:29:42 it would be cool, like if your looking at twitter on your phone May 21 16:29:48 who the hell wants to click a web link on their phone May 21 16:44:36 is there any problem with android not accepting a file picker intent for .p12 files? May 21 16:44:54 it works on my rooted nexus, but not on a users device May 21 17:02:52 http://paste.debian.net/4631/ May 21 17:03:01 I get this when running "ant debug" May 21 17:05:44 I get the same message when I run: JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26" ant debug May 21 17:05:53 exact same message May 21 17:05:58 jdk jre May 21 17:07:02 Java (Development Kit) || (Runtime Environment) May 21 17:07:17 your path is to ****/jre May 21 17:09:01 Still don't have an idea for an app yet :'( May 21 17:09:53 StingRay_: What? May 21 17:10:00 StingRay_: How do I fix it? May 21 17:10:34 you read what the difference is between j(dk)&&(re) and then see which you have, and the path, and fix May 21 17:10:55 while also reading the requirements of dev env. on android/java May 21 17:11:01 simples May 21 17:11:34 StingRay_: I know the path to the jdk May 21 17:14:42 Miesco: google is your friend http://stackoverflow.com/questions/11178332/how-to-build-android-project-with-openjdk-on-ubuntu May 21 17:15:21 ok well it's maybe not your friend, but in a few seconds it solves your issues if you search May 21 17:16:28 hey all! i have a problem.. neither onClick works nor onTouch with my buttons. what might be the reason??? May 21 17:16:33 StingRay_: I already read that page May 21 17:20:54 mhm.. i dont get a border around my relativlayout.. but why? http://pastebin.com/KcT6jD0F May 21 17:21:24 StingRay_: How do I change the JAVA_HOME variable for "ant debug"? May 21 17:22:26 Miesco: dont mean to be rude, but why not google "how do i set JAVA_HOME in "insert OS here" " May 21 17:24:00 StingRay_: I did and what it said didn't work May 21 17:24:42 did you happen to restart ? or rinit shell in your OS ? May 21 17:24:52 and then see if it's set ? May 21 17:25:04 these are all google friendly questions btw May 21 17:32:26 StingRay_: See if what is set? JAVA_HOME? Its not set automatically, so if I restarted it would not be set... I dont get what your trying to say May 21 17:38:26 any first-hand experience reviews yet on Android Studio by former Eclipse users? :) May 21 17:38:43 show of hands please May 21 17:39:05 positive Android Studio experiances so far May 21 17:39:26 I am very novice with Android and had only just seriously begun working with the ADT plugin in eclipse May 21 17:40:47 Chainfire: g00s forced change to intellij for last 4 days May 21 17:40:53 never used intellij either May 21 17:41:05 he has a love love hate hate review if you ask him :) May 21 17:41:23 I've been using intellij for a while, and love it May 21 17:42:08 well everybody seems to love intellij but I found it's project management horrid when I tried it ... but I was referring more to the Android Studio added goodies May 21 17:42:16 hello. Since the most recent "google authenticator" is no longer open source... I'm trying to build the most recent open source version on my own. That's version 2.21. I checked it out from git. Now I'm trying to follow generic build instructions. My problem: Apparently the git repository for google-authenticator doesn't contain a "build.xml" file - ant complains that is missing. Shouldn't the repo provide it? May 21 17:42:48 downloading now to try on linux.... I mainly just use a vm with ubuntu on it for android stuffs May 21 17:43:00 Chainfire: not tried, I have same opinion on intellij, from what people say in this channel AS is alpha, and probably not great to use atm May 21 17:43:50 maybe for people like me who are not that advanced yet, best to wait until the dev site actually has it recommended and with more docs May 21 17:44:02 well, this is Google stuff May 21 17:44:08 it'll never be non-beta ;) May 21 17:44:10 betas May 21 17:44:17 BETA4EVAH May 21 17:44:17 betra everywhere May 21 17:44:44 is maps still beta? May 21 17:45:52 Setting a maxLength on an EditText works as expected, but once maxLength has been reached, deleting text seems to have a strange effect. It takes multiple repeated delete presses until it actually starts deleting the text. May 21 18:00:15 never mind. found the answer... May 21 18:02:15 have been using IntelliJ the last year and would never go back to Eclipse again. just tried AS the day before yesterday and had some issues setting up my library projects, but got everything working quite nice now. AS is essentially built into Intellij IDEA 13, so I will continue using that if it gets released and not AS itself I think. for now, I use AS however May 21 18:03:23 I can't get Intellij to work May 21 18:03:37 it asks for SDK so i click new and it wont let me choose a home directory May 21 18:03:38 :( May 21 18:04:31 didn't ask me for the SDK, just knew where it is. I read somewhere that it bundles the SDK, but I doubt that's true May 21 18:05:57 oh May 21 18:06:05 It looks for ANDROID_HOME iirc May 21 18:06:05 so I'm like dammit, you're not very intellij after all May 21 18:06:06 >.< May 21 18:06:24 what about if you wanna use it just for java May 21 18:06:35 SimonVT, ic May 21 18:08:24 CocoStorm: do you use AS or IntelliJ? May 21 18:08:39 anyone have any issues where setting the imeOptions in XML has no effect on a 4.2 device? May 21 18:08:46 or in cod May 21 18:08:48 *code May 21 18:08:58 well I haven't yet got IntelliJ up and running yet it's just sitting there waiting for the jdk May 21 18:09:04 nioncode, so eclipse atm May 21 18:09:43 CocoStorm: and you want to use IntelliJ or AS? May 21 18:10:10 nioncode, I haven't looked into AS yet May 21 18:10:21 hi May 21 18:10:33 so intelliJ May 21 18:10:36 I guess May 21 18:10:54 is there a way to pass -qemu parameter to avd as default one? May 21 18:11:31 I want to use CursorLoaders with a sqlite database. do i really need to create a content provider? May 21 18:12:04 I want to start kvm enabled avd with AVDM May 21 18:12:05 CocoStorm: can't even find a setting for the sdk in my IntelliJ settings May 21 18:12:44 oh man May 21 18:13:11 this problem sucks >> http://stackoverflow.com/questions/16676716/speechrecognizer-error-no-match-with-vlingovoicerecognitionservice May 21 18:13:17 i didnt realize the older version of intellij is free, i just never looked into it May 21 18:13:44 expand...now there's a shell utility I never used... May 21 18:13:58 CocoStorm: ah ok, have it in my Platform Settings. just added all my needed platform versions there May 21 18:14:51 wonder why I never checked out the dark IntelliJ theme, it is awesome :) May 21 18:15:40 nioncode, lol, the dark theme is exactly why I wanted to switch :P May 21 18:16:35 Chainfire: you not even run AS yet ? May 21 18:17:12 ok, I found it in eclipse configuration May 21 18:17:15 there should be dark themes for every website. night friendly May 21 18:22:51 StingRay_ dude, I ain't even recovered from my jetlag yet May 21 18:23:25 its #17 on my lo-prio todo list for this month May 21 18:23:25 irc >= AS test May 21 18:23:36 go figure :) May 21 18:32:26 java has no builtins to send long integer over network? May 21 18:33:29 nullie: hmm? you can just send bytes and they can be whatever you like May 21 18:33:39 I want to use CursorLoaders with a sqlite database. do i really need to create a content provider? May 21 18:33:56 BoxyK: yes May 21 18:33:59 nioncode, yes, but do I need to implement function to pack long into bytes in network order? May 21 18:34:22 s/need/have/ May 21 18:34:44 :-( ok May 21 18:34:52 thanks May 21 18:34:54 nullie: you can use whatever order you like if you are the only one using it May 21 18:35:03 nullie: Long.valueOf(someLongValue).toBytes() or whatever it is May 21 18:36:17 oh whoops, I totally thought that existed. May 21 18:36:43 just use the value and use byte shifting May 21 18:36:54 that seems stupid May 21 18:37:25 aha May 21 18:37:42 they have reverseBytes May 21 18:38:00 but May 21 18:39:08 oh, there is bytebuffer May 21 18:39:48 and you can putLong there May 21 18:46:03 Hello, What's the advised to work with Sockets in android ? Service or AsyncTask ? And if i need to pass this socket to other activity ? May 21 18:48:15 static field! May 21 18:48:17 * spike|spiegel ducks May 21 18:48:22 lool May 21 18:48:38 wviana: same as every other platform May 21 18:50:35 Napalm: cause in java my app pass to a other JFrame contructor the socket reference. In android will be necessary to create a bundle class that implements seriable to pass the socket to other Activity May 21 18:51:47 wviana, you're overcomplicating stuff May 21 18:51:49 i have no idea why you would want to do that May 21 18:51:55 exactly my sentiments May 21 18:51:56 yeah May 21 18:52:06 wviana, I have no idea what are you trying to do May 21 18:52:23 but usually I create a service to do that kind of communication and then just call methods on the service class if it doesn't cross process boundaries May 21 18:52:49 Mavrik: hum, ok May 21 18:53:42 I'd developing an app, that sends an unique SMS message every 3 secs and found out that about 0.2% of those messages are sent more than once, even though the sentIntent from SMSManager.sendTextMessages gets deliveded only once. Is there any known bug, or is this expected behavior? May 21 18:54:05 hi there. i have a question, im building an app that intercepts outgoing calls, manipulates the number within the broadcast and then sets the new number as Result and sends it on it's way - the thing is to manipulate the number i need some stateful information which i want to get from a service. the correct way would be to send an intent to the service to manipulate the number depending on the service's state and then.... well then what? in the ap May 21 18:54:05 i it says to send an broadcast back to the "application" but the only thing waiting for my reply IS a broadcastreceiver so it can set the ResultData... May 21 18:54:20 cube, are you doing it in background_ May 21 18:54:22 ? May 21 18:54:28 are you keeping the CPU alive? May 21 18:54:49 Guybrush_T, why not bind to service? May 21 18:54:51 cause in first activity i use a multcast to identify a server game IP, than I get the name of the player and create a socket with the server and check if the "room" is empty, after this a call the other acitivity to play the game. In this new activity will be necessary the socket object created in the firs activity May 21 18:54:59 the broadcastreceiver? May 21 18:55:01 Mavrik: in IntentService May 21 18:55:23 yeah, if the phone isn't active May 21 18:55:34 you need to keep the CPU running or it shuts down :) May 21 18:55:49 Mavrik, bind the service to what? May 21 18:56:12 Mavrik: how does it explain multiple copies on SMS messages? May 21 18:56:16 Guybrush_T, to whatever is sending the intent and is waiting for a response? May 21 18:56:27 cube, ugh, misread May 21 18:56:29 can i broadcastreceiver bind to a service? May 21 18:56:30 s/on/of May 21 18:56:40 cube, read "only 0.2% messages are sent", sorry :) May 21 18:57:04 Note: Only activities, services, and content providers can bind to a service—you cannot bind to a service from a broadcast receiver. May 21 18:57:16 copy from androiddevelopetrs May 21 18:57:59 any idea why my textview dont use the default android font roboto? This should be the default font, isnt it? May 21 19:01:37 does anyone know how i'd go about adding http digest auth to volley May 21 19:03:08 misterli: that might depend on the requested api level in your manifest May 21 19:04:02 I have an IntentService that uploads a bunch of photos in it's onHandleIntent method to a server. If i wanted to stop this service before it completed uploading all of its photos, what would be a good way to accomplish that? May 21 19:04:53 Hi, does anyone know where to find best practices for delivering open-source license attributions with an apk? May 21 19:04:59 so gradle... amirite? :P May 21 19:07:20 o19: google itself uses a button inside a PreferenceScreen May 21 19:08:52 nioncode: Do you have a particular app in mind, where I could take a look at that? May 21 19:09:22 o19: think the music app has it May 21 19:09:36 got it for mail as well.. May 21 19:10:06 thanks. that helps. May 21 19:10:44 like the approach in the Play Music app more May 21 19:15:12 except that it's "well" hidden :) May 21 19:15:37 it is more visible than the one in gmail May 21 19:16:31 I didn't expect it to be in "settings" May 21 19:20:17 where should it be? on the first visible screen in your app? May 21 19:20:32 hi all May 21 19:21:00 I was gonna try development for Android, but even installing the SDK seems to be difficult =) May 21 19:21:27 first of all, what is this "ADT bundle" thing? I was expecting to find an SDK installer May 21 19:21:45 anyway, I downloaded the ADT bundle thingy, and unzipped it...what now? May 21 19:26:13 nioncode: no, generally it' fine. to me the "about" in gmail was just more intuitive than "settings" in music... thanks anyway. I'l probably take the design from music and the location from mail :) May 21 19:26:45 Assault, Are you on Windows, Mac, or Linux? May 21 19:26:53 Win 7 May 21 19:27:23 gotta say they have made installing the SDK way more complicated than it should May 21 19:27:50 Assault, well, if you want to get up and running ASAP, the easiest way is to download the ADT bundle, unzip it, and open Eclipse. That's the simplest way May 21 19:27:53 o19: it's in the settings screen in gmail as well, but you have to go to the about screen additionally, so it is even more hidden May 21 19:28:07 i have a problem, i rooted my phone now i cant access the usb part of it by connecting to computer May 21 19:28:24 well, I dont want to use eclipse, all I need is to have the SDK installed so I can built android version of my Unity game May 21 19:28:25 adb does work over network though May 21 19:28:31 ok May 21 19:28:36 and Unity asks for the SDK path May 21 19:28:44 i just have no idea what it is... May 21 19:28:50 and What the hell is this ADT bundle May 21 19:29:00 Assault, go to http://developer.android.com/sdk/index.html and under "Use an existing IDE, download the SDK May 21 19:29:11 A version of Eclipse packaged with the Android Develoer Tools. Not the Android SDK itself. May 21 19:29:30 what are you guys talking aboot May 21 19:29:31 you are going to want to extract it to C:\android-sdk-windows May 21 19:29:42 anyone got hosting for .aar's working yet? my apklibs in maven are useless in the new build system :( May 21 19:30:13 KingdomSprite: well, can i just delete the folder where I have the ADT bundle now? May 21 19:30:37 when I open the SDK manager, it says I have some thing installed...i dont remember running an installer...so how do I remove those first? May 21 19:30:39 As long as your workspace is not in there. May 21 19:31:08 Well, you don't need the ADT bundle the way I'm showing you. I'm helping you set it up system wide. May 21 19:31:48 KingdomSprite: i see...i just want to know how to get into the point where I have no android stuff on my pc at all May 21 19:32:01 before trying this "excisting IDE" way May 21 19:32:35 Well the ADT bundle is all enclosed inside the compressed file, it doesn't "install" anything on your PC. May 21 19:33:15 The ADK Manager just updates the Android SDK inside the ADT Bundle May 21 19:33:18 ok I used the SDK manager to delete the installed thing, now everything says "not installed" May 21 19:33:20 SDK Manager* May 21 19:33:54 ok so now I can delete the ADT bundle folder and run the installer that i got from the existing IDE thing May 21 19:34:14 delete the entire ADT Bundle folder May 21 19:34:59 Extract the SDK you downloaded from "Use an Existing IDE" section to C:\android-sdk-linux May 21 19:35:10 C:\android-sdk-windows May 21 19:36:12 and run the SDK manager inside that folder and update the SDK and install whatever versions of the API you want. May 21 19:37:28 ok, well i got an insatller (.exe) from the "existing IDE" thing, I executed it, then it opened the manager, and suggested 12 packages, its installing now May 21 19:37:43 cool May 21 19:38:17 You should be able to point Unity to C:\android-sdk-windows now May 21 19:41:21 hey guys...got an interesting problem May 21 19:41:31 I have this oauth page that I am displaying in a webview May 21 19:41:44 when I don't clear cookies, trying to display it a second time May 21 19:42:00 it remember me because of the cookies and then automatically redirects to the process-completed page May 21 19:42:19 so I have a CookieManager cookieManager = CookieManager.getInstance(); cookieManager.removeAllCookie(); May 21 19:42:31 I also added a logging line after it to tell me the cookies were indeed cleared May 21 19:42:35 this works most of the time May 21 19:42:47 but every now and then, when I try to show the oauth webview again May 21 19:42:59 it seems to have the cookies around and remembers me and automatically redirectsme May 21 19:43:29 is this to do with like...cookies get saved every 5 minutes or whatever....maybe I am removing all cookies before the cookie actually gets saved? May 21 19:43:35 Maybe I need to flush the cookies first? May 21 19:46:51 * monsti needs to eat cookies first - before i flush May 21 19:46:59 hehe May 21 19:47:36 afaik one cockiemanager is enough - just pass it to any call you do May 21 19:47:41 don't recreate a new one May 21 19:47:55 I don't have the instance before this May 21 19:48:12 is this a singleton? With the getInstance? May 21 19:48:27 no idea May 21 19:59:07 trying to use a maven dependency with the new build system, http://pastebin.com/1ERkEJwm May 21 19:59:25 seems like it can't find the artifact properly? May 21 19:59:52 even though I can see it at http://repo1.maven.org/maven2/com/squareup/dagger/ and it's declared as a remote repository May 21 20:00:01 you have those backwards May 21 20:00:07 the compile/runtime May 21 20:00:34 the compiler jar needs to be marked as 'runtime' and the other needs to be marked as 'compile' May 21 20:01:15 still getting the same error May 21 20:01:36 runtime 'com.squareup.dagger:dagger-compiler:1.0.0' May 21 20:01:36 compile 'com.squareup.dagger:dagger:1.0.0' May 21 20:04:08 weird thing is it doesn't fail for the artificat dagger-compiler, but only for dagger May 21 20:06:17 JakeWharton: also why does the compiler jar have to be marked as runtime? May 21 20:06:35 I've got a weird eclipse issue - I just updated the android tools and plugin, and my library project will no longer integrate with my other projects May 21 20:06:48 the container 'Android Dependencies' references non existing library jar... May 21 20:06:52 that swiping to navigate between what used to be called Tabs, what is it called? May 21 20:07:10 Sicp: view pager? May 21 20:07:36 like in Google Play May 21 20:07:38 I've tried cleaning both projects, making sure that the library project it's marked as a library in project properties, made sure that the other projects have it in their list of libraries May 21 20:07:49 what I can't do is make the library project build into a jar May 21 20:07:54 it just escapes me now, but like in Google play where you swipe between Top Paid, Top Free, etc.. May 21 20:08:13 ActionBar, JakeWharton's May 21 20:08:26 What are people's recommendations for a vnc program? May 21 20:08:33 listen can I have these tabs be added dynamically based on input received from a previous activity? I want 5 to show up, I want 3 to show up, etc.. May 21 20:09:05 eclipse is kinda driving me crazy, here May 21 20:11:26 JakeWharton? May 21 20:11:46 clipboard.setPrimaryClip(clip) works in my api 8 app when inside an asynctask that is not subclassed in the activity. when i subclass the asynctask I get lint errors, whys that? May 21 20:14:34 brx_: make your asynctask static May 21 20:14:58 brx_: normally the lint error tells you what is wrong May 21 20:15:25 thanks Napalm May 21 20:16:08 If you do a staged rollout, with a version 1 and version 2, and a completely new user downloads the app - will they always get 2, or might they also get 1? May 21 20:25:10 ron_frown: stll there? May 21 20:25:20 So got the build to work by declaring it like this http://pastebin.com/VCBtdavj, not sure if this is the right way (or why the shorthand notation didn't work) May 21 20:26:28 f2prateek_: not sure, sorry May 21 20:26:54 f2prateek_: you don't want the dagger-compiler to be a compile dependency though May 21 20:27:47 JakeWharton: i tried combining all possible versions (so made the compiler jar runtime/compile and the other one compile/runtime scoped) but this is the only combination that worked. May 21 20:30:29 So this is what I'm getting if anybody has an insight into it http://pastebin.com/YFhwTwij May 21 20:31:09 I should probably read up more on the scopes first May 21 20:37:25 quick google search says senior android developer positions in san fran are around $144K. that seem right? May 21 20:37:51 LuxuryMode - it's always possible.. just keep in mind how much more it costs to live there than other places though May 21 20:38:48 right May 21 20:38:52 seems low to me May 21 20:38:57 haha May 21 20:39:00 really, low? May 21 20:39:10 what difference does it make that its a well funded startup and they expect you to be a key member of founding team? May 21 20:39:16 that equal less or more salary? ;) May 21 20:39:26 here if you make 144k.. your take home after living like a king is like.. 9k a month? May 21 20:40:58 right May 21 20:43:45 i'll just ask for $175K + relocation May 21 20:43:51 if they dont bite, oh well May 21 20:44:41 yea May 21 20:44:47 how many years exp? May 21 20:44:57 10 ;) May 21 20:45:02 haha May 21 20:45:04 in android, ofc May 21 20:45:25 doh, havent you seen all the adds demanding 10 years of android experience? :P May 21 20:45:33 Mavrik - I've seen them for visual studio 2012 May 21 20:45:37 10 years exp in that May 21 20:45:38 hahaha May 21 20:45:45 it really happens too! May 21 20:46:19 144K in SF is ok if you are single; don't think of doing a family on that - you need two incomes. May 21 20:46:29 robtow - figured May 21 20:46:36 you could live like a king bachelor on 50k here May 21 20:46:42 hmm, 144K? May 21 20:46:54 that's livable, but you will not live alone on that :P May 21 20:46:56 live prime downtown, duplex May 21 20:47:13 Housing in SF is very expensive. And don't even think about driving a car and parking it at work. May 21 20:47:44 <---Lives in the Santa Cruz mountains, above Silicon Valley - an hour away from SF. May 21 20:48:01 robtow, yeah im married with 2 kids May 21 20:48:04 :) May 21 20:48:09 Our mortgage for six acres of forest, is less than a two bedroom apartment in Santa Clara. May 21 20:48:31 Housing is pretty wild up and down the SF peninsula. May 21 20:48:43 <---Living in the forest since 1989. May 21 20:48:44 You can get prime downtown for $2k a month May 21 20:48:55 a house practically May 21 20:49:19 newlex, wheres that? May 21 20:49:25 Montreal, QC, Canada =P May 21 20:49:29 hehe May 21 20:49:30 not a bad city May 21 20:49:35 but one of the cheapest places in north america lol May 21 20:49:45 im in NY so im used to expensive, but SF is eve worse May 21 20:49:48 is there no way to stop a relatively long running intentservice once its started? May 21 20:51:13 Suggestions on how to make this more "fun"? http://bildr.no/image/1621825.jpeg May 21 20:51:24 It's a bit dull for a joke app I think May 21 20:57:56 Quacked: color May 21 21:02:42 drudge: but what kind and where? :P May 21 21:03:01 needs more rainbows May 21 21:03:05 haha May 21 21:03:42 actually, I recommend 37 pieces of flair May 21 21:07:46 recorder.setVideoBitrate(500k) …. Nexus S creates a 1000k video May 21 21:07:48 ffs. May 21 21:08:13 JesusFreke: http://bildr.no/image/1621845.jpeg May 21 21:08:13 haha May 21 21:08:24 ++ May 21 21:11:31 Other suggestions? :P May 21 21:11:47 is there something in the android api to track timing of things with logs? May 21 21:11:57 like it was x time between this log and the previous one? May 21 21:13:00 hello all! what is the best way in android to chain several asynchronous processes like for example [gcm unregister] -> [gcm register] -> [user login] -> [command1] ??? May 21 21:15:16 " Very high latencies were observed with this app. It turned out that the individual characters' data amounts were so small that they were processed via the mobile network's control plane." May 21 21:15:28 * g00s never heard of the control plane May 21 21:15:42 " Below a certain threshold, modern mobile networks transfer data on what is called the control plane, a channel that is otherwise used to exchange control data between the mobile phone and the network. " May 21 21:15:45 d'oh ! May 21 21:17:02 Funny May 21 21:17:09 What app was that? May 21 21:18:08 I am using a Timer and a TimerTask... when I run it, it crashes every time, saying I need to do looper.prepare() which I do, and it seems useless May 21 21:18:11 it doesn't help May 21 21:19:39 Quacked: google's search app May 21 21:25:25 * g00s has a brilliant idea :D May 21 21:25:45 * JesusFreke runs away May 21 21:26:05 :| May 21 21:26:14 oh, day #5 of intellij XD May 21 21:27:21 still enjoying it ? May 21 21:27:43 lol May 21 21:28:07 StingRay_: maybe g00s will tell us about his feelings ;) May 21 21:28:08 yeah, i like eclipse and IJ equally; both have their +/-. thats information on purpose :) May 21 21:28:17 *non information May 21 21:28:37 stop wondering, use your ide, get back to work! nothing to see May 21 21:31:25 i would like to know, from the android design gods, what is the point of Switch's existence. its just seems like a slightly more skeoumorphic version of the checkbox May 21 21:31:40 * g00s thinks it should be banished May 21 21:31:53 needed May 21 21:32:03 as the meaning/intent can be very different May 21 21:32:15 in relation to user action/context May 21 21:32:26 go on... May 21 21:32:38 ffs, just take my word for it :) May 21 21:32:40 ok May 21 21:32:46 a question May 21 21:32:58 a descriptive action May 21 21:33:05 and an operation May 21 21:33:12 all the same thing in this example May 21 21:33:22 enable extra freatures? May 21 21:33:34 extra features May 21 21:33:42 turn on extras May 21 21:33:50 all mean the same thing for our stance May 21 21:33:55 I could go on May 21 21:33:58 but the point is May 21 21:34:09 the perceptual action is very different May 21 21:34:11 from a user May 21 21:34:18 one he says yes to May 21 21:34:28 one he checks on May 21 21:34:35 one he enables May 21 21:34:49 so depends on design May 21 21:34:57 but there are cases where switch is needed May 21 21:35:04 in context May 21 21:35:25 both descriptions are "funny" when you put them in front of each other :) May 21 21:35:29 switch: A Switch is a two-state toggle switch widget that can select between two options. The user may drag the "thumb" back and forth to choose the selected option, or simply tap to toggle as if it were a checkbox. May 21 21:35:38 checkbox: A checkbox is a specific type of two-states button that can be either checked or unchecked May 21 21:35:47 Is there a way to close the entire application from the broadcast receiver? May 21 21:35:53 now look at toggleButton May 21 21:35:55 :) May 21 21:35:56 since g00s talked about android design gods, i took their book ;) May 21 21:37:03 it makes sense, however, to have all them (and maybe more) May 21 21:37:16 no point for more May 21 21:37:29 they are just a view with stateDrawables neways May 21 21:38:06 actually yes, maybe one is missing May 21 21:38:12 multiSwitch May 21 21:38:25 sometimes you dont want a group May 21 21:38:33 like a checkbox group etc May 21 21:38:41 SpeechRecognizer is the red headed stepchild of the AOSP May 21 21:38:46 you want a 3 state (side by side) switcher May 21 21:39:43 * g00s thinks May 21 21:40:32 how many controls does iOS have for this ? May 21 21:40:43 a few more May 21 21:40:50 including a mutiSwitchyThingy May 21 21:40:52 :) May 21 21:41:02 seems like a spinner May 21 21:41:14 no May 21 21:42:23 actually with forestall's legacy, maybe iOS isn't a good example of minimalism here May 21 21:42:42 having too many choices to represent 2 states might certainly disturb the user in general (no way to have landmark of what this thing will do), on the contrary having only 1 way to represent 2 states is extremely boring at the cost of everyone know recognise what will do this switch/checkbox/toggle May 21 21:42:48 http://cdn.osxdaily.com/wp-content/uploads/2011/10/ios-5-gui-psd.jpg May 21 21:42:55 but all this thing comes from mimic-ing the real life May 21 21:42:56 see left column May 21 21:43:01 button, switch & checkbox May 21 21:43:01 center May 21 21:43:11 above the seekbar/slider May 21 21:43:13 so having a bit more like we are already used to irl is probably not a problem May 21 21:43:13 them May 21 21:43:16 and add more variety May 21 21:44:47 i'm in the minimalism camp; its finished when you can't take anything else away May 21 21:45:04 so only 1 between checkbox, toggle & switch button May 21 21:45:08 should exist for your world :) May 21 21:45:15 WHO DIE? May 21 21:45:58 checkbox and switch seem redundant to me May 21 21:46:07 i'm from the design user camp, where is should look how it is actioned May 21 21:46:11 Shouldnt there be something larger than textappearancelarge now when we have high res screens? :P May 21 21:47:26 Quacked: these are not resolution dependent afaik May 21 21:48:16 oh May 21 21:48:24 Quacked, you 'd better handle size in values-large, values-xlarge, etc... in dimens.xml May 21 21:49:21 yeah May 21 21:56:34 i just rant lint on my project from eclipse and IJ; lint from eclipse finds more things May 21 21:56:37 *ran May 21 21:57:18 that will probably get fixed soon i'd hope May 21 21:58:32 one thing i noticed going back to eclipse is how janky the scrolling is the the text editors May 21 22:00:12 Guess Lint got more rules during the last SDK update. May 21 22:00:32 You can also check the lint.xml if something is disabled in IJ (or the UI, if there's one for lint) May 21 22:01:22 kakazza: it should be using the lint in the sdk, right ? May 21 22:01:48 * kakazza shrugs May 21 22:02:09 I know Eclipse has preferences for Lint. It might or might not enable more?! May 21 22:02:30 yeah, everything is checked except for 2, which weren't related to the lint run from eclipse May 21 22:03:06 no, idea doesn't use SDK lint. May 21 22:03:17 :O May 21 22:03:31 its great for at least finding unused resources ;) May 21 22:05:53 g00s: I'm still on eclipse mean n lean :) May 21 22:05:55 liking it May 21 22:06:23 g00s: what does that ? May 21 22:06:25 ij ? May 21 22:06:57 as in searches all code/xml refs for resources ? and marks as used not used ? May 21 22:07:21 Spec-Chum: :) May 21 22:07:24 StingRay_: lint May 21 22:08:10 g00s: not that I know what I'm doing, I only completed my first hello world last night lol May 21 22:08:20 \o/ May 21 22:08:27 next step, world domination ! May 21 22:09:44 g00s: cool. is there a lib for that? May 21 22:09:57 PinkyBrain.java? May 21 22:10:03 :) May 21 22:11:30 good night May 21 22:12:15 anyone familiar with volley here? curious how i'd go about implementing http digest auth in my requests May 21 22:17:48 Shouldnt values-xlarge work for galaxy s4 with 1920x1080 res? May 21 22:18:17 g00s: I'm fine with Java, but I must admit, xml kinda send my eyes funny May 21 22:18:22 I'm setting textSize for a bunch of resolutions and all works except for values-xlarge May 21 22:18:26 and I'm a seasoned assembler coder! May 21 22:18:43 Spec-Chum: you can thank tbray for xml May 21 22:18:56 if he shows up here, tell him what you think :D May 21 22:19:34 * Spec-Chum adds tbray to his hitlisr May 21 22:19:42 yeah, xml isnt fir for human consumption. in the old days, the java community was enamored with it for some reason; lots of tooling/libs configured by it May 21 22:19:49 Quacked, no, they most definetly shouldnt May 21 22:19:59 Quacked, Galaxy S4 is still a normal device, not an xlarge one May 21 22:20:05 those are 10" tablets. May 21 22:20:17 ant was especially bad application of xml May 21 22:20:32 Mavrik: oh right May 21 22:20:39 ok, so what's the almighty trick to get AsyncTask to return a String without having the universe explode in the process? May 21 22:20:57 I want to do something to a String in doInBackground(), and that's also where I want to return that String May 21 22:20:58 Quacked, the "large" etc. qualifiers are set for the actual PHYSICAL size of device, not resolution May 21 22:21:02 i really dont see the purpose of XML in android either; probably they wanted to capitalize on existing editors? May 21 22:21:08 you can easly have 800x480 "large" device and a 1920x1080 "normal" device May 21 22:21:10 Mavrik: I understand (now) :) May 21 22:21:14 :) May 21 22:21:43 Should 10" WXGA be affected by xlarge? May 21 22:24:03 Nevermind. Thats sw720dp May 21 22:27:31 any idea? May 21 22:27:59 let me show May 21 22:28:23 http://pastie.org/7941134 just want this to be able to return dataReceived May 21 22:28:52 right now I get that protected String doInBackground does not much type above May 21 22:29:20 http://hastebin.com/nutujocile.avrasm May 21 22:34:37 Sicp: do the work in your onPostExecute method May 21 22:36:34 how am I going to reference a variable from inside that AT and assign a value to it if I am required to have it as final to be able to reference it from inside? May 21 22:36:52 Sicp, if you don' May 21 22:37:04 t pass is as an argument and your asynctask is an inner class then yes May 21 22:37:11 er, anonymous inner class :) May 21 22:37:53 sense May 21 22:44:20 In one fragment I have a linearlayout with a button set to layout_weight="0.05" to increase the height of the button. This also means that the remaining space for the textview above with gravity center gets moved upwards. Any ideas on how I can make the textview in another fragment in the same place? In this fragment there is no button. May 21 22:44:32 I hope that was possible to understand :P May 21 22:45:15 grid May 21 22:45:50 sry 2 fragments May 21 22:46:05 then you should calculate the positions by yourself May 21 22:46:53 I have a viewpager so I just want the textview to be in same spot when I swap between the two fragments May 21 22:47:02 calculate how? May 21 22:47:53 I'm building an app that downloads files from s3. I'm trying to test the behavior of my app when the internet connections cuts out. How can I test whether a file has fully downloaded? May 21 22:47:58 Quacked: Math May 21 22:48:00 :) May 21 22:48:27 benlieb: track it when downloading May 21 22:48:43 is this some s3 android lib your using ? May 21 22:48:44 StingRay_: I am. Basically my app showing a 'play' button, even though I cut the internet connection mid-way. May 21 22:49:03 well dont display it if file is not complete May 21 22:49:04 :) May 21 22:49:29 StingRay_: The question is what is the best way to determine whether it's complete or not. May 21 22:49:34 when i plug my phone into usb it doesnt say connected to usb anymore just the charging light May 21 22:49:55 I'm considering some kind of persistent storage that show's if it completed. May 21 22:49:57 benlieb: the answer is track the download so you know where it's at % May 21 22:50:13 StingRay_: I am. May 21 22:50:14 then md5 it ;) May 21 22:50:31 yeah then checksum see if it fked May 21 22:50:36 The question is the best way to store this persistently, in case the app closes before the app is fully downloaded May 21 22:50:55 service May 21 22:51:02 save the file when done May 21 22:51:06 what's a good beginner project you think? Very beginner, lol May 21 22:51:11 oh an minimal xml May 21 22:51:28 Spec-Chum: functional project or play project ? May 21 22:51:34 Spec-Chum: there's good beginner tuts on android site. May 21 22:51:42 either really, I know java just not android May 21 22:52:02 something that involves async tasks, threads, state and storage (db) May 21 22:52:19 any of you guys work with using the camera to take bursts of photos? May 21 22:52:41 mikedg: dont be doing one of these fake bust cams May 21 22:52:54 I hate ppl who do that May 21 22:52:58 StingRay_: ?? May 21 22:53:07 video stream surfaceView frames May 21 22:53:14 and call it a burst camera May 21 22:53:32 burst* May 21 22:53:36 ahh, yeah i was looking mainly for the most optimal way of calling takepicture :/ May 21 22:53:41 I just realised I said bust May 21 22:53:47 fk yeah, do a bust cam May 21 22:53:55 I want a bust cam! May 21 22:54:00 not a fake one tho May 21 22:54:05 everyone wants a bust cam May 21 22:54:05 it seems like theres some time between getting the jpeg back May 21 22:54:05 there we go, first project May 21 22:54:09 see you on play store... May 21 22:54:17 oh I'm ok with a fake bust cam too May 21 22:55:00 now, is that FAKE bust, or fake bust CAM? May 21 22:55:10 I'm a real kinda guy lol May 21 22:55:12 either or May 21 22:55:21 hell no, real May 21 22:55:22 mikedg, you can do it on another thread May 21 22:55:33 mikedg, depends really what your UX demands May 21 22:55:35 ok, stop now, family channel lol May 21 22:55:40 Mavrik: right not i'm not even bothering to save the picture May 21 22:55:40 sorry ops May 21 22:55:41 and how much work are you trying to put into it May 21 22:55:59 it seems like I could theoretically call takepicture sooner than when i get the jpeg callback May 21 22:56:03 but i dont know how soon May 21 22:56:11 or how to figure that out programatically May 21 22:56:30 fire a preDelay() May 21 22:56:32 mikedg, you actually have several callbacks May 21 22:56:36 that would be cool May 21 22:56:43 i tried the raw callback May 21 22:56:44 mikedg, you MIGHT be able to start recapture as soon as raw data from the sensor is available May 21 22:56:51 but that's skating on thin ice May 21 22:57:02 is there anythign between raw and jpeg callback? May 21 22:57:12 you will probably have more success checking out the vendor-specific camera parameters May 21 22:57:14 also a sensor scan read is really slow in most phones neways May 21 22:57:27 mikedg, um, no, that's the time the OS needs to compress raw data. May 21 22:57:40 StingRay_: you mean get height of button in that fragment and set that size as paddingbottom on the textview? May 21 22:57:47 StingRay_, usually you can put some cameras into "burst" mode at the expense of resolution and quality May 21 22:58:00 but it's not exposed via standard Android API May 21 22:58:10 Mavrik: yeah, but 99% bust cams dont do that May 21 22:58:19 as in play apps May 21 22:58:28 I'm not in the business of caring what other apps do honestly :) May 21 22:58:49 mikedg, catch is, you're relying on undefined behaviour technically... May 21 22:58:55 StingRay_: bust, again? we know what you're thinking May 21 22:59:02 hehehe May 21 22:59:03 o ffs May 21 22:59:04 yeah i dont think this has burst mode in the hardware May 21 22:59:10 you'll have to wait for preview to restart before another capture anyway May 21 22:59:16 tis late midnight May 21 22:59:30 <_genuser_> hello people. May 21 23:00:03 hmm :( May 21 23:00:22 I just used raw preview input when I needed burst mode May 21 23:00:23 did you see my question, StingRay_? May 21 23:00:27 <_genuser_> when drawing backgrounds/borders, is there a way draw certains sides? May 21 23:00:35 most cams have high-enough preview resolutions for the images to be "okish" May 21 23:00:48 _genuser_, sides? May 21 23:01:07 <_genuser_> Mavrik: e.g., draw the bottom border only May 21 23:01:19 hmm, there's no such concept in Android May 21 23:01:32 try what you can do with compound drawables May 21 23:01:49 <_genuser_> basically I have a layout, I assigned it a drawable/border, and thought I'd only like a slight gray line at the bottom. May 21 23:02:04 <_genuser_> but I suppose, I should add a shape at the bottom of the layout. May 21 23:02:28 Hey, where can I get a easy tutorial to bind a service ? May 21 23:02:52 wviana, services section of d.android.com has a pretty nice example. May 21 23:04:52 And to answer my own question May 21 23:05:04 According to Google engineer Riccardo Govoni May 21 23:05:41 <_genuser_> wait, you can't add shape to a layout? May 21 23:05:42 a 50% rollout with half on version 1 and half on version 2 means for new users, people will get the new versions half and half (half get 1, half get 2) May 21 23:06:46 Ologn, good to know :) May 21 23:09:09 These staged rollouts are good. My last app update gave me a huge hit in terms of daily downloads May 21 23:09:48 hmmm that makes me think May 21 23:09:55 what app is it Ologn May 21 23:09:56 ? May 21 23:10:39 man...I have no idea what's going on with this bug May 21 23:10:57 StingRay_, "Free books to download & read" May 21 23:10:59 I have a webview and the pages in it need to use cookies...so far, so good May 21 23:11:17 but at some point I need to delete the cookies so the next time I display that webview doesn't use the old cookies May 21 23:11:20 got that May 21 23:11:27 but occasionally, my app behaves as if the cookies weren't deleted May 21 23:11:28 I have a method that is supposed to check for an internet connection. In the emulator, when I've cut my internet connection, it returns a false positive. This method returns true, even if I have no connection: https://gist.github.com/anonymous/5624009 May 21 23:11:29 <_genuser_> Ologn: does you program search free books? Or do you provide those as well? May 21 23:11:30 huge hit meaning bad, not huge hit meaning it became a hit May 21 23:11:33 Am I missing something? May 21 23:11:49 I found out what my problem was - latest android sdk tools + eclipse didn't sit well together May 21 23:11:56 I switched to the android studio intellij package May 21 23:11:56 _genuser_, I have over 40,000 free English language books May 21 23:12:10 Mostly from before 1923 May 21 23:12:21 <_genuser_> Ologn: that's pretty awesome. May 21 23:12:28 <_genuser_> Ologn: I see out of copyright ones, eh? May 21 23:12:30 Android Studio is so nice May 21 23:12:53 <_genuser_> what is this android studio, I keep reading about? May 21 23:12:56 _genuser_, yes. I just fixed up my search engine too. May 21 23:13:15 <_genuser_> Ologn: will have to see if I can find intersting books on it. May 21 23:13:34 _genuser_: it's a beta version of IDEA with ADT built in May 21 23:13:40 IDEA 13 May 21 23:13:45 _genuser_, It's an IDE (like Eclipse) built from Intellij IDEA May 21 23:13:59 direct from Google, but it's not feature complete yet May 21 23:14:01 that said, I would argue it is a better IDE than Eclipse May 21 23:14:07 <_genuser_> Spec-Chum: thx. must google it. :) would be nice to replace eclipse. May 21 23:14:10 <_genuser_> KingdomSprite: thx. :) May 21 23:14:28 to be honest, I prefer idea, but I'm just learning and all the tuts use eclipse May 21 23:14:37 makes it a bit easier May 21 23:14:56 <_genuser_> yeah, don't know if you guys have this problem, but now and then: when I highlight and do ctrl-c, ctrl-v, it goes to the wrong window. (you can't know which one.) but all other keys go to the open xml file. May 21 23:15:29 <_genuser_> this causes huge annoynance. You have to find the other window and undo changes and close it. and close current window. then it works.... for a bit. May 21 23:16:26 _genuser_: I have that prob, but thought it was just a mac/platform bug with eclipse May 21 23:16:40 but your use of "ctrl" says otherwise :) May 21 23:16:59 unless you mean "cmd" :) May 21 23:17:38 StingRay_, er, whats your point? May 21 23:17:51 <_genuser_> StingRay_: nah, it's ctrl. it's a windows machine. May 21 23:17:56 _genuser_, which Java are you using? May 21 23:18:00 cool, then it's not just mac May 21 23:18:02 openjdk or oracle? May 21 23:18:17 <_genuser_> StingRay_: there's another one. Now and then a line keeps showing error even tho there's no error. So you cut it and paste it again and it compiles it just fine. May 21 23:18:17 not a wrong window though, think it's declaring lookup function of some sort May 21 23:18:48 <_genuser_> Mavrik: I'm using whatever is installed with eclipse by default. May 21 23:18:52 yeah I have that, also have lib projects that dont update refs in main project without clean May 21 23:19:10 thats annoys me May 21 23:19:26 still not enought to switch to IJ though May 21 23:19:30 not yet :) May 21 23:20:08 <_genuser_> StingRay_: I only use it for android, so once my app is done, I leave it alone. but it's still annoying enough to where I'd use a feature scant thing from google than using eclipse. May 21 23:20:16 <_genuser_> it takes minutes just to load up on startup. May 21 23:20:19 Mavrik: what do you mean " StingRay_, er, whats your point? " ? May 21 23:21:20 _genuser_: I have it and android sdk and java and my project on ssd, so dont really notice May 21 23:21:22 Hey, how can I find out whether the user did copy something (new) to the clipboard since the last launch of my app? May 21 23:21:32 or since the app was put into background May 21 23:21:43 apples May 21 23:22:34 _genuser_: I know I "should" either switch to AS or IJ, but, seems a marathon to learn, and I'm only a fake programmer May 21 23:22:35 <_genuser_> StingRay_: lol, mine's on a 10yr old drive. it's probably 5400 rpm too. It was in one of those HP media centers. you know they cut corners. May 21 23:22:52 <_genuser_> StingRay_: lol, all programmers are fake programmers. May 21 23:23:00 * StingRay_ is fakest May 21 23:23:05 :) May 21 23:24:35 <_genuser_> hehe, coders/programmers are an intersting bunch. May 21 23:24:49 saschagehlich, hmm, the obvious thing is just to compare the content, but that could be expensive May 21 23:25:11 saschagehlich, other way is to use a background service and register listener there May 21 23:25:20 just make sure you keep it running only at times you really need it May 21 23:25:26 hmm May 21 23:25:59 I just compare the content in onResume of my main activity. so i guess that's fine? :/ May 21 23:26:27 if the startup performance works for you, then yea :) May 21 23:26:32 Has anyone gotten external dependencies working with gradle / android studio? I'm using this build.gradle file and getting an error when I run ./gradlew dependencies. https://friendpaste.com/2KhmbAY4KvjYVzYcpl0C2V May 21 23:26:34 _genuser_: thats the thing, my 1st skills are not coding, and intellij seems to require more programmery peeps May 21 23:26:39 compared to eclipse May 21 23:26:46 okay, thanks Mavrik :) May 21 23:28:46 <_genuser_> StingRay_: for coding you really need to just keep coding and your mindset starts to change. then you find your own solutions to existing problems. May 21 23:28:58 <_genuser_> StingRay_: people read books about design patterns and try to memorize other people's experience. May 21 23:29:10 no no, I get that May 21 23:29:22 not all down with terminology but yeah thats fine May 21 23:29:27 just the tools use May 21 23:29:36 build systems etc May 21 23:29:38 another thing: is there a way to recognize whether the user comes from the home screen or from another activity in onResume / onCreate or something like that? May 21 23:30:05 <_genuser_> StingRay_: the tools, etc are just stuff. I mean people act so snobby because they know visual studio's kinks. people assume it's a sign of intelligence. May 21 23:30:54 I think my prob is I learned coding as a bi-product May 21 23:31:01 not from edu or from training May 21 23:31:18 <_genuser_> StingRay_: yeah, I think my undergrad really helped. But mostly this one professor who really taught well. May 21 23:31:47 <_genuser_> the rest are there to "distribute grades based on a curve. some get A's, some B's, C's, D's, and some F's. Don't fight it." May 21 23:32:10 <_genuser_> this was one of the profs. he said the school expected him to fail a few. So he didn't have a choice, lol. May 21 23:32:40 yeah I dont buy into the edu. stuff May 21 23:32:42 never have May 21 23:33:01 <_genuser_> most profs are just profs. they don't work in the corporate env. May 21 23:33:08 no1 ever tought me nothing about VFX or Games Art, but had a successful 17 year career in it May 21 23:33:37 <_genuser_> StingRay_: nice! gaming always sounded fun to me. now I'm pretty bored of coding. May 21 23:33:39 but then got bored a year ago, and decided to have a crack at this lol May 21 23:33:43 _genuser_: at my uni they just adjust difficulty of material for next year May 21 23:33:50 I find the best way to learn is to do, I usually just grab some code and start editing it May 21 23:34:00 <_genuser_> it's the same old same old. new programming language, new tools to compile, same hassle to chase invalid pointers.... May 21 23:34:13 Spec-Chum, code reviews from more experienced people help May 21 23:34:30 since you don't know you're doing some things wrong until someone tells you that May 21 23:34:42 <_genuser_> p_l: at my school, the teacher said, you're all paying so much for this course, doesn't really seem fair to give anything less than a B unless you do'nt turn in something. May 21 23:35:03 Mavrik: quite true May 21 23:35:11 _genuser_, lol? really? May 21 23:35:12 _genuser_: ... one of the perils of for-profit schools :/ May 21 23:35:12 <_genuser_> Mavrik: another thing that helps is coding is so many times that you just find the optimal solution. May 21 23:35:36 <_genuser_> Mavrik: yeah, but name school who charge $21,000 USD PER SEMESTER!!!! don't like to fail students. May 21 23:35:55 that just means they make monkeys which will destroy the rep May 21 23:36:06 I come from an asm background so I was all about speed and efficiency, that's the main reason I've avoided java until now May 21 23:36:06 <_genuser_> Mavrik: lot of corporate students going for their employer sponsor's graduate work. May 21 23:36:13 than I bought a nexus... May 21 23:36:16 *then May 21 23:36:22 <_genuser_> Mavrik: lot of govt contractors. so you konw they already mess things up. May 21 23:36:30 I've always found the inversion of public/profit school reputation funny. In EU usually the for-profit schools are the crappy ones :) May 21 23:36:45 I'm surprised how much I like java May 21 23:36:45 Spec-Chum, yeah, the slow java meme really has to die May 21 23:36:59 it's been wrong for last 10 years or so -_- May 21 23:37:09 _genuser_: 21k? Sounds cheap compared to what I looked into (40k something) May 21 23:37:15 <_genuser_> android has finally made me learn java. I could never stay interested enough in it's "eccentric" ways. May 21 23:37:38 Mavrik: except that Java apps still manage to be slow. FWIW, it's not the computation speed that is limiting it May 21 23:37:42 <_genuser_> p_l: 21k per semester is a freaking car. When you pay cash. that's 42000 per year if you skip summers. May 21 23:37:51 ah, right May 21 23:37:57 p_l, comes with monkeys programming them :) May 21 23:38:01 and the startup cost May 21 23:38:04 <_genuser_> yeah, java's main problem is the jre. May 21 23:38:05 I missed the part about it being by semester May 21 23:38:31 <_genuser_> p_l: yeah my undergrad was like 1600 per semester, 10yrs ago. May 21 23:38:34 no, Java's main problem is oodles of code written for it which tries to hard to go with abstractions May 21 23:38:45 p_l: indeed, in fact java can be faster then c in some cases, for example the JIT can optimise in-line loops more efficiently as it knows when it's going to fall through etc May 21 23:38:52 <_genuser_> p_l: true that about abstractions. I have never so much bad way of going stuff. May 21 23:38:52 Spec-Chum: I know May 21 23:39:09 <_genuser_> p_l: like "just implement this", you activity will have a function to handle it's events. Just override function blah. May 21 23:39:27 _genuser_: Android is pretty low on the crazy abstractions May 21 23:39:59 <_genuser_> p_l: yeah, but it's limited by the java way of doing things. I think google would have done it differently if it wasn't on java. May 21 23:40:23 <_genuser_> p_l: like adding handlers, etc. I don't understand the reverse interface implementations. May 21 23:40:37 <_genuser_> p_l: you want to handle events from obj1? implement this interface! May 21 23:41:07 the problem is that I don't see how they could get certain things done without going with Java (or maybe .NET, but that one would be more problematic) May 21 23:41:22 _genuser_: ah, that is just Inversion of Control, yet another meme^Wpattern May 21 23:41:35 <_genuser_> the design patterns are ruining software engineering. May 21 23:41:40 but in general, it's good to think of android app as a bunch of interoperating components May 21 23:41:42 help, I did reset my perspective in ADT eclipse bundle. Now logCat and other android things disappear. May 21 23:42:12 somewhere in the UI there's "open perspective" thingy May 21 23:42:20 add DDMS and other android stuff May 21 23:43:51 <_genuser_> p_l: sort. I see all my code as components interoperating. May 21 23:44:25 <_genuser_> p_l: I have used Delphi, VB, VB/COM, .NET/C# and it's just so much nicer to have events. You components raise events. And the caller doesn't need to implement any interface. May 21 23:44:46 <_genuser_> p_l: this means, if your component changes and adds one more event, I don't have to recompile my code because the interface has changed. May 21 23:44:52 p_l: thanks, I found it. :D May 21 23:45:02 <_genuser_> p_l: sure in teh background it's just a function pointer. but for end-user so much nicer. May 21 23:45:54 heh May 21 23:46:06 anyway, I'm off to sleep, it's getting late here May 21 23:46:14 <_genuser_> enjoy! May 21 23:46:21 'night May 21 23:46:24 <_genuser_> nite May 21 23:46:43 p_l: good night May 21 23:47:10 _genuser_, that's why we usually rely on message buses on android apps :) May 21 23:47:27 the listener pattern can be annoying at times though May 21 23:47:41 hey, I'm always have to create a intern class that extends binder to use a Service like bind or there is other way ? May 21 23:48:22 wviana, what other way? May 21 23:49:03 Mavrik: I don't know, one way that I do not need to crate this internal class. May 21 23:53:30 I need to go, bye bye May 21 23:54:06 have you guys used the beta testing stuff? May 21 23:54:14 Is there a way to specifically add certain users? May 21 23:55:37 how can I tell what line of my code is producing this error: https://gist.github.com/anonymous/5624254 May 21 23:56:16 dev.tango.vol1.VideosActivity.(VideosActivity.java:59) May 21 23:56:18 dev.tango.vol1.VideosActivity.(VideosActivity.java:59) May 21 23:56:22 damn, missed it May 21 23:56:23 :D May 21 23:56:26 sucker! May 21 23:56:31 :)( May 21 23:56:37 network lag? you can blame network lag May 21 23:56:39 benlieb: do you understand how stack traces work? :) May 21 23:56:53 It's highly recommended to figure this out :) May 21 23:57:04 JesusFreke: yes i do, but i"m new to java May 21 23:57:20 those line numbers seem to point to compiled files May 21 23:57:42 most of them, yes. May 21 23:57:56 there's a lot more code running in your application than just the classes you write May 21 23:59:45 in particular, in this case, the NPE isn't happening in your own class, but rather in a framework class. This generally indicates that you're calling some API incorrectly. May 21 23:59:59 i.e. calling it before it should be called, etc. May 22 00:00:41 if you can't figure it out just by guessing, you can take a look at the implementation of the framework class, and try and figure out what is null, why it is null, and most importantly, how to make it not null :) May 22 00:02:04 JesusFreke: tnx for the help. I think that's what's going on. I found the line in the file of mine: at dev.tango.vol1.VideosActivity.(VideosActivity.java:59) It's easier when you look for your own package name. I somehow missed that on the first scan. May 22 00:02:55 Are you calling getSharedPreferences in the call to super(), by chance? :) May 22 00:03:53 JesusFreke: I was calling it in the class definition, before methods were defined. Probably not a good spot for that apparently. New to Android too! May 22 00:04:03 ah, yeah. May 22 00:04:06 that would do it too May 22 00:04:55 hey guys. I'm a linux C++ developer, and I want to backup some messages from an app I have on my android (BlackList Pro). Any directions on where it could be? Don't need to be specific, tips like "look at /data/foo, it's a sqlite file". I've read some android docs already, but I'm still lost May 22 00:05:25 I can debug app with gdb if necessary, but AFAIK mobile platforms have standard location for data files... May 22 00:05:37 the data dir of the app May 22 00:05:42 KeBugCheck, application data resides in /data/data/ by default or on external storage in .android/ May 22 00:05:46 in a database folder would be my guess May 22 00:05:54 KeBugCheck, you need root to be able to read directories under /data/data May 22 00:06:16 there you'll find either sqlite databases under "databases" folder, settings under "sharedprefs" or just random binary files May 22 00:06:21 depending on app :) May 22 00:06:35 you may be able to use run-as , not sure May 22 00:06:38 need to root? oh my... ok, I'll do this, it's an old galaxy S, should be easy May 22 00:07:04 I want to install another rom, but really want to backup those messages before May 22 00:07:09 KeBugCheck, yeah, one app can't just access other apps data ;) May 22 00:07:23 adb -d shell run-as com.myapp pull /data/data/... May 22 00:07:32 what format should I expect? sqlite? May 22 00:07:39 KeBugCheck, depends on app May 22 00:07:44 try g00s thing first ;) May 22 00:07:55 that won't work May 22 00:07:56 KeBugCheck, but for 90%+ it'll be sqlite3 file May 22 00:08:01 pull isn't a shell command May 22 00:08:04 it's an adb command May 22 00:08:11 there is no /system/bin/pull :) May 22 00:08:24 but you could copy it to the sdcard or something May 22 00:08:26 and then pull from there May 22 00:08:29 (maybe) May 22 00:08:41 ok, gonna check... Can't I access data via debugger with rooting? I have android sdk installed. May 22 00:08:44 sorry for the lots of short comments :/ May 22 00:09:19 JesusFreke: sure it works, package just has to be debuggable ;) May 22 00:09:36 g00s: "pull: not found" May 22 00:09:37 ;) May 22 00:09:43 works on my froyo :| May 22 00:09:48 froyo FTW! May 22 00:12:20 hm, on the emu api 17 i get run-as: exec failed for pull Error:Permission denied May 22 00:12:36 dunno, what about adb backup? never tried that though :) May 22 00:13:28 oh, yeah. adb backup should work :) May 22 00:13:50 oh wait, i had debuggable false :P May 22 00:14:13 as long as the dev had allowBackup="true" :D May 22 00:16:14 I'm looking at ActionBarSherlock code right now. Jake is using inside onCreateOptionsMenu() menu.add() etc... instead of getSupportMenuInflater(R.menu.menu_xml, menu) . What is the difference ? May 22 00:16:32 wut May 22 00:16:46 be more specific May 22 00:17:53 lets say ContextMenus.java inside onCreateOptions(Menu menu) the code is like : May 22 00:17:54 menu.add("Save") May 22 00:17:54 .setIcon(isLight ? R.drawable.ic_compose_inverse : R.drawable.ic_compose) May 22 00:17:54 .setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); May 22 00:18:18 ok May 22 00:18:20 why not an xml layout ? May 22 00:18:35 they do the same thing May 22 00:19:05 just curious if there is any other reason... May 22 00:19:17 thnx for the reply! :) May 22 00:19:51 you can't change the icon in XML really May 22 00:19:55 that was probably the reason May 22 00:20:18 (you can, i just didn't feel like making a theme attribute and custom themes which implemented them and blah blah blah) May 22 00:20:29 doing it in code is also a few nanoseconds faster! May 22 00:21:09 go for speed May 22 00:21:11 I like your approach ( doing it in code is way faster! ) ;) May 22 00:21:37 nobody every asks in an interview what's the slow way to change a view! May 22 00:23:49 mikedg: unfortunately, google also doesn't seem to ask "would you changed an SDK dir structure and not tell anyone" sigh May 22 00:24:31 this roman nurik post has a custom view in actionbar. it is a framelayout style="?android:actionButtonStyle" with one chid textview style="?android:actionBarTabTextStyle". the framelayout seems unnecessary; the textview could be clickable itself … but is there a way for just a single textview to inherit both styles ? May 22 00:24:46 no May 22 00:25:33 mkay, thx May 22 00:33:51 What the f*ck...why is File.length reporting that this json file in my android device is of length 2 when `cat filename` returns blank from teh console May 22 00:33:59 :S May 22 00:34:19 sounds right May 22 00:34:23 it contains "\r\n" May 22 00:35:02 WhereIsMySpoon: use xxd May 22 00:35:07 wait never mind May 22 00:35:10 it has [] in it May 22 00:35:15 i didnt see them May 22 00:35:23 :/ May 22 00:35:28 lol May 22 00:37:08 anyone familiar with volley here? curious how i'd go about implementing http digest auth in my requests? May 22 00:37:54 on a separate note, why am i getting permission denied when i do adb pull /data/data/com.me.erebus/files/myfile.json ? May 22 00:38:41 because app directories are not world readable May 22 00:38:49 (or readable by the shell user) May 22 00:39:09 JesusFreke: how do i do adb pull as superuser in the device then? May 22 00:39:55 if you can use adb root, then that will allow you to pull from anywhere May 22 00:40:17 alternately, copy the file to the sdcard or some other world readable place as root May 22 00:40:20 then pull from there May 22 00:40:35 can anyone here run apps in android studio? May 22 00:43:24 JesusFreke: `adb root` adbd cannot run as root in production builds May 22 00:43:26 O.o May 22 00:43:33 i dont even May 22 00:43:56 WhereIsMySpoon: I assume you have some other awy to get root access then? May 22 00:44:10 oh dear and now my device has disappeared May 22 00:44:17 JesusFreke: sure, through adb shel May 22 00:44:20 but then i cant adb pull May 22 00:44:32 yeah, just copy to some other place then May 22 00:44:34 and pull from there May 22 00:44:43 some other place that the shell user can access May 22 00:44:47 like /sdcard May 22 00:45:03 i see May 22 00:45:04 ok May 22 00:45:12 is there no way to pull the file off the device through adb shell May 22 00:45:25 or rather, push May 22 00:45:30 no May 22 00:45:34 =/ May 22 00:45:42 seems a bit cumbersome May 22 00:45:55 JesusFreke: why does it say that error message when i try `adb root` btw May 22 00:45:59 i dont have any production builds May 22 00:46:05 and my device is rooted May 22 00:46:15 it's based on the ro.debuggable system property, iirc May 22 00:46:30 and apparently it's not set on your device :) May 22 00:46:34 i am debugging on my device right now May 22 00:46:41 o.o May 22 00:46:51 that has nothing to do with whether ro.debugable is set May 22 00:46:54 i see May 22 00:46:58 where do i set this thing May 22 00:47:04 you have to modify the boot image May 22 00:47:05 if his device is rooted can he just use shell su and do what he wants ? May 22 00:47:08 ugh May 22 00:47:17 in /build.prop or default.prop or whatever it is May 22 00:47:19 StingRay_: that doesnt allow me to push files off it apparently May 22 00:48:03 StingRay_: if adb isn't running as root, adb pull runs in the context of the shell user May 22 00:48:14 being able to get root access via su doesn't change that :) May 22 00:48:33 is there no way to specify a user when doing adb pull May 22 00:48:38 and with that a password May 22 00:48:38 nope May 22 00:48:41 ugh May 22 00:48:45 android has no user passwords May 22 00:48:47 this is so long-winded May 22 00:48:48 (at the linux level) May 22 00:49:00 true, that was a silly addition of a question May 22 00:49:19 should intellij pick up lint.xml ? May 22 00:49:59 um, why does Button.setEnabled(false) not disable the button May 22 00:50:15 android.widget.Button this is May 22 00:53:14 anyone? May 22 00:54:11 does it fire the click ? May 22 00:54:28 maybe you want touch focus disabled too May 22 00:55:29 StingRay_: i just want the user to not be able to click it whilst it's doing stuff momentarily May 22 00:55:39 i thought setEnabled(false) would do that May 22 00:55:57 I would think that stops the listener May 22 00:56:19 but it's the view.background that shows visual reactions May 22 00:56:27 StingRay_: well it's still firing off the method that's linked to it May 22 00:56:39 oh thats odd :) May 22 00:58:02 StingRay_: yea it doesnt appear to actually do anything at all, i even removed the call to setEnabled(true) afterwards and the button is just usable forever May 22 00:58:09 :S May 22 01:00:53 StingRay_: what on earth is the difference between Button.setEnabled and button.setClickable May 22 01:00:55 *Button May 22 01:01:13 dunno May 22 01:01:21 one may denote vis appearance May 22 01:01:27 othe makes it not clickable May 22 01:01:34 ahaaaaa May 22 01:02:09 only guessing btw May 22 01:02:22 docs should say May 22 01:03:26 StingRay_: yea one makes it physically unclickable and one makes it *look* unclickable May 22 01:03:31 by greying it out May 22 01:03:39 good guess eh ? :) May 22 01:04:03 :D May 22 01:04:10 ok volley wtf :/ May 22 01:04:26 ? May 22 01:05:36 trying to make a request to this api and keep getting 500 back, but the same request through another library works fine and if i use nc to inspect the request they look the same May 22 01:05:50 then you are doing it wrong May 22 01:05:53 lol May 22 01:05:57 <_> May 22 01:05:58 500 is an internal server error May 22 01:06:17 probably meaning the server recieved unexpected data May 22 01:06:25 or incorrectly formatted data May 22 01:07:30 i mean it is a GET request with an accept: application/json header.. nothing crazy May 22 01:09:37 I'm guessing it must be the Authenticator May 22 01:10:59 Napalm: do you know how to do http digest auth with HttpURLConnection? May 22 01:11:17 lool May 22 01:11:21 with difficulty May 22 01:11:26 i wouldnt suggest it May 22 01:11:58 some SO posts suggested this method https://gist.github.com/drudge/ab6d30371d6b9fab3356 May 22 01:11:59 basicly its not part of the framework and you have to implement the entire protocol yourself May 22 01:12:29 yes that specified the authentication credentials May 22 01:12:38 but the framework has to support the auth mech May 22 01:12:40 it doesnt May 22 01:12:45 ok May 22 01:13:04 change your auth to basic or use your own mech May 22 01:13:11 or if you want implement the digest algo May 22 01:13:22 this isn't my api so i can't change to basic May 22 01:19:29 anyone know why I am getting "Gradle: : java.lang.NullPointerException" with android studio? I imported my project from eclipse, then used a 'new' project as a template to reorganize everything May 22 01:21:27 to drudge May 22 01:21:29 yo May 22 01:21:35 hey May 22 01:21:38 drudge: https://gist.github.com/slightfoot/5624590 May 22 01:21:57 my code, help yourself, it depends on Guava, but you can replace that code easily enough May 22 01:22:48 thanks! May 22 01:31:22 damccull: i think the reason is because its an early access preview May 22 01:31:30 :) May 22 01:32:10 g00s: ever had to use a reorderable listview? got any good libraries for it? May 22 01:32:48 hey Napalm , there was one in the old music player; not sure whats been done since :( May 22 01:32:56 yea ive seen that May 22 01:33:04 its not nice May 22 01:33:16 i think when i read that code,i realized i'll never be a GUI developer May 22 01:33:25 like, custom gui controls :) May 22 01:33:41 i really like custom gui controls and making them, but that was just bad May 22 01:33:48 not a good example of it at all May 22 01:33:52 https://github.com/bauerca/drag-sort-listview May 22 01:34:04 found that, but its no longer maintained May 22 01:35:18 it works well May 22 01:35:23 i'm forking it May 22 01:39:37 see I'm not a big fan of drag sort stuff May 22 01:39:47 tis ok on maybe large tablets May 22 01:39:57 but not on mobile phones May 22 01:40:23 I use https://play.google.com/store/apps/details?id=ch.teamtasks.tasks.paid&hl=en May 22 01:40:26 lots May 22 01:40:43 and dont like the sorting when on the phone May 22 01:40:51 on = using the phone May 22 01:42:22 man i need to do an app like that! May 22 01:42:29 6000 downloads D: May 22 01:45:12 StingRay_: i like the expandable checkbox list May 22 01:45:27 or whatever it is, does it only have 2 levels ? May 22 01:46:13 see I dont like that May 22 01:46:22 I like expandable sections May 22 01:46:54 like if I disable something, that renders 10 options under it pointless, I dont wanna have to scroll past them May 22 01:47:01 I'd rather they be gone May 22 01:49:10 g00s: lol. May 22 02:26:04 hello guys i have a strange problem with a crapy android tab. My app will run only on this tab and needs to open several websites in mobile mode. But the tab keeps opening them in desktop mode. Strange thing is: some pages open in desktop-mode and some in mobile-mode. Other strange thing on other tabs/phones the app is working good. Any ideas? May 22 02:27:19 maybe there is some kind of generic user-agent string for my resolution wich would help me? May 22 02:50:22 olarf, how are you opening the websites? May 22 02:50:25 webview? browser? May 22 02:50:37 both May 22 02:51:00 Mavrik: i managet to get some by editing the useragent string May 22 02:52:14 the useragent string had Mobile/7B367 and Version 4.0.4 in it May 22 02:52:54 and i changed it to Mobile /7B367 and Android version 4.0.4 now only one website is not working properly **** ENDING LOGGING AT Wed May 22 02:59:58 2013