**** BEGIN LOGGING AT Fri Jul 19 02:59:58 2013 Jul 19 03:08:42 you mean less limitations than java? Jul 19 03:09:32 I had an app with just one broadcast receiver and no activity. Then in another app I sent a broadcastreceiver. It worked one time but now it stopped working no idea why Jul 19 03:13:33 Hi! Is there any variant of the java language that can be compiled into android? (some JVM language)? Something would lamba functions would be awesome.... Jul 19 03:14:53 gavilan2: uhm... android is primarily written in java and all the APIs are in java. Jul 19 03:14:58 so... yes? Jul 19 03:15:46 unless you mean "not java java" in which case, not really Jul 19 03:16:28 dragorn, have you ever done android development in Scala ? Jul 19 03:16:42 nocturne7: nope Jul 19 03:17:12 In android, can I get the currently logged in user Jul 19 03:17:20 dragorn, I think Scala should work fine Jul 19 03:17:25 since it's another JVM language Jul 19 03:17:55 remember dalvik isn't really a JVM Jul 19 03:20:14 dragorn: I know there are some dynamic languages that compile to the JVM... Jul 19 03:20:26 http://bit.ly/1224bPO Jul 19 03:20:28 but android uses the dalvink vm or osmething like that, that is a little more restricted.... Jul 19 03:20:34 man I'd give a lot to use just about any non jvm language Jul 19 03:20:40 and really be able to have some freedom with it Jul 19 03:21:16 ron_frown: You can always install the VM of your choice, as long as it's written in C++ :) Jul 19 03:21:38 I odnt know what google is gonna do Jul 19 03:21:53 I'm hoping 4.3 / 5.0 makes HUGE progress with dalvik Jul 19 03:22:31 javas not the only thing making android require like 2x the horsepower of any othr mobile os Jul 19 03:23:08 got a wp8 phone at work, and while it doesnt do much for me, battery is way way better than any android stuff Jul 19 03:23:28 ron_frown, perhaps because it's not doing much for you Jul 19 03:23:35 lol Jul 19 03:23:54 I meant I dont care for ui and shit Jul 19 03:24:14 hey ron_frown Jul 19 03:24:22 g00s whats up bizzo Jul 19 03:24:27 heh Jul 19 03:24:46 i'm porting my app to iOS Jul 19 03:24:54 and doing small updates to the android version Jul 19 03:25:03 sweet Jul 19 03:25:07 any bites Jul 19 03:25:26 maybe, still waiting, it might be used in a project called citi-sense Jul 19 03:25:38 sweet Jul 19 03:25:45 then you can fix your internet situation Jul 19 03:26:01 oh, we have internet atm. for a little anyhow Jul 19 03:26:54 library was so unreliable Jul 19 03:28:03 ron_frown what have you been working on ? Jul 19 03:28:14 shit Jul 19 03:28:15 nocturne7, scala on android is nice Jul 19 03:28:16 not mcuh Jul 19 03:28:19 bitching about android Jul 19 03:28:25 still dinking with my own custom os Jul 19 03:28:32 ronOs Jul 19 03:28:37 or frownOs Jul 19 03:28:38 g00s, just curious - what's your app? Jul 19 03:28:39 just be careful about going fully fp and killing gc Jul 19 03:29:30 fully fp Jul 19 03:29:45 ? Jul 19 03:29:54 fully ***king pisser Jul 19 03:32:38 I'm not really sure how to phrase this question - But I'm importing Jeremy feinstein's 'SlidingMenu' (Which references ABS), and I'm getting a 'SampleListFragment cannot be resolved to a type'. I can't find any imports that my activity is missing that the example has. Jul 19 03:32:47 Anyone run into something similar? Jul 19 03:35:10 tjbiddle isn't that in the support lib nowadays ? Jul 19 03:35:57 g00s: I need 2.3 support - When I started doing things natively it said I needed API level 11. Jul 19 03:36:21 But honestly, I haven't done Android dev in like a year so I'm out of the loop anyways. Jul 19 03:36:51 and then there is supposed to be that google actionbar, LOLOLOL Jul 19 03:37:17 g00s: Again, doesn't work on 2.3, correct? Jul 19 03:38:15 the support lib drwer should Jul 19 03:38:34 *sliding drawer Jul 19 03:38:42 ron_frown, functional programming Jul 19 03:39:25 ? Jul 19 03:39:32 oh Jul 19 03:39:34 f# Jul 19 03:39:38 slow slow Jul 19 03:39:40 since you're .net guy Jul 19 03:39:51 I know what functional is Jul 19 03:40:06 just didnt know what pfn was referring to Jul 19 03:40:10 immutability and referential transparency are core tenets Jul 19 03:40:57 but at the end of the day, it all has to go into a Bundle anyhow Jul 19 03:41:58 Bundles all the way down Jul 19 03:42:53 just use abs until Google puts out their own... Jul 19 03:43:25 i'm not holding my breath Jul 19 03:45:12 right, that's why use abs Jul 19 03:45:23 it's not like it's a huge investment Jul 19 03:45:54 what's abs ? Jul 19 03:46:01 it's like transitioning from framework fragments to the support lib Jul 19 03:46:16 actionbarsherlock Jul 19 03:46:46 so, if i want to leave my old app up for users up to 2.3 and then have a new version for ics+, i would use multi-apk support for that right ? Jul 19 03:46:59 sure Jul 19 03:47:14 so the old app, would i have to change the manifest to say maxSdk = 9 or something ? Jul 19 03:47:29 or use actionbarsherlock Jul 19 03:47:50 while doing android development, for testing purposes, is it a good idea to have the latest version of android OS on the phone ? Jul 19 03:47:54 and lots of conditional code Jul 19 03:47:58 nah Jul 19 03:48:06 minSdk=15 Jul 19 03:49:15 Is there any good library to send crash reports/error reports/analytics/logs from an android app? to a server? Jul 19 03:49:23 lots of them Jul 19 03:49:31 I should resurrect my bluetooth keyguard app Jul 19 03:49:32 crittercism is one, but its a pais service Jul 19 03:49:41 acra, others Jul 19 03:49:45 g00s: free ones? for comercial use? Jul 19 03:49:49 what are the best ones? Jul 19 03:49:59 Acra, zubhium, test flight, crittercisms Jul 19 03:50:10 Is there a developr option to show frame rates? Jul 19 03:50:14 are among many Jul 19 03:50:38 oh, no idea atm. when a user i hear good things about crittercism Jul 19 03:50:40 pfn: thx! Jul 19 03:50:42 oops Jul 19 03:50:47 half sentence mangled Jul 19 03:51:11 gavilan2: use Crashlytics. Jul 19 03:51:16 I've used all of them, crittercisms is pretty nice Jul 19 03:51:17 it's free and very good Jul 19 03:51:23 so is test flight Jul 19 03:53:02 I think I'll start hacking on qicr again soon Jul 19 03:53:11 gonna open source it, too Jul 19 03:53:19 thx guyhs Jul 19 03:53:49 i have a library that i wrote myself that uses mqtt to log stuff to a mosquitto broker. cool thing is that i can also remotely control my app through the same library for a few people that had issues Jul 19 03:54:25 the eventbus i use now is hooked into the mqtt backend Jul 19 03:54:33 I should further develop recontrolr, too Jul 19 03:55:52 pfn did you use rhino for the scripting support ? Jul 19 03:56:00 yes Jul 19 03:56:12 cool Jul 19 03:56:20 recontrolr is written in scala and embeds rhino Jul 19 03:56:41 how is the rhino performance ? Jul 19 03:57:09 reasonable, depends on what you're doing Jul 19 03:57:31 most small scripts run decently fast Jul 19 03:59:51 probably gonna embed rhino in qicr, too Jul 19 04:02:04 I need to put together a scripting api Jul 19 04:03:18 you already tried rhino, what about giving lua a try this time? something different Jul 19 04:03:31 Anybody know how to get a dump of a JSONObject? Jul 19 04:03:51 .tostring? Jul 19 04:03:55 lol Jul 19 04:04:25 it sounds like going with java may prove to be less headachey even though I'd rather use scala Jul 19 04:06:32 lua doesn't embed easily and integrate well Jul 19 04:06:37 heya Jul 19 04:06:46 lots of jni bridging to make it work Jul 19 04:06:51 ron_frown: Not finding it.. Found stringify, But that goes the wrong way. Jul 19 04:07:10 nocturne7, not so many headaches to use scala Jul 19 04:07:23 -.- Why is the solution to half of my Android/Eclipse problems to delete something, add it again, and then clean the project or some other variation of that? Jul 19 04:07:47 heh Jul 19 04:08:01 out of curiosity, how long have some of you been developing for? Jul 19 04:08:16 too long Jul 19 04:08:17 considering really diving into the development side :) Jul 19 04:08:20 nocturne7, use my sbt plug in and sbt-idea and intellij Jul 19 04:08:27 nocturne7, seamless Jul 19 04:08:40 * Bleeptech started developing in the late '70's.. Jul 19 04:08:42 heh Jul 19 04:09:01 But then digital took over and film is pretty much dead.. LOL. Jul 19 04:09:05 and my plug in takes all of 1 line to configure, unlike the alternative Jul 19 04:09:11 interesting.. i'm looking to be properly introduced into the developing world, really my goal is simple.. Jul 19 04:09:31 being able to know what it takes to translate a concept from idea to product Jul 19 04:09:49 tjbiddle, cleaning is about the only really necessary step Jul 19 04:09:51 really just build a requirement list.. example: what it takes to make x game (from the physics eng required, etc etc) Jul 19 04:09:58 pfn, what's your sbt plugin ? Jul 19 04:10:31 pfn look at luaj Jul 19 04:10:41 any recommendations? Jul 19 04:10:44 pfn: I was planning to work in a similar development environment as you suggested Jul 19 04:11:05 I thought it was '10% Inspiration, 40% Perspiration and 50% Fornication because something will F-up somewhere.. LOL.. Jul 19 04:12:04 Crap.. Wrong button.. Jul 19 04:12:18 nocturne7, github.com/pfn/android-sdk-plugin Jul 19 04:12:29 anyone? :/ Jul 19 04:14:37 pfn, I will try to use that plugin Jul 19 04:14:40 start smaller Jul 19 04:15:49 I have not done any development on android yet. I am wondering if I start with Java, would I have a better understanding of the the platform ? . I know both java and scala. Jul 19 04:15:55 pfn, what do you mean ? Jul 19 04:16:07 to justdl_ Jul 19 04:16:16 * pfn & Jul 19 04:16:20 huh? Jul 19 04:16:22 im a bit confused here Jul 19 04:16:28 are you saying to start smaller? Jul 19 04:17:07 i'm looking to be properly introduced into the developing world, really my goal is simple.. i'd to know what it takes to translate a concept from idea to product. really just build a requirement list.. example: what it takes to make x game (from the physics eng required, etc etc) Jul 19 04:22:34 justdl_: you're asking for a complete education in software and product engineering Jul 19 04:22:54 heh Jul 19 04:22:57 fair enough Jul 19 04:23:19 was looking around xda-developers as a dev resource, its just a bit disorganized imo Jul 19 04:23:31 there is so much info out there its hard knowing where to begin exactly etc Jul 19 04:23:46 it's not a dev resource at all Jul 19 04:24:03 do you know anything? Jul 19 04:24:10 I mean, are you completely starting from scratch? Jul 19 04:24:34 basically Jul 19 04:24:45 im essentially starting from scratch Jul 19 04:25:08 i know a bit of html here and there etc, played a bit with css etc Jul 19 04:25:29 but thats why i say its better to have a "big picture" view of what the development process really looks like from start to finish Jul 19 04:25:56 raw, unadulterated pain Jul 19 04:27:05 https://www.khanacademy.org/cs/tutorials/programming-basics Jul 19 04:27:40 yeah Jul 19 04:27:41 heh Jul 19 04:27:48 im really looking for a solid beginners guide etc for ios/android Jul 19 04:28:47 if you don't know how to code at all, you need to start with the basics - more basic than ios/android Jul 19 04:28:59 thank god for the ADT debugger Jul 19 04:29:05 but anyway, this is not the place Jul 19 04:30:42 justdl_ there are some iTunes U classes from stanford on iOS programming; not sure what level they expect you to be at though Jul 19 04:31:31 not sure if there is anything like that for android that is free and goes from a-z in that form of media Jul 19 04:33:08 if you know html & css, maybe the firefox os would be a logical next step Jul 19 04:33:14 learn some js Jul 19 04:33:16 it is Jul 19 04:33:20 FFOS is cool for web devs Jul 19 04:33:23 very easy to develop for Jul 19 04:34:09 FFOS? what's this? I've never heard of it Jul 19 04:34:35 justdl_: do you know about variables, loops, objects, methods, classes, data structures? Jul 19 04:34:41 no Jul 19 04:34:49 leeds - my coding knowledge is very limited Jul 19 04:35:01 then you need to learn basic programming before you can learn to actually *do* anything on any platform Jul 19 04:35:04 right Jul 19 04:35:11 there should be intro to programming courses on coursera or whatever that start in js Jul 19 04:35:53 that is step 0 on a path when step 70 results in an actual shippable product Jul 19 04:36:40 if you were planning to do everything yourself, you also need graphics work, marketing, etc. Jul 19 04:36:40 hesperaux_, Firefox OS, sorta it's a JavaScript-baed mobile OS Jul 19 04:36:47 justdl_, if i may, i'd recommend starting with a non-compiled language. JS would qualify, but if you want to do something in an OS, you could try perl Jul 19 04:36:56 g00s, Codecademy has awesome courses on JS Jul 19 04:36:59 narekb, huh. interesting Jul 19 04:37:13 narekb oh, maybe that is what i was thinking of. thanks for the correction Jul 19 04:37:16 i've done a few basic courses on html via codeacademy Jul 19 04:37:17 hesperaux_: really, do *not* recommend perl Jul 19 04:37:42 Leeds, because it's typeless? That's a good point Jul 19 04:37:55 if you're going in that direction, it's got to be python Jul 19 04:38:08 * hesperaux_ loves perl Jul 19 04:38:10 or JS :D Jul 19 04:38:15 * narekb loves JS Jul 19 04:38:24 nobody really loves JS do they? Jul 19 04:38:26 JS is slightly different, but yeah - much better than perl Jul 19 04:41:43 justdl_ ignore the c++ part http://www.forbes.com/sites/quora/2013/07/08/what-does-it-take-to-be-an-expert-in-computer-programming/ Jul 19 04:42:27 g00s, i clicked your link and an add came up about identity theft: "It'll never happen to me." I thought it was talking about being an expert programmer and I was going to agree. Jul 19 04:44:28 i use adblock, no idea Jul 19 04:44:47 g00s - thanks for the link Jul 19 04:44:59 just wanted to point out, my math skills are extremely limited. i was never a good student in school Jul 19 04:45:20 math anxiety is common Jul 19 04:45:22 don't worry Jul 19 04:45:51 http://www.kilobolt.com/day-1-setting-up.html Jul 19 04:45:52 any thoughts on t hat? Jul 19 04:45:56 heh.. i'm an hs dropout Jul 19 04:45:59 never passed alg1 Jul 19 04:46:00 :/ Jul 19 04:46:07 my worst class in college was stats. every time i asked the prof how we was doing he said "well, i'm still here" Jul 19 04:46:16 he was so bad, i think even he expected them to shitcan him Jul 19 04:46:25 right now, i'm going back to learn stats Jul 19 04:46:48 I learned statistics on ai-class Jul 19 04:46:54 never learned it at college also Jul 19 04:48:47 i'm using hastie's new book Jul 19 04:48:56 the one for idiots basically Jul 19 04:49:16 http://www.amazon.com/Introduction-Statistical-Learning-Applications-Statistics/dp/1461471370 Jul 19 05:05:54 if your math skills are bad just get one of those schums 1000 math problems explained, and work through khanacademy math subset Jul 19 05:06:05 hmm Jul 19 05:06:11 how important are math skills when it comes to coding? Jul 19 05:06:42 depends what you're doing, if it's 3d then very important Jul 19 05:06:47 math is ultimatly coding Jul 19 05:07:36 heh Jul 19 05:07:36 well Jul 19 05:07:41 math on a high level.. say calc etc Jul 19 05:07:46 3d is important Jul 19 05:07:53 <--- wants to be an app developer Jul 19 05:07:54 lol Jul 19 05:08:12 for the most part you will need some idea of alegbra is just to understand cartesian coordinates Jul 19 05:08:13 a good start would be learning how to use a carriage return properly Jul 19 05:08:26 hehe Jul 19 05:08:57 justdl_ if you really want to start from first principles, maybe pick up HTdP Jul 19 05:09:00 its free Jul 19 05:09:12 you can probably use the free racket interpreter Jul 19 05:09:23 heh Jul 19 05:10:05 underneath a lot of math and a lot of coding is just being able to recognize equivalent relationships that are one to one Jul 19 05:10:10 http://www.kilobolt.com/day-1-setting-up.html Jul 19 05:10:27 because if you can frame a problem from another angle, it may make the answer easier to see Jul 19 05:10:37 hows something simple like that tutorial to start with? Jul 19 05:10:52 i think a bigger predictor of whether you will be a good programmer is your innate working capacity (WC) Jul 19 05:11:27 well.. i can say that a friend of mine went to mit, he is no programmer by any means Jul 19 05:11:29 so its all relative Jul 19 05:11:48 aka Working Memory Jul 19 05:11:55 you have to be able to fit the pieces in your head Jul 19 05:12:27 but of course. .ive sat in math class and struggled like hell Jul 19 05:12:35 yeah Jul 19 05:12:38 part of my problem Jul 19 05:12:40 i have 0 working memory Jul 19 05:12:59 zero now Jul 19 05:13:17 lol Jul 19 05:13:32 think it played a large role in my math failure Jul 19 05:13:32 one of the reasons i enjoy programming is because it enables me to implement math Jul 19 05:13:33 heh, weed has negative effects on working memory Jul 19 05:13:38 well Jul 19 05:13:40 its not weed Jul 19 05:13:42 its just me Jul 19 05:13:51 justdl_ oh, wasn't accusing. Jul 19 05:13:55 but when it comes to critical thinking etc, i generally fair pretty well etc Jul 19 05:13:57 g00s that's just a stereotype :) Jul 19 05:13:58 just remembered that tidbit Jul 19 05:14:14 so thats a big thing Jul 19 05:14:19 maybe my role isnt of a developer Jul 19 05:14:36 but rather to understand the basics and be somewhat of an architect so to speak Jul 19 05:14:37 dunno Jul 19 05:14:45 just for my own personal projects of course Jul 19 05:14:50 justdl_ if you really want to do it the best way is to code all the time, whatever abilities you have will develop and you will become a better and better developer the more time you actually code and learn to figure out problems Jul 19 05:15:06 i think the best architects are good programmers Jul 19 05:15:06 lasserix - makes sense Jul 19 05:15:10 haha Jul 19 05:15:11 yeah Jul 19 05:15:11 definitely Jul 19 05:15:32 even if you are aiming for a mangerial arbitrator position, knowing how what's going on works will help a lot Jul 19 05:16:07 espicially since the worst that can happen is the program will crash Jul 19 05:19:13 i think the reality is that far more useful than aptitude is interpretation, pending the capacity is there, so who is to say where you will end up on the competence balance Jul 19 05:19:41 (as long as you get to know your material) Jul 19 05:26:38 makes sense Jul 19 05:27:55 solid comment lasserix Jul 19 05:32:46 be prepared to get frustrated from time to time, you might bookmark http://www.youtube.com/watch?v=WvRv-243Cmk for those occasions Jul 19 05:39:55 thanks for the help lasserix :) Jul 19 05:40:08 out of curiosity, what sort of work have you done so far? Jul 19 05:41:47 developed a few apps, the latest i halted due to the fact id need a server to realize, now just working on building a game engine and developing a wedapp of a specialized search engine Jul 19 05:42:05 *webapp Jul 19 05:43:19 thw rost part of programming is the simplest ideas turn out to be almost infinitly complex :) Jul 19 05:43:37 fair enough Jul 19 05:43:44 mind linking me to an example? :D Jul 19 05:44:35 just watched a video about the physics of driving and 3/4 of the way through the guy being interviewed pointed out modelling the preditction of how three billbard balls behave upon simaltenous collision is not only impossinle but something newton didn't even get into Jul 19 07:20:11 n-body problems don't deal with collissions Jul 19 07:21:41 but simulating and calculating the impact and behaviour afterwards to almost arbitrary precision is something every engineering or physics undergraduate learns Jul 19 07:25:49 how metro should game menus/UI be? Jul 19 07:25:57 *holo Jul 19 07:27:26 the more holos thr better Jul 19 07:27:54 first I read "how retro should game menus be" Jul 19 07:28:35 and I think arcade style retro would be awesome ^^ Jul 19 07:30:54 Sonicadvance1, what if 0 HOLO and all metro? Jul 19 09:09:25 Ha, in my never ending quest for a sensible java build system, I've examined gradle and maven, looked briefly into ant and am now strongly considering buildr. Anybody using buildr already (IDE users can look another way.. ;-)? Jul 19 09:10:26 I doubt there's alot of people wanting to torture themselves by developing Android apps without an IDE Jul 19 09:12:08 Yeah, well... Jul 19 09:12:37 Mavrik, is it really much of a torture? Jul 19 09:12:43 I never tried, that's why I am asking Jul 19 09:12:49 but Eclipse gets on my nerves, so... Jul 19 09:13:02 eh, there's just bunch of really verbose stuff Jul 19 09:13:21 from XML file structures, to alot of needed classes, methods, etc. do to more advanced stuff… IDE will write that crap out itseld Jul 19 09:13:37 if you're using things like Vim etc. you need to rely heavily on snippets and it's still annoying Jul 19 09:13:38 If you just stick to the basics (plain old java, nothing fancy in the build process), not using an IDE is simple. With Android Studio you're not using the IDEs build environment anyway, you're using gradle. Jul 19 09:13:43 especially when you start refactoring stuff Jul 19 09:15:06 Mavrik is right about one thing; most build systems for JVM based language sucks bigtime. Java and/or XML really does not make great languages for build systems. Jul 19 09:15:47 I develop without an IDE Jul 19 09:15:55 kjeldahl, maven is good. Jul 19 09:16:01 better than most stuff in other languages Jul 19 09:16:07 I did read there's something that allows automatic imports in emacs Jul 19 09:16:14 I'll have to look into that... Jul 19 09:16:19 has it's own quirks, but my experience shows it's about as reliable as it gets. Jul 19 09:16:46 Mavrik, maven has the same problem that gradle and ant has. If your lanuage/compiler does not already have a plugin (usually thousands of lines of source code), you can't use it. Jul 19 09:17:21 Build systems are supposed to make the process of adding more stuff _simple_. Jul 19 09:18:01 hmm, that's a wierd complaint. Jul 19 09:18:30 Ologn, heard good things about eclim… don't know if there's an emacs version of taht Jul 19 09:18:33 Ologn, is it hard? Jul 19 09:18:39 Not if you're trying to integrate another compiler to build mixed language projects. Jul 19 09:20:37 kjeldahl, the point of using a widely adopted build system is to minimize the time you spend dealing with it and maximize probability of actually someone supporting your use-case Jul 19 09:20:55 of course, that fails if you're doing something totally non-standard. Jul 19 09:21:02 Did anyone yet try to implement asynchronous ssl clients on android? Jul 19 09:21:16 Sure. Now try explaining why the gradle android plugin is incompatible with the java plugin and can not be used together. Jul 19 09:22:00 At least with maven, adding the android plugin does not kill anything you have using the standard java stuff. Jul 19 09:22:35 I don't see SSLSocketChannel or something similar, so wondering if I would have to implement this on my own Jul 19 09:23:21 narekb, things like Eclipse's control-shift-o not automatically adding import statements is the tough thing...but I read emacs might have some kind of thing with similar functionality, have not tried it yet Jul 19 09:23:39 Mavrik: But your point is very valid, if your use case is widely supported (in all potential build tools), it does not matter much which one you use. Jul 19 09:23:48 Ologn, hmm, interesting Jul 19 09:23:58 idk why eclipse is so slow Jul 19 09:24:01 it's good but really slow Jul 19 09:24:32 Ologn: Emacs has a package named "semantic" that offer source code completion, but not auto-imports afaik. Jul 19 09:24:50 kjeldahl, Gradle support for Android is alpha software. Don't user it. Jul 19 09:24:55 *use it Jul 19 09:25:45 ... which also means don't use Android Studio. I used Android Studio+Gradle for my first project (already in the Play Store). Works great, but then I got fancy... Jul 19 09:26:37 I needed to some relatively simple modifications to the existing build process, which is why I've been spooning with build systems for the last days. Jul 19 09:26:52 kjeldahl, um, why? Jul 19 09:27:04 IDEA (and by extension AndroidStudio) supports Ant, Maven and Gradle builds Jul 19 09:27:14 probably other things as well Jul 19 09:28:01 I needed to add support for a "not widely supported" JVM compiler, which also includes a small language runtime which can run code dynamically on the device (Kawa, a scheme variant). Jul 19 09:29:54 I'm shocked with how difficult most of these systems make it to do a relatively simple thing like "use kawac instead of javac for src/main/kawa", "and add the generated class files to the rest of the class files from java". Jul 19 09:30:38 I never liked Makefiles, but having to code build processes in java is not fun (which is what you need to do with both gradle and maven afaik). Jul 19 09:31:56 Why aren't the SDK tools for 4.0.4? What do I use? Jul 19 09:33:30 JoshuaP: Is there such a thing? Not in my "Android SDK manager"... Jul 19 09:34:09 Pantech Discover P9090 running Android 4.0.4 Jul 19 09:34:17 kjeldahl, yep, writing plugins for those build systems sucks Jul 19 09:34:58 just weigh the time you'd need to write a plugin vs. a time you'll need to fix your 3rd party build system for each new dependency Jul 19 09:34:58 JoshuaP: Well it seems Google has not released any SDK for it... Could be a vendor making up their own shit of course. Jul 19 09:35:29 JoshuaP, what are you talking about? SDK tools work with all android versions? Jul 19 09:35:45 Oh.. That would explain.. More than I expected... Jul 19 09:36:00 Mavrik: I'm not writing my own build system, I'm not that stubborn! Just need to find one that minimize the pain of adding support for what I need to do. Jul 19 09:37:44 So.. Should I flash it to a known Android version? Jul 19 09:37:54 wow I am reading about the actiobar Jul 19 09:38:02 is there something that piece can't do? Jul 19 09:38:11 JoshuaP, why? what are you trying to do? Jul 19 09:38:17 narekb, alot of things sadly :P Jul 19 09:38:41 such as? Jul 19 09:38:46 ok, it can't give you money Jul 19 09:38:47 :D Jul 19 09:38:57 but seriously, it's really powerful Jul 19 09:39:17 I can't get into my Android via the debug bridge Jul 19 09:40:10 narekb, if you want to do something Android devs didn't plan for it can get really cumbersome Jul 19 09:40:24 for example? Jul 19 09:40:35 what did you need to do with the actionbar, that was not planned Jul 19 09:40:36 like change the symbol for "up", add some graphics to it, put buttons in different places, etc. Jul 19 09:40:36 ? Jul 19 09:40:41 hmmmm Jul 19 09:40:51 or stick tabs up there ;) Jul 19 09:40:57 wait you can stick tabs Jul 19 09:41:05 JoshuaP, adb devices shows the device? Jul 19 09:41:17 the purpose of the action bar is to provide a consistent user experience though, too much costumization would defeat that purpose ;) Jul 19 09:42:11 Mavrik: http://screencloud.net/v/8aG0 Jul 19 09:42:38 aah... Windows :) Jul 19 09:42:52 JoshuaP, yes, that has nothing to do with SDK Jul 19 09:42:58 install drivers for your phone on Windows Jul 19 09:43:02 or use Linux/OS X Jul 19 09:43:04 Hi, I get problem when using GLSurfaceView. I draw line though 3 points, in order A, B, C. But I find it actually display like drawing in other order, like A C B. Jul 19 09:43:25 But when I get the pixel from GLSurfaceVIew, I get the right bitmap... Jul 19 09:43:33 Ah. Jul 19 09:43:34 git, and eclipse... should I even? Jul 19 09:43:45 Well.. is there a good source for drivers? Jul 19 09:44:43 JoshuaP, your manufacturer. Jul 19 09:45:10 JoshuaP, this might work as well: http://en.miui.com/thread-3030-1-1.html Jul 19 09:46:18 Since I'm in ranting mode anyway, in addition to the XML madness, it makes adding and using jars in your own projects a PITA. Forcing people to use a local repo seems like a really bad idea. IMHO. Jul 19 09:46:39 huh? Jul 19 09:47:10 Well, here's the support downloads from the manfact - http://screencloud.net/v/kOEd Jul 19 09:51:28 Hi guys I need help, I have an android app that takes pictures using intent and I want it to create a folder and saves it there, I already tried googling and nothing works. Jul 19 09:51:28 hmm guys I got a question about Navigation Jul 19 09:51:55 if I have a few activities, do I need to hardcode the back/up buttons' actions in each activity? Jul 19 09:54:20 narekb: NO Jul 19 09:54:38 you mean overwrite the back() and up() functions? Jul 19 09:54:39 pjfds234, judging from the caps, I just said something extremely nooby Jul 19 09:54:55 wait Jul 19 09:55:07 thoe back() and up() fcuntions can determine which activity to point to? Jul 19 09:55:22 *those Jul 19 09:56:17 you can always overwrite the back() and put intent inside it to where you want the intent to start Jul 19 09:56:53 http://stackoverflow.com/questions/13962922/android-save-camera-image-in-custom-folder Jul 19 09:56:53 i don't know if im getting your question correctly Jul 19 10:00:02 aaa: how do you think this link http://stackoverflow.com/questions/13962922/android-save-camera-image-in-custom-folder can be used in my code http://pastebin.com/YFAv45bD , it kinda hard to read the code in stackover Jul 19 10:05:04 hi. is there a quick way to know which variable is null? something like var_dump in PHP? Jul 19 10:05:31 superlinux: use Log.i Jul 19 10:05:36 Log.v(TAG, "var: "+var); Jul 19 10:06:08 kjeldahl, i want the whole class variables. got me? Jul 19 10:06:29 like everything. Jul 19 10:06:30 or even Log.v(TAG, "var: "+var.toString()) which will be very verbose if var is null. Jul 19 10:06:52 But, that assumes your class HAS a toString() method. Jul 19 10:07:03 Some do, some don't. Jul 19 10:07:45 ok.. i'll see more into it. Jul 19 10:08:02 i ask it cos i have NPE somewhere i cannot catch Jul 19 10:08:33 can anyone compile csipsimple for me ? Jul 19 10:08:40 Rly? The exception usually says EXACTLY where it happened. Try sharing the logcat... Jul 19 10:09:33 kjeldahl, i just could not figure which is null. got it? i know how to read the errors Jul 19 10:09:59 i have to go for now.. thanks. Jul 19 10:10:06 I assume you mean why instead of which, anything else is stupid. Jul 19 10:18:15 ugh I got lost in XML Jul 19 10:18:16 :\ Jul 19 10:18:19 wtf is all this Jul 19 10:37:27 gah why does the appWidgetManager keep returning widget id's that dont even exist anymore >_> Jul 19 10:50:36 Yay! A new version of Android Studio! Time to break everything all over again! Jul 19 10:51:08 ugh what's all this with Android Studio Jul 19 10:51:14 am I the only one around here still on Eclipse? Jul 19 10:51:33 narekb: it's fun and exciting and breaks in fun an exciting ways Jul 19 10:51:37 :D Jul 19 10:51:43 I'm just about to give Android Studio a look Jul 19 10:51:43 haha nice description Jul 19 10:51:55 * p_l practically dropped eclipse before Android Studio became public, so... :D Jul 19 10:52:20 Gradle makes it super confusing coming from eclipse, but once you figure out how everything works it's really cool Jul 19 10:52:57 I really like android studio (having never worked with eclipse before), but it's soooo frustrating working with essentially a beta version Jul 19 10:53:07 protip: don't use refactoring Jul 19 10:53:17 defnordic: I thought it was an alpha Jul 19 10:53:34 a beta made of alpha ;) Jul 19 10:53:35 Ankhwatcher: whatever it is, it's early :P Jul 19 10:53:44 p_l, what did you use after Eclipse and before AS? Jul 19 10:54:10 I have had the refactoring move variables that rely on other variables above them in the code... so that the definitions don't work. Jul 19 10:54:26 narekb: IDEA Jul 19 10:54:44 ahhh Jul 19 10:54:50 well Jul 19 10:54:52 how was it? Jul 19 10:55:13 hmm my code to make sure my search results get shown in the right order has broken search altogether Jul 19 10:55:56 Ankhwatcher: I had refactoring rename the "name" attribute of almost every XML object q.q Jul 19 10:56:30 I mean, replace defnordic: curious behavior Jul 19 10:57:24 yeah, took me far too long to figure out Jul 19 10:57:43 and then it wouldn't let me change it back in the manifest, had to exit AS and edit it manually Jul 19 10:58:06 ouch, that's nasty Jul 19 10:58:42 that'll teach me to try out stuff :P Jul 19 10:58:55 narekb: I am still on Idea Jul 19 10:59:02 for everything java-related Jul 19 10:59:06 $0? Jul 19 10:59:23 (with possible exception of one project that requires custom plugins in Eclipse) Jul 19 10:59:24 ruhroh: 500:Something is broken. Please post to the group (https://dev.twitter.com/docs/support) so the Twitter team can investigate. Jul 19 10:59:38 narekb: the community version is enough for most :) Jul 19 10:59:59 Android Studio mostly adds special extras for android beyond normal java support Jul 19 11:00:12 p_l, I'll look into it Jul 19 11:00:18 never used it before Jul 19 11:00:47 a big difference is that Idea is not crazy about making GUI wrappers around every single bit of XML Jul 19 11:01:03 instead you get intelligent completion for XML Jul 19 11:01:16 is it fast? Jul 19 11:01:21 for me, definitely Jul 19 11:01:45 there are rare people who claim it's slower than eclipse for them, but I have trouble believing sometimes :P Jul 19 11:02:39 even AS is pretty fast Jul 19 11:03:20 defnordic: I had trouble believing how fast IDEA is when I first launched it - I couldn't believe it was using Swing Jul 19 11:03:40 defnordic, faster than Eclipse?! Jul 19 11:03:57 p_l: how fast is your box ? Jul 19 11:04:08 narekb: I am totally spoiled on my workstation, SSD makes everything seem instant ^^ Jul 19 11:04:17 haha Jul 19 11:04:23 nice one defnordic Jul 19 11:04:32 I guess my PC su**s after all Jul 19 11:04:34 but it feels faster than eclipse somehow Jul 19 11:04:36 just like my phone :D Jul 19 11:04:46 defnordic, spirit of Android ":d Jul 19 11:04:47 shmooz: the one where I was so surprised? C2D T5550 1.83GHz, 5400 rpm laptop hdd, 4G of ram (heavily loaded with other software) Jul 19 11:04:47 *:D Jul 19 11:06:19 my AS is faster than eclipse because it's only running one project, my eclipse workspace is usually loading at least 4 Jul 19 11:07:12 I got an error not trying to create my first android studio project: "Failed to import Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution..." Jul 19 11:08:43 sulaiman: did you google it? Jul 19 11:09:02 Ankhwatcher, no, switched back to eclipse for now. was just experimenting with it Jul 19 11:15:01 well I'm getting this same damned error message on two diffent devices running my code Jul 19 11:24:36 crap, it just occurred to me that I should have check to see if the version of my app I made yesterday was having the same issue Jul 19 11:24:39 duh Jul 19 11:24:47 anyone around? Jul 19 11:27:51 Kingsy: nope, an ice-cream van went by Jul 19 11:28:15 I think I have it Jul 19 11:28:19 anyways Jul 19 11:29:05 Kingsy: ice cream? Jul 19 11:31:36 yep Jul 19 11:31:47 Kingsy: good for you Jul 19 11:45:38 has anyone seen this ListView issue (some transparency applied to first item when scrolling down, sometimes) happening only on a Nexus 10, and has a workaround: http://stackoverflow.com/questions/16187709/why-is-the-first-item-in-my-listview-using-a-different-selector-on-tablets ? Jul 19 11:52:38 hmm, is there any way to change design of contextmenu items? Jul 19 12:02:55 bah ListView.setVerticalFadingEdgeEnabled(true) makes ListView rendering buggy on the Nexus 10. Yay bugs. Jul 19 12:07:43 Is there something like @Override Jul 19 12:07:43 public int getViewTypeCount() { Jul 19 12:07:43 return TYPE_MAX_COUNT; Jul 19 12:07:48 sorry Jul 19 12:08:28 Is ther esomething like getViewTypeCount() for BaseExpandableListAdapter Jul 19 12:08:48 in order to have different views for different childs Jul 19 12:09:11 eard a while ago that you could use some kind of placeholder in email adresses which lead to the same email account so I dont have no make a new email but can regiser several times on a website. Anyone know the syntax for that? Jul 19 12:20:28 I'm still a bit cloudy on the separation of threads and UI work. I want to draw to a surfaceview using a secondary thread, but I know modifying the UI at all outside the primary thread is forbidden Jul 19 12:20:49 i just can't wrap my head around how to handle it Jul 19 12:21:49 I've figure i can create and update a new canvas object, but how do i handle passing it back to the main thread if the task is always constantly running and updating? Jul 19 12:22:04 would this be the place to create and use an async task? Jul 19 12:22:09 Shinkamui, mutexes signaling messages across threads maybe? Jul 19 12:22:22 Shinkamui, surfaceview is a rather special object Jul 19 12:22:32 Shinkamui, and you can draw to its canvas as long as you have it locked on another thread Jul 19 12:22:41 Ah, fancy Jul 19 12:22:50 i didn't know that Jul 19 12:22:51 Is this where I'd ask a porting question? Because I'm stuck. :( Jul 19 12:22:58 so Im passing my thread its surfaceholder Jul 19 12:23:08 I've never been on freenode, you guys have a ton of channels/people. :P Jul 19 12:23:17 i should be able to draw to the canvas I recieve from the holder lock surface call? Jul 19 12:23:27 Shinkamui, yes Jul 19 12:23:32 just make sure you unlock it after Jul 19 12:23:38 rhound, Go for it Jul 19 12:23:44 you might have saved the day Mavrik, I shall give this another round Jul 19 12:23:47 :) Jul 19 12:24:26 Shinkamui, just make sure you always redraw full canvas after lockCanvas() and make sure you call unlockCanvasAndPost to tell Android to draw contents on screen Jul 19 12:24:46 Well, I got MIUI booted on the CDMA S4, and I messed with build.prop and got the data to work in roaming, and then it went out Jul 19 12:24:53 I think I'm missing a couple files Jul 19 12:25:04 Im calling lockCanvas, then my custom onDraw(canvas), then unlockCanvasAndPost right after Jul 19 12:25:26 Everything works except the data, I'm not sure if it's a radio driver issue, or maybe I need to copy /vendor + libril files and modify the build.prop as well Jul 19 12:25:30 I think ill implement runnable in the surfaceView class I made to simplify this Jul 19 12:25:42 should then allow me to call my onDraw right in the run method Jul 19 12:25:44 The problem I'm having is that the CM build.prop and MIUI's build.prop are vastly different, and I'm afraid I'm missing some carry overs Jul 19 12:27:30 I should note that I'm terrible with this stuff and I am barely scraping by in this regard :P Jul 19 12:27:44 just getting it to boot was a triumph :P Jul 19 12:28:50 rhound: this channel is app development Jul 19 12:28:54 says in the topic Jul 19 12:29:26 CM have a channel … sure there are others for rom stuff Jul 19 12:29:31 I realize that, but sonic said to ask anyways Jul 19 12:29:33 yea, I auto assumed application porting :< Jul 19 12:29:45 Sorry, mislead, my bad sonic :P Jul 19 12:30:26 I will go find somewhere else to ask my terrible question. :( Thanks though. Jul 19 12:33:35 Mavrik, You know if it is fine to lock the context on one thread and then draw to it on another, then unlock it on the original thread that locked it? Jul 19 12:33:40 er, Jul 19 12:33:44 s/context/surface Jul 19 12:34:01 Sonicadvance1, I wouldn't advise it Jul 19 12:35:00 I'm trying to work around my native app using a SurfaceView and it needs to lock and unlock it to get double buffering instead of single Jul 19 12:41:16 Anyone else experienced issues with AudioTrack on Samsung Galaxy S4? Code works fine on other devices but when we tried on a S4 now the audio does not play, even though the audiotrack.play() doesnt result in any form of error. Its just pure silence.. nothing happens. Any feedback, thoughts, ideas, bashing is much appriciated.. brainfreeze over here.. Jul 19 12:46:34 the s4 tries to be 'helpful' with audio I've noticed oehman Jul 19 12:47:00 for example, if you setMode() to IN_COMMUNICATION then videos flat out refuse to play whilst 'in a call' Jul 19 12:47:34 I haven't experienced AudioTrack issues with the s4 I have, but it's worth seeing if you're potentially confusing it with your audio routing Jul 19 12:57:06 do you guys often see those OS arguments in social networks? Jul 19 12:57:22 I was reading one of those under a Nokia image in FB (Android vs WP) Jul 19 12:57:38 and I bet, the next World War will be about OSes Jul 19 12:57:40 not religion Jul 19 12:57:46 not land domination Jul 19 12:57:49 OSes! Jul 19 12:58:20 arguments about the merits of an OS are often ill informed Jul 19 12:58:39 "every single os is copying from iOS" Jul 19 12:58:51 me:say it's wrong Jul 19 12:59:02 WP user: prove that WP and iOS have 0 similarity Jul 19 12:59:11 Kegsay > Ok, Yeah I dunno.. its strange. We just tried to use the exact same code in a new app on the s4 and it worked. So there is some minor issue I hope.. Jul 19 12:59:13 iOS user: still, they are copying! Jul 19 12:59:33 narekb: shows the mental aptitude Jul 19 12:59:58 StingRay_, ^5 Jul 19 12:59:59 goes both ways eh, fanboys are always way too biased to make proper claims Jul 19 13:00:11 I actually like OSX Jul 19 13:00:13 but damn I hate iOS Jul 19 13:00:18 narekb: now imagine the feeling when you have actually studied the history of operating systems etc instead of looking only at the surface ui... Jul 19 13:00:18 too many issues assoicated with it Jul 19 13:00:20 + too expensive Jul 19 13:00:31 p Jul 19 13:00:38 p_l, that's just great Jul 19 13:00:39 I think iOS is shit, I think android and wp are shit Jul 19 13:00:44 have you studied all that? Jul 19 13:00:46 StingRay_, rofl Jul 19 13:00:49 then what do you use? Jul 19 13:00:49 ios (excluding version 7) has the least shitness in design Jul 19 13:00:51 it ends up feeling like the punchline of the old joke about Microsoft, Apple, and Xerox Jul 19 13:00:58 from a user standpoint Jul 19 13:01:05 but that dont mean it's good Jul 19 13:01:07 :) Jul 19 13:01:15 StingRay_: depends on the user (the old adage about intuitive interfaces et al) Jul 19 13:01:39 p_l I speak generalised when making assumptions like that Jul 19 13:01:43 so for the masses Jul 19 13:01:47 the average Jul 19 13:01:52 the "mass" market Jul 19 13:03:06 one of my friends told me Android is the easiest popular platform to develop for Jul 19 13:03:12 actually that's why I am going with Android Jul 19 13:03:32 as I go forward and dive deeper into the OS, I like it more day by day Jul 19 13:03:56 dig deeper, and look at some of the design choices made Jul 19 13:04:13 some of the legacy choices that wiill fk things in the future Jul 19 13:04:31 it's not all sparkles are sweet smells Jul 19 13:05:02 they should rewrite it to javascript. Jul 19 13:05:18 actually the style thing is already fking things now :) Jul 19 13:05:28 StingRay_, why? Jul 19 13:05:55 well to me there are too many negatives Jul 19 13:05:58 hey fellas Jul 19 13:05:59 and it's too limited Jul 19 13:06:04 what is the delay for connecting to data network? Jul 19 13:06:13 in time Jul 19 13:06:24 I think it was a rush decision to attempt to get UI standards up to compete with ios Jul 19 13:06:41 but maybe it should have matured in a different way Jul 19 13:07:01 zhulikas, depends on which network you are, where you are and the state of mobile network Jul 19 13:07:05 more details ;) Jul 19 13:07:09 I dont know, but as a designer / dev, I'm not impressed Jul 19 13:07:23 hmmm Jul 19 13:07:35 2g/3g, no idea Jul 19 13:07:54 zhulikas, well there IS a huge difference you know Jul 19 13:08:02 why don't you tell us why do you need to know that :) Jul 19 13:08:06 zhulikas: thats easy then Zero seconds to Never Jul 19 13:08:13 I have a niche market for android app and considering starting wake lock periodically (4.2+ bug when data connection turns off when device goes to sleep) Jul 19 13:08:56 so was thinking whether 3seconds wakelock every 30seconds wouldn't be too much energy consumption Jul 19 13:09:01 basically, setting up an EDGE or even UMTS session can take up to 3-5 seconds Jul 19 13:09:07 or even longer in areas of worse coverage Jul 19 13:09:09 shit Jul 19 13:09:17 it's usually faster though Jul 19 13:09:23 it also depends if the data session is up Jul 19 13:09:25 zhulikas: that would kill the bat. Jul 19 13:09:37 also, waking the radio up every 30 seconds will destroy your battery :) Jul 19 13:09:53 zhulikas: the delay can be whatever it wants Jul 19 13:09:55 StingRay_, never turning wakelock off killed my i9000 battery in 8 or so hours Jul 19 13:10:09 zhulikas, which wakelock? Jul 19 13:10:11 zhulikas: program defensively, assume the network is so flaky it's raining shit and blood Jul 19 13:10:14 CPU is one thing. Jul 19 13:10:17 uhm Jul 19 13:10:19 just a sec Jul 19 13:10:20 Radio is a whole other thing. Jul 19 13:10:27 ohh Jul 19 13:10:29 I see... Jul 19 13:10:38 3G/LTE radio when transmitting eats battery like a cat eats whiskas :P Jul 19 13:10:43 PARTIAL_WAKE_LOCK Jul 19 13:10:45 so just CPU Jul 19 13:10:50 that's only CPU Jul 19 13:11:08 if you schedule it right then it doesn't burn alot of battery… waking up wifi/3g however does Jul 19 13:11:22 what if I don't let it go sleep? Jul 19 13:11:32 by doing some sort of spikes for example Jul 19 13:11:38 frequent spikes Jul 19 13:12:25 hmmm Jul 19 13:12:30 seems like there is no solution Jul 19 13:12:43 just to wait until Android team fixes the bug Jul 19 13:12:53 or this particular "feature" Jul 19 13:13:38 that is a feature actually. Jul 19 13:13:46 noone wants a phone with 3 hours of battery life Jul 19 13:13:48 ;) Jul 19 13:13:52 sure Jul 19 13:13:58 hi guys, I've got a cheap Android device from China that came with a rooted 4.2.2 system image (MK802 IV). I'm trying to change init.rd (to start up crond on boot), but for some reason, whenever I flash /boot, it gets overwritten on next boot-up (my changes are gone and the original is restored). Am I missing something here? Jul 19 13:14:07 also nobody wants their email/facebook/whatsapp working Jul 19 13:14:33 rschmidt: read topic Jul 19 13:14:54 I have constant mobile data network in the background and battery survives for roughly 24 hours Jul 19 13:15:06 StingRay_: ah, ok, thanks Jul 19 13:15:10 i9000 with cyanogenmod9 Jul 19 13:16:36 zhulikas, no you don't. Jul 19 13:16:39 anyone else had the problem that when launching the application from eclipse it gives you a out of memory error and exits eclipse? Jul 19 13:16:40 you have a symbol on. Jul 19 13:16:49 the radio turns off as soon as you don't need it ;) Jul 19 13:19:50 Mavrik, so, network connection in the background works on my device. It doesn't work on another device. How do I solve it? Jul 19 13:20:31 holy sh*t, ##java is like a really bad Reality TV Show Jul 19 13:20:32 StingRay_, lemme ask you one thing Jul 19 13:20:42 I see you are quite experienced with Android and have opinions about it Jul 19 13:20:47 if android is really that opensource Jul 19 13:20:51 who makes the decisions? Jul 19 13:20:53 only Google? Jul 19 13:20:54 let me correct you there Jul 19 13:21:04 I dont and am not, but yes Jul 19 13:21:11 :D Jul 19 13:21:14 as in I'm not experienced with it Jul 19 13:21:18 ahhh Jul 19 13:21:19 haha Jul 19 13:21:20 he just speaks alot Jul 19 13:22:06 narekb, even though Android is supposed to be opensource, the development is done by Google and only google behind closed doors Jul 19 13:22:14 :( Jul 19 13:22:22 this doesn't feel like true opensource Jul 19 13:22:25 + manufacturer and carrier modifications on devices which are also proprietary Jul 19 13:22:32 * narekb hates those Jul 19 13:22:35 particularly TouchQiz Jul 19 13:22:39 *TouchWiz Jul 19 13:22:58 well, I was a former Fedora user, it was backed up by a corporation too Jul 19 13:23:00 Red Hat Jul 19 13:23:08 it's open source in the strictest sense of the word though, and I think anyone could just go and fork it, which makes it libre too... Jul 19 13:23:10 but contributors/users made decisions Jul 19 13:23:17 narekb: I have opinions on it cause I'm more of a designer artist than a dev, and some of the design choices and implementations are just odd to me Jul 19 13:23:24 they got on mailing lists, IRC, social networks and discussed the future of the project Jul 19 13:23:29 it's totally open source Jul 19 13:23:40 but that fact is useless Jul 19 13:23:47 because nobody forks and releases their own distributions of android Jul 19 13:24:08 Samsung will soon do Jul 19 13:24:09 platform is too messed up to be touched by anyone else Jul 19 13:24:19 zhulikas, hell yeah! Jul 19 13:24:24 I can agree on that oen Jul 19 13:24:25 but Jul 19 13:24:26 how the hell did they manage to come up with such a pile of crap Jul 19 13:24:35 oh, wait Jul 19 13:24:40 this is adnrodid channel Jul 19 13:25:00 lmfao, even #iOSdev can express more positive opinions about Android than you guys Jul 19 13:25:07 :))) Jul 19 13:25:08 I guess I will learn to hate Android over time Jul 19 13:25:15 but I don't want to because I love it for now Jul 19 13:25:18 if you want to experience hatred Jul 19 13:25:19 go to #java Jul 19 13:25:23 those guys are nuts Jul 19 13:25:24 :)) Jul 19 13:25:25 whoa Jul 19 13:25:29 whom do they hate? Jul 19 13:25:31 Java? Jul 19 13:25:35 they hate noobs Jul 19 13:25:47 most offensive developer community I ever stumbled upon Jul 19 13:25:47 oooh Jul 19 13:25:54 I dont want to go there Jul 19 13:25:57 hehe :D Jul 19 13:25:58 I will be banned for life :D Jul 19 13:25:58 zhulikas: my 1st visit to ##java today, and it like…really entertaining Jul 19 13:26:18 StingRay_, I was banned for expressing my point of view on things :D Jul 19 13:26:27 zhulikas: honest I am shocked Jul 19 13:26:28 I imagine Jul 19 13:26:34 it's a bad tv show Jul 19 13:26:36 Java s**ks! Jul 19 13:26:37 yeah :D Jul 19 13:26:42 narekb, not really, no Jul 19 13:26:49 Good. Use your aggressive feelings, boy. Let the hate flow through you. Jul 19 13:26:54 I asked some micro-optimization related questions Jul 19 13:27:03 with some loud considerations/etc Jul 19 13:27:09 ahh Jul 19 13:27:10 yeah Jul 19 13:27:12 hoping for insights Jul 19 13:27:14 from experts Jul 19 13:27:17 and after a long argument Jul 19 13:27:20 you got banned Jul 19 13:27:22 haha yeah :D Jul 19 13:27:23 by exprets Jul 19 13:27:28 *experts Jul 19 13:27:46 ok Jul 19 13:27:53 need to get back to android dev duties <3 Jul 19 13:28:03 good luck with those Jul 19 13:28:36 you know, relatively big android app is a framework built on top of android Jul 19 13:28:43 and because it's a framework made by you Jul 19 13:28:45 it's not that bad Jul 19 13:28:51 umm Jul 19 13:28:55 it's quite reasonable and well thought of Jul 19 13:28:56 :D Jul 19 13:28:59 it's still difficult to me Jul 19 13:29:02 I lack experience Jul 19 13:29:12 I just need to learn by doing Jul 19 13:29:16 sure Jul 19 13:29:20 android is fun to learn programming Jul 19 13:29:26 because you can touch what you program Jul 19 13:29:28 I loved that fact Jul 19 13:29:29 picked up some simple Twitter client, let me see if this works out Jul 19 13:29:34 zhulikas, hehe me too Jul 19 13:30:02 it's one of the rare occassions when you can work with something real and not only in the screen of your computer Jul 19 13:30:15 working with robotics would be awesome in that matter Jul 19 13:31:07 exactly why i chose AR/kinect/psmove/android/oculusrift Jul 19 13:31:17 zhulikas, <3 robots Jul 19 13:31:19 instead of being a backend coder Jul 19 13:31:32 neat, oculusrift Jul 19 13:31:49 at certain moment I was obsessed with Emotiv, EEG and stuff Jul 19 13:32:27 i want to play around with the next generation stuff like kinect2.0, leap motion, oculusrift the most right now Jul 19 13:33:04 eSatsu: I played with a rift this week. It took less than 15 seconds to make me extremely motion sick. Jul 19 13:33:05 eSatsu: I have a good stroy about kinect Jul 19 13:33:08 eSatsu, you program stuff for those? Jul 19 13:34:12 we got it (the company I was with) when MS were 1st looking at it, and it was still an isreali tracking system Jul 19 13:34:52 israeli? Jul 19 13:35:03 and it sat in a dev room for 8 months, and nobody did anything with it, we could have had a lauch title on stage at e3 that year if someone had have put 2 and 2 together Jul 19 13:35:18 narekb: yes Jul 19 13:35:51 iirc thats where it came from Jul 19 13:35:54 omg, I have a dream Jul 19 13:36:00 play Ace Combat on OR Jul 19 13:36:13 I think I just got myself a new life objective :D Jul 19 13:39:41 I'd love to play some 1st person horror game on OR Jul 19 13:39:58 add shock pads in various places of your body Jul 19 13:40:10 for getting hit Jul 19 13:40:26 1st person horror? Jul 19 13:40:27 hmm Jul 19 13:40:32 ultimate horror game Jul 19 13:40:35 zhulikas: I think they made that Jul 19 13:40:42 people used it for FPS games Jul 19 13:40:46 yeah, fps Jul 19 13:40:47 zhulikas, you do realize that you will have to sacrifice your sanity for it right? Jul 19 13:40:58 narekb, like if I had much of it left Jul 19 13:40:59 Ankhwatcher, no flight simulators? Jul 19 13:41:04 zhulikas, haha Jul 19 13:41:11 just tried reinstalling my ADK to fix my inability to launch applications but it didnt work. anyone got any suggestions? it gets stuck on "launching application" until it runs out of memory Jul 19 13:47:59 where is adk files being placed on windows? in the folder where ive extracted the sdk and ran the program, and anywhere else? Jul 19 13:52:36 Im trying to implement runnable in my SurfaceView class, but the run() never gets executed. How and where am i supposed to start it? Examples show using onResume, however the superClass shows only the run method as implemented!?! Jul 19 13:53:14 you need something that calls the run() Jul 19 13:53:30 what do you want it to do? run in another thread? run on ui thread? Jul 19 13:53:41 well, here's the thing, If i run run manually, wont it just be executed in the UI thread? Jul 19 13:53:50 yes Jul 19 13:53:51 yea, Im trying to use it to multithread Jul 19 13:54:16 new Thread(new ); Jul 19 13:54:17 then you need to give it to a thread Jul 19 13:54:30 probably should start the thread too :P Jul 19 13:54:52 hmm would I handle that in the class constructor? Jul 19 13:55:00 its a SurfaceView, so I have no onCreate Jul 19 13:55:06 at least i think thats true Jul 19 13:55:25 kamui, what are you trying to do with the run method exactly? Jul 19 13:55:38 render my SurfaceView Jul 19 13:55:59 in run i call .lockcanvas and onDraw Jul 19 13:56:04 then release it and update Jul 19 13:56:51 so you want to create another thread? Jul 19 13:57:10 yea, i want that work done in its own thread Jul 19 13:58:46 did you actually start the thread? Jul 19 14:07:43 Mavrik, I had experimented earlier with a class private Thread t, then in the constructor t = new Thread(this); t.start(); Jul 19 14:07:58 and? Jul 19 14:08:01 from there, I have no idea how to control it Jul 19 14:08:20 it runs, but there are problems, as it wont refresh the display if i change apps or orientation Jul 19 14:08:30 I have no pause or resume to configure Jul 19 14:08:45 probably not thinking about this right Jul 19 14:09:13 very new to threads and surfaceview, worst possible combination for me right now :) Jul 19 14:13:50 kamui, you need to listen to onSurfaceDestroyed etc. events Jul 19 14:14:07 also, make sure you stop executing stuff in run() when the surfaceview is gone Jul 19 14:15:01 partial wakelock held for 50ms every 2second Jul 19 14:15:06 let's see how fast my device dies Jul 19 14:15:07 \o/ Jul 19 14:15:12 I'll let you know the results Jul 19 14:23:44 Any idea how i can install an app that I just created in eclipse to All Users. When I deployed through eclipse and changed user, the app is not visible Jul 19 14:26:30 huh Jul 19 14:26:31 choose the correct workspace path ??? Jul 19 14:26:36 * StingRay_ is guessing Jul 19 14:26:44 how do you change users on android? Jul 19 14:27:28 In the latest there is multi user support Jul 19 14:27:42 have to be a tablet, and then you can do it from the lockscreen if the multisupport feature is turned on Jul 19 14:27:54 hmm, ok Jul 19 14:27:55 yep Jul 19 14:28:03 * pfn shrugs Jul 19 14:37:25 I am displaying result from php upload in a Toast so simply "upload ok" however the toast has this text at the top but a significant space below the text that might suggest the toast is returning more than just the text. any ideas? Jul 19 14:38:22 Maverik: thats the missing link, the SurfaceView events should provide me a good entry and exit point to call my start/stop functions Jul 19 14:38:25 i get it now Jul 19 14:38:33 ok, im off to go restructure this Jul 19 14:41:30 http://stackoverflow.com/questions/17748044/greystripe-and-proguard Jul 19 14:45:27 try -dontwarn android.webkit.** and -dontwarn android.hardware.** Jul 19 14:46:27 mr_lou: Did you ask the question? Jul 19 14:46:51 What does the crash say? If it's related to the warnings, the dontwarn stuff is not going to fix it. Jul 19 14:47:23 Then you need to pull it in, with "keep". Jul 19 14:47:35 it's referencing stuff that's not found in android framework Jul 19 14:47:43 but it should be found Jul 19 14:47:47 so there's no reason to warn on it Jul 19 14:48:05 usually caused by stuff like target sdk version being lower than what the library is using Jul 19 14:48:11 so you ignore those Jul 19 14:48:11 No it shouldn't be found, since I'm targeting API 7, and android.webkit.JavascriptInterface wasn't introduced till API 17. Jul 19 14:48:14 If it's not in the SDK level he's compiling for, how can it "be in"? Jul 19 14:48:28 because it's runtime binding Jul 19 14:48:37 so if the device is api17, it will load/run fine Jul 19 14:48:38 But the debug version compiles and runs fine. Jul 19 14:48:49 mr_lou, also, don't target api7 Jul 19 14:49:07 If debug runs fine, proguard is pulling something out that you need. Jul 19 14:49:15 mr_lou, it looks like trash on new devices Jul 19 14:49:20 set minsdk to 7 Jul 19 14:49:25 and target to something like 17 Jul 19 14:49:41 How does that make it look differently on new devices? Jul 19 14:50:05 target = 7 => no actionbar, no holo theme Jul 19 14:50:13 that's how it makes it look different Jul 19 14:50:15 no overflow menu Jul 19 14:50:25 so you get the stupid menu button in the system ui Jul 19 14:51:39 hi everyone, I'be got a quick question, juste looking for doc Jul 19 14:51:55 how can I set byte directly to a VideoView ? Jul 19 14:52:11 can't find doc on that subject Jul 19 14:52:33 If I want to apply the same style to all checkboxes, is there a way to do that besides going through all of the xml and finding every checkbox and adding a style tag? Jul 19 14:52:50 pfn, Well, not using any of those anyway. Using only Canvas and my own menu stuff. Jul 19 14:53:16 pfn, -dontwarn android.webkit.** won't do it. It needs to be -dontwarn com.greypstripe.** Jul 19 14:53:39 mr_lou, you'll still have the menu button in system ui Jul 19 14:54:26 pfn, Menu button has no effect in our game. Not sure what you mean. Jul 19 14:54:53 mr_lou, doesn't matter that it has no effect, it's a very annoying visual appearance Jul 19 14:55:13 e.g. on the htc one, you'll get a black bar covering part of the screen with 3 dots Jul 19 14:55:14 that does nothing Jul 19 14:55:35 pfn, Visual appearance? Nothing appear when you click the menu button. Jul 19 14:55:43 pfn, We've disabled it. Jul 19 14:56:01 http://www.androidcentral.com/htc-one-x-shows-us-why-developers-need-lose-menu-button Jul 19 14:56:22 to do that, you must target a higher sdk version Jul 19 14:56:37 pfn: give him hell, I hate that shit Jul 19 14:58:00 Never know if it's because of complete lack of understanding of android or just laziness Jul 19 14:58:10 both Jul 19 14:58:51 Mavrik, that did it. Im further along, my widgets are drawing on the surface now on the touch event. I just need to handle the surface being destroyed and recreated when i launch my widget picker activity on longpress. thanks for your help! Jul 19 14:59:00 pfn, Hm... Will test if that happens for us. I don't think it should, because of the way we handle key-input. But will test, thanks. Jul 19 14:59:12 it doesn't matter that you handle key input Jul 19 14:59:23 target api <14 = you get that black bar Jul 19 14:59:24 period Jul 19 14:59:47 Gotta luv Android. It's like web-development. Can never be sure of anything. Jul 19 15:00:06 that's what people say about platforms they don't understand Jul 19 15:00:13 lol Jul 19 15:00:15 "gotta love kernel development, never know when my broke code will break" Jul 19 15:00:23 hehe Jul 19 15:00:32 "gotta love foobar development, don't know when my crap is gonna hit the fan" Jul 19 15:01:42 Well I will look into that black bar thingy, just as I've looked into other weird Android issues. Jul 19 15:06:24 kjeldahl, I just checked now, and the crash is a Nullpointer Exception in the Greystripe SDK indeed. So a -dontwarn is not the solution. Jul 19 15:07:17 I need some way of telling Proguard to just leave alone everything in the greystripe-sdk jar entirely. Jul 19 15:07:51 add greystripe as a -libraryjar and add it to dex libs Jul 19 15:07:59 and -dontwarn wouldn't result in NPE Jul 19 15:08:20 -dontwarn failures would result in NSME or CNFE Jul 19 15:08:27 or VE Jul 19 15:13:35 It's already added with -libraryjars Jul 19 15:13:43 Not sure what you mean by adding it to dex libs. Jul 19 15:13:47 then don't add it to -jar Jul 19 15:13:53 or -programjars Jul 19 15:13:59 whatever the flag is Jul 19 15:14:08 and make sure it's an input to dex Jul 19 15:14:40 Hmm... it's not, but it's placed in the libs folder (for NetBeans to be able to use it), which is probably adding it to programjars. Jul 19 15:14:50 So that might be it. Jul 19 15:23:22 pfn, And for the record, so far the issues I've had has always turned out to be Android bugs. So you're right of course. I don't understand when things that should work just don't work. It's a good thing though that I don't rely on emulators, but instead test of multiple real devices. Otherwise I'd just get a lot of those "Doesn't work on my device" replies for sure. Jul 19 15:25:29 that's just implementation detail Jul 19 15:25:33 not necessarily "android bug" Jul 19 15:25:36 I remember a lot of the JavaME community practically worshipping the Android platform when it came out, and everyone praising it because "No more device fragmentation and bugs". Why they didn't see that it was just a matter of time before it was at least as bad, I don't know, but that time has indeed come, whether you'll acknowledge it or not. Jul 19 15:26:06 javame is a joke in that it was never java Jul 19 15:26:09 No, it's a bug when it's acknowledge by Google to be a bug. Jul 19 15:26:31 Android isn't java either. Jul 19 15:26:32 Fragmentation is extremely bad for some things. It's not so bad for a lot of other things apps tend to do, however. Jul 19 15:26:37 Does that mean Android is a joke too? Jul 19 15:26:40 considerably closer than javame Jul 19 15:26:53 it's extremely bad for a pretty small subset of things Jul 19 15:26:56 Try to deal with USB, you're in for a world of pain. Concerned about system security, world of pain. Jul 19 15:27:31 mr_lou - If it is a joke, then it seems to be a profitable one. So it must be a decently good joke. (at least per capitalist ideals.) :) Jul 19 15:28:13 Most of the other worlds of pain are in edge cases where you're trying to do something 'funny' anyhow, like mess w/ phone call recording and whatnot. There's various other lurkers too, for sure, but in general it's not crippling. Yet, anyhow. Jul 19 15:28:13 and with respect to not being java... well, the fact that I can use just about any java library in the world disagrees with that Jul 19 15:28:18 (as for myself, I'm still barely getting acquainted with the platform's "features") Jul 19 15:28:41 pfn: yeah; unfortunately everything I do seems to live in that subset :P Jul 19 15:28:56 dragorn, yeah, I just avoid it :) Jul 19 15:29:13 pfn: Amusingly both my hobby stuff and my pro stuff lives in USB/networking land Jul 19 15:29:22 pfn: so it's just face+wall all day long Jul 19 15:30:43 indeed Jul 19 15:38:26 man, these cellphone providers with their new early upgrade plans are such garbage Jul 19 15:38:35 they take away the phone subsidy, yet leave the plan at the same price.... Jul 19 15:39:52 pfn: you think any change is for your benefit? Jul 19 15:40:32 pfn: Step 1 'Screw the public', Step 2 '???', Step 3 'Profit'.. LOL... Jul 19 15:40:32 it would be nice, even a marginal decrease in subscription fee would be appreciated Jul 19 15:41:05 oh well, hopefully, someday, tmo or sprint will have decent networks Jul 19 15:42:34 if I have a Thread t, can i use t = null; to kill it? Jul 19 15:42:39 no Jul 19 15:42:47 i see .stop() and .destroy() show deprication, id ont know if i can use them Jul 19 15:42:49 threads are cooperative Jul 19 15:42:51 not preemptive Jul 19 15:43:46 pfn, how would i stop a thread from the spawning activity? Jul 19 15:44:02 by setting flags/variables that it reads Jul 19 15:46:40 pfn, aah! so i just need a condition variable in my run() function that i can trigger to kill the thread, eg in run() while (running) { } and then create a method like .stopThread that sets running to false after cleaning up Jul 19 15:46:51 yes Jul 19 15:47:19 solid, i mostly already have that built in, thanks Jul 19 15:53:36 this is silly. i've managed to lose the ability to hide/view the attribute panel in eclipse, in the xml layout view Jul 19 15:54:01 by attribute panel i mean properties Jul 19 15:54:23 csterling123: Somewhere there's an option to reset the windows to the default layout. Jul 19 15:54:28 good call. Jul 19 15:54:31 thanks Jul 19 15:55:21 csterling123: Actually look at the top or bottom edge of the window.. Should be a little box to select active view. Jul 19 15:55:23 When a notification is clicked I want two independent actions to occur: 1. an activity to be raised. 2. some internal state changed. Jul 19 15:55:26 I'd rather not have the activity have to deal with the internal state in any way, since that's unnecessary coupling. What options do I have? Jul 19 15:55:29 1. Can I fire two intents from one click? 2. If I can only fire one intent, presumably I must receive that and then do my two actions? 3. ??? Jul 19 15:55:44 bleeptech- the bottom/top edge of the properties window? Jul 19 15:56:08 heh, eclipse is the king of terrible ui design Jul 19 15:56:16 everything is hidden away in options that you have to navigate forever to find Jul 19 15:56:22 csterling123: Yeah, It could be either place.. there's an option to flip to top/bottom. Jul 19 15:56:45 pfn: The dead ugly Java GUI thing doesn't make it any better. Jul 19 15:56:50 i can get it in that pallette bar option thing on the right. but you know what im talking about right, how you can click the little arrow to expand/hide the window Jul 19 15:57:07 paldepind: the funny thing is that the GUI is the one piece of Eclipse that isn't Java Jul 19 15:57:23 pfn: Ctrl-3 might be useful. It raises a prompt which you can type into and it'll search across all possibilities. (e.g. Create New Test, Restart, Change Maven Preferences, Annotation Processing, Show Problems VIew) Jul 19 15:57:33 paldepind, it isn't java UI, it's swt Jul 19 15:57:34 tom39291: send a pending intent to a broadcast receiver. Have that receiver change state, and start the activity. Jul 19 15:57:50 programmer jokes > https://joindiaspora.com/posts/1653418 Jul 19 15:57:52 paldepind, netbeans and intellij are java Jul 19 15:58:06 lov: Sounds good. Thanks. Jul 19 15:58:13 p_l: Pardon my misunderstanding. It was ugly so I assumed it was Java UI. Jul 19 15:58:23 java uis don't have to be ugly Jul 19 15:58:27 derp. okay so i just clicked the Java EE button instead of Java and it got me what im looking for Jul 19 15:58:28 I'm using Android Studio. Isn't that Java either? Jul 19 15:58:30 romainguy proved that long before he joined the android team Jul 19 15:58:33 Napalm: yes, diaspora does count as a programmer joke... Jul 19 15:58:33 in case anyone was wondering Jul 19 15:58:38 android studio is pure java Jul 19 15:58:51 paldepind: Eclipse actually links to OS-specific libs (as well as GTK) Jul 19 15:58:53 do you guys prefer android studio over eclipse? Jul 19 15:59:00 I prefer intellij over eclipse Jul 19 15:59:02 android studio is a dead end Jul 19 15:59:18 pfn, they're always worse than Qt og GTK on a Linux desktop. Jul 19 15:59:22 paldepind: Android Studio is built on the same engine as IntelliJ (it's actually a customized, constrained version of IntelliJ) Jul 19 15:59:27 pfn: Why is android studio a dead end? Jul 19 15:59:42 As far as cohesivenes goes. Jul 19 15:59:45 (I still use Eclipse for Android, fwiw.) Jul 19 16:00:02 tom39291: depends what you're using it for. But essentially, Android Studio is kinda a proving ground for next-gen Android support in IntelliJ Jul 19 16:00:12 I kind of like android studio Jul 19 16:00:15 paldepind, "they're" ? android studio looks good regardless of platform Jul 19 16:00:35 tom39291, because it is a limited subset of intellij, which is already free and supports all the features of android studio Jul 19 16:00:52 tom39291, so if you actually want to use intellij plugins, being in android studio is a dead end Jul 19 16:01:06 well, *will* support - Android Studio stuff is part of next version of IntelliJ Jul 19 16:01:07 (intellij CE, to be specific) Jul 19 16:01:12 pfn: Oh I see. Jul 19 16:01:21 what is in android studio that isn't in intellij? Jul 19 16:01:27 not much, better logcat support, maybe Jul 19 16:02:08 pfn: they're as in Java GUI applications. Nope Android Studio doesn't look good. It's grey, boring and it looks different than the rest of my programs. Jul 19 16:02:25 paldepind, that doesn't mean it doesn't look good, it simply looks different Jul 19 16:02:29 pfn: there is a lot more, among it better support for resources Jul 19 16:02:31 gtk arguably doesn't look good Jul 19 16:02:38 p_l, doesn't seem better, but ok Jul 19 16:02:43 pfn: It looks both bad and different. Jul 19 16:02:51 pfn: but still, it will be included in IntelliJ 13 Jul 19 16:03:02 p_l, indeed, that makes AS somewhat of a dead end, still Jul 19 16:03:10 pfn: With a proper theme applied GTK looks super sleak. Jul 19 16:03:47 Hello everybody Jul 19 16:04:08 pfn: Look at something like Elementary OS and tell me GTK doesn't look good. Jul 19 16:04:13 Using a radiogroup with weighted children; if I want one button to be it's original size, and the others to be weighted around it, is this possible? Jul 19 16:04:29 paldepind, that's the same of java, apply the proper plaf to swing and it looks good Jul 19 16:04:35 s/plaf/laf Jul 19 16:04:44 paldepind: have you tried applying any themes to android studio? considering your statement that it looks grey and boring, darcula looks quite good in my eyes Jul 19 16:04:49 paldepind, so it's a nonstarter argument from the getgo Jul 19 16:05:30 i have a little question. Is possible have a callback on button MyLocation on GoogleMapV2? Jul 19 16:05:51 Thorbear: Nope I have not. I'll go ahead and try that :) Still doesn't solve the cohesiveness issues tough. Jul 19 16:07:35 there's kdevelop... but I guess that's kde and not gtk Jul 19 16:07:44 well, bug someone to write a gtk ide Jul 19 16:08:29 Thorbear: There is actually a GTK theme that somewhat integrates with my GTK theme. Nice. Jul 19 16:09:13 pfn: There is already a few GTK IDEs. I don't use them though. I've never used IDEs before my Android adventure. Always been happy with vim ;) Jul 19 16:09:54 I've been using vim until I integrated sbt-idea into my android plugin, now I use intellij Jul 19 16:10:06 and since ideavim is quite good Jul 19 16:11:40 Sounds cool. I must admit some of the IDE features are very neat and it's nice to get them without having to install tons of plugins. Jul 19 16:12:00 it's just very irritating that android studio won't install the sbt and scala plugins Jul 19 16:12:10 I think ideavim is the only 1 of 3 that I use that it will install Jul 19 16:13:12 Has anyone had issues with an EditText that has inputType="phone" not showing a numeric keyboard? Jul 19 16:14:19 pfn: Do you use Scala for Android dev? Jul 19 16:14:23 yes Jul 19 16:14:53 scala for my personal apps, and for clients that don't want scala, then scala for their unit tests Jul 19 16:15:48 What I the downsides of using Scala? Larder apk file size? I considered it but advised here to just go with Java. Jul 19 16:17:35 a little slower to build Jul 19 16:18:13 Sounds bearable. I'd much rather program in Scala. Jul 19 16:18:56 that is possible? Jul 19 16:25:24 Is what possible? Jul 19 16:27:26 i have a little question. Is possible have a callback on button MyLocation on GoogleMapV2? Jul 19 16:29:11 you don't program in Scala. Scala programs in you Jul 19 16:31:02 JakeWharton: scala must be russian? Jul 19 16:31:34 the syntax sure looks like russian Jul 19 16:31:41 unreadable gibberish Jul 19 16:32:17 yiati rottz, thanks for your attention Jul 19 16:33:25 JakeWharton: iswydt Jul 19 16:33:42 scala on android: real world experiences: https://groups.google.com/forum/#!topic/scala-on-android/P6ChascNT9A Jul 19 16:35:36 CatYak, indeed, I've been doing scala on android for the past few years Jul 19 16:35:48 :) Jul 19 16:37:33 pfn: do you hate yourself for it? :( Jul 19 16:37:46 no, why would I Jul 19 16:37:47 I think it is possible https://code.google.com/p/gmaps-api-issues/issues/detail?id=4789 Jul 19 16:38:03 man, this new league of legends comic is badass Jul 19 16:39:42 sorry, i thinks it is not possible. don't a have a callback when i press myLocation button Jul 19 16:40:18 So, if I have a view obscuring another view on screen that isn't interactable, I should "setWillNotDraw", correct? Jul 19 16:40:28 Do I have to do it for the ViewGroup and all of its children? Jul 19 16:43:19 paldepind, a little slower to build has pretty much been 99% rectified by having better unit tests and using intellij Jul 19 16:43:22 Dalvik VM, you are going to end me >.> Jul 19 16:43:25 (for better layout previews) Jul 19 16:43:31 intellij layout previews are so badass Jul 19 16:43:47 beats the snot out of eclipse's Jul 19 16:44:07 at least since I tried it out years ago Jul 19 16:45:17 they both share the same code Jul 19 16:45:30 layoutlib Jul 19 16:45:46 pfn: do you use maven? Jul 19 16:46:23 lexs, no, I don't Jul 19 16:46:37 JakeWharton, interesting, I guess adt has improved in a meanwhile then Jul 19 16:46:46 I despise maven Jul 19 16:48:36 what's wrong with maven? Jul 19 16:48:52 hwrd|work: setWillNotDraw() should only be used on Views that won't draw any content, just children Jul 19 16:49:05 so unless you are creating a custom ViewGroup, there's no reason to use this flag Jul 19 16:50:37 romainguy: I'm just looking for a way to tell the system that it doesn't need to draw the obscured view. Does Android do that for me automagically? I haven't really looked too much into it at this point. Jul 19 16:50:55 the best thing to do is to not have obscured view Jul 19 16:51:18 setVisibility doesn't work for you? ;d Jul 19 16:51:31 SimonVT: I was just trying that! Jul 19 16:51:44 Haven't hit build+run yet, but hopefully that helps! Jul 19 16:54:43 lexs, too much xml boilerplate for much of the same thing over and over Jul 19 16:55:19 So guys, any good ideas for me to pitch at the MAKEwithMOTO event I'm going to be in this weekend? Jul 19 16:55:27 It's gonna be really fun, but I haven't had enough good ideas yet Jul 19 16:55:29 D: Jul 19 16:55:32 at this point I'm convinced Maven is a religion Jul 19 16:55:53 I think it only comes second to OSGi in how vocal and persistent its proponents can be :) Jul 19 16:56:03 hahaha Jul 19 16:56:39 Maven is the devil Jul 19 16:56:41 It's a cult Jul 19 16:57:02 cult of mac Jul 19 16:57:41 pfn: while i agree with that i haven't really found anything better Jul 19 16:57:49 lexs, not to mention the inane and obscure plugin:target naming convention Jul 19 16:57:50 android gradle is promising but not ready yet Jul 19 16:58:15 lexs, I've been using sbt quite happily Jul 19 16:58:31 of course, I've put in a shitton of work to make my android builds with sbt awesome Jul 19 17:00:00 sbt? Jul 19 17:00:26 all of my client projects have sbt builds as well, in addition to building the "normal" ways Jul 19 17:00:34 lagann, different build tool Jul 19 17:00:44 interesting Jul 19 17:00:55 Special Build Tool, for special people Jul 19 17:01:04 special needs Jul 19 17:01:07 get it right Jul 19 17:01:09 :p Jul 19 17:01:20 Sorry Jul 19 17:01:21 simple build tool, for simple people. Jul 19 17:01:24 special needs people Jul 19 17:01:35 if only the s still actually meant simple... Jul 19 17:01:40 for simple cases, it is really simple, though Jul 19 17:03:08 e.g. for a very simple android project, just 'echo android.Plugin.androidBuild > build.sbt' ; echo 'addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "0.7.6") > project/plugins.sbt' Jul 19 17:03:15 and you have a working android build with sbt Jul 19 17:03:29 (prior to this, android create project, or create a project from eclipse) and it just works Jul 19 17:04:47 "It just works" What are you, Apple? Jul 19 17:05:12 romainguy: I've seen your answer on that Nexus10 ListView rendering bug, thanks Jul 19 17:05:46 N10 is da best Jul 19 17:05:47 <3 Jul 19 17:06:32 i've got a listener attached to a tablerow, is there a way to get the item in the row that was clicked on? here is the code, http://www.fpaste.org/26583/74253557/ Jul 19 17:07:25 TableLayout is a layout, not an interactive component Jul 19 17:07:41 it won't tell you what item was clicked inside the row Jul 19 17:07:45 use a GridView instead Jul 19 17:08:23 a gridview, ok, let me look that up and change everying, thanks Jul 19 17:09:31 Any clue why I'm getting this error: No resource found that matches the given name (at 'title' with value '@string/pref_title_sync_frequency'). Jul 19 17:09:49 I'm not referring to that recourse anywhere. Jul 19 17:10:45 read the full error, it tells you what is referring Jul 19 17:10:56 errors always have locations Jul 19 17:12:39 I don't refer to a string with that name anywhere in my code. Jul 19 17:13:36 Is it possible to see which file is causing the error? Jul 19 17:18:34 God this feels so good Jul 19 17:18:35 lol Jul 19 17:18:43 Nothing feels better than fixing an issue after days of work Jul 19 17:22:13 palpepind, it may not be related, but I sometimes get that error when I do something like TextView.setText(int). Jul 19 17:22:23 So it looks for a resource Jul 19 17:23:26 BenOrnstin, that would not happen in that error Jul 19 17:23:28 that is an aapt error Jul 19 17:23:43 that error would only occur in xml resources Jul 19 17:23:50 paldepind, and the error should be accompanied by a filename Jul 19 17:23:53 Ah, okay Jul 19 17:24:20 you'd get a crash at runtime if it was because of setSomeResource(int) Jul 19 17:24:24 not compile time Jul 19 17:24:57 * Bleeptech is confused.. Jul 19 17:25:27 Yo, does anyone know when/how the LoaderManager and its loaders are released from mem? Jul 19 17:25:43 How in the hell do I dump the contents of a JSONObject to the log? Jul 19 17:26:07 stringify Jul 19 17:26:12 Bleeptech: JSONObject.toString() Jul 19 17:26:15 I thinik Jul 19 17:26:22 or maybe it's .getJSONString() Jul 19 17:26:23 I forget Jul 19 17:26:46 pfn: stringify is Java>JSON Jul 19 17:27:18 Bleeptech: YOu can just do myJSONObject.toString() and it dumps it as a json string Jul 19 17:27:19 java to json string, not java to jsonobject Jul 19 17:27:27 anyway, org.json is worst api ever Jul 19 17:27:29 pfn: I get a lot of those errors. This is another one: "Gradle: No resource found that matches the given name (at 'title' with value '@string/pref_title_sync_frequency')." Jul 19 17:27:34 you're the worst api ever. Jul 19 17:27:35 pfn: You're the worst API ever D: Jul 19 17:27:37 lol Jul 19 17:27:41 Dangit lov, stop being me D: Jul 19 17:27:41 o/ Jul 19 17:28:23 Brian|CB: It's .tostring, But I'm having hell getting Log.d() To take it. LOL.... Jul 19 17:28:48 Bleeptech: Log.d(TAG, "JSON Obj was " + jsonObj); Jul 19 17:28:51 * lov shrugs Jul 19 17:28:53 pfn: And in the end of the error messages there's one big error message with some filenames. But they are in build/res/all/debug/... so it's not files I've written myself and even when I look at them I don't see any of the mentioned string names. Jul 19 17:29:15 paldepind, build/res/all/debug is copied from your resources Jul 19 17:29:27 paldepind, anyway, nuke build/res/all and try again Jul 19 17:29:28 maybe it's stale Jul 19 17:29:40 happens if you delete resources Jul 19 17:29:42 possibly Jul 19 17:29:52 I'm not exactly sure how the merge resources code works Jul 19 17:29:54 lov: TY. :) Jul 19 17:31:24 Bleeptech: Log.v("JSONIsDumb", myJSONStuff.toString()); Jul 19 17:31:33 Unless you are using a huge json object Jul 19 17:31:35 it should be able to handle it Jul 19 17:31:36 O.o Jul 19 17:31:48 JSONIsDumb? Jul 19 17:31:51 don't use JSONObject, ever, just use GSON and be happy Jul 19 17:32:04 Alternatively if you are using a bigger json object and for some reason still want to log it, you can just iterate through its keys and log each of the keys->value as a string Jul 19 17:32:48 Or use toString(int) Jul 19 17:33:01 pfn: Tried it. They appeared again. Well, maybe I should read some more documentation. I have little idea if what I'm doing or why there is a pref_notification file in my xml resources. Jul 19 17:41:21 My chrome browser has been way underperforming recently Jul 19 17:41:22 :S Jul 19 17:42:30 Brian|CB: beat it for obstinance and laziness Jul 19 17:42:43 mine always is Jul 19 17:42:50 the size of it is HUGE Jul 19 17:42:53 over 400MBs Jul 19 17:42:56 I'm really dissapointed Jul 19 17:42:58 it crawls to start up Jul 19 17:42:59 Google is lettin me down Jul 19 17:43:06 stock browser is 10x faster Jul 19 17:43:09 and the way that when like you change tabs, the music/video you are watching tends to like skip... Jul 19 17:43:11 that pisses me off Jul 19 17:45:04 is multitouch testing still not supported in the emulator? Jul 19 17:45:21 all my google replies are from 2010 or earlier Jul 19 17:49:06 paldepind, grep it out Jul 19 17:52:29 pfn: I just deleted the four pref_*.xml files the recourse. I think the IDE created them because I did something I souldn't have done. Jul 19 17:58:36 can anyone give me some insight into the call stack of an android app? Here's my question on SO http://stackoverflow.com/q/17749798/1546713 Jul 19 17:59:34 azrosen92: I'm not sure I understand what problem you're having. Jul 19 17:59:57 did you read the SO question? Jul 19 18:00:15 it's kinda long I couldn'r write it all here Jul 19 18:00:16 Yes, I read it, but I'm not sure what the problem you're actually having is. Why do you need both an onClickListener and an onCheckedChangeListener? Jul 19 18:00:39 because the onCheckChangedListener doesn't uncheck a radio button Jul 19 18:00:42 well Jul 19 18:00:50 ok, let me step back. Jul 19 18:00:56 ok... Jul 19 18:01:12 Why do you have an onClickListener on a radio button whose job it is to uncheck that button? Jul 19 18:01:37 I have a feeling that your problem stems from your solution simply being poorly architected. What are you trying to DO here? Jul 19 18:01:51 i need this radio group to have three options Jul 19 18:01:59 one for each radio button selected Jul 19 18:02:05 memoryleak: Go away. I fixed you already. D: Jul 19 18:02:11 and then a third where neither is selected Jul 19 18:02:20 Brian|CB: No one wants me :( Jul 19 18:07:57 BaseAdapter and notifyDataSetChanged needs to support an int parameter specifying a position. This would redraw a single position instead of all visible views. Jul 19 18:09:01 looks like DataSetObservable needs tweaking Jul 19 18:09:07 So, can anyone explain to me how and when Loaders and their associated data is released from memory? Jul 19 18:09:43 nseidm1: this is something we'd like to do Jul 19 18:09:51 :-) Jul 19 18:10:26 to make this useful though we would need to make sure sqlite can give us enough information about data changes Jul 19 18:10:34 Brian|CB: I dunno.. I'm still trying to figure out why the basic AVD load has memory leaks all over the place... LOL.. Jul 19 18:10:50 i suppose you could always use ContentObserver/ContentObservable and use the Uri Jul 19 18:10:53 Bleeptech: Yeah, memor yin Android is confusing Jul 19 18:10:57 I've been able to solve almost all my leaks Jul 19 18:11:03 but I still feel like loaders are causing a leak somewhere Jul 19 18:11:06 although it is hard to tell Jul 19 18:14:53 what about profiling? Jul 19 18:15:42 Napalm: napalmmmmmmmmmmmmmmmmmmmm Jul 19 18:16:01 hey nseidm1 Jul 19 18:33:41 if i have some edittexts, how do i know when the user is done editing the text? Jul 19 18:34:48 kc8hfi: telepathy ? the text stops changing ? Jul 19 18:35:01 Have them click a button? Jul 19 18:35:04 they press save Jul 19 18:35:14 StingRay_: :) Jul 19 18:36:07 kc8hfi: 'Next' button? When they hide the keyboard. Jul 19 18:36:43 hmm, the emulator don't have that next button Jul 19 18:37:17 kc8hfi: depends on what you mean by "done" Jul 19 18:37:30 kc8hfi: if the view loses focus, that might work. Jul 19 18:37:39 kc8hfi: you could always start a timer when the content changes, of course. Jul 19 18:38:12 i don't think edittexts is what i want though, let me explain a bit more. here is the code for the adapter for the gridview Jul 19 18:38:29 then why did you say edittexts >_< Jul 19 18:38:57 lov: i tried edittexts and it didn't work like i was expecting. Jul 19 18:39:36 TextWatcher Jul 19 18:39:40 oh ^^ Jul 19 18:40:16 each row in this gridview is a record in a dbase table. the user can change the stuff, and i want to write their changes back to the dbase. Jul 19 18:40:33 i don't want to update every single record in teh dbase, only the row that the user changed stuff in Jul 19 18:40:44 where clause Jul 19 18:41:49 i know the textwatcher, it will tell you when the text is being changed, but i don't hink it tells you when the editing has stopped. plus, edittext don't have an onclick listener - which leaves me not knowing which row they are on. Jul 19 18:42:35 editText has an onTouchListener, look for ACTION_UP Jul 19 18:43:11 i could make it a button, you click the button, a dialog comes up with an edittext and an ok button, once ok was clicked, i could then update the dbase with the new text right along with the text on the initial button. Jul 19 18:43:17 determining when editing text has stopped is subjective Jul 19 18:43:27 it can be 1 second, or 1 minute Jul 19 18:43:32 you need feedback Jul 19 18:43:42 a button, or a delay after the TextWatcher stops Jul 19 18:43:44 yeah.... Jul 19 18:44:12 i could have one big save button, let the user edit anything on the grid to their hearts content, then when they are ready, they could click that big save button, and then i could do the dbase update Jul 19 18:44:26 indeed Jul 19 18:44:30 save onPause Jul 19 18:44:45 yes, definitely save inside onPause Jul 19 18:45:26 but now i'm right back to where i started, trying to figure out which row and column the individual edittext thing lives. Jul 19 18:45:50 put the where clause in the tag of the edit text Jul 19 18:47:50 oh, you mean like put the real where clause in there, like "where vid = 1 and desc = ?" Jul 19 18:48:01 sure, why not put the whole thing Jul 19 18:49:32 just update the db using a TextWatcher 3 seconds after typing stops Jul 19 18:49:34 that'll be fine Jul 19 18:50:09 I, uh, wouldn't put a physical where clause into the tag, but I would store some relevant information there. Jul 19 18:51:04 you could also create a subclass of the textwatcher that actually contains the info about where the content lives, and update that every time your adapter handles updating stuff. Jul 19 18:51:04 can you put more than one tag? Jul 19 18:51:08 no Jul 19 18:51:18 because i'm gonna need the id, and i'm gonna need to know which column Jul 19 18:51:25 so create a class that contains this info? Jul 19 18:52:03 Use a SparseIntArray to map an object with your col and id to the position Jul 19 18:53:06 i wrote a program in qt that did this exact same thing, and its a heck of a lot easier to do this in qt than it is in android Jul 19 18:53:16 nah Jul 19 18:55:04 hi Jul 19 18:55:08 side note, does anyone gag a bit when they get a crash report from a tablet running Android 2.2 Jul 19 18:55:12 anyone know how would I have my system install apps by default to the SD card in my device? Jul 19 18:55:15 So I have a custom imageview. In the overridden draw function I'm attempting to draw a drawable to the canvas, but its not showing up while the other things i draw to the canvas do show up... any ideas? I set the bounds of the drawable correctly and i verify that it loads in correctly... Jul 19 18:55:33 kc8hfi, not convinced, took fewer lines of code in qt to perform the exact same functionality? Jul 19 18:55:37 let me look into the textwatcher, and i will need that timer for sure, because afterTextChanged gets fired a lot when editing a Jul 19 18:55:42 ShapeShifter499: is your device 2.3 or below? Jul 19 18:55:50 no Jul 19 18:55:58 nseidm1, no Jul 19 18:56:46 not gonna happen then. Although I heard Samsung hacked apps to SD into their latest monstrosity Jul 19 18:57:31 pfn: for me, it was actually easier to understand and write, lines of code wise, qt has more lines and I think its more powerful Jul 19 18:57:59 Pyuruku: is there a background when your draw the drawable? Jul 19 18:58:13 kc8hfi, then it wasn't easier to understand or write Jul 19 18:58:14 yes Jul 19 18:58:52 its 9 patch background -> placeholder image -> selection icon (which is what im trying to draw) Jul 19 18:58:55 you're coming at this from the perspective of "oh, I know qt, android should work the same way; so it'll take no time to write" Jul 19 18:59:07 Hey Jul 19 19:00:09 i'm coming with the perspective that its a table of data, with rows and columns, if something changes somewhere, i need the row and column so i know what to do Jul 19 19:00:24 Anyone here experienced nullpointerexception in iabhelper from the in-app billing package? https://code.google.com/p/marketbilling/source/detail?r=7ec85a9b619fc5f85023bc8125e7e6b1ab4dd69f Jul 19 19:00:43 Quacked: yup, happens infrequently Jul 19 19:01:12 you do any workaround to prevent it? Jul 19 19:01:20 pfn: anyway, i'm off to learn more about TextWatchers Jul 19 19:01:41 Quacked: nah, too lazy. I have 100,000+ users and have only seen the crash a couple of times Jul 19 19:02:05 how many do you think report crashes? Jul 19 19:02:23 Quacked: I have a custom exception handler that sends the crash directly to my email Jul 19 19:02:36 I've seen it maybe 3-5 times in the last couple of months Jul 19 19:02:46 I see Jul 19 19:02:48 well, thats good to know Jul 19 19:03:12 the app in question has 1000 users and its the first time Ive seen it Jul 19 19:03:28 is there something else you typically do when trying to draw a drawable to a canvas other than setbounds? Jul 19 19:03:35 you probably have like a .1% conversion rate for IAB Jul 19 19:03:35 :p Jul 19 19:03:40 I see theres a bug report here: https://code.google.com/p/marketbilling/issues/detail?id=114 Jul 19 19:04:03 looks like it was fixed in the latest IAB push Jul 19 19:04:06 just update Jul 19 19:04:10 pfn: I think its executed on every launch to check for purchases Jul 19 19:04:11 Hi anyone know about a video tutorial on "SQLite CRUD" , all the videos on youtube kinda sucks, also I wan't the video to start from scracth. Jul 19 19:04:36 nseidm1: in that change from 15. march you mean? Jul 19 19:04:38 pjds1988: just implement a ContentProvider, it's cruddy Jul 19 19:04:40 romainguy , Chainfire this Lr5 bug is funny: "Noise Reduction and Sharpening Not Visible on export" ( less than 1/3 of their original size ) Jul 19 19:04:45 haha Jul 19 19:05:44 pfn: it's a low conversion rate, maybe 5 subscriptions per day Jul 19 19:06:11 nseidm1: that sebastie...@gmail.com guy suggests a workaround and it looks like hes using the version from march 15: https://code.google.com/p/marketbilling/issues/detail?id=114 Jul 19 19:06:44 nseidm1: I need a sqlite crud video tutorial, I want this to be proper. also if the tutorial includes save pictures to the database that would be great. Jul 19 19:07:36 sqlite crud, yes you can implement an SQLiteHelper directly, but why do that when you can have the entire facility of a content provider Jul 19 19:08:05 nseidm1: you don't think "if(mDisposed) return IABHELPER_UNKNOWN_ERROR;" is needed? Jul 19 19:08:23 nseidm1: let me research about that. Jul 19 19:08:50 Quacked: I don't know, frankly I'd recommend just debugging the stack trace and handle the exception Jul 19 19:09:22 It's likely a race condition, and hopefully trivial Jul 19 19:09:50 you use the version pre march 15? Jul 19 19:10:21 unfortunately I don't recall Jul 19 19:10:51 pre march 15 doesnt have the boolean mDisposed Jul 19 19:10:55 if you have code available to check Jul 19 19:12:33 think ill ignore it for now and include march 15 build if I find something to improve in the app Jul 19 19:13:16 just stay up to date Jul 19 19:13:20 that'll be just fine Jul 19 19:17:39 pfn do you have any idea how long it takes the rhino interpreter to start up? Jul 19 19:18:02 is there a point to that "promo" image google wants you to make now that google play is different? Jul 19 19:18:14 Quacked that pissed me off :| Jul 19 19:18:34 why can't they just show the page as if there is no promo image Jul 19 19:18:40 g00s: I spent some hours making cool images for that Jul 19 19:18:46 and if you do have one, show it Jul 19 19:18:48 yeah Jul 19 19:19:01 but I didnt make any for the two newest apps Jul 19 19:19:08 Where is the best place to unregister a fragment from an eventbus? Jul 19 19:19:09 so Im split if its a good thing or not Jul 19 19:19:09 hehe Jul 19 19:19:34 if no promo image is uploaded, the current layout is nice. Jul 19 19:19:46 the old way, seemed like there was a lot of unused space at top Jul 19 19:20:18 and that small promo image.. is that in use anymore? Jul 19 19:20:23 I think that was for the mobile version Jul 19 19:20:30 dunno Jul 19 19:20:44 but all apps on mobile versions are shown as squares now I think Jul 19 19:21:16 except for "editors choice" maybe Jul 19 19:23:43 memoryleak: onPause Jul 19 19:25:45 has anyone ever noticed that when using the "compatibility menu" (3 dots in navbar) on a Nexus 7, if you hold the device upside down, the menu popups on the wrong side of the screen Jul 19 19:27:57 haha Jul 19 19:28:07 Anyone here know of a solid synergy / input director app for android? I want to move my pc mouse out of the pc screen and onto my phone. ShareKM can do it but it does not support other keyboard layouts than english (https://play.google.com/store/apps/details?id=com.liveov.skm). Jul 19 19:28:41 anyone know any MOOC about android development? Jul 19 19:32:23 my cousin calls me a mooc Jul 19 19:37:56 Chainfire: No, But you can send me a N-7 and I'll try it. :D Jul 19 19:38:53 ^ Jul 19 19:39:24 ug, gradle plugin 0.5.4 - wow, this stuff is getting updated like every day this week Jul 19 19:40:01 Hello Darlings! Is it possible to set a default theme/style for all my toast messages (i.e. without doing .setView(…)) ? Jul 19 19:43:29 g00s: we can only hope Jul 19 19:44:20 marrrk: public classs MyToast extends Toast Jul 19 19:44:38 nseidm1: Nah, that wouldn't work in my case. Jul 19 19:47:12 g00s, the rhino interp is a java object, as long as it takes to instantiate, which isn't long at all Jul 19 19:50:08 g00s, and yes, fast updates is good Jul 19 19:52:44 what does adb push su do on windows? Jul 19 19:53:09 nothing Jul 19 19:53:19 what is it intended to do? Jul 19 19:54:52 what I want to do is change my emulator's host file to use my local environment Jul 19 19:55:00 same same. Jul 19 19:56:21 what are the likely reasons I'd be getting the runtime error with my app: "error opening trace file: No such file or directory" Jul 19 19:56:24 I have Jul 19 19:56:42 julianoliver: you use stock rom? Jul 19 19:56:47 no Jul 19 19:57:02 I think I've read that it could occur at least with cyanogenmod Jul 19 19:57:19 I got it on my galaxy s2 with cm 10.1 Jul 19 19:57:26 ok. that's what i'm using. good to know it's not an Android problem specifically Jul 19 19:57:45 * julianoliver must buy new guineapig phone Jul 19 19:57:51 I dont think it mattered though Jul 19 19:58:00 anyone know here a MOOC about android? Jul 19 19:58:02 Quacked: doesn't run. Jul 19 19:58:09 julianoliver: app doesnt run? Jul 19 19:58:13 nope Jul 19 19:58:17 oh.. it did here Jul 19 19:58:31 ok. will see if i can force it over the error hill. Jul 19 19:58:44 pjds1988: no, but only yesterday did I learn that term :P Jul 19 19:59:20 pjds1988: http://bit.ly/12TaejN Jul 19 20:00:48 this looks mookie https://www.facebook.com/UPOpenUniversity/posts/512834675437638 Jul 19 20:02:38 Cool guys! Jul 19 20:05:41 Hello friends, I have a problem with ViewPager/FragmentStatePagerAdapter. The thing is every time my screen rotates after the whole recreation process my onCreateView gets called twice ( first time with savedInstanceState) the second time with null, both times with my same page. when I rotate my screen again, onCreate gets called three times first time with SAvedState null then non null and null again Jul 19 20:05:55 This patterns repat for every orientation change I do. Jul 19 20:07:30 BojanBG: maybe every roation your adding another "same" fragment instance" ? Jul 19 20:07:48 BojanBG: you are creating two of the same fragment Jul 19 20:08:01 avoiding adding the same fragment multiple times by checking for the tag in the fragmentmanager Jul 19 20:08:37 Thank you for the answer, but isn't fragment statepageradapter intended to do just that Jul 19 20:08:44 keep track of my fragments Jul 19 20:08:59 BojanBG: add FragmentManager.enableDebugLogging(true); to the start of your activities onCreate to monitor your fragment transactions in logcat Jul 19 20:09:38 I want to show a clickable link in an AlertDialog. For this I can't use setMessage but have to create a TextView and set it via setView. However, then the normal layout (padding, font size, font color) is lost. I'm found the used padding/font size values but how can I get the correct color of the theme at runtime? Jul 19 20:10:32 I'm using the TrafficStats API to measure how much data my application uses. Unfortunately, this API does not show me bytes that were sent to or sent from my application only. Rather, it shows total usage. This is over WiFi is the anyway to measure my applications data usage? Jul 19 20:10:41 Napalm, I will do just that thank you Jul 19 20:11:57 EPG: no you dont. just use a SpannableStringBuilder and assign spans to make clickable/font/style/color changes, using AlertDialog.Builder#setMessage(CharSequence).. since SpannableStringBuilder is a CharSequence Jul 19 20:12:44 Anyone here a beginner and can find the "android official documentation by google" helpful? Jul 19 20:12:51 Napalm, I've already tried this using Linkify. The link is created and blue/underlined but not clickable. I guess Linkify does exactly what you suggest? Jul 19 20:14:23 napalm, http://pastebin.com/b8DCFknC Jul 19 20:14:33 Does this ring a bell? Jul 19 20:14:45 pjds1988: It was definitely helpful, I think it could have used more code examples however. Jul 19 20:15:51 BojanBG: are you sure your just not realising that a ViewPager can instantiate multiple "page views" and therefore multiple fragments Jul 19 20:16:05 I mean if you know RoR, Micheal Hartly tutorial more helpful for beginner than the google android documentation. Jul 19 20:16:07 I have a viewPager with just one page at the moment Jul 19 20:16:08 it will construct them offscreen, ready to be scrolled to Jul 19 20:16:18 I am aware of that Jul 19 20:16:31 heh, then you are totally screwing something up Jul 19 20:16:31 lol Jul 19 20:16:31 I have stripped all pages in order to figure this out Jul 19 20:16:44 gimme a moment Jul 19 20:16:46 It is constantly on each rotate reinstating new fragments Jul 19 20:16:56 ah Jul 19 20:16:57 i know Jul 19 20:17:00 :O Jul 19 20:17:14 your ViewPager needs a constant id to identify the fragments again Jul 19 20:17:39 hi all Jul 19 20:17:39 go add to your resources Jul 19 20:17:46 then set it as the id for the ViewPager Jul 19 20:17:52 Are you serious? Jul 19 20:17:54 yes Jul 19 20:17:55 let me try Jul 19 20:18:21 EPG: Jul 19 20:18:25 still around? Jul 19 20:18:39 yep Jul 19 20:18:46 you can change your link text color Jul 19 20:18:53 after AlertDialog#show() Jul 19 20:18:54 do this Jul 19 20:19:08 quick question: if I invoke a ContentProvider operation ( e.g. getContentResolver().insert(…) ), what thread does it run in? I presume it runs whatever thread called the method Jul 19 20:19:35 Yes Jul 19 20:20:03 If something is "thread-safe" it means that multiple threads can call and access the variables, it is programmed such that these variables are locked and unlocked when needed and not needed. Jul 19 20:20:09 ((TextView)alertDialogInstance.findViewById(android.R.id.message)).setLinkTextColor(Color.RED); Jul 19 20:20:14 EPG: ^ Jul 19 20:20:26 I dont know of any exception to the idea that everything is ran in the thread it is called in Jul 19 20:20:56 Processes within functions might run on a separate thread (I dont know enough to say whether or not that is true), but as far as I know all your calls run in the thread they are called in Jul 19 20:21:29 ok, thanks Jul 19 20:22:10 karakuri: break point on your getContentResolver().insert(...); line and break-point inside your ContentProvider's insert function.. now run app in Debug mode.. check weither or not they are the same thread by looking at the stack Jul 19 20:22:43 good idea Jul 19 20:22:45 Napalm, http://pastebin.com/pNQ53yds still same behaviour. I did what you asked: mPager.setId(R.id.My_View_Pager); and created in strings.xml. Jul 19 20:23:41 Napalm, the problem is that links aren't clickable when using setMessage. I might've found a solution on SO, will get back soon Jul 19 20:24:02 Btw, I have instantiated the view pager from XML, and it already had a ID now that I think of it. Jul 19 20:24:28 EPG: they can be Jul 19 20:25:03 EPG: ((TextView)alertDialogInstance.findViewById(android.R.id.message)).setMovementMethod(LinkMovementMethod.getInstance()); Jul 19 20:25:13 tada.. magic :P Jul 19 20:25:41 Napalm, yep, that's the method I've found on SO :D Jul 19 20:27:26 BojanBG: your going to need to post some of your code Jul 19 20:27:56 Right away Jul 19 20:28:07 first of all Jul 19 20:28:09 clear your log Jul 19 20:28:17 start the app up fresh Jul 19 20:28:29 then rotate and save the log for FragmentManager Jul 19 20:28:58 because the one you have posted does not provide context since you only saved the FragmentManager lines Jul 19 20:31:04 Did you get the pm? Jul 19 20:34:21 Napalm, works quite well, now I just have to mark the link as selected when it's being clicked Jul 19 20:35:09 EPG: your Color that to set needs to be a ColorStateList that is a res/color/selector.xml type resource Jul 19 20:37:46 which is the best 2d game engine for android these days ? Jul 19 20:37:53 pjds1988: It was definitely helpful, I think it could have used more code examples however. Jul 19 20:37:57 I'm using the TrafficStats API to measure how much data my application uses. Unfortunately, this API does not show me bytes that were sent to or sent from my application only. Rather, it shows total usage. This is over WiFi is the anyway to measure my applications data usage? Jul 19 20:38:01 pjds1988: sorry, mistake. Jul 19 20:39:06 deadmund: i believe ddms has a network monitoring mode Jul 19 20:39:19 Napalm: I'll take a lookg. Jul 19 20:41:43 can anyone help me figure out DialogFragments? Jul 19 20:42:27 the documentation is confusing me. i think i have an intermediate understanding of regular frags, but am confused about how to create a dialogFrag Jul 19 20:52:40 csterling123: what do you have so far? Jul 19 20:54:14 csterling123: here's a quick example: new DialogFragment().show(getFragmentManager(), "dialog"); Jul 19 20:54:22 your job is to turn that into a dialog you want Jul 19 20:55:13 let me get my code into a pastebin...give me a few minutes my supervisor needs something done first... =/ Jul 19 21:03:24 okay- main activity: http://pastebin.com/muCpM99j, dialogFrag: http://pastebin.com/f7KaTVN4, dialog frag layout: http://pastebin.com/5nRCXZw1 Jul 19 21:03:34 evanc- see my post above with code links Jul 19 21:05:24 im currently stuck at the showDialog() method in the mainactivity Jul 19 21:05:25 Hi, I have imported and integrated admobs ad sdk into my eclipse workspace. I have my account set up with Admob. My ads still won't display, and I don't know why. Would someone help me figure out why my ads are not showing up? Jul 19 21:06:51 csterling123: well that won't even compile (line 68) Jul 19 21:07:12 csterling123: also, don't name your class dialogFragment unless you hate every person that will ever have to look at this code Jul 19 21:07:14 im aware of that. the second arg is a 'dialog' tag Jul 19 21:07:27 and i dont know where to get that value Jul 19 21:07:47 csterling123: just pass in whatever string you want. Put "csterling123" if you want. Jul 19 21:07:57 really...ok Jul 19 21:08:03 thx for the tip on the class name Jul 19 21:08:29 second: what isn't working about this? Jul 19 21:10:11 well okay, now i've fixed my showdialog method Jul 19 21:10:30 since you can pass any string as the tag, that was one question i had which is why the code was incomplete when i uploaded to paste bin Jul 19 21:11:16 so in the onCreate method in the activity, i have an onClick listener on a button w/ the id dialogFrag (probably should change that, eh?) and i am getting an error on the setOnClickListener line Jul 19 21:11:45 it says onClickListener cannot be resolved to a type Jul 19 21:11:45 and Jul 19 21:13:02 the method setOnClickListener(View.onClickListener) in the type View is not applicable for the arguments newOnClickListener(){} Jul 19 21:21:37 Hi Guys! Have some of you needed to put an Adapter inside another? Jul 19 21:22:08 I have a list, and inside each item, there is a horizontal liste. Jul 19 21:22:10 list* Jul 19 21:22:19 Hi! I created my first app today to learn about development on android. It's a simple Celsius to/from Fahrenheit converter. But the apk file is pretty big. I need help understanding why that is. Thanks. Jul 19 21:22:34 how big is it? Jul 19 21:22:46 214kB Jul 19 21:23:10 have the support libs in there? Jul 19 21:23:58 evanc- you still around? Jul 19 21:24:18 I think so. Is is the android-support-v4.jar in /libs? Jul 19 21:24:26 yes Jul 19 21:24:35 have you tried running proguard? Jul 19 21:24:49 also 214KB isnt that bad Jul 19 21:24:52 it was in 2009 Jul 19 21:24:53 csterling123: had a call, one sec Jul 19 21:24:54 but not today Jul 19 21:25:05 evanc- np i understand how that goes :D Jul 19 21:25:10 When do I need to include support libs? Only when I include external libs? Jul 19 21:25:24 csterling123: can you pastebin your complete onCreateView method? Jul 19 21:25:40 ah...yeah i did Jul 19 21:25:49 Yeah, but I see very functional applications with much smaller size. Jul 19 21:25:56 umanx, when you want to use things like fragments on android 2.x Jul 19 21:25:58 for example Jul 19 21:26:17 i hear its always goof to use the support lib. more consistent bugs Jul 19 21:26:23 *good Jul 19 21:26:24 hah Jul 19 21:26:41 evanc- its not much at all... Jul 19 21:28:06 csterling123: I can't believe I'm doing this, but you seem eager to learn so make sure you understand why this is what you're trying to do before you just copy/paste: http://pastebin.com/2y39bCCE Jul 19 21:29:12 evanc- im sorry, before i copy/paste from my code? like i said, im confused on dialogFrags... Jul 19 21:29:33 canadiancow, thanks. Without the support lib it's 25.4k. Which is what I was expecting. Jul 19 21:29:52 evanc- so what you just pasted...why is the button there in the dialogfragment class and not in the activity? when the button being pressed is in the activity? Jul 19 21:30:03 csterling123: the button is on the dialog, yes? not on the activity Jul 19 21:30:05 evanc- and yes, im very eager to learn! =D Jul 19 21:30:22 evanc- but i want a button on the activity to open the dialog when pressed.. Jul 19 21:30:23 it's in the layout which you just inflated--the activity doesn't know about the dialog's views Jul 19 21:30:43 csterling123: right, I thought that was already happening in your activity's showDialog() Jul 19 21:31:07 csterling123: I guess I misunderstood the problem. Can we take this to /msg so we don't clutter up this channel? I have a few minutes to spare Jul 19 21:31:10 if i'm compiling with NDK, will gcc set some macros? like NDK_ANDROID=1 or something? Jul 19 21:31:19 evanc- absolutely. thank you man Jul 19 21:31:27 oops Jul 19 21:31:50 does /msg open a new channel window? Jul 19 21:49:48 damnit. this emulator so slow Jul 19 21:50:02 hi, if I create a class that extends Service, how do I manage it that it runs on a different thread? Is the system doing it on its own or do I have to create that thread myself? Jul 19 21:50:18 I dont know if its practise here to take problems to private chat, but I find it interesting reading about people's issues and solutions to them. Often it can lead to learning something new! Jul 19 21:50:25 nb-ben look at intentservice Jul 19 21:50:34 nb-ben: either start a new thread or use IntentService, depending on what you need to do Jul 19 21:50:40 alright, ty g00s Jul 19 21:51:13 dogarrhea: use an x86 emulatr with the intel driver or use GenyMotion Jul 19 21:51:15 Anthaas its far more fun than the google+ developers stream :D Jul 19 21:51:25 which hurts both my eyes and brain Jul 19 21:51:44 Haha - its not just me that enjoys reading issues then? Jul 19 21:52:02 For example the memory discussion etc yesterday, and the talk about managers and student projects! Jul 19 21:52:23 i second that notion - that's why i started hanging out here Jul 19 21:53:59 nb-ben: a service will run in a different thread when started via startservice, but will not run in a separate process unless you do special stuff Jul 19 21:54:52 dragorn it seem like it runs on the same thread as the main thread if I call startService on it Jul 19 21:55:18 perhaps I didn't override the correct method Jul 19 21:55:28 nb-ben: you're right, I'm having a low caffeine moment Jul 19 21:56:10 nb-ben: and of course g00s is right that you should look at IntentService Jul 19 21:56:20 time to find more coffee :P Jul 19 21:56:35 i think my medicine ball is about to pop Jul 19 21:56:41 well, I am making a file uploader kind of thing Jul 19 21:57:03 so I would either want the uploads to run simulataneously or to be able to show the amount of pending uploads Jul 19 21:57:21 is there a way for me to query for the pending work with IntentService? Jul 19 22:00:43 nope looks like I have no access to the looper's queue Jul 19 22:02:58 nb-ben: you have a few options: write the queue to a shared resource (db?), send an intent for each upload (they'll get delivered serially), or have a static blockingqueue Jul 19 22:05:22 I'll just make a service Jul 19 22:05:37 there is no reason a person would issue two uploads simultaneously with my application anyway Jul 19 22:09:12 If you assume users are going to use your app like you intended, you're gonna have a bad time Jul 19 22:20:59 So I have a Gridview above a custom notification view in a linear layout Jul 19 22:21:21 The notification view is not normally visible and expands to the correct height when needed and collapses afterwards Jul 19 22:21:41 when this happens, i notice that my gridview is constantly updating per step of the heighjt of the notification view changing Jul 19 22:21:46 which is expected behavior Jul 19 22:21:53 i was wondering where I could override this though Jul 19 22:22:22 i dont want it to update a million times qwhen the notification bar appears, it lags my UI a lot Jul 19 22:23:39 By not re-sizing the gridview as you're animating the notification view Jul 19 22:24:02 im not doing it explicitly, seems like the linear layout is doing that for me Jul 19 22:24:15 Yes Jul 19 22:24:30 Have the notification view overlay the gridview instead Jul 19 22:25:04 is that possible with linearlayout? Jul 19 22:25:10 i really dont want to change to something else Jul 19 22:25:13 the view is quite complex Jul 19 22:25:15 No, but it is with framelayout Jul 19 22:25:44 is there a more pain-free solution you can think of? Jul 19 22:25:55 That is the pain-free solution Jul 19 22:26:06 :/ Jul 19 22:26:44 can i maybe lock the size of the gridview? Jul 19 22:26:47 It'll take you about 30 seconds to wrap your gridview and notification view in a framelayout, then your problem is fixed Jul 19 22:27:04 how will that affect layout weights? Jul 19 22:27:15 FrameLayout doesn't have weight Jul 19 22:27:25 the gridview has a weight Jul 19 22:27:38 Why does it have weight Jul 19 22:27:44 so it takes up all of the space it can Jul 19 22:28:08 If it's just your gridview, it'd just be match_parent in the framelayout Jul 19 22:28:33 the entire view has a top bar and bottom bar as well Jul 19 22:28:35 If there are other views besides the gridview and notification view, wrap the gridview and whatever in a linearlayout, put linearlayout and notification view in a framelayout Jul 19 22:28:37 so it needs to fit between those Jul 19 22:29:11 that sounds naasty Jul 19 22:29:32 Then put the gridview and notification view in a framelayout Jul 19 22:30:16 so once i put the notification view in the framelayout, then what? Jul 19 22:30:34 Then it overlays the gridview and you won't have to resize it every frame Jul 19 22:30:41 automatically? Jul 19 22:31:30 https://developer.android.com/reference/android/widget/FrameLayout.html "Child views are drawn in a stack, with the most recently added child on top" Jul 19 22:33:28 okay, so now I have the notification bar on the top behind the fragment in the framelayout... Now its a matter of getting the fragment to display before the notification view? Jul 19 22:33:44 thing is, the fragmnet is added at runtime :/ Jul 19 22:36:48 so sleepy Jul 19 22:37:53 hm. i want a class from the model to be independent of android; but eventually it needs to be stuffed in an intent. i could use serializable , but yeah. whats the nicest way to handle this? Jul 19 22:41:26 hi Jul 19 22:42:01 my app uses holo.light.darkactionbar style Jul 19 22:42:34 i want to add a line(blue line) between my app and the actionbar? Jul 19 22:43:04 for somereason it works when i set actionbar shadowcolor... but the actionbar colour goes white as well Jul 19 22:44:28 g00s_, simple, don't stuff it in an intent Jul 19 22:44:33 g00s_, use other methods of passing data Jul 19 22:44:49 i guess i should say, it needs to go IPC eventually Jul 19 22:44:53 parcelable, whatever Jul 19 22:45:15 but i dont want the parcelable stuff in the library, because its not android-specific Jul 19 22:45:30 then keep the model pure, and create a subclass that is parcelable Jul 19 22:45:50 all the subclass needs to do is implement parcelable and CREATOR Jul 19 22:46:03 ok, that works Jul 19 22:46:09 thx pfn Jul 19 22:46:29 for some reason i thought i would have trouble with parcelables and subclasses Jul 19 22:47:07 i saw the way they wrapped UUID, and didn't really want to go that route Jul 19 22:47:56 iirc, the classname is stored with the parcelable so the creator can be reflected Jul 19 22:47:58 question, how do i define the theme that allows me to use an activiity as a dialog? Jul 19 22:47:59 so that's not a problem Jul 19 22:48:09 Shinkamui, Theme.Dialog Jul 19 22:48:45 can i configure it on my relativelayout in the layout editor? Jul 19 22:48:53 where it says style? Jul 19 22:49:04 no Jul 19 22:49:06 no in your manifest Jul 19 22:49:07 it goes on your activity Jul 19 22:49:07 for the activity Jul 19 22:49:46 ohic Jul 19 22:49:48 thats why its not workin Jul 19 22:49:57 so i have to just modify the manifest manually Jul 19 22:52:13 so there's no real emulator debugging type developer tools Jul 19 22:52:17 since android web dev is a joke right? Jul 19 22:57:35 perfect pfn, workin nicely Jul 19 22:57:46 here Jul 19 22:57:48 now, is there a way to have columns in a gridview autosize width wise? Jul 19 22:57:57 whats the name of the blue line just under the actionbar? Jul 19 22:58:37 So I have a framelayout that contains a custom view. At runtime, I dynamically add a fragment to this framelayout. The problem is that the custom view is now obscured, even though I want it on top of the fragment. I tried bringToFront but it doesnt seem to have any effect... is there a way I can specify where it adds the fragment in the layout?.. Jul 19 23:01:38 hmm.. requesting bringToFront in onResume seems to have worked... Jul 19 23:01:44 not sure if thats a good solution though Jul 19 23:03:16 Pyuruku: have you read the docs Jul 19 23:03:24 like addView() <-- Jul 19 23:03:45 after your fragment you could add your customView Jul 19 23:03:50 or remove and add Jul 19 23:04:00 and you you also can add at an index Jul 19 23:04:08 right, i was more wondering if there was an XML solution Jul 19 23:04:16 2 views Jul 19 23:04:19 or if i could directly add the fragment to the end of the layout Jul 19 23:04:32 one for your fragment target Jul 19 23:14:24 about:debug in android browser does nothing Jul 19 23:14:28 is this also supposed to happen? Jul 19 23:14:39 why the hell is android browser so shitty. even worse than ie6 ever was Jul 19 23:15:21 cause it's a mobile browser Jul 19 23:15:38 but not sure thats for this channel, this is app dev Jul 19 23:15:39 :) Jul 19 23:16:21 so use chrome Jul 19 23:16:22 or opera Jul 19 23:16:23 mobile web apps are also apps.. Jul 19 23:16:25 or firefox Jul 19 23:16:29 pfn i can't make my users use whatever Jul 19 23:16:36 i need to debug on the device Jul 19 23:16:53 then debug on device Jul 19 23:16:56 how? Jul 19 23:16:57 chrome supports it Jul 19 23:17:07 what about stock android browser Jul 19 23:17:21 using emulation Jul 19 23:17:23 ignore it Jul 19 23:17:31 ignore stock android browser? Jul 19 23:17:36 ok i'll tell the CTO Jul 19 23:17:36 do your debugging in chrome Jul 19 23:17:40 then fix bugs in stock browser Jul 19 23:17:44 by hand Jul 19 23:18:03 how does that even work Jul 19 23:18:12 lots of logging, and diagnostic divs Jul 19 23:18:14 there might be errors in the stock browser that chrome doesn't have Jul 19 23:18:25 generally same engine, probably not Jul 19 23:18:41 pfn so basically, go back to 1990s style web development Jul 19 23:18:47 a step back 20 years Jul 19 23:18:53 develop on chrome Jul 19 23:19:01 and fix problems when they come up Jul 19 23:19:09 really, not that hard Jul 19 23:19:44 it is a pain in the ass really. Jul 19 23:19:52 on desktop i click inspect element. Jul 19 23:19:54 so you say Jul 19 23:20:06 hey, i'm just doing some simple UDP networking, but i'm wondering if i need 2 threads in order to both recieve from a socket and send data through that socket at the same time (to keep all networking out of the UI thread) or can i somehow do it with just 1 thread? Jul 19 23:20:09 on mobile i need to recompile / deploy code via closure ocmpiler Jul 19 23:20:14 and write some extra code Jul 19 23:20:20 and log cat it. and then i'll see stuff Jul 19 23:21:39 is this really "not that hard"? Jul 19 23:22:10 As a rule, I steer well clear of Web Apps. Jul 19 23:22:24 dogarrhea: web apps also have "apps" in the name, but as a user I dont really call them android apps Jul 19 23:22:30 ^ Jul 19 23:22:45 More of a glorified website... Jul 19 23:22:46 lol Jul 19 23:22:52 so basically I have to tell the boss "nope. can't do it. our comeptitor does it. but i dont" Jul 19 23:22:56 and when I realise they are web apps, (and it's not hard) they get an instant uninstall :) Jul 19 23:23:01 ^ again Jul 19 23:23:09 Out of interest, why a web app? Jul 19 23:23:12 Not a native app? Jul 19 23:23:32 "no we don't like web apps in this channel" is pretty helpful i suppose Jul 19 23:23:40 telling me no one here knows how Jul 19 23:23:53 I am not a web-app developer. Jul 19 23:23:56 I was giving you a user perspective Jul 19 23:23:59 My skills do not lie within web programming. Jul 19 23:24:02 i'm a web dev :) Jul 19 23:24:10 But, as StingRay said, I was giving a user view. Jul 19 23:24:16 I steer well clear of web apps. Jul 19 23:24:25 We don't take kindly to websites Jul 19 23:24:39 looked long and hard into creating a mobile web version vs creating native mobile apps.. i'm now creating mobile apps Jul 19 23:24:39 Anthaas: do you think they should have their own label on the market ?? Jul 19 23:24:43 Yes. Jul 19 23:24:57 really would save me time that Jul 19 23:25:02 I think they should be called "websites" Jul 19 23:25:03 and probably others too Jul 19 23:25:06 And be found through the googles. Jul 19 23:25:48 I believe the Apple App Store does this. Jul 19 23:25:52 Separates web apps. Jul 19 23:26:01 not sure they do Jul 19 23:26:07 but I think everyone should Jul 19 23:26:10 Im fairly sure they do. Jul 19 23:26:13 i think there is still a difference between a website and a web app.. the product i work on is very much an application, with a web interface Jul 19 23:26:24 A mobile website? Jul 19 23:26:30 no, desktop Jul 19 23:26:34 How would you differ the two Jul 19 23:26:41 Sorry, I will rephrase Jul 19 23:26:42 content too big for mobile Jul 19 23:26:51 How would you separate a mobile website and a web-app? Jul 19 23:27:17 I get that web-apps can have a certain level of device access, but I reckon that will be the norm for mobile websites soon enough anyway Jul 19 23:27:26 no, i'm separating websites in general from web apps Jul 19 23:27:31 Ahhh Jul 19 23:27:39 sry Jul 19 23:27:57 No need. Jul 19 23:28:10 this is the 90's all over again Jul 19 23:28:19 How? Jul 19 23:28:24 One sec. Jul 19 23:28:28 fk, I wish Jul 19 23:28:35 I would be young again Jul 19 23:28:38 lol Jul 19 23:28:45 with choices Jul 19 23:28:49 and freedom!!! Jul 19 23:28:49 Possibly one of the best blogs/rants/articles I have read on this matter: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Jul 19 23:29:06 apple vs the other hegemony (now google instead of Microshaft) for desktop market Jul 19 23:29:14 phones are in "desktop mode" right now Jul 19 23:29:29 soon webapps will take over just like the late 90s Jul 19 23:29:35 They won't. Jul 19 23:29:44 think what you want Jul 19 23:29:45 JavaScript will simply never be fast enough to suit the needs. Jul 19 23:29:47 or stay pedantic Jul 19 23:30:03 agreed with anthaas Jul 19 23:30:14 "javascript never fast enough to suit the needs" Jul 19 23:30:15 which is why im making native apps :) Jul 19 23:30:25 when is a language spec supposed to be "fast enough" Jul 19 23:30:27 People describe JavaScript as "Near C" in terms of speed, but as that article says, yes, 10ms in C and 50ms in JavaScript is "Near C", but multiply those times by a factor of 10 or 100, and you cannot even claim that. Jul 19 23:30:32 only the underlying engine is "fast enough" Jul 19 23:30:54 javascript is a language spec Jul 19 23:30:57 Again, Dogarrhea, this isn't an attack on web-app developers, but read this article: http://sealedabstract.com/rants/why-mobile-web-apps-are-slow/ Jul 19 23:30:59 v8 runs it fast or slow Jul 19 23:31:01 it's more than just JS / render speed though.. it's the native abilities of a real app vs a web page Jul 19 23:31:19 dogarrhea: native will always be better for any OS Jul 19 23:31:24 ^ Jul 19 23:31:26 yada yada yada yada. let's all write desktop apps in C. uninstall your mobile browsers Jul 19 23:31:28 dogarrhea: but in the interests of help Jul 19 23:31:32 No, not at all,. Jul 19 23:31:39 Do not see this as an elitist attack. Jul 19 23:31:43 #phonegap try there, they do web apps Jul 19 23:31:43 it is. Jul 19 23:31:45 for android Jul 19 23:31:54 if you don't think the browser and javascript are fast enough Jul 19 23:31:56 then don't even use them Jul 19 23:32:04 They simply are not fast enough! Jul 19 23:32:09 do you use them? Jul 19 23:32:09 We could run a test on this Jul 19 23:32:21 desktops are different.. people don't want to install anything anymore, that's where webapps come into play. Jul 19 23:32:24 do you look for porn on a browser? Jul 19 23:32:28 no. it's not fast enough :/ Jul 19 23:32:33 If we both write an application to read 1000 records from a database, containing exactly the same content, and compare the times. Jul 19 23:32:35 no test, pointelss arguments, and wrong channel for web dev Jul 19 23:32:39 * QcMat looks at porn on browsers Jul 19 23:32:44 #phonegap is your best bet Jul 19 23:32:48 that's not possible QcMat Jul 19 23:32:50 it's not fast enough Jul 19 23:32:55 I'm patient Jul 19 23:32:56 :P Jul 19 23:32:57 they do all the web stuffs for android Jul 19 23:32:58 You are taking the argument out of context. Jul 19 23:33:05 no i'm not. you say javascript is not fast enough Jul 19 23:33:07 You are saying JavaScript is not fast enough Jul 19 23:33:11 that's what you said. Jul 19 23:33:20 might as well use cc2d-x over webapp Jul 19 23:33:24 JavaScript will simply never be fast enough to suit the needs. Jul 19 23:33:25 I am saying JavaScript isn't fast enough when developing mobile applications. Jul 19 23:33:32 ^ Jul 19 23:34:04 dogarrhea maybe the ffos web dev tools are nicer Jul 19 23:34:16 there is a time & place for each tech.. but my mobile device is more than just a browser Jul 19 23:34:20 cc2d can do pretty much any UI easily, lots of extentions Jul 19 23:34:22 ^ Jul 19 23:34:28 otherwise i would have just gotten a chromebook Jul 19 23:34:32 ^ Jul 19 23:34:51 TheDruidsKeeper and people don't want to download your shitty app if they don't have to Jul 19 23:35:05 But they must download yours? Jul 19 23:35:12 nope that's the whole point. they don't Jul 19 23:35:17 No wonder... Jul 19 23:35:25 they do not need to log into google play or what not Jul 19 23:35:38 which is why you should still make a mobile version of your website to be compatible with the smaller size / slower connection / slower device Jul 19 23:35:39 I know dogarrhea Jul 19 23:35:47 Lets see how fast you can get your web-app to take a photo. Jul 19 23:35:49 I'll do the same Jul 19 23:35:56 Ill even give you a 2 week headstart... Jul 19 23:35:58 not the same use case Jul 19 23:36:08 it's 3rd party ads Jul 19 23:36:17 3rd party ads are completely optional. Jul 19 23:36:24 I have never included them within any of my applications. Jul 19 23:36:45 So, how about that fragmentation Jul 19 23:36:51 LOL Jul 19 23:37:01 Or "How about those exploitations?" Jul 19 23:37:06 * SimonVT fuels the fire Jul 19 23:37:09 TheDruidsKeeper: i'm trying. it's difficult without debugging support Jul 19 23:37:39 Read a article by a security firm the other day - apparently, for every 1 Android exploitation there are 9 on iOS. Jul 19 23:37:55 Im sure this story is different according to who you ask though... Jul 19 23:38:00 ah, well this is the wrong chatroom for web dev ;) Jul 19 23:38:13 right now, functionality of the website shows up on the desktop version of the browser. but not on mobile Jul 19 23:38:36 it could be checking user agent and not doing the functionality, a javascript error, or something else causing it not to work on the mobile browser Jul 19 23:38:40 yet there's no tools to diagnose this Jul 19 23:38:45 dogarrhea: this really is the wrong channel, if you notice I suggested where to go that may have more info Jul 19 23:38:51 You would be must better asking a web development channel. Jul 19 23:38:58 This is for Native Android development really... Jul 19 23:39:01 dogarrgea try something like this: https://chrome.google.com/webstore/detail/ripple-emulator-beta/geelfhphabnejjhdalkjhgipohgpdnoc?hl=en Jul 19 23:42:55 transistor: i think you need 2 threads, one for in and one for out Jul 19 23:44:05 new android SDK update Jul 19 23:44:10 Oh? Jul 19 23:44:20 22.0.4 Jul 19 23:44:31 Whats the update? Jul 19 23:44:37 bug fixes Jul 19 23:44:55 Such as? Jul 19 23:44:59 There a patch notes page? Jul 19 23:45:15 i had to stop using haxm, i'm convinced it was hard-hanging my machine Jul 19 23:45:36 fucking up filesystem, etc Jul 19 23:45:44 Here's one. Jul 19 23:45:47 will try haxm rev 4 when its out Jul 19 23:45:51 What are tools like Monkey/MonkeyRunner like? Jul 19 23:45:53 Any good? Jul 19 23:46:08 uh, i haven't used them yet Jul 19 23:46:18 Me neither - was considering checking them out though Jul 19 23:46:23 Anyone know if it's possible to use your own cookie store (or a persistent cookie store) with Koush's ion? Jul 19 23:46:29 I have a java.net.cookiestore subclass ready but I have no idea where to put it Jul 19 23:46:37 As far as I understand - they just hammer your app with input, and if it breaks it, outputs the steps taken to break it. Jul 19 23:47:48 looks like they only fixed some renderscript thing Jul 19 23:50:58 I have never used renderscript either - what is its purpose? Jul 19 23:51:54 accelerated drawing without dropping to native code Jul 19 23:52:29 * pfn has yet to use renderscript as well Jul 19 23:52:57 I still dont know when it would/should be used? Jul 19 23:53:00 What circumstances? Jul 19 23:53:07 Im assuming it is specifically for games? Jul 19 23:53:10 it isn't Jul 19 23:55:21 Any ideas of when to use it/what circumstances? Jul 20 00:05:34 haha, so funny (startup names) http://valleywag.gawker.com/silicon-valleys-stupid-name-problem-visualized-839863672 Jul 20 00:06:29 probably because the startups themselves are solving dumb problems, so the best they can do is come up with dumbnames Jul 20 00:06:50 crap.. now i need to rename my app.. Jul 20 00:06:54 j/k ;) Jul 20 00:09:40 Hahaha Jul 20 00:09:44 Agreed, so cliche. Jul 20 00:09:54 I do need a good developer name though that I can publish under. Jul 20 00:10:00 The hardest part of developing... Jul 20 00:10:24 com.pew.pew.pew Jul 20 00:10:25 easy Jul 20 00:10:42 Hahah, as the developer name that appears on Google Play? Jul 20 00:22:49 Are there any freely available examples of using OpenSL ES that illustrates what would be involved in playing multiple different sound clips simultaneously? Jul 20 00:27:09 I guess that's a no. Jul 20 00:30:59 guys, I'm displaying a ViewPager from a custom adapter based on an ArrayList, but when I add element and notifyDatasetChanged(), the ViewPager doesn't display the extra page -- what am I missing? Jul 20 00:31:56 invalidate() Jul 20 00:32:04 shipit: from what you just said, your missing nothing :) Jul 20 00:32:19 thx StingRay_ :) Jul 20 00:32:34 the adapter returns the correct count Jul 20 00:32:41 but I don't see a new page Jul 20 00:34:02 StackOverflow has all kinds of info ... but ViewPager isn't as bullet proof as ListView Jul 20 00:35:04 Pyuruku: I tried that too but ViewPager needs something else, like getItemCount() implementation and/or different instantiateItem() Jul 20 00:38:49 Are you adding the element through a different activity? Jul 20 00:38:55 hmm, even when I set a new adapter on the ViewPager, it doesn't reflect the newly added item Jul 20 00:39:25 Anthaas: I'm adding in onActivityResult(), previously I setup the adapter in onCreate() Jul 20 00:39:33 There is your problem Jul 20 00:39:38 aha! Jul 20 00:39:39 Set the adapter up in onResume() Jul 20 00:39:42 oh ... Jul 20 00:39:54 When you change activity, the activity is only ever destroyed if it needs to be (for memory purposes) Jul 20 00:40:03 When you leave an activity, you cannot guarantee this will be the case Jul 20 00:40:12 It might just pause and stay paused Jul 20 00:40:15 but when I set in onCreate(), it does display the items I passed to it Jul 20 00:40:16 oh ohoh Jul 20 00:40:20 lemme try - thx! Jul 20 00:40:22 However when you return to an activity, you can guarantee it will hit onResume Jul 20 00:40:43 So, your problem is that whilst the item might be being added, the adapter is not updating. Jul 20 00:41:05 As a general rule, onCreate should be used to prepare things, onResume used to set them up Jul 20 00:41:37 For example, if things need initial values, do this in onCreate, but if you are going to modify them, add them, etc AFTER the onCreate, do this in onResume Jul 20 00:41:48 Just as the example with your adapter :-) Jul 20 00:42:15 For example, when I have an activity, I get the view references (findViewById(R.id.blahblahblah) in onCreate. Jul 20 00:42:21 This never changes, and I only need to do it once Jul 20 00:43:31 And as you are calling onActivityResult to add the item, it is worth noting that onActivityResult is called before onResume Jul 20 00:47:55 that didn't help :( Jul 20 00:48:19 I agree w you though on the onCreate(), onResume() way of doing things Jul 20 00:49:14 Hmm, post some code on pastebin and share the link here Jul 20 00:50:07 shipit: have you checked with ViewPager.getAdapter().getCount() ? Jul 20 00:50:18 StingRay_: the count updates Jul 20 00:50:24 correctly Jul 20 00:50:28 indeed Jul 20 00:50:36 but did you get the adapter from the viewPager Jul 20 00:50:39 infact, getCount() is being called way too frequently Jul 20 00:50:57 evanc still around? i get the impression you like protobufs. which gradle plugin to use? Jul 20 00:51:08 my point was, maybe either the viewPager or your adapter is not the instance you think it is Jul 20 00:51:11 just a thought Jul 20 00:51:46 have you tried ViewPager.forceLayout(); ViewPager.invalidate(); ? Jul 20 00:51:47 StingRay_: indeed, I'm passing an ArrayList to the adapter, adding item to the ArrayList, calling vpager.getAdapter().notifyDatasetChanged() Jul 20 00:51:51 Anthaas: yes Jul 20 00:52:04 Including the .forceLayout()? Jul 20 00:52:19 Don't use forceLayout() Jul 20 00:52:22 use requestLayout() Jul 20 00:52:25 ahhh Jul 20 00:52:29 Is there a reason for this? Jul 20 00:52:31 if I start the adapter w/ two items, then both show up, any items added thereafter don't show up Jul 20 00:53:37 shipit: Post your code via pastebin - I will happily take a look. Jul 20 00:53:58 Anthaas: I really appreciate it, some of it is under super strict NDA :( Jul 20 00:54:31 Its fine - change the name of the packages/confidential variables names so that it is generic. Jul 20 00:54:56 I've built ViewPagers w/ Fragments before, but not dynamic content insertion ... Jul 20 00:55:01 Anthaas: ok, thx man! Jul 20 00:59:09 My understanding of invalidate(), requestLayout(), and forceLayout() was that invalidate() is used when a view or adapter item had changed content, requestLayout is to be used when a new view is added or a view must be resized, and forceLayout() was when the adapter needs to be readjusted/remeasured for new items etc? Jul 20 00:59:40 hahaha -- I'm an idiot, I have GestureDetector for long presses, but after item is added, the swipe event is not being delivered to the ViewPager Jul 20 00:59:49 Anthaas: no Jul 20 00:59:53 I would imagine that, in that order, they increase in terms of computation? Jul 20 00:59:55 you don't need forceLayout() Jul 20 01:00:01 invalidate() means "redraw" Jul 20 01:00:14 requestLayout() means "relayout views to recompute their sizes" Jul 20 01:01:08 Ok, so what would forceLayout() mean? Jul 20 01:01:47 Not much in this case :) Jul 20 01:02:02 Haha, but in any case? It is interesting to know this. Jul 20 01:02:05 Unless you are writing custom viewgroups (and even then…) you really don't need to worry about forceLayotu() Jul 20 01:02:10 the best you can do is to read the source Jul 20 01:02:11 Ahhh I see. Jul 20 01:02:23 Thank you. I will do that. Jul 20 01:04:43 yesss! my shit works :) -- basically I had a GestureDetector for long presses which wasn't delivering events to ViewPager, simple return false from onTouch() Jul 20 01:05:56 There you go! :D Jul 20 01:15:53 Is there a way of checking which devices are supported for my app with the new Google play? Jul 20 01:16:34 Doesn't it say in the dev console? Jul 20 01:16:42 Ologn: If it does, I can't find it Jul 20 01:17:36 romainguy: I have just read the documentation on View - so a good way of putting it would be "invalidate is to be used when the views appearance should be changed, and requestLayout should be used when the views bounds should change"? Jul 20 01:17:44 CocoStorm, APK -> supported devices Jul 20 01:17:44 yep Jul 20 01:18:02 Ologn: oh wow. Jul 20 01:18:06 can't believe i missed that.. Jul 20 01:18:09 long day Jul 20 01:19:21 thanks Jul 20 01:20:40 I'm working on a custom device that doesn't have MediaStore.ACTION_IMAGE_CAPTURE to start the camera -- is there a Camera based library project that'll let me do that? Jul 20 01:27:32 Jesus Christ, I could learn SOOO much just from reading the source code for Android. Jul 20 01:28:45 I need to understand what bit flags do, when, and how to use them too Jul 20 01:30:31 In fact, I have gotten so interested in reading this that I have completely forgotten to sleep. It is 02:30 in England right now... Jul 20 01:31:25 go to sleep Anthaas :p Jul 20 01:31:43 I don'wanna. Jul 20 01:31:50 You're not my Mum! :P Jul 20 01:32:00 Although, I probably should hahhaa Jul 20 01:32:33 I am going to go. Jul 20 01:32:34 romainguy: Thank you for your help tonight. Jul 20 01:32:41 Goodnight everybody. Jul 20 02:02:43 "ads in gmail as normal mail" .. huh. anyone see this yet ? Jul 20 02:05:17 no Jul 20 02:05:32 really? Jul 20 02:08:54 i've been meaning to check out fastmail, but haven't yet. i dont really use any other google services Jul 20 02:30:30 how crazy is it to want to use `adb shell am broadcast ...` in order to fire off some non-GUI unit tests for an app? Jul 20 02:30:55 reason being that `am broadcast` will nicely allow the executed BroadcastReceiver to produce a message that is printed to the shell, which is handy Jul 20 02:31:08 problem is that if the tests take > 10s...boom, there goes the app. :-/ Jul 20 02:32:50 i suppose `am instrument` is probably the preferred way to go... Jul 20 02:41:58 jonp i think you can do that Jul 20 02:42:03 but i forgot Jul 20 02:42:17 my Google-fu is lacking; i donsee how Jul 20 02:42:24 don't see how to avoid the 10s limit Jul 20 02:42:57 oh, i'm confused Jul 20 02:50:40 I need to apply a shape mask to a bitmap, is ClipDrawable the right direction to go in? Jul 20 02:52:39 jonp: ooh! Jul 20 02:53:41 g00s_: it's really not intrusive and it's fine Jul 20 02:54:03 funkbox: is it only the web client ? Jul 20 02:54:11 i think so Jul 20 02:54:13 they may do it for mobile Jul 20 02:54:25 funkbox: ooh? Jul 20 02:54:28 my work email didn't get the new inbox Jul 20 02:54:39 ah, never use web client so dgaf :) Jul 20 02:56:12 jonp i dont get why you don't use "adb shell am instrument -w blah Jul 20 02:56:34 because BroadcastReceivers are easy. :-) Jul 20 02:56:51 uh **** ENDING LOGGING AT Sat Jul 20 02:59:57 2013