**** BEGIN LOGGING AT Mon Oct 20 02:59:59 2014 Oct 20 03:00:00 I was just going though disabling some libs and makes no diff Oct 20 03:01:39 I'm 100% sure that this is not the dex limit in my case as it happend when I added a new class and recyclerView lib, now I removed both and even disabled other libs, same thing Oct 20 03:02:33 gonna restart machine.. .cause this is just odd :( Oct 20 03:03:03 You broke everything Oct 20 03:04:43 The dex-limit thing is insane. Oct 20 03:05:05 How could anyone not have thought that would've been a bad idea up front? Oct 20 03:05:18 ha i'm sure they didnt think about it until it happened Oct 20 03:05:34 i'm sure they don't think about a lot of stuff until it happens :D Oct 20 03:05:46 yea but its sad how one bad decision Oct 20 03:05:52 It's kinda like the Y2K thing. "The world will never make it past 1999 anyway." Oct 20 03:06:06 it kinda didn't TacticalJoke Oct 20 03:06:18 so they were right about that one anyhow Oct 20 03:06:22 Dd the world end? Oct 20 03:06:23 great so restart does nothing :( Oct 20 03:06:23 Did* Oct 20 03:06:24 16 bit addressing... Oct 20 03:06:24 Well the fact that the limit is the highest a short int can be, I'd say it's a design flaw Oct 20 03:06:26 i mean c'mon Oct 20 03:06:32 that was really naive Oct 20 03:06:42 TacticalJoke yes, the world probably ended in the 80.s We're in a hyperobject. Oct 20 03:06:54 That would explain a lot. ;o Oct 20 03:07:10 sec StingRay_ ill get the fi Oct 20 03:07:11 fix Oct 20 03:07:27 I better sleep. Have a good time. :) Oct 20 03:07:43 in your android section of build.gradle for the module in question: dexOptions { jumboMode = true } Oct 20 03:08:01 g00s: nope, everything went poorly Oct 20 03:08:23 maqr come on, you can't tell me it was this tough setting up xcode :D Oct 20 03:08:31 although - provisioning a device is such a pita ! Oct 20 03:08:48 g00s: xcode is easier to get running, but it's unstable over time, and with big projects it gets worse and worse Oct 20 03:09:07 maqr so you came to android :D Oct 20 03:09:18 we'll talk again in a few months Oct 20 03:09:54 maqr also, btw - did you use the 32 or 64 bit emu ? Oct 20 03:10:05 i didn't even know there were both, but seems more luck on 32 bit Oct 20 03:10:12 g00s: tried both, neither works... i'm thinking about just waiting a few weeks and seeing if intel/google sort it out Oct 20 03:10:16 JacobTabak no diff Oct 20 03:10:28 #workedforme Oct 20 03:10:29 g00s: now that 10.10 is officially out, it might help Oct 20 03:10:39 like I said, there is no way I'm at 65k even with the new google services crap Oct 20 03:10:54 StingRay_ it might also be strings Oct 20 03:10:58 just try it ! Oct 20 03:11:02 DO EEET@ Oct 20 03:11:05 I jsut did Oct 20 03:11:09 same error Oct 20 03:11:54 dexOptions just go in the android{} yeah ? Oct 20 03:11:59 yes Oct 20 03:12:10 and the error you pasted is not the method limit thing Oct 20 03:12:32 JacobTabak is it the physical size of the apk ? Oct 20 03:12:41 dont know Oct 20 03:12:44 6.2mb Oct 20 03:12:47 like you can have 10 methods but 2 gazillion strings Oct 20 03:13:03 man, my app is like 382k Oct 20 03:13:07 wtf did you do ! Oct 20 03:13:23 all the silly libs Oct 20 03:13:32 dingleberries strike again Oct 20 03:13:34 g services blaa blaaa Oct 20 03:13:55 http://pastebin.com/xnnAQWYV Oct 20 03:13:58 exact error Oct 20 03:14:12 StingRay_ can i see your dependency { } block Oct 20 03:14:32 hmm, --force-jumbo right there Oct 20 03:15:22 or gradle --dependencies ftw Oct 20 03:15:29 StingRay_ ^^^ Oct 20 03:15:44 ? Oct 20 03:15:52 are you using gradle ? Oct 20 03:15:59 yeah Oct 20 03:16:09 so gradle --dependencies >> pastebin Oct 20 03:16:11 dont know much about it all yet, but yes Oct 20 03:17:39 http://pastebin.com/e1x0RJwB Oct 20 03:18:17 oh Oct 20 03:18:58 no, still cant be 65k limit Oct 20 03:19:06 though that force jumbo fixes that anyways ? Oct 20 03:19:27 StingRay_ again, gradle --dependencies ! Oct 20 03:19:34 btw, thats a lot of stuff Oct 20 03:19:46 wow i learned something today, gotta check out okio Oct 20 03:20:27 StingRay_ compile 'com.squareup:otto:+' Oct 20 03:20:29 lol Oct 20 03:20:33 pick a version, any version Oct 20 03:21:08 Why do you depend on okio-parent? Oct 20 03:21:21 yeah thats weird too Oct 20 03:22:05 StingRay_ and we don't know whats in libs/ Oct 20 03:22:51 StingRay_ also you say compile files('libs/commons-io-2.4.jar') Oct 20 03:22:59 but then you say all the things in libs at the end Oct 20 03:23:19 * g00s hands StingRay_ some bleach and a mop; time to clean up Oct 20 03:25:12 And commons-io is available in central Oct 20 03:26:15 StingRay_ you probably want to run $ gradle --dependencies to see how these, and the transitive deps, are all resolved Oct 20 03:34:33 ok yeah 65k limit Oct 20 03:34:49 great, so what does one do now ? Oct 20 03:36:45 wait - didn't you say "no way i'm at 65k" Oct 20 03:36:48 haha Oct 20 03:37:32 now that would be cool if in AS, you clicked on project structure -> dependencies, and it gave you a breakdown of the methods in each one Oct 20 03:37:33 well I think play services and drive etc are the killers Oct 20 03:37:43 thats like 20k Oct 20 03:37:56 thats amazing Oct 20 03:37:57 lol Oct 20 03:38:16 and now recyclerview and pallette that I was going to look at Oct 20 03:38:50 g00s: http://instagram.com/p/uRQX9Pm5Jp/ :D Oct 20 03:38:50 StingRay_ you can also read http://blog.osom.info/2014/10/multi-dex-to-rescue-from-infamous-65536.html Oct 20 03:39:22 JesusFreke is it organic or GMO ? Oct 20 03:39:47 thats doesn't look like something from god's green earth .. Oct 20 03:39:57 monsanto skunk works Oct 20 03:40:44 JesusFreke that reminds me of the asparaberry skit on saturday night live long ago Oct 20 03:40:59 don't watch SNL, so *shrug* :) Oct 20 03:42:00 JesusFreke there is a little update to ragel Oct 20 03:43:39 g00s: "if it ain't broke, don't fix it" (re: upgrading libraries :p) Oct 20 03:44:00 :) Oct 20 03:44:45 yo devs, do you stopPreview and release camera on each onPause and re-initialize onResume, or just stopPreview/startPreview on onPause/onResume? Oct 20 03:45:24 I'm doing a complete stopAndRelease() and reInitialize() on onPause/onResume and haven't noticed any issues. but the documentation said the camera initialization might be slower on some devices. Oct 20 03:47:04 g00s not sure I undestand the --multi-dex Oct 20 03:47:23 where exactly does that go in gradle script ? Oct 20 03:48:44 StingRay_ i haven't had to do it before Oct 20 03:51:41 bankai_au http://digg.com/video/supreme-court-dogs Oct 20 03:51:48 how's your scheduler go ? Oct 20 03:52:26 g00s: that's weird ... just weird Oct 20 03:52:58 bankai_au oh yeah, that. see, if i ignored all the new toys i'd probably be done with that ... Oct 20 03:53:09 but no ... Oct 20 04:12:26 multi dex is a really shitty solution Oct 20 04:14:44 is there any function in AS that gives you a breakdown of the method counts for your deps ? Oct 20 04:15:00 so you can at least be aware of whats going on Oct 20 04:15:08 no, but dx does Oct 20 04:17:26 pfn whats the alternative… not that I know how to do multi dex anyways Oct 20 04:17:38 StingRay_ get rid of crap Oct 20 04:17:54 so on phones with two sdcards, can you not enumerate thru external storages? Oct 20 04:18:09 g00s like what ? Oct 20 04:18:16 only you can decide Oct 20 04:18:21 oh wow, my app wont close with the back button and im not overriding onbackpressed Oct 20 04:18:32 I just see Environment.getExternalStorageDirectory(); but nothing about getExternalsStorages() type thing. Oct 20 04:18:36 even if i override with finish it wont Oct 20 04:18:38 cliffreich thats happened a few times to me using gmail Oct 20 04:18:45 like once in a while Oct 20 04:18:59 isn't that caused by doing too much work at the end of the activity lifecycle ? Oct 20 04:19:03 actually, some other apps too ... so i thought it was a framework glitch Oct 20 04:21:08 g00s well I can just not add recyclerView … but wanted to :( Oct 20 04:21:36 Oh, the framework is getting official, easy support for multi-dex-to-rescue-from-infamous. Oct 20 04:21:36 StingRay_ you have to know what the heavy hitters are; recyclerview probably isn't pushing you over the limit Oct 20 04:21:45 StingRay_, proguard Oct 20 04:22:01 WTF SwiftKey... Oct 20 04:22:16 weirdest autocorrect ever Oct 20 04:26:39 pfn will slow stuff massive though Oct 20 04:26:46 proguard everytime Oct 20 04:27:04 * pfn shrugs Oct 20 04:27:18 I proguard on every build Oct 20 04:28:17 you find it comparable to not ? Oct 20 04:29:11 hmmm http://developer.android.com/reference/android/support/multidex/MultiDexApplication.html :( Oct 20 04:30:46 StingRay_, it doesn't actually run every single build, I have a complex cache system Oct 20 04:49:37 yay! I get to build a …hmmm nexus 5 or nexus 6…. decisions :( Oct 20 04:50:20 First world problems Oct 20 04:50:37 yeah, well 3D vis problem :) Oct 20 04:52:50 seems like sub-project aars don't need blank elements in the manifest any more Oct 20 04:53:17 i was overrinng finish in a small and non visible part of the code heheh Oct 20 04:54:02 g00s: wow I remember spending hours tracking down that gradle build error the first time it hit me... Oct 20 04:54:09 i guess some apps use that to avoid breaking I/O ops Oct 20 04:56:58 pfn: where do i find example of complex cache systems based on android Oct 20 04:58:28 my cache system it's so basic Oct 20 05:00:22 cliffreich pfn was on about build cache Oct 20 05:00:29 is that what you mean ? Oct 20 05:01:38 oh no... i meant app cache Oct 20 05:02:29 how come stack traces get truncated in ADB Oct 20 05:02:38 its dum Oct 20 05:02:44 oh Oct 20 05:02:49 i guess it's logcat 4000 char limit Oct 20 05:02:50 hmm Oct 20 05:02:54 i could fix that Oct 20 05:08:30 hi Oct 20 05:08:36 can someone help me with this Oct 20 05:08:36 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 20 05:11:52 molavy Oct 20 05:12:00 i think that api is just not very reliable Oct 20 05:14:18 i wonder why google only has one 'platform tools' but a bunch of prior build tools Oct 20 05:14:43 can't even go back to a known good config unless you backed up Oct 20 05:15:22 have you had a problem? Oct 20 05:16:31 i would roll everything back if i could Oct 20 05:17:06 i can always grab old gradle plugins, build tools, but not platform tools Oct 20 05:18:02 what problem ? Oct 20 05:19:23 Hi all Oct 20 05:19:36 I have few edittext fields sharing same id in the layout Oct 20 05:19:45 JacobTabak i keep having problems with adb Oct 20 05:19:49 more problems Oct 20 05:19:55 while I enter some data in one edittext the same data is getting entered in multiple locations Oct 20 05:19:55 is it the genymotion thing? Oct 20 05:19:57 more than usual, because its always a problem Oct 20 05:20:07 no with my fucking device Oct 20 05:20:14 do you have genymotion installed? Oct 20 05:20:20 atm no Oct 20 05:20:31 Why is it so. I tried android:saveWnabled="false" but its not working here Oct 20 05:20:46 i can't use genymotion for a lot of things, or the emu, because my project uses bluetooth Oct 20 05:20:57 g00s have you tried killall -9 adb Oct 20 05:21:00 niru, use different ids Oct 20 05:21:01 android:saveEnabled="false" Oct 20 05:21:03 of course :) Oct 20 05:21:29 i mean it always crashed. my crash logs fill up with adb shit Oct 20 05:22:01 due to some design constraints I have to go with same ids....as in future I will be getting more and more such fields and I cant go on adding them with different ids. Oct 20 05:22:29 niru, your design is wrong Oct 20 05:24:08 this is so lame android.os.TransactionTooLargeException Oct 20 05:24:10 :( Oct 20 05:24:20 damn parcel too big Oct 20 05:24:42 why would this api return 100 results Oct 20 05:24:44 thats dummmm Oct 20 05:25:56 gzip Oct 20 05:27:43 well it's interesting because theres no crash Oct 20 05:27:45 the process just dies Oct 20 05:28:23 took me a minute to clear the filter and put log on warn to find why Oct 20 05:29:57 seems rather hard to plan for this Oct 20 05:44:25 hm, in a gradle subproject, is rootProject.foo and rootProject.ext.foo equivalent for accessing extra properties of the rootProject ? Oct 20 05:48:52 Anyone use Android Studio on Mac? Oct 20 05:50:19 i do :( Oct 20 05:50:22 you are the only one Oct 20 05:51:01 you doing a survey thete? Oct 20 05:56:25 Hi there, this is doing my head in. ACTV only matches the first 3 characters, so if I type "mer", I get a few results beginning with mer, however if I continue typing to include "merry", and a result exists in the list, however it isn't showing Oct 20 06:00:05 did you match 3 or >=3 Oct 20 06:01:07 I'm not limiting :/ Oct 20 06:01:11 at least I don't know of any Oct 20 06:02:08 setThreshold is the number of characters before it starts displaying results Oct 20 06:02:18 the only configuration that relates to 3 lol Oct 20 06:02:31 I have a Filter in my Adapter Oct 20 06:18:41 post some code Oct 20 06:20:49 !seen Stingray_ Oct 20 06:20:52 Aw Oct 20 06:23:24 here's my filter: http://pastebin.com/bgYR2EZJ Oct 20 06:23:56 \ Oct 20 06:32:24 Fall, I see nothing obviously wrong with the code, but here are a few minor changes, might or might not help: http://pastebin.com/bMpayuPD Oct 20 06:34:22 Fall, actually better use this one, it's more optimized: http://pastebin.com/UxEDTqgY Oct 20 07:26:20 dagnabbit! Oct 20 07:26:59 Camera.Parameters.getFocusMode() returns infinity and Camera.Parameters.FOCUS_MODE_INFINITY returns infinity. Yes in an if statement matching the two, they do not match. Oct 20 07:31:59 asdasd Oct 20 07:32:02 Anyone use drawChild of listVIew? Oct 20 07:36:18 i have the licensing lib as im on beta testing Oct 20 07:36:28 anyone else had issues connecting to a SSLv3-disabled server using HttpsUrlConnection? TLS doesn't seem to work, but it throws an exception only once it falls back to SSLv3 and fails, which isn't very helpful :( Oct 20 07:36:28 should i remove license verification for a free app Oct 20 07:36:51 nvm maybe ill add a paid feature in the future, who knows Oct 20 07:48:44 I have a framelayout with wrap_content for width and height Oct 20 07:49:12 but it doesn't expand when I add an imageview with a larger width Oct 20 07:56:20 I'm finding some information on promotional codes on google play but I can't really find any relevant information as in if developers can create them for their apps and if so, how - and if not, how do they work? -.- Oct 20 07:56:38 any clues? Oct 20 08:00:31 hello guys, I just updated my libraries to api level 21, after update my project is not working Oct 20 08:00:38 I am getting com.android.dex.DexException: Cannot merge new index 66438 into a non-jumbo instruction! Oct 20 08:02:16 any idea on this guys ? Oct 20 08:04:11 how do I add an identifier to a view so I can check what kind it is in my code? should I just extend my own class from the view type or is there an even easier way? Oct 20 08:15:23 DarsVaeda, View view = findViewById(R.id.whatever); if (view instanceof WhateverView) ... Oct 20 08:15:48 basic java right there Oct 20 08:17:21 yes but I set the stuff programmatically so it has no specific id and there can be several instances of WhateverView Oct 20 08:17:48 has anyone updated to api 21 Oct 20 08:18:34 i think from some API you can set ID's Oct 20 08:19:37 DarsVaeda: http://stackoverflow.com/questions/1714297/android-view-setidint-id-programmatically-how-to-avoid-id-conflicts Oct 20 08:19:49 not sure if it helps, but you can create ids programmatically in xml Oct 20 08:19:50 setId(lalala) Oct 20 08:20:04 sorry, wait, I meant, you can create ids in XML without attaching them to a view Oct 20 08:21:03 maybe I asked wrong... Oct 20 08:21:50 I have one edit text that I set in xml and I add several programmatically, but those contain different text and need to be treated differently in code so I need a way to identify them Oct 20 08:22:53 you need to maintain a list of references to these textviews? Oct 20 08:22:53 that stackoverflow has the way to create ids Oct 20 08:23:51 ArrayList myTextViews = new ArrayList ah right that would be an idea, thanks :) Oct 20 08:24:45 np <3 Oct 20 08:28:36 DarsVaeda, in that case assign them either to specific fields in your class, or to a HashMap and identify them by key (String) Oct 20 08:43:32 what's the point of LinearLayoutCompat? Hasn't LinearLayout been around forever? Oct 20 08:46:44 probably different defaults Oct 20 08:58:47 Anyone play with drawChild on listView? Oct 20 09:00:05 Does anyone know why AS seems to have stopped resolving my external dependencies since updating to 0.8.13? The editor throws up lots and lots of underlines, but it still compiles fine. Oct 20 09:08:37 ravilov: I think it can draw dividers or something. Oct 20 09:09:02 Estel: What is AS? Oct 20 09:09:56 marrrk: LinearLayout changed with ICS to include dividers Oct 20 09:10:18 Okay, so I guess I don't need to use the compat one, then. Oct 20 09:10:58 only if you want the dividers Oct 20 09:12:45 DrSkyLizard: Android Studio Oct 20 09:12:55 anyone knows how to use onKeyLongPress? Oct 20 09:14:57 ravilov, thanks I used an ArrayList with a custom object, worked fine Oct 20 09:19:41 just great Oct 20 09:19:51 setting targetsdk to 21 makes sure gradle doesn't find any android sdk classes. Oct 20 09:21:35 just goes to show it is unwise to jump ship the second a new sdk comes out Oct 20 09:21:46 so far I've only seen people having issues Oct 20 09:24:45 right. Oct 20 09:24:57 which is very useful when clients depend on you to ship versions that work with new OSes. :) Oct 20 09:25:55 er, if your app needs to support the latest and greates api that only just came out in order to even work... then you're in more trouble than I thought :p Oct 20 09:26:57 It's not necessarily hasty if you're creating a branch to start Material-ifying an existing app either :P Oct 20 09:28:52 ravilov, hmm, dunno, I think my clients like the fact that our libraries work when new hardware architecture arrives Oct 20 09:29:01 they pay us alot for it and I think it's reasonable :) Oct 20 09:31:43 also the fact that CI coverage is broken in SDK 19 annoys me to no end Oct 20 09:48:41 I have an activity with a Nav Drawer. I want to switch between 2 fragments. Should I keep a reference to the fragments in the NavDrawerActivity or should I be retrieving them from the fragment manager using tags/id? Oct 20 09:54:22 Clockworkant: the second option sounds more reasonable to me Oct 20 09:54:54 marrrk: I've found someone trying to implment the same thing http://stackoverflow.com/questions/22713128/how-can-i-switch-between-two-fragments-without-recreating-the-fragments-each-ti Oct 20 09:55:31 Just all options seem pretty dirty, where you have to hang on to the current fragment yourself rather than request it from the fragment manager Oct 20 09:55:37 Clockworkant: Why are you afraid of recreating them in the first place? Oct 20 09:57:17 good question, they have nested fragments (tablet app) and quite a bit of state I didnt really want to persist Oct 20 09:58:41 I'm also having an issue where I don't think they are being destroyed. Getting a duplicate ID issue when I replace a fragment Oct 20 09:59:49 marrrk: Do you need to do anything special to destroy a fragment when calling replace? Oct 20 10:00:55 not that I know of, I learned yesterday though, that the FragmentManager transactions are not synchronous so you could run into trouble there I suppose Oct 20 10:01:21 ha! seriously? Ok that might explain some things Oct 20 10:05:11 marrrk: in your experience with fragments, have you used nested fragments? The docs for 4.2 say not to declare them in xml, I wondered if this is still true in 4.3 Oct 20 10:05:47 I don't remember if I've used any nested fragments. Can't think of a particular use case for them now either. Oct 20 10:06:53 I like nested fragments for modularising my layouts into different sections with different responsibilities. (Tablet app with 3 separate sections) Oct 20 10:21:24 Should I worry about swipe tabs being between completely different parts of the app, rather than just different aspects on basically the same data set? Oct 20 10:23:45 The design guidelines definitely suggest that swipe-tab views should be semantically related (like in the Play Store app), but there are almost no examples out there any more of tabs without swiping Oct 20 10:23:45 marrrk: a good example of nested fragments would be a Fragment that contains a ViewPager and each page is also a Fragment Oct 20 10:24:42 Clockworkant, Napalm both good examples. Oct 20 10:25:49 I'm trying to add onKeyLongPress to the SoftKeyboard sample... should I modify something here before calling startTracking() ? https://gitorious.org/0xdroid/development/source/7b53e3937797ee1eea71c6291bdcd58cb9dedf7a:samples/SoftKeyboard/src/com/example/android/softkeyboard/SoftKeyboard.java#L462 Oct 20 10:45:57 android.support.multidex.MultiDexApplication is a thing now? :D :D :D Oct 20 10:47:11 Based on this nested layout being declared in code, I'm rethinking my modularisation strategy! marrrk Napalm Oct 20 10:47:30 You method hoarder Estel! Oct 20 10:47:55 Estel: see \extras\android\support\multidex\library Oct 20 10:48:16 Yep, going to try integrate it. Oct 20 10:55:15 Estel: dont be fools by the docs. multi-dex will wont work on APIv4.. it simply compiles against it you need a min Android Version of 2.1 to use multi-dex Oct 20 10:55:46 Fortunately I'm living in a post ICS world Oct 20 10:55:54 the hell is multidex Oct 20 10:56:08 alright fellow nerds, 4:3 or 16:9 for taking pictures. Which would you prefer? Oct 20 10:56:37 I'm leaning towards picking a 16:9 resolution if available and if not, the biggest 4:3. Oct 20 10:59:03 no one with any suggestions? Oct 20 11:01:16 B0BBY: 1:1 Oct 20 11:01:31 lol yeah, BlackBerry ftw! Oct 20 11:01:43 VnM_: No. Medium Format Oct 20 11:02:49 Unfortunately the cameras using it are quite expensive: http://www.bhphotovideo.com/c/buy/Medium-Format-Digital-Cameras/ci/16734/N/4259332394 Oct 20 11:03:49 Oh crap. I just realised that the Hasselblad MF digial cameras are actually 4:# Oct 20 11:03:50 4:3 Oct 20 11:03:55 Well that sucks. Oct 20 11:04:01 Shiiiit, just get a BlackBerry Passport, cheaper! Oct 20 11:04:29 Or a medium format _film_ camera. Those have full 1:1 Oct 20 11:05:29 loke: well, my front facing camera support 1:1. but it's an odd looking format. A complete square. especially when viewing surfaces are typically 16:9 increasingly, and 4:3 if not 16:0 Oct 20 11:05:34 *16:9. Oct 20 11:06:04 Personally, I use Olympus cameras which are 4:3 natively, so that's what I generally use. Oct 20 11:06:27 I really like the 1:1 format though and would definitely use it if my cmarea had such a sensor. Oct 20 11:06:40 16:9 is way too wide Oct 20 11:07:13 Essentially. Use what your camera uses natively. If you want to crop, you can do that in post-prod later. Oct 20 11:07:20 isn't a traditional photo 3:2 Oct 20 11:07:35 Chainfire: Depends on what you mean by "traiditional". Oct 20 11:07:47 Chainfire: The most traditional is large format, which is square Oct 20 11:08:01 Chainfire: Medium format film is also 1:1. Oct 20 11:08:17 loke: so my camera app will by default pick the biggest 16:9, if not the biggest 4:3. But only if nothign is saved in config. You can certainly pick one from the settings and it will use that from that point. Oct 20 11:08:45 Chainfire: You're probably thinking of 35mm, which is 22:16 Oct 20 11:09:45 my note2 front facing camera picked the biggest 4:3. so did the back one. Oct 20 11:09:47 (that's like 8:6) Oct 20 11:10:04 meaning the android camera apps that comes stock on the phone. Oct 20 11:10:04 oh wait. that's 4:3, isn't it :-) Oct 20 11:10:17 heh, fractional reduction is always fun. Oct 20 11:10:55 actually 22:16 becomes 11:8 (11 is a prime) Oct 20 11:11:53 oh, well, there you go. them 35mm creators weren't fooling around. Oct 20 11:12:50 Yeah, and I'm a moron. I was looking up the 32mm movie format. Stills are 36:24 (which, indeed, is equal to 3:2) Oct 20 11:14:50 Obviously, large format is where it's at. I wonder when we'll see a 5x8 digital sensor :-) Oct 20 11:14:51 http://en.wikipedia.org/wiki/Large_format_(photography)#mediaviewer/File:35mm_MF_LF_Comparison.svg Oct 20 11:15:03 see I was right all along ;) Oct 20 11:15:12 Chainfire: Well, yes. Oct 20 11:15:24 You're the best Oct 20 11:15:24 Chainfire: Except that part where you said "traditional" :-) Oct 20 11:15:35 medium and large formats though, are these still far ahead quality wise vs the latest full frame DSLRs? Oct 20 11:15:45 Chainfire: Yes. By far Oct 20 11:16:04 wtf Oct 20 11:16:07 why is rect final Oct 20 11:16:09 damn Oct 20 11:16:13 Well, there are no off-the-shelf large format digitals. The only ones I've heard about are use in large telescopes Oct 20 11:16:31 I haven't even ever seen an MF in real life Oct 20 11:16:41 Chainfire: I have. In a store Oct 20 11:17:03 Chainfire: But a good one will set you back at least 10k USD, without a lens Oct 20 11:17:13 lasserix> final and hide, Google's favorite keywords, and my least favorite ... :P Oct 20 11:18:01 what do MF lenses go far? multiple thousands as well? Oct 20 11:18:31 Get the H5D-60, only 34500 USD Oct 20 11:18:34 no lens Oct 20 11:18:34 I'm trying to make a (divisible) currency in my app (for in-game item purchase etc) and I'd like users to be able to buy quantities of this currency using in-app billing. It appears that the only way that this would work is to manage this by myself and to buy a managed product and then immediately consume it, so that it can be purchased again. Is there a better way to do this, or some common practice that is different? Oct 20 11:19:19 nb-ben: You want to make a pay-to-win game? Sorry. You're dead to me. Oct 20 11:19:42 (and yes, I realise that was a trollish thing to say. Please don't reply) Oct 20 11:20:09 the logic is written. let's see how it plays out. :) Oct 20 11:20:12 loke: well, given the information that I gave to you, it's possible that the purchasable items are limited to cosmetics only (skins, clothing etc). Wouldn't that be fine? Oct 20 11:20:32 nb-ben: Yes it would. Hence, my immediate apology Oct 20 11:20:40 I'm not usually a troll. Oct 20 11:20:57 How can I get TextWatcher to only call a function when text has actually been edited? At the moment I am using afterTextChanged, and it is called even when just focusing the EditText. Oct 20 11:21:22 who'dathunk, it would take two whole days to get a complete camera app going. thought it was like a 4hr job or something. eh Oct 20 11:22:53 barq: Are you using EditText? Oct 20 11:23:05 Yes, I am. Oct 20 11:23:12 chainfire, well i typically will write a lot of stuff just in java, using dummy classes filling in for android stuff.. but why is rect final? ... yeah indeed! Oct 20 11:23:27 barq: it's been a while, but wouldn't you be using TextView.OnEditorActionListener Oct 20 11:24:12 TextWatcher is standard android Oct 20 11:24:16 not deprecated either Oct 20 11:24:36 barq: or TextView.onTextChanged Oct 20 11:24:37 yeah thats the thing... debates I've seen going on since I started coding many years ago: from a design perspective, there are reasons to make things final. from a practical perspective, these reasons almost always end up being shortsighted and wrong Oct 20 11:25:26 Chainfire: Another proof of this is that languages that have the "strongest" object oritentation doesn't hide data at all Oct 20 11:26:13 A lot of things are final in Android because early versions of Dalvik had such horrible optimisers. Oct 20 11:26:24 object orientation and information hiding aren't really exclusive Oct 20 11:26:45 it's more about static/dynamic typing Oct 20 11:26:46 nb-ben: my point exactly Oct 20 11:27:09 most statically typed languages try to provide you with means of encapsulation Oct 20 11:27:26 Old documentation recommended against using accessor methods, and collections in favour of static arrays because method calls were so slow Oct 20 11:27:38 Only final methods were inlined Oct 20 11:27:58 that makes me uneasy Oct 20 11:28:11 Chainfire: all of this is changed now Oct 20 11:28:36 Chainfire: you can do most previously evil things without guilt now Oct 20 11:28:37 on one hand a performance issue with the interpreter makes you want to change your code because of the practical reasons, on the other hand its not something you should need to worry about Oct 20 11:28:46 *shouldnt Oct 20 11:28:51 yeah well Oct 20 11:29:00 you can still find ancient-isms in my code these days Oct 20 11:29:03 Chainfire: I would still not favor performance over correctness Oct 20 11:29:11 Chainfire: Well yeah. It was incredibly shortsighted Oct 20 11:29:22 Chainfire: even if method calls were introducing overhead Oct 20 11:29:33 oh I agree, unless there's really no other way Oct 20 11:29:43 if its slow to the point that it becomes bad UX Oct 20 11:29:53 nb-ben: Agree. My early Android code completely ignored those advice, and guess what? That code is a lot better today than the ones that did :-) Oct 20 11:29:56 then pragmatism must take over Oct 20 11:30:08 Chainfire: the other way is to not make an investment until the thing is sane Oct 20 11:30:28 Chainfire: if I am making code that I know will need to be replaced in a year from now, I will simply not write it Oct 20 11:30:47 I write a lot of code that will need to be replaced in a year. But if I don't, I make less money. Easy choice Oct 20 11:31:28 Chainfire: it's like if you smoke you feel better, but the same thing keeps you from feeling better by default Oct 20 11:31:33 Anyway. Bye now. I'm heading home Oct 20 11:31:35 thank you floating point math! Oct 20 11:32:38 nb-ben if I was in it just for the joy of coding, I wouldn't disagree. but it's a job that needs to be done, if I need to write something that I know needs to ultimately replaced but if its required for the job, it gets written Oct 20 11:32:57 nb-ben then again, a lot of things I do fall beyond the supported API, so that comes with the territory Oct 20 11:33:05 a normal app dev shouldn't run in to those issues Oct 20 11:33:21 Chainfire: well, that's true.. I often draft things, or write shitty code to be refactored when I have the time for it, but if I need to fundamentally design something broken then I will not do it Oct 20 11:33:31 argh, doh, double doh (pun intended). Oct 20 11:34:30 design something fundamentally broken * Oct 20 11:36:54 Hi all. I have a ViewPager and a FragmentStatePagerAdapter. How can I refresh my adapter? getItem(int) isn't called when I do notifyDataSetChanged() Oct 20 11:37:03 alright, that worked. going with that. 4:3 first. then 16:9. then biggest possible. Oct 20 11:43:29 Calligraphy doesn't work with appcompat, it seems :( Oct 20 11:44:56 Roboto everywhere. Oct 20 11:48:02 Hey ! What you think is the best ideea to achive something like this : (sorry for ugly mock) http://s24.postimg.org/kib8z4eqr/rect2985.png .The content is programatically added, and items would be scroller. Oct 20 11:48:46 Bpaul: check out GridView Oct 20 11:56:16 how do I update views in an acitivity in the background? It's covered by the current activity, but is visible through a transparent background Oct 20 11:57:42 c03: i would use interface to comunicate between them! Oct 20 11:57:54 Hi, anyone have any idea what could be causing "[InputMethod] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count"? Oct 20 11:58:19 Bpaul: I'm gettting android.content.res.Resources$NotFoundException: String resource ID #0x0 Oct 20 12:17:44 Derrp Oct 20 12:26:07 hey why does return in a context does not return from the function but the context? like "public foo() { if(true) { return true; } return false; }" will return false? Oct 20 12:29:04 Because it's false? Oct 20 12:29:58 but it should return true? Oct 20 12:30:52 it should and it does DarsVaeda Oct 20 12:30:58 not for me :( Oct 20 12:31:18 then you have an upredictable computer Oct 20 12:31:22 lol Oct 20 12:31:23 it might be turning sentient Oct 20 12:31:36 I can see in the debugger jump to "return true" then jump to "return false" and return false at the end...it is other code of course but in essence Oct 20 12:32:01 do you have it in try { .. } finally { return false; } ? Oct 20 12:32:13 thats the only case you can modify an existing return type that i know of Oct 20 12:32:36 *value Oct 20 12:32:43 Or if he's running it async somehow Oct 20 12:32:44 no that I had before same "error", I thought it is some java thing and had quite an argument with the java guys :D Oct 20 12:32:54 now it happens in if {} too Oct 20 12:33:05 Still wouldn't explain first going through true though Oct 20 12:33:26 it would if it is in try ( return true; } finally { return false; } Oct 20 12:33:32 I'll give you the full code, don't think it is async Oct 20 12:33:34 then you would visit both return statments and the last one wins Oct 20 12:34:14 maybe there are solar flares impacting his computer Oct 20 12:34:29 do you have a finally block DarsVaeda? Oct 20 12:34:45 http://pastebin.com/yt0taFAR line 146 Oct 20 12:35:26 there is no boolean return type there... Oct 20 12:35:54 Got me excited over nothing :( Oct 20 12:36:34 asfdd, means if I "return 0f" it will work? O_o Oct 20 12:38:38 ah then it still hits the other return but returns indeed 0.0 :O Oct 20 12:40:02 so is this java or android behaviour? I'm coming from php expected it to return just null :/ Oct 20 12:40:18 In your addItem method you have a for-loop DarsVaeda Oct 20 12:40:29 In there it calls the getValue method Oct 20 12:40:51 If you have multiple items to loop over it's not unusual to see multiple returns, you probably have 2 EditTexts, one with text and one without Oct 20 12:40:54 yes but not that case I'm following in the debugger Oct 20 12:41:55 I really have to use the same return type, I didn't know you can't return null if the method shall return float Oct 20 13:01:13 hi Oct 20 13:04:45 Hey guys I am actually trying a grid layout: https://gist.github.com/itissid/c57ecf7de9bebba45b07 and can't seem to understand how the grid index generation is working. I want to control the spacing between the TextView And the EditText Oct 20 13:05:15 And by control for example is placing more than 2 elements in one row Oct 20 13:05:34 http://picpaste.com/Screen_Shot_2014-10-20_at_8.47.54_AM-ypjBTfU0.png is the view that comes out Oct 20 13:06:19 So there for example I would like Phone# Textview to be closer to the EditText. Oct 20 13:10:30 Hey! I have an app which communicates to the server through a REST API (duh). I have an async task in each of my files, like for each task. I want to cleanup the code, maybe use a single async task. Can someone tell me how it is usually handled by devs? Oct 20 13:13:21 I'm using this code to make the listview that's inside my navigation drawer catch the touch event instead of the drawer catching it, cause I want to swipe on the listview's items Oct 20 13:13:22 http://pastie.org/9662918 Oct 20 13:13:56 well, it doesn't apply except for the space beyond the elements that are in each row. So I have to be pressing down on the far edges of each item for that touch to register and stop the drawer from getting the touch Oct 20 13:14:07 I want to apply it on the whole row Oct 20 13:16:10 Odaym, can't you add the onTouchListener to the individual items in the listView rather than the whole listView? Oct 20 13:16:45 I tried that, it still doesnt register except for select areas of the row's space Oct 20 13:17:49 probably because you are setting a touch listener for your listview? Oct 20 13:18:00 not the children Oct 20 13:18:41 probably what Oct 20 13:19:23 it only registers touches around your items, cause you are setting the listener on the actual listview Oct 20 13:19:36 alright, but then how do I reference a ROW Oct 20 13:19:43 get it Oct 20 13:20:01 this thing that exists several times inside a listview, the thing that contains all of the different content that's repeated vertically Oct 20 13:20:34 they are children of your listview Oct 20 13:20:46 they're made up of viewholder's children Oct 20 13:20:55 there's no 1 thing that has all of them Oct 20 13:21:00 no Oct 20 13:21:18 you set it for each, the views are recycled Oct 20 13:21:31 no man, the each you're talking about is the row Oct 20 13:21:45 the row is not a specific thing that I can set this to, it's different views Oct 20 13:21:46 they are views Oct 20 13:22:04 I guess its convertView that holds each row's elements Oct 20 13:22:10 use a custom adapter, get the convertview, set listener Oct 20 13:24:14 still only around the edges Oct 20 13:25:02 still have that same listener on your listview too? Oct 20 13:25:26 of course not Oct 20 13:25:28 have you shown anycode yet? I may have missed it Oct 20 13:25:35 I set it on the convertView inside the adapter Oct 20 13:25:43 http://pastie.org/9662918 Oct 20 13:25:46 that's the intercepter Oct 20 13:26:03 uhhh Oct 20 13:26:15 thats still attatched to listview Oct 20 13:26:23 show something relevant Oct 20 13:26:23 it's the old code Oct 20 13:26:46 you're not going to solve it Oct 20 13:26:49 its fine Oct 20 13:26:55 gl Oct 20 13:26:56 I think the design decision is wrong Oct 20 13:27:08 guys, I am trying to show notifications in android. However I am not able to dismiss notifications when user clicks on it. Oct 20 13:27:14 here is my code - http://pastebin.com/t1tRFuF5 Oct 20 13:27:47 as per docs - setAutoCancel should do the needful Oct 20 13:27:48 http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html#setAutoCancel(boolean) Oct 20 13:27:56 am I doing anything wrong? Oct 20 13:39:58 I have a stupid question, in gradle how do I change the versionCode and versionName? They are not there in AndroidManifest Oct 20 13:43:33 If I have 5 rows in a table with id's(auto-increment) 1,2,3,4,5 and if i delete row with id 3 , will row 4 get the id 3 then ? Oct 20 13:55:01 killer, try it and see? (short answer: no, because that would be dumb) Oct 20 14:07:56 astroduck: did you google? I admit the answer I got after a 1s google looks a bit messy but gradle is .. http://stackoverflow.com/questions/17448565/how-to-autoincrement-versioncode-in-android-gradle#17525195 Oct 20 14:11:50 I give up, whatitis; here's my adapter Oct 20 14:11:51 http://pastie.org/9663015 Oct 20 14:12:10 hi, is there a tool that can change the version info in the manifest file on a Mac from terminal ? Oct 20 14:12:26 pico :) Oct 20 14:12:39 nano Oct 20 14:14:05 thx but i forgot to specify and need to do this automatically Oct 20 14:14:11 from a build system Oct 20 14:14:45 um Oct 20 14:14:50 donnib, Gradle sets version info itself Oct 20 14:14:55 you don't have to set it in manifest Oct 20 14:15:15 How can I flip the home up icon if it's an arrow for RTL support? Oct 20 14:15:41 Mavrik: i never heard if Gradle Oct 20 14:16:12 i use Bamboo from Atlassian and i write bash scripts so all i need is a tool that i can give a bash variable to set the version in the manifest file Oct 20 14:21:59 how to block annoying youtube video ads in youtube app w/o rooting? Oct 20 14:22:22 you go to #android Oct 20 14:28:25 Hey, so, just making sure: System app mover won't cause any problems on the Verizon Galaxy S4, right? Oct 20 14:28:46 Woops, this is probably not the best place to ask. Oct 20 14:29:00 See ya. Oct 20 14:43:48 rgr: So with that solution, whenever I make I release build, it will autoincrement it? I don't want it to auto increment, I want to do it manually. Where do I do that? Oct 20 14:55:12 Hi, anyone have any idea what could be causing "[InputMethod] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count"? Oct 20 14:56:22 ooo, I like the little pull to refresh ball instead of the content moving Oct 20 15:04:28 huh, android.support.annotation is public api, so shit should start working now, I think Oct 20 15:10:27 Hi all. Why am I getting an error here with Android AVD on an Ubuntu 14.04 x86-64 VM with OpenJDK - http://www.shlomifish.org/Files/files/images/android-avd-on-ubuntu-vm.jpg ? Oct 20 15:13:36 For the record the AVD from that ADT crashes on my Mageia x86-64 5 host. Oct 20 15:14:29 rindolf, without more backbround, I would first question your choice to use OpenJDK Oct 20 15:15:04 gutano: OK, what should I use instead? Oct 20 15:15:10 Oracle JDK Oct 20 15:15:14 gutano: ah. Oct 20 15:15:40 I'm not privy to the shortcomings of OpenJDK in Android dev, but I suspect it is an uphill battle Oct 20 15:18:35 rindolf, did you install all the emulator images? from the pic, its not obvious its an issue with OpenJDK. Oct 20 15:20:25 pmarino: how do I install them? Oct 20 15:21:15 how to load a url into a webview with espresso ? possible? Oct 20 15:21:28 rindolf, if you open the sdk manager, you should be able to download everything you need. the basic sdk download generally only comes with one system image or so Oct 20 15:22:10 pmarino: OK. Oct 20 15:26:56 huh, tools.build is up to 0.13.3 now? Oct 20 15:27:00 I guess time to update... Oct 20 15:27:41 how is paddingEnd and paddingStart set programatically? Oct 20 15:28:01 setPadding() Oct 20 15:28:29 pmarino: thanks! Let me try. Oct 20 15:29:24 platzhirsch surprised you could not find that really :) Oct 20 15:29:26 StingRay_: so they just sort it out... mhm :-/ Oct 20 15:29:30 how to load a url into a webview with espresso? is it possible? Oct 20 15:29:49 StingRay_: well I am just wondering, because I have to set paddingLeft and paddingStart as attributes explicitly Oct 20 15:41:35 anyone here programming on mac OS X 10.10? Oct 20 15:42:40 (want to know if there are any compatibility issues with intellij/AS) Oct 20 15:42:45 danijoo, i'm working on 10.10 Oct 20 15:42:50 danijoo, not that I would notice Oct 20 15:42:55 ok :) Oct 20 15:43:01 then ill upgrade Oct 20 15:43:02 there's a separate HAXM for 10.10 Oct 20 15:43:08 and I think the x64 image is still broken Oct 20 15:43:14 but that's the only issue I've seen Oct 20 15:43:19 x86 emulator image that is Oct 20 15:43:20 im on genymotion anyways Oct 20 15:43:28 genymotion works fine Oct 20 15:43:30 but i read some forum post about intellij not starting Oct 20 15:43:33 thats why I ask Oct 20 15:44:04 you'll have to reinstall the apple jre runtime if you're using android studio, but its been working well Oct 20 15:44:05 I had java issues, so revered back to ML Oct 20 15:44:14 danijoo, ah, I have IDEA 13, 14 and AS working fine Oct 20 15:44:23 but you'll just have to reinstall java after update Oct 20 15:44:30 yeah thats fine. Oct 20 15:44:36 ill give it a shot then :) Oct 20 15:45:54 btw thats the post i meant http://forums.macrumors.com/showpost.php?p=19195741&postcount=79 Oct 20 15:46:08 its from developer preview though Oct 20 15:48:16 danijoo, i'm using AS with genymotion in 10.10 - regarding genymotion... just make sure you install the latest update for VirtualBox. Oct 20 15:49:11 i need to update all those dev tools anyways :p Oct 20 15:50:22 which layout params do i use to get all my views to resize and fit in parent? Oct 20 15:50:35 fill_parent :) Oct 20 15:51:15 the makes a single view fill the whole thing. i want all the views to fit Oct 20 15:51:23 not fill_parent use match_parent Oct 20 15:51:28 ^ Oct 20 15:51:33 For some reason layout_toRightOf overwrites the behavior of layout_toEndOf … this shouldn't happen for RTL layouts, any idea what's causing this? This happens only in some parts of my layout Oct 20 15:52:16 iKON well what you do is based on what TYPE of parent viewGroup it is Oct 20 15:52:33 ill never learn to replace my fill_parents with match_parent :( Oct 20 15:52:37 but with a linearLayout you would use layout weight Oct 20 15:53:35 what would you use for relativelayout Oct 20 15:53:46 planning Oct 20 15:53:51 and rules Oct 20 15:53:53 :) Oct 20 15:53:59 ;\ Oct 20 15:54:36 addRule() with anchors etc Oct 20 15:55:32 I would guess that 95% of the time people should not AND dont need relativeLayouts though … easy way to tell is "do you use any relative rules?" :) Oct 20 15:55:44 if no, then probably better using something less heavy Oct 20 15:57:35 is viewpageindicator still the defacto for making viewpager tabs in android? Oct 20 15:58:31 Who will be getting the Nexus 6? Oct 20 15:59:04 tricknology why? Oct 20 15:59:12 i dont wear baggys tricknology :( Oct 20 16:00:43 I plan on getting a N6 Oct 20 16:00:46 http://www.journaldugeek.com/files/2013/09/huge-phone-640x352.png Oct 20 16:01:32 baggys, danijoo? Oct 20 16:01:42 I’m thinking about it, need to justify why though lol Oct 20 16:01:47 baggy pants Oct 20 16:01:50 I still have an S3 Oct 20 16:01:59 ooh haha, to fit your monster phone Oct 20 16:02:10 ^^ Oct 20 16:02:24 blazer pocket too small Oct 20 16:02:24 tricknology the only justification is for the dpi qualifier Oct 20 16:02:36 ? Oct 20 16:02:36 really? that’s ti? Oct 20 16:02:47 i waited for the nex6 release so hard. but 5.9 made me get a nexus 5 Oct 20 16:02:54 5.9" Oct 20 16:02:59 yeah Oct 20 16:03:04 5 is gettign lollipop anyway Oct 20 16:03:16 yeah. and I got a cheap used one Oct 20 16:03:24 think 5 will come down in price more? Oct 20 16:03:27 *waiting for the postman* Oct 20 16:03:30 heh Oct 20 16:03:32 no, already dropped Oct 20 16:03:38 they said it wont really drop Oct 20 16:03:41 $349? Oct 20 16:03:46 I downloaded the source code for my Galaxy Nexus with this : repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r1 but the lunch command does not list anything for maguro what am I doing wrong?? Oct 20 16:03:48 it’s pretty cheap no contract Oct 20 16:04:07 deadmund: android-root Oct 20 16:04:18 The channel? Oct 20 16:04:24 got a used one for 200 € :) Oct 20 16:04:26 deadmund: yes Oct 20 16:04:38 danijoo: Thanks Oct 20 16:06:23 Think the Galaxy 6 will be better? Oct 20 16:06:36 tricknology not the channel for this Oct 20 16:06:49 #nexus5 maybe ? Oct 20 16:06:50 right Oct 20 16:07:11 < not a fan of samsung devices Oct 20 16:07:11 a new intel platform has hit the streets. it can run android/linux/windows Oct 20 16:07:41 here http://www.aliexpress.com/item/Sell-Mini-PC-with-both-Android-Windows-8-system/2044898752.html Oct 20 16:08:28 1 or 2 Gb memory Oct 20 16:08:33 must be fun to run windows on that Oct 20 16:08:44 hey guys Oct 20 16:09:31 Is there a better way to manage a user session, other than creating a session object and passing it around? Oct 20 16:10:01 session like a web session with cookie? Oct 20 16:10:22 or session like user logs in when app starts Oct 20 16:10:31 danijoo the latter Oct 20 16:10:32 and the session is only relevant to the app Oct 20 16:10:44 danijoo exactly Oct 20 16:11:07 id do a global "boolean isUserLoggedIn" :) Oct 20 16:11:21 in a singelton, a manager class or whatever Oct 20 16:11:35 something where you can access it from everywhere Oct 20 16:12:25 danijoo i also need to store a login token Oct 20 16:12:47 which can be accessed from a myriad of classes Oct 20 16:13:30 make a manager class singelton that you can access via SessionManager.getInstance() Oct 20 16:13:36 store your information in there Oct 20 16:13:45 ohh Oct 20 16:13:53 and then the methods you need. isLoggedIn(), getSessionToken() etc Oct 20 16:14:09 is it a prebuilt android class?? Oct 20 16:14:14 no Oct 20 16:14:16 btw seems awesome Oct 20 16:14:27 you can build that :) Oct 20 16:14:38 is that what singletons are? Oct 20 16:14:47 sorry i'm a beginner :) Oct 20 16:14:51 i think google is a good place to start Oct 20 16:15:07 learn to search, or you are going to go very slow Oct 20 16:15:14 as in learn very slow :) Oct 20 16:15:20 :) Oct 20 16:15:53 what do i search for? singleton class?? Oct 20 16:16:04 "what is a java singleton" Oct 20 16:16:09 sure Oct 20 16:16:10 thanks Oct 20 16:16:16 try to use brain too ;) Oct 20 16:16:18 thanks danijoo Oct 20 16:16:26 StingRay_ sure Oct 20 16:16:44 sometimes you can search, and the find what you should search for and search to get results Oct 20 16:16:51 thats the basic pattern for it http://pastebin.com/wt063wg6 Oct 20 16:16:52 not always a 2 step process :) Oct 20 16:17:21 replace outside with inside on line 5 ;) Oct 20 16:17:39 ha, first time I've used the multi-locale layout preview in anger Oct 20 16:17:47 and ignore all those typos :D Oct 20 16:18:23 and make SessionManager static Oct 20 16:18:24 danijoo that's great dude, thanks a ton :D Oct 20 16:18:32 wow i should review my code before posting it. Oct 20 16:18:44 yw Oct 20 16:26:15 If we have a gradle android project and no iml or .idea folders/files do we import or open the project? Oct 20 16:26:31 ^ in Android Studio Oct 20 16:27:56 import Oct 20 16:28:07 Open Oct 20 16:28:20 The build.gradle Oct 20 16:29:27 open -> redirect for import *shrug* Oct 20 16:29:38 guess it doesn't matter Oct 20 16:34:33 What the best testing framework to use for android on the jvm? I remember seeing people in here saying not to use a gradle plugin. Oct 20 16:35:02 people suck Oct 20 16:35:08 robolectric? Oct 20 16:41:12 pieces029 Oct 20 16:41:20 lmk if u want to talk about that Oct 20 16:44:44 where is the bundle saved when onSaveInstance is called Oct 20 16:44:59 Dalvik's memory ? ? Oct 20 16:45:06 or somewhere in /cache Oct 20 16:46:34 I want to write to database of another device by its number, and in response I want to get the device's location. How do I do this Android. Someone told me that there needs to be server in between which will send "notification" to the other device, and the device needs to run background process that listens to the "notification". Similar to what WhatsApp, Viber, etc. does Oct 20 16:48:03 Hey guys i got html input field when i click on it it open keyboard , after i click on other element on html it close it Oct 20 16:48:20 my question is , there is a way to tell him to close it ONLY if element is not X for example ? Oct 20 16:49:16 subhojit777, hmm, you have several options Oct 20 16:49:21 1.) Use SMS to do notifications Oct 20 16:49:28 2.) Use GCM push service to do that Oct 20 16:49:43 subhojit777, can you elaborate more on your usecase and what kind of infrastructure you have available? Oct 20 16:52:18 CA residents, today is the last day to register to vote! https://covr.sos.ca.gov/#mainCont Oct 20 16:52:22 hello Oct 20 16:52:28 yo Oct 20 16:52:35 JacobTabak: yeah I would like to talk about it. It was you I was looking for. I remember you going through this just a week or so ago! Oct 20 16:52:47 yea it was brutal Oct 20 16:52:56 :( Oct 20 16:53:04 so right now i think the best solution is to use robolectric, but not the robolectric plugin Oct 20 16:53:23 start with this and see how far it gets you http://blog.blundell-apps.com/android-gradle-app-with-robolectric-junit-tests/ Oct 20 16:53:25 can i create "Button" in java without define it in xml file? Oct 20 16:53:45 JacobTabak: ok thanks! Oct 20 16:53:57 Just wondering what is wrong with the plugin? Oct 20 16:54:36 paule029 yes you can Oct 20 16:54:44 you’ll want to look into dynamic layouts Oct 20 16:55:12 http://www.dreamincode.net/forums/topic/130521-android-part-iii-dynamic-layouts/ Oct 20 16:55:57 pieces029* Oct 20 16:56:24 ? Oct 20 16:56:29 if I open or import in some folders all I get are the gradle files Oct 20 16:56:37 ? Oct 20 16:56:53 oh thank you Oct 20 16:56:57 I then have to go and delete the .idea and .iml folders and try again Oct 20 16:57:12 Hey guys I have an app where I make REST calls using DefaultHttpClient and get json files, and as soon as I get I write them to files so that I can use them offline.. I just found about Volley, it says it has 'in built' caching.. does this mean I dont have to write to file if I use volley? (Sorry if this question sounded too newbie-ish) Oct 20 16:57:14 ^ RE: open or import gradle project Oct 20 16:57:57 sorry, wrong person pieces029 Oct 20 16:59:31 Am I the only one who can't get RecyclerView to work in the emulator on Lollipop? Oct 20 16:59:50 Keep getting ClassNotFoundException on android.view.RecyclerView Oct 20 17:00:12 It's android.support.v7.recyclerview.RecyclerView Oct 20 17:00:21 v7.widget.. Oct 20 17:01:01 Like any custom view, you need to fully qualify it in xml Oct 20 17:01:53 where can I find support for AndroidGCS? Oct 20 17:01:56 oops Oct 20 17:02:03 AndroidStudio I mean Oct 20 17:02:09 Well, I tried that (after adding the recyclerview compatibility library to my project) Oct 20 17:05:08 It wouldn't be looking for it in android.view if you fully qualified it Oct 20 17:05:42 JacobTabak: I'd like to talk about it too Oct 20 17:05:46 Yeah... Sorry. I was looking at it. Seems like the error message I'm gettnig after specifying the v7 one is different Oct 20 17:05:57 ok feel free to ping me if you have any questions Oct 20 17:06:04 it's actually recyclerview that doesn't have a layout Oct 20 17:06:18 will do Oct 20 17:06:27 warning pieces029 the approach in that blog has one issue i haven't really worked around yet - it requires you to release sign / proguard each time you run tests Oct 20 17:06:31 i have a workaround but its not ideal Oct 20 17:07:35 I need some help. bundle.putParcelable() succeeds. but bundle.getParcelable() returns null. I'm running activity and service as two different processes. Oct 20 17:09:54 JacobTabak: ok thanks again! Oct 20 17:10:32 bakshi_gulam have you tried running it in the same process to see if you have your same bug (by removing the manifest attribute)? Oct 20 17:13:00 how do i leave keyboard open even that i click on other html element? Oct 20 17:13:41 I'm a bit confused why I have to use the compatibility libraries when I'm not targeting anything less than Lollipop Oct 20 17:14:23 JacobTabak: running it in the same process also gives same error. Do you have any clue why? Oct 20 17:14:51 not to be rude - but it's probably a simple mistake Oct 20 17:14:55 hmm, looks like no one has time for poor me Oct 20 17:14:57 at least you've ruled out the multi process thing Oct 20 17:15:04 Looney just ask your question again Oct 20 17:15:07 i didnt see it Oct 20 17:15:09 dont be emo Oct 20 17:15:20 :-P JacobTabak Oct 20 17:15:31 guys, how can i run something in my launcher when the user changes the wallpaper? Oct 20 17:15:40 bakshi_gulam want to paste your startService() code and the code in the service that gets the parcelable in pastebin? Oct 20 17:15:59 OverCoder is there a system broadcast for that event? Oct 20 17:16:06 i don't know Oct 20 17:16:16 do you know how broadcast receivers work Oct 20 17:16:21 no Oct 20 17:16:22 I asked, where is the state of application which is saved using onsaveinstancestate Oct 20 17:16:25 and i'll search for it Oct 20 17:16:34 is it in dalvik's memory Oct 20 17:16:35 OverCoder look up broadcast receivers (like for battery level getting low) Oct 20 17:16:41 and see if you can find one for the event you're looking for Oct 20 17:16:42 or somewhere is /cache Oct 20 17:16:55 JacobTabak, awesome, thanks Oct 20 17:17:03 I am betting on somewhere on OS stack Oct 20 17:18:20 JacobTabak: it's already in GitHub... https://github.com/bakshi-gulam/CuckooX-DEV Oct 20 17:18:34 JacobTabak: Can you have a look? Oct 20 17:18:53 Looney i think it's written to file somewhere Oct 20 17:19:04 not sure tho, let me know if you find out Oct 20 17:19:07 its not in memory Oct 20 17:19:21 bakshi_gulam looking Oct 20 17:19:29 JacobTabak: https://github.com/bakshi-gulam/CuckooX-DEV/tree/master/SimpleRemoteService/src/in/gulam/cuckoox Oct 20 17:19:39 JacobTabak: thanks :-) Oct 20 17:20:20 so these are not intent bundles, but message bundles Oct 20 17:20:56 JacobTabak: Yes! Oct 20 17:20:57 bakshi_gulam are you able to get other things from the bundle - not parcelable? Oct 20 17:21:23 Mavrik, sorry for late reply. Was away. I will have number of other device, the other device will also have the same app installed. The app will show the location of device by number. The number is obtained by numbers in contact list. By installing the app you agree that your location to anyone who has your number and have the app installed. So basically, when you open the app, it should send some kind of ping or "notification" to other device Oct 20 17:21:24 , and write to its db that a device by number X has accessed your location in Y time. On writing to db, the response should be the location, so that the app user can see its location in map Oct 20 17:21:33 I have a line of code that worked fine with no errors in Eclispe but now in Android Studio... it gives me a red line with an error of Incompatible types... if I build and run it works, but the red line in my project tree is driving me insane. Ideas? Oct 20 17:21:42 JacobTabak: I added only Parcelable to that bundle... and at the receving Activity, the bundle is empty Oct 20 17:21:45 eghdk screenshot Oct 20 17:23:17 JacobTabak: http://imgur.com/cpGrKxO Oct 20 17:24:17 bakshi_gulam i've never done anything like this, sorry Oct 20 17:24:42 tricknology: i follow the example, but the button is not display/shown Oct 20 17:25:15 eghdk charsequence is not parcelable Oct 20 17:25:49 JacobTabak: I understand that. But why the hell does it run Oct 20 17:25:57 and why did it run in eclipse with no error? Oct 20 17:26:14 can you pastebin your code paulie32 Oct 20 17:26:25 eghdk just make uri2 a string and do intent.getStringExtra() Oct 20 17:26:37 myabe you are not calling invalidate() or somehow they are being set to View.GONE Oct 20 17:26:41 or INVISIBLE Oct 20 17:27:02 of you didnt setCOntentView() Oct 20 17:27:10 after you added the items Oct 20 17:27:14 or* Oct 20 17:27:17 hmm, I cannot even think of the words to look for at Google Oct 20 17:27:30 * in Google search Oct 20 17:27:33 Looney, it happens Oct 20 17:27:42 hehehe Oct 20 17:27:43 JacobTabak: Okay, but still. I'm confused as of how it compiled if it was incompatible? Oct 20 17:27:44 eghdk some errors are not compiler errors but ide static checks Oct 20 17:27:52 like lint? Oct 20 17:27:56 paulie32 pastebin.com with your code Oct 20 17:28:01 yes, sometimes you'll get errors from lint that will still build/run Oct 20 17:28:30 but they're a sign that your code is wrong Oct 20 17:28:30 Interesting. Okay JacobTabak last thing... If I leave it the way it was... why didn't it crash? it actually worked just fine. Oct 20 17:29:16 eghdk probably because of the generics in getParcelable Oct 20 17:29:32 i don't understand fully Oct 20 17:29:52 Okay. I'll take your word for it. Thanks Oct 20 17:30:17 eghdk i think its bc charsequence is an interface Oct 20 17:30:35 and an object that implements charseqeunce could also impleemnt parcelable Oct 20 17:30:41 but the compiler wouldn't know at compile-time Oct 20 17:31:12 sound reasonable? Oct 20 17:31:17 Okay. I'll just do the String option. It compiles fine. Now I will have to test it. Oct 20 17:31:38 ok, well this is really strange. I'm running something on a Nexus 7 and the same code I'm testing simultaneously on a Galaxy S3 and a Nexus 5 is opening the file browser, waiting for me to choose a file, closing the dialog and from activityResult setting a textfield to be the path of the chosen file Oct 20 17:31:53 so it compiles - assuming that your implementation of charsequence will implement parcelable, but the IDE shows it as an error because it's not type-safe and will fail in other circumstances Oct 20 17:32:35 tricknology: http://codepad.org/haNvR1mu Oct 20 17:32:37 in onActivityResult when using this on Nexus 7, the line where I set the edittext to the path is the cause of the NullPointerException. The path is not null (cause I have a condition for that) and nor is the edit text null (I checked) Oct 20 17:32:56 Odaym do you ahve 'dont keep activities' enabled on any device? Oct 20 17:33:13 in developer settings Oct 20 17:33:17 the intent and the activityresult are in the same place spawned Oct 20 17:33:45 Odaym the edit text must be null Oct 20 17:33:49 ahh...yes yes I do, I remember that Oct 20 17:34:16 Odaym 'onActivityResult' gets called earlier than you might expect Oct 20 17:34:23 yea yea, thought tso Oct 20 17:34:25 in your activity lifecycle Oct 20 17:34:36 thanks Oct 20 17:35:05 Odaym you probably want to set a variable in onActivtyResult, and then in onResume or something, set your edittext to that value Oct 20 17:35:15 that's what I do now Oct 20 17:35:21 paule32 you are adding the ll to the sv before you pur anythign into it Oct 20 17:35:23 ah in onResume Oct 20 17:35:27 yea, makes sense Oct 20 17:35:29 so it will be blank Oct 20 17:35:39 move line 37 to 53 Oct 20 17:36:04 you probably don’t need invalidate since you already setContentView() Oct 20 17:36:16 invalidate() is for when views change,m or you add a new view Oct 20 17:36:22 it is like repaint() Oct 20 17:36:55 ah thanks Oct 20 17:37:00 np, hope it works :) Oct 20 17:37:02 hmm, so no idea of proper keyword recommendations? Oct 20 17:37:03 nah man, you can't set it in onResume Oct 20 17:37:13 that's called when the activity first shows up too Oct 20 17:41:27 tricknology: no Oct 20 17:41:32 its not shown Oct 20 17:41:46 when publishing, is it possible to specify a certain level of graphics capability or even specific handsets? Oct 20 17:43:00 I have a graphics heavy app and is not likely to be suitable for many low-powered-graphics phones Oct 20 17:43:00 graphics capability? Oct 20 17:43:00 http://codepad.org/SfdgwoTc Oct 20 17:44:00 Im sick of thinking in terms of "is Don't Keep Activities set to true??" Oct 20 17:44:06 danijoo: it make high demands of the GPU Oct 20 17:44:16 it's like saying "if the way Android works is broken, will your app still work?! HUH?!" Oct 20 17:44:49 droidboi: you can filter for opengl options Oct 20 17:45:19 yeah - I know - but some are too slow Oct 20 17:45:41 ah, paule32 !! Oct 20 17:45:49 you did not learn layouts! Oct 20 17:46:02 If you add every compression filter you'll only get devices with a good gpu Oct 20 17:47:48 danijoo: Ideally I'd like to say GPU_Cores > 48 Oct 20 17:47:53 :) Oct 20 17:48:08 But I not aware of that option Oct 20 17:48:46 nope. Oct 20 17:48:57 you can only filter for specific opengl features Oct 20 17:49:04 or filter manually :D Oct 20 17:49:46 danijoo: Do you know if you can filter for device? Oct 20 17:50:06 you can disable devices by hand after uploading the apl Oct 20 17:50:07 apk Oct 20 17:50:45 disabling would be a big list Oct 20 17:50:51 yep Oct 20 17:50:57 enabling would be a small list Oct 20 17:52:39 not possible :) Oct 20 17:53:02 the list is 7425 devices for api version > 9 btw ^^; Oct 20 17:53:10 OK danijoo, I very much appreciate your help Oct 20 17:53:19 heh anyone need all the devices? Oct 20 17:53:22 a list? Oct 20 17:53:23 I'm basically screwed Oct 20 17:53:38 I made a git repo that will scrape and parse the list from android. Oct 20 17:53:51 really? Oct 20 17:53:51 I think it puts it in a DB but I might have stopped before I got that far. Oct 20 17:53:53 can I see? Oct 20 17:53:54 yes Oct 20 17:54:22 https://github.com/znwabudike/AndroidPhoneDatabase Oct 20 17:54:40 So i thnk it inserts them into SQ3 db but that’s as far as aI got for now Oct 20 17:54:53 we were talking not long ago about how someone should do it Oct 20 17:54:55 would be simple to write a search mathod Oct 20 17:55:06 well.. here it is.. I found reason to use one so I made it Oct 20 17:55:07 I think it was you who said you were already working on something like that but had no time Oct 20 17:55:16 yeah Oct 20 17:55:27 that’s why it’s not searchable bt the leg work is pretty much done Oct 20 17:55:30 the aprser was a pain.. Oct 20 17:55:34 parser* Oct 20 17:55:52 I'm not sure how to run this? Oct 20 17:55:58 haha Oct 20 17:56:06 yeah… um use the test activity Oct 20 17:56:19 i made a horrible Junit test Oct 20 17:56:36 yea that's not going to see any love Oct 20 17:56:41 ..which it looks liek I didn’t include Oct 20 17:56:56 meh, I don’t mind.. actually one of the first times I used git Oct 20 17:56:58 streamline the whole thing with proper description and a means to run and install and everything you can think of that the user might need Oct 20 17:57:07 you'll get a LOT of traffic Oct 20 17:57:10 so.. gradle or maven? Oct 20 17:57:21 Thanks, Odaym. I think I’ll work on it tonight Oct 20 17:57:22 gradle Oct 20 17:57:26 * hoodedice runs away Oct 20 17:57:31 guess I’m finally installing AS lol Oct 20 17:57:46 lunch time yall Oct 20 17:58:05 I’ll get that phone database fixed right up for you guys tonight though Oct 20 17:58:23 can I use it Oct 20 17:59:01 what will it have Oct 20 17:59:27 hmmmmmm Oct 20 17:59:32 list of all the android devices that are out there, straight from the place where we usually look to get them Oct 20 17:59:44 updatable because it gets created everytime you launch it Oct 20 18:00:14 I need to know what devices can run my graphics Oct 20 18:00:16 it could be then parsed and made into a long checkable list of items kind of thing where you could keep track of what you've tested on or what whole batch of devices might need the same fix or work in the same fashion given some criteria Oct 20 18:01:37 I have an app "TheLightMachine" which is useless on most devices except powerful graphics ones Oct 20 18:02:32 I'd like there to be a filter for powerful graphics devices Oct 20 18:03:45 hello guys I getting application shut, in one of my collegues machine...it's the same eclipse...just copied to windows 8 Oct 20 18:06:05 "adb logcat" can help. Oct 20 18:11:14 danijoo: what is a compression filter Oct 20 18:11:41 never heard of it Oct 20 18:13:59 it seems to relate to textures, which is not my issue Oct 20 18:18:22 Is there a way I can ask for GPU power to be added to the filter mechanism in some way? Oct 20 18:20:09 Otherwise the app will disappoint a lot of people Oct 20 18:20:38 The only alternative is a refund Oct 20 18:21:00 well Oct 20 18:21:04 (if it is a paid-for app) Oct 20 18:21:11 you can try to use more than one core Oct 20 18:21:15 in the cpu Oct 20 18:21:17 somehow Oct 20 18:21:28 its a GPU bound app Oct 20 18:21:56 using GLSL Oct 20 18:31:22 the class R is not refering something, I already delete it and rebuild the project...and I get the same erro...someone can help me? Oct 20 18:31:33 you have an error in your XML Oct 20 18:31:44 go back there and look for it, fix it and everything will be built and R generated Oct 20 18:32:03 Odaym: the same aplication I have in other machines Oct 20 18:32:25 something in the XML is wrong man Oct 20 18:32:33 that's the only reason that R doesn't generate Oct 20 18:32:49 droidboi: IDK then. Oct 20 18:35:12 does anyone have experience with adding local maven repos on AIDE? im having trouble getting the new appcompat libraries to work :( Oct 20 18:35:24 aide supports maven? Oct 20 18:37:26 not really Oct 20 18:38:15 I've been told (and i found the settings) that I can add a local repo by just pointing to m2repository, but it isn't working Oct 20 18:39:15 my app builds, but it crashes at start saying it can't find ActionBarActivity Oct 20 18:39:38 well, it's aide Oct 20 18:39:41 don't count on it working Oct 20 18:40:19 im pretty new to android, and haven't really used maven before lol Oct 20 18:40:33 is there any way to pack the aar as a jar or something? Oct 20 18:42:33 or specific stuff i can check to make sure the repo is set up right? Oct 20 18:48:45 I have a Service I need to start at application start and stop at application stop. It seems silly to have every Activity bind/unbind onResume()/onPause() but there doesn't seem to be a callback for when an Application is shut down ... any advice on the rigth way to do this? Oct 20 18:49:20 wmoran the service will always die when the application dies Oct 20 18:49:28 unless it's in another process Oct 20 18:50:26 ie, the service always depends on the application context Oct 20 18:50:55 but maybe if you worded your question a little more specifically i could help Oct 20 18:52:20 No, you're correct, but I get an exception about leaking services when I shut the application down Oct 20 18:52:27 And I figured I should try to avoid that Oct 20 18:52:34 what do you mean by 'shut it down' Oct 20 18:52:50 close all activities? Oct 20 18:52:55 wmoran - you need to unregister the listeners onDestroy() Oct 20 18:53:01 or onPause() Oct 20 18:53:12 well it should be onStart and onStop Oct 20 18:53:17 meh Oct 20 18:53:22 call finish() from the main activity or kill it from the task manager, or anything that outright shuts it down Oct 20 18:53:40 finish doesn't shut it down though, and killing it from the task manager doesn't either Oct 20 18:53:44 isn't there a START_STICKY option that restarts the service after the application has died? Oct 20 18:53:45 tricknology, I have never seen onDestory() called on an Activity, ever Oct 20 18:53:54 it is called after finish() Oct 20 18:54:58 http://developer.android.com/reference/android/app/Activity.html Oct 20 18:55:14 is there any way to pack up an aar as a library jar? or something so i can add it manually rather than by maven? specifically appcompat Oct 20 18:55:28 wmoran ^^ check that link Oct 20 18:55:37 drinfernoo you'd need a library project Oct 20 18:56:03 oh wow, Lollipop will support vector images? that seems like a pretty big deal Oct 20 18:56:07 tricknology, I'm fairly familiar with those docs, and thats a long one ... what, in particular do you want me to read? Oct 20 18:56:31 drinfernoo you may be able to put .aar it in your libs/ and compile it with gradle - never tried Oct 20 18:56:37 mattblang why a big deal ? Oct 20 18:56:48 The part where it says "you can't rely on onDestroy() to ever be called"? Oct 20 18:56:53 and whats the source mattblang Oct 20 18:57:04 StingRay_ only will need one VectorDrawable instead of managing multiple rasteurs across all the density buckets? Oct 20 18:57:38 StingRay_ https://developer.android.com/training/material/drawables.html Oct 20 18:58:18 so they have made drawPath into a xml tag Oct 20 18:58:21 not new Oct 20 18:58:28 well, ok the xml bit is new Oct 20 18:59:17 still, but funky to do "some" things with vectors and fills Oct 20 18:59:19 StingRay_ you can actually load .svgs now which is huge because graphic designers can provide them Oct 20 18:59:34 well, you actually could before, just needed a lib to parse them Oct 20 18:59:38 JacobTabak can you? oh man Oct 20 18:59:39 but also limiting Oct 20 18:59:41 and you can do animated paths backed by svg's Oct 20 18:59:52 JacobTabak I know, I was saying nothing new Oct 20 18:59:53 I upgraded to OS X 10.10 Yosemite. The only JDK available is JDK8. Does that work with the Android SDK/ant/gradle/Android Studio? Oct 20 19:00:02 yes Oct 20 19:00:04 like there's one demo from io2014 (material witness) where a SVG path is traced with an animation, pretty cool Oct 20 19:00:40 ewmailing.. are you using AS or Eclipse? Oct 20 19:00:44 or somethign else Oct 20 19:01:15 I want to use Android Studio, but have some legacy things that use ant (commandline, no Eclipse) Oct 20 19:01:32 Eclipse doesn't like Java 8 much Oct 20 19:01:46 it’s running fine over here <— but I’m not on Yosemite Oct 20 19:02:17 *Java 8 Oct 20 19:02:34 Hi all. Can anyone tell me how to fix this issue with running the emulator on an Ubuntu 14.04 VM - http://www.shlomifish.org/Files/files/images/android-avd-on-ubuntu-vm.jpg ? Oct 20 19:03:12 Good to know, thanks. Oct 20 19:07:02 wmoran i think that applies to data. A receiver registered in onCreate() will leak after it onDestory() is called and it is not unregistered.. Oct 20 19:07:18 so, if you register it in onCreate() unregister it in onDestroy(), i Oct 20 19:07:26 onResume() - onPause() Oct 20 19:07:33 onStart() - onStop() Oct 20 19:07:53 just put one everywhere :D Oct 20 19:08:17 Does SoundPool.release() stop any currently playing sounds or throw any exception or waits for them to finish? Oct 20 19:08:18 How do I add a library project with Android Studio? Oct 20 19:08:20 really depends on your expected behavior Oct 20 19:08:22 like Mr Bean trying to hide the stake tartar Oct 20 19:09:54 JacobTabak, trying to make it into a library project, build fails as [INSTALL_FAILED_OLDER_SDK]? Oct 20 19:10:16 thats a common error you can google it Oct 20 19:11:44 I think I just hit the dex limit, someone welcome me to the club! Oct 20 19:11:57 welcome :) Oct 20 19:12:30 http://codepad.org/NWBl1wd4 i don't know how to display the content Oct 20 19:12:37 i have ask google Oct 20 19:12:50 but there a lot of eclipse, xml and so on Oct 20 19:12:58 but nothing with ndk Oct 20 19:13:21 sdk Oct 20 19:14:37 thanks! Great that Google actually fixed this problem some days ago from what I read Oct 20 19:15:55 is it because appcompat has minSdkVersion="L" and I'm on 4.4.4? Oct 20 19:16:07 and should it be 21 or L? Oct 20 19:16:20 Afzal depends on what you mean fixed Oct 20 19:16:22 21 Oct 20 19:16:33 StingRay_, multidex :) Oct 20 19:17:02 I just reached that limit when I included appcompat in my current setup lol Oct 20 19:17:48 don't ever use "L" anymore Oct 20 19:17:54 except for targetapi... Oct 20 19:18:08 StingRay_ Oct 20 19:18:13 Did you put me on ignore? Oct 20 19:18:35 seems to be a fad... Oct 20 19:18:42 wat Oct 20 19:18:44 yes …yes I did Oct 20 19:18:48 :-( Oct 20 19:18:49 and I cant see what you are typing Oct 20 19:18:57 so I cant respond at all Oct 20 19:18:59 I sent you some PMs Oct 20 19:19:20 lol Oct 20 19:20:05 JacobTabak, could it be that my appcompat aar is messed up? it had L in the manifest Oct 20 19:20:30 L should be less than 21 Oct 20 19:20:33 in terms of min api Oct 20 19:20:38 but you shouldn't use it anymore Oct 20 19:21:19 tricknology? Oct 20 19:21:27 hey Oct 20 19:21:49 i have ask google many times, but don't get working Oct 20 19:21:56 heh Oct 20 19:22:39 must i have a xml file? Oct 20 19:22:44 drop it? Oct 20 19:22:52 what should i be using as target in project.properties? Oct 20 19:23:07 http://pastebin.com/xY1g7GaR Oct 20 19:23:12 paulie, check my edits Oct 20 19:23:26 target = 21 Oct 20 19:23:28 paule32* Oct 20 19:24:01 you are puttin ll into sv with nothing in it Oct 20 19:24:11 then you are setting content view to sv.. with ll.. with nothing in it Oct 20 19:24:34 you add things to ll after you added to sv.. it’s not a pointer, it’s a reference Oct 20 19:24:59 or copy, if you will Oct 20 19:25:29 so at the time you add ll to sv, the copy still ahs nothing in it Oct 20 19:26:35 blank screen Oct 20 19:28:37 Ok so it stops any sound playing and ignores any further play requests. Oct 20 19:28:46 The more you know :P Oct 20 19:32:26 http://codepad.org/wtVNbHzT this is my /res/layout/main.xml Oct 20 19:33:46 eeh I thnk you still need a n xml to house the elemnts Oct 20 19:34:25 thats dump Oct 20 19:36:06 no you don’t need an xml, nvm Oct 20 19:39:16 paule32 try removing this. Oct 20 19:39:24 in this.setContentView() Oct 20 19:41:02 why would ActionBarActivity nit be able to resolve findViewById()? Oct 20 19:41:33 or setSupportActionBar()? Oct 20 19:41:59 and need me to implement getSupportFragmentManager()? Oct 20 19:42:14 lol i can only imagine because you imported appcompat incorrectly Oct 20 19:42:22 is there a transient dependency you're missing? Oct 20 19:45:39 still blank black screen Oct 20 19:48:22 tricknology: http://s526708573.online.de/qt521/myapp.zip Oct 20 19:48:38 can’t open, sorry Oct 20 19:49:27 https://www.youtube.com/watch?v=N6YdwzAvwOA&feature=youtu.be&t=43m Oct 20 19:49:40 this is a video abotu layouts Oct 20 19:50:19 evening all, I'm trying to use a PagerTabStrip as part of a ViewPager. I want to retreive a string resource (R.string.contacts_tab_controller for example) to provide for the title. Using getString(R.string.contacts_tab_controller) in the Fragment's getTitle() function throws an exception as it is called before it is attached to an Activity (and before onCreateView is called). Is there a way to use resources for this purpose or am I stuch hard- Oct 20 19:50:19 coding it in? Oct 20 19:50:44 why wouldn't I be able to access Settings.Global on Galaxy S3?... Oct 20 19:51:22 JacobTabak, there shouldn't be? it should just be the appcompat-v7 Oct 20 19:51:23 NoClassDef even Oct 20 19:51:28 not just any error, lol Oct 20 19:52:11 hi Oct 20 19:52:34 in the new wallet merchant center, is there an option to view revenue by day for the last 30/90/.. days? Oct 20 19:52:39 Just like it is on AdMob Oct 20 19:52:45 gsteinert this is not a normal problem to have Oct 20 19:52:46 I'd love to have a data visualisation of that Oct 20 19:54:59 gsteinert in your fragment's onCreate you should already have access to getResources() and getActivity() Oct 20 19:56:12 JacobTabak: this is in my fragment's getTitle() which appears to be called by something external (I assume the PagerTabStrip, but I'm checking that now) before onCreate is called Oct 20 19:56:33 gsteinert that's not normal, you must be doing something wrong Oct 20 19:56:56 if you're using a FragmentPagerAdapter or FragmentStatePagerAdapter, the adapter will be calling getTitle, and only after the fragment has been created Oct 20 19:57:22 somethign is happening before onCreate() Oct 20 19:58:51 Is there a list where I can find what properties build flavors can have in build.gradle? Oct 20 19:59:54 JacobTabak: Fragment.getTitle() is called by my subclassed FragmentPageAdapter.getPageTitle() Oct 20 20:00:27 are you lazily creating your fragments in your fragment pager adapter? Oct 20 20:00:33 or are you creating them ahead of time Oct 20 20:00:37 becuase you're supposed to create them lazily Oct 20 20:00:48 not sure if that would fix this Oct 20 20:01:26 JacobTabak: I'm creating them all in the Activity's onCreate, so ahead of time. I assume by lazily you mean creating the object in getItem() instead? Oct 20 20:01:35 yes Oct 20 20:02:09 I'll give that a go, thanks for the pointer Oct 20 20:02:16 heh onCreate() sounds liek a waste of memory tbh Oct 20 20:02:24 ..if you don’t use all the objects Oct 20 20:02:49 I was working straight from a tutorial... been a while since I've done any android development! Oct 20 20:02:56 Hey , I use buttons to display previous and next row in a table (Which updates the textview), when user deletes a particular row , how can i display the rows correctly ? Oct 20 20:11:30 is it more expensive to maintin a BT connection or connect and disconnect every time? Oct 20 20:11:50 - assuming you already have the address and don’t ned to to do device discovery Oct 20 20:13:54 tricknology: thanks for patient Oct 20 20:14:07 then i have to code a little bit more Oct 20 20:14:25 that's not the thing Oct 20 20:14:37 have think it can be dynamic... Oct 20 20:14:55 so bed time Oct 20 20:15:06 gn8 Oct 20 20:15:24 Hi guys. Does anybody know how to open in-built gallery in slideshow mode? I open gallery with Intent intent = new Intent(Intent.ACTION_VIEW); Oct 20 20:15:25 intent.setDataAndType(imageUri, "image/*"); but I want it to start a slideshow after gallery started. Googling didn't help me... :( Oct 20 20:15:40 in medium to large projects, the res/layout folder quickly becomes cluttered Oct 20 20:15:49 can I have subdirectories inside it? Just for organization Oct 20 20:16:00 and does anyone have a naming scheme that they use? Oct 20 20:16:23 johnflux__ no sub dirs Oct 20 20:16:29 just prefix postfix Oct 20 20:19:45 Writing a LWP, Is it possible to find out how much screens launcher currently has? the goal is to know which screen is the center one. I do know about onOffsetsChanged but that doesn't help Oct 20 20:20:37 johnflux__: i've started using activity_ list_ fragment_ prefixes, not as clean as a dir structure, but not a bad compromise Oct 20 20:21:37 gsteinert: thanks Oct 20 20:28:25 how can I put a toolbar under the action bar and not have the visual separator (like the Hangouts app). do I need to go ahead and make a toolbar for my action bar as well? Oct 20 20:34:36 hey guys, got a question. i want to make constant strings for textviews accessible globally in my app and wonder if there are some disadvantages in declaring them in res/values compared to declaring them in my application-data-object. Oct 20 20:34:37 i can see one advantage: its also accessible for xml files. But is it maybe faster to get access to them while they are declared in applicatipon-data-object? thx in advance Oct 20 20:38:09 Hey everyone Oct 20 20:38:28 I'm trying to make a singleton class to manage a usersession Oct 20 20:39:08 but how do i get the context into the said class?? Oct 20 20:41:44 dagger Oct 20 20:45:58 wtiger: pass it in getInstance function? Oct 20 20:49:12 are there any apps that monitor keypresses without root? Oct 20 20:49:25 I’m tryign to figure out if this client’s back button is broke ^.^ Oct 20 20:53:41 Damn clients with broken back buttons Oct 20 20:53:48 tell them to make a video of the phone. Oct 20 20:54:32 johnflux__ trying right now Oct 20 20:57:21 haha actually.. Oct 20 20:57:26 I have video Oct 20 20:57:29 TestFairy.com Oct 20 20:57:34 hey guys, I have a relative layout container for a page, then I have another relative layout inside it, with alignBottomParent=true. It's basically a banner. But when I click on it, it actually clicks on something underneath that banner. Can I somehow make my banner on top of it so it won't clickthrough something below? Oct 20 20:57:48 client is literally goign to main screen and doing nothing Oct 20 20:58:00 open up 1 or 2 other activities and just sits there Oct 20 20:58:08 but.. 17 sessions in 3 mins Oct 20 20:59:09 @ Agamemnus Oct 20 21:01:26 So am I correct in saying that using AppCompat means we don't have to worry about using custom styles for every widget on previous android versions? Oct 20 21:01:29 (more or less) Oct 20 21:01:41 Techdeck: you're using a layout to display an imagine? Oct 20 21:01:44 Techdeck: you're using a layout to display an image? Oct 20 21:01:56 Techdeck: rather than a ImageView ? Oct 20 21:02:55 jhonflux__ worked just fine, thanks Oct 20 21:03:42 wtiger: great :) Oct 20 21:04:13 tricknology, can't you just do onBackPressed? Oct 20 21:04:28 johnflux__ :D Oct 20 21:05:59 Afzal I don’t want to Oct 20 21:06:26 I want to troubleshoot this problem and i was wondering if there was a key laogger already out.. somethign that takes key events and logs them to your screen Oct 20 21:06:38 probably is. Oct 20 21:06:41 (not saving a ffile) Oct 20 21:06:52 I was looking and KeyEvent Display requires root :/ Oct 20 21:09:46 lol now...what to do with AuthenticatorActivity :/ Oct 20 21:10:04 AccountAuthenticatorActivity* It doesn't extend ActionBarActivity lol Oct 20 21:11:45 custom class it is; Oct 20 21:12:09 usually the answer Oct 20 21:21:19 hello Oct 20 21:21:36 Do you all think that app dev is a decent way to make some cash to invest? Oct 20 21:22:26 Is there a way to toggle between like 10 buttons? Oct 20 21:22:48 like toggle between regular buttons? Oct 20 21:22:49 shaun413 statistics and probability say that it's the worst Oct 20 21:23:03 StingRay_, hmm then any ideas for something better? Oct 20 21:23:14 Mugwump101 what do you mwan? Oct 20 21:23:31 shaun413 wrong place to ask Oct 20 21:23:36 ok Oct 20 21:31:13 anybody know how to keep SQLiteLog from printing abort errors to the log? Oct 20 21:31:58 okay, so general question: How does one go about learning how to develop android apps? Oct 20 21:32:25 Same way as anything else Oct 20 21:32:54 (That's a pretty vague question) Oct 20 21:33:14 Well, that's a nice way you put it Oct 20 21:33:31 hoodedice JAVA + d.android.com gettings started Oct 20 21:33:32 but, to learn History, I would read over the material, rote learn dates... Oct 20 21:33:46 Thank you StingRay_, I've been over those things Oct 20 21:33:50 ^ is why I never learned history :) Oct 20 21:33:57 Ok Oct 20 21:34:00 Let me qualify Oct 20 21:34:11 Same thing as anything else that is related to programming. Oct 20 21:34:12 thing is, I learnt java, went through the dev.android things Oct 20 21:34:26 ok, so now you can make an app. Oct 20 21:34:31 but I never felt like I learnt how to dev apps per se Oct 20 21:34:36 Or maybe you can't Oct 20 21:34:41 basically, you learn by doing Oct 20 21:34:43 you come to me and say, okay: make a calculator in android Oct 20 21:34:47 I can do that Oct 20 21:34:58 so.... Oct 20 21:35:07 but go anything advanced, like, do it with a fullscreen activity Oct 20 21:35:24 or make me do it without going over the tutorial again Oct 20 21:35:29 there aren't any good books and things change too rapidly Oct 20 21:35:32 and android docs suck Oct 20 21:35:37 reference materials are there for a reason :) Oct 20 21:35:56 TBH, I don't even know when I'm ready to make an app, how much study is too much? Oct 20 21:36:04 you don't have to memorize everything. As long as you know where to look, and have a good idea of what's there, even if you don't remember the specific details (which can be looked up) Oct 20 21:36:17 After 1 minute of study it is too much. Oct 20 21:36:36 hoodedice: well, everyone learns differently, but I don't "study" in that sense. Oct 20 21:36:43 shit man, I sometimes forget to eat. Oct 20 21:36:48 Yes, but, like for example, I say: Let me make an app with a fullscreen activity Oct 20 21:36:48 Gotta look things up. Oct 20 21:37:00 I let AS do its thing Oct 20 21:37:03 then I panic Oct 20 21:37:09 THERE'S NO ACTIONBAR Oct 20 21:37:15 I learn by doing. I try to write an app. And then I face some challenges while writing the app, figure out how to meet those challenges, and learn more in the process Oct 20 21:37:16 oh wait, its fullscreen Oct 20 21:37:23 I don't know about the others here but I am using Cordova (Javascript) and the command line. Oct 20 21:37:48 Agamemnus you are the only one doing cordova/javascript Oct 20 21:37:52 like ever Oct 20 21:37:54 Not the only one, Oct 20 21:37:58 There was a guy earlier Oct 20 21:38:01 Asking for me BY NAME Oct 20 21:38:01 lol Oct 20 21:38:05 ok 2 of you Oct 20 21:38:15 you can go make a community now :) Oct 20 21:38:17 maybe 3 soon Oct 20 21:38:22 have meet ups etc Oct 20 21:38:27 There is actually #phonegap but it's often silent Oct 20 21:38:32 They actually had a meetup Oct 20 21:38:35 like last week. Oct 20 21:38:35 THEN how do I like, do things that are not explicitly covered in the tutorial? Oct 20 21:38:38 In California. Oct 20 21:38:43 Okay, to explain my position better Oct 20 21:38:45 (I think.) Oct 20 21:38:53 > How do I know what to use in my app? Oct 20 21:39:01 hoodedice, you start using google Oct 20 21:39:08 you don't Oct 20 21:39:08 This has been happening with me since I ever started programming Oct 20 21:39:25 unfortunately it is all about making choices Oct 20 21:39:37 1. google 2. look at other apps 3. browsing the available classes Oct 20 21:39:39 if you are employed in a big company, they choice will often be made for you Oct 20 21:39:47 If they go BK with the wrong choice, who cares Oct 20 21:39:55 Like, how do you know what you need to do to make your stuff work? Oct 20 21:40:04 You need to be more selective, if you're doing something by yourself. Oct 20 21:40:17 hoodedice you are making little sense Oct 20 21:40:20 hoodedice: experimentation? Oct 20 21:40:24 No, I feel his pain. Oct 20 21:40:34 like, for example I start with class A, call func A, func B, etc Oct 20 21:40:50 For example, the player ID thing. Such a simple thing. Just, you know, how to get an integer user ID from Google Play. But there IS no integer user ID to get. Oct 20 21:40:52 but it doesn't run because I find out that it needs var A and var B Oct 20 21:41:10 that's more of a question of horrible docs Oct 20 21:41:10 Agamemnus then just get the fkin ID lol Oct 20 21:41:12 but then that needs array A and B Oct 20 21:41:19 and so on Oct 20 21:41:21 it's a string Oct 20 21:41:34 yeah yeah , I'm just saying... you expect it to be an integer. Oct 20 21:41:42 no,, I dont Oct 20 21:41:45 Any SANE API developer would make it an integer. Oct 20 21:41:49 I expect it to be a uid Oct 20 21:41:53 in whatever form Oct 20 21:43:21 So yeah Oct 20 21:43:23 I've always had trouble with bad API docs. ;) Oct 20 21:43:30 when you guys start making an app Oct 20 21:43:35 how do you go about it? Oct 20 21:43:39 Copy/paste. Oct 20 21:43:43 hoodedice you are making no sense Oct 20 21:43:49 ... you mean to say... Oct 20 21:43:52 you are basically asking how to learn Oct 20 21:43:55 Building blocks Oct 20 21:44:02 and that is dependant on many things Oct 20 21:44:14 that writing code is obsolete.... Oct 20 21:44:14 figure out what I need Oct 20 21:44:24 how to make something that initially works Oct 20 21:44:37 upload it to my server... test in my browser Oct 20 21:44:54 wash, rinse, repeat Oct 20 21:45:25 start with junit :) Oct 20 21:46:32 I'm trying to use two MediaPlayer objects to play 2 different files simultaneously. It's not working for me (only the player calling start() last actually plays sound). Is this not supported in Android? I can't find anything in the docs one way or another. Oct 20 21:49:55 I'm trying to set a color stored in SharedPreferences, MainActivity: http://p.samuraimanpurse.com/2uPlsS3P.txt | activity_main: http://p.samuraimanpurse.com/GeQ7MdZE.txt | Logcat: http://p.samuraimanpurse.com/hhn9aQJp.txt Oct 20 21:50:07 I don't get it i get NPE Oct 20 21:50:10 So... every dev does that? just copy pasted code snippets? Oct 20 21:50:25 hm? Oct 20 21:52:26 Maybe your prefs object is null Oct 20 21:52:34 hmm Oct 20 21:52:44 hoodedice no Oct 20 21:52:52 k Oct 20 21:53:26 So does anyone know if platform is capable of playing two MediaPlayers simultaneously? Oct 20 21:53:35 No idea Oct 20 21:53:41 i think it should Oct 20 21:53:46 "i think" Oct 20 21:55:06 Well, I also think it should. Oct 20 21:55:14 mediaPlayer1 = MediaPlayer.create(this, R.raw.background_1); Oct 20 21:55:19 mediaPlayer2 = MediaPlayer.create(this, R.raw.voice_1); Oct 20 21:55:28 mediaPlayer2.start(); Oct 20 21:55:35 mediaPlayer1.start(); Oct 20 21:55:47 ^^ whichever mediaplayer.start() is called last, that's the sound that plays Oct 20 21:59:02 JesusFreke http://www.gizmag.com/lunicycle-unicycle/34334/ Oct 20 21:59:56 great Oct 20 21:59:59 > postDelayed method does not count time which device spends in deep sleep Oct 20 22:00:25 how i adore the fact that android's documentation fails to mention such things Oct 20 22:00:41 amazing Oct 20 22:02:00 g00s: huh, interesting Oct 20 22:02:48 $130? yeah, I guess I can drop that on one :D Oct 20 22:02:50 sq, hmm Oct 20 22:03:00 thanks for the heads-up :D Oct 20 22:03:00 nothing pretty much happens in deep sleep Oct 20 22:03:17 what kind of use-case do you have where you're using handlers and device goes to deep sleep? Oct 20 22:04:18 do i need some special permissions for shared preferences? Oct 20 22:04:24 no. Oct 20 22:04:28 hmm Oct 20 22:05:10 it's just an XML file stored in apps data dir Oct 20 22:05:26 Mavrik: the thing is, if your handler is to be executed after 30 minutes, and you keep it awake for 15 minutes and then sleep for one hour and then wake it up, total delay will not be 1h 15 mins but 1h 30 mins Oct 20 22:05:39 it will still wait for 15 minutes after waking up Oct 20 22:05:57 hmm Oct 20 22:05:57 true Oct 20 22:06:05 but you should really be using AlarmManager for taht Oct 20 22:06:27 yes, and documentation should be freaking mentioning such details Oct 20 22:06:40 relying on your CPU to be running and the clock to also run is not a good idea Oct 20 22:06:56 overcoder, you cant set your instance variables like that Oct 20 22:06:58 if you're doing any long-term scheduling or any processing that is. Oct 20 22:07:06 mobile CPUs power down, so that's a lesson there :) Oct 20 22:07:17 Android will rarely power up a CPU for you Oct 20 22:07:35 whatitis, what's wrong? Oct 20 22:07:44 i'm fine with that, just saying that documentation misses important stuff Oct 20 22:08:10 your code, your instance variables in your MainActivity Oct 20 22:08:11 SO, interestingly - I'm able to get my 2 MediaPlayers to play simultaneously if I run them in a handler. Does this make sense to anyone? Oct 20 22:08:22 sq, sometimes yes Oct 20 22:08:24 o Oct 20 22:08:25 hmm Oct 20 22:08:39 sq, also, that means you expect that 98% of methods in documentation say "will not run in deep sleep" ;) Oct 20 22:09:19 actually that would be nice, too Oct 20 22:09:56 overcoder, you are basically trying to dynamically set your variables before your class has even been created Oct 20 22:10:32 !@#% ... Galaxy Tab 4 is not paying attention to isActivated or isChecked on my views, anyone have insight? Oct 20 22:10:44 whatitis, i realized Oct 20 22:11:02 Works fine on Galaxy Tab 3, Nexus S, Galaxy Nexus, Moto XYBoard, and Nexus 7 Oct 20 22:11:04 it working now? Oct 20 22:11:06 no Oct 20 22:11:08 that's the thing Oct 20 22:11:25 i moved everything after setContentView(R.layout.activity_main); Oct 20 22:11:29 but still. Oct 20 22:11:35 paste updated activity code Oct 20 22:11:38 sec Oct 20 22:11:55 http://p.samuraimanpurse.com/Y2yJiOda.txt Oct 20 22:11:57 there Oct 20 22:12:08 timusus, probably your setup code for mediaplayers runs too long on main thread? Oct 20 22:12:19 it's strange though, nothing in the source implies that should be a problem Oct 20 22:12:58 is it same error Oct 20 22:13:11 let me check Oct 20 22:13:38 no it's different Oct 20 22:13:45 it was on line 12 before, where you first entered class Oct 20 22:13:54 what line is it Oct 20 22:14:12 sec Oct 20 22:15:05 @Mavrik, meaning what - one of them is killed? How can I measure/check for this? Oct 20 22:15:37 whatitis, update logcat http://p.samuraimanpurse.com/4hWkpydC.txt Oct 20 22:15:43 i think it's just a simple thing Oct 20 22:15:51 unknown color Oct 20 22:15:56 yep Oct 20 22:16:38 you see why? Oct 20 22:16:57 yes Oct 20 22:16:59 the sharp Oct 20 22:17:01 now it's working Oct 20 22:17:05 yep Oct 20 22:17:08 * OverCoder is thankful to whatitis Oct 20 22:20:10 ummmm Oct 20 22:20:13 google play question Oct 20 22:20:32 so I updated my app Oct 20 22:20:43 version 54 Oct 20 22:20:48 but people are installing 11, 45, 44? Oct 20 22:20:57 oh right Oct 20 22:20:57 greymalkin, are your views reporting back true for isXed, but selector state isnt changing? Oct 20 22:21:02 forgot that was yesterday Oct 20 22:32:01 Agamemnus: also stats lag few days behind Oct 20 22:45:05 http://www.androidpolice.com/2014/10/19/google-adds-optional-rating-filter-to-play-store-searches-that-limits-results-to-apps-with-4-stars-or-more/ Oct 20 22:45:13 dont fall below 4 stars ! Oct 20 22:50:05 That is good. Oct 20 23:05:00 Do you nnede to resize every image and asset in your application for all the supported screen resolutions? Oct 20 23:05:17 ping me with answer Oct 20 23:07:05 oh yeah, was kinda hoping android 5 would allow svg assets Oct 20 23:07:15 i guess the tooling could do that to some degree Oct 20 23:07:39 Is it possible to position a shadow under a view while allowing things to be positioned underneath? I.e. to position a view and have it visible but not take up any height as far as the layouting is concerned? Oct 20 23:07:45 Mallot1 easiest way out is provide xxdpi and let android downscale Oct 20 23:08:18 android can do that by default? Oct 20 23:08:39 in android studio? Oct 20 23:09:09 the platform does it Oct 20 23:09:20 oh sweet Oct 20 23:09:35 So i can just put all my images into the xxdpi folder? Oct 20 23:09:37 of course, it requires resources to scale Oct 20 23:09:57 Which means you need fairly high resolution density resources to start with. Oct 20 23:09:59 Mallot1 usually you can use this for many, but you probably won't be able to do it for all Oct 20 23:10:09 cool thanks :D Oct 20 23:11:49 g00s: Would that be xxxhdpi? I don't see a ssdpi folder Oct 20 23:14:06 Mallot1: just drawable etc without any qualifier Oct 20 23:14:53 iced thanks, I'm new to the terminology B) Oct 20 23:15:49 *icedp Oct 20 23:18:09 hey hey Oct 20 23:18:15 Odaym you in here? Oct 20 23:18:27 negative.. Oct 20 23:18:55 Mallot1: but if you want to stick to guidelines you can use a script that will scale for you https://gist.github.com/mlatu/6561313 Oct 20 23:20:39 icedp: Oh sweet thanks :D Oct 20 23:21:48 icedp: Does it work on images other that the icon? Oct 20 23:21:53 *than Oct 20 23:24:26 ugh, new gmail app handles exchange now? yuck Oct 20 23:24:58 Mallot1: sure, just replace `ic_launcher` with `$i` so it will use the name of the original file Oct 20 23:25:14 icedp: Sweet Oct 20 23:25:29 does google access emails from other mail servers for advertising ? Oct 20 23:25:41 given its going through gmail Oct 20 23:25:51 but if gmail app reads outlook ... Oct 20 23:26:12 How do I run this? Sorry, haven't written an Apple Script since QuickLapse: www.gamegrapestudios.blogspot.com Oct 20 23:26:33 g00s: they call it "indexing" ;) Oct 20 23:26:42 icedp: ^^ Oct 20 23:27:10 * OverCoder works harder and harder Oct 20 23:27:12 that's not an apple script :S Oct 20 23:27:14 * OverCoder is tired Oct 20 23:29:37 bankai_au: I meant scripting on an Apple Computer :D Oct 20 23:30:03 stick it in a file chmod +x it, then run it like everything else Oct 20 23:30:11 I mostly do all programming on my Windows 8.1 PC Oct 20 23:30:18 thanks Oct 20 23:32:43 Mallot1: bash ./gen_icons image.svg Oct 20 23:32:50 Mallot1: should have inkscape Oct 20 23:33:10 tanks Oct 20 23:33:12 *thanks Oct 20 23:33:45 Unrelated Error: " Failed to convert @drawable/menubackground into a drawable " Oct 20 23:36:58 guys, i made a view programmatically, how can i make it 'below' another view, the parent view is RelativeLayout Oct 20 23:37:27 i have a python script that rasterizes inkscape icons Oct 20 23:37:56 * g00s <3 inkscape (when it works) Oct 20 23:38:22 actually it's a sidebar, it's a RelativeLayout, the buttons must be added and removed dynamically, so they are programmatically added/removed, now when i create new button, how can i make not overwrite the other one? Oct 20 23:38:37 i mean the new view shows up over the first one Oct 20 23:39:07 Hello! Does anyone know if it's possible to create an IMAP or POP3 account programmatically on Android? For example, say I want to develop a simple app that only asks for an email address and password - and that simple app will configure the underlying Android device to talk to the IMAP server (where the account exists) Oct 20 23:39:24 Fixed my problem, I restarted Android Studio :D Oct 20 23:39:53 com.android.email has lots of classes to deal with that, but none seem to be 'exposed' to application developers Oct 20 23:40:00 Mallot1, heh, similar thing happens in eclipse, needs a clean up :P Oct 20 23:42:07 hm, i have a nondeterministic build. not good. Oct 20 23:42:17 sometimes manifest merge error, sometimes not Oct 20 23:42:38 i think google should really focus on making things simpler and more reliable :) Oct 20 23:43:20 based on the error, its clear - yeah, i fucked that up. its an error Oct 20 23:43:31 but if a clean, then build, it works ? no i'm sorry thats fuckedup Oct 20 23:43:41 OverCoder: do you to add it or you can just set visible=true to it? Oct 20 23:44:17 OverCoder: if you really need then http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html#addRule%28int,%20int%29 Oct 20 23:47:22 Hi Oct 20 23:47:27 anyone here? Oct 20 23:47:40 good info for action mode and toolbar http://www.reddit.com/r/androiddev/comments/2jsd42/toolbar_and_the_contextual_actionbar/ Oct 20 23:50:12 cool. I wish I could work with Android L. Maybe in the future Oct 20 23:51:46 :/ hmm, RecyclerView doesn't wanna work on 4.4.4 Oct 20 23:51:57 4.4.2* Oct 20 23:52:39 ClassNotFoundException :/ Oct 20 23:52:48 O.o Oct 20 23:53:42 * Zharf can't immediately think of any use for Toolbar -.- Oct 20 23:55:00 It's where tools go after a hard day's work. Oct 20 23:55:06 Okay, I'll see myself out. Oct 20 23:55:14 Zharf, yeah me neither. I'm okay with just ActionBar Oct 20 23:55:15 that wasn't very tactical Oct 20 23:55:47 I guess it might be useful on some tablet layouts, but I don't do tablets -.- Oct 20 23:55:51 " Zharf, yeah me neither. I'm okay with just ActionBar" that one line made me think of Thundercats :) Oct 20 23:56:04 lol why? @ Napalm Oct 20 23:56:27 I'm scared to use this new stuff. Oct 20 23:56:32 So many bug reports. :/ Oct 20 23:56:36 Afzal: I believe it's in the support library Oct 20 23:56:37 Y u no work?! Oct 20 23:56:38 Napalm makes me think of Apocolypse Now Oct 20 23:56:47 "I love the smell of Napalm in the morning" Oct 20 23:56:48 does anyone knows how to make that parallax header resizing effect from the expedia app? Oct 20 23:56:54 I wish the Android developers were perfectionists. Oct 20 23:57:20 icedp, yeah I'm using the recyclerview support lib but it's giving a ClassNotFoundException on 4.4.2 :/ Oct 20 23:57:24 Not sure why, works on N5 L2 Oct 20 23:57:51 TacticalJoke, the most disappointing thing about being a perfectionist and a software developer is that your software will never be perfect Oct 20 23:57:56 just have to deal with that fact. Oct 20 23:58:06 Yeah. Oct 20 23:58:26 Perfectionists suffer from analysis paralysis. Oct 20 23:58:39 its also being a perfectionist when the things you depend on are often broken :) Oct 20 23:58:51 tools, apis, bugs, chipsets Oct 20 23:59:08 *hard being Oct 20 23:59:10 yup Oct 20 23:59:27 g00s: Right Oct 20 23:59:27 . Oct 20 23:59:33 Took me a moment to understand that. lol Oct 20 23:59:57 I have OCD pretty seriously. It affects my programming. Oct 21 00:00:05 I literally cannot sleep if one of my methods is slightly untidy. Oct 21 00:00:13 TacticalJoke, self-diagnosed? Oct 21 00:00:23 Because you can read Zharf as Snarf Oct 21 00:00:36 Not just self-diagnosed. Oct 21 00:00:39 that was re: Thundercats Oct 21 00:01:01 Though of course I had already self-diagnosed. Oct 21 00:01:10 lion - O ! Oct 21 00:01:21 TacticalJoke, unless it's diagnosed by a qualified personnel, I'll just be inclined to not believe that it's actually OCD Oct 21 00:01:33 g00s: D Oct 21 00:01:34 :D Oct 21 00:01:53 g00s: did you know they did a remake in 2011 :O Oct 21 00:02:12 yeah i did ... Oct 21 00:02:12 g00s: https://www.youtube.com/watch?v=UV46r5gwr1E Oct 21 00:02:22 i dont think the creator got anything from it Oct 21 00:02:25 first time i've seen it Oct 21 00:03:09 Who needed a resume sample? Oct 21 00:03:34 Afzal: Yes, I've been officially diagnosed as having OCD. But I don't totally agree with what you said. Oct 21 00:03:41 I knew long before that. Oct 21 00:03:44 Some things are obvious. Oct 21 00:03:52 hmm, so we can just get rid of the support-v4:21 if we're using recyclerview-v21? :/ Oct 21 00:03:53 weird Oct 21 00:03:59 y u do dis google Oct 21 00:04:09 Doesn't support-v7 contain support-v4? Oct 21 00:04:16 Napalm lol that was crazy Oct 21 00:04:17 Does it?! o.O Oct 21 00:04:19 daaaaaamn Oct 21 00:04:21 lol Oct 21 00:04:24 lol Oct 21 00:04:37 have you been using both? Oct 21 00:04:58 I can see Afzal furioously unchecking bockes.. Oct 21 00:05:02 boxes Oct 21 00:05:05 lol no, I wasn't using any support libs until now since all our users are on API 16 + :D Oct 21 00:05:06 yeah OverCoder :p B) Oct 21 00:05:21 what boxes? :/ Oct 21 00:05:25 Hmm. Oct 21 00:05:25 I'm on Android studio :p Oct 21 00:05:28 hah, lucky.. I had a guy call in that was still on 2.2.3 Oct 21 00:05:31 "This library [v7] depends on the v4 Support Library. If you are using Ant or Eclipse, make sure you include the v4 Support Library as part of this library's classpath." Oct 21 00:05:34 http://developer.android.com/tools/support-library/features.html Oct 21 00:05:50 so it doesn't contain.. Oct 21 00:05:51 do gradle --dependencies to see Oct 21 00:05:51 wait...that says the opposite Oct 21 00:05:58 but depends on Oct 21 00:06:14 So why do I and tricknology think otherwise? Oct 21 00:06:16 Weird. lol Oct 21 00:06:27 well I don't know for syre Oct 21 00:06:34 you just RTFM and it says it doesn't Oct 21 00:06:46 "depends on" not "contains" Oct 21 00:06:49 This SO question suggests that v7 does include v4: http://stackoverflow.com/questions/18084808/if-i-use-new-v7-appcompat-library-do-i-still-need-v4-support-library-fo Oct 21 00:07:07 one way to find out for sure Oct 21 00:07:08 "v7 includes the v4 support library so there is no need to have it in there again" Oct 21 00:07:19 So gradle dependencies says everything is dependent on support-v4:21 Oct 21 00:07:28 TacticalJoke: you mean the appcompat Oct 21 00:07:41 so I guess it is...I'm guessing RecyclerView is just packaged wrongly and contains support-v4 when it shouldn't Oct 21 00:07:44 Oh, AppCompat contains v4? Oct 21 00:07:54 theme AppCompat.Dark Oct 21 00:07:54 appcompat contains v4? Oct 21 00:08:07 Wait, I'm totally confuzzled. Oct 21 00:08:13 lol Oct 21 00:08:17 :D Oct 21 00:08:47 idk but now I have something else to check in my broken app Oct 21 00:08:52 because of you Oct 21 00:09:01 What do you have to check? Oct 21 00:09:07 * tricknology shakes finger menacingly Oct 21 00:09:51 if the red exclamation points are because there is a redundant support-v4 in there Oct 21 00:10:01 getting all sorts of noise about Theme.AppCompat Oct 21 00:10:28 ..I should mention that I'm picking up where someone else left off Oct 21 00:10:34 ... an outsourced someone else.. Oct 21 00:11:36 dat issue number https://code.google.com/p/android/issues/detail?id=77777 Oct 21 00:11:48 lol Oct 21 00:13:15 SO seems wrong. Oct 21 00:13:27 The documentation says v7 depends on v4. Oct 21 00:15:33 tricknology look what they do here https://github.com/google/iosched/blob/master/android/build.gradle#L74 Oct 21 00:15:39 honestly i dont get it either :) Oct 21 00:15:46 v7 v4 v13 Oct 21 00:16:14 not sure why they grap support-v13 and appcompat-v7 Oct 21 00:16:26 lol, even they don't use recyclerview :( Oct 21 00:18:38 maybe compileSdkVersion needs to be lower for this :/ Oct 21 00:18:43 wait, nvm, those errors. :/ Oct 21 00:19:25 that is weird.. I'm not experienced with gradle but that seems bulky Oct 21 00:19:29 nice, auto material Oct 21 00:19:33 why would you need all that support? Oct 21 00:19:58 gravity ? Oct 21 00:20:22 unless it's because new things are held up by old?? ok.. gravity then Oct 21 00:20:23 lool Oct 21 00:21:06 lol Oct 21 00:21:31 About that android phone database.. i realized I didn't write it in Android, it's a Java applet Oct 21 00:21:33 is there any reason to buy the Nexus Player if you have the ADT-1? Oct 21 00:21:46 there is no reason why you should by the Nexus player period Oct 21 00:21:47 ADT-1 seems so much more powerful than the other Oct 21 00:22:03 tricknology, okay easy now. Some of us have a nice setup at home :p Oct 21 00:22:18 heh, I don't have a TV so... I wouldn't disagree with you Oct 21 00:22:41 Why does the controller pad look like an xbox remote? Oct 21 00:23:50 oh yeah, ... well I can't complain. I like the Xbox controller Oct 21 00:23:54 Is it possible to toggle between several regular buttons? So that when you select one button, the button is pressed down among the rest. Oct 21 00:23:58 same here Oct 21 00:24:04 but this is like xbox controller with the ps3 analog layout Oct 21 00:24:17 but it's the first thing I thought when I went to the page.. that and it looks like Apple TV but a circle.. Oct 21 00:25:19 ooh yeah, the sticks are on the bottom.. maybe that's their loophole Oct 21 00:29:03 Also one more android question (if anyone is reading this lol), I have an alarm set for repeating but I am wondering if I can set it for repeating for like 3 times and that's it instead of repeating weekly forever for instance. Does that make sense? Oct 21 00:29:22 #android Oct 21 00:29:57 It makes sense, but I'm not sure you can do it. I know you can do that with notifications in Google Calendar, but not from the app, Mugwump101 Oct 21 00:30:00 so i need to give credits for libraries with apache license? and if yes, where? Oct 21 00:30:20 yes, github has a stock one but you can google Oct 21 00:30:59 commons license is here: http://www.apache.org/licenses/LICENSE-2.0.txt Oct 21 00:31:24 oh hm :( Really? Oct 21 00:31:41 I mean you can download an app that can do that maybe? Oct 21 00:31:52 does one not exist, Mugwump101? Oct 21 00:31:59 so i better make a website with the credits Oct 21 00:32:01 no I don't want an app to do that. I want to be able to program that feature into my app Oct 21 00:32:18 cliffreich, sometimes you need it in your project root folder Oct 21 00:32:22 depends Oct 21 00:32:34 someitmes a section in your app called "license" is sufficient Oct 21 00:32:43 right now my app has alarm manager that fires alarm let's say at 9:00AM daily Oct 21 00:32:58 right now it's firing daily forever Oct 21 00:33:02 are the commons police going to get you? probably not, but if you sell your code and it's audited it should have it in there Oct 21 00:33:12 I just want be able to say daily for 5 times then stop Oct 21 00:33:24 Mugwump101, are you making the app or is it the stock alarm app? Oct 21 00:33:26 no, i mean, im not going to make an apache project... im using libs on my app that have apache license and im not sure how, where and if i need to give them attribution somewhere in my app Oct 21 00:33:32 I am making the app Oct 21 00:33:40 oh okay :) Oct 21 00:33:52 The alarms work right now Oct 21 00:34:04 cliffreich, a license section or link is enough Oct 21 00:34:11 I just need to be able to add a setting to set an alarm for x amount of times Oct 21 00:34:15 I have one under "legal" Oct 21 00:34:24 I can't find anyhting about it in the docs Oct 21 00:34:31 ok, not a problem Mugwump Oct 21 00:34:33 oh ok, will make a "legal" link on my settings Oct 21 00:36:16 get the current day and do some logic like "is today > startdate + duration? if (true) enableAlarm() Oct 21 00:36:45 err, Oct 21 00:37:40 today < (startdate + duration)) ? enableAlarm() : disableAlarm() Oct 21 00:38:04 ( Oct 21 00:40:55 ok I see what you're getting at Oct 21 00:41:00 I believe that could work Oct 21 00:41:03 good idea Oct 21 00:41:18 I will try it. Thank you :D Oct 21 00:46:29 if you have a multi-project build, whats better practice - putting min/targetSdk in manifest or each sub-projects's gradle defaultConfig { } ? Oct 21 00:47:22 it would be so nice if we could do subprojects { defaultConfig { ... } } Oct 21 00:51:08 That's a good question. I keep mine in the manifest :S Oct 21 00:53:47 pfn is the manifest merger placeholder support only (by default) applicationId ? Oct 21 00:54:02 so for pretty much anything else, i would need to make my own placeholder ? Oct 21 00:54:29 yes Oct 21 00:54:50 thanks Oct 21 00:55:23 JakeWharton for your projects which many modules, do you prefer min/targetSdk in manifest or gradle's defaultConfig { } ? Oct 21 00:55:33 build.gradle Oct 21 00:55:49 JakeWharton you ever seen this? Can't find any super classes of [butterknife/internal/ButterKnifeProcessor] (not even immediate super class [javax/annotation/processing/AbstractProcessor]) Oct 21 00:55:53 i guess even though i have to keep repeating that block, i can set them once in the parent Oct 21 00:55:59 thanks Oct 21 00:56:23 sarbs: what are you doing to get that message? Oct 21 00:56:36 this is in a gradle build w/proguard.. the only butterknife references we have in the cfg are the dontwarn + keep bits recommended by the docs Oct 21 00:56:58 do whatever you can to shut proguard up about it Oct 21 00:57:03 that file is not used once javac has run Oct 21 00:57:10 in fact, you can even strip it if you have the means Oct 21 00:57:24 hmm, kk Oct 21 00:57:35 any way to make logcat less annoying? you try and scroll up and it automatically forces you back to the bottom of the window Oct 21 00:57:43 i've unselected force to bottom Oct 21 00:57:49 Fall: click on it, it should stop Oct 21 00:58:09 that makes a little more sense, i had a hunch that gradle was simply not passing some jar to PG that it needed to resolve that (...obviously) but couldn't figure out why it wouldn't pass it Oct 21 00:59:29 How do you print links to lines of code in logcat? Oct 21 00:59:43 like in printStackTrace() or a NPE Oct 21 01:00:01 double-clicking sends you to that line of code. Oct 21 01:00:24 op, nevermind.. Oct 21 01:00:28 tricknology that's an IDE optimization, it's probably using a heuristic Oct 21 01:00:32 http://stackoverflow.com/questions/10597623/how-to-insert-a-log-in-logcat-that-when-i-click-on-it-jumps-to-its-line-in-code Oct 21 01:03:22 sarbs: the underlying problem is that ButterKnifeProcessor relies on a class in the JDK that is not in android.jar. Since the processor only runs inside of javac where the full java code library is available that's not a problem. proguard, however, is optimizing for when the android framework is the only classes available so it chokes upon seeing something Oct 21 01:03:22 it knows nothing about. Oct 21 01:03:50 kk, that makes TOTAL sense with what i've been digging then Oct 21 01:04:07 weird that PG is bitching about it now with gradle but wasn't with maven. Oct 21 01:04:25 the maven plugin was probably incorrectly configuring proguard Oct 21 01:04:48 Q: what do crash reports look like with proguard obfuscated code? Oct 21 01:05:12 tricknology com.tricknology.a.a$ab(a a, a b, b c) Oct 21 01:05:34 it's a shame you can't give proguard a dictionary to use for obfuscation Oct 21 01:05:39 thought so. Oct 21 01:05:42 you can, i think Oct 21 01:05:56 omg if you can i'll obfuscate my entire app Oct 21 01:06:01 can you keep a key/value table of sorts? Oct 21 01:06:17 give it urban dictionary ;) Oct 21 01:06:20 tricknology: there's a mapping file which your automated crash service should accept to deobfuscate Oct 21 01:06:21 but open source... Oct 21 01:06:35 YES! thanks Oct 21 01:06:46 JakeWharton -obfuscationdictionary Oct 21 01:06:58 lol Oct 21 01:08:11 com.project.ratchet.popo.crackbaby.dimebag(bently,lowrider) Oct 21 01:08:12 everything has to be pirate talk Oct 21 01:12:00 serious question: can I write Java in AS? Oct 21 01:12:44 like a regular jvm program? never actually tried when i used as Oct 21 01:12:58 could be relevant if I wanted to build a pure java lib to use in Android Oct 21 01:13:45 you can create a Java Library project Oct 21 01:14:04 Yes Oct 21 01:14:19 doesn't look like you can create a regular Java [Application] project Oct 21 01:14:39 good enough I guuess. No need for an applet or standalone application Oct 21 01:14:53 but there's probably a way to do so.. java library isn't really any different Oct 21 01:14:58 any espresso pros here? Oct 21 01:15:09 What does being pro entail? Oct 21 01:15:18 hmm probably they'd have to be moderately ok Oct 21 01:15:28 maybe a few years experience as a starbucks barista Oct 21 01:15:50 anyway i'm trying to test something that calls finish() when its' done Oct 21 01:15:52 JacobTabak i think pfn knows about espresso Oct 21 01:16:03 and espresso just kind of stops working once the activity being tested finishes Oct 21 01:16:12 oh nm :) Oct 21 01:16:33 so normally espresso takes care of waiting for my async stuff to finish Oct 21 01:16:45 but if finish() is called, then it doesn't seem to work Oct 21 01:16:53 so i'm afraid i have to like host my tests in another activity, im hoping theres another answer Oct 21 01:17:31 dont tell me thread.sleep >< Oct 21 01:18:26 What base class is your test? Oct 21 01:18:35 activityinstrumentationtestcase2 Oct 21 01:18:43 JacobTabak i can't remember off the top of my head since it's been about three months since i used it, but the company i used to work for will be publishing in the next few days a bunch of improvements we did to espresso Oct 21 01:18:50 stuff like you're describing was a lot of what we worked on Oct 21 01:19:05 ah interesting, ping me if you remember when its released Oct 21 01:19:13 Don't use that, just use InstrumentationTestCase and start the activity yourself. Oct 21 01:19:21 ok, i'll give that a shot, thanks Oct 21 01:19:25 is there any difference? Oct 21 01:19:53 You can test across activity boundaries. Oct 21 01:20:08 Because the test case isn't managing the activity for you. Oct 21 01:20:26 i'm currently able to start new activities and test them Oct 21 01:20:37 but i guess this is a special case Oct 21 01:20:45 i'll give her a shot Oct 21 01:21:25 What are you trying to do after finish? Oct 21 01:21:30 JacobTabak yeah you can start new ones, i was about to refute what JakeWharton was saying but then i caught up to him - if you finish() the original Activity that ActivityInstrumentationTestCase2 starts, that's the end Oct 21 01:21:42 nothing actually, Oct 21 01:21:48 the thing i need to test is completed before finish Oct 21 01:22:27 i just can't leverage the automatic-async-waiting of espresso without doing an espresso assertion Oct 21 01:22:49 and i can't do that without an activity or view... but this is pretty new to me, so i'm wondering if i'm just missing something obvious Oct 21 01:23:24 i'm testing an oauth flow in a webview, and the webview activity finishes as soon as auth is successful Oct 21 01:24:38 i guess the other option would be to just run my async stuff on the main test thread Oct 21 01:25:08 but that would require a bit of ugliness Oct 21 01:25:24 damnit google.... Oct 21 01:25:35 I was wondering why my phone db wasnt working... Oct 21 01:25:53 they changed the website. the DB is no longer text/HTML but it's a .pdf link Oct 21 01:25:55 https://support.google.com/googleplay/answer/1727131 Oct 21 01:26:09 how would I setup a NDK library ( SDL2 ) for Android Studio? Oct 21 01:26:57 SDL2 is the Simple Direct media Layer 2D graphics library by Sam Lantiga Oct 21 01:27:05 (╯°□°)╯︵ ┻━┻ Oct 21 01:27:29 Works with C++ and C Oct 21 01:27:51 get NDK? Oct 21 01:27:55 They said it's been ported for Android and iOS but I can't seem to set it up. Oct 21 01:28:03 trickology: No, how? Oct 21 01:28:19 http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/ Oct 21 01:28:30 download it in the SDK manager Oct 21 01:28:59 trickology: Lol I just got that page too Oct 21 01:29:03 heh heh Oct 21 01:29:06 well I googled it ha Oct 21 01:29:14 good to know our googles are synched Oct 21 01:30:21 sheit... anf they have the filename something crazy (and probably dynamic) "3A66AA84DBAE534708BE85706D1CFF3A4F80.pdf" Oct 21 01:30:47 * tricknology cracks knuckles Oct 21 01:31:25 * Mallot1 cracks spine goes to hospital Oct 21 01:31:36 B) Oct 21 01:31:54 lol Oct 21 01:33:57 so uh.. anyone have XP with reading pdfs? Oct 21 01:43:57 i've read a few Oct 21 01:45:12 i have windows XP at work Oct 21 01:45:50 didn't MS stop supporting that - completely ? Oct 21 01:46:02 two years ago, i thought Oct 21 01:46:10 i wouldn't let that thing on the interwebs :) Oct 21 01:46:14 we're on super extended support, i think (govt) Oct 21 01:46:32 g00s, what about manifest merging? Oct 21 01:46:41 pfn oh got it, thanks Oct 21 01:46:55 they only seriously stopped recently, I think if they were smart they would make XP open source. Oct 21 01:47:10 for what reason Oct 21 01:47:34 MS does not have fanboys, which has always been their problem Oct 21 01:47:39 anyway, appcompat v21 is nice, automatically upgrades app to material theme Oct 21 01:47:54 that's pretty handy Oct 21 01:47:55 making XP open source would generate some good vibrations Oct 21 01:48:04 man, they really are cold in ##java Oct 21 01:48:07 I really like the Toolbar idea Oct 21 01:48:15 Napalm yeah Oct 21 01:48:16 its what ActionBar should have been in the first place Oct 21 01:48:21 i agree ! Oct 21 01:48:27 except my app icon is gone from the action bar Oct 21 01:48:30 what gives Oct 21 01:48:34 add it back :P Oct 21 01:49:05 pfn: you can just add the android:displayOptions attribute to your theme Oct 21 01:49:18 pfn: the Material Design theme is showTitle only by default Oct 21 01:49:24 I'll look for it later Oct 21 01:49:38 I only updated appcompat to see if it was drop in Oct 21 01:49:41 and it is Oct 21 01:50:15 is there any difference in setting.gradle between (1) include "foo" and (2) include ":foo" ? Oct 21 01:51:09 man, leave this stuff for a few months - its like perl, don't know shit have to relearn everything Oct 21 01:53:00 padding a little weird on my edit text now, though Oct 21 01:57:15 Does this kind of make sense? Oct 21 01:58:27 If I have 10 regular buttons side by side. If I select one, I want to keep one button pressed down and if I click on another button, the button I previously pressed is no longer pressed but the other one is now pressed. So that I can toggle between regular buttons? So, to set this up, I would have a switch statement for each button that is pressed and depress all the other buttons in the Oct 21 01:58:27 statement. Oct 21 01:59:46 thats a radio group Oct 21 02:00:24 or just buttons where you manage the states Oct 21 02:01:12 as in 1 method, buttonIsPress(View but) that is the listener for all of them…the method resets the view state on all on sets on the pressed one. Oct 21 02:01:19 if thats what you mean Oct 21 02:02:41 I would use radio buttons but I want the buttons to look like regular buttons with text in the center Oct 21 02:02:47 so I don't want to use radio buttons Oct 21 02:03:11 What is this used for in the default project creation Oct 21 02:03:12 if (savedInstanceState == null) { getSupportFragmentManager().beginTransaction() .add(R.id.container, new PlaceholderFragment()) .commit(); } Oct 21 02:03:15 should I keep it? Oct 21 02:03:23 well to me sounds like you want a bunch of toggle buttons Mugwump101 Oct 21 02:03:59 ajoul do you know what it does ? Oct 21 02:04:01 no, not toggle buttons (technically yes) However, in android the toggle buttons only have two states on and off Oct 21 02:04:09 and I don't think I want that? Oct 21 02:04:21 StingRay_: no thats what I am curious about Oct 21 02:04:24 Mugwump101 I thought you did Oct 21 02:04:35 ajoul well maybe learn before you delete things :) Oct 21 02:04:48 StingRay_: lol thats what I try to do... it is on the protected void onCreate(Bundle savedInstanceState) { Oct 21 02:04:48 I mean I do want toggle buttons Oct 21 02:05:02 but I would like the toggle to between several buttons Oct 21 02:05:07 and not just one button Oct 21 02:05:15 not sure if this makes sense? Oct 21 02:06:47 Also, can I change the text on the toggle button? Oct 21 02:06:56 Or is on and off hardwired into the button? Oct 21 02:07:00 anyone can help me?! Oct 21 02:07:28 DAE think Google is just gonna drop Material Design at some point? Oct 21 02:07:28 ajoul what are you asking ? Oct 21 02:07:40 Is your question about fragments, Ajoul? Oct 21 02:07:42 StingRay_: what does the above code section do Oct 21 02:08:05 I think that means you're adding a fragment container Oct 21 02:08:10 grabs a fragment from fragmentManager if instance state is not null Oct 21 02:08:15 Here is the problem: I created a default project inside the default project there is a code section that I don't know what its used for or if its any useful Oct 21 02:08:23 or creates it if it is null Oct 21 02:08:31 StingRay_: should I keep it? Oct 21 02:08:44 ajoul I'm not going to answer that… you need to learn Oct 21 02:08:47 StingRay_: what is the scenario that this if will be invoked Oct 21 02:08:56 or you will have serious problems not knowing simple things like that Oct 21 02:09:01 ajoul: That isn't really a "default project". You chose to use fragments or something. Oct 21 02:09:16 StingRay_: It's a slightly advanced topic, IMO. Oct 21 02:09:18 Fragments. Oct 21 02:09:23 is android dev a decent way to make money? Oct 21 02:09:48 ajoul: If you had made a project with just an Activity, that code wouldn't've appeared. Oct 21 02:10:06 TacticalJoke: I see that I think is my problem I will try to create a new project Oct 21 02:10:28 ajoul: Personally, I wouldn't advise worrying about Fragments until you're totally clued up on Activities. Oct 21 02:10:38 Fragments are second base. Oct 21 02:12:16 TacticalJoke: I know what fragments are I just dunno what that random piece of autogenerated code is Oct 21 02:12:36 TacticalJoke: I also created a new project and it appeared again Oct 21 02:12:42 blank activity Oct 21 02:12:51 I haven't coded an android app in few months so I dunno what is going on Oct 21 02:12:56 ajoul: Which IDE is that? Oct 21 02:13:16 Eclipse Oct 21 02:13:50 also whenever I create an app I get some appcompat_v7 Oct 21 02:13:56 :/ Oct 21 02:13:56 project created as well Oct 21 02:14:15 If you're selecting Blank Activity, and not Blank Activity with Fragment, I wouldn't expect the above at all. Oct 21 02:15:52 TacticalJoke: I am creating an android application project Oct 21 02:16:01 Right. Oct 21 02:16:10 TacticalJoke: I enter the name and just hit finish I don't touch anything Oct 21 02:16:23 Well maybe that's why. Oct 21 02:16:48 yeah that could be it Oct 21 02:16:52 ajoul: I don't think I've ever just clicked Finish in a wizard. Ever. Oct 21 02:16:58 You want to go to next and select Blank Activity Oct 21 02:17:09 That's how you get Norton Anti-virus toolbars installed. Oct 21 02:17:13 Well what I meant to say is I don't touch any of the default settings Oct 21 02:17:17 Or Fragment-creation code that you don't want. Oct 21 02:17:18 its blank activity Oct 21 02:17:25 Oh. Oct 21 02:17:55 StingRay_, are you still there? Oct 21 02:18:02 indeed Oct 21 02:18:11 oh wow hello :D Oct 21 02:18:16 TacticalJoke: also I don't understand why I get an appcompat project created as well Oct 21 02:18:50 I have a stupid question about toggle buttons, it seems like the text on the buttons is on and off. Can I change the text on the toggle buttons? Oct 21 02:19:02 and can I make it so that the toggle would affect other buttons? Oct 21 02:19:09 yes and yes Oct 21 02:19:11 Is it similar to my idea about using a switch statement Oct 21 02:19:14 in my onClickListener Oct 21 02:19:16 ajoul: I guess because you're not changing, via the wizard, minSdkVersion to 11 or more. Oct 21 02:20:42 Also, I have a question about changing the android background color of a button? I am wondering why if I change the color, the size of the button changes with it? Oct 21 02:20:54 why the size also changes?* Oct 21 02:21:14 cause the drawable used in the stateListDrawabes has padding Oct 21 02:21:28 I think Oct 21 02:21:37 in that case, I would have to include padding Oct 21 02:21:42 to avoid size changes Oct 21 02:21:57 well, it's android, you can do what you want really Oct 21 02:22:16 true but layout manager is not my friend.. yet :( lol Oct 21 02:22:55 also it seems like if I change the drawable, the button is flat Oct 21 02:23:06 and no round corners or button like qualities, it's just flat Oct 21 02:23:25 and ? Oct 21 02:23:26 so in that case, I would have to inherit or include all the previous default button layout Oct 21 02:23:36 it's a drawable Oct 21 02:23:45 in order to get the button like features Oct 21 02:23:49 but just change the color Oct 21 02:23:53 you are simply describing visuals Oct 21 02:24:03 you set a color…it's a color Oct 21 02:24:18 if you set a shape drawable with a color and rounded corners it's then that Oct 21 02:24:31 no magic, it is what it is…which is what you set it :) Oct 21 02:24:47 I guess what I mean is Oct 21 02:25:02 there if I create my own drawable for button press state color changes Oct 21 02:25:12 and don't include padding, corner radius, etc.. Oct 21 02:25:25 then it doesn't include all the default button layout Oct 21 02:25:31 I have to manually set it myself Oct 21 02:25:34 Is that right? Oct 21 02:25:43 no you lost me Oct 21 02:25:59 button = state list with drawables for the various view states Oct 21 02:26:07 just read up on what a drawable is Oct 21 02:26:08 The Material Design documentation states "Think about how the users attention should be directed". Oct 21 02:26:16 Such a blatant error. Oct 21 02:27:00 Is basic grammar really that hard? Oct 21 02:28:13 how would you word it ? Oct 21 02:28:22 s/users/user's/ Oct 21 02:28:45 StingRay_, for example I followed the answer here with 62 upvotes: http://stackoverflow.com/questions/3882064/how-to-change-color-of-button-in-android-when-clicked Oct 21 02:28:46 oh you mean punctuation :) Oct 21 02:29:00 That changed my button layout quality(no round corners, bigger, etc..) Oct 21 02:29:08 It's because I didn't set the padding, corners, etc.. Oct 21 02:31:57 That's a grammar thing, really. It's plurality versus possessiveness. Oct 21 02:32:53 so then users' Oct 21 02:33:16 it's not plural Oct 21 02:33:16 "The user's". Oct 21 02:33:20 That of the user. Oct 21 02:33:59 I guess you could use "users'", too. But that's not so typical. Oct 21 02:34:23 I guess you could use "users'", too, but that's not so typical. Oct 21 02:34:41 neways the whole thing is balls, cause if they actually followed that in their own implementation I would still be using the updated material design apps like newstand etc. Oct 21 02:34:58 bankai_au: I don't see anything wrong with conjunctions starting independent clauses. Oct 21 02:35:07 as it stands it's god awefull :) Oct 21 02:35:26 it's not independent Oct 21 02:35:48 actually the comma after your quotation is also superfluous Oct 21 02:35:52 "That's not so typical" is independent. Oct 21 02:35:58 The conjuction "starts" it. Oct 21 02:36:01 it's part of the rest of the sentence Oct 21 02:36:24 Wrong. It's an independent clause. The fact that I used a conjunction before it says nothing on that topic. Oct 21 02:36:40 I neva understand how u programmers get so hung up on grammer, syntax I would understand but gramma ? really ? Oct 21 02:36:41 ;) Oct 21 02:37:31 * StingRay_ is a "if it looks good, works good and communicates the purpose" fk it kinda guy Oct 21 02:37:52 Life is less stressful that way. Oct 21 02:38:47 because code has strict grammar and syntax Oct 21 02:39:07 language, particularly English, has similarly strict rules Oct 21 02:39:10 but irc does not Oct 21 02:39:26 that's my point I guess Oct 21 02:39:59 What if we are robots? Oct 21 02:40:15 mind…blown Oct 21 02:41:12 anyone here used the new GDrive API and have any opinions on it ? Oct 21 02:42:02 I wonder whether there'll be a new "Material Design" once Android 6 hits. Oct 21 02:42:11 Called something like "Functional Aesthetics". Oct 21 02:42:42 TacticalJoke best thing to do is design your own Oct 21 02:42:42 Aesthetic Functionalism. Oct 21 02:42:57 no point being the same as the rest really Oct 21 02:43:11 hard enough to stand out in a crowd of crap Oct 21 02:43:15 True. Oct 21 02:43:22 Though I like the idea of consistency on a platform. Oct 21 02:43:26 i disagree; no point deviating from the design standard unless necessary Oct 21 02:43:35 Can someone explain why when I override getView in my ArrayAdapter suddenly I'm seeing different results as to if I don't? Oct 21 02:43:38 But if we do design our own then where do we begin? By taking Holo and modifying it? Oct 21 02:43:47 * Fall is baffled Oct 21 02:44:31 g00s thats crazy … if Maya looked like photoshop looked like gen arts, looked like nule Oct 21 02:44:32 Fall: Because you're doing something different in getView? I guess you should post the code. Oct 21 02:44:35 nuke* Oct 21 02:44:42 TacticalJoke: ah yes. One moment. Oct 21 02:44:45 you design for purpose, not platform Oct 21 02:45:01 StingRay_ you proved my point. All Adobe stuff looks like shit on mac Oct 21 02:45:05 unless the purpose is platform…so like… file browser Oct 21 02:45:09 because they use their own GUI toolkit Oct 21 02:45:23 UI consistency makes people feel good, though. Oct 21 02:45:35 Have a paste: http://pastebin.com/gMVvBJi8 Oct 21 02:45:39 TacticalJoke prove it Oct 21 02:45:47 cause that to me is a false statement Oct 21 02:46:09 StingRay_ in UI / HCI, its been wisdom for a long time Oct 21 02:46:15 so the onus is on you to prove your point Oct 21 02:46:47 look at maya Vs xcode Vs Textual Vs …well anything in a different context and purpose Oct 21 02:46:54 they are different for many reasons Oct 21 02:47:12 yeah they have different architectures for their interaction spaces Oct 21 02:48:01 xcode is a workbench; most paint programs have palettes with modes Oct 21 02:48:17 thats all fine. but they don't just style shit differently for the hell of it :) Oct 21 02:48:31 Fall: What are you expecting to happen here? Oct 21 02:48:39 ok do cause they have different purposes so…they are designed that way ? :) Oct 21 02:49:18 TacticalJoke: I simply need to set Typeface on the TextView, however once I override getView is in place I get wildly different results Oct 21 02:49:26 like I say, that …erm…. codeRunner and erm…(thinks) coda same purpose, same platform, different design Oct 21 02:50:36 TacticalJoke: I may have just found an SO article that helps me out. Stand by. Oct 21 02:50:49 Roger that. Oct 21 02:52:03 StingRay_ what do you think would happen if Google did not have design guidelines ? Oct 21 02:52:11 it would be a total clusterfuck Oct 21 02:52:17 g00s programmers would make sh*t UI's Oct 21 02:52:23 like they did previous Oct 21 02:52:23 or everybody would just copy gapps without knowing why Oct 21 02:52:39 thats why they are given as heuristics Oct 21 02:52:52 dont get me wrong…they are good for programmers with no designer or design experience Oct 21 02:52:56 TacticalJoke: thanks for your brief assistance, seems I was doing something incorrectly in my implemtnation of getView(). Unsure what, however. Oct 21 02:53:02 very good…and if it's all you have def use it Oct 21 02:53:17 well designers gave us shit liek Skeuo so I don't get inspired by that camp either Oct 21 02:53:21 Fall: This is like one of those M. Night Shyamalan movies. At the end you find out I never actually existed. Oct 21 02:53:34 but no visual/design advancement comes from platform continuity of "design by google" approach Oct 21 02:53:50 visual design advancement is overrated Oct 21 02:53:58 just delight your users Oct 21 02:54:03 StingRay_: Can you show one of your apps? Oct 21 02:54:06 Just out of curiosity. Oct 21 02:54:11 Unbreakable was a terrible movie. Oct 21 02:54:18 not even finished 1 yes TacticalJoke Oct 21 02:54:20 Maybe it's more like Fight Club? Oct 21 02:54:22 yet* Oct 21 02:54:25 Okay. Oct 21 02:54:27 :) Oct 21 02:54:29 Was just curious. No worries. Oct 21 02:54:35 Fall, stop punching yourself! Oct 21 02:54:44 (He says to himself.) Oct 21 02:54:51 StingRay_ & TacticalJoke guidelines are meant to be broken by those with talent, hence the creation of pull to refresh, nav drawer, and almost every other pattern that's now a standard Oct 21 02:54:53 * Fall wanders away, slowly... Oct 21 02:55:06 the guidelines are for people who don't have talent and need to be spoon fed Oct 21 02:55:11 which is 99% of developers Oct 21 02:55:20 the 1% paves the way for the next generation of design Oct 21 02:55:24 JacobTabak and you have a designer or two right ? :) Oct 21 02:55:30 Even stuff like pull-to-refresh isn't exactly *breaking* any design guidelines. Oct 21 02:55:33 i'm in the 99% Oct 21 02:55:37 It's still arguably sitting atop them. Oct 21 02:55:51 my point is the rules are meant to be broken Oct 21 02:56:35 There is some real value in a consistent UX across Android. Oct 21 02:56:43 It looks good. It makes users feel good. It's good for n00bs. Oct 21 02:56:56 yea, its great for us Oct 21 02:57:00 they do the work of design for us Oct 21 02:57:05 so we can focus on making apps Oct 21 02:57:14 True. Oct 21 02:57:30 well I've done artwork from everything from print work to games, from thomas the tank engine to battlefield… I've worked with namco and 1000 page style guide of pac man… it's all mutable to purpose Oct 21 02:57:35 I'm not much of an artist. I'm more into calcuation. Oct 21 02:57:45 so i agree with everyone, its just not really an argument Oct 21 02:57:59 design guidelines are for non-designers, and designers can factor in the design guidelines when making their own Oct 21 02:58:07 StingRay_: Did you do design work on the Battlefield game series? Oct 21 02:58:12 yes Oct 21 02:58:15 Cool. Oct 21 02:58:40 here in the uk in sheps bush ;) with a scottish company for EA obviously Oct 21 02:58:52 You're in Shepherds Bush? Oct 21 02:58:59 no, studio was is Oct 21 02:59:00 I'm not hugely far from there. Oct 21 02:59:02 Okay. Oct 21 02:59:14 shepherds west Oct 21 02:59:22 That's where that shopping centre is, I think. Oct 21 02:59:25 Forget the name. Oct 21 02:59:26 back of Oct 21 02:59:29 how cute Oct 21 02:59:29 StingRay_: thought you might have been a fellow UK'ian Oct 21 02:59:30 :) Oct 21 02:59:30 :D Oct 21 02:59:30 Westfield. Oct 21 02:59:51 TacticalJoke yes… done stuff from BB to Robotwars Oct 21 02:59:55 TV too **** ENDING LOGGING AT Tue Oct 21 02:59:59 2014