**** BEGIN LOGGING AT Thu Jul 10 02:59:58 2014 Jul 10 03:17:27 ladies/gentlemen what's com.android.tools.build:gradle:0.12.+ ?? Jul 10 03:17:47 which part specifically ? Jul 10 03:17:47 gradle 1.12 or gradle 2.0 or something diff ie sdk update? Jul 10 03:18:18 bankai_au: I was at 0.11+ everything was working fine, updated to 0.12+ and things are broken Jul 10 03:18:34 getting Unsupported method: AndroidArtifact.getOutputFile() Jul 10 03:18:48 shipit what gradle are you using ? Jul 10 03:19:06 I was at 1.10, just upgraded to 1.12 Jul 10 03:19:07 no dice Jul 10 03:19:17 g00s: is the resident expert on AS version -> gradle plugin -> gradle version Jul 10 03:19:18 what sdk build tools ? Jul 10 03:19:47 my AS is 0.60 Jul 10 03:19:59 well use 0.8.2 Jul 10 03:20:19 and build tools, 20 Jul 10 03:20:23 g00s: rev 20 Jul 10 03:20:29 hmm Jul 10 03:20:30 ok Jul 10 03:20:33 hm, so it fails from the command line ? Jul 10 03:20:39 no, from AS Jul 10 03:20:53 ok, yeah 0.8.2 is the latest beta, should be the most stable Jul 10 03:20:56 AS v 0.60, gradle 1.12, build tools v20 Jul 10 03:20:59 *should be * wink wink Jul 10 03:21:05 hehe Jul 10 03:21:10 here goes nothing Jul 10 03:21:25 you probably have to grab the 0.8.0 full install and update it to 0.8.2 Jul 10 03:21:33 g00s: isn't there a table somewhere for this ? Jul 10 03:21:34 i don't think you can go from 0.6.0 -> 0.8.0 Jul 10 03:21:57 oh ... Jul 10 03:21:58 bankai_au its usually in the release notes for AS or gradle-plugin :| Jul 10 03:22:20 so d/l 0.8.2? Jul 10 03:22:31 dl whatever you can 0.8.x Jul 10 03:22:41 i don't think you can get 0.8.2 as a separate dl Jul 10 03:23:27 g00s: y, it's not available yet on beta channel Jul 10 03:23:37 I see 0.8.1 on canary Jul 10 03:23:41 0.8.2 is beta, but not available Jul 10 03:23:49 oh weird ! Jul 10 03:24:01 i have my update thingy set to beta, and it grabbed 0.8.2 Jul 10 03:24:03 everything is beta :S Jul 10 03:24:07 yeeaaah Jul 10 03:25:21 hmm Jul 10 03:25:43 but you updated from 0.8.0 or 0.8.1? Jul 10 03:26:07 i got 0.8.0, left channel to beta, and it went from .0 -> .1 -> .2 Jul 10 03:26:28 update channel preference that is Jul 10 03:28:26 bankai_au i thought this was a nice project (house) built in AU http://www.gizmag.com/dunn-and-hillam-desert-house-alice-springs/32891/ Jul 10 03:28:40 * g00s loves the desert Jul 10 03:28:43 if it's built in AU it's surely crap Jul 10 03:28:54 heh Jul 10 03:29:24 pretty impressive Jul 10 03:30:41 slow ass download ... Jul 10 03:30:46 351MB Jul 10 03:31:05 who else is working w/ java-rx? Jul 10 03:31:21 yeah … still not sure why they include the SDK in there, well to make it easy but really ? Jul 10 03:31:44 g00s: y, they want to do better out of box experience Jul 10 03:31:45 i'm about to work on the Lego movie Jul 10 03:32:02 they also select Android W (wearables) by default Jul 10 03:32:09 pretty sure to boost d/l no.s Jul 10 03:32:10 um Jul 10 03:32:25 yeah, haven't played with api 20 at all Jul 10 03:33:23 Sundar Pichai in Q3 "millions of downloads of wearable sdk and I talk w/ my hands like this and mostly about typefaces and I'm almost steve jobs Jul 10 03:34:35 if the wearable stuff expands past watches to sensors embedded in clothing , etc i'll be more interested Jul 10 03:34:57 not really interested in watches atm Jul 10 03:35:09 I don't think ppl have accepted wearables for general purpose use Jul 10 03:35:20 I don't wear a watch and I don't intend to Jul 10 03:35:28 wait till apple do one, then it'll be the best thing since sliced bread Jul 10 03:35:46 "revolutionary" ... and they were the "first ones" to "bring it to market" or something stupid like that Jul 10 03:35:51 I think apple will do fitness focused watch Jul 10 03:35:57 shipit yeah, its probably complex. but for one, its a privacy thing also. whereas you can leave your phone on your desk, if its a wearable its pretty much always on you Jul 10 03:35:58 as a supplement to iPhone Jul 10 03:36:21 the wearable isn't very useful when it's not tethered -- what's the point Jul 10 03:36:48 both MS and Apple are positioning themselves, relative to Google, as privacy focused - and having a business model that doesn't depend on using that information Jul 10 03:37:02 whether MS can pull off any wearable thing people care about, thats another story Jul 10 03:37:21 i guess their wearable gizmo forthcoming has some sensors (11) built in for something Jul 10 03:38:10 only Apple gains from directly putting their users first, Google/Android want user's data to live in their machine learning platform -- misaligned objectives Jul 10 03:39:25 g00s: Apple will be putting out a new iPhone where they'll by-pass the CPU just like Motorola Jul 10 03:39:49 shipit of course, apple could try to monetize that data, but yeah they don't have to Jul 10 03:39:51 and connect their on-board/off-board sensors over a separate circuit path Jul 10 03:40:12 no, Apple makes 58% margin on iPhone vs Samsung's 8% Jul 10 03:40:51 Pichai is like "you can see chrome tasks and apps in task list", ppl are like imma head to Apple store Jul 10 03:40:52 don't samsung earn from apple's iphone market as well? don't they make the screens or chips or something ? Jul 10 03:41:39 apple has been distancing itself, not sure what they use still Jul 10 03:42:01 bankai_au: you are correct but those revenues are reported separately from mobile Jul 10 03:42:15 LCDs are multiple suppliers Jul 10 03:42:15 phones Jul 10 03:43:28 g00s: yes, and Tim Cook is master of locking down massive inventories in advance, beating down their costs and Samsung sucks are that level of supply chain mgmt Jul 10 03:44:16 shipit yeah, apple ties up so much of the supply chain, lots of OEMs like HTC have to go to 2nd or 3rd tier suppliers Jul 10 03:45:10 well, i'm not really in anyone's ecosystem myself. competition is good. i like aspects of android, ios, and WP. Jul 10 03:45:21 i'd also love a ubuntu touch device … someday Jul 10 03:45:36 i guess i do have too many amazon kindle books, shit Jul 10 03:45:59 g00s I like open platforms, java+linux is a good thing for our species Jul 10 03:46:10 in my junit unit tests, SystemClock.elapsedRealTime() returns 0 a lot. how can i mitigate this? it's causing tests to break Jul 10 03:46:22 Sun died after Java, I don't care if Google dies after Android Jul 10 03:46:34 shipit yeah … but like most good things, it seems to get perverted at some point Jul 10 03:46:44 like binary blobs for device drivers Jul 10 03:46:49 hehe Jul 10 03:46:55 proprietary BS (play services) Jul 10 03:46:58 I'll quote you somewhere : Jul 10 03:48:37 anyone knows how to import settings from 0.6 to 0.8 for AS Jul 10 03:49:00 np, found it Jul 10 04:03:40 shipit i do get a bit cynical when big tech leaders talk about 'the next x billion users' Jul 10 04:04:02 i think, "you mean the next x billion serfs in your system?" Jul 10 04:04:26 g00s: I see that Jul 10 04:04:50 and once they are in your system, the feudal lords will take care of their security right? Jul 10 04:04:52 riiight Jul 10 04:05:37 not only that, unlike IBM/RedHat/Ubuntu, Google isn't contributing to open source/community the same way Jul 10 04:05:50 until you live in Google's machine, you're fine Jul 10 04:06:04 so AOSP is tied to GMS pretty tight Jul 10 04:06:04 if anyone missed the reference to feudalism https://www.schneier.com/blog/archives/2012/12/feudal_sec.html Jul 10 04:06:37 well, luckily google contributes to open source in a lot of projects, not just android Jul 10 04:07:19 but android specifically, its a bit different yeah Jul 10 04:08:11 y, they get points for AOSP, it was a glorious hope Jul 10 04:08:31 but we have no assurance other than Google's benevolence Jul 10 04:08:39 but i thought the other day, i'm going to get aosp running on a beagleboard or something Jul 10 04:08:46 that should be fun right ? Jul 10 04:08:50 oh crap, no play services Jul 10 04:08:53 g00s: I've been thinking that for last 2-3 yrs Jul 10 04:08:56 hmmm Jul 10 04:09:13 besides maps, what else is in GMS? Jul 10 04:09:25 that you need Jul 10 04:09:30 seems like every day, more and more stuff Jul 10 04:09:43 nothing is in gms Jul 10 04:09:45 i wanted to use it for my development device Jul 10 04:09:53 just stuff to talk to google services Jul 10 04:10:09 hi all, I'm using android studio. tried to create a device based on S4. but when I clicked create after putting all the details, nothing happened Jul 10 04:10:10 so if i wanted to use play services, like geolocation stuff, i wouldnt be able to test that on the beagle ... Jul 10 04:10:12 if you don't want to talk to google services gms is irrelevant Jul 10 04:11:14 hello guys Jul 10 04:11:32 you talk as if you play services is what makes android Jul 10 04:11:33 can i ask a basic question about folder struction in android? Jul 10 04:11:37 it's not Jul 10 04:11:46 http://snag.gy/6dNoq.jpg Jul 10 04:11:52 *structure? Jul 10 04:11:53 which javac should I install from debian repos for android dev? * default-jdk * ecj * gcj-4.6-jdk * gcj-4.7-jdk * openjdk-7-jdk * openjdk-6-jdk Jul 10 04:12:27 whatever oracle's version is Jul 10 04:12:28 openjdk Jul 10 04:12:29 pfn_: gmail, calendar, drive Jul 10 04:12:37 in Windows C:\download-- What is the file path in Android of the download folder? Jul 10 04:12:45 pfn_: thanks Jul 10 04:12:49 shipit, right, all unnecessary for the android experience Jul 10 04:13:24 only thing that's kind of essential are google now and the play store Jul 10 04:13:39 pfn_: I agree w/ you but then there is nagging doubt that without seamless GMS, AOSP might not be very useful Jul 10 04:14:07 shipit so i'm probably going to try it and see how far i can get Jul 10 04:14:18 g00s more power to ya! Jul 10 04:14:40 while on subject, what's the best board for AOSP? Jul 10 04:14:52 shipit there is one in aosp, i think its beagle Jul 10 04:15:20 but i'd check those channels specifically to see what versions work with what Jul 10 04:16:20 g00s looks like you need to cross-compile ie seperate toolchain etc or does adb+AS support it? Jul 10 04:16:27 shipit i might try the HummingBoard Jul 10 04:16:33 shipit i'm not sure yet Jul 10 04:16:48 y, I will research it as well Jul 10 04:16:58 shipit, how would it be not useful, works just fine Jul 10 04:17:18 use amazon app store or get jar or any 3rd party of your choice Jul 10 04:17:20 please? Jul 10 04:17:24 right now, my pet project is to get a N7 running on my motorcycle esp. when no network ie in mountains Jul 10 04:19:19 maybe Android-Auto or something Jul 10 04:21:32 g00s your Feudal Security link is on the money Jul 10 04:22:11 you also need Play Services to use GCM Jul 10 04:22:17 (no surprise) Jul 10 04:22:24 GCM? Jul 10 04:22:27 ah Jul 10 04:22:41 push etc Jul 10 04:23:29 well in a way Google is underwriting the infrastructure costs in exchange for user's life long data Jul 10 04:23:55 i grew up with a commodore 64; it wasn't open source but it was 'openish'. we all still loved it anyhow. i don't care much that play services isn't open source, but it would be nice if they had some liberal usage clause that let genymotion , or you or me use it in projects Jul 10 04:24:35 they gave us schematics of the c64 main board, in case anyone wanted to fix it :D Jul 10 04:24:41 g00s y, can't argue w/ that "open" feeling Jul 10 04:25:48 yeah, that would be great if i could take play services and put it on a beagleboard easily, without having to download it from my phone or something like that Jul 10 04:26:07 people do it all the time, there are ways Jul 10 04:26:40 commodore-pet? Jul 10 04:27:01 g00s Google probably protects it because they don't want knock off phones without their blessing Jul 10 04:27:01 C64 yeaaah Jul 10 04:27:08 BBC Micro :) Jul 10 04:27:39 capella i took my case apart and soldered some stuff to it Jul 10 04:27:49 parts and boards were big those days :) Jul 10 04:27:51 g00s da man! Jul 10 04:27:54 OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK. Jul 10 04:27:58 pfn_ Jul 10 04:28:16 duncannz yeah use oracle if you can Jul 10 04:28:28 duncannz oracle Jul 10 04:29:02 :) I did some custom boarding into Apple II's ... connected them to process control systems in Concrete mixers, Train rail corrugation analyzers, brake failure systems Jul 10 04:29:03 We didn't have Rasberry-Pi's yet :) Jul 10 04:29:39 capella there were rpi's that time, just that they were running Z80s Jul 10 04:30:14 Z80 and Cp/M Jul 10 04:30:17 i had a kit where you had the memory module, cpu module, etc -- and all the boards had their busses in certain orientations so you fit them together like little brivks Jul 10 04:30:21 *bricks Jul 10 04:30:53 like each board had the data and address busses hanging off the top Jul 10 04:31:20 * capella thinks g00s is older than I've been thinking Jul 10 04:31:25 Zilog was a fun company to work with. "Hi i'm a student in school …" Jul 10 04:31:29 g00s while I never solder my own lines but that shit was dope :) Jul 10 04:31:38 " oh really, let us send you ALL THE THINGS" Jul 10 04:31:43 g00s: I did that with DEC ... they gave me cool manuals and stuff Jul 10 04:31:59 capella i worked for DEC :) Jul 10 04:32:12 that didn't last too long of course XD Jul 10 04:32:17 Cool! My first "big" box was a PDP-8 Jul 10 04:33:08 :O Jul 10 04:33:23 stuff wa sso easy to mess with back then Jul 10 04:34:12 or 'hack'. al those ICs in 40-pin DIPs etc had like 0.1 " spacing Jul 10 04:34:21 you could wire wrap that crap Jul 10 04:34:37 of course, all those little wrap terminals were like little antennas Jul 10 04:34:43 I wired some unit record machines ... toggleed front panel to input insts ... or paper tape via TTY Jul 10 04:34:49 couldn't really get stuff going past 1mhz to easily Jul 10 04:35:57 i used to go dumpster diving as a kid, take all these motherboards home from this company that threw out computers for .. something … no idea. back then, they had all the parts in sockets. you could take them off the socket, test them, bin them Jul 10 04:36:02 so much fun Jul 10 04:36:18 capella what is a unit record machine ? Jul 10 04:36:40 ah ... way old .... basically sorting hardware Jul 10 04:36:42 * g00s googles Jul 10 04:36:45 cards Jul 10 04:36:55 wow Jul 10 04:37:26 * capella needs to stop telling people these things ;P Jul 10 04:37:31 hehe Jul 10 04:37:54 i like the ARA project because conceptually, its like the computer kit i used in high school with blocks Jul 10 04:38:26 My crowd was laughing about "Halt and catch fire" when it was funny the first time :) Jul 10 04:38:48 I don't quite like that show Jul 10 04:39:05 seems like a riff on Apple's story Jul 10 04:39:11 we all know that story Jul 10 04:39:37 in all honesty, I just saw one episode, and it was more than enough for me Jul 10 04:41:38 g00s: My high-school classes started with these: http://en.wikipedia.org/wiki/Unit_record_equipment#mediaviewer/File:Lochkartendoppler_IBM_519.jpg Jul 10 04:41:39 wired-panels !!! Jul 10 04:42:06 interesting, never saw that before Jul 10 04:42:17 whoa! Jul 10 04:42:28 hahaha - and, ouch! Jul 10 04:42:48 so you'd wire up the breadboard as instructions? Jul 10 04:42:53 yep Jul 10 04:42:58 jeez! Jul 10 04:43:04 hard core bro! :) Jul 10 04:43:12 or (bro-ess) Jul 10 04:43:16 well, they were old even then, but it was intro to computers Jul 10 04:43:55 my javascript interface is not picking up this click :-| Jul 10 04:44:24 javascript? well there's your problem ... Jul 10 04:44:29 this is how we coded the DEC pdp-8 http://en.wikipedia.org/wiki/Teletype_Model_33#mediaviewer/File:Teletype_with_papertape_punch_and_reader.jpg Jul 10 04:44:53 bankai_au: tell me about it Jul 10 04:45:01 capella with a teletype? Jul 10 04:45:01 mmm ... that ones missing the phone / modem Jul 10 04:45:11 yah - it had an acoustic coupler Jul 10 04:45:27 the thing on the left reads/writes paper tape Jul 10 04:45:52 07-09 23:42:01.008 5917-5917/com.example.myapp I/chromium﹕ [INFO:CONSOLE(89)] "Uncaught TypeError: Object [object Object] has no method ''", source: myurl.com/blahblah (89) Jul 10 04:45:53 I read about PDPs then in Swordfish, Hugh Jackman is like, I have a PDP-11 somewhere w/ my hydra-whatever code on it Jul 10 04:45:59 err i thought that was shorter Jul 10 04:46:50 pdp-8 ... octal based - 3 bit bytes - ermigerd! Jul 10 04:47:25 counted from 5, 6, 7, 10, 11 Jul 10 04:47:35 Hello, Anyone know why I could not import java.time in android studio? (using java SE 8) Jul 10 04:48:02 allomellow well java 8 time is jsr310 Jul 10 04:48:19 allomellow: not supported by Android Jul 10 04:48:23 or something like that, android is a mishmash of java 7 Jul 10 04:49:05 allomellow you may be able to get the "threeten" project working on android though Jul 10 04:49:22 btw g00s I got my AS/SDK setup going, gradle is humming along nicely - thx :) Jul 10 04:49:27 AS 0.8.2 Jul 10 04:49:33 shipit yw ;) Jul 10 04:50:36 g00s: , what do you mean java 8 is jsr310? Jul 10 04:50:53 the java 8 time apis all changed Jul 10 04:51:09 they won't be in android Jul 10 04:51:43 so is android actually separate from java completely? Jul 10 04:51:58 * Jesperhead *blinks* Jul 10 04:52:12 the api has to be listed here http://developer.android.com/reference/packages.html Jul 10 04:52:14 * shipit red pill Jul 10 04:52:41 allomellow: android at its base core is a linux kernel? I guess that's fair to say... which has nothing to with java Jul 10 04:53:06 i need help Jul 10 04:53:08 java plays a big role in android, thats for sure Jul 10 04:53:09 Error:The SDK Build Tools revision (19.0.3) is too low for project ':CardboardSample'. Minimum required is 19.1.0 Jul 10 04:53:31 allomellow well, i think one way to describe it : over time, its diverging from oracle java. i think all java 7 features except try with resources (api 19 only) but the classpath is … yeah, stuff missing. Jul 10 04:53:39 edwardthefma: you set up your project to use a higher api than the device you are testing on uses Jul 10 04:54:10 i cant find the 19.1.0 Jul 10 04:54:16 did you download it? Jul 10 04:54:19 check the sdk manager Jul 10 04:54:22 g00s, it is actually getting farther apart hey? huh. Jul 10 04:54:39 are they intentinonally diverging? Jul 10 04:54:55 I'd wager yes... since oracle recently sued google :-p Jul 10 04:54:56 well, atm oracle / google are still in that API as copyright lawsuit Jul 10 04:55:04 i have 19.1.1 19.1.2 and 19.1.3 installed Jul 10 04:55:20 Jesperhead:/ g00s ah. had no idea Jul 10 04:55:23 edwardthefma: well the device you are using is on 19.0.3 Jul 10 04:56:27 omg why the eff doesnt my JS interface pick up this click Jul 10 04:57:31 as an outside, i can only guess. they are still investing in their runtime (art). during fireside they said java is here to stay. Jul 10 04:58:44 Jesperhead go over your JS bridge code Jul 10 04:58:54 so then perhaps let me ask a different question: What is the best way to store a date/time in android (analagous to LocalDateTime in J8)? Jul 10 04:58:57 shipit: i am. method names == Jul 10 04:59:10 as well as variables Jul 10 04:59:18 hm, it has worked for me ... Jul 10 04:59:22 in the past Jul 10 04:59:31 allomellow i usually just store them as epoch timestamps :| Jul 10 04:59:32 all the other clicks are registering Jul 10 04:59:42 so long :) Jul 10 05:00:21 not sure what LocalDateTime is Jul 10 05:00:34 allomellow what's wrong w/ System.currentTimeMillis()? Jul 10 05:00:36 allomellow that is in Joda Jul 10 05:00:43 you can use Joda, btw Jul 10 05:01:22 Ive heard of Joda before, perhaps I should look into it Jul 10 05:01:33 i think threeten is newer Jul 10 05:01:41 the same guy worked on all of them Jul 10 05:02:32 do you know how to do that in android studeo Jul 10 05:02:48 ah crap http://androidcookbook.com/Recipe.seam?recipeId=4622 Jul 10 05:03:01 what is threeten? Jul 10 05:03:50 hey you can star this :D https://code.google.com/p/android/issues/detail?id=62192 Jul 10 05:04:09 "It's unfortunate that Google has so far chosen not to preserve greater compatibility with the rest of the Java ecosystem.", yeah no shit Jul 10 05:04:19 Google is just doing what MS wanted to do but couldn't Jul 10 05:04:25 but its google so its ok Jul 10 05:05:53 it's not "that" bad... Jul 10 05:07:32 everybody was happy Sun won over MS; making incompatible versions of java would have destroyed the value of the platform Jul 10 05:07:55 the goal was to keep the java ecosystem "write once, run anywhere" heh Jul 10 05:08:22 idealistic maybe ;) Jul 10 05:08:48 thanks for all the help everyone. I've gotta get to bed so I can get up for work tomorrow :) Good night.. Jul 10 05:08:59 are they still peddling that? i they oracle are going with "it's everywhere" now Jul 10 05:09:36 Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version L declared in library com.android.support:support-v4:21.0.0-rc1 Jul 10 05:10:16 bankai_au i'm having a harder time these days determining who is real and who is a bot Jul 10 05:10:18 any ida Jul 10 05:10:28 idea Jul 10 05:10:31 g00s: i'm real!!! Jul 10 05:10:33 edwardthefma do you just spew random error messages ? Jul 10 05:10:45 edwardthefma what is the square root of 0 Jul 10 05:10:47 yes sometimes Jul 10 05:10:59 that RedEyedGirl does the same Jul 10 05:11:05 and i suck at math Jul 10 05:11:20 I love people who come in and say "how to start the asycnhtask" Jul 10 05:11:29 like this is a google search engine Jul 10 05:11:51 lol Jul 10 05:12:57 bankai_au RedEyedGirl is stream of consciousness with twitter-esque musings and updates ... Jul 10 05:13:07 stream of craziness more like :D Jul 10 05:13:12 hahah best setence ever Jul 10 05:13:16 and occasionaly screams of desperation Jul 10 05:15:19 yeah , lots of pent up frustration there Jul 10 05:15:21 stream of conciousness Jul 10 05:15:35 i suppose everyone is. Jul 10 05:15:52 people shouldn't be bringing their bots in here though right? Jul 10 05:16:02 no bots Jul 10 05:16:18 although, i guess a case could be made for a documentation / FAQ bot like #git Jul 10 05:16:32 i think they didn't because nobody wanted to maintain it Jul 10 05:16:35 mozilla has firebot Jul 10 05:16:52 #java have a bot Jul 10 05:16:58 remembers things ... prompts up bugs Jul 10 05:17:28 so the next time somebody asks, "how do i pass an object from one activity to the next" ... Jul 10 05:17:35 thats good bot territory Jul 10 05:17:50 or "my app crashes when i'm doing a network call" Jul 10 05:18:23 "how do i communicate from my service to the activity?" Jul 10 05:18:29 yeah, we see the same things Jul 10 05:18:42 "should I use Eclipse or IntelliJ" Jul 10 05:18:55 * edwardthefma almost has the sample app of google cardbordsetup Jul 10 05:18:56 "how can i connect to my mysql server? jdbc?" Jul 10 05:19:02 Why can't Eclipse find R. Jul 10 05:19:14 bankai_au oh thats "how do i connect my php to my android" Jul 10 05:19:15 android studeo Jul 10 05:19:35 if you guys want a bot that can answer questions... Jul 10 05:19:39 I kind of have one made already Jul 10 05:19:42 it's a little buggy Jul 10 05:19:51 it was more a political problem Jul 10 05:19:52 you can even set the answers to new questions without additional programming. Jul 10 05:19:59 can you stop using enter as a punctuation key, it's really pissing me off Jul 10 05:20:24 I forgot some people's irc actually makes noise. >.< Jul 10 05:21:14 for those who want faster pace conversation you can join #android-dev_spammable Jul 10 05:21:59 isn't there android-defocus or something like that ? Jul 10 05:22:09 Oh, :) Some people like to hit enter a lot while they type ... either they can't form lengthy complete sentences or they don't want others to get a word in edge-wise :P Jul 10 05:22:24 I just have aspergers. Jul 10 05:22:32 make mine rare Jul 10 05:22:59 i thought i had Aspergers at one time Jul 10 05:23:03 most people who have aspergers don't know they have it Jul 10 05:23:07 then i realized i was just stupid Jul 10 05:23:12 :p Jul 10 05:23:14 I was diagnosed. Jul 10 05:23:15 aww, buddy, you're not stupid ... Jul 10 05:23:25 just special, really really special Jul 10 05:23:37 bankai_au you have a wierd sarcastic sense of humor. Jul 10 05:23:37 He rides a special bus :) Jul 10 05:23:41 lol, somewhere on the affective disorder spectrum :D Jul 10 05:23:49 somewhere ...... Jul 10 05:24:03 RedEyedGirl: i'm aussie, apparently it's in our blood Jul 10 05:24:12 oh. Jul 10 05:24:25 makes sense.. Jul 10 05:24:45 Maybe an inherited form of Brit-snark Jul 10 05:24:57 Leeds has that haha Jul 10 05:25:10 package.com.aussie.sarcasm_humor; Jul 10 05:25:15 capella: my mate always says to me "eats glue kinda special or avoid eye contact kinda special?" Jul 10 05:25:29 I love that subtle humor ... you really have to pay attention to appreciate it :D Jul 10 05:25:51 bankai_au : heh Jul 10 05:26:52 * RedEyedGirl stares away from computer screen trying not to press enter impulsively with words that are off topic Jul 10 05:27:19 why stop now? Jul 10 05:28:01 remap enter keycode to ctrl-alt-shift-f1,f2,f3,f4 Jul 10 05:28:03 bankai_au you really are something , your humor is so.. blah.. :/ not mean.. but not... nice either . >.> it's so subtle.. lol. Jul 10 05:28:49 wasn't trying to be funny, i was taking a stab at you Jul 10 05:28:58 I know. Jul 10 05:29:01 i think its love Jul 10 05:29:11 was just thinking Jul 10 05:29:14 it was slightly humerous though. Jul 10 05:29:19 get a room? Jul 10 05:29:47 o.0 So what's everyone working on ? Jul 10 05:30:11 psychoanalyzing #android-dev Jul 10 05:30:34 k. Jul 10 05:31:11 I was doing that in #android-root Jul 10 05:31:58 https://www.youtube.com/watch?v=GaoLU6zKaws Jul 10 05:32:09 Hi, I'm new to android development, and heavily confused on choosing image that fits all devices. Jul 10 05:32:16 oh sure, it'll be lemondrop Jul 10 05:32:52 * capella won't fall for that again Jul 10 05:34:07 So, say I have an image. and I have photoshop, should I reduce the image size to suit all those dp things? (considering I start from the highest res) Jul 10 05:36:43 and the image I have, do I get to choose if its an MDPI or HDPI or XHDPI and start the scaling things, or there's a criteria to decide that? Jul 10 05:41:11 How can I add SDKs in Android Studio 0.8.1 beta Jul 10 05:41:14 ? Jul 10 05:42:24 Ususally It was through "Project Structure" window, but it looks all different while opening a gradle based project. Jul 10 05:54:07 Hi all Jul 10 05:54:27 I installed xchat 30 days back and now its evaluation version expired Jul 10 05:54:42 I am chatting through webchat Jul 10 05:55:05 How can I reinstall the same xchat Jul 10 05:55:27 niru: what does that have to do with #android-dev ? Jul 10 05:56:02 Noting but if someone faced the same issue can help me :( Jul 10 05:56:27 niru: you could always just pay for xchat Jul 10 05:56:40 lol, i think you are the only one that ever had that problem Jul 10 05:56:52 so probably nobody can help :) Jul 10 05:58:39 I've been using xchat for many many years, never had to pay for it... Jul 10 05:58:52 you do on windows Jul 10 05:58:55 Leeds: Windows version needs payment Jul 10 05:58:58 i need good music x.x Jul 10 05:59:00 its for windows Jul 10 05:59:00 feeling restless Jul 10 05:59:09 oh, windows... well, there's an easy answer to that Jul 10 05:59:09 niru use hydrairc or https://www.irccloud.com/ Jul 10 05:59:10 RedEyedGirl: porter robinson Jul 10 05:59:15 In linux its free Jul 10 05:59:18 Is a SurfaceView basically just a view with a thread devoted to it? Jul 10 05:59:30 niru run xchat in virtuablbox running ubuntu Jul 10 05:59:45 g00s: lol Jul 10 05:59:54 lasserix.. try not to worry about the source of your objects or their functionality unless you're going to control them low-level. Jul 10 06:00:00 just get an android IRC client and run it in the emulator Jul 10 06:00:16 RedEyedGirl: uhh thanks but that does not help me and yes thats exactly waht i am doing ;p Jul 10 06:00:40 niru get qicr and tell pfn that it runs better in genymotion than the emulator Jul 10 06:01:00 lasserix, you're going to control your SurfaceView on a low-level ? not using normal access? Jul 10 06:01:02 I guess what i meant to ask is, can I roll my own surface view by just using a thread and doing lock/unlock canvas by pushing to ui thread to post to canvas Jul 10 06:01:03 good idea Leeds XD Jul 10 06:01:53 lasserix if you can actually do that it'll be impressive.. i'm just starting learning android but it doesn't seem like a common thing to do. Jul 10 06:02:17 RedEyedGirl: itd actually be fairly easy for me to do, maybe not when i was as skilled as you are, but now its just like clockwork Jul 10 06:02:30 RedEyedGirl: http://www.youtube.com/playlist?list=PL4554AA2C8596FC98 Jul 10 06:03:00 chatzilla on Windows Jul 10 06:03:02 Leeds, thanks but not my kinda music o.0 Jul 10 06:03:16 you said good music... that's about as good as it gets Jul 10 06:03:40 If I can roll my own surface view, is there any reason I should not besides the fact it already exists? Jul 10 06:03:58 https://www.youtube.com/watch?v=UBVoONryE3s this is kinda what i like (this kinda stuff) Jul 10 06:04:00 g00s: Leeds Jul 10 06:04:10 thanks for the suggestions Jul 10 06:04:18 I will try one of them Jul 10 06:04:24 you can also use chatzilla Jul 10 06:04:58 niru if you need irc client on windows quassel is good Jul 10 06:05:31 g00s: lasserix thanks I am noting down Jul 10 06:05:47 niru: i was using mirc till it expired, then after trial and error the best free client i found was quassel Jul 10 06:05:52 lasserix is that still being developed ? Jul 10 06:05:59 i think so but not sure Jul 10 06:06:01 just thinking without irc my life would have been a mess :) Jul 10 06:06:03 i am using it now ;p Jul 10 06:06:27 there is so much help here and it makes life easy Jul 10 06:09:03 niru: not sure if someone's mentioned it, but I think there's a free version of xchat called hexchat Jul 10 06:09:30 I need help figuring out how to add this : http://pastebin.com/mJnED65s into ->http://pastebin.com/ShtHRChS The confusion is that there's two extends statements so i can't double extends.. how would I put the first link into my mainactivity without conflict.. and have them run? Jul 10 06:09:34 for windows, that is Jul 10 06:09:58 RedEyedGirl: you might try #libgdx Jul 10 06:10:41 RedEyedGirl: you don't need too, the screen will be implemented by libgdx as your activity Jul 10 06:10:51 please let me know if http://pastebin.com/MPTpdqW2 should work fine Jul 10 06:11:05 I have 3 items in a listview page Jul 10 06:11:16 lasserix, I want both sources I linked to work together... >.< Jul 10 06:11:19 and clicking each item should redirect to the correcpoing page Jul 10 06:11:20 niru: the position is 0-indexed, that won't work Jul 10 06:11:36 also, no need to call through to super, I don't think Jul 10 06:11:40 the class... won't execute itself. o.0 Jul 10 06:12:07 RedEyedGirl: which sensor are you needing? Jul 10 06:12:58 RedEyedGirl: you don't need to do both you just need to use the accelerometer in libgdx Jul 10 06:13:00 you canlook here Jul 10 06:13:01 http://www.gamefromscratch.com/post/2013/10/30/LibGDX-Tutorial-6-Motion-controls.aspx Jul 10 06:13:56 but basically it means you can disregard your second link, by using Gdx.input.getAccelerometerY(); /X() /Z() Jul 10 06:14:01 make sure you enable it in the config Jul 10 06:14:17 but that is libgdx's wrapper around the sensoreventlistener from your second link Jul 10 06:15:17 i'm using. this book which teaches you to build your own framework n stuff Jul 10 06:15:29 Beginning Android Games 2.0 Jul 10 06:15:39 er "2nd edition" Jul 10 06:15:54 So basically it has me.. copying and pasting these interfaces myself to make them work? :/ Jul 10 06:16:34 barbs: you mean it starts with 0,1,2...? Jul 10 06:16:52 barbs: you are correct super is not required Jul 10 06:17:42 niru: yep Jul 10 06:17:45 RedEyedGirl: that book uses the libgdx library Jul 10 06:17:58 ]it doesn't say it, but all those interfaces etc etc etc are actually from the libgdx library Jul 10 06:17:58 other than that, seems ok Jul 10 06:18:20 you should just use the gdx library and save yourself a lot of boilerplate, since all that stuff is already defined Jul 10 06:18:22 barbs: thanks that worked :) Jul 10 06:18:33 w00t Jul 10 06:18:47 (I've read that book like 3 times ;p) Jul 10 06:20:47 okay.. Jul 10 06:20:56 so should I just start using libgdx. Jul 10 06:21:02 what is the point of the book then if I could just learn libgdx.. Jul 10 06:21:14 the book teaches you how to use libgdx, but also how to set up a framework Jul 10 06:21:24 the key is "how to use" Jul 10 06:21:39 and understanding all the stuff you have to do to make any game work, whether or not you use libgdx Jul 10 06:21:55 all i meant was that you'll save yourself a lot of time if you use the library, because you won't have to type all that up Jul 10 06:21:56 basically i just wanna get to learning i don't care how something is implemented i just wanna see results on the screen lol... mostly i won't need to care i don't think. Jul 10 06:22:04 and you can concentrate on actually making the game Jul 10 06:22:21 I already mostly understand game creation Jul 10 06:22:24 yeah so use the library and don't waste your time typing all that stuff up that is already there Jul 10 06:22:29 okay.. Jul 10 06:22:30 lol Jul 10 06:22:33 yeah but do you know how to handle touch events? Jul 10 06:22:38 Do I have to install libgdx myself then Jul 10 06:22:48 no I'll get that stuff from the book Jul 10 06:22:51 do you know how to create your own metric so you can fit your game to all screen sizes? Jul 10 06:22:54 yeah Jul 10 06:22:58 that's what the book is for Jul 10 06:23:07 I'll use it to learn then and i'll just set up libgdx? Jul 10 06:23:19 set up libgdx, then do the rest Jul 10 06:23:29 that way you can play with the stuff in the book as you go along Jul 10 06:23:33 thanks for making things a bit easier for me. Jul 10 06:23:39 i kind of already... typed alot of it myself Jul 10 06:23:40 >.< Jul 10 06:23:42 i'd recomend not trying to do anything with opengl for the time being Jul 10 06:23:44 well i copy / pasted it Jul 10 06:23:54 opengl is very advanced even for me i'v toyed with it Jul 10 06:23:55 opengl is a beast Jul 10 06:24:08 but i can't make proper use of it right now Jul 10 06:24:15 unless i want to just draw geometry Jul 10 06:24:35 or i had a model loader and animating library with a collision library.-- for gl at that point i may as well be using something like unity Jul 10 06:24:44 RedEyedGirl: you have to use gradle these days meaning android studio to use libgdx, but someone made a nice app that will automatically configure your project http://www.aurelienribon.com/blog/2012/04/new-app-libgdx-project-setup/ Jul 10 06:25:09 RedEyedGirl: not nece bullet + opengl = most of that core functionality of unity Jul 10 06:25:20 o.o the libgdx stuff in the book has workd for me up to this point (without the libgdx library itself? o.0) Jul 10 06:25:28 but to understand opengl you need to know linear algebra and etc etc Jul 10 06:25:43 RedEyedGirl: yeah that's how he wrote it, to set up basically what libgdx is Jul 10 06:26:14 are there other assemblies that I need android studio for? Jul 10 06:26:19 the only difference is that if you use the library, you'll have cross compatibility since it allows you to create one core source code and the library will apply it to the various platforms you want to target Jul 10 06:26:29 ahh just http://www.aurelienribon.com/blog/2012/04/new-app-libgdx-project-setup/ get this app Jul 10 06:26:34 ok Jul 10 06:26:40 you run it and it'll auto configure gradle to do all yourstuff Jul 10 06:26:47 to get it working Jul 10 06:26:48 very nice Jul 10 06:27:42 THE only drawback to using the library is you have to get adjusted to the library api, the code you've already set up in android and specific to android, ie you don't have to deal with the library's wrapper so much (not a pain, but actually quite useful since you can debug in java, not android) Jul 10 06:28:12 if you get stuck be sure to poke your head into #libgdx Jul 10 06:29:39 oh ok... Jul 10 06:31:07 the launcher gives a version number ??// error Jul 10 06:32:37 ok i'm downloading the gdx through the launcher. that'll take a while Jul 10 06:33:59 Yeah so that's what i meant, there's a little bit of the learning curve to get it set up, but if you can get through that then life will be much easier Jul 10 06:36:00 Ahh so I am making a custom view. I have a grid i need to layout: should I do this in onMeasure? Jul 10 06:36:18 *a grid--> a bunch of adjacent rects Jul 10 06:43:59 So it would appear onMeasure is the place to do it Jul 10 06:45:04 Arggh i can't have two windows in Android Studio? what madness is this!?!? Jul 10 06:45:38 lasserix: you can, but i recall it being in rather surprising place Jul 10 06:46:05 this so says impossible: http://stackoverflow.com/questions/22410029/android-studio-multi-windows-for-one-project Jul 10 06:46:11 p_l: like a back of a volkswagen? Jul 10 06:46:18 but this may be the last straw, might have to go back to eclipse ;p Jul 10 06:47:57 lasserix: considering that I had run intellij with more than one window... Jul 10 06:48:12 yeah it would seem there must be a way Jul 10 06:48:30 since like does no on at android/google use multiple moniters or what? Jul 10 06:48:31 it involved starting with the split then doing something more, I don't remember what Jul 10 06:48:59 ahh well i guess ic an just use floating tabs then Jul 10 06:49:13 right, that was it Jul 10 06:50:22 lasserix: in general, I suggest perusing IntelliJ documentation :) Jul 10 06:50:35 thanks Jul 10 06:51:14 * p_l did use IntelliJ with two monitors, but most of the time the second monitor was debugging etc. windows of other programs Jul 10 06:51:15 p_l do you know if there is something special about surface view other than the fact's like a normal view just hybridized with a persistent asynctask? Jul 10 06:52:53 no idea right now Jul 10 06:55:13 dudes, debugging on ART is slow for everyone? Jul 10 06:55:58 had to abandon art... kept crashing firefixy Jul 10 06:56:08 firefox Jul 10 06:56:12 things are fast on my N5 Jul 10 06:56:48 but I keep an N4 for dev, things are fastish w/ dalvik on it Jul 10 06:57:29 how can you do a path in a download folder in android? Jul 10 06:57:37 in Windows, it is just C:\download Jul 10 06:57:42 what is tha tin android? Jul 10 07:01:21 toksis: Take a look at the Environment class. It has methods that give you paths Jul 10 07:11:06 when would getApplicationContext() return null? Jul 10 07:15:00 Jesperhead: I would've thought never :S Jul 10 07:15:13 guess i broke it Jul 10 07:22:31 thank you Jul 10 07:23:01 i dont know what to search.. so it is called environment Jul 10 07:23:02 thanks Jul 10 07:23:58 toksis: http://developer.android.com/reference/android/os/Environment.html Jul 10 07:31:44 hi guys, I got a problem getting unit tests out of an emulator - can anyone help me figure it out? Jul 10 07:35:18 specifically when using gradle Jul 10 07:37:34 Is there any way to test a comapss app in emulator Jul 10 07:41:29 erg android studio logcat is really backwards Jul 10 07:47:12 any idea? Jul 10 07:50:23 have you tried picking your computer up and turning it around? Jul 10 07:52:03 hello Jul 10 07:52:25 anyone uses hockeykit? I'm getting Error:The SDK Build Tools revision (19.0.1) is too low for project ':hockeykit'. Minimum required is 19.1.0 Jul 10 07:55:42 oh I'm stupid :P Jul 10 08:01:58 I ran out of microUSB cables to plug in all these 8 phones on this computer Jul 10 08:05:44 Anyone having problems with google play services in their apps in the last few days? Jul 10 08:08:22 hi, all! I have c++ app with boost usage, can I port that app to android? Jul 10 08:09:44 reisei, depends which parts of boost (and other APIs) you're using Jul 10 08:10:20 reisei, note that NDK C++ support is not full: http://www.kandroid.org/ndk/docs/CPLUSPLUS-SUPPORT.html Jul 10 08:12:22 Mavrik: boost_system boost_regex boost_date_time boost_serialization boost_thread boost_signals boost_program_options boost_python Jul 10 08:13:23 yeah, I don't really know those by heart Jul 10 08:15:17 alright... ;) Jul 10 08:15:49 so... it's possible somehow. Jul 10 08:16:49 well you will have to do some rewriting Jul 10 08:23:05 last time I used c++ on android it was quite well supported Jul 10 08:23:42 using gnustl of course :p Jul 10 08:24:36 yeah, that's because you don't use C++ exceptions if you value sanity :D Jul 10 08:25:02 meh, exceptions are fine for exceptional things Jul 10 08:25:07 I am surprised there is boost at all to be honest. boost is kinda bloaty, but I guess it is seen as almost part of C++ now. Jul 10 08:25:15 using exceptions like in java typically is just silly Jul 10 08:25:21 using asynctask to load a webpage with a basic auth (popup uname, pword box), how can I handle this and then proceed to retrieve the page? Jul 10 08:25:36 Carbonflux, pft Jul 10 08:25:41 :) Jul 10 08:25:45 Zharf, mhm, even though I've had to slog through enough of trashed stacks due to someone forgetting exceptions Jul 10 08:25:50 that I rather avoid them :D Jul 10 08:26:03 your problem is "someone" Jul 10 08:26:04 Jesperhead, send a proper header with HTTP Jul 10 08:26:08 I never code with someone else : Jul 10 08:26:09 :p Jul 10 08:26:09 Carbonflux: what is bloaty means? :) Jul 10 08:26:14 Jesperhead, it's not connected with AsyncTask really ;) Jul 10 08:26:20 Zharf, har har :D Jul 10 08:26:36 Mavrik: thank you for your input, googling. Jul 10 08:26:36 Carbonflux, well they did bake in huge parts of boost into C++ by default now Jul 10 08:26:43 reisei, a lot of code, perhaps too much :) Jul 10 08:26:48 Carbonflux, but I wouldn't agree it's bloaty... you just choose pieces you need Jul 10 08:26:58 not like Google Play Services, the does-it-all-and-some-more behemoth Jul 10 08:27:00 ya, boost is now the defacto testbed for C++ Jul 10 08:27:15 Jesperhead, google for "HTTP Basic authenticaition header" :) Jul 10 08:27:19 Carbonflux knows all these thing Jul 10 08:27:19 s Jul 10 08:27:25 heh Jul 10 08:27:43 Carbonflux, I really can't imagine writing good C++ without shared_ptr Jul 10 08:27:47 but I might be wierd :D Jul 10 08:27:50 boost is just very formal is all. Jul 10 08:28:19 you can write your own templates much leaner, on a desktop PC its not an issue of course Jul 10 08:28:54 and given the hardware in android devices now, I guess its not an issue so much anymore. Jul 10 08:28:58 I think I love boost.pp the most Jul 10 08:30:10 the only real problem I have with boost is that it is not a stable api yet it gets used as if it is. Jul 10 08:30:34 but really its Zharf that knows these things :) Jul 10 08:33:02 hello. I want to test an app that is split using an .obb file. where should I place the bob file on my device before launching the app from my IDE? Jul 10 08:33:35 external storage Android dir Jul 10 08:33:40 you'll see an obb folder. Jul 10 08:33:43 * Zharf sighs Jul 10 08:34:14 ah thanks Mavrik Jul 10 08:34:25 I admit this conversation does make me want to try the NDK. Jul 10 08:34:40 why? Jul 10 08:34:48 Leeds: no its not moving Jul 10 08:34:51 I mean... it's just GCC that cross-compiles libs for Android Jul 10 08:34:51 :( Jul 10 08:35:07 you don't have access to Android API, so you use NDK when you need it... it's not really a choice :) Jul 10 08:35:24 because I have years of C++ programming experience, I was thinking android dev would give me a chance to learn Java, and it is. Jul 10 08:35:29 Mavrik, do I need to create a new folder matching my package name inside the obb folder? Jul 10 08:36:20 sulaiman, of course. Jul 10 08:36:35 Carbonflux, sadly, Java 6 :( Jul 10 08:37:03 heh, yup Jul 10 08:37:12 I use some java 7 features in my android dev Jul 10 08:37:19 like multicatch and diamond Jul 10 08:37:31 For some reason the project I'm working on has used the NDK to build a standard sqlite library :/ Jul 10 08:37:36 mnjeh, the time I tried those Java 7 features they just trashed the build across machines Jul 10 08:37:41 I have been enjoying it actually, Java is "easy." to the point where I was worried I was missing something at first. Jul 10 08:38:00 and at the end, they didn't provide any noticable improvements in code readability... IDEA code folding provides way more Jul 10 08:38:09 java just has a lot of long words to write, compared to c++ Jul 10 08:38:18 but thanks to IDEA it's actually much faster to write than c++ :p Jul 10 08:38:43 heh Jul 10 08:38:50 yeah, maintaining my C++ projects is just a pain due to lack of a good IDE now :/ Jul 10 08:39:01 pretty much everything out there is shit compared to what IDEA can do when writing Java Jul 10 08:39:06 Mavrik, when I took java 7 features into this project I forced the CI people to migrate Jul 10 08:39:09 :p Jul 10 08:39:25 it's still staggering how the fuck people write C++ code in Vim/Emacs without proper goToDefinition/code navigation support Jul 10 08:39:49 I use vim to write my c++ Jul 10 08:40:02 but I'll probably move to jetbrains's new c++ ide when I get access to it Jul 10 08:40:03 in linux I just use gedit heh Jul 10 08:40:26 Yeah, I'm on CDT because I got way too pissed off tweaking ctags Jul 10 08:40:34 so I can navigate large codebase effectively Jul 10 08:40:35 Mavrik: Created a new basic header and set it as my header to my client. is it as simple as ("userName" : "userPass"? for some reason im suspecting base64 to come into play here Jul 10 08:40:37 I don't need anything, I just run the code in my mind, but I admit using an IDE is fun, I used VS for years. Jul 10 08:40:53 I never bothered with ctags Jul 10 08:40:55 Jesperhead, I'm afraid you'll have to read HTTP spec for basic authentication Jul 10 08:41:22 vim is immortal Jul 10 08:41:25 yeah, well I maintain several video encoding projects which use large libs like ffmpeg and x264 Jul 10 08:41:38 and jumping to doxygen / source of methods in those libs is really critical for development Jul 10 08:41:48 Android studio complains about 9-patches generated by http://jgilfelt.github.io/android-actionbarstylegenerator anyone seend this before? Jul 10 08:42:01 android.content.res.Resources$NotFoundException: File res/layout/foo.xml from xml type layout resource ID #0x7f030040 ... got this exception reported on one device one time with around 50k users -.- Jul 10 08:42:05 I think IDE's are better but I do think some programmers depend on the debugger to much and don't really Read their code. Jul 10 08:42:07 and when using vim that means grepping shit, switching to console all the time, and just generally wasting time running several commands for what's effectively "CMD+B" in IDEA Jul 10 08:42:13 no clue what's going on with that Jul 10 08:42:33 Carbonflux, debuggers are the thing that save you 50% of time when you have a decently large projetc Jul 10 08:42:41 especially if you're using external libs Jul 10 08:42:45 good point Jul 10 08:42:54 I don't write bugs Jul 10 08:43:06 you have to use them for commercial work. Jul 10 08:43:21 for small stuff it's ok, I hack it together in vim as well :) Jul 10 08:43:51 but when you get those wierd bug reports "On channel 5 we get slightly corrupted video about 2x per second and then it crashes with SIGSEGV" you really need to fire up gdb :) Jul 10 08:44:00 I've written all my C and C++ code in xmms2 related stuff in purely in vim Jul 10 08:44:12 xmms2-android is written in vim for the native parts and intellij idea for the java Jul 10 08:44:45 maybe something specified in the layout is wrong for some specific resolution or density or something Zharf Jul 10 08:44:54 but it's really only about what you get used to as your workflow Jul 10 08:45:02 yup Jul 10 08:45:23 once I get a stable workflow I become really conservative Jul 10 08:45:34 Zharf, mhm, I hate switching windows around when developing so that's what makes the traditional unix dev annoying for me :) Jul 10 08:46:02 tiling WMs <3 Jul 10 08:46:03 :p Jul 10 08:46:30 ugh, just... no Jul 10 08:46:31 :D Jul 10 08:46:40 couldn't live without one Jul 10 08:47:02 apparently the phone that the crash came from is some nigerian thing Jul 10 08:47:05 or sold in nigeria Jul 10 08:47:36 there is always one, always. Jul 10 08:47:50 it looks like an S3 Jul 10 08:47:52 yeah, last time I had to debug this crap it was Verizon S3 Jul 10 08:47:52 http://www.tablett.besaba.com/tecno-r7-detailed-information-more-images-and-specifications/ Jul 10 08:47:56 :p Jul 10 08:48:05 which is fun because the closest Verizon store is like 1800km away Jul 10 08:51:31 many someday corporate drones will be able to bring stuff anywhere. Jul 10 08:51:40 so the store will come to you Jul 10 08:55:01 Mavrik: While I resent you for not holding my hand, the adult in me thanks you. Got it working. Jul 10 08:55:18 *hug* Jul 10 08:56:22 haha Jul 10 09:08:09 Has anyone experienced problems with the Maps API after the play services update? Jul 10 09:09:40 Hello guys, I have a RelativeLayout and therein I want a TextField's height from the top to an EditText which is on the bottom. How can I do that? Jul 10 09:16:12 The EditText should alignParentBottom and the textview should be above the TextView Jul 10 09:18:49 SimonVT: I’m trying to implement this animation https://dribbble.com/shots/976474-Animated-sliding-tab-bar with the menudrawer library. Is this possible? Jul 10 09:19:23 Estel, thnx I already solved it by aligning the TextView to the top and set it above EditText wich was already aligned to the bottom. Jul 10 09:21:32 hrm, want to populate a linear layout (listview) programmatically, after asynctask has pulled data from a server (which will be used for the layout) Jul 10 09:22:57 Another question about Fragments. I created a project with autogenerated ActionBar, Drawer and framework to generate Fragments. However, the fragments are instantiated everytime, is that the best approach or should I reuse fragments if possible? Jul 10 09:23:41 How do you guys make proper previewImages for widgets? Making screenshots in my emulator and removing the background by hand? Jul 10 09:31:24 oh, adapter views cant use addView Jul 10 09:36:22 can i get a proper compass program Jul 10 09:37:54 hi all Jul 10 09:38:41 I've got a problem with geofences, works when I'm using the debug keystore, but if I use the production one is not working Jul 10 09:45:35 patrick91: What is geofences? Jul 10 09:46:59 napster: it's an api used to trigger events when the user enters a location (and viceversa) Jul 10 09:47:00 http://developer.android.com/training/location/geofencing.html Jul 10 09:48:28 ok Jul 10 09:52:52 <__al_stefan__> hei guys, I need to use the android camera to record video, but I need those video to be segmented and uploaded on the fly. If I use the MediaPlayer and stop recording and restart recording I lose ~ 3 sconds of movie. How do you sugest I do this? can I get the videoStream from the camera in ffmpeg/gstreamer? If I manage to do that I can make the segmenting in ffmpeg/gstreamer Jul 10 09:57:59 __al_stefan__: hi Jul 10 09:58:40 can you help me with some camera program. Not video a simple still camera program? Jul 10 10:06:14 <__al_stefan__> niru: here is my not so smart segmenter http://pastebin.com/DWXthfBt (you need to have 2 surfaceviews in the xml) Jul 10 10:07:09 __al_stefan__: ok let me try Jul 10 10:08:22 __al_stefan__: here is my compass program http://pastebin.com/z1ucMT6f . I am able to see the compass image but its not rotating. For your information I am running on emulator Jul 10 10:08:43 __al_stefan__: any idea what could be the problem? Jul 10 10:14:53 <__al_stefan__> no, sorry Jul 10 10:22:00 __al_stefan__: Is the surfaceview like a frame on which the drawing will appear? Jul 10 10:22:26 <__al_stefan__> yes Jul 10 10:36:31 __al_stefan__: I am getting error as http://pastebin.com/V1D5ApmR Jul 10 10:50:06 i'm having trouble with artificial back stack, perhaps because i implement "back" incorrectly, i always go back to previous activities simply by finish() the current activity, this has worked perfectly until i tried to implement an artificial back stack from a notification, is this the wrong way to do it? Jul 10 10:53:52 Hello. I'm kinda lost in the names of objects here.. expListView = (ExpandableListView) view.findViewById(R.id.myList); Jul 10 10:54:04 What would you call expListView? a pointer? a variable? a holder? Jul 10 10:54:37 Or just a view? Jul 10 10:57:46 it's a variable Jul 10 11:00:46 catphish, ok that makes sense, and what about the whole view.findViewById(R.id.myList) business? what's that? is it considered a pointer of some sort? Jul 10 11:01:38 findViewById is a method that returns a view Jul 10 11:02:01 R.id.myList is a constant, which tells findViewById which view to find Jul 10 11:02:36 i don't know why the method findViewById is being called on "view" Jul 10 11:02:58 view is the viewgroup that findViewById searches through Jul 10 11:03:11 ah ok, i normally only call it on activities Jul 10 11:03:23 I see Jul 10 11:03:39 skulltower: so almost everything you deal with will be a variable or a method Jul 10 11:04:02 variables hold instances of classes (normally) Jul 10 11:04:29 methods (or are they called functions in java) do some work and return an instance that can then be stored in a variable Jul 10 11:04:41 skulltower: you should look at an OOP primer :) Jul 10 11:05:03 so in your example, findViewById finds a view, returns it, and you store it in the variable called expListView Jul 10 11:05:15 Estel, yea i have some holes in my oop understanding Jul 10 11:05:16 as Estel says, you should real a general overview of java OOP Jul 10 11:05:19 catphish: To be precise, variables hold references (pointers) to instances of classes Jul 10 11:05:25 (or primitives) Jul 10 11:05:38 loke: i know Jul 10 11:05:41 :) Jul 10 11:05:59 catphish: I'm pretty sure you know, but skulltower probably don't Jul 10 11:06:50 but that is an important distinction, 2 variables can point to the same instance Jul 10 11:07:14 skulltower: Do you know C or C++? Jul 10 11:07:25 I started from C Jul 10 11:07:37 It's all very weird now without allocating any memory Jul 10 11:07:46 so you understand pointers :) Jul 10 11:07:58 Yes Jul 10 11:08:07 variables in java are either primatives like int, or pointers to an instance of an object Jul 10 11:08:08 skulltower: When you declare a variable as, say, Foo xx; in java, it's the same as Foo *xx; in C Jul 10 11:08:29 oh Jul 10 11:08:40 skulltower: The thing you can do in C, like this: Foo yy; is not possible in Java. You can _only_ reference an instance using a pointer Jul 10 11:09:21 The fact that "Foo xx;" in java is different from "Foo xx;" in C has confused many beginners. Just think of it as "Foo *xx" Jul 10 11:09:33 Cool Jul 10 11:09:35 that never occurred to me :) Jul 10 11:09:58 but yes, assume everything is a pointer unless its a primitive like int Jul 10 11:10:04 I found it to be a good way of explaining it to people who are familiar with C or C++. Jul 10 11:10:26 yes, that's makes much more sense when compared with C Jul 10 11:10:43 Another thing i'm not getting is why the int and Integer Jul 10 11:11:09 int is a primative, the variable stores a number Jul 10 11:11:09 skulltower: Integer is just a class (or struct in C :-) ) that wraps a single int value Jul 10 11:11:13 It's just an object wrapper for int tbh Jul 10 11:11:17 Integer is a pointer to an Integer class Jul 10 11:11:38 skulltower: Its purpose is because Java does not allow you to take a pointer to a primitive value. I.e. in C you can do this: "int *foo = ..." Jul 10 11:12:07 You can't do that in Java, since pointers can _only_ point to instances of classes, so you have a few classes that serves no other purpose than to wrap a primitive value. Jul 10 11:12:18 Ohhh java hacks ^^ Jul 10 11:12:25 i never understood why they didn't add functions to Integer Jul 10 11:12:28 The method addCallback(SurfaceHolder.Callback) in the type SurfaceHolder is not applicable for the arguments (new Drawable.Callback(){}) Jul 10 11:12:41 Displaying a login window on top of every activity in an application should be a good job for fragments, shouldn't it? Jul 10 11:12:43 what does the error mean there? Jul 10 11:12:47 how can i solve it? Jul 10 11:13:15 What probably confuses you is that Java will automatically create an Integer object if you pass in an int. Back in the good old days of Java, it didn't do that so you had to be explicit. I.e. we had to do Integer x = new Integer(5); instead of: Integer x = 5; Jul 10 11:13:20 However, they are equivalent. Jul 10 11:13:29 oh, i take it back. Integer does have some instance methods, just not the one I want (toString) Jul 10 11:13:42 catphish: All objects have .toString() Jul 10 11:14:09 loke: yep, i seem to be being a total moron Jul 10 11:14:32 i think i've been trying to call toString on a primative int Jul 10 11:14:34 catphish: However, for various reasons you probably want String.valueOf(...) instead if your purpose is to make a string from a number Jul 10 11:14:54 loke: i've actually been using Integer.toString(i) Jul 10 11:15:02 Otherwise you will needlessly create an Integer object only to be able to call toString on it Jul 10 11:15:11 Any help? Jul 10 11:15:12 catphish: Yes, those are the same Jul 10 11:15:22 cool Jul 10 11:15:32 niru: yaeh, your callback object is the wrong one Jul 10 11:15:36 now to get back to my backstask problem :( Jul 10 11:15:40 catphish: One calls the other. You'd have to look at the source to depremine which :-) Jul 10 11:16:15 Delete the import of Drawable.Callback and replace it with the correct import (android.view.SurfaceHolder.Callback) Jul 10 11:19:43 do i have to do anything when i finish() an activity to cause its parent to be started? Jul 10 11:21:08 Estel: that import collides with import android.view.SurfaceHolder; Jul 10 11:21:48 Estel: no sorry it worked Jul 10 11:35:02 Estel: setAudioSource failed in my emulator Jul 10 11:35:12 Is that a settings issue? Jul 10 11:36:41 If I load a picture into a ImageView then change phone orientation the image disapears. When is the best time to save this onPause() or onSaveInstanceState() ? Jul 10 11:37:17 Is my question clear enough? :) Jul 10 11:38:50 Displaying a fragment on top of every activity, does that require RelativeLayout as a root element? Jul 10 11:39:02 phyzloc, the image should not disappear Jul 10 11:39:11 are you sure you're not just overwriting it when activity starts? Jul 10 11:39:49 Mavrik: I'm setting the picture programmatically Jul 10 11:40:17 so? Jul 10 11:40:45 Mavrik: When the Activity restarts it reverts back to default Jul 10 11:41:28 Mavrik: I need to save the new image so it behaves correctly between configuration changes, no? Jul 10 11:41:49 views store their state automatically (unless you disable that) Jul 10 11:41:55 so no, ImageView will store its image by itself Jul 10 11:42:03 you're probably deleting it somehow at setup Jul 10 11:42:33 Mavrik: setContentView probably changes it Jul 10 11:43:15 Mavrik: In the layout I'm pointing to a dummy image.. Jul 10 11:50:31 Mavrik: Hmm.. actually the TextViews keep their data so you're right .. why isn't ImageView keeping it :-/ Jul 10 12:02:41 quick question : how do you fix “item already owned : 7” issue with in app billing? I query @ begining of app, but no record is found from google. :( Jul 10 12:19:49 Hi, how to use google maps on my app? Jul 10 12:25:30 there is documentation? Jul 10 12:27:00 newbie|2: http://developer.android.com/guide/topics/location/index.html#maps Jul 10 12:29:37 thana: i can use this tutorial video? https://www.youtube.com/watch?v=vUsBOZ7-qBE Jul 10 12:29:56 newbie|2: i dont know. i never watch videos to learn something Jul 10 12:30:11 googlemaps api v2 is the last? Jul 10 12:31:45 how would I go about adding printing to my app? Jul 10 12:40:31 rymate1234 for API 19+ http://developer.android.com/training/printing/index.html Jul 10 12:40:51 thanks Jul 10 12:41:06 any fallbacks for < 19? Jul 10 12:45:19 Hello guys, is it guaranteed that a saved Fragment is not cleaned up, even when RAM is low? I personaly think if RAM is low, the OS decides to kill the "whole" process, not just a Fragment object. Jul 10 12:46:01 define saved fragment Jul 10 12:46:04 fragments are GCed Jul 10 12:46:16 if they have no references they will be cleaned up, if they do they won't be. Jul 10 12:46:17 rymate1234: not a good one, you could do https://developers.google.com/cloud-print/docs/android Jul 10 12:46:18 Of course if OS thinks the pocess has a low priority because another app is on the forefront Jul 10 12:46:19 rymate1234 not sure. Checkout Google Cloud Print Jul 10 12:46:38 rymate1234 ah Estel beat me too it Jul 10 12:47:07 might just make it a kitkat exclusive then Jul 10 12:47:40 Mavrik, yes, ok cool. Actually a weird question, but I asked just for confirmation. Jul 10 12:57:21 hello, I am new to java and need to import a library that is a folder with AndroidManifest.xml, libs/, project.properties and res/ Jul 10 12:57:24 where do I put it? Jul 10 13:04:28 I found out that this is called Android Library Project, but how to import it is unclear to me Jul 10 13:06:13 Hi in my Android SDK there isnt google play service Jul 10 13:06:15 why? Jul 10 13:06:23 Hi in my Android SDK there isnt google play service, why? Jul 10 13:06:24 Have you downloaded them? Jul 10 13:06:26 d Jul 10 13:08:19 h Jul 10 13:09:56 hi Jul 10 13:10:20 in my android-sdk i dont have Google Play Service... how i do to install it? thanks Jul 10 13:12:00 what is the relative path in android.library.reference in project.properties? Jul 10 13:12:36 Lerg: you can help me? Jul 10 13:12:41 nope Jul 10 13:12:44 I am new Jul 10 13:15:18 i am using a Service (not intent or bound service) and want to make it so that when the app is closed, the service stays running. Not restart (STICKY) but actually keep running. The reason is that I am using the geofence api that is bound to the service, and if the service stops, geofences are left around Jul 10 13:16:05 in my my sdk manager i dont have Google Play Service... how i do to install it? thanks Jul 10 13:16:22 Alfreda: reapeating it wont make it happen ;> Jul 10 13:16:29 and answer Jul 10 13:16:32 if you want Jul 10 13:16:49 and you go to SDK Manager, Extras, Google Play Services it there Jul 10 13:16:56 ironhalik: no there isnt! Jul 10 13:17:16 thats no reason to yell at me ;> Jul 10 13:18:07 there should be. Make sure you've got SDK tools updated to latest version Jul 10 13:18:24 i have in extra only android support library and Intel x86 Emulator Accellerator (HAXM installer) Jul 10 13:18:40 i have download last sdk Jul 10 13:19:16 http://developer.android.com/sdk/index.html Jul 10 13:19:17 this Jul 10 13:20:04 dunno, yu coulg go into preferences Jul 10 13:20:14 theres a checkmark "Force using http:// ..." Jul 10 13:20:20 instead of https:// Jul 10 13:20:23 revision23 Jul 10 13:21:28 on android sdk manager? Jul 10 13:21:34 yeah Jul 10 13:23:09 ironhalik: i'm doing an update of sdk Jul 10 13:24:31 ironhalik: ok thanks Jul 10 13:24:38 i view it now :) Jul 10 13:24:46 :> Jul 10 13:25:20 Ok, I figured out that I need to add android.library.reference.1=GiftizSDKLibrary to main project.properties Jul 10 13:25:47 say im downloading a file through asynctask... is the actual downloading starting @ mClient.execute(mHttpGet) ? Jul 10 13:25:47 and invoke android update lib-project -p . --target "android-16" in the lib dir Jul 10 13:26:19 but when I try to build it errors that there is no GiftizSDKLibrary/src folder Jul 10 13:26:30 because this is a JAR library with no source Jul 10 13:26:42 how do I fix that? Jul 10 13:26:59 Lerg: in android studio? Jul 10 13:27:05 command line Jul 10 13:27:20 you just put the jar file in app/libs Jul 10 13:27:33 and in module settings add a file dependency Jul 10 13:27:35 but it had it's own manifest and res/ folder Jul 10 13:28:30 you can try putting it in app root folder Jul 10 13:29:41 the lib folder is in project root Jul 10 13:29:55 and add compile project(':YourLibrary') in gradle Jul 10 13:30:01 in dependencies Jul 10 13:30:39 gradle is used instead of ant? Jul 10 13:31:02 gradle in AS, ant in Eclipse ADT Jul 10 13:31:20 I see Jul 10 13:32:24 When I have two project application, an app and a core app with common stuff between all my apps, and the core defined some permissions for a content provider. Do I need specify the permissions in the core or in the app? Jul 10 13:36:50 how do I add an item to an actionbar submenu dynamically? Jul 10 13:37:04 i.e. after the menu has been created by onCreateOptionsMenu Jul 10 13:39:07 you need to invalidate it Jul 10 13:40:11 the part I'm struggling with is how to get a copy of the existing menu to add my item to Jul 10 13:40:28 http://developer.android.com/guide/topics/ui/menus.html#ChangingTheMenu Jul 10 13:41:43 I don't understand how to use onPrepareOptionsMenu() in a genuinely dynamic way - say, if I don't know the title of the menuItem I want to add because it's based on user input. Does that make sense? Jul 10 13:42:29 because onPrepareOptionsMenu only accepts one argument Jul 10 13:43:02 Im dling a file in asynctask using httpurlconnection. I am starting a timer in onPreExecute, and stopping it in onPostExecute. My logs report back that the file downloaded in 777 milliseconds (it's 10 megs). Any idea where I'm going screwy? Jul 10 13:43:08 Morning Jul 10 13:43:13 hi jon Jul 10 13:43:14 you can dynamically create Menu with its MenuItem and than pass it to menu inflater Jul 10 13:43:15 jonc Jul 10 13:43:58 revision: my logs indicate that the stop time was taken within 777 milliseconds Jul 10 13:44:15 How can I use the FragmentManager to add a fragment to a FrameLayout I just created as an object programatically Jul 10 13:44:22 Jesperhead, what is the speed of the connection that you have? Jul 10 13:44:23 It does not have an ID yet Jul 10 13:44:31 jonc: not that fast Jul 10 13:44:44 hi Jul 10 13:45:01 Jesperhead, is the server you are downloading from on the same network as you? Jul 10 13:45:06 jonc: no Jul 10 13:45:24 i've update my sdk Jul 10 13:45:39 but now i view all my project with X red and many error and warnings Jul 10 13:45:55 Get file length:﹕ 10485760 Start:﹕ 1404999914150 Stop:﹕ 1404999914984 Total Time:﹕ 834 Jul 10 13:46:19 ironhalik, think I get it, thanks! Jul 10 13:46:29 i'm looking for a way to detect if (mobile) data is available, ConnectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isAvailable() return true even if i disable the data mobile. Is they a better way to do it ? Jul 10 13:48:09 hi, i've update my sdk but now i view all my project with X red and many error and warnings, why? Jul 10 13:49:12 if you can't figure out warnings and errors, you go learn and figure them out Jul 10 13:49:41 it would help if you mentioned what th warnings are Jul 10 13:51:43 I want a menuItem that has a small "X" on the right hand side that has a different onClick that the main menuItem. What's the best approach to achieve this effect? Jul 10 13:52:14 d0de: Just to make sure... You don't want that X to close your app, right? Jul 10 13:52:18 pfn: i have this error at package com.example.googlemaps; ->The type android.content.Intent cannot be resolved. It is indirectly referenced from required .class files Jul 10 13:52:25 this after update sdk! Jul 10 13:52:29 before no errors Jul 10 13:53:00 flan3002, no. It's for a menu of saved prefs - I want clicking the title to load the pref, and the x to delete that saved pref Jul 10 13:53:23 can i call size() on an unmodifiable collection Jul 10 13:53:27 ? Jul 10 13:53:32 pfn: ? Jul 10 13:53:38 its' throwing an unsupported operation error Jul 10 13:53:50 so it will look like ( Empty | Empty | Saved Item 1 (x) | Empty | Saved Item 2 (x) | Empty ) Jul 10 13:55:25 hi, i've update my sdk but now i view all my project with X red and many error and warnings, why? Jul 10 13:55:29 pfn: i have this error at package com.example.googlemaps; ->The type android.content.Intent cannot be resolved. It is indirectly referenced from required .class files Jul 10 13:56:29 while you wait for an answer try googling Jul 10 13:57:02 Alfreda Could be the new SDK being useless, i had a load of errors with it, but have no idea how I fixed them Jul 10 13:57:07 people will just get annoyed if you ask the same thing every minute Jul 10 13:57:36 njcomsec: if dont have answer and view others peoprle that ask others question Jul 10 13:58:30 Have you tried Cleaning the project Alfreda? Jul 10 13:58:44 but i have all projects in my workspace with error Jul 10 13:58:53 d0de: Best? Just use an XML file in res/menu... Jul 10 14:02:16 EdGeorge: when i open Eclipse i have a message:this android sdk requires android developer toolkit version 23.0.0 or above current version is 22.6.2 please update adt to the latest version! Jul 10 14:02:45 Alfreda Go to Help > Check for Updates Jul 10 14:02:57 i've doing but there isnt update! Jul 10 14:03:00 flan3002 could you expand a little more? Can a MenuItem contain another MenuItem for example? Jul 10 14:03:03 Then install the new updates Jul 10 14:03:33 * flan3002 rereads d0de's question. Jul 10 14:03:39 https://twitter.com/TechInfected/status/487228607753125888/photo/1 Jul 10 14:03:40 EdGeorge: i've doing but there isnt update! Jul 10 14:03:45 Ah. Alfreda, I had this problem Jul 10 14:03:56 why are you using eclipse Jul 10 14:03:57 and? Jul 10 14:04:06 d0de: We aren't talking about the ActionBar? Jul 10 14:04:13 is the same of android studio no? Jul 10 14:04:21 .....no Jul 10 14:04:39 flan3002, yes, I'm talking about the actionbar Jul 10 14:04:45 njcomsec: why? Jul 10 14:05:18 eclipse is terrible in every way Jul 10 14:05:41 AS is amazing just in beta Jul 10 14:06:24 njcomsec: i dont undstand Jul 10 14:06:32 what i must download fo-? Jul 10 14:06:42 do some google Jul 10 14:07:19 Alfreda - http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-23 Jul 10 14:07:21 On Android wear, are all the "card" type things on the home screen notifications, or can an app do those things? Jul 10 14:07:37 njcomsec: you what suggest me? Jul 10 14:08:08 d0de: I don't understand what you mean. You want to fit ( Empty | Empty | Saved Item 1 (x) | Empty | Saved Item 2 (x) | Empty ) into the ActionBar? Jul 10 14:08:22 Please no AS vs Eclipse debate. I can't cope with another one! ;_; Jul 10 14:08:36 its not even a debate Jul 10 14:09:06 Hi all. Jul 10 14:09:07 njcomsec some people seem to think it is Jul 10 14:09:12 let me thow plain intellij idea in to make it more funny Jul 10 14:09:17 : > Jul 10 14:09:33 danijoo dont even go there... Jul 10 14:09:37 hehe Jul 10 14:09:39 How can I have the activity launched by an intent-filter added to the history stack? Jul 10 14:09:47 Azelphur: you can generate custom notification objects from an on-watch app Jul 10 14:10:02 I see Jul 10 14:10:25 See http://developer.android.com/training/wearables/apps/layouts.html Jul 10 14:10:28 flan3002, no, into a submenu of the action bar. Where each pipe represents the boundary between two submenu menuItems. The part I don't know how to do is implement the (x) as a second clickable area inside a single menuitem Jul 10 14:10:45 On the whole it's recommended, where possible to generate notification on phone and have them get shared out Jul 10 14:10:59 makes sense Jul 10 14:14:06 d0de_: Even though it might be too complex for the ActionBar, you might want to pass the Events to the child views yourself. Just relay them in .onClick() with child.onClick(event). Jul 10 14:16:03 EdGeorge: http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-23 i must download file and after copy it manually in my sdk folder? Jul 10 14:16:24 flan3002, I'm afraid I don't quite follow you - I don't understand how to differentiate between clicks on the title and clicks on the (x) if they're both part of the same menuItem Jul 10 14:16:56 d0de_: But you get events for the level 1 item? Jul 10 14:18:41 EdGeorge: i've resolved :) Jul 10 14:18:55 flan3002, I get the click event for the sub menu item, yes Jul 10 14:20:13 huh, sub menus aren't a standard thing.. Jul 10 14:21:03 hi to every1 Jul 10 14:21:08 if you want something complex actionable off of an action item, use a popupwindow with your own layout Jul 10 14:23:21 pfn, OK, thanks Jul 10 14:24:34 while I'm here: I'm creating items (for the menu or popupwindow or w/e) dynamically via user input, and I want to store them indefinitely (unless they're deleted by the user). what should I use to store them? I can use SharedPreferences with complex items, can I? Jul 10 14:24:55 I can't use SharedPreferences with complex items, I mean Jul 10 14:25:02 you can anchor it to your action item by using the view for its id Jul 10 14:25:12 sure you can Jul 10 14:25:51 pfn, I thought I could only write primitive datatypes to shared prefs? Jul 10 14:26:21 so? serialize as necessary Jul 10 14:26:41 or use a different storage mechanism Jul 10 14:27:48 pfn, serialization isn't something I know about. Is that creating a method to convert something like a menuitem to a string and back? Jul 10 14:28:28 d0de_: It can be. Standard java serialization converts to/from a byte array though. Jul 10 14:28:30 Hey all, users of my app recently started getting the error: “Package file is invalid” when updating or installing the app from Play. I’ve rebuilt/resigned and some people still have the issue. Jul 10 14:28:47 Anyone dealt with this before? Jul 10 14:29:11 flan3002, sure, ok. That sounds useful, there's another place where ideally I'd keep a hashmap in shared prefs but I've just been converting to a series of strings thus far Jul 10 14:30:41 d0de_: Just be aware that the standard Java serialization is... funny. Slow, ineffiently large due to backwards-compatibility... Jul 10 14:31:39 is there known issues for running adt on linux, i mean is it more stable on win? Jul 10 14:31:49 d0de_: I once wrote my own reflective serialization library which, because of writing less metadata, serialized three times faster and to a fourth of the size. And there probably are better options... Jul 10 14:32:05 Vasquez: You mean Eclipse ADT= Jul 10 14:32:08 *? Jul 10 14:32:15 yes Jul 10 14:32:31 Do you /have/ to use Eclipse? Jul 10 14:33:00 well i dont but im kind a used to Jul 10 14:33:16 To answer your question: Probably not. Jul 10 14:33:18 flan3002, in this case I don't imagine performance will be too much of a concern, unless the standard serialization is many orders of magnitude slower than I would assume. It'll just be a handful of menuitems and a small map or two Jul 10 14:33:23 what is your suggestion Jul 10 14:33:47 Eclipse will still be there on Windows, alongside with much of the same code, Vasquez. Jul 10 14:34:08 So, switching to Windows (a terrible crime by itself) should not help it. Jul 10 14:34:13 ok, but i got the impression that adt eclipse is not best choice Jul 10 14:34:22 lol i agree :D Jul 10 14:34:23 Vasquez: I/We use Android Studio or IntelliJ Idea. Jul 10 14:34:36 since my linux is on ssd and win isnt :P Jul 10 14:36:57 AS runs on linux I think Jul 10 14:37:08 So I'm implementing forward locking with an encrypted APK, but if I'm reading it right, doesn't that just encrypt the APK, while after install, it's fully decrypted and readable as root? Jul 10 14:37:15 Sure it does, it's Java™ after all, njcomsec. Jul 10 14:37:31 do you have experience with gcm? Jul 10 14:37:32 AS runs on the jvm? Jul 10 14:37:40 I didnt know that Jul 10 14:37:50 njcomsec: AS is based off IntelliJ, which does. Jul 10 14:38:00 s/off/on Jul 10 14:38:11 I dont know why a linux user would use eclipse Jul 10 14:38:18 I want a honeywell lyric because nest passed me off... I wonder if it's out yet Jul 10 14:38:23 linux people tend to like stuff like emacs /vim Jul 10 14:38:36 so does Eclipse, it runs on the jvm.. Jul 10 14:38:57 Yes, I do use vim for almost everything, but Java seems to have been designed to be used with big and bulky IDE's... Jul 10 14:39:05 Or more generally: I have some textual resources which are valuable. These need to be placed on the device for offline APK operation, and need to be reasonably secure against users who have access to a rooted device simply lifting off the files. What are my options, if an encrypted APK isn't sufficient, and even encrypting the files separately puts the key in our code? Jul 10 14:39:33 njcomsec: that's a huge generalisation o_O Jul 10 14:39:35 i started learning java/droid on eclipse, then moved to emacs Jul 10 14:39:36 flan3002, I disagree with that sentiment, Java is easily instrumented for ide Jul 10 14:39:46 then linux didnt work on my new laptop, so i started uing win8 and AS Jul 10 14:39:51 and im happy with it Jul 10 14:39:58 best environment iv had actually Jul 10 14:40:08 well i used eclipse in much of my school projects so i didnt want to complicate my life trying to explore other ide's when time is expensive Jul 10 14:40:23 Id rather have notepad++ over eclipse now Jul 10 14:40:34 I have an expandable list where each child is another expandable list (3 level exp list). In the top level's adapter's getChildView i always create a new adapter and i think it's slowing the list down. Would it be better to hold all created adapters in an array? Jul 10 14:40:39 pfn: What? Jul 10 14:40:59 skulltower: wait, what? Jul 10 14:41:00 all you need for java is a notepad and terminal Jul 10 14:41:33 njcomsec: Or a lot of butterflies. Jul 10 14:41:45 I have a 3 level expandable list. Top list creates another expandable list as it's children so on getChildView i create a new expList and an adapter for it. Jul 10 14:42:09 It would be better not to do anything like that Jul 10 14:42:37 Estel, but it's already done, there's nowhere to run.. Jul 10 14:42:59 njcomsec: xkcd.com/378/ in case you didn't get what I meant. ;) Jul 10 14:43:08 Do I perhaps need to correct the settings of my intent filters? Jul 10 14:43:31 njcomsec: The point was that it get a little more comfortable than notepad. Jul 10 14:43:43 s/get/can get/ Jul 10 14:43:58 ahh yeh:) Jul 10 14:44:25 does xkcd still get updated? Jul 10 14:44:32 Sure it does! Jul 10 14:44:39 I should mak it my homepage Jul 10 14:45:05 I can tell all my friends programming jokes they wont get Jul 10 14:45:31 is there any way of leting know google cloude messaging service that client is ready to receive pending messages? Jul 10 14:45:39 flan3002, that java is designed for ides, not at all Jul 10 14:45:56 xkcd has pretty few programming jokes Jul 10 14:46:25 Vasquez: usually not Jul 10 14:46:36 just fire it and it will either be received or not Jul 10 14:46:50 pfn_: Of course not, but it feels like that sometimes... :) Jul 10 14:47:01 I'm uploading a file via post for a speed test. Is there any way I can just stream junk data or do I need to have an actual file to send? Jul 10 14:47:04 thats lame Jul 10 14:47:31 why? What are you trying to do? Jul 10 14:47:59 flan3002, anything with a large set of apis feels that way Jul 10 14:48:01 I'm trying to put two fragments into a horizontal scroll view, but I get a Classcast exception Jul 10 14:48:05 and verbose Jul 10 14:48:14 Caused by: android.app.Fragment$InstantiationException: Trying to instantiate a class DashbookFragment that is not a Fragment Jul 10 14:48:26 but that class definitely extends Fragment. Jul 10 14:49:00 well i try to make send-to-sync mechanism Jul 10 14:50:14 any idea why it could cause that kind of exception? Jul 10 14:50:16 Syzygy, wrong fragment class Jul 10 14:50:20 support vs framework Jul 10 14:50:37 fragments should have never left the support lib... Jul 10 14:50:40 it's a newly created fragment, same as my other one though Jul 10 14:50:54 again, wrong fragment class Jul 10 14:51:09 ah Jul 10 14:51:24 weird that it would autogenerate one with support and one normally Jul 10 14:52:57 Does anyone have an idea about having an activity launched by an intent-filter added to the history stack? Jul 10 14:53:17 IDE ftl Jul 10 14:53:19 once again Jul 10 14:53:48 pfn_: It's not just that, it's also quite verbose, sometimes to due to lack of operator overloading, sometimes due to /very/ long API names, sometimes due to unexpressiveness. I'm not blaming Java (that much), of course the big libraries are a very big factor as well. But Java still is the only language for which I don't use vim. Jul 10 14:54:40 I do miss operator overloading, but I understand why they didn't add it Jul 10 14:54:51 I get the reason why they didn't add it* Jul 10 14:58:06 and no op overloading in java8 Jul 10 14:58:07 meh Jul 10 14:58:11 do you use eclipse juno? Jul 10 14:58:42 jonc: I don't. It's not really sensible to deliberately restrict the programmers. Jul 10 14:58:56 jonc: Of course, it can be abused, but what can't? Jul 10 14:59:00 flan3002, it is because operator overloading can be absued a ton Jul 10 14:59:07 flan3002, the argument is that the abuse outweighs the utility Jul 10 14:59:19 i.e. the argument is that java developers are stupid Jul 10 14:59:22 the point was to make everything verbose so that it was easier to understand Jul 10 14:59:24 and for the large part, it's probably true Jul 10 14:59:33 Well, that's something I can't agree with, looking at BigInteger and my own Vector classes. Jul 10 15:00:16 If used correctly, it can increase understandability and readability of code by a huge amount. Jul 10 15:01:35 again, the argument is that java developers are stupid ;-) Jul 10 15:02:09 Well... Some are, for developing in Java more than they absolutely have to. :) Jul 10 15:02:16 the problem comes when you get into things like vector math. How many people will want * to be dot product (which mathematically is the correct symbol) vs how many want it to be component multiplication? Jul 10 15:02:36 I do a lot of java at home because of the 3rd party libraries, and threading is ridiculously easy Jul 10 15:02:45 * pfn_ does no java at home Jul 10 15:02:47 because it's stupid Jul 10 15:03:15 I write all of my servers in java, and web crawlers Jul 10 15:03:16 jonc: I'd use and expect component multiplication and write a.dot(b) for the dot product. Jul 10 15:03:17 and there are a vast number of jvm languages that are completely compatible Jul 10 15:03:17 I want to create a popup menu when user clicks on actionbar item. I need to get the view to do this. How do I get the appropriate view? Jul 10 15:03:54 flan3002, or use for the dot product as expected Jul 10 15:03:59 flan3002, see there is part of the problem, mathematically speaking * is the dot product. When you do 5*5, it is the dot product, which is also the same as the cross product in 1 dimension Jul 10 15:04:18 * represents the on the keyboard Jul 10 15:04:44 alternatively, you can use * and x Jul 10 15:04:50 yeah Jul 10 15:04:59 There is one thing that Java (below 8) got better than e.g. Scala though: Cost predictability. Sure, implementations != languages, but Scalas for loop can get awfully slow, while there weren't any too expensive operations available without writing a reasonable amount of code. Jul 10 15:05:36 why would anyone suggest versioning /.idea? Is there a reason? Jul 10 15:05:58 There is, but it's not a good one. Jul 10 15:06:29 flan3002, you don't use a for loop in scala Jul 10 15:06:33 unless you're doing monad comprehension Jul 10 15:06:51 in which case, it's completely predictable Jul 10 15:06:52 Sometimes you do, as Scala is not purely functional. :) Jul 10 15:07:07 flan3002, you still never use a for loop in scala Jul 10 15:07:15 there's no reason to ever, unless you're doing monad comprehension Jul 10 15:07:18 I'm not saying Scala is a bad language. :) Jul 10 15:07:25 It's far better than Java. Jul 10 15:08:14 I just... didn't find Scala's for loop's performance /that/ predictable. :) Jul 10 15:08:39 what exactly are you doing that's not "predictable" Jul 10 15:09:02 it's not a loop, that's the source of your confusion Jul 10 15:09:13 I'm developing an offline version of a currently networked application. I have about 2GB of valuable text that needs to be kept from the user. (The installer is anticipated to be a different person than the one who owns the phone). Besides loading it as an OBB and using APK encryption, how can I best protect this data? Jul 10 15:09:24 It's 1.5 years ago... I think I used three variables to loop over. Jul 10 15:09:48 3 variables, that's x*y*z Jul 10 15:09:52 sounds pretty predictably slow Jul 10 15:09:55 defer: But it's called for comprehension. And everything that has for in it associates with a loop. Jul 10 15:10:36 right, but you won't see mentions to the for 'loop' in the documentation, because it loops alright but also does much more Jul 10 15:10:38 pfn_: Well, using three nested loops sped it up by magnitudes. Jul 10 15:10:41 that's why it's slow Jul 10 15:11:02 sounds like a matter of doing it wrong... Jul 10 15:11:05 hi Jul 10 15:11:09 I'll give you one thing, the compiler should be smart enough to know when to optimize to a faster simpler loop if you don't care about return values or monadic comprehensions Jul 10 15:11:10 Nested loops :x Jul 10 15:11:34 i have install new version of SDK but when i create a new project i have this error---> http://pastebin.com/PcsfyntA Jul 10 15:11:45 basically, you only ever use for if you want monadic comprehension Jul 10 15:11:57 if you're using it for reasons other than monadic comprehension, you're doing it wrong Jul 10 15:12:37 I agree, if and only if speed matters Jul 10 15:13:23 Possibly. It was my first encounter with Scala. But still, having to use the while loop, because the for 'loop' was far too slow, seemed pretty nasty to a beginner. ;) Jul 10 15:13:36 you don't use a while loop in scala, ever, either Jul 10 15:13:39 if you are, you're doing it wrong :p Jul 10 15:13:44 for monadic comprehensions it's definitely the way to go, much more readable than flatmap/filter/flatmap train of hell Jul 10 15:14:08 you definitely do use while loops in scala, this time when speed does matter. Jul 10 15:14:16 the standard library is full of cases like this Jul 10 15:14:27 many argue the standard library is full of cases of wrong ;-) Jul 10 15:14:42 particularly that tony morris prick Jul 10 15:14:46 Fast can't be wrong. Jul 10 15:15:07 in any case, it's not idiomatic to use a while loop Jul 10 15:15:14 flan3002: your statement is wrong in so many ways Jul 10 15:15:20 normally, one would use Stream.continually, etc. Jul 10 15:15:49 if you want to go through that last performance mile in Scala you definitely need to drop the idiomatic stuff Jul 10 15:15:50 def random = 1 Jul 10 15:15:52 oh-so-fast Jul 10 15:16:20 I am trying to understand what .join() does. It seems that if I call .join() the current thread will wait until that instance has finished. But what happens if an InterruptedException is thrown? What would that mean? Which thread is interrupted? Jul 10 15:16:36 deadmund, the waiting thread, of course4 Jul 10 15:16:41 that's what interrupted always means Jul 10 15:17:26 defer, profiler when it comes time to bottlenecks, rather than prematurely Jul 10 15:17:47 I'd rather write fully idiomatic code, and then profile and take out hotspots Jul 10 15:17:52 than write ugly code up-front Jul 10 15:18:12 definitely, but when speed _does_ matter, you already did all that stuff Jul 10 15:18:27 because that's the trivial part Jul 10 15:18:46 defer: Fast in itself, not fast at the expense of other valuable properties. You're right, it was expressed badly. :) Jul 10 15:19:11 once the profiler doesn't help and you have to look at bytecode that's where all the idiomatic stuff tends to jump Jul 10 15:19:43 pfn_: Ummm... so the waiting thread is interrupted, then the handler is called, do I need to return back to waiting in the exception handler to guarantee the threadinstance has finished before I continue? Jul 10 15:19:43 scala bytecode the best, saves you from those nasty java decompilers ;-) Jul 10 15:19:55 deadmund, yes Jul 10 15:20:06 pfn_: ok, thanks Jul 10 15:20:20 but interruption only ever occurs in exceptional circumstances Jul 10 15:20:24 mostly, meaning, you want to gtfo Jul 10 15:21:07 Anyone had a problem with Google maps since the new sdk? Jul 10 15:21:50 pfn_: Can you elaborate on that? Jul 10 15:21:54 flan3002 "there is but nto a good one", what is the not good reason? Jul 10 15:22:00 deadmund, yes, read jcip Jul 10 15:22:23 adamjsmithinfo the new SDK was botched Jul 10 15:22:26 there's no reason to check in ide project files Jul 10 15:22:32 Just a case of waiting then? Jul 10 15:22:33 your build setup should always be enough to import the project Jul 10 15:22:47 theblang: It /can/ save configuration time if everyone else is using the same setup or if 'everyone' is one person, but ideally you should have a platform/IDE-independent build process. Jul 10 15:23:04 adamjsmithinfo Not sure if relevant but check out http://stackoverflow.com/questions/24437564/update-eclipse-with-android-development-tools-23 Jul 10 15:23:11 maven, gradle, etc. all buy that for you immediately Jul 10 15:23:35 This is my issue; http://stackoverflow.com/questions/24673030/maps-not-loading-after-google-play-services-update?noredirect=1#comment38253148_24673030 Jul 10 15:23:48 specifically with maps, in a new project and a project that worked preivously Jul 10 15:24:43 I'm trying to start a horizontal scroll view scrolled all the way to the right. So in my activities onCreate I'm calling view.scrollTo(somelargenumber, 0); but it doesn't work. Jul 10 15:25:10 Any idea what I actually have to do? Jul 10 15:25:10 adamjsmithinfo Check if the sha1 code of your debug keystore matches the code you pasted on google console Jul 10 15:25:20 Yep, that all works Jul 10 15:25:43 I can get a connection to the api, it's just the class not found error Jul 10 15:26:21 Syzygy: Try using post. Jul 10 15:27:10 Syzygy, you need to wait for layout to complete before doing that Jul 10 15:27:54 adamjsmithinfo, sounds like you should just downgrade gms Jul 10 15:28:21 Is that just a case of uninstalling the new one or is there a procedure to follow? Jul 10 15:29:37 flan3002: Hi, I'd appreciate if you have a minute about the intent-filters. Jul 10 15:39:06 if I want to define an image to be used at a certain resolution for tablets, and a certain resolution for anything below tablets, can I use drawable-600dp and drawable-nodpi? Jul 10 15:39:14 or should I say, is that the proper way Jul 10 15:40:23 theblang: Proper way is a drawable/ and a drawable-600dp/ Jul 10 15:40:48 theblang: Though really, hdpi and xhdpi are preferred to explicit sizes, as it allows for fuzzier matching. Jul 10 15:41:32 freeone3000 I guess my biggest question is, what should I use as the "everything else folder". ive had issues with just drawable scaling my image such that it looked crappy. i cant remember the details right now Jul 10 15:41:45 theblang: "everything else" is the folder with no qualifier. Jul 10 15:43:04 freeone3000 what's the difference between drawable and -nodpi? Jul 10 15:46:33 theblang: drawable-nodpi resources are never scaled. drawable resources are scaled, but only if no other resource is found. Jul 10 15:47:05 freeone3000 is drawable-nodpi only used if no other resources are found? Jul 10 15:47:43 theblang: They're used in "all" resources. I'm not sure what happens if you have something in -nodpi and another in -xhdpi. It will *probably* use the -xhdpi one. Jul 10 15:48:47 freeone3000 okay, thanks man! Jul 10 15:55:50 i've got a method of FragmentStatePageAdapter defined like this: public void restoreState(Parcelable state, ClassLoader loader). what's this loader and what can use here? Jul 10 15:57:51 sqrrl: It's a classloader. It loads clases. Parcelable needs it to load certain objects. Jul 10 15:59:01 freeone3000: o..kay but what should i put here? Jul 10 15:59:07 there's zero ducumentation Jul 10 15:59:51 sqrrl: restoreState() should be invoked by the Android system when your fragment is restored. You likely don't need to call it yourself. Jul 10 16:00:19 Very basic question here, but if I have a project in android-studio, and I CTRL-F9 build project, I should end up with *.jar files, right? Jul 10 16:00:48 phoenixz: You'll end up with class files, jar files, dex files, and an apk file. The APK file is considered the final result. Jul 10 16:01:45 freeone3000: huh. b-but how do i make sure my FragmentStatePageAdapter gets restored? Jul 10 16:01:45 freeone3000: Well, from what I've understood (JAva is not directly my thing, so I am doing what I can) this project won't generate an APK, its basically a dependancy for another project that will (should) make an APK Jul 10 16:02:11 freeone3000: but the problem is, I build the project, all is well, 0 errors, 4 warnings, but I see no .jar files anywhere Jul 10 16:02:15 sqrrl: THe same way you make sure your Activities get their onResume() called... you don't. Jul 10 16:02:17 Where could I Find these jar files? Jul 10 16:02:29 phoenixz: Is your build system gradle or maven? Jul 10 16:03:16 freeone3000: should be maven, but I could not build it with maven because mvn clean package would run some tests that would fail, thought the project by itself should be okay Jul 10 16:03:37 freeone3000: but it then it won't get recreated on screen rotation... Jul 10 16:03:37 phoenixz: -DskipTests with maven will skip tests. Obviously, you shouldn't do this as a matter of course. Jul 10 16:03:40 freeone3000: so I'm trying to compile it in android-studio Jul 10 16:03:54 i feel so clueless Jul 10 16:04:11 sqrrl: It will. if its containing activity will. Jul 10 16:04:20 freeone3000: Oh boy, if that were to work.. I've been stuck on this a long time :) trying! Jul 10 16:04:34 And yeah, stuff like skiptests is not something that should be done regulary ;) Jul 10 16:05:14 freeone3000: And now I find .jar files! yay! Now just one other question if I may? Jul 10 16:05:23 phoenixz: Sure. Jul 10 16:05:37 sqrrl: If the containing activity is set to handle screen rotation, then no, it's up to the containing activity to re-layout the framents (as necessary). Jul 10 16:06:30 I have then now project two, which depends on project one.. I've been told "project 2 will find the dependancies automatically after you have built project 1" but that sounds suspicious... How would I include this project 1 into 2? Jul 10 16:07:49 phoenixz: It will automatically find the dependencies after you've run `mvn install` on project 1. Jul 10 16:08:03 phoenixz: The same way project 1 automatically found *its* dependencies. Jul 10 16:09:22 freeone3000: mvn install or mvn clean install? (and, whats the difference then?) Jul 10 16:09:30 because I read mvn clean instal Jul 10 16:09:39 phoenixz: `mvn clean install` runs `mvn clean` and then `mvn install`. Jul 10 16:09:47 phoenixz: Think of it like `make clean install`. Jul 10 16:09:59 freeone3000: at the moment i've got viewpager = findViewById(...) and adapter = new MyFragmentStatePageAdapter() and viewpager.setAdapter(adapter) in activity's onCreate Jul 10 16:10:00 freeone3000: ah, it would compile again? Jul 10 16:10:47 sqrrl: In your AndroidManifest.xml, does your Activity have an android:configChanges="orientation"? Jul 10 16:10:48 Anyone have any experience making 'hybrid' apps? Jul 10 16:10:55 JustSighDudes: Which would be...? Jul 10 16:11:01 I have a mobile site that I'd like to make into an app, and I don't mean wrapping it in a webview. Jul 10 16:11:17 Just trying to see if I can slowly replace components as I work towards a full fledged native app. Jul 10 16:11:32 freeone3000: no, it doesn't Jul 10 16:12:21 sqrrl: Then your Activity is destroyed and re-created on orientation change. Jul 10 16:13:17 freeone3000: then.. FragmentStatePageAdapter should be somehow automatically restored? Jul 10 16:13:42 sqrrl: It won't actually be restored as such, no. The fragments will be destroyed and re-created along with the activity. Jul 10 16:14:34 freeone3000: huh. that sounds like restored.. Jul 10 16:15:03 sqrrl: They'll get their state restored if they saved it in onDestroy(). And note that this is entirely lifecycle-managed, you don't do anything special. Jul 10 16:16:23 freeone3000: i, uh, i'll be checking my code... thanks for the tips. Jul 10 16:20:46 I am trying to use a bigText notification so that I can have buttons associated. currently when I create the notification I only get the standard one Jul 10 16:21:52 What's the opposite of BIND_AUTO_CREATE? Jul 10 16:22:00 http://pastebin.com/Tb2kp83m Jul 10 16:22:02 something like bind if exists Jul 10 16:22:09 or bind if running Jul 10 16:29:55 Is it possible to create a listview whose items containt a textview and an expandablelistview? Jul 10 16:30:18 and after that dynamically add items to the exp list view. Jul 10 16:30:42 freeone3000: It appears that project 2 compile is failing. When I do mvn clean install, it gives an error that (according to google) appears to be related to me using maven 3.0.5, and this particular thing has been fixed in 3.8.. Possibly dumb question now, how would I install that? I'm on ubuntu, I installed current maven using apt-get, but there is no repo that has 3.8.. I have looked around, but all I find is a directory with a bunch of Jul 10 16:30:42 files.. any howtos on that? Jul 10 16:31:00 phoenixz: http://maven.apache.org/download.cgi Jul 10 16:32:23 I got the bigtext notification to show 1 time Jul 10 16:32:28 now I can't get it to show again Jul 10 16:33:00 hmm, I need to swipe it down it seems Jul 10 16:33:16 freeone3000: oops, my bad, its the maven-android-plugin that is the problem.. How were I to install that..? Jul 10 16:35:04 because by default it isn't expanded unless it is the top notification Jul 10 16:35:06 bah Jul 10 16:39:52 i have problem with Wakeful Broadcast Receiver on emulator, after some time, it stops receiving messages from gcm, has enyone experienced such behaviour? Jul 10 16:48:51 phoenixz: It'll be installed when you run it. Jul 10 16:49:22 Is there a nice way in a Broadcast Receiver to determine if the app is running? Jul 10 16:50:02 Static value that is by default false and set to true in an activities onResume? Jul 10 16:51:39 freeone3000: when I run mvn? I've run it already, and it gives an error that (according to google) is fixed in a newer version, so I need to update that version Jul 10 16:53:21 phoenixz: The is an attribute of a . Jul 10 16:54:02 I see some crashes in my crash logs that look like this: Unknown: libc.so - libbinder.so - libcrypto.so - libandroid_runtime.so - binder Jul 10 16:54:29 I'm sorry, I'm not sure what you mean with that.. All I know is that I mvn clean install that project, it fails, and google gives me a result where it basically says that that error has been resolved in a newer version for that plugin, so I need to install that newer version... I think... Jul 10 16:54:58 phoenixz: Look at your pom.xml. It contains the definitions for every plugin used in the project, in , where every has its own . Jul 10 16:55:07 It is accompanied by a long callstack intertwined with runtime libraries...but no callstack that crosses my native *.so library or any of my java files...can hints? ideas? Jul 10 16:58:37 freeone3000: ah, alright.. Checking pom.xml, http://pastie.org/9374862 I see the android-maven-plugin plugin, but I dont see a version referenced with it Jul 10 16:59:33 phoenixz: Then add one, with the proper . Jul 10 16:59:44 Also, I see it referenced twice, once in build, and once in profiles.. I guess I would have to add some in one of the two, or both? Jul 10 17:00:10 phoenixz: The profile one is activated when that profile is active. You seem to have one for release and one for debug, and yes, it should be added both places. Jul 10 17:00:58 ok, added 3.8 on both places, recompiling Jul 10 17:01:44 freeone3000: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.7.0:generate-sources.. Same error, do I have to make it reread that pom.xml perhaps? Jul 10 17:02:30 freeone3000: http://pastie.org/9374871 As you can see, I added 3.8 as a version on both places Jul 10 17:03:12 phoenixz: You added it as a sub-tag of configuration. It needs to be a sub-tag of . Jul 10 17:03:22 oops Jul 10 17:04:16 freeone3000: well, recompiling, and now it seems to be downloading something, so... waiting.. Jul 10 17:05:31 freeone3000: [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources (default-generate-sources) on project wallet: The plugin com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0 requires Maven version 3.1.1 Jul 10 17:05:41 Im on maven2 I think.. argh.. Trying to get maven3... Jul 10 17:07:05 how can I install android L preview on nexus 5? Jul 10 17:08:25 JakeWharton: Hey, Jake, @Singleton isn't working as expected, at least not in my unit test. Is this possibly related to thread-safety? Signature: @Provides @Singleton UserManager providesUserManager(@IsMockMode boolean isMockMode, Bus eventBus, @Named(GsonModule.IDENTITY) Gson gson, SharedPreferences sharedPreferences) Jul 10 17:08:57 I could assume that @uithreadtest would solve that problem Jul 10 17:09:26 what's not expected? Jul 10 17:09:37 It returns different instances Jul 10 17:11:17 Let me try a few things, finding out what thread its run on each time, and if @UiThreadTest solves it Jul 10 17:15:48 dagger is thread safe Jul 10 17:17:04 How do I close the notification drawer when a user clicks one of the buttons added to a bigText notification? Jul 10 17:18:11 UiThreadTest locks my tests idk why Jul 10 17:18:24 Doing a manual singleton pattern fixes the problem, though. Jul 10 17:18:27 hmm, nevermind I think I can get it to work for the one that I want to launch an activity Jul 10 17:18:55 jonc: give it an intent Jul 10 17:19:20 JakeWharton, right now I give it an intent to a BroadcastReceiver Jul 10 17:19:37 because I want to check to see if the app is currently running first before launching the activity Jul 10 17:20:26 so in the BroadcastReceiver I create another intent with the activity I want to launch and call context.startActivity() Jul 10 17:21:30 and when I close the notification drawer, my activity is there, but it would be nice to be able to close the drawer automatically Jul 10 17:22:34 what I have found so far isn't actually part of the android sdk it seems, just a way to do it that isn't guaranteed Jul 10 17:24:06 Easy question, running through the tutorials for building hello world, However when I try to run the app on my phone, it force closes, adb log says http://pastebin.com/SpQzj9U5 any ideas what I'm doing wrong? Jul 10 17:27:01 Hey I'm looking for a little help with android wear and packaging the app. Jul 10 17:27:45 hi guys Jul 10 17:28:05 usually on android apps, how can I define a lookup field? Jul 10 17:28:48 does Log.d print out in release mode? Jul 10 17:29:02 I mean for example a field on contact form showing its company name? Jul 10 17:32:39 h4k1m: That's a Label. Jul 10 17:32:57 Azelphur: You didn't include your compat library in your apk. Jul 10 17:33:07 freeone3000: the company has to be editable Jul 10 17:33:35 h4k1m: Then it's a TextEdit. Jul 10 17:33:38 although on local sqlite db there is only the company foreign key on contact table Jul 10 17:33:59 editable is EditText isn't it? Jul 10 17:34:01 Label = TextView Jul 10 17:34:41 Anybody have a android wear to test something? Jul 10 17:34:46 although label is a property in edittext Jul 10 17:34:50 laptopfreek0, I have one Jul 10 17:35:11 freeone3000: Im seeing an example where they re using a MultiAutoCompleteTextView (a special text view) Jul 10 17:35:13 freeone3000: I read that online, however if I right click my project folder and go to properties, android, in the bottom section, I clearly have appcompat_v7 Jul 10 17:35:38 Azelphur: That doesn't mean it's included in the APK. Jul 10 17:35:42 oh? Jul 10 17:35:43 h4k1m: Yes, that's a custom View. Jul 10 17:36:14 Azelphur, android studio or eclipse? Jul 10 17:36:17 Azelphur: Having trouble getting the companion app installed. Jul 10 17:36:17 laptopfreek0, you have to load it separately. Turn on debugging mode on the watch, connect it to usb to the computer Jul 10 17:36:19 jonc: eclipse Jul 10 17:36:29 only when you release it, you package it inside your mobile app Jul 10 17:36:47 Afzal: I can install it manually via adb, but when I install the play version it doesn't auto install on the watch. Jul 10 17:36:55 jonc: literally just following the tutorial on android.com for building hello world, the only change I made was changing the theme to holo dark...not sure if that is what fucked it up for me xD Jul 10 17:36:58 Afzal: the link for the play version is: https://play.google.com/store/apps/details?id=com.laptopfreek0.wearbright Jul 10 17:37:19 freeone3000: that's how it should be done right? Jul 10 17:37:41 when we re trying to modify one object field in another object form Jul 10 17:37:46 freeone3000: so, how do I include it? Jul 10 17:37:59 Azelphur, I haven't dealt with android and eclipse for awhile, but I believe you have to add it to the build in the projects properties Jul 10 17:38:54 jonc: hmm, looking around I've found a project references tab, in it it has one tickbox for appcompat_v7, is that the one? Jul 10 17:39:09 laptopfreek0, did you put in the wear app in your build.gradle file? Jul 10 17:39:24 (doesn't install on the watch for me either) Jul 10 17:39:42 http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java) try that Jul 10 17:39:43 Afzal: Yup and unzipping the apk shows that wear apk in the assets folder. Jul 10 17:40:05 you can skip the copying to your project Jul 10 17:40:11 just adding it to your build path Jul 10 17:43:34 jonc: hmm, I added android-support-v7-appcompat.jar, it's now in my "Referenced Libraries" section in Eclipse, however I still have the same error when I try to run it on my device Jul 10 17:49:25 does anyone know if there is a way to see a build config field for a certain source set? Jul 10 17:49:32 I want to have a specific build config field for my tests Jul 10 17:53:14 Azelphur, have you tried to clean and rebuild? Jul 10 17:53:26 jonc: I'm trying that right now actually, maybe I just did something wrong. Jul 10 17:53:50 don't remember if Eclipse has the issue or not Jul 10 17:55:21 Is there something like onSizeChanged for a fragment? Jul 10 18:00:42 jonc: yea, mus thave done something wrong, works now :) Jul 10 18:01:01 Hey, For some reason android studio refuses to launch anymore. Even with a fresh install. (linux fc20 oracle jvm jdk). I manually set the JAVA_HOME in the script to /usr/java/latest and it ran fine for about a day. It did crash a lot with cryptic messages like "too many files open" etc but after some time it just refused to launch anymore. I also tried reinstalling java Jul 10 18:06:11 I have the nproc set to unlimited in my limits config so it's weird that it throws that error Jul 10 18:16:05 bas_, NPROC is a process limit. Jul 10 18:16:38 sorry I mean nofile :/ Jul 10 18:20:18 bas_, it may have hit something more limited in the C runtime. perhaps something like select(). try stracing it and grepping the output for things like open() Jul 10 18:24:26 timemage: I'll give it a go Jul 10 18:24:34 Should I grep for anything else? Jul 10 18:25:53 bas_, not coming to mind. the list of linux syscalls is not huge. maybe a couple hundred. would only take a few minutes to decide if anything else might be relevant. Jul 10 18:25:57 laptopfreek0, unfortunately I seem unable to package with wear and get a release APK :/ Jul 10 18:26:06 did you come across this error? intermediates/generated/manifests/microapk/release/AndroidManifest.xml (No such file or directory) Jul 10 18:26:22 I guess it's time to learn how to use strace then :V Jul 10 18:26:45 strace is awesome Jul 10 18:26:48 nvm figured it out Jul 10 18:26:51 that was easy Jul 10 18:27:03 My custom adapter class has a few arrays of items, if i stop using the adapter will those arrays be eligible for GC? Jul 10 18:27:06 bas_, there's not a lot to learn about it. not for most practical use. Jul 10 18:28:05 https://nnmm.nl/?7Xm Jul 10 18:30:17 all those files exist :/ Jul 10 18:30:45 wierd... android studio does run if I run it as root Jul 10 18:31:45 afzal: I tried compiling flopsydroid and ended up with the same issue, but no I have not seen the Manifest missing error. Jul 10 18:31:51 does a process need to be started by init to recieve a SIGTERM on system shutdown/reboot? Jul 10 18:31:54 bas_, you may need to specify -f Jul 10 18:32:04 trying to debug a problem on this cheap RCA tablet. can't find an adb driver for it though. what to do. any suggestions? Jul 10 18:32:17 laptopfreek0, okay thanks. Guess I'll try packaging the apk manually for now :/ Jul 10 18:32:46 afzal: I was just about to resor to that method as well :( Means more problems when trying to update) Jul 10 18:32:47 bas_, it's not strange that they exist. if it helps, 3 as a result from open is not an error. Jul 10 18:33:46 https://nnmm.nl/?KDj Jul 10 18:34:49 laptopfreek0, yeah hopefully it'll be fixed since it seems to be a microapk specific thing Jul 10 18:35:24 bas_, 152 is a lot, but then, it's java =) Jul 10 18:35:53 ~java~ Jul 10 18:36:43 i'm working with Dagger for DI. is there a best practice to implement a callback to call the class after injection? Jul 10 18:37:24 timemage: any clue why android-studio runs as root but not as a normal user anymore? Jul 10 18:37:43 bas_, well, i have an answer, but it's not terrible helpful =) Jul 10 18:38:05 is the answer turning it off and on again? Jul 10 18:38:17 fancy42: call what class? Jul 10 18:38:45 bas_, go into your normal user account and strace --o somefile.strace -f # post the whole thing on a pastebin. i'll have a look. what you're looking for is broadly some sort of permission denied. Jul 10 18:39:13 timemage: hmm a permission denied could be it Jul 10 18:39:18 it would be weird though Jul 10 18:39:27 JakeWharton, lets say i have a Parent class that gets multiple Children classes injected Jul 10 18:39:46 the Parent class can't access the Children classes in the constructor Jul 10 18:39:48 bas_, if you run a user application as root, but not with root's environment (HOME and such) but still as the user's HOME, what you end up with is files you can't read,delete, etc in your app's files. Jul 10 18:40:02 because dagger uses the constructor BEFORE it injects the Children Jul 10 18:40:41 bas_, well, it's sort a useless description. broadly the difference between root and other users is permission. so it's sort of a "duh" answer. Jul 10 18:40:50 :/ Jul 10 18:40:57 fancy42, sounds aweful =) Jul 10 18:41:11 timemage, what does? Jul 10 18:41:15 root (sudo) https://nnmm.nl/?9vg Jul 10 18:41:28 fancy42, using daggers to construct things that you inject children with. Jul 10 18:41:34 shodan (normal user): https://nnmm.nl/?pfc Jul 10 18:41:41 I'll spit through these logs myself in a min Jul 10 18:41:56 brb smoke break so I can read up on my mailing lists Jul 10 18:42:14 timemage, ok, i get it :D Jul 10 18:42:21 bas_, the other thing you can do is point find at your project and its dotfiles, looking for files not owned by you. Jul 10 18:43:21 bas_, find ~/.android-studio-or-whatever ~/path/to/your/project -not -user $USER Jul 10 18:47:14 timemage: I already deleted my dotfiles for android studio once and it didn't fix it :/ Jul 10 18:48:09 it DOES remake those folders though Jul 10 18:48:27 bas_, can't seem to get your straces Jul 10 18:48:38 timemage: ? Jul 10 18:48:49 bas_, your links Jul 10 18:48:57 weird the uploads are empty Jul 10 18:48:59 let me try again Jul 10 18:49:44 heh, they are too big for nnmm Jul 10 18:49:52 1 sec let me tgz them Jul 10 18:51:21 http://a.pomf.se/eclhgk.tar.gz Jul 10 18:54:13 Afzal: Even after a manual package still getting nothing. This bug is quite annoying. Jul 10 18:55:43 <_cypha> how can I smoothly transition between the different background colors in my viewpager pages? Jul 10 18:56:26 can I get a relative layout to NOT clip a child view? Jul 10 18:56:30 <_cypha> I have different colors basically now as background in each fragment in my viewpager and want the transition between pages to be "smoother" Jul 10 18:56:40 I have an imageview that is aligned to the top of a relative layout, and have a -60dp padding Jul 10 18:56:47 but it clips the image Jul 10 18:56:58 bas_, why would it be looking at your ruby gems? Jul 10 18:57:14 <_cypha> jonc: yes, android:clipChildren="false" android:clipToPadding="false" try these in your relativelayout Jul 10 18:57:20 bas_, oh, nevermind. probably nothing. Jul 10 18:57:21 laptopfreek0, same here now that I was able to package the app Jul 10 18:57:31 has anyone worked with an RCA tablet? Jul 10 18:57:55 theblang: I have no clue. I rarely use ruby, I'm more of a python guy :V Jul 10 18:58:04 got it, had to add clipChildren="false" to the root view also Jul 10 18:58:09 theblang: They're boring android. Jul 10 18:58:15 bas_ haha, wrong person? Jul 10 18:58:18 <_cypha> jonc :) Jul 10 18:58:35 freeone3000 im trying to test a fix for a weird problem on this cheap rca tablet, can't get a driver for it tho Jul 10 18:58:38 thanks, _cypha Jul 10 18:58:54 laptopfreek0, try this http://android-developers.blogspot.ca/2014/07/update-on-android-wear-paid-apps.html Jul 10 18:59:02 I tried doing it to the relative layout that the image was in, didn't work. I had to also add it to the root layout Jul 10 19:00:25 theblang: oops ye I meant timemage Jul 10 19:00:36 Silly autocomplete Jul 10 19:00:45 bas_ what client you using for autocomplete? Jul 10 19:00:50 weechat Jul 10 19:01:00 bas_ also, why don't you go ahead and tell me hwo to make this RCA tablet be recognized in ADB Jul 10 19:01:18 * bas_ hides Jul 10 19:01:21 haha Jul 10 19:01:36 Seriously I know a tiny bit of android dev Jul 10 19:01:51 The only app I published got taken down by snapchat Jul 10 19:02:06 theblang: Connect it. Enable USB debugging under settings. Switch it to "Camera" (PTP) mode. Jul 10 19:02:49 theblang: PDANet apparently has the drivers you need, because RCA was dumb and didn't use the standard ones. Jul 10 19:02:50 freeone3000 k, ill tell you in five minutse if that works, waiting on the thing to catch up Jul 10 19:02:57 afzal: Sadly I just tried that with no success. Jul 10 19:04:20 freeone3000 dang, yeah, that didnt work Jul 10 19:04:32 laptopfreek0, that actually worked for me! Jul 10 19:04:33 theblang: `adb devices` gives nothing? Jul 10 19:04:47 see logcat and monitor wearablepkginstaller tag Jul 10 19:05:10 freeone3000 negative. tried restart as well Jul 10 19:05:16 if it sends a android.intent.action.PACKAGE_ADDED intent to the wear device, then it should be installed Jul 10 19:05:38 theblang: Do you have the drivers installed? Looks like they use non-standard drivers, same as Samsung used to. There should have been a driver CD; if not, PDANet has drivers which.. would work. Jul 10 19:05:44 freeone3000 also tried koush's universal driver Jul 10 19:06:00 freeone3000 not my tablet, so no cd. checked website Jul 10 19:06:19 freeone3000 what is pdanet Jul 10 19:07:05 theblang: It's a "connection sharing" application that happens to, as a side effect, install the non-standard drivers for an excessive variety of android devices. Jul 10 19:07:16 Does anyone have some good resources about using fonts in mobile apps? I’m wondering if there are official recommendations for what fonts to use and whether or not using custom fonts is a “good idea” or not. Most of my research is returning font usage for WebViews. Jul 10 19:07:56 Brendan55: It's the same advice. Generally, don't. Jul 10 19:08:08 Brendan55: If you're a game or whatever, sure, go with whatever you feel like. Jul 10 19:09:28 Right, my ultimate goal is to convince those making decisions to NOT use custom fonts. I just need something that looks official to back me up. Jul 10 19:09:50 use holo Jul 10 19:14:07 Why do so many guides assign variables for no reason? Am I missing something? Jul 10 19:14:39 int itemPosition = position; Jul 10 19:14:45 String itemValue = (String) listView.getItemAtPosition(position); Jul 10 19:15:04 why not just use position? Jul 10 19:15:15 Why do they assign it to itemPosition? Jul 10 19:15:38 AKK9, it's difficult to say anything about it out of context. Jul 10 19:16:04 timemage, sorry. See this example: http://androidexample.com/Create_A_Simple_Listview_-_Android_Example/index.php?view=article_discription&aid=65&aaid=90 Jul 10 19:16:12 Its very short and simple Jul 10 19:16:33 But I don't see any need for them to assign position to itemPosition. Jul 10 19:17:04 AKK9, presumabley so that the call to makeText is more readable. Jul 10 19:17:16 freeone3000: i made a test app to test FragmentStatePageAdapter and i see that it indeed tries to reinstantiate the fragments (Log.e in fragment's lifecycle methods). but the adapter is not connected to the ViewPager anymore and there's no reference to it in the Activity. should I somehow obtain this reference and tell ViewPager to use this? Jul 10 19:17:55 Presumably because the audience needs a tutorial, so properly explaining what the different parameters are is useful Jul 10 19:18:12 freeone3000 well that is flippin sweet... Jul 10 19:18:44 bas_, what message do you get when it crashes? Jul 10 19:19:53 AKK9, yeah, "int itemPosition = position", is a bit much, though. Jul 10 19:19:57 I know there are a bunch of threads on line about this, but I have a question about using ndk vs just java. I want to create a fast paced 2d game with using opengl. From my understanding it would be better to use plain java, and not get involved with ndk unless something is super cpu intensive. Jul 10 19:20:45 timemage, ok thank you. Just want to make sure I'm not missing a trick. Jul 10 19:22:39 AKK9, no i don't think so. i do this sometimes if it increases readability. usually though employing const, or final, or whatever the language has to offer in the way of pinning down the binding of the short hand variables. Jul 10 19:24:26 sqrrl: Don't you connect it in your onCreate()? Jul 10 19:24:31 theblang: Did it work? Jul 10 19:24:54 freeone3000 yup, thanks man! Jul 10 19:30:38 freeone3000: i am creating a new one in onCreate the first time. i would connect the old one when i have savedInstanceState but i don't know how to reference the old one.. Jul 10 19:31:19 sqrrl: There isn't an old one, it was destroyed with the old Activity. Jul 10 19:32:31 freeone3000: well, the one that's supposed to get stuff in restoreState. don't know how i should reference it Jul 10 19:32:56 is there an example or just anything? :| Jul 10 19:34:29 sqrrl: You can't reference it, it was part of the old activity, which was destroyed. Anything not in the savedInstanceState must be re-created. Cause it's a new Activity. Jul 10 19:36:11 b1101: it can be done, check out ReplicaIsland Jul 10 19:36:17 Can someone tell me what data types in tags are called? Jul 10 19:36:25 e.g. ArrayAdapter Jul 10 19:36:26 ? Jul 10 19:36:41 AKK9 that is a generic type Jul 10 19:36:43 freeone3000: well, i'm not adding any new fragments, but i see that they are getting recreated with the correct parameters. yet they are not visible.. Jul 10 19:37:12 err the <> denotes generic Jul 10 19:37:12 sqrrl: Did you add them to the (new) ViewPager? Jul 10 19:37:32 lasserix, thanks. Been trying to look them up and had no idea what to search for. :) Jul 10 19:37:40 AKK9: In the type ArrayAdapter, the type is ArrayAdapter, the class is ArrayAdapter, and String is either a type parameter or a generic type parameter. Jul 10 19:37:48 AKK9: http://docs.oracle.com/javase/tutorial/java/generics/ Jul 10 19:38:48 freeone3000: i mean, i'm not creating or adding new fragments after screen rotation. not to the adpater, not to the viewpager. yet i see them in logs Jul 10 19:41:02 i made blank saveState and restoreState and the fragmens get created anyway Jul 10 19:41:34 i don't know what's going on Jul 10 19:41:34 Thanks for the links, I don't really get the point of it. If it has to be a String why not just say that in the class? Jul 10 19:41:38 Instead of Object Jul 10 19:41:52 type safety Jul 10 19:42:04 you force type safety at compile time by using generics, that is the general point Jul 10 19:42:27 ie a ArryList means you can count on every object in that Arraylist to be of type string Jul 10 19:43:00 Ohhh, I get that Jul 10 19:43:15 I don't get their example though. Jul 10 19:43:23 which example? Jul 10 19:44:02 They have class Box, and their setter is public void set(Object object). But if that was set(String string) then wouldn't that solve the problem of setting the wrong type? Jul 10 19:44:58 It's on this page: http://docs.oracle.com/javase/tutorial/java/generics/types.html Jul 10 19:49:14 so uhm Jul 10 19:49:30 without rooting a device, any way to force the default webview to use chrome instead of native garbage Jul 10 19:49:52 drej: You don't want that. Jul 10 19:50:02 AKK9: that is the point, because you can do Box now you can use any object type you want later, and when you do you'll always know that that set of boxes if of that type Jul 10 19:50:02 ... Jul 10 19:50:15 whys that? Jul 10 19:50:24 drej: First, because chrome is not embeddable, and it'll make everything behave wrong, second, because things are made for the "native garbage" (actually a webkit port for embedding, usually the same branch that chrome is based off of). Jul 10 19:50:33 okay Jul 10 19:50:52 except these are black label devices we're shipping to the consumer with a specific application using webviews installed in it and locked out for use of this specific purpose Jul 10 19:51:02 for instance i believe ArrayList is ArrayList which enables you to make a specific kind of arraylist object set later on... Jul 10 19:51:05 the only catch is that the devices are rugged and bomb proof, and unfortunately come with only 4.1.2 Jul 10 19:51:11 who's webview is so outdated that half the shit doesnt work Jul 10 19:51:15 so id like to package it with chrome if possible Jul 10 19:51:27 drej: Not really doable, no. Not even *with* root. Jul 10 19:51:38 drej: You can use chrome exclusively, but then you lose android control of the device. Jul 10 19:51:46 or to you answer your question another way, what if you wanted both a Box of type integer and type float? Jul 10 19:51:57 drej: Really, no schedule for native application? Jul 10 19:52:00 freeone3000 not that easy, its a cordova app Jul 10 19:52:21 freeone3000 its an edge case, not all the devices / clients use these, just one specific client Jul 10 19:52:26 (Because cross-platform is an important design goals with bomb-defusing equipment...) Jul 10 19:52:44 freeone3000: i'd be happy if you took a look http://bpaste.net/show/E2HdlQCs2a0QaTf0l6Qb/ - i'm only adding pages on first run, yet i see that it's getting reinstantiated on screen rotate. i don't how how this is possible and i want to know how can i take advantage of FragmentStatePagerAdapter's autosave/autorestore.. please Jul 10 19:52:49 drej: There's not a lot of options, unfortunately. Jul 10 19:53:00 i was looking at https://github.com/pwnall/chromeview as an option Jul 10 19:53:35 drej: Looks like something like that is your best thing - your own html renderer library. Jul 10 19:53:47 drej: But I don't know how you'd integrate Cordova with that. Jul 10 19:54:01 im assuming with a lot of crying Jul 10 19:54:13 and a couple of drinking binges Jul 10 19:54:15 drej: The solution may just be to backport your app code. Jul 10 19:54:45 drej: 4.1.2 shipped with 534.30, which is honestly quite recent. Jul 10 19:55:17 im leaning towards that; but unfortunately its a slippery slope Jul 10 19:55:36 thanks for being my rubber ducky Jul 10 19:58:05 drej: hey, what problem are you trying to solve? Jul 10 19:58:47 hi guys, does somebody own a lg g3 phone, and if so, how do I turn on usb debugging and connect through adb, either on MacOSX or Win 7 ? Jul 10 19:59:26 GaryHost: do you see the Developer Options? Jul 10 19:59:30 timemage: sorry for the late response, I don't get any error message Jul 10 19:59:57 bas_, weird. Jul 10 20:00:18 GaryHost: Go into "Settings", "About this phone", and tap the build number ten times. Jul 10 20:01:52 so apparently onPause() isn't necessarily executed when the user opens the app switcher...wtf. Jul 10 20:03:00 that means the user can simple swipe the kill the application without ever going through onPause...is there any other callback we can use to save the application state? Jul 10 20:03:32 err, s/simple swipe the kill/simply swipe to kill/ Jul 10 20:03:35 bnicholson: your suppose to use onSaveInstanceState(Bundle outState) Jul 10 20:03:42 Napalm, freeone3000 : Sorry, i forgot to specify : I already enabled usb debug, but my computer still cannot see it. I installed the latest version too Jul 10 20:03:53 bnicholson: onSaveInstanceState(). Also note that killing the app this way will probably trigger onPause() anyway. Jul 10 20:04:09 GaryHost: Connect it through USB, set the phone to "Camera" (PTP) mode, and what does `adb devices` say? Jul 10 20:05:12 timemage: Ye, That's why I'm so confused Jul 10 20:05:19 it just does nothing Jul 10 20:05:25 even no console output Jul 10 20:05:36 freeone3000: Allright, I didnt know I had to put it in ptp mode, it works fine now Jul 10 20:05:39 GaryHost: on windows go into Device Manager and see if you can see the device with as warning symbol.. if it does then right click it and update driver and choose have disk and select the google_usb driver from the sdk.. on mac you need to add the VendorId 0x1004 to the asb_usb.ini file Jul 10 20:05:44 thanks very much Jul 10 20:06:07 GaryHost: you can use the above for devices not auto-detected Jul 10 20:06:54 bas_, what is your core limit and if not zero is it dropping core? Jul 10 20:07:30 Napalm: freeone3000: are you saying onSaveInstanceState() will be called even in cases where onPause isn't called? i've never seen that before. Jul 10 20:07:31 timemage: ? Jul 10 20:07:45 bas_, run it with ulimit -c unlimited Jul 10 20:08:01 bas_, see if you get an ls core* Jul 10 20:08:18 freeone3000: in general, yes, but apparently some devices don't trigger onPause for the app switcher: https://bugzilla.mozilla.org/show_bug.cgi?id=1025560#c15 Jul 10 20:08:29 timemage: with strace? Jul 10 20:08:38 bas_, nah. Jul 10 20:09:33 bnicholson: That's fine. It's to cut down calls for onPause()/onResume(). Jul 10 20:09:42 timemage: nope, nothing Jul 10 20:10:22 bnicholson: you'll probably get the normal lifecycle onStop, but your suppose to save your state in onSaveInstanceState so put it there Jul 10 20:11:20 freeone3000: Napalm: i should probably clarify: by "saving state", i'm not referring to saving state in the Bundle for when the activity is killed/recreated after being in the background Jul 10 20:12:59 i'm referring to persistent storage. specifically, we have things in memory that are lost if we don't flush the state first Jul 10 20:13:26 we can't write these things to disk every time they change, as that would be terribly inefficient Jul 10 20:15:36 in these cases where onPause isn't called for the app switcher, i'm assuming it's because the app switcher on these devices keeps the application in the foreground while simultaneously showing the app switcher Jul 10 20:16:20 and by extension, i doubt onSaveInstanceState would be called either (since there's no reason for the OS to trigger a save state if it still thinks the application is in the foreground) Jul 10 20:17:16 Hey guys, got a question about the "up" button and triggering onOptionsItemSelected Jul 10 20:17:26 bnicholson: It'll be called before your app is killed. Jul 10 20:18:06 asQuirreL: what about it Jul 10 20:18:10 on my device running API 18 it pressing "up" triggers onOptionItemsSelected, and I can use that to navigate up. But on an emulator running API 15, it does not Jul 10 20:18:47 freeone3000: swiping an app from the recent apps list isn't guaranteed to call anything. it kills the process immediately Jul 10 20:18:57 asQuirreL: you need to enable it in the ActionBar class Jul 10 20:19:19 my action bar style for the app's theme already has homeAsUp enabled Jul 10 20:19:39 has anyone here had the issue with ORMLite where you get the java.lang.SecurityException? Jul 10 20:19:58 is there something specific I have to do to enable it in API 15 that I don't need to do to enable it for API 16+? because APIs 16+ seem to be working fine Jul 10 20:20:02 bnicholson: you can get around the "bug".. queue up your data to be saved by a service or component running with a seperate process affinity Jul 10 20:20:14 all I am trying to do is insert into the table Jul 10 20:20:15 asQuirreL: you still need to enable it Jul 10 20:20:26 Napalm how do I do that? Jul 10 20:21:38 asQuirreL: setDisplayShowHomeEnabled(true) and setDisplayHomeAsUpEnabled(true) Jul 10 20:21:47 timemage: Any idea what channel the people who develop android studio are in? Jul 10 20:22:09 private ones at Google Jul 10 20:22:16 :V Jul 10 20:22:30 asQuirreL: forget that its setHomeButtonEnabled(true); see the docs Jul 10 20:22:42 "This defaults to true for packages targeting < API 14. For packages targeting API 14 or greater, the application should call this method to enable interaction with the home/up affordance. " Jul 10 20:22:46 I guess I'll just grab my mac then and work on that Jul 10 20:24:08 Napalm, that last one was the one :) Jul 10 20:24:11 thanks very much Jul 10 20:24:17 bas_, nope. in fact i haven't even used it. Jul 10 20:24:51 timemage: I guess I'll just use eclipse then Jul 10 20:24:54 thanks for the help; Jul 10 20:25:05 bas_, i'm just applying general strategies to this. for what it's worth, i've had the same thing happen to eclipse, open office, firefox, etc. Jul 10 20:25:37 I've only had it happen to android-studio. First time that I've had this issue Jul 10 20:26:09 bas_, does android studio have any command-line options? Jul 10 20:26:38 nope Jul 10 20:26:41 it's a bash script Jul 10 20:27:27 Napalm: interesting idea, though i'm not sure possible in this situation. the app i'm working on is firefox for android, and the "things" that needs to be flushed are held in gecko: the disk cache, the user's session, gecko preferences, etc Jul 10 20:28:46 can I have multiple Dao's for a given database using ORMLite? Jul 10 20:28:56 bas_, what happens if you create another user account and run it from there? Jul 10 20:28:56 each table is seperate with no foreign keys Jul 10 20:29:30 bnicholson: see PM Jul 10 20:29:50 Hey all. I'm trying to recover the data off of my droid 4. It's gone into a red eye loop. When I adb shell in, the internal memory doesn't seem to be mounted. There's no /etc/fstab. I suppose if I knew the device name I could mount it? Jul 10 20:30:33 look in init.rc or init..rc Jul 10 20:30:53 I keep getting the java.lang.SecurityException: Permission Denial from DatabaseUtils when trying to insert Jul 10 20:31:00 or possibly /system/etc/fstab.xml (or something like that. can't recall exact name) Jul 10 20:31:30 timemage: let me try Jul 10 20:32:01 actually, I think the fstab file is in root these days. /fstab. Jul 10 20:33:31 Is there any way to prevent ListView item recycling? Jul 10 20:33:37 JesusFreke: Yup, true. Jul 10 20:34:12 skulltower: what reason would you have for wanting to do that? Jul 10 20:34:14 timemage: brb gotta log out to test this Jul 10 20:34:43 JakeWharton, i have some items which musn't change Jul 10 20:34:48 mustn't Jul 10 20:35:27 JesusFreke, /fstab.mapphone_cdma and /init.* are all Permission denied. Jul 10 20:35:42 clahey: no root? Jul 10 20:35:55 there's not going to be anything you can do without root access Jul 10 20:36:19 And no way to get root access without being able to boot. Jul 10 20:36:45 So the only way to get the data is to take the phone apart and pull the data straight off of the chip? Jul 10 20:37:09 I do have the logcat, but I'm not sure if that's helpful. Jul 10 20:37:11 flash a custom recovery image Jul 10 20:37:23 skulltower: the fact that you rely on them not to change by the view not being reused is a sign you're keeping state in the wrong place Jul 10 20:37:25 Will that not wipe my data? Jul 10 20:37:36 what happens if the user rotates the phone? Jul 10 20:37:48 not if you just flash the recovery image Jul 10 20:37:51 android:configChanges, brah Jul 10 20:37:55 fired Jul 10 20:38:02 in any case, we're straying into #android-root territory here :) Jul 10 20:38:09 JesusFreke, Oh, that would be great. Jul 10 20:38:13 It is possible to flash a non-encrypted non-Knox phone with a custom recovery and even a custom ROM without loss of data. Jul 10 20:38:32 timemage: it works when I make a fresh account Jul 10 20:40:12 bas_, that should give some new ideas. Jul 10 20:40:47 bas_, i guess env | sort both accounts and then diff -u them to see what if anything might be important there. Jul 10 20:43:36 http://pastebin.com/hPAVZ2fi the SqlHelper class that creates the daos. The getUserAnswerDao() works, but as soon as I do something like getUserAnswerDao().create(userAnswerInstance) I get in the logs a security exception (that isn't reported from my app) Jul 10 20:43:49 skulltower ListViiew has setRecycleListener which might be useful; your use case is vague though. Jul 10 20:44:10 it's reported from androids DatabaseUtils class, and doesn't contain any mention of my code in the stack trace Jul 10 20:44:43 BUT if I use getUserDao().create(userInstance); everything is hunky dory Jul 10 20:45:10 Is it possible to programmatically add Buttons/TextField... to DrawerLayout ? Jul 10 20:45:20 skulltower also there is http://developer.android.com/reference/android/widget/AdapterView.html#ITEM_VIEW_TYPE_IGNORE Jul 10 20:45:24 the only difference is that test has _=/bin/env Jul 10 20:46:35 g00s, cool! I'll try it out after/if I fail to recycle my views. Thanks m8 Jul 10 20:46:57 skulltower yeah these are for very special use cases, hope you aren't doing something crazy :) Jul 10 20:46:58 bas_, you could create a new directory elsewhere and change your home directory to it. see if it works that way. alternately move everything out your $HOME and move them in in sets until it breaks Jul 10 20:47:10 hey freeone3000 Jul 10 20:47:19 https://crosswalk-project.org/ looks somewhat promising Jul 10 20:47:34 anybody have any experience with this segfault? signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d Jul 10 20:47:36 in terms of bundling a rendering engine (Blink) into an app and using it as the webview Jul 10 20:47:42 mkdir ~/fakehome and then just do HOMe=/home/shodan/fakehome in the script Jul 10 20:47:44 I guess Jul 10 20:47:47 erich: This segfault... Jul 10 20:48:10 flan3002: yeah, i know Jul 10 20:48:24 g00s, nah this is pretty neat imo xD imo.. Jul 10 20:48:36 drej when i see diagrams like that, how this works - i want to barf Jul 10 20:48:39 flan3002: it's all i have to go on. the dev console cut off the actual useful bits of the stack trace Jul 10 20:48:40 erich: It's not like it's unique or anything. It gives us almost no clue on what might be wrong. Check all your native components and have fun. :D Jul 10 20:48:55 g00s but it has so many lines and boxes! Jul 10 20:48:58 (Crosswalk Architecture) Jul 10 20:49:01 bas_, if it were me, i'd change the passwd's homedir. imo, it's otherwise not a good test. if you're welling to go though the whole thing twice, they yeah, try $HOME. Jul 10 20:49:42 do we still use ViewPagerIndicator or is there a better way now? Jul 10 20:49:45 bas_, system shock fan? Jul 10 20:49:47 didn't work (did HOME=... thing) Jul 10 20:49:52 ofcourse Jul 10 20:50:22 Been ages since I've played it tho Jul 10 20:51:45 bas_, you're sudo -u otheruser -i # to do you're user switching? Jul 10 20:51:56 timemage: su {user} Jul 10 20:52:34 JakeWharton, are you still maintaining ViewPagerIndicator? Jul 10 20:52:45 timemage: holy shit Jul 10 20:52:48 bas_, well, at least now you know it's not a root vs non-root issue. Jul 10 20:52:52 bas_, yeah? Jul 10 20:52:59 I did su test -c '/opt/android-st...' and it fucking ran Jul 10 20:53:14 i guess new question. is there a way to get more information about a stack trace than what is given in the google play console? when i asked google support they just sent me here Jul 10 20:53:19 I *could* create a new user and just have android studio run using that user Jul 10 20:53:31 erich: segfault != stacktrace Jul 10 20:53:54 erich: You... asked... Google support? O.O Jul 10 20:54:02 erich: And they sent you here? Wow! Jul 10 20:54:08 and put me and that user in the same group and make a folder where I put everything that I symlink to my projects folder Jul 10 20:54:11 the plan is flawless Jul 10 20:54:14 Afzal: no Jul 10 20:54:23 Okay, thanks! Jul 10 20:54:43 bas_, ehh, i couldn't articulate why, but i think you'd be better off putting more time into figuring out the real problem. Jul 10 20:54:54 ugh but effort Jul 10 20:55:05 why can't I be lazy for once? Jul 10 20:55:48 flan3002: when i view the stack trace for a app crash all i get is the seg fault and the error saying that dvm aborted itself, but i don't even get the stack trace that should have come before it. i kind of need that before i even remotely have an idea of where to look or how to try to reproduce the issue :( Jul 10 20:56:21 flan3002: but yeah, google support sent me here. super helpful Jul 10 20:56:38 I mean, it works... I'm just not adding to it Jul 10 20:56:42 I declared my buffer property as a static, and that caused me all kinds of strange problems with the buffer having the wrong value, then when I removed the static declaration from it, it all worked as it should have! Jul 10 20:57:01 erich: That's not a stacktrace. You'll need to use traditional debugging to determine what components fail. Jul 10 20:57:42 flan3002: yeah, i know. but without any information as to why the app actually crashed, i can't even begin to know where to start debugging this thing Jul 10 20:58:16 erich: Sure you can. Step it through or splatter your code with log statements. Jul 10 20:58:29 erich: It will let you determine when it crashed. Jul 10 20:58:56 flan3002: that's the thing. this is a commercial app that's gone through 6 months of testing already. we've never seen this crash ever. Jul 10 20:58:59 But you should first check ALL native components. Jul 10 21:01:37 erich: So? Jul 10 21:02:54 I really need some suggestions about a problem. this RCA tablet that is runnin 4.2.2 (we supported back to 2.3) can't install our app in the Play store. im trying to think of what I might could change in the manifest file. I detailed part of the manifest here: http://www.reddit.com/r/androiddev/comments/2a2z3o/rca_tablet_running_422_is_not_compatible_with_my/ Jul 10 21:03:20 im going to try the suggestion to make location.gps a required false uses-feature, but curious if anything else could cause this Jul 10 21:03:44 static properties fucked up my life Jul 10 21:09:58 lol. make them non-static Jul 10 21:11:40 yes Jul 10 21:11:44 i did! Jul 10 21:11:51 but before I did, i had debugging nightmare Jul 10 21:11:56 I declared my buffer property as a static, and that caused me all kinds of strange problems with the buffer having the wrong value, then when I removed the static declaration from it, it all worked as it should have! Jul 10 21:12:12 i wrote to the buffer, then when I read from it, it had a differnet value Jul 10 21:12:20 * flan3002 laughs at smallfoot- Jul 10 21:12:29 it was painful! Jul 10 21:13:22 Ahh. One of those, "this is not what it is supposed to do!!" Jul 10 21:13:35 yes Jul 10 21:13:43 its when you hate being a developer Jul 10 21:13:46 and wish you did something else Jul 10 21:13:49 Afzal: Thanks for the help. Finally figured it out. Permissions have to match mobile and wear. If not then it refuses to install the app to the watch. LOL. Jul 10 21:14:15 sometimes I'd like to stock groceries Jul 10 21:14:50 laptopfreek0, that's weird because my mobile app and wear app have very different permissions lol (with the wear app having no permissions at all :P) Jul 10 21:15:01 But it's good that your issue is also solved Jul 10 21:15:42 JakeWharton, oh okay, I was wondering if there was a better way to do it. I might try to just implement the whole thing myself but I don't wanna do that today :p Jul 10 21:18:20 yeah. it's easy Jul 10 21:20:35 Afzal, you can always go the lazy way and fork it ;) Jul 10 21:23:12 Mavrik, lol no if I was gonna fork it, I'd just use it verbatim. TBH, I'm not sure if putting 3 little ViewPager views on the wear screen is a good idea but we'll see Jul 10 21:29:44 dont put viewpager on Wear Jul 10 21:29:49 Wear is only for notifications!! Jul 10 21:30:22 smallfoot-, didn't you see the AlltheCooks demo? Jul 10 21:31:01 Afzal, nope Jul 10 21:32:17 smallfoot-, check it out. But yeah, if it doesn't work nicely then I'll just put the stuff in a nice list like Keep does Jul 10 21:34:55 That's ridiculous. WHat, you think the wear is simply so you pull your phone out less often? Jul 10 21:36:25 There's all sorts of nifty stuff you can do with an additional 3.4" screen, not to mention all the new sensors. Jul 10 21:36:27 freeone3000, that's actually exactly what it's "supposed" to be :p Jul 10 21:36:49 Afzal: That's what Samsung thought with the Gear, as well. Jul 10 21:36:57 yup but that's not gonna happen Jul 10 21:37:02 Afzal: Angry Birds is suprisingly easy to play on a 4" screen, yep. :) Jul 10 21:37:11 unfortunately, I wish at least directions were available on the watch itself Jul 10 21:37:17 wait, that screen is 3.4"? Jul 10 21:37:36 <_< that screen is definitely not 3.4" or more Jul 10 21:37:52 Afzal: Squares are "bigger" than rectangles. It's an artifact of how screens are measured. 2" by 2" somehow becomes 2*sqrt(2). Jul 10 21:37:54 I remember the Nexus One's screen was 3.7" Jul 10 21:38:15 just put your phone in an armband Jul 10 21:38:35 * g00s genius Jul 10 21:38:47 g00s: I would pay money to see someone wearing a Note 3 in an armband. Jul 10 21:39:12 freeone3000, isn't 2" by 2" gonna be 2" diagonal 2.82" ? Jul 10 21:39:14 g00s: http://26.media.tumblr.com/tumblr_l1m89bESnw1qz5avfo1_500.png hehe Jul 10 21:39:25 bankai_au haha Jul 10 21:39:40 Afzal: Probably. They might be allowed to count the bezel since it's technically glass-covered, making it 2.5" x 2.5". Jul 10 21:39:48 ah okay Jul 10 21:40:45 Afzal: Which is a rounding error away from 4". Yay, math, boo measuring-screens-by-diagonal-bisector-instead-of-surface-area. Jul 10 21:40:49 freeone3000, it's 1.63" for Gear live Jul 10 21:41:08 Afzal: They shrunk it down significantly for the Live and the Neo. Not sure why. Jul 10 21:41:26 well because 3.6" diagonal would still be massive on a wrist Jul 10 21:42:03 Afzal: And people said that 5.7" screens would be massive for a phone. Jul 10 21:42:14 they are .. Jul 10 21:43:34 Afzal: And yet, there's the LG G Flex, the Galaxy Note 3, the Galaxy Round, the Sony Z UPE Ultra... Jul 10 21:43:40 Afzal: People like big screens. Jul 10 21:43:44 god save us from those phones Jul 10 21:43:54 anything above 5" is massive Jul 10 21:43:55 I like my original Gear. I don't care that I can't bend my wrist while wearing it. Jul 10 21:44:08 I especially like that it runs actual android. Jul 10 21:44:09 I've dropped my N5 twice because of that Jul 10 21:48:39 if you return true in onTouchEvent, is that just telling android not to pass the touch event up to the next listener? Jul 10 21:49:42 it looks like when i return true in a textview, it passes the touch to the span over that text in that textview Jul 10 21:49:57 but i don't see any docs about how all of this works Jul 10 21:52:28 how can I get a handle of a Menu item in my fragments onCreate? Setting a class field in onCreateOptionsMenu or in onPrepareOptionsMenu always ends in NullPointerException Jul 10 21:55:22 Afzal, it survived both drops? Jul 10 22:02:17 smallfoot-, yeah, with slight dents. tiiiiny crack on the top of the side panel. tiiiiny deformity on the bottom left of the side panel Jul 10 22:03:02 Afzal, I got a Nexus 5, I am terrified of it breaking, I seriously had a nightmare that it was broken, the screen cracked Jul 10 22:03:28 smallfoot-: no worries. I once threw mine during sleep and it survivad Jul 10 22:03:44 I fell asleep with my earbuds, and they were trying to strangle me Jul 10 22:04:09 I threw it, woke up, oh shit, I just killed it Jul 10 22:04:15 _not a scratch_ Jul 10 22:04:43 and meanwhile Jul 10 22:05:07 can somebody tell me why menu field throws null? Jul 10 22:05:09 https://gist.github.com/ironhalik/e140d528653dadc9893d Jul 10 22:05:13 its driving me nuts Jul 10 22:05:52 thats the textbook, google approved way of getting the menu outside of the menu methods Jul 10 22:06:36 ironhalik what line is NPE ? Jul 10 22:07:28 well, none in this code :P Jul 10 22:07:36 but you could say its 24 :P Jul 10 22:08:09 the question should be, why it prints 'Nada.' Jul 10 22:08:13 obviously onCreateOptionsMenu is being called after onCreateView Jul 10 22:08:25 g00s: yeah, looks that way Jul 10 22:08:32 oronPrepareOpionsMenu Jul 10 22:08:40 yeah, these timing dependencies suck Jul 10 22:08:52 but thats the google way of doing it. and I also tried calling onPrepareOptionsMenu myself Jul 10 22:09:05 nah Jul 10 22:09:12 I guess the whole issue here is that its in a fragment Jul 10 22:09:13 whats the google way of doing it ? Jul 10 22:09:32 the one in the gist Jul 10 22:09:32 no, back up Jul 10 22:09:41 you can store a ref to the menu, no problem ... Jul 10 22:09:53 but onCreayeView is being called before that Jul 10 22:09:54 ironhalik: move setHasOptionsMenu(true); to onCreate instead of onCreateView Jul 10 22:10:02 hey all Jul 10 22:10:23 any one help me deal with a issue with my gradel Jul 10 22:10:33 oh i didn't see that either (hasOptionsMenu) Jul 10 22:10:43 thats not really the right place to put it Jul 10 22:10:52 yeah...my worst nightmare is to drop the Nexus while I'm sleeping. Any time I wake up and it's not at its position, I freak out Jul 10 22:10:59 (and it's really hard to freak me out) Jul 10 22:11:09 my fear is dropping my n5 in the toilet Jul 10 22:11:23 https://gist.github.com/anonymous/7b2aabd96d1e281b4965 Jul 10 22:11:28 but it doesnt stop me using it in there. im just careful:) Jul 10 22:11:33 im using android studeo Jul 10 22:12:17 What does the Wear framework say when the rectangular layout doesn't work? Jul 10 22:12:21 Rect. Jul 10 22:12:29 Napalm, g00s - still menu is null :< Jul 10 22:12:41 ironhalik: doesn't supprise me Jul 10 22:12:57 ironhalik: move your menu test to onResume Jul 10 22:12:59 njcomsec, lol Alex Ruiz had that happen I believe Jul 10 22:13:21 lol Jul 10 22:13:24 ironhalik problem is, the docs don't say when it will be called wrt other methods Jul 10 22:13:27 afaik Jul 10 22:13:32 so don't make any assumptions Jul 10 22:13:40 maybe it is called after onResume Jul 10 22:13:43 edwardthefma, the error is quite apparent on line 20 there Jul 10 22:13:54 assumptions about these timing things = brittle stuff Jul 10 22:14:02 support lib 21 rc declares minSdk to be 21 so if you wanna compile for lower, use support lib 20 Jul 10 22:14:11 https://github.com/googlesamples/cardboard/blob/master/CardboardSample/build.gradle Jul 10 22:14:37 yeah, as I said, use support-v4:20.0.+ Jul 10 22:14:39 not + Jul 10 22:14:43 + means latest version Jul 10 22:14:48 Napalm: nope. Still too early :> Jul 10 22:14:55 hehe Jul 10 22:15:21 ironhalik i solved this problem with rxjava combineLatest :D Jul 10 22:16:41 yeah, Ive been meaning to read up on rxjava :P Jul 10 22:17:22 when you have n events, and you need to wait for all of them before you can do some work, combineLatest works great Jul 10 22:17:27 Afzal, so change compile 'com.android.support:support-v4:+' to compile 'com.android.support:support-v4:20.0.+' Jul 10 22:17:43 why don't you try that Jul 10 22:17:44 ? Jul 10 22:18:15 Ha! I think I've got it. I've called invalidateOptionsMenu of the underlying activity in fragments onCreate Jul 10 22:18:20 suckit, Android Jul 10 22:18:23 just dubble checking :) i wasent shure im still new to android studeo Jul 10 22:18:36 * edwardthefma hates gradel projects Jul 10 22:19:11 i need to determine whether or not a link has been clicked in my textview, so i subclassed LinkMovementMethod to and overrode onTouchEvent to see if the user is hitting a link. however, this doesn't work for some devices, including the htc evo design 4g. does anyone know what might be the problem? Jul 10 22:19:34 ironhalik thats terrible :| Jul 10 22:20:33 edwardthefma, best way is just to try it :) Jul 10 22:20:42 g00s: yeah, it feels dirty Jul 10 22:21:02 Afzal, it worked Jul 10 22:21:10 edwardthefma, I know :p Jul 10 22:21:41 then it crashed Jul 10 22:21:49 burnnnn :) Jul 10 22:23:09 g00s, any ideas? i could also get the spans in my textview subclass's onClick, but i'm not sure how Jul 10 22:25:22 edwardthefma, lol that's a problem in your code, not the build file :p Jul 10 22:26:52 its a problem with the code google provided Jul 10 22:27:27 damm thos f$#%#$%#$ experamentel projects Jul 10 22:30:44 https://gist.github.com/anonymous/40bbd4cfdaa15d934549 thare is the gist if you wana see Jul 10 22:33:39 weee netsplit Jul 10 22:49:29 JakeWharton ObjectGraph.create().plus(new FooModule()) ~= ObjectGraph.create(new FooModule())? Jul 10 22:49:40 correct Jul 10 22:49:44 wait Jul 10 22:49:45 wtf is ~= Jul 10 22:49:53 somewhat-equals-to heh Jul 10 22:49:57 no Jul 10 22:50:11 you were thinking != ? Jul 10 22:50:27 i'm wondering if i create a blank graph and plus to it, if that'd be the same as creating the graph with that module in the first place Jul 10 22:50:37 in terms of injecting objects with each resulting graph Jul 10 22:50:46 kind of except your @Singletons are now scoped to a child graph, not the root graph Jul 10 22:51:06 hmm, ok. i figured there'd be caveats like that Jul 10 22:51:08 assuming you do nothing else then yes they're effectively equal Jul 10 22:51:40 each child graph is a unique instance, right? ie if i do that plus() call in two diff locations, those locations will then inject diff @Singletons? Jul 10 22:52:23 yes Jul 10 22:52:45 ok, thx Jul 10 22:54:07 tophyr: https://speakerdeck.com/jakewharton/android-apps-with-dagger-devoxx-2013?slide=111 Jul 10 22:55:41 lol Jul 10 22:55:46 ... jesus, 199 slides Jul 10 22:55:59 the talk was an hour Jul 10 22:56:05 and i don't mess around with high-level shit Jul 10 22:59:32 nice Jul 10 22:59:54 i was actually just looking at your slides from "Testing. Just Do it" but was wishing there was a vid or at least audio of the talk Jul 10 23:00:30 tophyr, can you link to those slides? Jul 10 23:00:40 same link as above Jul 10 23:00:40 https://speakerdeck.com/jakewharton/android-testing Jul 10 23:00:48 I've been curious about testing on Android, beyond data types Jul 10 23:00:53 thanks! Jul 10 23:01:38 i've done a *lot* of functional/instrumentation testing but i'm just now finally starting to get into true unit testing with mockito + dagger Jul 10 23:01:58 wishing i'd done it a long time ago Jul 10 23:02:14 tophyr: yeah that was mostly a speaking presentation rather than a slides presentation Jul 10 23:05:34 howdy folks. I created a new project in eclipse, but no source was generated (src folder is empty). Any ideas? Jul 10 23:06:08 write some code Jul 10 23:06:47 wabz: but in the previous version it automaticaly generated some default code. Is this no longer the case? Jul 10 23:07:08 yeah it probably should, did you choose a template? Jul 10 23:07:49 wabz: yes, and it created the project but just no code. Jul 10 23:15:57 add a Log.d() line and see what expands? Jul 10 23:16:53 save/all/as? Jul 10 23:17:49 capella-s3 - for me? Jul 10 23:18:26 * capella-s3 slinging suggestions Jul 10 23:20:06 can someone help me fixthis error Jul 10 23:20:09 https://gist.github.com/anonymous/40bbd4cfdaa15d934549 Jul 10 23:20:10 not really sure what you've got going on there but could see where the IDE might generate an executable from an unmodified template but no code until you modify or save it as a unique instance Jul 10 23:21:36 that might be the most unhelpful/weird thing anyone has ever said Jul 10 23:22:12 wabz: afraid I must agree Jul 10 23:22:32 sounds like a bug, happens every time? Jul 10 23:22:41 might be time to migrate to android studio ;) Jul 10 23:22:59 JakeWharton got another q for you. i'm trying to inject a ContentProvider, which is apparently onCreate'ed before my Application (where i create the obj graph). i thus can't call graph().inject() in the CP's onCreate - do you have a way to get around that? Jul 10 23:23:19 i'm currently imagining just setting a boolean flag and if (!injected) { inject() }.. but that seems pretty hacky Jul 10 23:24:05 lazily init the object graph in a static method Jul 10 23:24:09 wabz: seems so Jul 10 23:24:09 first person to request it creates it Jul 10 23:24:50 i would do that except that the modules depend on the app context, so Application.onCreate seems the most logical place to house graph creation Jul 10 23:26:12 why weird? still makes remote sense ... maybe I didnt convey it properly ... or misunderstood in the first case Jul 10 23:26:18 or is that a smell? the modules do things like provideAccountManager() { return AccountManager.get(mContext); } etc Jul 10 23:27:42 tophyr: you can have a subset of the graph for the content provider and then .plus() on the application context-aware stuff when it's around Jul 10 23:29:44 Hi there! I'm having a problem which I'm clueless how to solve. Would someone be kind enough to see the error please? I would appreciate it very much. http://pastebin.com/raw.php?i=Wdp8mZAH Jul 10 23:30:22 I'm using the latest version of Android Studio if it helps Jul 10 23:31:05 also can't do that, frustratingly the only thing i'm injecting into the CP is a Lazy heh. i think doing a sync method to wrap if(!injected) inject() is the only thing here for me i guess Jul 10 23:35:31 the robolectric irc channel is empty, anyone have experience that might be able to help me real quick? Jul 10 23:36:02 or that i can bounce a question off of Jul 10 23:36:19 heater89 just ask, if someone can help they will reply Jul 10 23:36:54 well i have build a notification that has actions attached to the notification. i get a null pointer exception on RemoteViews.configureRemoteViewsAsChild Jul 10 23:37:32 jug6ernaut, can you take a look at this if you have a minute? http://pastebin.com/raw.php?i=Wdp8mZAH Jul 10 23:37:40 looking through their documentation it sounds like adding actions to the notification is what is causing this npe. is there a good way that i can still test this notification without having to modify the actual code to omit the actions Jul 10 23:39:36 I just compiled my first android APK for a project from somebody else.. I want to test this on my phone, so I do adb install package.apk, but I get a Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] error... Now, I have two questions: A) Is it possible to get any APK installed without signing? And B), can I test sign just so I have something I can quickly test? kinda like self signed SSL signatures for HTTPS? Jul 10 23:41:44 the default signing is with the debug cert, that will install onto any device, but you have to tick the box that says "install from unknown locations" Jul 10 23:42:00 when you create your own certificate for google play then yes, you create and sign yourself Jul 10 23:47:26 if there is an app called "English Test" and I call mine "Professional English Test" is there a conflict of copyright or terms? Jul 10 23:47:44 probably not because there are actually 2 different ones called English Test... I just wanted to make sure Jul 10 23:49:39 njcomsec: we've already discussed this at length.. :p Jul 10 23:50:15 ok ill try not to worry anymore Jul 10 23:51:35 IANAL, but I would be surprised if something as descriptive and generic as "English Test" is/could be copyrighted Jul 10 23:52:02 or rather, trademarked Jul 10 23:52:07 yeh true Jul 10 23:52:51 well I read all the google TOS and it didnt say anything about simiar names, other than copyright Jul 10 23:52:56 so I will go with it Jul 10 23:53:45 I will have a cigartte and then start coding! im excited Jul 10 23:54:08 http://www.cheesebrother.com/wp-content/uploads/2014/05/cigarette-keyboard.jpg Jul 10 23:54:10 will File.getAbsolutePath() returns the file name and the path? Jul 10 23:54:24 how can i return name and path all one shot? Jul 10 23:54:44 get. getAbsolutePath() will return the full path and name Jul 10 23:54:59 thank you Jul 10 23:58:00 ugh, getPickFirsts doesn't work for ndk libraries :-/ Jul 10 23:58:11 * pfn_ kicks builder Jul 11 00:02:33 https://code.google.com/p/android/issues/detail?id=73437 Jul 11 00:02:36 fix0rs it please Jul 11 00:14:21 Just curious as I was writing an app, in this code: http://hastebin.com/uqumunuzej.vala Jul 11 00:14:39 which method in OnDataReceivedListener would be called? Jul 11 00:15:04 Why this doesn't work? http://pastebin.com/raw.php?i=Wdp8mZAH Jul 11 00:15:22 because the actual listener would have to implement both, right, so will both be called or only one of them? Jul 11 00:15:28 g00s: where's that bot when you need it .... Jul 11 00:16:23 hi. Jul 11 00:16:27 Webflashing, well clearly your awesome studio doesn't know that MainFragment is not being derived from the support Fragment class Jul 11 00:16:53 Does a service have to remove it's own status notification in onDestroy? Jul 11 00:17:28 I was thinking my service was still running, but onDestroy does get called. But I did not expect the notification to still be there Jul 11 00:17:42 But perhaps I need to remove it myself? Jul 11 00:18:11 Afzal, what does that mean? If I remove the import android.support.v4.app.FragmentActivity; it stops working, so it leds me to believe that it is being derived from? Jul 11 00:18:38 Webflashing, look into MainFragment class and see if the support Fragment class is being used Jul 11 00:19:49 Afzal, oh, it was being derived from the android.fragment instead of the support one Jul 11 00:20:12 yep, that's what that error message told you essentially Jul 11 00:20:44 thank you very much, I've been struggling with this for quite some hours Jul 11 00:20:51 Still new at it Jul 11 00:21:36 I've been googling but nothing really talks about any special handling for the status bar notification for the service Jul 11 00:27:29 so if i have a singleton, i need to declare it as volatile as per this thread: http://stackoverflow.com/questions/11165852/java-singleton-and-synchronization Jul 11 00:27:47 does that mean that i need to declare all of the instance variables of the singleton as volatile as well? Jul 11 00:28:09 if there some way to sync preferences between the mobile and wear apps? Jul 11 00:28:25 or do we have to do that manually? Jul 11 00:45:33 Why can't I call view.findViewById(R.id.authButton) from a class extending support.v4 Fragment? Jul 11 00:47:11 oh nvm Jul 11 00:48:39 what are some good reasons to make an argument not to support API Level 10? I was having trouble coming up with solid ones because the support libraries offer most of what you'd lose. only thing I could think of was having to do some hacky things sometimes with styles, nothing major Jul 11 00:49:02 too old? Only 15% market? Jul 11 00:49:26 13.5% according to dash Jul 11 00:49:32 webflashing yeah, but that is 15 percent of the market that wouldnt be able to use it. its like, if there isnt a good reason why not Jul 11 00:49:35 exactly Jul 11 00:49:45 lol my minimum api is 16 Jul 11 00:49:51 Well, as the dashboard suggests, every month that % decreases. Jul 11 00:50:03 My minimum api is usually 14 Jul 11 00:50:04 yes exactly Jul 11 00:50:17 as older devices also tend to have smaller screens Jul 11 00:50:38 And my apps dont support 320x240, so I decided to use api 14 from now on Jul 11 00:51:22 but again, why not support it if the support libraries backport all the important stuff? Jul 11 00:51:38 just less stuff to worry about Jul 11 00:52:00 Because... idk, no. I can't give you a good reason, it just seems old. And in certain cases, UI breaks if the screen is too small. Jul 11 00:52:02 ^ Jul 11 00:55:58 mattblang is this for a new app? how long would it take you to write it? what is your geographical market? Jul 11 00:57:37 so, with android 5 or L or whatever coming out say by Nov, you will have to deal with 3 major versions of android. why bother. 2 is enough hassle (4 and 5) Jul 11 00:57:56 what does this file do? app/src/androidTest/java/package//ApplicationTest.java Jul 11 00:58:24 well Jul 11 00:58:28 thats a file name Jul 11 00:58:35 mattblang also, support libraries don't backport all the important stuff Jul 11 00:59:00 yes my question is what does the file with that name do Jul 11 00:59:31 my main code fils are in app/src/main/java/package// Jul 11 01:02:49 Does anyone know what intent I need to check for an incoming call on Wear devices? Jul 11 01:03:00 I'm trying with PHONE_STATE but nothing Jul 11 01:08:50 this BT LE Gimbal / iBeacon bug still isn't fixed in 4.4.4 uggh! Jul 11 01:10:47 g00s and "L" Jul 11 01:11:41 jug6ernaut you are seeing this in L ? https://code.google.com/p/android/issues/detail?id=67272 Jul 11 01:11:52 i haven't tried L yet Jul 11 01:12:00 g00s i don't have L anymore :( Jul 11 01:12:46 once we are together but alas it was not meant to be. Jul 11 01:13:00 hehe Jul 11 01:16:42 Does anyone know where I put the Wireless Universal Resource File: http://sourceforge.net/projects/wurfl/?source=dlp Jul 11 01:17:02 Also, is there a way to view this file on Debian Linux Stable. I don't find it in the repos. Jul 11 01:20:14 am i in the wrong channel again ? Jul 11 01:20:26 possibly Jul 11 01:21:48 when i start android sdk in ubutu i get this error. can sdby help? (Android SDK Manager:3901): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed Jul 11 01:22:34 how do u start the sdk Jul 11 01:23:59 on ubuntu command line with: sudo /.android Jul 11 01:24:32 the sdk open. i can open the avd but the error i get appears on the Ubuntu terminal Jul 11 01:25:19 sudo? :S Jul 11 01:25:47 heh... sudo all the things Jul 11 01:27:17 yes i tried with sudo infront but still same error Jul 11 01:40:40 if my application is downloaded from the market place will it automatically have the feauture of sending a crash report or do i need to build code into the app to handle this? Jul 11 02:26:19 Guys, i try to understand the concept of dip, sp, and others, from what i read, dip=dp and they are pixel dependant, i made an app with all dp, however the layout is different on every device, what do i use for the same layout on several devices? basically i need the same visual layout on every device, doesnt matter the resolution Jul 11 02:27:57 is there a way to change the max freqeuncy of a core thats offline? Jul 11 02:32:56 wasn't the runtime annotation issue fixed in a certain version of Android? Jul 11 02:40:55 If I have a lat/long and I wanna share it with friends and such how would I do that Jul 11 02:41:32 I know it would be the intents but not sure how I would exactly how Jul 11 02:51:57 ProjectBarks so you want to just send them a message with the lat lon in it? Jul 11 02:52:25 Well I am having some issues trying to find this info on google Jul 11 02:52:56 ProjectBarks so you want to be able to share the lat lon in a message right? Jul 11 02:53:14 I want to beable to: Share a url so that you can see the venues location. I also wanna beable to share a location and choose the platfomr Jul 11 02:53:23 Any widgets make a nice cross between a nav drawer and a slidingpane layout? (A "navigation" menu that leaves a bit of itself on the screen to be dragged and can be used from within a fragment) Jul 11 02:53:47 Like right now I have a intent to open a url but I want them to beable to choose : Google Chrome, FireFox and ect Jul 11 02:54:16 ProjectBarks: If the URL is a google maps URL, it should prompt for browsers and maps as well. Jul 11 02:54:37 ^ Jul 11 02:54:38 Could you do an example with an intent Jul 11 02:56:19 ProjectBarks: http://stackoverflow.com/questions/2660201/what-parameters-should-i-use-in-a-google-maps-url-to-go-to-a-lat-lon Jul 11 02:56:24 ^ Gives the URL format Jul 11 02:56:24 Does html 5 have something built in, that will work as a replacement for a Wireless Universal Resource locator:http://sourceforge.net/projects/wurfl/?source=dlpe File, for detcti Jul 11 02:57:11 The WURF is for detecting Android devices, so that your server knows which CSS to use. Jul 11 02:57:39 And a simple URL sharing Intent will cause the right thing to happen -- google maps will put itself in the list because the URL matches it's domain. Jul 11 02:57:55 (As will any other application accepting a URL of that format) **** ENDING LOGGING AT Fri Jul 11 02:59:58 2014