**** BEGIN LOGGING AT Thu May 26 02:59:58 2016 May 26 03:05:03 I have found this https://developer.android.com/reference/android/support/v4/widget/AutoScrollHelper.html May 26 03:05:13 Might help me with the auto scrolling functionality May 26 03:10:27 whatup whatup May 26 03:10:38 anyone go win7->win10 recently May 26 03:10:45 also is there a windows channel May 26 03:21:25 #windows May 26 03:24:34 mhm May 26 03:26:58 tacticaljoke would love this ... google starting testing patterns video May 26 03:37:09 anyone know what bug is in EzyMount on Lollipop? May 26 03:38:59 causes a strange sort of amnesia May 26 03:42:34 alphamule wrong channel May 26 03:43:42 oh was wondering if any else had it in their code May 26 03:43:46 sou May 26 03:44:05 nds like a os update issue May 26 03:44:49 things changed and now code fails epically May 26 03:45:05 ok afkk here then May 26 04:03:24 I seem to be having a problem maintaining selected elements in a recycleview May 26 04:05:17 once clicked the color changes and saves in a global hash, in my bind fnc i have a check to see if the values match up and if they do , they change color , however they don't change color wondering if anyone here has had a problem like this May 26 04:11:25 spid3rMin3: Code would make a lot more sense than your description May 26 04:13:20 because on bind isn't being called when your selection state changes May 26 04:13:37 http://pastebin.com/uYMPDaWX :D , this is in the onBindViewholder May 26 04:14:09 where should I place this code ? May 26 04:14:19 if not in the onBindViewHolder May 26 04:14:22 pastebind May 26 04:14:26 pastebin* May 26 04:14:49 http://pastebin.com/uYMPDaWX i did May 26 04:15:18 you need to notify item changed May 26 04:20:18 do not pm unless you're in a position to pay May 26 04:21:08 hahah XD May 26 04:21:16 you're serious too May 26 04:21:26 jheez haha, I get this error with the notify : java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling May 26 04:22:03 hm, Xiaomi made a drone May 26 04:22:22 notifyItemChanged(position) ; May 26 04:22:34 and yea I saw that May 26 04:28:18 CedricBeust did you watch the Android Fireside chat ? May 26 04:29:06 somebody asked them whether they dogfood their own build system, i can't remember the exact answer, but they said their big apps use 'an internal build system' without mentioning bazel directly May 26 04:30:18 i find that kinda surprising anyhow O.o May 26 04:31:04 No, I saw your discussions May 26 04:31:34 it was a worth while video to watch May 26 04:32:02 I'll podcast it May 26 05:11:36 ugh, too many things are enqueued on android ... May 26 05:12:13 when i close my right drawer panel, i clear the backstack to pop those fragments off ... May 26 05:12:43 i can wait until whenever, when I pull it back out there is the hint of the last fragment and suddenly it dissapears May 26 05:38:35 gradle 2.14 rc1 looks interesting May 26 05:38:51 " The Gradle build itself has seen a 50% reduction in configuration time. You'll see the biggest impact on multi-project builds and Android builds amongst others, but everyone will benefit to some degree. This is reason enough to upgrade." May 26 05:44:37 "the daemon to be much more robust and resource-efficient now because it monitors its memory usage." May 26 05:44:40 all good news May 26 05:48:13 g00s: if it monitors its memory usage, it must monitor the memory used by monitoring the memory usage and then must monitor the memory used by monitoring THAT memory usage and then... May 26 05:48:31 :) May 26 05:48:45 Who watches the watchers? May 26 05:48:59 * spudowiar unleashes a flock of g33s May 26 05:49:08 g00s, join the g33s May 26 06:19:31 i will have my dog jake watch over the daemon May 26 06:19:44 i will call him ... watchdog May 26 06:20:38 :) May 26 06:50:03 Guys anyone know how to setup NDK in intellij idea ultimate 2016? May 26 06:50:32 SHC: download Android Studio 2.2 May 26 06:50:36 and hope for the best May 26 06:51:22 I already had the ultimate ide, that I'm using for web development. I can build the android project just fine, and it runs on my phone too May 26 06:51:35 The only issue is that C sources do not have autocomplete May 26 07:10:34 https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Het_aanreiken_van_een_brief_in_een_voorhuis_Rijksmuseum_SK-C-147.jpeg/883px-Het_aanreiken_van_een_brief_in_een_voorhuis_Rijksmuseum_SK-C-147.jpeg May 26 07:10:45 is it android phone or iPhone? May 26 07:16:57 It kind of looks like an iphone 5 May 26 07:17:11 Also, that kid is super creepy May 26 07:25:41 how we add query params to okhttp ? May 26 07:27:01 You can use addQueryParameter() on your Builder May 26 07:28:02 cannot resolve method addQueryParameter May 26 07:28:14 Let me check May 26 07:28:25 im using okhttp 3.2.0 May 26 07:32:41 Are you using a Request Builder? May 26 07:33:29 yes May 26 07:34:40 Then you can create a FormBody, add your parameters and set it to your Request Builder using the post() method May 26 07:35:07 cool May 26 07:35:12 thanks a lot Saket :) May 26 07:35:25 Glad to help! May 26 07:35:28 :D May 26 07:38:54 heya, a question - i'm installing android sdk/ndk May 26 07:39:12 and i've decided on supporting kitkat and above May 26 07:39:26 do i still need to install tools for version > kitkat? May 26 07:39:51 i mean, if i build and publish against 4.4, it should work in principle on, say, 6.0? May 26 07:42:06 has anyone used AlarmManager.setExact? May 26 07:42:19 it says it will do stuff in the exact time but i see it being tweaked May 26 07:42:21 (basically, i'm trying to cut down fat on 80GB+ SDK installation) May 26 07:42:26 synthmeat: It has been awhile since I have done Android dev but I believe your manifest declares your API compatibilities May 26 07:42:27 synthmeat, I think it should work May 26 07:43:18 The API can change from say 2.3 to 4.0. May 26 07:44:02 i don't use absolutely anything besides push notifications May 26 07:44:40 You can go to the Android API doc page and pull up the javadoc for those calls and then select the version you are working with from the drop down to see if there is an API change or not May 26 07:45:31 Somebody correct me if I'm wrong, but I believe if there is an API version incompatibility then the app won't show up in Google Play for that platform (due to your compatibility declarations in your manifest) May 26 07:46:30 that sounds good. thanks! May 26 07:47:25 synthmeat: It has been a couple of years but I recall a compatibility library with some example code in the main source that checked the version of the device that was executing the app and the called the appropriate base class from there May 26 07:48:08 so check the autogenerated files if you come across any such issues but I think you'll be ok. Besides, you can always go into the adroid sdk manager and install any SDKs that you are lacking at a later time May 26 07:57:52 How can i change the error dialog color ? http://postimg.org/image/ervaebi0b/ May 26 07:58:10 am using If I use KeyChain to store credentials, and check KeyInfo.isInsideSecurityHardware(), are the user's credentials safe even when rooted? Are they safe anyway without the hardware check? May 26 08:45:41 rikkus, safe from what? May 26 08:58:44 What do you kotlin users use for DI? Dagger seems like a PITA to set up May 26 08:59:47 autrilla: applied kotlin and nothing changed? ;) May 26 09:00:22 gordon_: what do you mean? I like properties and lambdas! May 26 09:00:46 Mavrik: Other apps gaining access to the cleartext credentials May 26 09:01:03 autrilla: I was just being sarcastic about kotlin opinion here May 26 09:01:06 I stop now ;) May 26 09:01:25 autrilla, worked ok for me May 26 09:01:33 I doubt there's other things out there May 26 09:01:45 rikkus, as good as it gets I guess. May 26 09:01:48 autrilla, there is also kodein. May 26 09:01:49 Mavrik: well, googling returns a bunch of IoC containers for kotlin May 26 09:02:14 autrilla, https://github.com/SalomonBrys/Kodein May 26 09:02:32 that's the one that google returned :) May 26 09:02:40 hey i want to integrate credit card payment in my app can any one guide me in right direction. May 26 09:03:05 s9iper1, via google in-app billing? May 26 09:04:00 No, directly by entering card data May 26 09:04:09 danijoo_, May 26 09:04:15 s9iper1, this is against the ToS and will get you banned from the play store May 26 09:04:29 i actually dont know how its done. May 26 09:05:10 danijoo_: so you can't use stripe or other things with your app? May 26 09:05:20 danijoo_: also, have you actually tried kodein? It looks good May 26 09:05:21 so if i want to pay someone by credit card directly how can i do this ? May 26 09:05:38 how does it works ? danijoo_ May 26 09:05:50 autrilla, correct. google only allows payment over their iab api because they want their share. May 26 09:05:54 s9iper1, use stripe or paypal or any other payment providers. May 26 09:05:58 danijoo_, for buying IAP stuff. May 26 09:06:16 if you dont publish at google you can use any iab provider May 26 09:06:42 autrilla, yes i did use it once. Its nice if you have a pure kotlin project. But interop with java sucks May 26 09:06:43 I assume you can use stripe for monthly payments and other things, like, with the Amazon app you can pay through them no problem May 26 09:06:49 because of boilerplate May 26 09:07:02 danijoo_: it's all pure kotlin, yes. Would you recommend i tover dagger in that case? May 26 09:07:09 why is groovy lang such a bitch May 26 09:07:14 autrilla, thats because in amazon you buy physical goods. thats one exception in googles ToS May 26 09:07:18 gradle... why gradle; May 26 09:07:20 :'( May 26 09:07:26 but for in app products you cant use other payments May 26 09:07:46 danijoo_: wait... wasnt it argument for kotlin to choose it over scala like... java interop ? May 26 09:07:53 Napalm, http://blog.jetbrains.com/kotlin/2016/05/gradle-meets-kotlin/ :p May 26 09:08:37 gordon_, yes. I was talking about that specific library which is still fully interoperateable but requires some ugly boilerplate May 26 09:08:49 danijoo_: so for virtual goods like a subscription, you *have* to use Google? I'm not sure Amazon allows subscribing to Prime through their app. In my case I may want to add monthly payments, which I won't want to do through Google because I'll want to support other platforms too :( May 26 09:09:00 autrilla, correct May 26 09:09:23 if you want to support multiple platforms you have to build different flavors of your app for them May 26 09:09:40 danijoo_: multiple platforms like iOS, and a website May 26 09:10:01 then you need to offer different payment methods there than in google May 26 09:10:11 that's so bad May 26 09:10:32 isnt the same with apple ? May 26 09:10:38 yes May 26 09:10:39 or make people sign up through the website instead? :p May 26 09:11:11 Uhm n o. May 26 09:11:33 Netflix makes you do that, apparently May 26 09:11:54 Mavrik, apple allows you to use other payment methods? May 26 09:12:37 I'm not talking about Apple. May 26 09:12:47 Google does let you use other payment processors, yes. May 26 09:12:55 Please stop misinforming people :/ May 26 09:13:03 since when oO May 26 09:13:42 Since always. May 26 09:13:42 https://play.google.com/about/monetization.html#payments May 26 09:13:57 As I said before, you must use Play Store processing if you're selling the app or app related stuff. May 26 09:14:02 For services outside app you may use whatever. May 26 09:14:12 (Which is unlike Apple.) May 26 09:14:33 (Even though even Apple isn't killing off Uber :P ) May 26 09:14:39 thats what I meant with exceptions like physical products. sorry if i didnt make that clear enough May 26 09:14:41 So a subscription to your services (sort of what netflix does) is fine May 26 09:14:47 Yes. May 26 09:14:50 i was talking soley about in app products May 26 09:15:02 autrilla, I guess gray zone would be if your service would be only inside the Android app. May 26 09:15:14 But otherwise it's fine (e.g. Netflix, Amazon, etc. type deals) May 26 09:15:23 ie for virtual gold in a game you are forced to use in app billing by google. May 26 09:15:32 but you dont need it to purchase sth at amazon May 26 09:15:56 Mavrik: well, ideally I'd start with the Android app because that's what people use most, but I could add a website too to make the Google people happy May 26 09:16:22 I'm sort of scared about the stories I've heard of Google banning people May 26 09:29:45 what have I missed May 26 09:29:45 ? May 26 09:29:56 me? May 26 09:30:02 HAI danijoo_ May 26 09:30:06 hey :) May 26 09:30:24 what's news? May 26 09:30:48 havent watched any i/o talk yet :( May 26 09:30:54 I hate being busy May 26 09:31:16 danijoo_: you dont miss much :P May 26 09:31:17 oh myyyy May 26 09:31:22 I watched all of them May 26 09:31:29 and you should see the ADT one May 26 09:31:34 and maybe 2 others May 26 09:31:37 brb May 26 09:31:48 whats in android stidio one is nice May 26 09:32:11 redundant hyped bandwagons May 26 09:38:13 hi, anyone seen this error before when building a release signed apk May 26 09:38:15 ExternalSystemException: String index out of range: -116 May 26 09:38:28 not sure if its caused by this ca-app-pub-5142682372032361/4785938811 May 26 09:38:55 based on this stackoverflow May 26 09:38:55 http://stackoverflow.com/questions/32575778/android-externalsystemexception-string-index-out-of-range-130-building-relea May 26 09:39:08 we can set lintOptions somewhere May 26 09:39:21 where is lintOptions set in Android Studio ? May 26 09:39:30 in gradle ? which gradle ? May 26 09:39:53 gradle May 26 09:40:25 well you can do this from custom xml I think May 26 09:40:36 which gradle ? project or app ? May 26 09:40:40 shmooz: whatever I think, yes :D May 26 09:40:45 axilaris: app one May 26 09:40:50 thanks May 26 09:40:51 the same with android {} object May 26 09:41:18 well. adding this is not good way of resolving problem :D May 26 09:41:25 you're just ignoring May 26 09:41:58 doesnt work May 26 09:42:08 Back-end (JVM) Internal error: Couldn't inline method call 'arrayOf' May 26 09:42:11 interesting May 26 09:42:24 Gradle DSL method not found lintOptions() May 26 09:42:45 inside android { } object May 26 09:42:53 any idea whats this problem ? ExternalSystemException: String index out of range: -116 May 26 09:43:06 oh May 26 09:43:27 ok trying inside android () May 26 09:44:34 I have it so it must be working :) May 26 09:45:09 gordon_: u mean u have lintOptions in gradle ? May 26 09:45:17 yes, but different one May 26 09:45:41 ah abortOnError false May 26 09:46:04 ok May 26 09:46:25 no complaints on gradle, building the release apk process now May 26 09:46:54 i still dont get that error. even stackoverflow has random string issues May 26 09:46:59 not sure which one is causing it May 26 09:47:14 i can only suspect the string as i added that for admob May 26 09:47:26 but after i updated android studio 2.1.1 May 26 09:48:47 bah - Error:The number of method references in a .dex file cannot exceed 64K. May 26 09:48:55 this never happened before May 26 09:49:06 lol May 26 09:49:16 you must be new to android :P May 26 09:49:20 (use proguard) May 26 09:49:33 danijoo_: huh, when I add kodein I get that weird compilation error on my own code May 26 09:49:50 Just by adding the dependency. I'm not even using it yet. May 26 09:50:01 im sort of new. so whats proguard ? May 26 09:50:17 axilaris: a code obfuscator, dead code removal tool etc May 26 09:50:26 autrilla: it was working for me, when I wrote some small app May 26 09:50:39 gordon_: did you use arrayOf? May 26 09:50:51 yes May 26 09:50:56 huh May 26 09:51:05 but that was... May 26 09:51:08 beta4 ? :D May 26 09:51:35 minifyEnabled true May 26 09:51:44 yes May 26 09:51:59 but! you might have to upgrade progurad file May 26 09:52:14 soe dependencies requires it May 26 09:57:38 so? anything exciting in the dev woorld? May 26 10:11:15 Is there a meaningful difference between google's and square's dagger 2? May 26 10:12:08 latter doesnt use reflection May 26 10:12:21 and is more strict about types May 26 10:50:50 I'm allowing my EditText view to have 3 lines. But as the user types in text, it simply keeps on expanding beyond the width of the field. How do I set how long the text can be until it starts a new row. I can't find the right search word for this.. May 26 10:53:13 I think I know why dagger didn't work for me with kotlin, your application etc has to be in Java :( May 26 10:59:51 All Android Emulator Shortcut key sheets I can find state that Esc = Back button. May 26 11:00:15 But it doesn't work here; pressing Esc on my keyboard doesn't invoke a Back press action on my emulator. May 26 11:00:32 Can anyone confirm that this works? In the standard Android emulator? On Ubuntu? May 26 11:02:27 Bernzel_: there is a difference between max UI lines and actual max line May 26 11:05:25 thepoosh: yes I noticed that, I use this now: http://pastebin.com/BWZdvBH2 and that set's the max lenght of characters to input, but it doesn't create a new "line"/"row" when reaching it May 26 11:32:29 Seriously though: Does Escape act as Back in your default android emulator? May 26 12:02:54 https://www.youtube.com/watch?v=4L4fLrWDvAU < fail. they should be using https://developer.android.com/reference/android/graphics/Paint.html#LINEAR_TEXT_FLAG for the text resize transition May 26 12:25:38 Hey, I am working on an app that we started writing for Android 5 and now when I am compiling it for 6 I cannot compile because of anonymous fragmet classes. I'm not sure how I can get around this, the class accesses variables from the local context. May 26 12:29:26 HI May 26 12:29:55 i have written broadcast receiver for getting referral value when my app is install from play store May 26 12:30:07 but my receiver is not getting trigger at all.. May 26 12:30:08 technocf: your anaonymous fragment classes? May 26 12:30:15 technocf: thats never been possible May 26 12:30:24 Napalm: It compiled in the past... May 26 12:30:32 yes, and it will crash May 26 12:31:00 technocf: https://stackoverflow.com/questions/10450348/do-fragments-really-need-an-empty-constructor May 26 12:31:07 that should help you May 26 12:31:10 Napalm: *facepalm* I see a comment in the code thats supposed to call this method "//TODO: crashes when show camera is shown..." May 26 12:31:37 technocf: your probably not dealing with the new permission model May 26 12:32:05 Napalm: No, that comment was referring to it crashing because of the fragmet May 26 12:32:08 technocf: but you should fix those fragments or incur random crashes when your app goes into the background May 26 12:33:14 technocf: i follow what you said, I was saying camera.open and other camera APIs require the camera permission which is now given at runtime which you are not requesting for and theirfore crashing with a SecurityException May 26 12:33:15 :P May 26 12:33:36 Napalm: We don't get a camera security error May 26 12:33:47 then you will May 26 12:33:49 6.0 May 26 12:33:58 Napalm: We do get that permission, that error was not about that May 26 12:34:22 while tracking install using INSTALL_REFERRER broadcast receiver is not getting called. why its not getting called? May 26 12:34:24 ok so you've updated the app to the new permission model of making requests May 26 12:34:26 Napalm: That was updated for 6 May 26 12:36:13 mahesh987654: pastebin your manifest tags for dealing with the receiver May 26 12:36:29 sure.. will send now May 26 12:38:16 http://pastebin.com/N07YwMZ9 May 26 12:41:41 http://pastebin.com/bhXPiS3a May 26 12:41:46 https://developers.google.com/android/reference/com/google/android/gms/analytics/CampaignTrackingReceiver May 26 12:42:05 its not exported May 26 12:42:22 i assume thats because the internal GMS code in the client does the broadcast to the package only May 26 12:42:29 probably part of the service com.google.android.gms.analytics.CampaignTrackingService May 26 12:42:35 i am not using google analytics. I just need custom receiver. May 26 12:42:44 No campaign found on com.android.vending.INSTALL_REFERRER \"referrer\" extra" May 26 12:42:47 looks like it May 26 12:42:51 the service looks for it May 26 12:45:24 without service also it should work. May 26 12:45:41 mahesh987654: I see yours is called InstallTracker.. are you trying to get the referrer without implementing GMS Analytics? May 26 12:46:43 mahesh987654: do you have an example of the play url you are testing with? May 26 12:47:23 You might want to use this https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-url-builder May 26 12:48:54 mahesh987654: maybe read that page in general.. looks like its got the best source of data on the topic May 26 12:49:28 v May 26 12:49:34 https://play.google.com/store/apps/details?id=co.xyz&referrer=5745acfefda7761d7000007c May 26 12:49:34 vv May 26 12:50:34 looks fine to me May 26 12:50:57 are you just dumping that in the url, or do you have a page that hosts a link? May 26 12:51:34 i have page that hosts the link May 26 12:51:35 that could cause a difference in how the play store processes the request May 26 12:51:44 local or online? May 26 12:51:49 online May 26 12:51:57 https or http? May 26 12:52:37 mahesh987654 May 26 12:52:54 you are linking to a https page.. you might get some cross domain issues May 26 12:53:04 well "cross scheme" if you will May 26 12:53:16 httop May 26 12:53:20 http May 26 12:54:04 mahesh987654: I would recommend you try linking to the http://play.... version and/or use chrome's network inspector panel to see exactly what was going on in the requests May 26 12:54:47 mahesh987654: i suspect if the http referrer header is not being transmitted to play by the browser for security reasons then its not being detected as a true referral May 26 12:55:18 mahesh987654: a lot of sites do this so that people can bookmark/favorite a site with query parameters and not have it cause the same effect May 26 12:55:25 for testing when i will click on link , it will open playstore with app and then i am installing app from local not from playstore. can it cause any issue? May 26 12:55:58 yes May 26 12:56:02 it wont work May 26 12:56:03 lol May 26 12:56:21 you have to install it from the play store May 26 12:56:24 thats the point May 26 12:58:15 am broadcast -a com.android.vending.INSTALL_REFERRER --es referrer "test_referrer_from_xyz" . when i am testing using this command its working May 26 12:58:45 but for live apks its not working. now how to test? May 26 12:59:29 i have tried for playstore also . its not working May 26 12:59:42 mahesh987654: hold up May 26 12:59:52 mahesh987654: first that am broadcast should be using your package name May 26 13:00:17 mahesh987654: second you app must be uninstalled from the device.. and then installed from the playstore May 26 13:00:32 i am doing that May 26 13:00:35 mahesh987654: there is a command i will find you which tells you which app installed yours May 26 13:00:44 mahesh987654: that will need to be com.android.vending May 26 13:01:28 yes May 26 13:02:00 mahesh987654: well i found "pm set-installer" not the getter May 26 13:02:17 mahesh987654: so you could try setting it yourself if you want.. it might help May 26 13:02:21 doubtful May 26 13:03:20 mahesh987654: found it, its "pm list packages -i " May 26 13:03:21 how to test weather if its working for an apk if that apk is not on playstore? May 26 13:03:47 mahesh987654: i just said, use "am broadcast" but with your package name May 26 13:03:57 in my case while running commands i am getting referrer values May 26 13:04:42 and if installed from the play-store you will get them May 26 13:05:08 ok...i will try with package name . i have tried without package name and i was getting the referrer values. May 26 13:19:02 Napalm: when i tried with package name in terminal "am broadcast -a com.android.vending.INSTALL_REFERRER -n "co.xyz/.InstallTracker" --es referrer "XXX"" May 26 13:19:13 receiver is not getting called May 26 13:19:31 well thats specifing the component not the package May 26 13:21:08 co.xyz is package name and InstallTracker is receiver class name May 26 13:27:09 Napalm: so what should be the exact cmd? May 26 13:29:04 am broadcast -a com.android.vending.INSTALL_REFERRER --es referrer "XXX" co.xyz May 26 13:29:07 i believe May 26 13:29:37 ok.. let me try May 26 13:29:56 anyone know how to go back to stock on a nexus 5 without losing /sdcard ? May 26 13:31:05 BytesAndCoffee: I would backup your data anyway. but you could try just reflashing the /system and /boot partitions May 26 13:31:29 Napalm: with a factory image's contents? May 26 13:31:35 yes May 26 13:31:50 BytesAndCoffee: check the scripts in the offical download package .zip for the firmware.. you'll notice they call fastboot May 26 13:32:13 BytesAndCoffee: if you relocked your bootloader.. you have to wipe your data partition as a security measure May 26 13:33:13 https://goo.gl/photos/XbAVkjWCpMgptqz77 May 26 13:34:10 Napalm: with package name m not getting in referral value.. but in terminal m getting success May 26 13:34:39 mahesh987654: not following what you mean May 26 13:35:04 do you just mean without the package name it works.. and with the package name it doesnt May 26 13:35:52 means when i am running command , its broadcasting intent but receiver is not getting called. but without package name receiver is getting called May 26 13:38:43 Napalm : without package name its working . i am getting referral value but same thing is not working for live apk. May 26 13:40:03 thats because the play-store is broadcasting it with the package because the broadcast is directed to your app only May 26 13:41:03 i know your right.. but whats the issue not able to find out May 26 13:41:27 but cant find out why its not working with package name? May 26 13:42:47 mahesh987654: are you sure you have the correct package name? May 26 13:42:58 your build script might be altering it May 26 13:44:13 mahesh987654: download and run the jar from https://github.com/google/android-classyshark May 26 13:44:37 mahesh987654: open your apk in it and look at the AndroidManifest.xml file.. whats the package May 26 13:45:13 https://github.com/google/android-classyshark/releases May 26 13:58:31 aapt d badging May 26 14:00:50 Hello everyone, I want to find out if anyone knows any site where I can work remotely under the supervision of a senior developer. I am new to Android Development and I will like to work to gain more experience. If anyone has a project, I don’t mind working with him/her remotely May 26 14:08:12 :) May 26 14:10:47 your_mirror: I am serious May 26 14:10:59 your_mirror: Do you have a project? May 26 14:12:09 spykins, no. I'm not sure that it's possible May 26 14:12:46 your_mirror: really, to work as an android remote developer? May 26 14:13:38 I mean to fiand a senior developer and work on project because it's too risky to give you work on a project... May 26 14:15:07 You could try to find an open source Android project on GitHub and work on that May 26 14:15:39 or try to work on your first simple project May 26 14:16:11 ^ That's probably the best way to start if you are new May 26 14:17:13 I think you are going to have a hard time finding a senior developer for supervision unless you are prepared to pay handsomely May 26 14:17:48 Yeah, usually finding an open source project isn't the best first move just because of the complexity if you're a complete newbie, but if you've got a little experience, finding an open source project which seems friendly (check their github bugs/discussions) and starting to submit feature patches is a plausible route May 26 14:17:56 Just beware there may be negative feedback May 26 14:18:13 as far as finding a professional position doing that, it's difficult to be both remote and new May 26 14:35:26 pduin: Thanks, I have two applications in google play store currenctly May 26 14:36:14 why don't you just get employed ? May 26 14:36:47 quelqun_dautre: Actually, I have a job. I completed my two Applications during training May 26 14:37:14 so, you want to work on an Android app under supervision, while doing another job ? May 26 14:37:26 Right now, I am looking for a client to work with… I am currently on the bench, so I just want to find out if there is someone I can work it for the main time May 26 14:37:40 To gain experience and learn more May 26 14:37:45 flashing a factory image from google will do a full restore, like it just came out of the box, no worries about what version/rom i was on before? May 26 14:37:52 well, you're looking for a job then May 26 14:38:13 yes, something to keep me busy May 26 14:38:14 quelqun_dautre: https://play.google.com/store/search?q=akinsanmi%20waleola May 26 14:38:53 That’s the Application I built during training, I am currently playing with a news Application but I need something to drive me May 26 14:39:50 quelqun_dautre: I hope you understand what I am trying to achieve… I just want to keep learning by doing.. So if I have someone that has a project.. he/she can assign a story for me to work on May 26 14:40:27 my code will get reviewed, I will learn till my company finds a job for me May 26 14:41:33 quelqun_dautre: Do you understand what I need? May 26 14:41:58 yes, to change your company :D May 26 14:42:08 no way……..lol May 26 14:42:10 How do you guys down scale drawables automatically to support multiple devices? May 26 14:42:25 I tried the Asset Studio Generator but it changes the color of my drawables. May 26 14:43:12 quelqun_dautre: I am actually gonna work for free on any project right now May 26 14:43:28 You have two choices, I guess: 1. Change jobs, get a position where you will have direct supervision and feedback. 2. Stay at your current job, participate in open source projects. Option 2 does kind of lack in the supervision and feedback department though. May 26 14:43:34 When my company gets client… The least we charge is $3000 / month May 26 14:44:49 Ranguro: I have you tried placing them in different drawable directory? May 26 14:45:14 Option 3 is doing projects on your own. And with option 3 its pretty hard to get supervision. May 26 14:45:20 spykins: I'm trying to generate the drawables for smaller devices. May 26 14:45:28 I haven't generated them May 26 14:45:48 oh ok May 26 14:45:58 spykins: I was asking if there's a way to generate the smaller drawables for smaller devices May 26 14:46:16 Ranguro: What kind of image.. is it like an asset image or just a UIImage May 26 14:47:33 spykins: It's a logo that will go in the ActionBar. May 26 14:47:53 i think you may have to generate the image to the size and place dem in different ensity folder May 26 14:48:02 mdpi, hdpi, xhdpi May 26 14:48:23 spykins: So there is no automatic generator. May 26 14:48:24 Android should pick the one that suite the device May 26 14:48:47 Ranguro: I will be glad to know when you find one May 26 14:49:21 spykins: Asset studio works fine but it changes the color. May 26 14:50:41 Oh May 26 14:50:49 I figured it out how to eliminate the color changes May 26 14:50:57 awesome May 26 14:51:07 Have you ever use this tool? spykins May 26 14:51:12 quelqun_dautre: Are you there/. May 26 14:51:21 Ranguro: No, I am just a new bee May 26 14:51:45 Looking for projects to work on with senior developers to gain more experience May 26 14:51:59 and learn May 26 14:52:15 ugh May 26 14:52:20 second thoughts May 26 14:52:30 im about to flash a 6.0.1 factory image May 26 14:52:42 but muh data May 26 14:53:18 For okhttp do I always need to explicitly close? Is it just best practice to close in a finally block? JakeWharton ? May 26 15:04:49 so reboot to bootloader and run flash-all.bat? May 26 15:20:18 Could someone help me out with this xml error? http://pastebin.ubuntu.com/16708263/ May 26 15:27:01 hey all in the APK manifest.json which one is the app version: "version": "0.7", "version_name": "1.0.6", May 26 15:28:00 Thanks Napalm for the opportunity to want to pair program with me…. Will be looking forward to learning alot from you May 26 15:28:19 spykins, doing androd class? May 26 15:28:33 I am not completely new May 26 15:28:49 Just want to get busy on a real life project before i get engaged May 26 15:29:02 nice May 26 15:29:10 django_: yes… awesome May 26 15:29:11 you think i can join in :D May 26 15:29:30 haahaa… You have to ask the boss.. Napalm May 26 15:30:51 django_: For class, we can schedule one… Have you used zoom.us before? May 26 15:32:22 we can talk about data structure and algorithms in java May 26 15:32:38 Hello, I'm looking to use this library: https://github.com/anjlab/android-inapp-billing-v3 for my iap implementation. But I need some guidance, since purchases can happen on different activities in my app, I would gladly like to have some sort of global class to use among my different activities, is that possible somehow? Or would I need to create an instance of this library in every activity? May 26 15:32:40 I really want to learn that since I am not from a CS background May 26 15:42:16 spykins: I'm back. You asked ? May 26 15:42:52 spykins: I suggest the CLRS book for algorithms May 26 15:42:58 spykins: also, ##cs and ##algorithms May 26 15:43:45 get a book May 26 15:43:46 quelqun_dautre: CLRS is the best May 26 15:44:34 it's discutable, as always, but I've never seen anyone decent (like, not a troll) that didn't think highly of it May 26 15:44:52 just go to the nearest Uni, read the beginning, and see if you like it May 26 15:45:02 But CLRS is not for beginners like me quelqun_dautre May 26 15:45:05 some math background is advised May 26 15:45:11 I am reading data structure and algorithm in java michael t goodrich May 26 15:45:29 dasgupta's algorithms book is accessible and free May 26 15:45:48 It’s a pretty decent book May 26 15:46:11 pfn: data structure and algorithm in java michael t goodrich is the one I have seen so far that makes sense May 26 15:55:14 <_xor> Newbie question, but here it is: I'm using an IntentService for background network calls/listening. The app opens a socket & listens for commands from the server and performs some action accordingly. If I put this in the IntentService, will it keep listening on the open socket or will it terminate and release the object? May 26 15:55:26 <_xor> (Sorry if that doesn't make sense, my wording is probably a bit off. Haven't slept much lol.) May 26 15:55:43 For okhttp do I always need to explicitly close? Is it just best practice to close in a finally block? May 26 15:56:23 <_xor> What I'm getting at is when I first call startService, and the IntentService initializes itself & opens the socket, will it immediately terminate or will it stay in the background? May 26 15:57:46 spykins, have not May 26 15:58:53 spykins, https://www.coursera.org/course/algs4partI May 26 15:59:29 maybe look into some graph theory: https://en.wikipedia.org/wiki/Graph_traversal May 26 15:59:42 is that course really that good May 26 16:01:12 https://www.youtube.com/watch?v=2P-yW7LQr08&list=PLUl4u3cNGP6317WaSNfmCvGym2ucw3oGp May 26 16:01:38 django_: You need lots of maths though May 26 16:01:45 no you dont May 26 16:02:02 im not gona convne you lol if you want to do it May 26 16:02:46 *********** Everyone I am sorry for turning android channel into an algorithm channel.. Please forgive me everyone… ****** django_ If you want to discuss algorithm you can send me a pm or we meet in #algorithm May 26 16:03:18 django_: This channel is for android-dev… Please pardon me guyz May 26 16:05:04 <_xor> Is that hunter2? May 26 16:39:50 For okhttp do I always need to explicitly close? Is it just best practice to close in a finally block? May 26 16:41:31 I have not used okhttp but I think it’s a good idea to close network connections May 26 16:41:59 same way it’s recommended to flush and close inputstream May 26 16:42:27 I don’t know if okhttp automatically close the connection for you though May 26 16:42:35 o7 May 26 16:43:52 It seems like calling string() on the response closes it, but all of the chatter I've seen about it was fairly old, therefore just wondering if anyone could give me a canonical answer. I couldn't find it in the okhttp wiki/recipe guide. May 26 16:46:31 what r u using okhttp for btw May 26 17:01:26 does anyone know of any good relatively short readings on designing a good sdk/library? May 26 17:08:39 not sure May 26 17:09:06 https://kev.inburke.com/kevin/client-library-design/ May 26 17:27:27 guys quick question: if im building a library and want the users of the library to be able to add it via gradle, but i want to restrict access to who can get it, what should i be looking at? May 26 17:27:34 mavencentral? May 26 17:27:37 jcenter? May 26 17:27:44 trying to figure out what to google May 26 17:29:16 host your own repo May 26 17:29:22 private maven repository May 26 17:33:34 pfn: cool thanks May 26 17:34:13 bintray has private options May 26 17:36:28 jitpack vs bintray? May 26 17:41:23 is there an alternative to broadcasts for a more secure approach to access a receiver? May 26 17:42:01 are there any forums to provide feedback / ideas on Material design to google designers ? May 26 17:42:39 https://www.reddit.com/r/materialdesign May 26 17:42:58 not sure how many actually goog designers are there though, if thats what ur asking May 26 17:43:02 i'm looking again at this bottom navigation spec; its OK - doesn't go beyond what iOS has done. But windows phone took this idea further, in that the bottom nav is more like a bottom sheet that can expand & show more then 3 - 5 options May 26 17:43:26 so its a bottom nav bar that can pop up and reveal the rest of the things May 26 17:43:42 you wouldn't need to put overflow stuff in the typical left nav drawer May 26 17:44:50 if the goal is for thumb-ability, that keeps everything in thumb-able area May 26 17:53:07 hey all-- I have an activity backstack question... I have an activity which redirects to another activity based on some criteria. Once redirected, I want that redirect activity to be removed from the backstack, such that pressing back will take you to the initial activity. Like: A -> B -> C, where B is the redirect, and B is removed so that C goes back to A. I want to do this the right way, and not by hackishly overriding onBackPres May 26 17:53:07 sed May 26 17:53:40 I'm trying to write an app with Android Studio that has Google Maps integration. Every time I try to initialize it in an emulator, it tells me that the authentication failed and tells me to double-check my API key and the program hash (both of which are correct, according to Google Dev Console.) May 26 17:55:43 maps doesn’t work in the emulator May 26 17:56:02 s73v3r really? even with google apis version ? May 26 17:56:22 you might try it, but I don’t think it does May 26 17:56:35 g00s: "google apis version?" May 26 17:57:05 fraktor uh yeah ? May 26 17:57:12 when you create an emulator, you have the option of using the bare android image, or the image that has Google APIs added to it May 26 17:57:30 'Google APIs Intel x86 Atom 64 Image" May 26 17:57:49 Ah, I see. I'll try creating a new emulator to see if that will work properly. May 26 17:58:11 no way in hell it will work without that though :) May 26 17:58:12 so there is no actual secure encrypted way to send broadcasts in android? May 26 17:58:23 broadcasts? May 26 17:58:42 like, using a broadcastreceiver? May 26 17:58:45 Although it looks like I set the target to "Android 4.4 Google APIs", so I'm already doing that. May 26 17:58:47 harsukh if you have to securely send data client to client system broadcasts are the way to go May 26 17:59:19 but anyone can receive a system broadcast if they know the permission that the application uses May 26 17:59:49 or the action and categories as well May 26 17:59:54 depending on the intent filter May 26 18:00:01 you’re being paranoid May 26 18:00:17 i think you have to declare it in your receiver for it to be phone wide May 26 18:00:21 errr, manifest May 26 18:06:16 anyone know what the default value for `scaleType` is ? on an image view May 26 18:06:23 I can't for the life of me find this in the docs May 26 18:07:14 fitCenter May 26 18:07:23 thanks May 26 18:08:18 is that documented anywhere/ May 26 18:08:40 dunno, i found it in the code May 26 18:08:51 ie. http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/widget/ImageView.java#205 May 26 18:09:19 hah ok thanks May 26 18:09:56 i need to learn to use grepcode more often May 26 18:20:36 can you have modules each be seperate git repos in a android studio project May 26 18:21:55 that sounds like a huge headache with very little benefit May 26 18:23:09 orbyt_, you might want to look into git submodules May 26 18:25:02 also Artifactory and JitPack. there are lots of trade-offs to this approach, though. so definitely think deeply about what you seek to achieve. May 26 18:25:57 orbyt_: here's a good talk on the topic from Droidcon SF: https://www.youtube.com/watch?v=ld-ikhhv57s May 26 18:26:40 * danijoo_ hates jitpack May 26 18:27:37 danijoo_: why May 26 18:27:41 why's that? I don't use it for production code, but it's really nice when I happen to be building a lib and an app at the same time May 26 18:28:21 treelzebub, in this case you can use a local maven repo -> no need to push every time May 26 18:28:53 i dunno. I just dont like adding so many repositories to my project. Why people cant publish to repos everyone uses :/ May 26 18:29:11 if its not on jcenter/mavencentral, i tend to just not use it unless its really neccessary May 26 18:29:23 that's true. i just found jitpack to be more convenient than maven local, but i have used both May 26 18:31:00 git submodules sounds like a horrible nightmare to me. seems way too easy to forget a step and screw everything up. May 26 18:31:10 they’re pretty bad May 26 18:31:32 but I can’t think of a better way to do what orbyt_ wants to do. Although I’d have to ask if they actually need to do that May 26 18:32:34 not a need per se, will probably just make a seperate project. May 26 18:33:19 anyone use fts4 contentless tables in sqlite? May 26 18:43:02 so if i have a module in one project that i want to transfer into its own seperate project, do i just need to manually copy the files? May 26 18:45:02 So it looks like the connector on my phone is damaged so that I can't transfer data. Is there any way to sideload an app that I'm testing? I have a micro-SD card with an adapter and a card reader in my computer, if that's an option. May 26 18:45:43 any way of downloading the app to the device would work May 26 18:45:57 you coudl use the SD card, you could use one of any number of beta distribution services May 26 18:46:08 in fact, those might be better, because they usually will give you logs May 26 18:46:54 Is there a way to do it over WiFi connection? That way it could automatically transfer it to my phone after the gradle build is done. May 26 18:47:23 I’m sure you could script something up, but I don’t know of one offhand May 26 18:47:54 the closest I’d think would be, as a post build step, copying the APK to a Dropbox or Google Drive, and then going to the phone and opening that May 26 18:52:41 can u not create a project that is just a module? May 26 18:53:48 depending on your needs, the best solution could just be multiple modules within the same project... May 26 18:54:50 i have an sdk that depends on a small library. Currently that small library is a module in the sdk project. I want to take the small library out of the sdk project so i can host it via jitpack May 26 18:55:11 so i can just add it to my sdk via compile xxx May 26 18:55:44 so, you just want to create a library project. sounds like you don't need the complexity of git submodules. May 26 18:56:28 yea, it doesnt need to be a submodule of the sdk project. I didnt even write the small lib, its port of a c++ lib May 26 18:56:49 so can u make a project thats just a library? May 26 18:57:21 when I run it, it also says that the signature for my app is not valid. How can I go about fixing that? May 26 18:59:27 I remember seeing somewhere a very easy way (config change or library) to get more useful stack traces from errors thrown in an RxJava stream. Anyone able to point me in the right direction? May 26 19:00:23 orbyt_: yep! you just create a new project, then create a new module and select library in the wizard. there's lots of guides on the internets. May 26 19:00:59 treelzebub: how do you create a new project without an app module? May 26 19:01:05 it auto creates it without an option May 26 19:01:41 you can delete it, or use it for testing your lib. it doesn't hurt anything by being there. May 26 19:03:03 ok last question: if the module is in another project, is there a simple way to migrate it to its own project? May 26 19:05:18 uh, copy-paste? May 26 19:05:49 s73v3r http://qz.com/691849/the-future-of-software-depends-on-a-jurys-ability-to-understand-this-question/ May 26 19:06:05 treelzebub: cp what? the files in the actual directory? May 26 19:06:20 sure, why not? May 26 19:07:05 then how do you open it in as.... May 26 19:07:10 g00s: I imagine it’ll go down much like the last one did May 26 19:07:15 it doesnt get recognized as an andorid module May 26 19:07:17 android* May 26 19:10:14 i don't understand the problem. create your library project and module inside it, then copy-paste the code into that module. May 26 19:10:37 s73v3r what i like about this article, is it touches on the stakes at risk, and the ability of a jury to understand the technicalities May 26 19:10:52 towards the end of the article, these people couldn't even figure out how to open the files ... May 26 19:11:06 yet they are going to determine the fate of a whole industry May 26 19:11:08 treelzebub: I realize that intuitevely it should be straight foward, but this is what happens: http://prntscr.com/b8spj4 May 26 19:11:20 intuitively* May 26 19:12:07 looks fine to me... your code goes in src/main/java May 26 19:12:28 you said this is a port, right? it's not C++, right? May 26 19:13:09 "And as Vice’s Sarah Jeong has reported, Google keeps trying to explain APIs by comparing them to a filing cabinet with labels on it, and that explanation doesn’t seem to be connecting." May 26 19:13:25 so basically we're in day 3 of deliberations, and the jury still doesn't know what a fucking API is May 26 19:13:59 treelzebub: the dir structure is completely wrong, how does that look fine lol May 26 19:14:11 its the java port of BASS May 26 19:15:47 i dunno, dude. it sounds like you should follow a guide. keep in mind you're viewing the file structure under the "Android" profile. change to "Project" and see what it looks like. May 26 19:16:51 yes, it does not recognize it as and android project. thats the issue: http://prntscr.com/b8ssci May 26 19:17:46 hmm i think i know the fix 1 sec May 26 19:18:09 g00s: that’s not what that says at all May 26 19:18:10 okay, then maybe go through the flow again and make sure you select Android Library May 26 19:23:40 also, what exactly is the problem with just using the whole sdk that this is a part of? May 26 19:25:01 Does anyone here know how to prevent proguard from removing methods that are only used within `androidTest` from your main source code? May 26 19:25:44 I have tests that use a few utility functions that are not used in the actual app source, however they're not found at runtime which leads me to believe that proguard is wiping them out because it doesn't find the tests' use of the function May 26 19:27:46 alternatively, does anyone here know how to disable proguard for androidTest tests? May 26 19:28:06 I dont mind just running them on lollipop+, proguard is enabled in debug mode due to the dex method count limit May 26 19:29:20 Pyuruku: this looks like your issue: http://stackoverflow.com/questions/26482119/android-unit-tests-with-proguard-enabled May 26 19:30:20 in the text view of the resources, there are all kinds of qualifiers, +, @, ? and probably others. Where can I find what they mean ? May 26 19:31:40 treelzebub: I've seen that SO post, but trying to `-keep` the trouble classes doesn't work :| May 26 19:31:56 it doesnt seem like the proguard config for tests is applied to the debug apk May 26 19:32:05 kinch: + registers an ID that will be added to R.java during build. @ references a type of resource (eg. @string/ refers to a resource defined as [something]), and ? refers to a theme element, like ?colorPrimary May 26 19:32:49 Pyuruku: gotta reference your debug rules file in the debug {} block of your buildscript May 26 19:33:25 ok, thanks. May 26 19:41:42 s73v3r thats exactly what the article says; the jurs was provided source code to learn what APIs are, and they couldn't navigate the folders to open the files May 26 19:43:00 g00s, that is frightening May 26 19:44:52 g00s: they are debating fair use now, it's already been decided that API's are copyrightable! May 26 19:45:34 that's a horrible precedent which needs to be undone May 26 19:45:52 agreed! May 26 19:47:05 shmooz yes but deciding fair use is very tricky based on the criteria for software ... May 26 19:49:13 treelzebub, what about a combination like for example android:id="@+id/dfdfdf" I get the + adding the id to R.java, but why would the id be a string ? May 26 19:50:30 Because it's easier to remember "title" than 283463 May 26 20:03:44 regarding product flavors: I've got an app with 3 variants: version 1 has most of the activities, version 2 has everything in version 1 plus an additional activity, and version three has one of version 1's activities plus an additional activity (basically, v2 and v3 have additional activities). what's the standard way of doing that? the same manifest in {main,v1,v2,v3}/AndroidManifest.xml with tools:node="remove" where necessary? May 26 20:17:04 <_xor> What's the best way to communicate between an Activity & IntentService? I'm trying to use BroadcastReceiver, but it's not working. May 26 20:26:16 23f0etus May 26 20:26:55 welp. looks like i'd better change my laptop password :D May 26 20:28:56 <_xor> What are you talking about? It just shows ******** to me. May 26 20:30:22 On Android using libgdx what is the best way to handle if i need to use a different font size depending on the screen? May 26 20:30:30 yeah it’s an irc feature, whenever it detects a password, it replaces the chars with *** for everyone except the person who typed it May 26 20:31:53 jaana: whats your story in this adroid-deving? May 26 20:32:19 hunter2 May 26 20:32:24 What do you mean? May 26 20:32:37 how you got into this stuff? :) May 26 20:32:58 I doubt that would interest anyone May 26 20:33:05 <_xor> Porn. May 26 20:33:08 <_xor> I bet it's porn. May 26 20:33:14 <_xor> Probably some real kinky stuff too. May 26 20:33:33 <_xor> The government probably forces him to register in his local city. May 26 20:33:54 Hey, I wanted to implement a player much like the Youtube Android app. I did this in a few weeks of pain https://files.ribesg.fr/.random/.device-2016-05-22-162623.mp4 May 26 20:33:55 well by her nick.. its she :D May 26 20:34:27 ah, finally somebody showing something visual here May 26 20:34:38 Now, this is implemented using a layout. Which means anything I want to appear below that player needs to be in the same activity as the layout, which means my entire app is an activity. May 26 20:34:56 Which is bad, but I accepted it as the only solution. May 26 20:35:36 <_xor> Doubt it's a chick. May 26 20:35:36 Now, the question is, when you will go deep in "subactivities", I will now just open more of what's called "Overlay View"s in the video. May 26 20:35:55 - Would using just views work well? May 26 20:35:56 - Should I use Fragments instead? May 26 20:35:56 - I implemented this with a custom layout. What's better, adding Fragments to the Layout directly or adding Fragments to "host views" which I would add to the layout? May 26 20:38:10 jaana: but seriously, whats your position in android developing? May 26 20:38:40 I like to sit down for Android development but I occasionally stand May 26 20:39:11 <_xor> jaana: Just tell him you're a dude. May 26 20:39:32 CedricBeust, usual result :-/ May 26 20:39:42 it doesnt matter is he or she but question is simple. May 26 20:40:26 google 1 - oracle 0 May 26 20:40:28 simple but my business, and off topic May 26 20:40:48 don't you mean google 0 - oracle -1 ? May 26 20:40:53 :D May 26 20:41:09 well, you decide May 26 20:41:47 if only! May 26 20:42:06 treelzebub I do May 26 20:42:18 API's being copyrightable needs to be appealed and taken to court again May 26 20:42:23 treelzebub: I also have `testProguardFiles` set May 26 20:42:39 well I guess jaana is just same guy like anyone others here with ''programming'' May 26 20:42:48 otherwise corporations will go on a API copyrighting and sueing binge May 26 20:42:56 genders are so 20th century May 26 20:43:06 shmooz, in the US* May 26 20:43:12 thats crazy multiculture talking May 26 20:43:27 kill it with firaaaaahhh! May 26 20:43:31 hey, unicorn is a gender May 26 20:43:31 I consider my gender as a qubit between male and female May 26 20:43:40 adq is there news in trial ? May 26 20:43:51 verdict came back in Google’s favor May 26 20:43:55 \o/ May 26 20:43:57 although that did happen last time, too May 26 20:44:00 jaana, that's a _lot_ of states May 26 20:44:00 if you have a dong, you are a guy. if you have breasts and still dong.. you are still a guy. =) May 26 20:44:06 we all still have jobs :D May 26 20:44:14 Sk3letor: knock it off. May 26 20:44:15 g00s, well i don't know much more than everything online already May 26 20:44:19 adq: As long as you don’t collapse me May 26 20:44:35 * adq observes jaana in hope of generating (more) decoherence May 26 20:44:39 wow. let's not go there. May 26 20:44:52 I came here for advice May 26 20:44:58 bad idea May 26 20:45:30 Yeah I know, but CedricBeust told me it was "a pretty good place overall". I don't think I understood what it meant. May 26 20:46:30 its offical, android is the al capone of mobile operating systems May 26 20:46:59 what’s a pretty good place? May 26 20:47:19 things occasionally get off topic, but if someone can give advice, they’ll do so May 26 20:47:34 isnt android-dev de topic..? May 26 20:47:47 loosely, yes May 26 20:47:49 I asked about it from jaana but she didint want to asnwer. May 26 20:47:59 Yes, it should be development discussions only. Sometimes drifts a bit May 26 20:48:26 I provided devery detailled questions and even a video May 26 20:48:58 Still, Sk3letor's creepiness takes more space on my screen than development discussions May 26 20:49:20 yeah, that happens. I feel fortunate for having missed it May 26 20:49:27 Sk3letor: your nick sounds familiar, didn’t you get banned from other channels? May 26 20:49:52 Super original nicknames like Sk3letor always feel familiar May 26 20:50:07 jaana: depends wichs ones, I have been banned from 3-4 channels May 26 20:50:25 I can see why that would happen. I suggest you tone down your messages and stay on topic May 26 20:50:27 Ribesg: if you don't have to use fragments, don't use them May 26 20:50:45 Is there any point to use texturepacker with one image only? May 26 20:50:55 probably not May 26 20:51:03 or i actually have more May 26 20:51:07 jaana: I asked you what is included with topic but you didint want to answer to that. Its okay. I dont judge. May 26 20:51:16 but does it only reduce space on disk, not in RAM? May 26 20:51:33 shmooz, that's basically my full understanding of fragments, "don't use them". My plan as I got no answer anywhere was not to use them and pray for the best May 26 20:51:52 i think so, unless texturepacker is the thingy that stores the images as GPU formatted things May 26 20:52:24 Ribesg: There are good times to use them, but the default, “A fragment for every activity” is pretty bad advice May 26 20:52:28 Sk3letor, /topic May 26 20:52:34 but I can see that im not wanted here so im off, bb. May 26 20:52:58 s73v3r, wow people really do that? Wrap each activity in a fragment? May 26 20:53:01 it’s amazing how people can be jackasses, and then make it seem like they’re the persectuted one May 26 20:53:01 Ribesg: you can create custom overlays like media controllers and orientation lock button, custom is the better way imo May 26 20:53:11 Ribesg: other way around, but yeah May 26 20:53:36 the Big Nerd Ranch book 1st edition advised that way May 26 20:54:49 I've got a first version of my app which used fragments. Main view contained a toolbar and a viewpager containing 3 fragments. Each of the 3 fragments contains a viewpager with 3 fragments, all of the 9 "subfragments" containing a recyclerview May 26 20:55:07 I rewrote the entire thing without a single fragment, and holy shit the perfs. May 26 20:56:09 that might not be necessarily from not having fragments, but from using fragments in the wrong way May 26 20:56:25 But now, as I'm forced to have a single activity, I was just wondering if using fragments could help me with all I have to re-implement myself, like "history", etc May 26 20:56:48 Here is a gif: https://gfycat.com/BlackandwhiteHeartfeltFerret May 26 20:56:53 they can, but they have their own problems that they bring May 26 20:57:02 See, I open an "overlay", then another one. Those are views inside a layout, not activities May 26 20:57:04 can I ask why you’re forced to have a single activity? May 26 20:57:30 Because I wanted a little view to float on top of my entire app, much like the Youtube app May 26 20:57:32 A player May 26 20:57:52 you mean a Picture in Picture type thing? May 26 20:58:10 Oh, you joined after I asked my questions initially May 26 20:58:14 yeah May 26 20:58:23 See this video https://files.ribesg.fr/.random/.device-2016-05-22-162623.mp4 May 26 20:59:24 If you’re going to continue doing single activity for that, fragments might be best for most of it May 26 20:59:29 The gif I gave 10 lines ago is just an evolution of this. Basically those "overlays" will be the settings view, a search view, etc. Everything you would normally put in a different activity. May 26 21:00:02 If the PiP view is video, you might want to look at the PiP layout thingy they talked about at IO last week May 26 21:01:57 >The PIP window is 240x135 dp and is shown at the top-most layer in one of the four corners of the screen, chosen by the system. May 26 21:02:03 This is really not what I want to do at all May 26 21:02:17 sorry, that looked like it would fit based on the images you’ve shown May 26 21:03:03 s73v3r: PiP does look neat, but it'd make Ribesg's app minSdk N May 26 21:03:20 i also didn’t know if that was backported or not. May 26 21:03:30 which is why I said to look into it, not to use it May 26 21:03:46 it's tightly coupled with multi-window, so it's not back compat May 26 21:03:47 Thanks for this anyway, I didn't know it was a thing May 26 21:03:52 But it really seems very restrictive May 26 21:04:02 fair! sorry, wasn't trying to call you out or anything :D May 26 21:04:15 depends on what you’re doing May 26 21:05:02 The small window size is fixed, wtf? The system choses in which corner it appears? Who would use this May 26 21:05:20 I imagine most apps won’t care what corner it’s in May 26 21:05:27 AndroidTV devs May 26 21:05:52 They both say the system choses the corner AND the developer should not show useful content under the PiP window May 26 21:06:30 ok. and? May 26 21:06:43 as long as you can be informed what corner it’s in, you can compensate May 26 21:06:43 Looks like a hell to use May 26 21:07:02 Well, it should be easy on a TV where you have a lot of space May 26 21:07:26 well, TV does seem to be it’s main use. It just doesn’t limit you to only TV May 26 21:07:27 Anyway, I think I'll just use views for now May 26 21:07:41 Using fragments would for me to nest them anyway May 26 21:07:50 s/for/force May 26 21:19:20 <_xor> Hmm, so I have a class that inherits from IntentService. It has some private members. Those private members seem to be lost when I do a subsequent startService() call. I take it the object is going out of scope or something? May 26 21:19:52 <_xor> How do I maintain state within the IntentService in between startService() calls? ...or do I have to pass in state every single time? (If so, that's annoying as fook) May 26 21:26:29 I am making an app that will include two different views (one is locations on a map, the other is a list of information pertaining to those locations). Should I write these as two separate activities, since they will be shown on completely different views, or should I write them as fragments? May 26 21:27:07 fragment might be good if you want multipane on a tablet May 26 21:27:15 maybe use fragment, in advance May 26 21:27:33 just in case you decide to implement a different layout, etx. May 26 21:27:37 _xor: i don't think that's how services are supposed to be used. if you're juggling state between more than one startService call, you're asking for trouble. May 26 21:28:50 *knocks* is Trouble in today? May 26 21:28:50 <_xor> treelzebub: Yeah, makes sense. What's the suggested alternative? May 26 21:31:32 depends on the use case. what are you trying to do? May 26 21:33:31 <_xor> treelzebub: Run a background service/thread/whatever for continous network I/O. May 26 21:33:56 <_xor> Basically, the app starts, this background thread/worker/whatever starts & opens a socket connection to my remote server. The UI loads & the user does his or her thing. May 26 21:34:16 <_xor> Activites can send messages to the network thread, which will perform some action & then notify the activity what the result was. May 26 21:34:19 I don’t think an intentservice is what you’d want then. probably just a regular service May 26 21:34:27 <_xor> treelzebub: I was told to use an IntentService lol. May 26 21:34:46 <_xor> Ah ok, tutorial/link to what I need to read to get a regular service going? May 26 21:34:56 i don’t have one, no May 26 21:35:31 <_xor> :| May 26 21:35:44 <_xor> Why don't you just tell me Santie Claus ain't real either, while you're at all? May 26 21:35:51 you have the entirity of the internet at your fingertips. May 26 21:35:57 from the description, i wouldn't use a service at all (unless i'm missing something). why not just use okhttp and hit your backend when needed, do stuff with the responses, and get on with your day? May 26 21:35:59 you won’t have trouble finding one May 26 21:36:08 seems like a service is a bit heavyweight for this purpose May 26 21:36:11 sockets May 26 21:36:13 <_xor> s73v3r: Yes, but laziness rules my brother. May 26 21:36:16 <_xor> lol May 26 21:36:22 don’t fucking “lol” that May 26 21:36:27 <_xor> treelzebub: Sockets. May 26 21:36:38 <_xor> treelzebub: It maintains a connection to the server & listens for events. May 26 21:36:54 <_xor> Yeah, service I think it is. I just got confused. May 26 21:37:09 <_xor> I'm also an idiot, because I remember writing a service like 1.5 years ago for someone really quick to do something very similiar to this. May 26 21:37:13 <_xor> Don't know why I didn't think of it before. May 26 21:37:52 Evening May 26 21:39:38 <_xor> treelzebub: I'm using OkHttp AND Socket.IO. The former for regular REST/JSON API calls, the latter for server->client messaging. May 26 21:39:39 I have taken over a project, and am new to android dev. Currently the way the sqlite database is done, the helper handles the opening and closing of the sqlite file. I am not understanding why the previous developer choose to do this. Did the previous versions of android not handle the creation of the file? May 26 21:40:09 i think that’s pretty normal May 26 21:40:33 have you read much on android db stuff? May 26 21:40:47 * mrandroid is really not liking Instant Apps May 26 21:41:15 is it bad to let SQLiteOpenHelper handle it? May 26 21:41:16 there are some really good use cases for them, but the security implications are pretty huge May 26 21:41:25 oh ok, I have been reading stuff May 26 21:41:30 _xor yeah, sounds like service is what you want, then. i missed the socket listener part May 26 21:41:35 jexmex: if it’s working and not broken, then let it be May 26 21:42:07 _xor: check out IBinder https://developer.android.com/guide/components/bound-services.html#Binder May 26 21:42:46 well it is broken. The path is hard coded, and causes some issues. I have tried grabbing it dynamically, but it still fails to create the sqlite database on nexus 7 May 26 21:42:57 the idea being, activities bind themselves to the service for their lifespan May 26 21:43:56 jexmex, wait.. the database is not in the apps private folder /databases? May 26 21:44:31 it is hard coded to /data/data/appname.netradio.apps.radio/databases/ May 26 21:44:47 like, literally hard coded? May 26 21:44:52 wat May 26 21:44:54 yes, as a constant May 26 21:45:04 yeah, that’s not right. May 26 21:45:15 hardcoding paths on android is a one way flight to painsville May 26 21:45:18 sqliteopenhelper puts it in there anyways. just remove the hardcoded path May 26 21:45:20 I think the issue is when there are users for the phone May 26 21:45:24 filename is enough May 26 21:45:37 jexmex, yeah thats possible May 26 21:46:52 I will continue to do the rewrite, it is not very involved at this point, as there is limited db usage May 26 21:47:26 enjoy. Remember: commit early and commit often. May 26 21:47:35 oh yes May 26 21:58:50 is there a way in android studio to set a breakpoint that will change a variable's value and continue automatically without breaking? May 26 21:59:10 if you right click on the breakpoint, there are some things you can do with it May 26 21:59:21 to have it not break, you’d uncheck “Enabled" May 26 21:59:53 would it still work if it's not enabled May 26 22:00:10 sorry, not enabled, suspend May 26 22:00:14 oh May 26 22:00:15 suspend May 26 22:00:15 yeah May 26 22:00:18 you’d uncheck “Suspend”, and it won’t stop May 26 22:00:35 it’ll still do whatever the breakpoint stuff says, but it won’t stop the program May 26 22:00:44 Is espresso test recording not in canary channel yet? May 26 22:00:46 although it may only be able to do logging May 26 22:01:03 I went to check it out, but it is not in the run menu where it is supposed to be May 26 22:01:22 i don’t believe it is May 26 22:01:39 ah ok. too bad. May 26 22:01:41 thanks May 26 22:02:40 s73v3r: yeah is there a way to manipulate the values here though? I don't see anything I want to force a boolean to true May 26 22:02:55 jitpack is saying my build was successful, but i added the dependency to my app and its not getting recognized -.- May 26 22:03:35 grekkos: i don’t think so May 26 22:04:32 s73v3r: nuts :| May 26 22:04:40 orbyt_, welcome to jitpack :p May 26 22:04:47 ='( May 26 22:05:03 now move to a real repository May 26 22:05:12 grekkos: You’d either have to break, and do it yourself, or just add a line forcing it to be true above the breakpoint May 26 22:05:35 yeah that defeats the purpose of the break point May 26 22:05:43 I guess I can throw in some debug code so I don't have to keep doing this May 26 22:07:19 https://bpaste.net/raw/2c38e528c1c8 can someone help me with a missing org.sonatype.aether.RepositorySystem ? May 26 22:07:33 I guess I can use the breakpoing with a condition and change it manually May 26 22:10:36 Hey if I have a binary compiled for android, and it's in my app package, can i start it using java lang proc or did something change about being able to do this with newer apis? May 26 22:17:10 "java lang proc"? May 26 22:19:16 He meant java lang croc. These shower shoes with a Duke symbol on them May 26 22:19:38 no i mean java's apis for runnning processes like exec and such May 26 22:20:01 ah so not the shoes? May 26 22:20:07 you can, say compile a webserver, include it in your package, then use java lang proc to start it command line style May 26 22:20:38 i am just curious if the permissions changed recently (ie, ios allows no process to start other processes) May 26 22:21:58 anyone else having troubles connecting the debugger from android studio? Hasn't worked in a week for me :/ May 26 22:22:00 lasserix: you can start a process May 26 22:22:02 more than a week May 26 22:22:34 lasserix: however the vulnerability where the child process will outlive an uninstall has been fixed since kitkat May 26 22:23:15 so basically the company i worked for instance of making an so figured they could compile a binary and i was forced to use that instead of setting up a JNI May 26 22:23:26 lasserix: I use Runtime.getRuntime().exec(String[]); May 26 22:23:33 haha lasserix May 26 22:23:43 using the new gradle-experimental plugin? May 26 22:23:45 so because their binary required lots of physical memory, i'd use a remote service and start the process via java.lang.runtime May 26 22:24:19 then built an api around accessing it, with self-referential checks so it would kill itself if the host app didn't ping it May 26 22:24:46 anyways the ex-founder emailed me about some company unable to get it working, saying security had changed or something in lollipop May 26 22:24:57 lasserix: it definitely works on lollipop May 26 22:25:09 they're probably using an outdated method of starting the process May 26 22:25:16 so i imagine it's something to do with the fact they aren't setting up their service intents or something correctly May 26 22:25:20 also the executable should be locaed in the app's internal storage directory May 26 22:25:24 yea yah May 26 22:25:52 too bad. i wanted to tell him. no, it stopped. no more possibility, make the ----ing .so and jni it already May 26 22:26:07 tell him that anyway :^) May 26 22:26:17 fuckking crazy, running a webhost locally just to access the IP May 26 22:26:40 literally, you'd have to do a network request to do a query instead of NativeEngine.query(keyword) May 26 22:27:18 anyways thanks May 26 22:30:32 can someone help me with fixing my org.sonatype.aether.RepositorySystem issue? May 26 22:36:22 hello. does anybody know if there is a unicode version of aapt (Android Asset Packaging Tool) which supports unicode class names in XML files? May 26 22:43:35 nope May 26 22:44:45 hey May 26 23:07:46 <_xor> Wellp, I went out for din-dins, came back and started trying to find some literature on how to write a regular background service. May 26 23:07:59 <_xor> Everything seems to refer to an IntentService tho :/ May 26 23:13:04 intent service is a service May 26 23:23:24 Dear all , can we insert csv Card to contact list via ssh command without dealing with interfaces ? May 26 23:23:43 some one advice me to use this May 26 23:23:43 am start -t "text/x-vcard" -d "file:///sdcard/contacts.vcf" -a android.intent.action.VIEW com.android.contacts May 26 23:23:50 but it dos not work May 26 23:24:52 <_xor> orbyt_: Yes, that's true, but I need something a bit more flexible. May 26 23:25:09 Please kindly may any one gide me ? May 26 23:25:12 <_xor> Luckily, I found some code that I wrote a while back and completely forgot about it. Using it as a reference on setting this bitch up. May 26 23:39:38 Hi guys. Can I somehow alter some element's width\height in RemoteViews? May 26 23:40:15 I have a FrameLayout there whose width I need to change and I don't see how. May 26 23:40:39 I've never worked with wigets before so maybe it's kinda dumb question May 26 23:41:06 I see I could use setPadding() as a hack, but it just doesn't feel right May 26 23:47:29 AlexBerdnikov: check out setLayoutParams May 26 23:49:00 treelzebub: That was the first thing I was thinking about. Unfortunately, there's no way to get LayoutParams from RemoteViews due to its security model. May 26 23:50:20 You can just pass layout resource id to RemoteViews contructor and then it inflates it under the hood. May 26 23:50:58 You can set the text for TextViews there, alter font size etc... May 26 23:51:13 hmm. i admit i've never worked with RemoteView. it seems like you could work some magic with wrap_content, no? May 26 23:51:29 But I don't see the way to change width and height of the elements... May 26 23:51:49 That's what I'm trying to figure out now May 26 23:53:25 let me know what you find out. i'm interested. it seems like this might be the kind of thing they'd explicitly prevent from happening. May 26 23:57:50 Np, i'll you what I come up with May 26 23:58:06 *I'll tell May 27 00:12:42 i want to deal with "contact provider" via sqlite , my phone is rooted , is there any reference shoe me some insert sql statment to insert a new phone number with contact details May 27 00:14:14 i am working with contacts2.db May 27 00:15:04 we’re not really the ones to ask about root May 27 00:15:12 or doing things with rooted devices May 27 00:15:32 any advice ? May 27 00:15:52 sorry, I don’t know the structure of the contacts db May 27 00:16:10 what’s wrong with just using a regular contacts app? May 27 00:17:00 i am using tasker , and i want to automat this task ! May 27 00:18:03 yeah, sorry. this isn’t the place May 27 00:18:48 then where the correct place ? May 27 00:18:48 tasker might have some info on how to automatically insert a contact May 27 00:19:00 Sorry to say there is not May 27 00:19:06 #android-root, maybe. a tasker channel May 27 00:19:52 No thay redirect me to here! May 27 00:19:59 i don’t see why they would May 27 00:20:37 thay do things such room , kernel .... not sql statments May 27 00:21:13 sorry May 27 00:21:20 np May 27 00:29:01 beshoo why all the direct access? use conventional stuff May 27 00:29:07 unless you are doing some bulk thing or something? May 27 00:29:25 just make a remote service that listens for broadcasts (from tasker) that does the insertion May 27 00:30:16 if you want to f&ck around with the actual sqlite dbs for contacts you're just going to be cutting off yourself May 27 00:30:26 butterknife users: do you ever use multiple annotations for the same id? May 27 00:30:34 like @BindView and @OnClick May 27 00:30:37 since i don't know if you've looked at the schema, but there is a lot of normalization you're going to have to account for May 27 00:34:11 I'm sure you get the "gradle build is slow!" complaint all the time, but I'm compiling a project with two activities and a fragment, and it took 3 minutes and 52 seconds. Is my computer just slow, or is something misconfigured? May 27 00:55:49 Hello, can I get tech support with the portal here? May 27 00:56:25 Or do I send an email? May 27 00:56:32 I could not find a chat option May 27 01:07:16 LunarEclipse120: could you provide me with some general guidance? May 27 01:07:31 mperna: I don't even know what your issue is May 27 01:07:35 Or should I perhaps someone else around here May 27 01:07:44 I get this error message: RuntimeError: API call androidpublisher.edits.validate failed. status is: 403. error message is: Devices with version 12 of this app would be downgraded to version 11 if they met the following criteria: [(API_LEVEL in range 10-0 AND RELEASE_TRACK containing any of each of [[BETA]] AND SCREENS containing any of each of [[small, normal, large, xlarge]] AND FEATURES containing all of [android.hardware.TOUCH May 27 01:08:15 where in the fragment lifecycle do you attach listeners? May 27 01:08:24 How am I supposed to decipher this message? May 27 01:08:46 Oh, fragment lifecycle... May 27 01:08:52 not sure what that is May 27 01:10:08 But the issue is as follows: I have 3 apks in production, one being a 50% staged rollout. I am trying to move that 50% to production and clear the rollout track via API. May 27 01:10:16 this is the message that I receive May 27 01:11:28 Um, perhaps I need to clear the Beta track before rolling out the staged rollout into production May 27 01:13:38 Hmmm, yes, clearing the beta track worked. May 27 01:14:41 I just wanted to discuss this issue with a dashing Google specialist, but apparently nobody is available May 27 01:33:25 is it possible to force Android Studio to push apps to the external or adoptive storage when installing to run under the debugger? May 27 01:33:56 I have an app that crashes only when run from adoptive storage, and Android Studio wants to reinstall it to internal when debugging May 27 01:34:25 Instant Run simply results in a crash failing to create the dex cache May 27 01:43:10 <_star_> hello android-dev May 27 01:43:30 <_star_> first question — what's the best IRC room to go to for help related to physical/hardware and android device interaction issues? May 27 01:43:49 <_star_> I'm working on an embedded/kiosked Android application (read: no access to the screen but need to do app updates) and I'm looking for help May 27 02:11:20 W/GooglePlayServicesUtil: Google Play services out of date. Requires 9080000 but found 8925470 May 27 02:11:37 anybody else get this when using google play services 9.0.0? May 27 02:11:49 my sdk is all up to date May 27 02:18:32 RustyShackleford sounds like the device / emu isnt up to date May 27 02:18:48 are you using phone or emu ? May 27 02:18:48 created a new android N emulator May 27 02:19:05 this happens on both 23 and N May 27 02:19:15 emulators yeah. I could try on real hardware May 27 02:19:16 RustyShackleford wow, go into apps and see what version is there May 27 02:19:26 i'm curious May 27 02:19:43 this is really one thing i wanted to ask the fireside chat - wish i was there May 27 02:20:11 8.9.25 May 27 02:20:13 wtf May 27 02:20:27 and i'm guessing this is why my firebase app isn't working :/ May 27 02:20:28 man that sucks May 27 02:21:15 so I'm waiting on a emulator image update then? May 27 02:21:19 i find it hypocritical, that google is disappointed at oems for not keeping their devices up to date, when google can't even keep their own fucking emulator images up to date May 27 02:21:38 and, one is easier to do than the other blech May 27 02:22:03 RustyShackleford yeah ...but for things like 4.4, no telling whats going on there May 27 02:22:15 so maybe 23 / N emus get updated, not sure what happens to the others May 27 02:22:31 yeah works fine on hardware May 27 02:22:45 goddammit... I blew two days trying to figure this out May 27 02:22:53 its absolutely mind boggling this is still a problem May 27 02:22:54 why didn't I try on hardware lol May 27 02:23:30 that basically google gives us libraries we can't even use with their own tooling May 27 02:24:22 yeah sorta silly to launch firebase without an emulator image May 27 02:24:34 RustyShackleford this has been going on for a long time May 27 02:24:46 i'm surprised I can't find any forum posts about this May 27 02:24:56 i must be the only one trying to use firebase May 27 02:24:56 if you use GMS 9, how do you test on kitkat unless you have a device? the emu is useless May 27 02:25:11 interesting, I didn't know that **** ENDING LOGGING AT Fri May 27 02:59:58 2016