**** BEGIN LOGGING AT Wed Feb 03 02:59:58 2016 Feb 03 03:00:00 g00s, great Feb 03 03:00:20 well, luckily i can afford it, but... man, seems so wasteful... never needed this much ram for anything... Feb 03 03:00:43 yeah; my 2009 MBP is actually good for anything these days - except running bloated java crap Feb 03 03:00:57 can still use Adobe Lightroom like i did in 2012 Feb 03 03:01:03 :) Feb 03 03:04:53 Guys I want to put a notification counter in a viewpager tab when new content comes in. Where do I refer to, to research on this? I never done this before. Feb 03 03:05:33 The content may come from an API call Feb 03 03:05:44 Do I need some event listener library to do this? Feb 03 03:10:32 I had a 2008 mbp until last year Feb 03 03:11:33 ron_frown pretty much any app i use works fine (except chrome with lots of tabs - and java stuff) Feb 03 03:12:01 yeah I really only upgraded because I was doing android shit at the time and because I needed eoy writeoffs Feb 03 03:33:28 meh, can't write anything off from last year :-/ Feb 03 03:33:33 I need to buy a ton of shit this year to write shit off Feb 03 03:35:16 switching over to a 15 year mortgage is gonna fuck me in the ass for taxes, too Feb 03 04:22:53 is it possible to align everything center in a vertical layout? or i'd have to use a relative layout for that? Feb 03 04:24:10 never mind I got it Feb 03 04:24:10 :p Feb 03 06:09:42 * Beautiful ( ͡° ͜ʖ ͡° ) Feb 03 06:29:41 Beautiful: unicode art > ascii art? Feb 03 06:32:27 is Dwarf Fortress made from unicode art? Feb 03 06:33:30 wyoung, my art > ur art Feb 03 06:35:28 I've made changes to my application in Android Studio, but when I run the app on my hardware device, it does not reflect these changes... any thoughts? Feb 03 06:36:04 Tried deleting the file in data/local/temp/ Feb 03 06:42:33 Beautiful: I don't art so that statement isn't hard to be True Feb 03 06:44:20 wyoung, your comments has "programmer" written all over them :D Feb 03 06:48:18 Beautiful: for(Skill skill : getSkills(wyoung)) if(skill.getName().equals('programmer')) System.out.println('You got it!'); Feb 03 06:49:38 you're thoughtful Feb 03 06:49:47 wyoung ^ Feb 03 06:50:40 :P Feb 03 06:52:06 although I would rather python: [print 'You got it!' for skill in getSkills(wyoung) if skill.name == 'programmer'] Feb 03 06:54:22 getSkills, really? surely wyoung.skills Feb 03 06:55:05 Python doesn't sprinkle getters and setters everywhere... Feb 03 06:55:12 Leeds: you are correct :) Feb 03 06:55:23 plus I forget the () on the print function Feb 03 06:55:28 but any way :) Feb 03 06:57:55 Leeds: yeah, the @property decorator takes care of getters and settings :) Feb 03 06:58:02 setters* Feb 03 07:20:04 Hello people, i'm looking around on my adsense account for a way to view amount of feeds that occured to a specific adunit. Does not look like I can get that ? Feb 03 07:22:38 oh wait. I think I have it. Feb 03 07:22:43 thanks for reading. Feb 03 07:25:39 np Feb 03 07:34:41 friends, is volley the preferred http library for marshmallow? Feb 03 07:37:11 People also like retrofit/okhttp Feb 03 07:37:27 ok.. will check them out Feb 03 07:47:50 How can I made blink animation on image button? Feb 03 07:50:21 Ozymandy: use ImageButton and supply a custom drawable as the background Feb 03 07:52:10 br0mahn: but it will be simple image button Feb 03 07:53:37 Is it enough to test my app on one android device per android OS version (kitkat, lollipop...) or do I need to test different models too? Feb 03 07:55:50 If i have a paid app thats a Work-in-progress. is it best to release it for free first to see how it does? or just release a $5 version first and keep improving it until its final product Feb 03 07:56:41 keep in mind you cant release a free app and then switch to a paid Feb 03 07:56:45 but you can go the other way around Feb 03 07:58:10 maintain two apps.. one free and another paid Feb 03 07:58:57 depending on what your doing you could also do IAP to unlock content Feb 03 08:10:26 couldnt i also just delete the free version from store when ready and up it to paid? Feb 03 08:48:48 aand he left Feb 03 08:58:04 hi! Feb 03 08:59:55 I try to read a file from c code, ndk, but when I do: fp = fopen("/sdcard/sample.txt", "r"); I always get NULL pointer Feb 03 09:00:01 can someone help me? Feb 03 09:00:38 There's just so much wrong with that line. Feb 03 09:01:11 I have the time if you will help :) Feb 03 09:02:19 guys, check out two links Feb 03 09:02:20 http://developer.android.com/images/mediarecorder_state_diagram.gif Feb 03 09:02:28 http://stackoverflow.com/questions/3458641/how-to-know-whether-a-mediarecorder-is-in-running-state-or-not Feb 03 09:02:59 HunterD, ok, first of all, neverhardcode paths on Android since they can differ, most devices won't have sdcard at /sdcard Feb 03 09:03:18 Which can be one of the issues you have, resolve the sdcard path via `getExternalStorageDir()` in Java and then pass it to your NDK code. Feb 03 09:03:32 HunterD, second of all, you also probably didn't ask for permission for SD card access if you have Android 6.0 Feb 03 09:03:39 if you don't ask for permission you're not getting access Feb 03 09:05:27 I indeed have android 6, did not checked on the device. I will pass the path from java. for the permission, how can I request it? Feb 03 09:06:02 I'm afraid you'll have to do a callback to Java for that as well Feb 03 09:06:24 HunterD, https://developer.android.com/training/permissions/requesting.html#perm-request Feb 03 09:07:06 HunterD, note that if you store files in your own private directories on SD card (returned by getFilesDir(), getCacheDir() or getObbDir()) then you don't need the permission Feb 03 09:07:21 sorry, getExternalFielsDir, etc. Feb 03 09:09:05 Mavrik: It's not on a private dir, it's directly in /sdcard/ . Now I think I can get it to work. thank you! Feb 03 09:10:25 Wow, just came across this question. StackOverflow can be harsh. http://stackoverflow.com/questions/31746300/how-to-show-snackbar-at-top-of-the-screen Feb 03 09:19:09 negative vote on question Feb 03 09:26:21 surf2b1: https://www.google.com/search?q=signalError+omxError+0x80001001+internalError+-2147483648 Feb 03 09:27:29 surf2b1: at least your question is popular :) Feb 03 09:28:20 squ, o.O what's the link for? Feb 03 09:28:33 can't find answer Feb 03 09:28:54 ah Feb 03 09:29:12 hate android Feb 03 10:04:56 preferred json library for marshmallow? Feb 03 10:17:53 hey Feb 03 11:00:11 Bonjour, Gutentag, Hello, Salam alikoum and Ni Haou :) Feb 03 11:00:19 Holla Feb 03 11:02:34 I haven't much experience with animation, I played a bit like moving a button off the screen and so on, it was cool :) Now I have an animation that scales a textview, it works, however when animation finishes, the view returns to its original state instantly. What do I miss here to keep it scaled? Feb 03 11:04:33 This is my animation: http://pastebin.com/qn8gzAx9 Feb 03 11:05:03 Number5: the animation runs separately, you actually need to set the scale on the object. Feb 03 11:06:01 justJanne, so I need a listener when the animation ends and than change the size property? Feb 03 11:07:02 As you might have noticed, the animation renders independently from what is actually set. Feb 03 11:07:27 Afaik, changing it in the moment you start the animation should work. Feb 03 11:07:56 Use the "new" animation api.. view.animate().scaleY(...).scaleX(...) Feb 03 11:08:22 SimonVT, is this backwards compatible? Feb 03 11:08:32 I need it from Android version 15+ Feb 03 11:08:46 Back to when it was added, which is a long time ago Feb 03 11:09:46 SimonVT, ok, but does this mean it will keep it scaled or will bump back to its original state? As that was my little problem. Feb 03 11:14:02 It changes the actual view properties, like setting them directly would Feb 03 11:15:21 Great, thanks! Feb 03 11:15:26 Another question, if you have time. I have a layout with a view below the bottom, so you can't see it. What I wanted to do is to move the ViewGroup which contains the "hidden" view by animation. Surprisingly only the ViewGroup moved upwards, but my view either stayed invisible or didn't move up. Any Idea SimonVT? Feb 03 11:17:05 Animating translationY/X only moves the view you're animating.. If you want other views to move, animate those as well Feb 03 11:23:49 SimonVT, Thnx for your previous answer, this view.animate().scaleY(...).scaleX(...) works perfectly well, I can give you kiss buddy :P Feb 03 11:24:16 justJanne, thnx for your help too :) Feb 03 11:28:21 SimonVT, about the ViewGroup, I managed to move all the child views just by animating the ViewGroup. Once again, except the view that is off screen. I aligned a view X to the bottom and set View Y belowOf view X, what makes View Y below of the visible screen. After animating, all the visible child views moved except the one that was off screen (View Y). I added a background color to distinguish the views. Feb 03 11:50:45 So amazing day, my app got suspended/removed without any warnings Feb 03 11:51:20 So if someone flags it as spam, it gets automatically removed without any warning ? Feb 03 11:53:12 no clue, but don't bother asking google, they're notoriously bad at telling you anything about their reasons Feb 03 11:53:40 vegetablesalad19, no. And you usually get a mail about the reason Feb 03 11:54:19 if you show us your app, we might be able to help you find the reason Feb 03 11:54:26 what is ‘nexus’ plural form? Feb 03 11:55:03 nexi? :D Feb 03 11:55:06 It sends sms for registration, exactly like whatsapp or telegram Feb 03 11:55:10 squ, in latin, where it comes from, theres no plural Feb 03 11:55:18 yeah Feb 03 11:55:25 one nexus, many nexus Feb 03 11:55:34 someone marked it as sending spam/sms so it got removed Feb 03 11:56:05 https://en.wiktionary.org/wiki/nexus Feb 03 11:56:05 and I didn't receive any warnings Feb 03 11:56:07 danijoo: nexi/nexae Feb 03 11:56:40 does it send spam/sms ? :p Feb 03 11:56:51 Zharf: google nexus is fem or masc? Feb 03 11:57:00 I have no clue Feb 03 11:57:11 I'd just use nexuses Feb 03 11:57:15 danijoo, it sends sms, but not spam Feb 03 11:57:24 it uses sms registration just like whatsapp Feb 03 11:57:46 and then uses sms if phone doesn't have connection Feb 03 11:58:08 vegetablesalad19, did you make that clear to the user and in the app description? Feb 03 11:58:14 its a city parking app, you can send START/STOP via sms to manage your parking Feb 03 11:58:59 danijoo, yes it is clear for user when it's working in sms mode Feb 03 11:59:24 but even if it wasn't shouldn't they send a notice/warning first Feb 03 11:59:28 before removing app Feb 03 11:59:29 vegetablesalad19, try to contact google then Feb 03 11:59:52 it's one week till they give any response Feb 03 12:00:04 at least 2 days or so, yeah. Feb 03 12:00:39 1:58:30 PM - squ: 10 pcs of Google Nexa six-pi Feb 03 12:00:39 1:58:41 PM * Armand stabs squ Feb 03 12:00:39 1:58:53 PM - squ: I brought home dozen of Google Nexa six-pi this evening Feb 03 12:00:39 1:59:01 PM * Armand stabs squ some moar Feb 03 12:00:39 1:59:12 PM - squ: do I sound like English Man? Feb 03 12:00:40 1:59:15 PM - Armand: No Feb 03 12:00:51 hi guys - I'm writing an app that gets a copy of an external Database via query - however, this app will not always have internet connection, so I need to store a local copy of those results. I'm trying to optimise my code as best as I can, so I was wondering if it'd be better to store the copy in a local SQLite database, or in a List/Dictionary, in terms of I/O operation speed? Feb 03 12:00:57 stop that squ Feb 03 12:01:11 this is important and relevant Feb 03 12:01:38 ChrizC, in terms of speed, sql will be faster Feb 03 12:02:27 danijoo: so I'd be better off having a local SQLite db that I query every couple of seconds, rather than a large list/dictionary? Feb 03 12:02:41 yes Feb 03 12:02:44 this db copy will be "queried" every few seconds, is why I ask Feb 03 12:02:57 thats what dbs are for Feb 03 12:03:04 danijoo: thanks. any reasons/sources as to why? just want to increase my knowledge Feb 03 12:03:42 ChrizC, a dictionary file must be read line by line for searching or as a whole for filtering Feb 03 12:03:49 databases are optimized for that Feb 03 12:04:05 ah awesome, sounds good. thanks for the advice danijoo, much appreciated Feb 03 12:04:08 ie getting a list of all entries with certain conditions is super fast Feb 03 12:04:25 assuming you can't keep the whole thing in memory Feb 03 12:04:26 for small datasets files often work too, but they are not scaleable Feb 03 12:04:38 yeah. and what Zharf said Feb 03 12:05:48 ah, what if I could keep the whole thing in memory? Feb 03 12:06:16 (I know that's probably not advisable but this app is for a dedicated device so memory competition is not an issue) Feb 03 12:06:16 then it doesnt matter because you load it into memory once and dont read any file anymore Feb 03 12:06:55 danijoo: so a Dictionary/List in memory would be quicker than querying an SQLite db? Feb 03 12:06:57 ChrizC, remember 2gb memory doesnt mean your app can use 2gb. it may can only use 64 mb or so Feb 03 12:07:05 ChrizC, probably Feb 03 12:07:16 and most likely not noticeably faster Feb 03 12:07:39 ah okay, sounds like I should go for the db anyway just to be scaleable Feb 03 12:07:50 good decision Feb 03 12:07:57 thanks danijoo / Zharf Feb 03 12:07:59 I have an app that uses an sql database and it gets queried for every char a user enters in a textfield (to show suggestions) Feb 03 12:08:08 and theres no noticeable lag. so this is fast enough Feb 03 12:08:12 ah, brilliant Feb 03 12:08:14 +1 Feb 03 12:09:40 I'm planning on doing something similar as well, but for me there's a network socket in between so I think there will be some lag... :p Feb 03 12:10:20 oh fuck. Feb 03 12:10:21 http://android-developers.blogspot.si/2016/02/marshmallow-and-user-data.html Feb 03 12:12:16 Mavrik, what about it Feb 03 12:12:41 Well, they just killed all point-to-point apps that need to access MAC to communicate. Feb 03 12:12:51 Playing babysitters without giving alternative via dangerous permisison. Feb 03 12:12:56 Or in other words: Feb 03 12:13:08 Why the fuck am I still using Android if it's crippled the same way as Apple toys. Feb 03 12:16:09 * Mavrik gets more coffee. Feb 03 12:20:32 Mavrik, I'm not concerned, but if there's enough people who care, there's probably going to be some changes, I'd wager Feb 03 12:20:43 Mah I don't know. Feb 03 12:20:57 The trend of dumb "security" API changes in last few Android versions is problematic. Feb 03 12:21:16 Since they just revoke/close stuff off without giving an alternative for apps that need those accesses. Feb 03 12:21:26 (Secondary SD card access for example.) Feb 03 12:22:32 how do you mean? was there ever any real way to use secondary sd card? at least I couldn't for the life of me find any APIs that would give me a path to one Feb 03 12:24:47 Zharf, exactly. Feb 03 12:25:08 They just "fixed" the issue by slapping write protect on it in 4.4 with no way to override it. Feb 03 12:25:11 but you can't revoke/close something that never existed :p Feb 03 12:25:26 Does that make it any less broken? Feb 03 12:26:36 no, and I agree the write protect in kitkat was retarded... I haven't tried it in lollipop yet but I read something about it being changed there again Feb 03 12:27:49 Yeah, they added the option that you ask for access via SAF. Feb 03 12:28:07 which is what they should've done in the first place Feb 03 12:28:11 But that's still terrible UX for apps that actually work with files (like file explorers) Feb 03 12:30:52 I don't remember ES file explorer asking me anything though Feb 03 12:32:05 but maybe I've never written anything with it Feb 03 12:34:00 if I ever get off my lazy ass and write that music library syncing app I've been planning, I might look into that more Feb 03 12:34:42 is there any lightweight launcher in android that doesnt lag? Feb 03 12:35:22 i found one in f-droid text only and even that stutters Feb 03 12:36:15 o.O Feb 03 12:36:28 :) Feb 03 12:36:37 are you sure there's nothing wrong with your device? Feb 03 12:36:49 i debloated all i could Feb 03 12:36:55 wrong channel and if all launchers lag you might want a better phone :p Feb 03 12:37:13 idk i think its bad coding from devs Feb 03 12:37:30 i've seen crapier hardware on iphone and wont lag Feb 03 12:37:32 from _all_ devs that ever coded a launcher? :D Feb 03 12:38:01 lets compare apples and pears.. Feb 03 12:38:08 I'd wager something's using all your device resources instead Feb 03 12:39:04 or its a super old crapphone Feb 03 12:39:12 mali 400 Feb 03 12:39:17 and dual core ye Feb 03 12:39:19 but still Feb 03 12:39:33 no excuse for not even driving a 2d launcher Feb 03 12:39:34 yeah. super old crapphone :) Feb 03 12:39:41 use the stock launcher Feb 03 12:39:54 but i have ios 7.1 on my 4s Feb 03 12:40:00 this crap doesnt lag a bit Feb 03 12:40:12 ios is ios Feb 03 12:40:15 android is shit Feb 03 12:40:26 I have windows 10 on my computer and it doesnt lag! Feb 03 12:40:43 is that helpful? no :p Feb 03 12:40:48 stock launchers lags too Feb 03 12:41:08 libre, go to #android Feb 03 12:41:16 this is the application development channel Feb 03 12:41:23 isnt the same thing? Feb 03 12:41:27 no Feb 03 12:41:28 do ppl there code? Feb 03 12:41:36 you are not asking about coding Feb 03 12:43:07 so noone here coded a launcher? Feb 03 12:44:15 how would it help you if someone did? Feb 03 12:44:27 i guess the devs are too busy handling permissions Feb 03 12:44:55 well yes, i could try the app and give feedback Feb 03 12:45:10 give your feedback in the app store Feb 03 12:45:16 thats where it reachs the devs :) Feb 03 12:45:22 noone reads there Feb 03 12:45:37 thats bs. every dev reads there Feb 03 12:45:48 then why apps are so terrible? Feb 03 12:46:11 libre: please take the conversation to #android, you're off topic Feb 03 12:46:58 wow really Feb 03 12:48:56 libre: this is from devs, for devs. Feb 03 12:49:04 and what devs do? Feb 03 12:49:15 why would i ask such q for a non dev? Feb 03 12:49:25 User → Dev, or Dev → User, or User → User is #android Feb 03 12:49:42 lets just ignore him. he wont stop anyways.. Feb 03 12:49:44 #android-dev is purely Dev → Dev Feb 03 12:50:14 Does anyone know of a workaround to fix this memory leak regarding the SpellcheckerSession? https://code.google.com/p/android/issues/detail?id=172542 Setting all EditTexts to textNoSuggestions is supposed to work, but what if you actually want suggestions? Feb 03 12:52:10 barq: in which versions does that regression occur? Feb 03 12:53:35 SDK_INT >= JELLY_BEAN && SDK_INT <= LOLLIPOP_MR1 Feb 03 12:54:01 barq: No problem then. Problem only occurrs on obsolete versions. Feb 03 12:54:18 * loke___ only supprots api level 23 Feb 03 12:55:15 Most apps support at least 16 Feb 03 12:55:34 Okay, so it occurs on these versions? Feb 03 12:55:42 Hm. Feb 03 12:55:47 A workaround would be neat. Feb 03 12:55:52 By this point you should basically just code in a way where leaking an Activity doesn't matter.. Amazing how many ways the framework leaks Feb 03 12:56:02 Is the spell checker session available to the activity code? Feb 03 12:56:16 barq: I know. I was being a little bit ironic. That said, I do set my minimum version to 23. Feb 03 12:56:23 danijoo, I'd read the comments in my apps but most of them are in russian for some reason Feb 03 12:56:26 :p Feb 03 12:56:43 OTOH, I'm not trying to make money off of applications, so I honestly don't care if people below Marshmallow can run it or not. Feb 03 12:56:45 justJanne: The SpellChecker ist tied to EditText/TextView Feb 03 12:57:00 Zharf, and the translater is super bad.. i know that feel Feb 03 12:57:07 yeah Feb 03 12:57:11 barq: can we get a reference to the spell checker somehow? Feb 03 12:57:32 If yes, we could just clean up the references via reflection and do System.gc() Feb 03 12:58:01 Haven't tried that Feb 03 12:58:46 It's a horrible hack, but not any worse than the TLS or Zip hacks. Feb 03 12:59:07 (And those are officially recommended) Feb 03 12:59:24 zip hacks? Feb 03 12:59:39 InflaterInputStream is KitKat+ Feb 03 13:00:02 What is TLS or Zip hacks? Feb 03 13:00:06 So the official suggestion is to instantiate a deflater, modify it via reflection, then build a new stream around that. Feb 03 13:00:25 To get deflater streams on pre-kitkat. Feb 03 13:00:27 Source? Feb 03 13:00:42 I can try to find it later, am on phone right now Feb 03 13:00:50 (And only have 64kbps...) Feb 03 13:00:52 I hacked a few fixes using reflections, but haven't found anyone tackling this SpellChecker leak Feb 03 13:00:52 justJanne, was it inaccessible in pre-kitkat? Feb 03 13:01:32 Well, it's inaccessible after KitKat, too. But now we got a new constructor that takes an additional argument and enables Z_SYNC_FLUSH Feb 03 13:01:43 Without reflection. Feb 03 13:02:43 only "fix" I've done in my apps was bundling my own FileObserver because google's implementation didn't give some flags back to the listener so it was impossible to detect file moves Feb 03 13:07:45 Setting all EditTexts to textNoSuggestions worked at least. Feb 03 13:09:39 does that issue cause any actual problems? Feb 03 13:12:08 Zharf: well, the TLS issue means only SSLv3 is before JellyBean, the DEFLATE issue means you can’t use Deflate on networkstreams before kitkat, the SpellChecker issue means your app leaks memory like an incontinent senior before Lollipop. Feb 03 13:12:21 was talking about the spellchecker one Feb 03 13:12:44 but how much would an incontinent senior leak Feb 03 13:13:05 well, every activity ever stays in RAM Feb 03 13:13:10 until your process gets killed Feb 03 13:13:39 if you put each activity and service in their own process, you can prevent it, obviously Feb 03 13:14:22 lollipop included, by the way Feb 03 13:24:33 hm Feb 03 13:24:45 does the keyboard create the SpellCheckerSession Feb 03 13:26:51 also since this only happens when the session is closed before it's connected to the service, it's not as likely to leak as I thought, but sure... a workaround would be nice Feb 03 13:35:31 Why is it unlikely to leak? Feb 03 13:36:46 how often do you find your services taking very long to connect? Feb 03 13:38:05 Services? This is just an EditText with suggestions Feb 03 13:38:37 did you read the bug report? it's caused when the SpellCheckerSession is closed before the service is connected to it Feb 03 13:38:43 if it connects then it won't leak Feb 03 13:40:19 Happens every time for me Feb 03 13:44:50 justJanne, can't really see an easy way to do a reflection hack on the spellchecker issue Feb 03 13:45:10 :/ Feb 03 14:09:38 justJanne, actually, feeding a TASK_CLOSE event to SpellCheckerSession$SpellCheckerSessionListenerImpl.processTask might work Feb 03 14:12:00 I'm trying to query the google fit history API for all it's step data (bucketed by session) between 1970 and now. but I only receive 208 data buckets, the first with 0 steps from 1970 until jannuary 15th, 2016 and 207 since that date until now. Feb 03 14:12:28 Any idea why I don't receive step data from last year? Feb 03 14:12:36 you might be left with a smaller leak if the service connects afterwards though, but at least it would null the references that lead to the activity Feb 03 14:15:08 can anyone suggest a simple to use ORM for a beginner..and also a link to a tutorial,i've tried using active android but its not working its giving a known issue on lollipop.. Feb 03 14:16:02 ormlite <3 Feb 03 14:16:10 batdroid: we're using ormlite and it's ok. overall I prefer writing my own queries though. Feb 03 14:16:14 ormlite is quite nice Feb 03 14:16:25 I absolutely hate writing my own queries Feb 03 14:16:30 I'll go every distance to avoid it Feb 03 14:16:36 simpler to understand imho... Feb 03 14:17:50 i am frustated right now...i tried activeAndroid-hit a known lollipop issue,cannot have a random function in sugarOrm plus its slow and buggy,greenDoa looks quite complicated. Feb 03 14:18:01 please tell me ormlite is easy and not buggy Feb 03 14:18:13 justJanne, I'll investigate further later, my tester just came back to me with a bug (that I think I'm going to blame support library or samsung for) Feb 03 14:19:17 can't say that I've encountered bugs with ormlite and I found it very simple to use Feb 03 14:19:22 Zharf: btw, you noticed the bug in the support library yet, where, if you hold long over a spinner, then slide over the items, then stop touching, and long press another iem, both are highlighted? Feb 03 14:19:46 no, I don't think we use spinners.. Feb 03 14:20:03 happens also in overflow menus Feb 03 14:20:07 everything using popup theme Feb 03 14:20:39 and what about realm?how good is that? Feb 03 14:21:11 justJanne, just tried that, didnt happen for me. Feb 03 14:21:28 hi is it possible to directly launch a Listpreference from an option MenuItem ; i don't need an intermediary preferenceactivity in my case Feb 03 14:22:18 danijoo: it was fixed in 22.0 for toolbars Feb 03 14:22:53 ah. I think i updated that Feb 03 14:23:05 or was it 21.0? Feb 03 14:23:10 anyway, only for toolbars Feb 03 14:26:42 barq, how do you verify the leak? Feb 03 14:27:05 Analyse the heap after manually triggering a GC Feb 03 14:27:18 Or use LeakCanary Feb 03 14:27:34 so much effort, I'm demotivated to hack it Feb 03 14:38:52 hey guys, what do you do when the debugger won't get to a breakpoint before starting the MainActivity? Feb 03 14:39:49 Twirl, you mean your class reaches that point before the debugger is attached? Feb 03 14:43:26 now with parse gone, what's easiest (and best) way to send push notifications to "groups" of users in an app? Feb 03 14:43:36 parse made subscribing to groups very easy Feb 03 14:44:23 GCM and managing groups manually Feb 03 14:44:38 btw whats the reason for parse being gone? Feb 03 14:44:45 what's parse Feb 03 14:45:06 Zharf, nothing anymore :p Feb 03 14:45:12 what was parse Feb 03 14:45:55 a thrid party service for pushing messages and sharing data accross devices Feb 03 14:46:06 and cloud backend for apps Feb 03 14:46:45 danijoo: can it handle a ton of groups? in parse's example, they had a sports app that had a group for every game Feb 03 14:46:55 so you could subscribe to notifications for the specific game Feb 03 14:47:08 dcope, WhatsApp uses GCM. ;) Feb 03 14:47:34 well that answers that question then :D Feb 03 14:47:38 ^^ Feb 03 14:51:24 oh, gcm can work on ios too? Feb 03 14:51:26 interesting Feb 03 14:53:11 Why can I only query for google fit historyApi data from january 15th 2016 till now? With the google fit app I can manually check back until the begining of 2015... Feb 03 14:53:13 I have a gradle script generated by android studio. If I run gradlew installDebug then the application successfully installs on my device. If I run gradlew assembleRelease and then copy the -release-unsigned apk onto my phone I get a Parse Error. What's the correct way to create an apk with the gradle script? Feb 03 14:54:00 SleepyPikachu, http://imgur.com/jacoj Feb 03 14:54:16 * Zharf sighs Feb 03 14:55:11 Has someone here had similar problems with google fit? Feb 03 14:55:22 danijoo: *laughs* Sorry, the parse error is presented by the android OS it just says "There was a problem while parsing the package." do you think I might be able to collect some more information with android monitor? Feb 03 14:55:47 I'm replacing fragment A with fragment B in a transaction, then I come back up the backstack to fragment A and go to fragment B again... parts of fragment A are still visible on the screen and they're bugged when I go back to fragment A -.- Feb 03 14:56:00 (parts of fragment A overlay fragment B that is) Feb 03 14:56:25 only device I've seen this on so far is samsung galaxy young though Feb 03 14:56:26 SleepyPikachu, no idea sorry Feb 03 14:56:33 danijoo: In verbose mode I see 'W/PackageInstaller: Parse error when parsing manifest. Discontinuing installation' but no stack trace, sadly. Feb 03 14:56:42 (api16) Feb 03 14:57:00 Zharf, are you sure you are using replace and not add Feb 03 14:57:05 yes Feb 03 14:57:13 all be sure to always use support manager Feb 03 14:57:16 yep Feb 03 14:57:25 blame samsung then :p Feb 03 14:57:34 yeah Feb 03 14:59:23 Samsung is the new Internet Explorer, if it works on samsung then it will work everywhere Feb 03 15:00:11 danijoo: Ok, further progress. I've produced the debug apk from gradle and this also installs sucessfully. Perhaps you simply can't uninstall an unsigned production apk? Feb 03 15:00:12 SleepyPikachu, paste all logcat of PackageInstaller and PackageManager Feb 03 15:00:33 of course you can't install unsigned apk Feb 03 15:01:07 SleepyPikachu, try to sign it and youll see. Feb 03 15:01:29 but in general it must be at least debug signed Feb 03 15:01:33 vegetab__, the problem is to get it to work on all samsung Feb 03 15:01:55 Hello guys Feb 03 15:02:54 pfn: http://pastebin.com/Vw3vMeLw Feb 03 15:03:16 SleepyPikachu, doesn't matter, unsigned apk cannot be installed Feb 03 15:03:30 pfn: danijoo: Ok, does the signing process normally take place with an unsigned apk? Feb 03 15:03:41 Otherwise I don't see why you'd be able to generate an unsigned apk at all Feb 03 15:04:53 SleepyPikachu, if you dont give gradle the signing infos, it cant sign Feb 03 15:05:00 debug apk is automatically signed with debug key Feb 03 15:05:01 some people do it manually Feb 03 15:05:53 danijoo: For sure but can I start with an unsigned apk and make a signed one? Feb 03 15:06:05 yes. by signing it.. Feb 03 15:06:59 I have the following situation, my app has like 10 fragments, but in 1 fragment I need a transparent AppBar. The problem is, I made it transparent but grabbing the AppBar and Toolbar objects and setAplha(0). The problem is, if I animate a view to the AppBar's position, the view is covered with the background. How can I have a transparent AppBar such that a view won't be covered if I put it in the same position? Feb 03 15:07:18 danijoo: It's alien to me, it's strange to be able to sign a binary after the fact. I've now found the docs on how to sign the apk after generation. Thanks to you and pfn for your help, you're both super helpful. :-) Feb 03 15:19:43 danijoo, more fun, the artifacts aren't visible in view hierarchy dump Feb 03 15:19:51 signing a binary always occurs after the fact Feb 03 15:19:58 for every system, SleepyPikachu Feb 03 15:20:06 danijoo, well, they're visible on the screenshot but not in the tree Feb 03 15:34:02 danijoo, I fixed it by hiding the elements that cause the artifacts in onPause and show them again in onResume Feb 03 15:34:08 * Zharf sighs at samsung Feb 03 15:37:19 Hi, may someone explain the accepted answer in this thread: http://stackoverflow.com/questions/8479833/cursoradapter-with-different-row-layouts Feb 03 15:38:08 the method getItemViewType never gets called from the newView method Feb 03 15:42:45 anyone? Feb 03 15:47:45 looking for some direction here: I created a membership card passbook that is delivered via a backend for iOS, the client is wanting to also support Android. I see google wallet, google pay, samsung wallet, do any of these have the capability of ios Passbook membership card? Feb 03 15:48:34 Is there a way to update the local google fit history cache? Feb 03 16:12:57 how can I include prebuilt c libs (e.g. libcurl) and use them in my cpp code? I'm using gradle plugin 0.6.0-alpha6 and gradle 2.10, and you can check the repo here: https://github.com/jsvgoncalves/jni-webrest Feb 03 16:34:39 how can I include prebuilt c libs (e.g. libcurl) and use them in my cpp code? I'm using gradle plugin 0.6.0-alpha6 and gradle 2.10, and you can check the repo here: https://github.com/jsvgoncalves/jni-webrest Feb 03 16:35:19 for the record I do not what to use them in my java code, only in my native code Feb 03 16:37:40 I created a class so i can have objects represent a particular data structure (4 strings, 1 int). Seems clean but are there any other alternative? I dont think i can use hashmap as there's an int Feb 03 16:38:06 Hello is this #android-dev? Trying to connect using an IRC client Feb 03 16:39:00 maybe Feb 03 16:39:19 I'm getting a strange problem with my CoordinatorLayout.Behavior implementation. If I overload onNestedPrescroll() and make the child view to move upwards consuming the scroll of the target view, in the moment I don't consume because I don't want to move the child view past a certain point, this child view gets placed again in the starting position and back to the new position again in a very short period of time, Feb 03 16:39:19 sometimes leaving this child view in the starting position instead of the new. Feb 03 16:40:19 I created a class so i can have objects represent a particular data structure (4 strings, 1 int). Seems clean but are there any other alternative? I dont think i can use hashmap as there's an int Feb 03 16:40:48 This is the code for the behavior https://gist.github.com/Adyrhan/7d3a62400b07af0ce11f Feb 03 16:40:58 falcom, thats fine. its called POJO in java :) Feb 03 16:41:28 danijoo: ok thanks : Feb 03 16:41:30 :) Feb 03 16:43:05 Would it be better to integrate Dagger 2 or Unit Testing first with an existing (but early stage) project? Feb 03 16:43:21 what is the difference between setting something like this in a style : ?android:attr/textColorPrimary or simply not setting textColor Feb 03 16:43:32 Sorry, I meant which one would be better to integrate first. I know both would be great to implement :) Feb 03 16:44:15 troulouliou_div2: I'm pretty sure if you don't set it in a style, it'll just use the default value used in the parent theme. Feb 03 16:44:48 markyosullivan, this don't mean default : ?android:attr/textColorPrimary Feb 03 16:45:00 For example - Theme.AppCompat.Light.DarkActionBar will give you dark text views because of the light background, whereas Theme.AppCompat would give you dark text Feb 03 16:45:08 *light text for AppCompat Feb 03 16:45:20 . Feb 03 16:45:43 troulouliou_div2: I would imagine that would be the default text colour but can't confirm as I haven't tested it Feb 03 16:45:51 ok Feb 03 16:46:13 Have you set a style attribute called textColorPrimary? Feb 03 16:47:54 Anyone got any recommendation for implementing either Dagger 2 or Unit testing first? Feb 03 16:54:25 how can I include prebuilt c libs (e.g. libcurl) and use them in my cpp code? I'm using gradle plugin 0.6.0-alpha6 and gradle 2.10, and you can check the repo here: https://github.com/jsvgoncalves/jni-webrest Feb 03 16:55:55 jni stuff in gradle is still exotic thing here Feb 03 16:56:23 I'm just looking at stack overflow questions... Is this even valid code? What is going on here? http://i.imgur.com/ef7wFhO.png Feb 03 16:57:05 truckcrash, oh my god :/ Feb 03 16:57:18 no, at least in java Feb 03 16:57:35 Ashiren: yeah, but imo it makes more sense to start with it now if I'm making something from scratch Feb 03 16:57:46 I think he wants new MainActivity.SQLAsync(url); wgere SQLAsync is an inner class of MainActivivty Feb 03 16:57:58 and i bet this inner class isnt static// Feb 03 16:59:13 it's valid code, but it's shit Feb 03 16:59:25 valid? Feb 03 16:59:39 Zharf, no its not valid code Feb 03 16:59:53 one `new` Feb 03 17:01:49 Heh, it's valid.. But yeah, never manually instantiate an Activity Feb 03 17:02:06 yep Feb 03 17:02:13 it hurts my brain, but yes, i must be some inner class sorcery Feb 03 17:02:29 new Object().new InnerObject() is valid? Feb 03 17:02:36 yes Feb 03 17:02:43 crazy java.. didnt knew that Feb 03 17:03:01 But I guess thats nothing you should ever do anyways :D Feb 03 17:03:03 it's because inner non-static classes need an instance of the parent Feb 03 17:03:06 anyone familiar with this project? would it work on android ? http://www.reactive-streams.org/announce-1.0.0 Feb 03 17:03:15 Zharf, ah yes. makes sense Feb 03 17:04:21 if you end up doing that though, don't Feb 03 17:04:22 so, again: anyone with JNI/gradle experience over here? I need to include external libs in my c/c++ code and I'm not sure how to do that Feb 03 17:05:05 jsvgoncalves: have you tried https://github.com/googlesamples/android-ndk/tree/master/hello-thirdparty Feb 03 17:05:07 * pfn uses Android.mk for all jni work Feb 03 17:05:11 fuck the gradle noise Feb 03 17:05:20 * Zharf too Feb 03 17:05:48 ugh, I wish there was an easy way to send a link from chrome-phone to chrome-pc Feb 03 17:05:56 need to wait forever for chrome to sync tabs naturally Feb 03 17:06:12 Hi g00s Feb 03 17:06:40 pfn, I use pushbullet for that Feb 03 17:06:41 works fine Feb 03 17:06:51 I guess, I never bothered with pushbullet Feb 03 17:07:13 you load the app, and the chrome extension then you can share between both and it produces notifications on desktop/phone Feb 03 17:07:48 + neat extra features like sharing with other people you know Feb 03 17:08:18 WOW. What the hell is wrong with Android testing, I've never had a pleasant experience when I need to add Mockito or ANY other testing library Feb 03 17:08:46 isn't that testing in general Feb 03 17:09:04 I use it a lot to push screenshots to my laptop Feb 03 17:09:38 I usually just Share -> ES Save As -> SMB Feb 03 17:10:20 Is it possible to send a DataReadRequest to google fit history api without bucketing? Feb 03 17:10:26 Ashiren: yeah I did, still can't make it work :( all the different versions and incompatibilities are killing me Feb 03 17:11:16 "java.lang.IllegalArgumentException: dexcache == null (and no default could be found; consider setting the 'dexmaker.dexcache' system property)" Feb 03 17:11:47 explodes: Have you tried using robolectric? Feb 03 17:12:00 no i haven't Feb 03 17:12:24 can you give me your gradle dependencies so I can just start without having to guess/google/search for versions? Feb 03 17:12:35 (for roboelectric) Feb 03 17:12:37 the truth is that there is no pleasant experiment in testing... Feb 03 17:12:47 I've never used roboelectric but I've heard it's good :) Feb 03 17:12:54 Yea but I can't even freaking run my damn tests Feb 03 17:13:01 testCompile "org.robolectric:robolectric:3.1-SNAPSHOT" Feb 03 17:13:21 does roboelectric do mocking, isn't it just UI testing? Feb 03 17:13:35 i need mocking Feb 03 17:13:42 robolectric is just mocking Feb 03 17:14:04 pfn: choosing between learning the deprecated way and the **experimental** way was not easy lol but I guess if I'm making something new might save myself the pain of porting it in a couple of months Feb 03 17:15:01 ugh, fucking appcompat, if an attribute exists in the minSdkVersion level, use it, don't use the local-app name attribute... Feb 03 17:17:33 Espresso is used for UI testing isn't it? Feb 03 17:17:44 I'm trying to familiarise myself with useful libaries for Android dev Feb 03 17:19:28 Robolectric.setupActivity(MyActivity.class) - so it is for mocking, but mocking android components? Feb 03 17:19:35 In the Fragment lifecycle, http://developer.android.com/guide/components/fragments.html how is it that onAttach is before onActivityCreated? Wouldn't onAttach(Context) always be passed a null? Feb 03 17:19:38 I'm really just trying to write unit tests here, not Android tests Feb 03 17:20:25 in practice it is not which is confusing Feb 03 17:21:07 g1bbs, look at this for a full overview of lol-cycle https://github.com/xxv/android-lifecycle Feb 03 17:22:11 g1bbs, onActivityCreated is run after activity.onCreate Feb 03 17:22:22 g1bbs, the Activity instance exists prior to this Feb 03 17:23:03 and it may not run at all, depending on how you add your fragments Feb 03 17:24:28 pfn: Oh does it only receive that callback with statically defined fragments? I suppose that would make sense since dynamic frags are added only when the Activity is already in resumed state Feb 03 17:24:46 g1bbs, pretty much Feb 03 17:25:00 g1bbs, or when restoring state after activity recreation, e.g. rotation Feb 03 17:25:16 pfn: What library would you recommend for unit testing? Feb 03 17:25:25 markyosullivan, I don't unit test Feb 03 17:25:31 I only integration test at most Feb 03 17:25:37 so espresso Feb 03 17:25:47 pfn: Any reason why you don't unit test? Feb 03 17:25:53 my code doesn't fail on a unit level Feb 03 17:26:34 ugh dat lifecycle tho Feb 03 17:26:39 pfn: I thought you had unit tests to help prevent the app failing on a unit level? Feb 03 17:26:54 yeah, but my code doesn't fail on a unit level, so it doesn't help Feb 03 17:27:00 I've never implemented unit tests but it seems that most android dev positions require yout o have knowledge of unit testing :( Feb 03 17:27:06 where can I download an mobile android template for accessing a mysql database? im trying to write an app for a dating website Feb 03 17:27:10 markyosullivan: Just use Junit4 and Mockito Feb 03 17:27:35 have knowledge of testing, yes, do it? nope Feb 03 17:27:38 g1bbs: What about robolectric? Feb 03 17:28:02 does androidTestCompile include testCompile dependencies? Feb 03 17:28:03 markyosullivan: I don't use it. But I also go to great lengths to sepearate my Android view logic from my pure java business logic Feb 03 17:28:15 explodes, that's generally the point of it, so yes Feb 03 17:28:15 Can someone give be links for custom android buttons Feb 03 17:28:24 Since I've never implemented unit testing in my apps I don't have any knowledge in unit testing really, so I was thinking unit testing in my current project might be a good idea Feb 03 17:28:29 pfn THANK YOU Feb 03 17:28:45 ZANGETSU_HDK, https://support.google.com/websearch/answer/134479?hl=en Feb 03 17:28:57 markyosullivan: There's a good chance that for decent unit testing coverage you'd have to rethink how you have architected your app Feb 03 17:28:58 g1bbs: do you use MVP? Feb 03 17:29:03 markyosullivan: yes Feb 03 17:29:16 Hi, I have a problem: I just installed Android Studio, I simply clicked on SDK Manager, SDK Tools and installed the tools package, but they don't seem to appear on disk (not in /Applications/Android Studio.app, nor as ~/android-sdk-*). I'd gladly add them to PATH, but I need them to be found somewhere on disk. Where should I look? (my only previous Android experience is without an IDE) Feb 03 17:29:35 g1bbs: Makes sense then :) There's another one similar to MVP but I can't remember what it's called Feb 03 17:29:40 markyosullivan: IMO integration tests using frameworks like Robo* shouldn't be needed and is a symptom of coupled code Feb 03 17:30:21 matju: What OS are you using? Feb 03 17:30:38 * Zharf just doesn't do tests Feb 03 17:30:40 danijoo:That much I know I want to know any user here in this channel has made some opensource button design .If yes can you share your design Feb 03 17:30:42 markyosullivan: OSX 10.11.3 Feb 03 17:31:08 markyosullivan: with Android Studio 1.5.1 Feb 03 17:31:24 g1bbs: So if I was going to implement unit tests I wouldn't need 3rd party libraries Feb 03 17:31:40 markyosullivan: Well Mockito is nice but technically no, you wouldn't Feb 03 17:32:18 markyosullivan: now Android Studio integrates nicely with testing so you can use Junit4 and maybe some Espresso tests if you really want to do some end to end stuff Feb 03 17:32:36 matju, what does `echo $ANDORID_HOME` give you? Feb 03 17:33:08 markyosullivan: check out the unit tests done in this project (showcasing MVP) https://github.com/saulmm/Material-Movies Feb 03 17:34:30 danijoo: I have nothing android-related in env, nor in ~/.bash_profile, ~/.bashrc ... do I have to logout and login ? but in which startup file should it appear ? Feb 03 17:36:34 g1bbs: Any time I look at example Unit tests, they seem like a bit of a waste of time. Though I've heard from others that TDD is the best approach for building software. Feb 03 17:36:55 TDD is an approach, not the best Feb 03 17:37:32 pfn: A lot of places seem to prefer that approach judging from the job specs Feb 03 17:37:42 markyosullivan: I have trouble doing TDD. It seems super tedious. Unit tests are useful not so much to check for problems NOW but for when you want to refactor and not break shit Feb 03 17:37:47 matju, open the sdk manager. it shows you the path to your sdk directory Feb 03 17:37:58 http://prntscr.com/9ykty0 Feb 03 17:37:59 a lot? I haven't worked in a single shop where TDD has been the preferred approach Feb 03 17:38:18 for dynamic crap like ruby and python, testing is a bit more essential Feb 03 17:39:10 unit tests build confidence in the individual pieces of your code. This reduces the possible points of failure when you are debugging a problem Feb 03 17:41:09 Is there a way to run both androidTests and tests in one swoop? Feb 03 17:41:15 either with the AS ui or gradle? Feb 03 17:41:59 danijoo: duh, got it. It's ~/Library/Android/sdk ... I just added it as ANDROID_HOME and added tools in PATH and it seems to work now. Thanks. Feb 03 17:44:37 Ashiren: FYI that app you've sent me, I kind of made it work lol.. well, it installs but when it opens java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information Feb 03 17:44:45 whatever "a fatal developer error" is Feb 03 17:44:46 pfn: I searched earlier today for android dev positions in the UK, a few of them mentioned TDD and nearly all unit tests Feb 03 17:52:21 hi, another problem : when trying to start the emulator (API 22 with Google APIs, on x86 OSX), I get "emulator: VCPU shutdown request" in the log every 2 or 3 seconds, along with a dump of cpu registers. The virtual screen remains all black. What is happening ? Feb 03 17:52:51 (with emulator64-x86) Feb 03 17:53:30 works for me Feb 03 17:53:41 maybe you dont have driver ? Feb 03 17:53:58 anyway Feb 03 17:54:01 good night! Feb 03 17:54:03 matju, does your mac support virtualization? Feb 03 17:54:10 some older models dont Feb 03 17:54:12 what do you guys think of this simplistic widget http://imgur.com/a/XyEBv Feb 03 17:54:42 whatitis, is this RAM? Feb 03 17:54:47 yeah Feb 03 17:55:12 I dont think total used ram is a useful indicator on a phone :p Feb 03 17:55:30 because apps will always stick arround until ram is nearly full Feb 03 17:55:43 what about the design? Feb 03 17:55:56 too colorful for me. Feb 03 17:56:20 cool, the circular widget is cpu, it's seperate Feb 03 17:56:24 if that matters haha Feb 03 17:56:50 danijoo: I don't know. "About this Mac" only says "Processeur 2,26 GHz Intel Core 2 Duo" and "MacBook Pro (13 pouces, mi-2009)". Is there a command I can run in terminal for that? Feb 03 17:57:01 honest critique: get rid of the two borders, they are distracting and add no additional information Feb 03 17:57:21 cpu is a bit small to be readable for much of anything more than a vauge idea of what is goin on Feb 03 17:57:41 whatitis: The box containing everything is too big imo focus on the numbers which are the important parts Feb 03 17:57:49 it's an overlay/seperate app, i do need to set the font sp though Feb 03 17:58:16 Has anything replaced fragments yet or are they still alive? Feb 03 17:58:21 the bigness is just a giant visual of the smaller widget that is ontop of apps Feb 03 18:02:42 whatitis, I quite like the widget :p Feb 03 18:02:51 whatitis, Just make more contrast in the center text Feb 03 18:03:05 Try putting 1px gray shadow or something Feb 03 18:04:16 maybe change the color of the top text Feb 03 18:04:46 black text is better recognizeable on light green Feb 03 18:04:52 Yeah, try making the percents less transparent Feb 03 18:05:00 or darker gray Feb 03 18:05:34 @android:color/material_dark_background might work or something like that Feb 03 18:05:50 (or material_background_dark idk I can't remember :P) Feb 03 18:07:02 for a huge list with options to sort it (by name, by date ...), how would you name the sort menu entries? Feb 03 18:07:22 Everytime ¨Sort by ....¨ or just the keyword ¨name¨, ¨date¨ ? Feb 03 18:07:31 Thanks OverCoder. which colors are you suggesting to change? Feb 03 18:07:59 Just the %? if so yeah been tussling with those Feb 03 18:08:05 danijoo, Can you explaina bit more? Feb 03 18:08:27 right now it's just a alpha'd white on the large view, and change it for small widget to dark top, light bottom Feb 03 18:08:30 whatitis, the percents need to be improved, and the center text, FREE/USED/TOTAL RAM Feb 03 18:08:45 cool, thanks Feb 03 18:09:33 OverCoder, http://prntscr.com/9ylabb Feb 03 18:09:54 I wonder whats better from a design point of view Feb 03 18:10:01 Sort by for every entry or just a keyword Feb 03 18:10:20 its a popup if you press the sort button in the toolbar Feb 03 18:10:29 whatitis, you can easily see how the FREE green text on blue does quite great contrast and easy to read, however, blue on blue needs some focusing Feb 03 18:10:38 Purple is inbetween Feb 03 18:11:13 danijoo, Just hold on my connection is super slow the image is still loading :p Feb 03 18:11:19 oh :D Feb 03 18:12:55 danijoo, ah, hm, /me thinks Feb 03 18:12:59 Overcoder, good insight, that makes sense after relooking with that Feb 03 18:14:38 danijoo, I am not quite sure what's considered the best solution but I think that you should only make them like 'Popularity', no need for By nor Sort by Feb 03 18:14:59 danijoo, Just use the standard action bar filter icon and people won't be confused Feb 03 18:15:08 Yeah I think so too Feb 03 18:15:18 It's silly to repeat words, material design is meant to be as simple as possible Feb 03 18:16:32 whatitis, I am interested in your widget, I like it :p Feb 03 18:16:46 whatitis, is it a part of a bigger program or your app is just meant to be a widget? Feb 03 18:16:58 Because if the latter, once you get it done, send me the APK :p Feb 03 18:18:55 Um, can the onClickListener of a dialog's button be null? Feb 03 18:18:56 is there any way to assign keyboard shortcut that would toggle visibility of (1) gradle console and (2) lolcat ? Feb 03 18:19:11 (in AS of course) Feb 03 18:19:23 lolcat? >.> Feb 03 18:19:30 anyclue what would break on `adb reverse` on a device? it was working fine a couple days ago but now it's not. Not sure anything changed maybe some apps updated. Feb 03 18:19:33 alt-8 is how I toggle logcat Feb 03 18:19:41 just set a keystroke to the android toolwindow Feb 03 18:19:45 same for gradle Feb 03 18:20:16 smacko, I think you had better ask in #android-root Feb 03 18:20:24 ahh sorry Feb 03 18:20:48 pure app coding discussions here? Feb 03 18:21:02 As far as I know, yes Feb 03 18:21:11 pfn OK, command-6 worked for me, presumably because that window's button says "6: Android Monitor". Gradle console doesn't have a number in its button, can I assign one ? Feb 03 18:21:31 Well not strictly /only coding/ questions, but just anything related to application development Feb 03 18:21:41 out of curosity how do you all get your app to talk to development servers? Feb 03 18:21:41 OverCoder thanks, i'm branching out seperate widget from larger code i've created. cpu/memory/disk usage/network are the main 4 i'm trying to do Feb 03 18:23:43 smacko, development servers? explain a bit more Feb 03 18:23:50 pfn found it, thanks Feb 03 18:24:26 You mean like making an app to connect to a server and do stuff with it? Feb 03 18:24:28 ok I have a django install on my laptop, running on port 8000, I've been using adb reverse to point to my localhost:8000 so I can mess with the server responses to the app Feb 03 18:24:44 * OverCoder thinks Feb 03 18:24:50 what's the normal way of initalizing the inner class values? via constructor or during declaration? Feb 03 18:24:57 Hi, please where can I find a tutorial to use a github project alongside my Android Studio project? Feb 03 18:24:58 * g00s tried assigning cmd-6 to both, but that didn't work. oh well Feb 03 18:25:05 like a library project or something Feb 03 18:25:09 falcom, that's ##java, but constructor Feb 03 18:25:31 OverCoder: true. and thanks! Feb 03 18:25:31 I always use libs as gradle dependencies however this time I need to make changes to the code Feb 03 18:26:53 I guess it's uncommon for app devs to run local installs of an api server? Feb 03 18:27:23 smacko, you can forward a port from the android emulator to your local machines http port Feb 03 18:27:35 JFlash if you're changing the lib, you should fork, and make your fork a dependency Feb 03 18:28:00 danijoo, I've been doing that just fine. Just all of the sudden I can't do it with my phone. Feb 03 18:28:17 I've not had a lot of love with the emulators they've been a bit fickle Feb 03 18:28:30 I have a cheap private server where I host testprojects though Feb 03 18:28:40 and stuff like teamspeak and git Feb 03 18:28:41 of course I'm 2-3 weeks into android dev'n it so it could be me Feb 03 18:29:16 smacko, ok but how to do that? to make it a dependency in Android Studio? Feb 03 18:29:25 I only ever used a single project at a time Feb 03 18:29:36 any tutorials? Feb 03 18:29:50 oh you're trying to add the lib to the IDE Feb 03 18:30:38 JFlash: not sure, but you might google around for adding a 2nd repo to IntelliJ Feb 03 18:30:48 you'll probably have better luck with that. Feb 03 18:31:12 Could anyone help me, I have a problem regarding Spanable text in android. Feb 03 18:31:56 what if I just use it as dependency with gradle and extend the class and override a couple of methods Feb 03 18:32:00 is this even possible? Feb 03 18:32:17 ishaan1995, That's not helpful Feb 03 18:34:54 i want to combine text highlighting with indentation using cursor manipulation Feb 03 18:37:16 JFlash: I'm not really sure, sorry. Feb 03 18:40:41 i never figured this out either - in the structure view, is there any way for it to sort based on how it appears in the file ? it seems to organize stuff by some other criteria Feb 03 18:40:51 i have no buttons highlighted in the toolbar for srting Feb 03 18:41:06 *sorting (by visibility, etc) Feb 03 18:41:08 you used to be able to select a couple different ways. Feb 03 18:41:18 order it appears, alphabetical Feb 03 18:41:27 yeah i want order it appears Feb 03 18:41:39 according to the docs, if you don't specify an order, that should be the default Feb 03 18:41:45 but its not for me anyhow Feb 03 18:42:39 the only sort buttons I see are : visibility and alphabetically - i have both unselected Feb 03 18:43:05 From a sample of N=1 files, deselecting both works for me. Feb 03 18:43:55 weird Feb 03 18:44:31 Well, not quite as far as to not group methods and fields in two separate buckets, if that's what you mean. Feb 03 18:45:26 fizzie yeah thats what i mean Feb 03 18:45:41 And extending to N=2 files, also putting inner classes before methods. Feb 03 18:45:53 Okay guys um, I did EditText et = new EditText(this), and then added it to my AlertDialog Feb 03 18:46:27 The thing is that EditText looks as wide as the dialog, which is ugly, I tried adding layout params but meh, and the EditText isn't the new material one, it's the old Holo one Feb 03 18:46:29 How can I fix it? Feb 03 18:50:26 Yeah, it doesn't quite seem to be able to do "don't implicitly sort by kind (class/interface, method, field)". A shame. Feb 03 18:51:57 (As a not-at-all-the-same-thing, though, you can do a Folding/Collapse All for the actual file to get a kinda-sorta overview.) Feb 03 18:52:17 Fixed it, I had to use AppCompatEditText Feb 03 19:02:53 why would intellij have 'hide hide tool windows' but not 'hide bottom tool windows' Feb 03 19:03:01 hide side Feb 03 19:03:16 this is one area i think eclipse did much better Feb 03 19:04:37 and 'restore default layout' doesn't restore how multiple tool windows were arranged / divided in that space Feb 03 19:04:50 just assumes 50/50 split Feb 03 19:10:26 How can I programmatically set a spinner to some value? Feb 03 19:10:45 Like say I have a spinner and it has 'a', 'b', and 'c', how can I programmatically switch from any value to 'c' Feb 03 19:11:16 you set it to position 2 Feb 03 19:11:28 Ah, okay thanks Feb 03 19:11:48 g00s, I agree Feb 03 19:12:13 danijoo, hm, how do I :P Feb 03 19:12:28 I actually don't know the actual item position, it /should/ be the last one Feb 03 19:12:58 It's like me doing .add to the ArrayAdapter, and I want to Spinner to reflect the changes and makes it as the selected item Feb 03 19:12:58 the last one would be adapter.getCount() Feb 03 19:13:08 ah, hm Feb 03 19:13:36 but in general you need to know which position equals which item Feb 03 19:15:04 Well it's actually the one I have just .add ed, so I think I can assume it's the last one Feb 03 19:17:49 Okay one more question :p Feb 03 19:18:43 Does the constructor of the IntentService only gets called once? I mean I want to send my service couple of intents, so does it get called everytime or only once upon the service creation? Feb 03 19:20:00 just test it x) Feb 03 19:20:31 if the intents are unique it should not cache the instance i guess Feb 03 19:21:24 hm Feb 03 19:21:49 OverCoder: it stops itself after the work on it's queue so I suspect it would be recreated if the intents were sent far enough apart Feb 03 19:22:07 but nothing like callback prints to find out for sure Feb 03 19:22:10 hm Feb 03 19:24:26 was pretty good http://techcrunch.com/2016/02/03/app-fatigue/ Feb 03 19:25:34 y'all use leakcanary? Feb 03 19:29:39 g00s: interesting. I certainly agree with the concept of app fatigue Feb 03 19:29:56 g00s: Everyone knows what happens when you clone something too many times :P Feb 03 19:30:13 Are there any Google employees here? What's the best way to report a very fast growing app in the Play Store which contains malware so that it gets checked asap? Feb 03 19:30:47 isn't there a report app link in the play store? Feb 03 19:31:14 yes there is Feb 03 19:31:25 Yes, but it's quite slow. I reported the app a week ago and it is still up Feb 03 19:31:31 via that avenue Feb 03 19:31:52 there are no employees here Feb 03 19:34:01 amiarn0 the algorithm didn't detect your signal worthy enough Feb 03 19:34:05 all the employees have left Feb 03 19:34:40 probably a threshold of some sorts, where a bunch of people have to flag it Feb 03 19:37:30 Is there any easy way to implement a navigation drawer without using support libraries? Feb 03 19:37:40 android.support.v4.widget.DrawerLayout Feb 03 19:37:59 I was wondering if I'm just targeting 5.0+ that I wont have to use support libraries Feb 03 19:39:06 no Feb 03 19:39:23 you should still use the support libraries, so you have consistent behavior among all versions Feb 03 19:41:01 s73v3r: There's no reason to use the support libraries if I'm only targeting 5.0+ Feb 03 19:41:16 sorry, I meant the min SDK is 5.0 Feb 03 19:41:30 markyosullivan, wrong Feb 03 19:41:56 you just mentioned one. NavigationDrawer :) Feb 03 19:42:35 What you mean? Feb 03 19:42:52 The navigation drawer requires support libraries in order to be implemented Feb 03 19:42:56 you need support libs because various classes arent part of the main framework Feb 03 19:42:58 yes Feb 03 19:43:25 ViewPager is another example which is only in support libs Feb 03 19:43:31 markyousullivan: Yes, there is. More editions will come out after 5 Feb 03 19:43:47 That's why I was asking if there was an alternative which didn't use the support libraries and was built specifically for a later version Feb 03 19:44:17 it’s the same reason why it’s suggested you use Support Fragments instead of regular fragments, even though they’ve been in Android since 4.0: Behaviors change Feb 03 19:44:18 Usually the later versions I've found to be easier integrated with applications for 5.0_ Feb 03 19:44:21 *5.0+ Feb 03 19:44:56 But if you're using 5.0, behavior wouldn't change if it was built specifically for 5.0+ Feb 03 19:45:06 yes it will Feb 03 19:45:13 In later Android versions? Feb 03 19:45:16 yes Feb 03 19:45:25 Can you guarantee it will change? Feb 03 19:45:27 and if you’re using support libraries, you get that behavior. Feb 03 19:45:39 that’s a dumb question and you know it Feb 03 19:46:27 markyosullivan, the question is, can YOU guarantee it will not change? Feb 03 19:46:27 Yeah but new components can be created to replace older components in newer versions Feb 03 19:46:50 Like when Material design replaced holo design Feb 03 19:46:56 new components Feb 03 19:47:00 The guidance is to use Support stuff to protect from change in later versions. If you don’t want to, no body here is going to force you Feb 03 19:47:10 So then support libraries were added to support pre material devices Feb 03 19:47:27 support libraries were created to support pre-holo devices Feb 03 19:47:50 That's what I said? Or am I wrong? Feb 03 19:48:23 either use them or don’t. but stop trying to argue about them Feb 03 19:48:48 and in your case, you have to use them, as the navigation drawer is in there Feb 03 19:49:12 The thing is... Theres no reason to not use them Feb 03 19:49:14 always use support libs Feb 03 19:49:15 period Feb 03 19:49:15 But many to do Feb 03 19:50:06 the only reason you don't use support libs is when you're writing android framework Feb 03 19:50:12 or feel like rewriting stuff yourself Feb 03 19:52:52 do I need google-services.json for gcm Feb 03 19:55:30 ah it's for the google-services gradle plugin Feb 03 19:57:54 and should I create a staging gcm account? Feb 03 19:57:58 it sounds like a hassle Feb 03 20:09:34 missingno: just kind of working through this myself. I recall somwhere you can specify the json file per build type or flavor Feb 03 20:09:45 Error: Activity class {com.baako-app.oos/com.baako.oos.MainActivity} does not exist. why does i get that error and how can i solve it please Feb 03 20:10:21 yeah with the alpha plugin Feb 03 20:10:26 where is the source of the plugin Feb 03 20:10:44 missingno: no clue :-) Feb 03 20:11:25 new to all of this myself, still trying to figure out java idioms/packaging + android so not sure where the sources are for packages. Feb 03 20:11:39 https://android.googlesource.com/platform/prebuilts/gradle-plugin/+/android-6.0.1_r16/com/google/gms/google-services/1.5.0/ Feb 03 20:11:53 well that's a repo or something, but there's a source jar Feb 03 20:13:05 please help Feb 03 20:15:37 it’s cause your MainActivity doesn’t exist Feb 03 20:16:05 you need to go into your Manifest and check that the Activities you list there actually exist in your app, and that the package names are correct Feb 03 20:23:27 is it good practice to have all broadcast receivers in one class, or register/deregister as needed? Feb 03 20:27:08 i think each broadcast receiver should be separate class Feb 03 20:27:17 whether you want them in manifest or runtime depends on use-case Feb 03 20:36:36 Thanks for getting back to me regarding the support libraries, looks like I could reduce the min SDK then Feb 03 20:46:58 there's no reason to reduce minsdk Feb 03 20:47:11 using NotificationCompat.Builder and a RemoteView to make a custom notification makes the background for it black instead of white like every other notification. Anyway to correct this aside from setting the bg color manually in the notifications custom layout? Feb 03 20:47:14 using the support lib doesn't mean you should reduce min sdk Feb 03 20:50:10 I have a syncadapter running periodically. How can I use that to keep my local sql db in sync with a remote one? Feb 03 20:50:42 will I require a webservice inbetween or is there a framework for direct access? Feb 03 20:51:17 Ashiren, thanks Feb 03 20:51:29 philwantsfish, you want a web service Feb 03 20:52:02 philwantsfish: i don't think you'd want sqlite running on a backend Feb 03 20:52:39 pfn: sorry I meant increase it, like make it available for more Android devices Feb 03 20:52:56 dragorn: smacko: thats quite possible. Im only a little familiar with android dev. Can you expand on your answer? Feb 03 20:53:06 unless you're a pro and need those devices, do not set a lower minsdk version Feb 03 20:53:24 smacko, the backend runs ms sql server Feb 03 20:53:36 pfn: So don't set a min below 5.0? Feb 03 20:53:54 markyosullivan, it's a good start until you need to increase your userbase Feb 03 20:54:47 philwantsfish: I'm just saying that you should post data to your server via json/xml/yml or whatever you fancy Feb 03 20:54:52 Thanks for the advice :) Going to try and be on here more often in the future Feb 03 20:56:19 Hey there. I’m trying to get notifications to work on my app, but I’m getting errors ‘E/NetworkScheduler.SchedulerReceiver: Invalid parameter app’ and ‘/NetworkScheduler.SchedulerReceiver: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?’ Feb 03 20:56:25 philwantsfish, android apps are not very good at connection state, etc, plus you don't want to expose direct database interfaces unless you can avoid it. Generally the best way to handle db interfaces is to expose a simple rest interface to them which can be handled by fairly standard libraries on android Feb 03 20:56:42 As far as I know, I’m calling all of my code right Feb 03 20:57:40 dragorn: out of curosity, is the isOnline() method not reliable? Feb 03 20:57:54 dragorn: smacko: thanks for the answers. Feb 03 20:58:13 smacko, i imagine it is, but generally you want to do as stateless a query as possible since you don't want to force the radios to stay on to keep socket open Feb 03 20:58:35 smacko, i suppose you could do a db conenct, query, disconnect, but hte idea of exposing sql server to the internet gives me hives ;P Feb 03 20:58:51 and remember your db login creds would be exposed in the app on peoples devices Feb 03 20:58:54 Here’s my code for my intent: https://gist.github.com/JamEngulfer/6f00953e7f84a1553f92 Feb 03 20:58:57 oh i'd never to a direct db connect Feb 03 20:59:06 s/to/do Feb 03 21:01:32 dragorn: i'm just checking isOnline() before making any restcalls Feb 03 21:04:16 maybe that's bad? Feb 03 21:06:28 i dont know any more, i hav updated my app name and when i sync it with gradle and build it again it still have the other app name when i run the build on my android but when i run the build on the emluator it has the recent build any ideas why this is please Feb 03 21:07:07 clean Feb 03 21:10:07 ircBaako: if all else fails, uninstall the app. No way you are running the old one then :) Feb 03 21:11:21 philwantsfish, i have uninstall it plug my phone run the build again but still the old version Feb 03 21:15:30 smacko, no reason not to. You can also just fire one off and catch the exceptions Feb 03 21:15:40 smacko, but if you want to tell the user you KNOW it's going to fail Feb 03 21:15:45 makes sense Feb 03 21:16:36 how do I make AS download dependency sources consistently Feb 03 21:16:39 idea { module { downloadJavadoc = true downloadSources = true } is default Feb 03 21:16:49 actualy downloadJavadoc is false by default Feb 03 21:20:38 hi there! I have a imageview (+ a textview and more...) inside a layout but I want to expand that image view on that layout to the all root layout on click event Feb 03 21:20:42 programatically Feb 03 21:20:43 well I found a thing on SO http://stackoverflow.com/questions/17426628/how-to-make-android-studio-download-dependencies-sources-and-javadoc Feb 03 21:20:47 can you help me? Feb 03 21:20:48 not sure if it works Feb 03 21:21:18 are you going to animate it pycas Feb 03 21:21:34 missingno, it would be a plus Feb 03 21:21:59 I'm trying to statically test my billing code and the billing service is not returning sku details for the `android.test.purchased` product id. The documentation doesn't mention that getSkuDetails fails for test product ids, so I'm wondering if this is a documentation issue or a bug... Feb 03 21:22:02 missingno, I need some info / tutorial Feb 03 21:22:03 Does anyone have experience with this? Feb 03 21:22:24 ah I needed to delete my gradle cache to get it to redownload the sources Feb 03 21:23:41 but it still does not populate the iml properly :< Feb 03 21:23:47 guess I'll manually edit it for now Feb 03 21:28:57 OkHttp is giving me a NetworkOnMainException when I close a stream: http://pastebin.com/jEQbRmua Feb 03 21:29:15 I searched through all the github issues and couldn't find a solution, yet Feb 03 21:29:15 dont use it on main :) Feb 03 21:29:20 uhhh Feb 03 21:29:33 danijoo: THANK YOU Feb 03 21:31:26 Does anyone here know where to report issues with the in-app billing v3 api?... Feb 03 21:31:37 the google code issue page is now deprecated Feb 03 21:32:55 I wonder how this app works as well as it does Feb 03 21:33:00 its a goddamn mess! Feb 03 21:33:18 nobody knows about onActivityResult Feb 03 21:33:57 so they make a new instance, then kill the previous instance (earlier in the activity stack) Feb 03 21:35:15 Hello, any particular reason for findViewById returning null? Feb 03 21:35:45 Twirl, wrong id Feb 03 21:36:12 you're referencing R.id.? Feb 03 21:36:27 i'm suprised it wouldn't throw a compile error Feb 03 21:36:40 no that's not the problem Feb 03 21:37:06 Any reason I’d be getting a “MismatchSenderId” when I try and send a notification? Feb 03 21:37:20 I’m using the Node.js module node-gcm to send my requests Feb 03 21:38:01 RustySha1kleford, it doesnt show a compile error if its a valid view id. but not part of the inflated layout Feb 03 21:38:08 ie from the wrong layout file Feb 03 21:40:19 man why should I even use google-services.json when I can use resource files Feb 03 21:40:22 I keep getting "No adapter attached; skipping layout" instead of passing the query to my method Feb 03 21:41:27 attach an adapter :) Feb 03 21:41:56 it's not even executing the SearchActivity class Feb 03 21:42:31 do i have to pass something to it from MainActivity? Feb 03 21:44:41 This is very annoying Feb 03 21:45:05 It’s not clear on whether I’m supposed to use my API key or my Sender ID when pushing notifications from my server Feb 03 21:45:20 If I use the API key, I get "error":"MismatchSenderId" Feb 03 21:45:27 But if I use the Sender ID I just get a 401 Feb 03 21:45:46 you create a new one Feb 03 21:46:06 you need a server api key and a app api key Feb 03 21:47:12 Ok, I’m in the Create Android API Key bit Feb 03 21:47:48 It’s asking for the SHA-1 fingerprint Feb 03 21:48:20 It just says “Use the following command to get the fingerprint”, but it doesn’t say where to run it Feb 03 21:48:29 Can someone who has any experience with the in-app billing api v3 chime in on wtf is going on here? http://pastebin.com/zMX3ipTM Feb 03 21:48:54 additionally, does anyone know where you report issues for the api now? the google code page is deprecated now Feb 03 21:49:07 they redirect to stack overflow for questions, but they dont offer a replacement issue tracker Feb 03 21:49:21 Pyuruku, https://code.google.com/p/android/issues/list Feb 03 21:49:26 ther Feb 03 21:49:28 er Feb 03 21:49:31 arg. there Feb 03 21:49:33 the in-app billing api is not a part of AOSP Feb 03 21:50:48 the play store isnt too Feb 03 21:51:00 I guess they want issues for the api there?... Feb 03 21:51:07 but still play store issues are reported there Feb 03 21:51:17 did they specify that somewhere? or is that just the reality of the situation? :S Feb 03 21:51:34 the reality is google doesnt care :p Feb 03 21:51:45 and I think they want to swtch to another issue tracker soon Feb 03 21:51:52 iirc Feb 03 21:53:10 Napalm: Ok, I made an Android API key and added it to the client.apikey setting. Still getting MismatchSenderId Feb 03 21:53:55 JamEngulfer: when you created your key you didnt specify the correct senderid from the your play-store developer console Feb 03 21:53:56 Specifically the api_key setting in the google-services.json in my app folder Feb 03 21:54:21 I saw no options to input a sender id when I made both keys Feb 03 21:54:45 I'm just skipping out on the google-services.gson step Feb 03 21:55:23 they make this whole plugin to take care of the string resource renames between play-services versions, but then it doesn't support 8.4.0 Feb 03 21:55:56 When I make a key, literally the only option is ‘Name’ and ‘Various IPs to Whitelist' Feb 03 21:56:12 JamEngulfer: lets get this straight.. first you want to be able for your app to communicate with the GCM and then you want your site to connect to GCM Feb 03 21:56:26 What's the point of intent.getExtras when we can intent.getExtraString (or whatever type) ? Feb 03 21:56:29 ok Feb 03 21:56:50 OverCoder: getExtras gives you the Bundle.. getExtraString is just a shortcut Feb 03 21:57:01 OverCoder: you might want to pass the bundle on as-is Feb 03 21:57:15 ah, so almost no difference, gothca, thanks Feb 03 21:57:22 Napalm: So in the app I’ve used the code that Google suggests to get a token from GCM and then sent it to my server Feb 03 21:57:30 OverCoder, yeah its just a shortcut Feb 03 21:58:50 In my server, I collect said token and use it in a request to GCM to make a push notification Feb 03 21:59:04 your instanceid yes Feb 03 21:59:17 but thats your instanceid for this user/device/installation Feb 03 21:59:33 So I send the instanceID? Feb 03 21:59:37 Not the token? Feb 03 21:59:51 ugh its been awhile Feb 03 21:59:59 The token yes. :) Feb 03 22:00:02 they recently changed it to use instanceid i thought Feb 03 22:00:14 ignore that Feb 03 22:00:26 you use the instanceid to register with gcm on the device and it returns your token Feb 03 22:00:27 “Once you’ve received your registration token, make sure to send it to your server” Feb 03 22:00:43 Yeah, so I’ve literally copypasted Google’s code Feb 03 22:00:54 That never ends well. Feb 03 22:01:04 JamEngulfer: but did you set the senderid in your code Feb 03 22:01:32 senderid + whitelisted signing certificate on API console authenticates your app to GCM Feb 03 22:01:41 server API key authenticates your server which will demand pushes to GCM Feb 03 22:01:44 two separate things. Feb 03 22:02:20 https://gist.github.com/JamEngulfer/6f00953e7f84a1553f92 Feb 03 22:02:22 That’s my code Feb 03 22:02:41 welp, thats an issue filed https://code.google.com/p/android/issues/detail?id=200236&thanks=200236&ts=1454536883 Feb 03 22:02:42 JamEngulfer: you register your app in the play-store console https://play.google.com/apps/publish/ and under "Service & APIs" you'll see a way to link your sender-id Feb 03 22:02:55 hopefully I get a timely response... getting this code to work properly is pretty important :S Feb 03 22:03:33 So it needs to be on the Play store before I can send notifications? Feb 03 22:03:51 No, why? Feb 03 22:04:07 your sender id is your project on the developer console Feb 03 22:04:07 You’re directing me to the publish apps page Feb 03 22:04:09 Napalm, that's just for analytics. Feb 03 22:04:13 no its not Feb 03 22:04:20 Napalm, yep, analytics and testing. Feb 03 22:04:30 Mavrik: go look.. its states GCM Feb 03 22:04:41 Yes, that's GCM analytics and testing / debugging. Feb 03 22:04:48 Registration is done on the Google API console. Feb 03 22:04:51 Either way, I’ve registered my app in http://console.cloud.google.com/ Feb 03 22:04:53 Where they have all their API accesses. Feb 03 22:04:55 yes Feb 03 22:04:57 ^ Feb 03 22:05:28 Sooo Feb 03 22:05:35 What should I be putting as the senderid? Feb 03 22:05:41 The project id? Feb 03 22:05:43 JamEngulfer: Project Number Feb 03 22:05:44 yes Feb 03 22:05:47 Or the project number? Feb 03 22:05:52 JamEngulfer, the id of your project on Console.cloud.google.com Feb 03 22:05:53 in the Google Developers Console Feb 03 22:06:01 it's a number Feb 03 22:06:03 JamEngulfer, lemme verify Feb 03 22:06:06 no it isn't Feb 03 22:06:08 It’s a string Feb 03 22:06:11 (They changed naming like 6 months ago -_-) Feb 03 22:06:14 :| Feb 03 22:06:18 its a string of a number Feb 03 22:06:20 :P Feb 03 22:06:32 Project ID is the name of the project, but in lowercase Feb 03 22:06:41 Project number is a separate thing Feb 03 22:06:48 JamEngulfer: https://developers.google.com/cloud-messaging/gcm#senderid Feb 03 22:06:50 read Feb 03 22:07:00 states its "project number" Feb 03 22:07:15 yeah Feb 03 22:08:09 Now I’m just getting 401 errors Feb 03 22:08:25 JamEngulfer, where? Feb 03 22:08:30 On the device or on server? Feb 03 22:08:34 As a response from Google on the server Feb 03 22:08:38 Do you get GCM tokes assigned on the device? Feb 03 22:09:00 I get a long-ass token somewhere Feb 03 22:09:16 Something like that: e5KCmkU3zI4:APA91bHxWvWLrol0998bOjJLYz4saGCoQVzv2xcv7mZ7nzMrVtYQu4oGkzVFASuHuivfsxHGv5ogNZtGGCECGTx5l4SXBaZnkyAls50Ns_C-6_BzZGuQLjT9F1MMxofh09EQTe6iFtl_ Feb 03 22:09:19 yup Feb 03 22:09:28 thats your registration token Feb 03 22:09:36 Hi guys, is there a way to "press" the menu button on a device without a menu button? I tried holding the window button but it attempts to do split screen on my Samsung Galaxy. Feb 03 22:09:39 indeed Feb 03 22:09:58 JamEngulfer, then your device registration code is working and stop wasting time there. :P Feb 03 22:10:06 401 means that Google doesn't accept your server push Feb 03 22:10:12 meaning that your API key is probably fail Feb 03 22:10:14 But.. Feb 03 22:10:18 I know it’s working Feb 03 22:10:20 or you're not sending the server request properly. Feb 03 22:10:31 I’m fixing my server code here Feb 03 22:11:05 Yes Feb 03 22:11:23 The API key that I’m sending with the request is what is in question here Feb 03 22:11:54 Isn’t that what we’ve been discussing the whole time? Or have we been talking about different things accidentally Feb 03 22:12:09 Well, senderId has absolutely no connection to server-side :) Feb 03 22:12:25 There you just need a single API key you create under credentials on google API console Feb 03 22:12:34 :/ Feb 03 22:12:41 That is indeed what I’ve done Feb 03 22:12:49 "Server API key" and you get a random string that you put in header Feb 03 22:12:59 You also have to whitelist your IP Feb 03 22:13:09 Do you *have* to whitelist it? Feb 03 22:13:20 You have to whitelist something or you'll get 401 Feb 03 22:13:27 I think 0.0.0.0/0 means all IPs Feb 03 22:13:57 Not sure if it's /0 or /255 Feb 03 22:14:09 0 means no mask Feb 03 22:14:24 But I haven’t been getting 401s when I’ve used the API key that I’ve generated from Google Feb 03 22:14:33 and it goes up to /32, not /255 Feb 03 22:14:34 The one that looks like AIzaSyCId6r1nVjFdgG5evFYxzn8IQHz1QrLQD4 Feb 03 22:15:08 But obviously isn’t that, because I’m not pasting my API key into IRC Feb 03 22:16:17 *sigh* Came too late in conversation. Feb 03 22:16:20 What are you getting then? Feb 03 22:17:03 Hmm, that’s weird Feb 03 22:17:08 Still getting 401s now Feb 03 22:17:27 pfn, indeed Feb 03 22:17:41 since it's a bitmask Feb 03 22:20:18 Ok, so if I remove the Android API key from my google-whatever.json, I now get “MismatchSenderId” Feb 03 22:20:32 But if they Android Key is in the file, I get 401s Feb 03 22:21:22 what json? Feb 03 22:22:35 The google-services.json file Feb 03 22:22:51 That they tell you is complete and you should totally download this and forget about it Feb 03 22:24:11 what are the general tabbing rules for new-lining parameters for a function? Feb 03 22:24:42 JamEngulfer, it's been awhile since I did that, is that a file locally in the app or something on your server? Feb 03 22:24:51 It’s in the app Feb 03 22:24:58 Just a file in the app folder Feb 03 22:25:06 hmm Feb 03 22:25:16 The server API key certanly should never be inside the app Feb 03 22:25:17 falcom: I've seen two main ones: 1. two indents (usually eight spaces) 2. aligning with the start of the first parameter. Feb 03 22:25:26 that’s because it isn't Feb 03 22:25:27 Otherwise anyone can fake push messages for your app ;) Feb 03 22:25:31 It’s the ‘android’ key Feb 03 22:25:38 That apparently Google will make for you Feb 03 22:25:46 What Android key? Feb 03 22:25:57 The app has the project number (senderId) which which it authenticates. Feb 03 22:26:01 There’s an option to create an Android key in the cloud console Feb 03 22:26:03 TacticalJoke: Is there a reason for two tabs rather one? Feb 03 22:26:05 It’s literally called that Feb 03 22:26:05 I'm talking about function declarations though. For calls, I guess it could be either of the above *or* a normal indent. Feb 03 22:26:24 It was a shot in the dark to see if it would work Feb 03 22:26:27 It was in the Oracle Java guide for overflowing lines. Feb 03 22:26:50 *sigh* Feb 03 22:26:55 * g00s sighs Feb 03 22:27:21 Basically, neither the sender ID nor the API key make it work Feb 03 22:27:38 the sender id is an int Feb 03 22:27:40 Hmm, it might've changed since I last looked: http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-136091.html#248 Feb 03 22:27:50 the api key is encoded ascii of some sort Feb 03 22:28:00 wdfdflkfafasfakas Feb 03 22:28:05 JamEngulfer, yeah, I kinda lost you since I don't know what you're changing. Feb 03 22:28:12 I’m using https://www.npmjs.com/package/node-gcm btw Feb 03 22:28:24 i getting pissed off now. just to change a damn app name i have been here for over 3 hours Feb 03 22:28:27 oh you're trying to get the server t owork Feb 03 22:28:32 The Google guide also talks about two indents (four spaces, in this case): https://google.github.io/styleguide/javaguide.html#s4.5.2-line-wrapping-indent Feb 03 22:28:34 If you wanna go the json configuration way, project_number is the relevant thing. Feb 03 22:28:36 I’m changing the bit in their example marked YOUR_API_KEY_HERE Feb 03 22:28:46 Then they say it’s the sender ID, not the API key Feb 03 22:28:52 missingno, his server is working but it's rejecting his tokens with MismatchedSenderId Feb 03 22:28:55 what is wrong with gradle? i have tried everything on the web and yet the app name will not changed Feb 03 22:29:02 which means he's feeding his app with nonsense instead of proper project number :) Feb 03 22:29:12 or maybe he registered the wrong SHA1 signature Feb 03 22:29:14 hard to tell :/ Feb 03 22:29:14 ircBaako, show your manifest Feb 03 22:29:22 What SHA1 signature? Feb 03 22:30:52 JamEngulfer, under credentials on developers / api console Feb 03 22:30:55 You added a server key. Feb 03 22:30:57 yes Feb 03 22:31:00 And an Android API key. Feb 03 22:31:04 yes Feb 03 22:31:24 And when you added Android API key you had to register you application package name and SHA1 of the certificate it's signed with. Feb 03 22:31:31 I didn’t *have* to Feb 03 22:31:37 (Or multiple if you have debug/release certs as usual.) Feb 03 22:31:40 Anyway, what does the Android API key do anyway? Feb 03 22:32:27 Nothing much, the important part is that you tell Google which apps may register to that project by adding SHA1 signatures Feb 03 22:32:40 (They made the UI dumb for some reason.) Feb 03 22:32:52 So add your debug and release certificate SHA1 + package names there. Feb 03 22:33:29 danijoo: turns out they do care, I was told to contact google support, the tracker is only for AOSP Feb 03 22:33:45 good to know ;P Feb 03 22:34:19 danijoo, http://kopy.io/pr8AA Feb 03 22:34:28 Fair enough Feb 03 22:34:44 BTW, this app is never getting past the debug phase Feb 03 22:35:07 i followed this https://docs.google.com/document/d/1mFXsZRZc-23k1h1WjysMshJ1BnyNuYYGeK89Wn9oMO8/edit# but yet the name is still in the companies name Feb 03 22:35:11 ircBaako, line 7 android:label=¨@string/app_name¨ << thats the name of your app Feb 03 22:35:46 the name of my app is orderingonlinesystem Feb 03 22:35:57 not @string/app_name Feb 03 22:36:02 Why the hell can you not copy out of CMD Feb 03 22:36:06 where is the app_name been set? Feb 03 22:36:11 Windows has the most retarded command line ever Feb 03 22:36:13 @string/appname points to a string labled app_name in your strings.xml Feb 03 22:36:30 TacticalJoke read this blog by DHH on testing, thought it was pretty interesting http://david.heinemeierhansson.com/2014/test-induced-design-damage.html Feb 03 22:36:39 there must be an entry like your app name Feb 03 22:37:36 danijoo, okay i have changed that let me rebuild the project and see Feb 03 22:38:32 g00s: Thanks; I'll check it out. Feb 03 22:39:21 JamEngulfer: Sometimes you can copy by using the menu thingy in the top left corner. But you can’t use the regular mouse commands to do so Feb 03 22:39:34 TacticalJoke were you around yesterday when we were talking about organizing packages by module vs layer ? Feb 03 22:39:36 Mavrik: Ok, I did that Feb 03 22:39:47 Nah. Feb 03 22:39:52 I copied my Feb 03 22:39:54 TacticalJoke which do you prefer ? Feb 03 22:39:55 Oh wait Feb 03 22:40:03 I think I copied the wrong thing Feb 03 22:40:23 I like the package-by-feature approach (though I'm not currently using it). Feb 03 22:40:43 TacticalJoke why not, curious ... Feb 03 22:40:51 I think s73v3r said, on Reddit, that packaging by layer is useless because the "presenters" package will have FooPresenter, BarPresenter, etc. And I thought that was a great point. Feb 03 22:41:08 Mainly because I haven't gotten around to changing to it yet. :D Feb 03 22:41:14 oh s73v3r posted something on reddit,i missed it Feb 03 22:41:19 TacticalJoke lol Feb 03 22:41:26 g00s, go downvote! :P Feb 03 22:41:30 i’ve said it in here several times too Feb 03 22:41:31 Things I never want to do again: Manually copy SHA1 fingerprints Feb 03 22:41:42 It wasn't jackhexen; no need to downvote. :D Feb 03 22:41:44 Mavrik nah, i almost never downvote ;) Feb 03 22:41:54 lol poor jackhexen Feb 03 22:42:16 Mavrik: Ok, now I’m getting a mix of 401s AND MismatchIDs Feb 03 22:42:22 *MismatchSenderId Feb 03 22:43:10 Does your google-services.json contain proper projectid, project_number ? Feb 03 22:43:15 yep Feb 03 22:43:28 I used to be a jackhexen sympathiser, but I have become a critic. Feb 03 22:43:29 Well, Google disagrees :/ Feb 03 22:43:51 sympathiser? Feb 03 22:43:52 Well, google can go disagree with itself Feb 03 22:43:52 His dismissive comments about Kotlin pushed me over the edge. Feb 03 22:43:53 hello Feb 03 22:43:55 It generated that file Feb 03 22:43:59 Yeah, British Englishy 'sympathizer'. :D Feb 03 22:44:01 English* Feb 03 22:44:11 How well is flac (audio format) supported on android? Feb 03 22:44:20 stupid question does the application name and widget id in config.xml need to match the folder name in android/src/com/foodpal/uk ? Feb 03 22:44:32 I'd like to decode it to samples (not play it directly - here's a file, render it) - but mix it with something else, for example Feb 03 22:44:34 nononono, i didn’t mean it like that Feb 03 22:44:35 at the moment that name doesn't match that folder structure Feb 03 22:45:02 TacticalJoke i think he is a clojure fan; so when get familiar with that family of languages kotlin in like meh syntactic sugar Feb 03 22:45:13 ircBaako, nop. Feb 03 22:45:20 s73v3r: I used to gasp at his downvotes. Now I bask in them. Feb 03 22:45:27 lol Feb 03 22:45:28 g00s: Yeah, true. Feb 03 22:45:40 Mavrik, thanks Feb 03 22:46:08 danijoo, thanks it works Feb 03 22:50:36 Mavrik: Yeah, so everything in the file is correct, I’ve tried adding the Android key with the SHA1 fingerprint to the google-services.json file, I’ve tried both the API key and the Project Number as the Server’s key. Feb 03 22:50:41 Nothing seems to be working Feb 03 22:51:53 will startActivity always result in the activity taking focus? Feb 03 22:53:06 We start activity A with A.startActivityForResult(B, REQUEST_CODE) Feb 03 22:53:24 Mavrik, so how often do you use qicr in any case? or were you just trying it out? Feb 03 22:54:07 then in activity B, the user happens to change to another app, we call b.finish(). Feb 03 22:54:37 that gives me the desired behavior where activity A is not resumed until the user navigates back to the app Feb 03 22:55:38 RustySha1kleford: Wait, what? I'm confuzzled. Feb 03 22:56:02 yeah me too... just a sec Feb 03 22:56:40 so I'm reading about FLAG_ACTIVITY_CLEAR_TOP Feb 03 22:58:15 this would work great so long as calling startActivity() doesn't cause the app to steal focus Feb 03 23:02:00 yes, startActivity always takes focus, what are you trying to do... Feb 03 23:02:42 well the user will be logged out if he doesn't click anything in 10 mins Feb 03 23:03:13 trying to make it so that the app doesn't take focus Feb 03 23:04:23 the flow is something like LoginActivity -> MainActivity -> user logs out -> startActivity(LoginActivity); MainActivity.finish() Feb 03 23:13:19 welp 5:15. I give up for today Feb 03 23:13:42 RustySha1kleford: One solution is for MainActivity to start LoginActivity. Then, if they don't log in, LoginActivity finishes with RESULT_CANCEL and then MainActivity chooses to finish. Feb 03 23:13:58 s/L/LED/ Feb 03 23:14:12 I mean `s/EL/ELED`. Feb 03 23:15:38 TacticalJoke: eh I don't think thats an option Feb 03 23:15:54 Ok, yeah. This is the weirdest thing. I did Google’s test for a valid API key and it returned successful Feb 03 23:15:59 I see what you're saying, but I'm guessing that will lead to major code breakage Feb 03 23:16:13 But when I actually run my server and push notifications out, I get a 401 error Feb 03 23:16:38 I'm gonna make a small test project and see if Intent.FLAG_ACTIVITY_CLEAR_TOP does what I need Feb 03 23:16:52 otherwise, startActivityForResult is definitely the way to go Feb 03 23:18:05 RustySha1kleford: Is LoginActivity already in the back stack? If so, couldn't MainActivity just finish itself, thereby exposing LoginActivity? Feb 03 23:21:58 TacticalJoke: yeah. However, to do what we need, it needs a new intent Feb 03 23:22:34 hmm setIntent might be enough Feb 03 23:22:59 yeah LoginActivity is in the back. Some genius thought its a good idea to create a new one and kill the old instance Feb 03 23:23:43 If LoginActivity needs a result from MainActivity, it could just call startActivityForResult. Feb 03 23:24:21 looking like my best stategy, yeah Feb 03 23:25:55 it does what I need, but breaks some other parts of the app. I've gotta fix the lifecycle methods Feb 03 23:28:32 this is why I drink... Feb 03 23:30:11 Simplicity FTW. Feb 03 23:30:31 (I mean simple code, not simple alcohol consumption.) Feb 03 23:33:20 don't blame me, I didn't design this Feb 03 23:34:25 so you go through loginActivity and get to MainActivity. Now you have to go back and do something in LoginActivity? Feb 03 23:34:41 https://youtu.be/rbLZ1N_YbDM Feb 03 23:34:42 yay Feb 03 23:34:49 yep. Just to show a notification Feb 03 23:35:09 I made a little demo, the Intent flag I found doesn't help. Still steals focus Feb 03 23:35:45 startActivityForResult works great, but breaks stuff. Feb 03 23:36:14 does that thing have anything to do with Login? Feb 03 23:37:02 it just makes the lifecycle methods behave differently Feb 03 23:37:16 no Feb 03 23:37:30 I mean, its the app. Not the android system Feb 03 23:38:33 there are other flows besides my A -> B then logout Feb 03 23:38:44 recyclerview is surprisingly easy for trivial shits Feb 03 23:39:03 if the flow is A -> B -> C -> D, then on logout, D creates LoginActivity also Feb 03 23:39:33 just forget it. I'm rambling and you don't care :P Feb 03 23:44:18 yay, my new 5x arrived today Feb 03 23:44:40 i'm going to get either that or a 6p Feb 03 23:44:43 haven't decided Feb 03 23:44:47 I have a 6p also Feb 03 23:45:08 6p is nice Feb 03 23:45:24 might go to best buy tonight and look Feb 03 23:45:40 I would have liked the gold 6p Feb 03 23:46:32 I got my n5 and forgot to purchase an usb adapter for adb -_- Feb 03 23:46:53 n5x Feb 03 23:51:47 sucker :P Feb 03 23:51:55 I ordered a shitton of usb A->C cables Feb 03 23:52:12 I have 4 of the google ones, and 6 cambond Feb 03 23:52:40 I ordered 4 at amazon too Feb 03 23:52:43 didnt arrive yet :/ Feb 04 00:02:21 The 5x managed to get into a "disconnects every 7 seconds" USB mode on this desktop at home -- worked fine with all other machines, and so did all other USB devices with this one. (Turned out to be a Linux xhci USB driver issue.) Feb 04 00:11:43 Hi there, somebody know if an app could be rejected if it has a navigation drawer in the right instead of the left as the design guidelines mentioned? Feb 04 00:12:00 Hey, is there a simple way to make those cardviews where the whole footer is clickable? Feb 04 00:19:07 max_pe_, no. google doesnt care about your design Feb 04 00:19:36 is 0 a valid resource id? Feb 04 00:20:10 no Feb 04 00:20:28 0 is the absence of a resource like null in java Feb 04 00:20:45 ie getIdentifier will return 0 if no id matches Feb 04 00:21:02 hi danijoo, a developer mentioned that having the navigation drawer in the right would cause the rejection of our app, I googled about it and didn't found any information about it Feb 04 00:21:41 max_pe_, this is not iOS. in android theres only rejection if your app is violating the terms Feb 04 00:22:02 shitty design is alloed (unfortunately) Feb 04 00:22:20 lol, yes I see Feb 04 00:24:19 well, the developer has a point, the design guidelines indicates that the navigation drawer appears from the left side and most of the apps that I know has this option in the left Feb 04 00:24:22 danijoo: so is it valid to check id > 0 before setting it? Feb 04 00:24:50 grekkos, in what context? Feb 04 00:25:08 max_pe_, guidelines are to be broken ;) Feb 04 00:25:46 furthermore, the economist espress used to have its navigation drawer in the right, but in its last update it changed the hamburger icon for a setting icon, which is weird Feb 04 00:26:33 danijoo: you're probably gonna wanna shoot me but... the way this custom control works is that by default it shows the ink blot interaction when it's disabled, and the text color and drawable associated with the button appear the same (this I can't change right now) I wanted to add a method to pass in a disabled state to update color and drawable whenever it is disabled so that some instance of this button can also appear as if Feb 04 00:26:55 s/custom control/custom view Feb 04 00:27:38 so I'm wondering if I should default that to -1 or 0 Feb 04 00:27:48 because it may not be set Feb 04 00:27:54 ah. you want to check if the color or drawable resource id is valid? Feb 04 00:27:57 which I guess would mean to keep the original Feb 04 00:28:01 yeah Feb 04 00:28:08 it takes the resource id Feb 04 00:28:18 i guess 0 makes more sense now that I think about it Feb 04 00:28:20 well. yes. 0 is always a not valid resource Id Feb 04 00:28:26 cool beans Feb 04 00:28:28 thanks Feb 04 00:28:42 but its not a sufficent check because I could also pass 12345 which by chance isnt a valid id Feb 04 00:30:07 I think the only real way to check it is try { ... } catch (ResourceNotFoundException e) {...} :/ Feb 04 00:32:52 grekkos: you could just iterate over the fields in the R.colors class? Feb 04 00:33:06 Using reflection. Feb 04 00:33:10 i'd didnt check at all Feb 04 00:33:15 Then you'll know for sure. Feb 04 00:33:35 if someone passes an invalid id to your resource, screw them and let them deal with the exception Feb 04 00:33:45 to your method * Feb 04 00:34:15 I think theres also an annotation Feb 04 00:34:40 yes. there is. Feb 04 00:35:07 you can do something like public void setColor(@ColorRes int resId) { ... } Feb 04 00:35:22 that will give them an error if they try to pass bullshit Feb 04 00:36:10 see http://tools.android.com/tech-docs/support-annotations Feb 04 00:36:55 http://thenextweb.com/apps/2016/02/03/google-suddenly-removes-samsung-supported-ad-blocking-app-from-play-store/ Feb 04 00:38:16 g00s, this was expected Feb 04 00:38:28 justjanne: I'm not a huge fan of reflection Feb 04 00:39:00 g00s, I also wonder theres nothing in googles contracts with them hindering them to do something like that Feb 04 00:39:11 danijoo: it's not an invalid resource id necessarily, just that they may not have set it... it's a field on my view which is used elsewhere and I'm already using the annotations :) Feb 04 00:39:18 danijoo but from what i'm readng it was using the samsung API Feb 04 00:39:30 so it would block things in their browser ... Feb 04 00:39:34 danijoo: so in essence I just wanted to check if they've actually set it or not Feb 04 00:40:16 g00s, yeah but google could still add it to the contract allowing manufacturers to sell ther phones with google play. that they are not allowed to block ads Feb 04 00:40:24 dunno. something like that. im not a lawyer Feb 04 00:40:45 grekkos, the annotation should be enough imp Feb 04 00:40:48 imo Feb 04 00:41:25 grekkos, ah! now i get it. you store an int and need to check if that is initialized in first place ? Feb 04 00:41:37 by checking if its != 0 Feb 04 00:43:50 g00s, " We’ve reached out to Google a number of times for comment today, but haven’t heard back at the time of writing." Feb 04 00:43:56 did they really expect an answer? :D Feb 04 00:44:16 this is interesting too http://www.theverge.com/2016/2/3/10894200/android-smartphone-oem-profit Feb 04 00:46:00 danijoo: yeah that's it Feb 04 00:46:13 grekkos, then you are fine Feb 04 00:47:42 g00s, the smartphones as showcase is an interessting point of view. Never thought about that Feb 04 00:53:05 any idea where I could find both a nexus 5x and 6p on display? Feb 04 00:53:16 best buy doesn't have them, microcenter doesn't carry them Feb 04 00:53:23 in a shop :p Feb 04 00:54:05 RustySha1kleford, no where local currently Feb 04 00:54:12 bestbuy keeps pushing their in-store date back Feb 04 00:54:22 unless you're in NYC or something Feb 04 00:54:23 then B&H Feb 04 00:54:32 come to germany, you can see them both in every single media store Feb 04 00:54:33 I've seen a few 6Ps on the side of a bus here... Feb 04 00:55:39 can't even get the 5X or 6P through google express right now Feb 04 00:55:47 and the Ice has been out of stock forever Feb 04 00:56:19 hmm, I kinda overkilled it on buying usb A-C cables, I need a couple C-C now Feb 04 00:57:10 (longer ones, stupid ones that come with the phone are not long enough to charge and use comfortably) Feb 04 00:57:35 they are all still available here in europe Feb 04 00:57:44 beside the 6P in sand color Feb 04 01:00:07 "Gold" sounds better than "sand". Feb 04 01:00:36 Much like nothing's just black, it's "graphite" or "carbon". Feb 04 01:01:56 * pfn hates waiting for artifacts to show up on central Feb 04 01:03:09 "Gold Sand" is the local name for Ferrero Rocher, massively popular at this time of year... Feb 04 01:03:49 hey - good evening! Feb 04 01:04:49 I am making some settings activity for my application and managed to get the directory-chooser (some preference, that would allow me to have the user chose / create a folder for the cache) to work.. Feb 04 01:05:55 however: I would like to tie it to something like EditTextPreference in the xml and respond to the onClick-action / change the summary upon directory change.. but I do not need the EditText Dialog(Fragment).. any idea what to use instead? Feb 04 01:06:19 I pretty much just need a "clickable" label, that I could change upon result Feb 04 01:10:07 Aoi, I dont get what you want :/ Feb 04 01:10:38 hm.. you know the Preferences that you can have in a Settings Activity? Feb 04 01:10:55 yes Feb 04 01:11:30 I need one that would allow me to perform something when the user taps it (show the directory chooser) and let me change it once the user has changed the folder Feb 04 01:11:58 and? Feb 04 01:12:02 EditTextPreference shows an EditText.. but I would like to show something else in return.. and I got that other DialogFragment I need Feb 04 01:12:12 but not the uhm.. Preference in the menu itself Feb 04 01:12:41 you can put a Preference in xml that does nothing Feb 04 01:12:48 and then add a click listener to open your fragment Feb 04 01:12:50 whats the problem Feb 04 01:13:06 ahh... sorry D: it seems I have WAYS to go until I am smart enough.. still a newbie Feb 04 01:13:18 I thought the Preference is uhm.. abstract.. kinda Feb 04 01:13:31 ah. no you can just use it Feb 04 01:14:00 thanks! I thought I could only use *Preference, but not Preference itself.. did not think of looking whether it was abstract first.. thank you! It should solve my trouble Feb 04 01:14:35 hmm, recyclerview and cardview take up no space at all huh, I added them in an app update, and my apk grew by 0.04mb Feb 04 01:21:40 they’re just a couple layout files and a couple libraries Feb 04 01:22:29 interesting versioning scheme: x.y.z where x is major version, y is minor version, and z is age of software in seconds Feb 04 01:23:44 except z is fucking big Feb 04 01:39:37 so I'm trying to graph accelerometer data, but for some reason the data I am getting is capped at an arbitrary (and low) reading. this cap is at roughly 1/10th the cap that android actually reports for the sensor. furthermore "Accelerometer Analyzer" does manage to read out a wider range of acceleration values Feb 04 01:39:40 what am I doing wrong here/ Feb 04 01:39:41 ? Feb 04 01:59:10 I have some simple code like this that I want to test. https://gist.github.com/px-amaac/1e25cd8443f3e9da8aa5 All I am trying to do is pass the mocked EditTexts into this method and verify that the username and password are set correctly. It is failing because it also calls onLogin() that does some other stuff i need to test later.How do i test one method without testing the other? Or should that onLogin() Feb 04 01:59:11 call be somewhere else? Feb 04 02:13:45 when you do ctrl-F in your browser to search within page on d.android.com - is there a way to restrict it to the main content, and not the nav panes on the left ? Feb 04 02:20:53 g00s: searching in the reverse direction tends to help Feb 04 02:21:03 i.e. go up instead of down Feb 04 02:21:12 ah, thats one way Feb 04 02:21:42 maybe i should give Dash another try Feb 04 02:37:37 TIL: "[T]here is a 1/2 second timeout in the call to A.onPause() -- if the activity does not return from onPause() within 1/2 second, then the system will continue on to creating/showing activity B, so that the user does not have to wait." Feb 04 02:37:41 https://groups.google.com/forum/#!topic/android-developers/LvU1j1fbtLk Feb 04 02:38:07 Which seems to be undocumnted on d.a.c. Feb 04 02:38:14 undocumented* Feb 04 02:39:25 * g00s looking forward to the day i never see another activity or fragment Feb 04 02:39:40 relegated to the dustbin of crappy ideas Feb 04 02:40:32 Yep, it's all a convoluted mess. Feb 04 02:40:42 It could be so simple. Feb 04 02:41:35 TacticalJoke so apparently after two years ... Feb 04 02:41:47 https://code.google.com/p/android/issues/detail?id=40537 Feb 04 02:42:09 no wait, opened in 2012 Feb 04 02:42:14 holy shit Feb 04 02:42:30 comment #30 is like, oh we hope to fix this soon Feb 04 02:42:47 and #31 is like, bro don't bust my patch ... Feb 04 02:43:02 which actually has me worried, because you know the probably dont' have any regression testing Feb 04 02:43:31 I love the status. :D Feb 04 02:43:38 i love it " In the meantime, please be careful with the various workarounds mentioned above" Feb 04 02:43:44 in the mean time, like the last 4 years ? Feb 04 02:43:47 LOL Feb 04 02:43:54 It's not a real bug if it's not "Declined" or "WrongForum". Feb 04 02:50:31 I can't reproduce what hackbod said. I wonder whether that still applies. Feb 04 02:51:51 Even with `Thread.sleep(5000);` I get a huge delay before the next Activity.onCreate. Feb 04 02:53:08 Oh, I guess she's referring to other processes. Feb 04 02:55:04 Yeah, with an activity in another process it does seem to apply. **** ENDING LOGGING AT Thu Feb 04 02:59:59 2016