**** BEGIN LOGGING AT Fri May 06 02:59:58 2016 May 06 03:08:08 Can I set language localization in the simulator? I want to test my other language strings. May 06 03:10:04 oh, I've never tested that. I'd have thought it would show up in settings as usual - does that not do the trick? May 06 03:11:46 kbs, ergh. yes. I was thinking I had to set it in the actual Sim settings. May 06 03:12:18 cool; now I know too :-) May 06 03:12:44 it works nicely! May 06 03:14:41 Is there any way to change the playback rate/speed of an MediaPlayer pre api 23? I am updating existing code and would prefer not to have to change it to use a SoundPool. May 06 03:56:10 Do people here write their own web services? May 06 03:56:25 All the time May 06 03:56:41 I was gonna ask the same Q here CedricBeust May 06 04:13:46 n00b question: What's the best JDK version to run for AS on Mac? 1.8 or 1.6? (Install instructions at http://developer.android.com/sdk/installing/index.html suggest 1.8 may be unstable, but I'm not sure how seriously to take that.) May 06 04:25:03 1.8 May 06 04:27:42 CedricBeust: cool, thx. May 06 04:38:45 hey everyone, i'm completely new to android development but have a problem i need to solve. i'm trying to write a service that acts as an in-memory cache with a few restrictions: May 06 04:38:50 1) it will only talk to the app that started it May 06 04:38:54 2) if the app that started it is killed, the service lives on May 06 04:39:04 3) if the app is restarted, it will be able ot talk to the service again May 06 04:39:31 is there any example of this anywhere, or if not, what's a good place to start? May 06 04:41:42 Look up services and the binder May 06 04:41:52 but for an Android beginner, you have a lot ahead of you May 06 04:46:07 yeah that's what i figured :) May 06 04:46:28 i read through services pretty extensively, but i'll check out the binder as well May 06 04:48:23 is there a particular service type that has (most of) the qualities i need? May 06 04:48:36 like one i should focus on researching more extensively? May 06 04:49:22 look for START_STICKY and maybe startForeground May 06 04:49:43 also what do you mean by 'app killed', because closing all activities doesnt kill app May 06 04:50:21 well here's my use-case. i have a cordova (don't laugh) app that generates a master key from a user's password May 06 04:50:38 the app gets killed by the system quite often, and i want to give users the option to stay logged in May 06 04:50:59 however, i can't store their password or key on disk, because that would potentially leak the information May 06 04:51:39 so i really need a place to cache keys, and it has to be secure (as in, never stored on disk) May 06 04:51:49 but if service will be restaring it will lose the key? May 06 04:52:12 correct, i'm wondering if it's possible to keep a service in the background separate from the app May 06 04:52:42 so app starts, app checks if cache service is running, if not, starts it, but if so, pulls key info and logs in. May 06 04:52:53 if app gets killed, cache service lives on separately May 06 04:53:02 afaik you could give it different process May 06 04:53:22 but i havent dug into services that deep May 06 04:53:26 so an android app can have multiple processes? May 06 04:54:06 yes, you can specify them in manigest May 06 04:54:16 s/g/f May 06 04:55:21 oh, that's useful May 06 04:55:45 personally i havent used them so i dont know how they work actually May 06 04:56:34 got it May 06 04:56:53 thanks for the help, everyone May 06 04:57:00 i've got a lot more reading to do May 06 04:57:55 if you use startForeground for service it will less likely get killed due to low memory May 06 04:58:05 but it comes with perisnt notification icon May 06 04:58:40 that's what i read, but that might actually be desirable May 06 05:04:55 Does SoundPool.load (String path, int priority) work with file paths & urls? May 06 05:11:24 How do I use NDK in android studio May 06 06:34:46 this is really cool if you haven't read it yet http://clean-swift.com/mobile-development-projects-fail/ May 06 06:36:16 Odaym, hello May 06 06:36:39 hi May 06 06:45:42 morning lads May 06 06:55:59 Hey, any retrofit users, using the new retrofit... trying to figure out how to make the call synchronous... the documentation for that portion is pretty confusing to me at least http://square.github.io/retrofit/ May 06 06:57:05 Lonesoldier728, Call<> has the execute() method... it's in the JavaDoc. May 06 06:58:55 ah so if I just use execute instead of enque May 06 07:05:00 Mavrik am I doing something wrong here - http://pastebin.com/THAHyuc0 May 06 07:05:29 Keep getting this error at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall.execute --- Caused by: android.os.NetworkOnMainThreadException May 06 07:07:14 Lonesoldier728: because youre doing it in ui thread May 06 07:07:35 either use new Thread, AsyncTask or executor May 06 07:07:45 or enqueue as its written in bible May 06 07:09:46 Yeah I will just make use of the callback and call it in Async thanks - used to NodeJs callbacks May 06 07:15:50 can I have a fragment which has a fragment container inside its XML, then replace and move out fragments from inside it? May 06 07:16:02 yea like fragment inside a fragment May 06 07:16:04 that can work May 06 07:36:43 If you want headaches :P May 06 08:16:43 did you know that a log tag can be only 23 characters long? :P May 06 08:16:57 eeyup May 06 08:57:16 Odaym, it can be longer, it'll just be cut :p May 06 09:06:45 yea but the warning comes up May 06 09:06:51 I guess you can disable it May 06 09:24:31 I paid for a DI subscription, really worth it May 06 09:25:37 warning? May 06 09:30:08 Zharf, lint. May 06 09:32:14 Marvik, Do you mean he's talkative? May 06 09:33:47 ah, I've never seen that because I never write the tag directly on the log line -.- May 06 09:34:00 I always do private static final TAG = ClassName.class.getSimpleName(); May 06 09:34:07 String* May 06 09:36:44 in fact I have a live template that does "private static final java.lang.String TAG = $CLASS$.class.getSimpleName();" so I can just type ctag and use TAG after that May 06 09:44:34 same May 06 09:44:46 but when your class is called Social_Pictures_Grid_Fragment May 06 09:44:53 what if class name is long because someone wants AbstractEnterpriseClassFactory May 06 09:45:06 or what I said above with underscores :D May 06 09:45:08 + May 06 09:45:08 I use underscores May 06 09:45:24 java classes with underscores? :O May 06 09:45:30 lol May 06 09:45:31 yep May 06 09:45:34 :D May 06 09:45:34 I dont care bro May 06 09:45:45 Im a lone ranger, wild axes flying May 06 09:46:41 oldie but goldie https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition May 06 09:47:33 "EnterpriseGradeFizzBuzzSolutionStrategyFactory" ;) May 06 09:48:00 oh my god May 06 09:48:01 haha May 06 09:48:12 math/arithmetics May 06 09:48:21 import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.ApplicationContextHolder; May 06 09:49:37 Odaym, it still doesn't whine about it for me when my TAG is long May 06 09:49:49 even if I do getCanonicalName() May 06 09:49:49 it's a lint check May 06 09:49:57 Odaym, I know, but it doesn't whine about it for me :p May 06 09:50:07 only if I manually write out the whole name on the tag May 06 09:50:13 it's a lint check meaning that you could have had it disabled in the IDE May 06 09:50:15 hi all. i got a gridlayout that takes about .6 of the screen height, 1. of the width. each cell suppose to have a linearlayout, consisting of an imagebutton and a text. however, the bottom row sinks below the widget below the gridlayout May 06 09:50:24 oh May 06 09:50:26 Odaym, I don't, it whines about it when I type it out May 06 09:50:29 how do i fit it all? May 06 09:50:39 doing it programmaticaly May 06 10:32:00 AS is saying that classes could not be found android.support.design.widget.TextInputEditText May 06 10:32:28 even though I have added compile "com.android.support:design:22.2.1" in gradle May 06 10:32:29 is there anyway to add glow to a oval? May 06 10:32:48 am messing around with shadowRadius, shadowDx and shadowDy with no luck May 06 10:33:57 LegendThinker, 23.3 is the latest May 06 10:36:56 azgul, thanks for help May 06 10:56:18 hithere May 06 10:56:30 hey May 06 10:58:28 "This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up" May 06 10:58:37 I have found http://stackoverflow.com/questions/28395501/crashlyticsmissingdependencyexception May 06 10:58:49 where somebody suggesting "The only workaround for now, if you really need to publish your app (like me), then change the dynamic version numbers to static ones:" May 06 10:59:36 is that still true? May 06 10:59:49 what version number for crashlytics do u use? May 06 11:04:32 btw - it does not work with fixed version number May 06 11:04:40 neither May 06 11:06:22 did you follow their setup guide? https://docs.fabric.io/android/fabric/integration.html May 06 11:06:42 does the app show up in https://fabric.io/settings/apps? May 06 11:10:43 have you guys ever come across a post or page that really drills down into Xamarin pros and cons? May 06 11:12:03 Can anyone please tell why text for action that is "undo" is not showing in the snackbar May 06 11:12:05 Snackbar.make(findViewById(android.R.id.content), "hello",Snackbar.LENGTH_LONG) May 06 11:12:05 .setAction("undo", myOnClickListener).show(); May 06 11:12:54 maybe it's expecting a resource identifier? May 06 11:13:03 nah if that were true it would error when you fed it a String May 06 11:13:11 nah its overloaded May 06 11:13:22 both supports resource id and charsequence May 06 11:13:34 Yeah. I have tried both May 06 11:14:05 bolovanos, actually it looks like you disabled crashlytics for debug builds, but not at runtime according to: https://docs.fabric.io/android/crashlytics/build-tools.html May 06 11:15:44 azgul, there is no mistake in these 2 lines right? May 06 11:18:05 azgul, back - sec - will take a look at it May 06 11:19:36 LegendThinker, besides the hardcoded strings, not that I can see May 06 11:20:04 I have placed hard coded later on May 06 11:20:23 Not getting why undo is not showing May 06 11:20:30 azgul, ad guide - I have followed guide they are automatically pushing me into https://fabric.io/kits/android/crashlytics/install May 06 11:21:38 azgul, adding apply plugin: 'io.fabric' accordingly to that guide it execution crashes Error:Execution failed for task ':app:fabricGenerateResourcesDebug'. May 06 11:21:38 > Crashlytics Developer Tools error. May 06 11:22:20 I have found somewhere else that apply plugin: 'io.fabric' should be commented to avoid this type of error - and it idd May 06 11:23:05 bolovanos, try their Android Studio plugin then May 06 11:23:10 should automatically set it up as needed May 06 11:24:15 azgul, to your second question about app being visible - no only thing I can see is this guide - probably because app crashes before registering it self... May 06 11:24:29 azgul, ok - will look at that plugin - but brb ... May 06 11:37:25 Hello guys, I have never been working with frontend and android studio, but our frontend dev is on vacation and we have got crucial bug in our frontend android app. I tried to build it, but I have got errors like: > Could not find com.android.support:recyclerview-v7:23.0.1. May 06 11:38:18 azgul, mmm installed - only thing it did - reading meta-data to manifest, which ment unrevealing value which I had formally hidden in resource file as a string May 06 11:38:31 but result is the same May 06 11:38:37 will use their support mail May 06 11:39:34 there is one more in crash log May 06 11:39:36 This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up, May 06 11:39:36 install an Android build tool and ask a team member to invite you to this app's organization. May 06 11:40:08 I have already signed up, but I do not know where or how to setup that thing May 06 11:44:25 no way - it started up - I have uncomented "apply plugin: 'io.fabric'" in gradle (Which I have done many times before) and now my app is up May 06 11:44:44 the moral - none - waisted time May 06 11:47:32 wait - maybe I have found one May 06 11:47:54 I have key value in ... file May 06 11:48:25 because I have AndroidManifest versed publicly May 06 11:48:45 but this will crash saying Error:Execution failed for task ':app:fabricGenerateResourcesDebug'. May 06 11:48:45 > Crashlytics Developer Tools error. May 06 12:00:54 Darkhunter, make sure that you installed Android Support Repository through the SDK Manager May 06 12:02:39 azgul, I have got it, but I have got tons of another error May 06 12:04:08 you have to be more specific than that if you expect to get help May 06 12:04:11 azgul, Could not find com.android.support:recyclerview-v7:23.0.1. May 06 12:04:28 azgul, It was deleted from maven repository, so it doesn't download it anymore May 06 12:05:58 azgul, I am real noob in this stuff, but I have to make it working... :/ May 06 12:06:03 Darkhunter, show a screenshot of the SDK Tools tab in Android Studio (Tools > Android > SDK Manager) May 06 12:06:22 hi everyone May 06 12:07:22 i have a big problem in android studio 2.1 stable when i select another sdk version except 23 preview does not change May 06 12:12:15 azgul, http://ge.tt/3cza8La2 May 06 12:12:43 azgul, btw http://stackoverflow.com/questions/25700680/crashlytics-found-an-invalid-api-key May 06 12:12:47 Currently we only are able to evaluate the AndroidManifest.xml at build time so we don't look at any strings resources so we only support a hard coded string. I'll definitely share this with the team that you're interested so we can look into supporting this in a future release. May 06 12:12:52 year 2014 May 06 12:36:27 bolovanos, just use a manifest placeholder May 06 12:37:29 Darkhunter, show 'Extras' May 06 12:37:37 azgul, probably you mean this http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger#TOC-Placeholder-support May 06 12:37:43 azgul, thx for pointing me there May 06 12:37:48 yes May 06 12:37:57 azgul, Nothing installed in extras, so I should install it? May 06 12:37:59 have a nice day / night guys May 06 12:38:16 yes May 06 12:38:24 support lib - support repo May 06 12:54:04 azgul, Thanks! It helped! May 06 12:58:40 hello, how can i use material icons from https://design.google.com/icons/ in my android app? the only thing i found is importing them one by one as vector assets May 06 13:00:34 and another architectural question: when i call a method, that methods invokes a notification with two actions. the method should wait for user interaction on the notification and return something based on that. is it somehow possible? May 06 13:04:33 dnano91, you can import them directly from Android Studio by doing New -> Vector Asset, but that's one by one too May 06 13:11:02 Oh, Cool, I finally got an IO invite May 06 13:13:58 :O May 06 13:14:01 grats May 06 13:17:49 azgul, and yes, it integrates into studio ok May 06 13:19:31 https://github.com/scala-android/sbt-android-protify/blob/master/README.md#full-intellij-idea--android-studio-integration May 06 13:38:36 pfn, cool, thanks. I'll need to look into that and see if it can improve my times too :) May 06 13:43:31 it most definitely does May 06 13:45:04 can anyone help me with this gridlayout issue? http://i.imgur.com/QMtuWlv.png May 06 13:45:32 3x3 gridlayout, each cell containing a linearlayout (imagebutton, label) May 06 14:02:24 hi. I've an activity with a reciclerview. The content data is pulled from a webservice. where i need to put the call for the webservice in the adapter or in the activity? May 06 14:25:23 Does anyone know what hasStableIds() is used for in an ArrayAdapter? May 06 14:29:34 Hello! May 06 14:36:50 Currently adjusting a library so that it logs every network request it does (okhttp library) I'm confused as to tackle that specific instance as I have to specify a location. Do I need to import Android libraries? May 06 14:37:59 what? May 06 14:38:17 to log every request you do I'd imagine you'd just write an interceptor May 06 14:39:36 At the moment I can compile the library and adjust it, but an interceptor would also be a possibility May 06 14:40:18 But I'm confused as to where specifically write the information to disk, external storage to be precise May 06 14:47:56 I found the solution, it was indeed easy May 06 14:47:58 thanks May 06 14:48:30 If I see No USB devices or running emulators detected, what should I do in Ubuntu? May 06 14:53:00 I figured this out May 06 15:00:41 Hi May 06 15:01:06 Why does my layout change from mobile to mobile even if I use dp to fix height and widths? May 06 15:01:29 Do I need to make different layouts for different ppi screens? May 06 15:01:32 Hey R1ose May 06 15:01:35 R13 May 06 15:01:45 Jeez -_- dodm May 06 15:02:00 didn't see him leave and my fingers are absolutely failing at typing today. i was wondering why ac wasn't working! May 06 15:02:54 I'd like to learn about android development and how I can get started with it May 06 15:03:44 I have some plans and I'd like to know what is the best way to begin May 06 15:04:47 Anyone use firebase? May 06 15:12:32 HI May 06 15:12:55 why Button.setHeight(); not work? May 06 15:13:28 i want small button May 06 15:13:37 i set 15 May 06 15:13:37 odigem: Why does my car not work? May 06 15:23:29 Say I have two static buttons with widths of wrap_content May 06 15:23:48 And they end up being different widths, and I want to set the smaller button to the width of the larger, so they match May 06 15:24:04 Would I have to use a globalLayoutListener and get the width of the larger and set it to smaller May 06 15:43:49 whatup whatup May 06 15:45:41 hello guys, i need to create custom view for QR code scanner, there is some library can i use? May 06 15:46:57 quick google search shows a few May 06 15:47:23 orbyt_, yes, i search for customizable custom view, do you have some suggest? May 06 15:47:57 i suggest trying whatever google suggests May 06 15:48:08 nice suggest May 06 15:48:21 i go try it May 06 15:48:28 You do that May 06 15:49:45 https://github.com/google/flexbox-layout May 06 15:54:44 Looks cool May 06 15:58:23 Does anyone know what hasStableIds() is used for in an ArrayAdapter? May 06 16:04:06 eghdk: yes. use it in conjuction with getItemId and items will be cached. ie changing positions of items in the adapter will not cause the view to be inflated again and again May 06 16:05:20 vedu: Oh. But if I never change the position of the items... then it doesn't matter too much then right? May 06 16:05:28 How long does the publication process take for new apps nowadays? May 06 16:05:56 think its a few hours May 06 16:06:02 unless theres issues May 06 16:06:35 orbyt_: I posted mine like 12 hours ago :( May 06 16:06:48 and its still processing? May 06 16:06:50 It's the first version, though May 06 16:06:51 yes May 06 16:07:14 longest it ever took for a first v for me was like 2 hours max May 06 16:07:20 eghdk: umm. in that case you can set the item ids as the position itself. I think it still will be beneficial when you scroll away and back to a particular element. May 06 16:07:21 actually maybe a little longer May 06 16:07:48 autrilla: give it a bit longer but make sure you didnt get any notifications for issues May 06 16:07:52 eghdk: you can easily test this by logging whenever getItemId is called with and without hasStableIds May 06 16:08:19 orbyt_: where would I get these notifications? May 06 16:08:36 email/playstore console i think May 06 16:08:40 eghdk: also, why are you using a listview? Move with the times and use a recyclerview May 06 16:08:52 But what does getItemId being called actually mean? If it's being called that means it wasn't cached? May 06 16:09:13 use whatever works May 06 16:09:22 vedu: I am moving to recycler view, but first trying to get some easy wins with performance on this list view. May 06 16:09:24 orbyt_: nothing there, just the payment receipt May 06 16:10:27 eghdk: if you implement a listview perfectly, it will (almost) be as performant as a recyclerview in most cases May 06 16:11:23 eghdk: but the google developers knew most of us can't and hence they introduced recyclerview : May 06 16:11:25 :) May 06 16:16:56 im rewriting an lib that currently uses media players in a service to play music (its a music player). They've already chosen a library to replace media player, but is there a better architecture than using services here? May 06 16:17:21 depends on your needs May 06 16:17:50 it basically just needs to play music using a particular library. thats it. May 06 16:18:43 services are a lifecycle component May 06 16:18:54 they're currently using services and broadcasting events to a receiver to stop/start/play the media players. May 06 16:19:05 this just seems...off for some reason May 06 16:19:06 vedu: Thanks. May 06 16:31:09 This may be slightly off-topic, but where do you get app icons, promos, and design work in general from? May 06 16:32:14 s/promos/feature images May 06 16:35:44 autrilla: i design alot of my own but otherwise get a gfx designer May 06 16:41:25 I know you can generate a report that shows how much time gradle spends on each build task May 06 16:41:31 would someone refresh my memory? May 06 16:42:46 orbyt_: well, I design the app, but I don't think I'm good enough for the icon and other sorts of graphics. When it's a matter of sticking Material components together, I can handle it. I don't really know where to look for competent designers. May 06 16:42:59 RustyShackleford: is it --profile? May 06 16:44:07 autrilla: If this is a serious project hire a real gfx artist. If this is a side project and you have little-no budget for gfx do it yourself or use fiverr/upwork or something May 06 16:45:03 orbyt_: real new project from real company, but we don't have any customers for this project yet (it's new, so that's obvious) May 06 16:45:35 I expect to find reluctancy to hire a decent designer, because they usually want decent pay :p May 06 16:45:52 autrilla: well if you can afford an actual gfx artist i usually hit up dribbble and find someone with the style I like and contact them directly May 06 16:46:05 or behance May 06 16:47:32 pfn: I think I saw you PR that github repo with a comparison between kotlin, groovy, scala and java for android. Does sbt work with instant run, incremental compilation, and all those things people usually desire? For kotlin in my case May 06 16:56:17 Guys do you agree with this answer: http://stackoverflow.com/a/37077646/1396264 ? May 06 16:59:13 autrilla, yes May 06 17:00:19 My build times right now are waaay faster, like 5s or so with kotlin, I guess switching to sbt probably won't hurt then May 06 17:01:06 and instant run as in sbt-android-protify May 06 17:01:14 which does effectively the same thing, except hot-swap May 06 17:01:21 one caveat, I haven't made it work with N preview yet May 06 17:01:30 but it’s not Instant Run, right? May 06 17:01:36 it doesn't matter May 06 17:01:41 you don't get Instant Run with kotlin anyway May 06 17:08:05 hmm, has google been publishing updates to aosp? they haven't pushed 2.1.0 sources for build system yet May 06 17:08:16 or N preview sources would be useful, if they pushed those May 06 17:16:08 I want to change the size of a view while it is being dragged (Using ViewDragHelper), is calling requestLayout in onViewPositionChanged bad or really bad? May 06 17:16:26 How else can I change the size of a view? May 06 17:30:55 <_akira> Hello. I am having trouble importing an image and then drawing it on a SurfaceView Canvas. May 06 17:31:24 <_akira> First, when I import the image in res/drawable and then examine it it is blank/transparent. May 06 17:31:32 <_akira> When I draw it it is also blank/transparent. May 06 17:32:06 <_akira> http://paste.ubuntu.com/16264056/ Here is the code that I use to draw the image. May 06 17:32:23 is there a way to simulate hardware audio key presses on the sim?? May 06 17:42:30 so... what's the deal with Runnable and using them as closure? May 06 17:42:33 is it not reliable? May 06 17:42:53 or it's not really gonna grab a ref to the objects? May 06 17:54:58 How do I open a gallery app that is not photos? May 06 17:58:51 How would you guarantee your users had one that wasn’t Photos? May 06 18:00:23 if I get an InstanceID token for a context and scope repeatedly, will it always be the same unless I invalidate it? May 06 18:02:19 If photos isn't enabled wouldn't I just open the default gallery app? May 06 18:06:04 s73v3r: ^ May 06 18:12:51 R13ose: What if photos is the default gallery app? May 06 18:13:39 s73v3r: then this will open photos. All I want is to load whatever is the default gallery app May 06 18:14:13 then why not just a regular photo picker intent? May 06 18:15:40 when you create an app picker intent like that, I do believe you get a chance to go over the options before you present them May 06 18:15:55 you could see if #options > 1, and if so, exclude photos May 06 18:23:29 s73v3r: When I use this code: http://pastebin.com/ArK86fVn the app crashes May 06 18:24:23 I have to getting going sorry, I will play around with that, thanks for your help. May 06 18:30:17 <_akira> So May 06 18:30:28 <_akira> I loaded a 1080x1920 PNG into res/drawable. May 06 18:30:38 <_akira> Then I drew it as a bitmap. May 06 18:30:49 <_akira> It shows up as a tiny rectangle that's semi transparent. May 06 18:31:10 <_akira> It also shows up as a semi-transparent rectangle when I click on myimage.png under res/drawable inside its myimage.png folder. May 06 18:31:49 <_akira> So could someone please explain how to properly load an image for displaying on a SurfaceView's Canvas. May 06 18:32:21 <_akira> Or if that's not possible at least link to someone's tutorial who has managed to successfully accomplish this and has written down how they did that. May 06 18:32:55 <_akira> Because this isn't funny, I'm serious. May 06 18:33:08 s73v3r see this ? https://github.com/google/flexbox-layout May 06 18:33:23 <_akira> Airplanes and credit card terminals, if you know what I mean. May 06 18:34:20 those flexbox docs are awesome , with pictures ! May 06 18:34:31 why the fuck can't all android view docs be like this :D May 06 18:34:49 <_akira> Anyone? May 06 18:35:23 <_akira> It May 06 18:35:28 <_akira> 's just like https://snag.gy/Yl29ah.jpg which is wtf May 06 18:36:52 <_akira> Or is there a specific format? It's an ordinary png exported from GIMP as a PNG which is in HD dimensions. May 06 18:39:12 g00s: never forget the initial versions of StaticLayout https://github.com/android/platform_frameworks_base/blob/423f0e4205e3c49c6a87b389fa6025772aa7010c/core/java/android/text/StaticLayout.java May 06 18:40:11 Pyuruku i dont think i've ever used StaticLayout - what were your impressions ? May 06 18:40:23 that code is garbage May 06 18:40:32 text layout is a bitch May 06 18:40:33 but they improved it later May 06 18:40:35 it's always going to be garbage May 06 18:40:48 pfn sure, but at least you can use meaningful var names and such May 06 18:40:59 not "ok" for example May 06 18:41:09 'ok' is perfectly fine May 06 18:41:10 i think i can replace my GridLayout with Flexbox-layout, worth experimenting :D May 06 18:42:30 yeah this looks nice, sweetness ! May 06 18:42:46 presumably this is google library May 06 18:43:04 haven't looked at the code. are the views recycled? May 06 18:43:36 its justa viewgroup May 06 18:44:10 ah. gotcha. May 06 18:44:23 so, I’m still not 1000% sure what Flexbox itself is May 06 18:44:47 https://css-tricks.com/snippets/css/a-guide-to-flexbox/ May 06 18:52:22 Pyuruku kinda wish all the android view stuff had beautiful docs like that, with diagrams and labels, etc May 06 18:52:46 they try to describe stuff with text only in the javadocs - GUI stuff should have diagrams ! May 06 18:54:29 Anyone on the latest support library version running into "Binary XML file line #1: invalid drawable tag vector" ? I already have the gradle property to enable vector drawables turned on May 06 18:55:01 and I'm using ContextCompat.getDrawable(...) May 06 18:58:25 oh they removed support for vector drawables pre lollipop... May 06 18:58:35 well ok then, guess I'm not updating my support library version May 06 19:00:01 hello. I thought the Android-SDK contains adb? I've just unzipped it and don't see adb ... is it somwhere else? May 06 19:00:01 <_akira> Hello. How does one properly load an image into assets? May 06 19:00:21 <_akira> : I did the New -> Image Asset thing, but all I get is a semi-transparent rectangle. May 06 19:00:32 how do you maintain lots of resources without it getting messy? May 06 19:00:34 <_akira> As illustrated here: https://snag.gy/Yl29ah.jpg May 06 19:00:35 _akira: just put it into your assets folder May 06 19:00:41 strings, styles, colors, drawables, etc May 06 19:00:58 <_akira> Puurku: "put"? "assets folder"? May 06 19:01:11 maybe there's a tool I can use to analyze duplicates (same content in different id's for example) May 06 19:01:25 <_akira> Rusty, you can write that yourself... May 06 19:01:27 _akira: yes, app/src/main/assets/ May 06 19:01:35 literally put the file in there May 06 19:01:57 RustyShackleford: adopt a good naming convention May 06 19:02:12 or fuck with gradle to support multi leveled directories in your res folder May 06 19:02:31 <_akira> Pyruku I don't have an assets folder. May 06 19:02:49 _akira: create one? May 06 19:03:25 <_akira> Then how do I load it? May 06 19:04:03 <_akira> Okay, I created a folder called Assets. It's not there in the tree. May 06 19:04:53 re-sync your gradle stuff in AS May 06 19:05:03 <_akira> It's still not there. May 06 19:05:44 whats the path of your assets folder May 06 19:05:57 <_akira> app\src\main\res\Assets May 06 19:06:05 its not supposed to be in res May 06 19:06:08 and its not capitalized May 06 19:06:35 <_akira> Excuse me? May 06 19:06:56 it should be app/src/main/assets/ May 06 19:07:00 like I said previously May 06 19:07:46 <_akira> Okay, done. May 06 19:07:48 <_akira> How do I load it. May 06 19:08:02 <_akira> Or access it from the program? May 06 19:08:34 AssetManager May 06 19:08:50 things you can very easily google May 06 19:09:57 <_akira> I didn't think of that. May 06 19:10:13 <_akira> How could I have? May 06 19:11:38 <_akira> I don't have a "getAssets()". May 06 19:12:38 <_akira> Oh, never mind. this.. Presumably that it also uses the assets folder I created "manually"? May 06 19:14:59 is Android Studio supposed to contain adb? May 06 19:15:05 the binary I mean? May 06 19:16:04 it's included with the sdk that android studio bundles, so, yes May 06 19:16:09 BrokenCog: where are you looking for adb? it should be under sdk/platform-tools/ May 06 19:16:57 <_akira> Radical. Thank you, Pyuruku. May 06 19:17:01 the SDK was zip file, I extracted it and did a find, it's not there. May 06 19:17:12 O_o May 06 19:17:31 The Android Studio installed to /Applications/Android Studio ... it doesn't have SDK related files nor adb. May 06 19:17:54 can you use adb in your terminal? May 06 19:18:11 it's not present. no. May 06 19:18:27 do I need to update the SDK ? May 06 19:18:35 sounds like you have a broken sdk installation... May 06 19:18:36 the sdk doesn't include adb until you install platform tools May 06 19:18:45 <_akira> BrokenCog, your SDK is not up to date> May 06 19:18:49 android studio/sdk will do that for you May 06 19:18:51 when you seti tup May 06 19:18:59 and yes, android studio includes the sdk May 06 19:19:17 but it's an additional download after you install, managed by studio May 06 19:19:27 ah. thanks. May 06 19:19:29 <_akira> Insolent fool! Your software should always be up to date! Especially if you use it to make software! May 06 19:19:51 I don't want to use the SDK/Studio, I just want the adb binary. May 06 19:19:52 honestly I would just grab the SDK by itself and not have android studio manage it for me May 06 19:20:04 sbt auto-installs the sdk for me :) May 06 19:20:14 <_akira> ehehehe I drew a 10x10 sized bitmap. It's so tiny omg ok I'm done thank you May 06 19:20:18 don't need to do shit, just run and boom, done May 06 19:20:25 <_akira> I need a mangnifying glass lol May 06 19:20:37 oh its actually difficult to find a direct link to the sdk bundle... May 06 19:20:41 they just point you to android studio May 06 19:21:02 indeed. I did find a link by searching for android platform tools. May 06 19:21:17 that zip file has the 'android' package manager. May 06 19:21:17 oh no May 06 19:21:19 you don't need a link for platform tools May 06 19:21:21 just run 'android' May 06 19:21:25 you just have to scroll all the way down to the bottom of the page May 06 19:21:27 and it'll download platform tools May 06 19:21:30 http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip May 06 19:21:32 you already have the sdk as part of android studio... May 06 19:21:41 run sdk manager from inside android studio May 06 19:21:43 and call it a day May 06 19:21:48 quit listening to the wrong advice May 06 19:23:48 the AOSP/Android docs ... are people happy with them in general, or am I the illiterate bastard from Mars? May 06 19:25:21 * pfn is happy with them from the level of senior developer May 06 19:25:39 they're fine May 06 19:26:04 BrokenCog they suck compared to apple / msdn docs May 06 19:26:10 * BrokenCog will need to find an android docs tutor ... May 06 19:26:23 anyone who doesn't see that just doesn't realize how badly they do suck May 06 19:27:14 http://shop.oreilly.com/product/0636920042228.do May 06 19:30:22 i think at this point its just an ongoing joke, that docs talk about deprecated stuff like split action bars haha May 06 19:31:13 so, is this channel android app deveplopment or AOSP dev? May 06 19:31:20 app dev May 06 19:31:23 or does anybody know? May 06 19:31:38 I'm trying to start android sdk manager on Debian. I've ran ./android-sdk-linux/tools/android, but it's failed with "Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]" May 06 19:31:40 AOSP dev has a google group May 06 19:31:43 is there an AOSP related channel? May 06 19:32:36 freeone3000 hm gross, looks like swt / gtk incompatibility. is your debian old ? May 06 19:33:07 Anyone here have any special tricks on how to debug exceptions like "Fatal Exception: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams" that do not contain any of your classes in the stack trace? May 06 19:33:50 actually the only class that is in the stack that is not from android.* is com.flipboard.bottomsheet, however the line is just calling super with non-modified params May 06 19:33:56 Pyuruku usually the stack trace will have some method like onCreateView or whatever , which is inflating May 06 19:34:23 g00s: they're literally all android.* except for the flipboard lib line I just mentioned May 06 19:35:16 g00s: libgtk2.0-0 is version 2.24.30-1.1 May 06 19:35:24 Are you manually setting LayoutParams anywhere? May 06 19:35:27 SimonVT: no May 06 19:35:30 http://pastebin.com/4CGB5JRG May 06 19:35:31 this is the stack May 06 19:36:48 It's a problems with views in one of your recyclerviews May 06 19:37:19 hi anyone here? May 06 19:37:51 i have an annoying problem with iOS users May 06 19:38:43 they seem to displike dropdown panels on the 3 dot button icon May 06 19:38:49 dislike May 06 19:39:12 what do they prefer instead? May 06 19:39:44 Sal why are your iOS users using the android app :D May 06 19:39:53 on the first sight, they can't find a way to close it May 06 19:40:01 not have the back button like we do May 06 19:40:13 and not having an "X" close icon visible May 06 19:40:28 they stay looking for a while to find the solution May 06 19:40:38 It's almost as if iOS has different design guidelines and patterns May 06 19:40:43 "they seem to dislike dropdown panels on the 3 dot button icon" ... not sure what you are referring to, the overflow menu ? May 06 19:41:01 or the hamburger / nav drawer ? May 06 19:41:45 the panel that shows when you click on the 3 dot button icon May 06 19:41:57 and that covers the 3-dot icon button May 06 19:42:05 its on all google apps May 06 19:42:07 Sal can you speak android May 06 19:42:22 overflow or hamburger ? May 06 19:42:42 or provide link to material design spec that illustrates May 06 19:43:01 hamburger for me, are 3 lines May 06 19:43:05 not 3-dots May 06 19:43:12 3 vertical dots May 06 19:43:18 so this then https://www.google.com/design/spec/patterns/navigation-drawer.html# May 06 19:43:37 Sal: all androids do have a back button May 06 19:43:53 Sal then give them this https://www.google.com/design/spec/components/bottom-navigation.html May 06 19:44:29 g00s, wait, let me find the right name for that damn May 06 19:44:48 there it is May 06 19:44:49 https://www.google.com/design/spec/components/menus.html#menus-usage May 06 19:44:52 menu May 06 19:44:53 simple May 06 19:45:12 as you see, its opened by clicking the 3-dot icon button May 06 19:45:18 than then gets covered May 06 19:45:29 and at that point, they get lost May 06 19:45:42 because they don't know how to close it May 06 19:45:52 if they don't want to make a choice May 06 19:46:17 Get to the point. Where iPhone users gets lost has nothing to do with android app dev May 06 19:46:18 for an android user, he clicks back, or simple taps on the other part of screen May 06 19:47:29 SimonVT, sorry, never mind May 06 19:47:46 i just realized that maybe its not an android dev question May 06 19:48:05 but more a materiale design on iOS Apps question May 06 19:48:19 that i don't even know if its possible May 06 19:48:50 its about using standard material design, for iOS apps. May 06 19:48:56 where should i ask? May 06 19:49:09 There's #iphone-dev or something May 06 19:49:17 i think that in iOS, they wont give a damn about material design May 06 19:49:24 But consider making an iOS app instead May 06 19:50:07 I'm sure they hate Android apps on iOS as much as we hate iOS apps on Android May 06 19:50:42 yes May 06 19:50:54 mine was more a design question May 06 19:50:59 google and apple are the same devil, one day they will all merge ;) May 06 19:51:00 on md May 06 19:51:04 material design May 06 19:51:15 but there aint any material design channel May 06 19:51:20 thats why i came here May 06 19:51:39 g00s: My debian is relatively modern, it's kernel 4.5.0-2 and that GTK version should be good enough. ldd is useless because it's a Java application. May 06 19:51:49 thanks anyway May 06 19:52:46 Sal sorry, i think material design question is still valid for here, but I didn't follow the question May 06 19:53:14 I'm going to rule off topic for material on iOS May 06 19:53:23 But in general, if the users can't figure it out, it's bad design May 06 19:53:37 The iphone guys can probably help with that to do then May 06 19:53:44 oh is this material design applied to iOS app ? lol May 06 19:53:52 g00s, simple. i need a way to let users close the menu without making a choice May 06 19:53:56 he's complaining about the users not being able to learn the back button, which is not that important May 06 19:54:04 specially users that don't have the back button like android users May 06 19:54:43 i thought Sal has android app + material design + confused iOS users May 06 19:54:50 * g00s really confused now May 06 19:54:53 * g00s goes to walk dog May 06 19:54:57 they should learn to use the back button on android or click off the menu area to lose focus and close May 06 19:55:05 I have an imageview inside another view. ie... > the top level view has an id R.id.country_card and contentDescription of "USD". I want to perform a click on the imageview with espresso. I seem to be totally screwing up the process, can anyone lend an idea. May 06 19:55:07 http://hastebin.com/edocuqakav.avrasm May 06 19:55:17 i got, js app + material design + dummy iOS users May 06 19:56:11 im trying to match with espresso, but seem to be doing something rather stupid. May 06 19:56:26 so the app, with material design, can be run on iOS, Android and Win May 06 19:56:55 i'm just following material design refs May 06 19:57:13 and came up with this stupid problem for dummy users May 06 19:58:00 anyway, sorry if this aint the right channel, but don't know where to go to ask for material design stuff May 06 19:58:39 Sal: I don't see how it's a problem to worry about May 06 19:59:07 Sal check if the view you're using isFirstResponder. It will let you know if it has focus, if it doesnt deactivate the view. ie... the click off pattern in android May 06 19:59:36 Ping_2_Ur_Pong, iOS dummies are not used to that May 06 19:59:49 Sal, they will become May 06 19:59:53 as i can see, these dummies, need a button or text to know what to do May 06 19:59:53 build the pattern into your app May 06 20:00:01 they aren't advanced users May 06 20:00:03 the way you train users is use the same pattern continuously May 06 20:00:22 its not advanced is good design principles. If you use the same pattern consistenly they will pick it up. May 06 20:00:56 Ping_2_Ur_Pong, i did that, but wanted to see if its the right way or not, i mean in a designer view May 06 20:01:13 It is, you train your users how to use your product. May 06 20:01:36 what i did was to adda button as first element of the menu, and on the button, i have an expand_less icon (up arrow) May 06 20:01:48 If you consistently use the same patterns, they will pick up that you do x by doing y. But, you have to be consistent May 06 20:01:53 it seems like, "click here to roll up" May 06 20:02:03 You can do that, but its clunky May 06 20:02:11 but it can also mean "click to see more hidden up" May 06 20:02:22 i know May 06 20:02:41 i also tried with an close "X", but don't know where to put it May 06 20:02:52 click off is better IMHO. Teach your users what they are supposed to do. Its called, reactive feedback May 06 20:03:05 Sal, look for the book the design of everyday things. May 06 20:03:19 ? May 06 20:03:21 Very good read and will help you with these types of issues. May 06 20:03:32 there really is a book like that? May 06 20:03:34 "The design of everyday things" May 06 20:03:39 thanks May 06 20:03:42 i will May 06 20:03:44 thats a classic but pretty high level May 06 20:04:06 I doesn't cover the specifics of ios or android its about how to build out products so that users can easily learn what they are supposed to do. May 06 20:05:03 My thought is you have to options, build an ugly ui, that confirms for the lowest % of users that aren't used to using a smart phone or create a UI that is fluid that works in a way where they can figure out how to do what you want. May 06 20:05:11 The book sends you down path 2. May 06 20:05:33 As far as Material and handling you issue. You could make pressing the hamburger again close the menu. May 06 20:06:17 yes, maybe thats the best choice May 06 20:06:24 thanks May 06 20:06:59 Sal, you still have the same problem, how do they know to press the button again to close the menu? May 06 20:07:14 yep May 06 20:07:28 but, i'm lookig at material design on angularjs May 06 20:07:33 and they do it that way May 06 20:07:36 agh May 06 20:07:41 * Ping_2_Ur_Pong hasn't played much with angular May 06 20:07:49 Give it a shot, hope it works. May 06 20:07:58 ok, thanks May 06 20:08:01 ciao May 06 20:08:06 i was just about to get https://manning.com/books/angular-2-development-with-typescript May 06 20:08:16 looks fun May 06 20:09:01 Chow! May 06 20:09:02 * Ping_2_Ur_Pong goes back to cursing at espresso and being clueless as to what dumbass thing he's doing. May 06 20:09:16 * Ping_2_Ur_Pong wants to steal Alphabet's nick May 06 20:09:45 So, it looks like the SDK manager can't load GTK, at all. I've straced through and there's no GTK load. May 06 20:10:23 freeone3000 fwiw ubuntu is used by android devs in google, so its the most tested distro May 06 20:10:43 <_akira> freeone3000... why would it? May 06 20:10:47 although i see some arch users here May 06 20:11:10 _akira: Because I'm getting "NULLException in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]" May 06 20:11:19 leeds is still using slack, but since he sticks to vim no idea how it works out for him May 06 20:11:27 <_akira> Ehehehehe May 06 20:11:37 <_akira> What are you even trying to do? May 06 20:11:52 <_akira> g00s,a true disciplined scholar, I'd say. May 06 20:12:05 g00s: Yes, I'm going to switch operating systems in order to compile for android. Sure. May 06 20:12:14 Great read on differences between agera and RxJava and why Agera is still very nasceant. http://akarnokd.blogspot.hu/2016/04/google-agera-vs-reactivex.html May 06 20:12:30 <_akira> freeone3000 I'd be using Ubuntu except nVidia are dicks. May 06 20:12:34 <_akira> If you know what I mean ;3 May 06 20:13:03 I'd be using Ubuntu except that I need to run an X server and have an L2TP-PSK VPN client. May 06 20:13:14 <_akira> Yes. May 06 20:13:41 <_akira> So I'm thinking of going to University, then learning to do one thing, make it work everywhere and then selling it. May 06 20:13:42 why do you need gtk/swt to do anything android? May 06 20:13:45 android studio doesn't need it May 06 20:13:45 <_akira> And dropping out. May 06 20:13:48 ddms/monitor does, though May 06 20:13:49 pfn: I need to launch the SDK Manager. May 06 20:14:00 freeone3000, you can install sdk components without launching sdk manager May 06 20:14:08 android update sdk --no-ui May 06 20:14:17 or, you can use sbt to install sdk stuff, too May 06 20:14:37 haha like he's going to install sbt May 06 20:14:39 pfn: Can I maniuplate AVDs the same way? May 06 20:14:49 g00s: sbt is completely reasonable. May 06 20:14:51 freeone3000, might be able to May 06 20:14:56 and you think installing sbt is hard? May 06 20:15:06 that's because you're dumb May 06 20:15:08 :P May 06 20:15:31 no jut realistic; but sounds like freeone3000 is familiar with it May 06 20:15:32 freeone3000, oh, sbt can't manage avd though, I haven't built that sort of support May 06 20:15:49 but you might be able to do something with android create avd or something similar May 06 20:15:58 pfn what's sbt May 06 20:16:03 Ping_2_Ur_Pong, use teh google May 06 20:16:09 g00s: Waiting to compile answer...... Still waiting to compile answer...... Still waiting to compile answer.... Yes, very familiar. :P May 06 20:16:29 or I could ask you since it seems you created it, which would give me a better more understandable answer. May 06 20:16:43 I didn't create sbt May 06 20:17:09 but sbt is monstrously faster than gradle and maven May 06 20:17:13 * pfn shrugs May 06 20:17:27 freeone3000, anyway, android create avd/android update sdk are your friends May 06 20:17:30 svala build tool May 06 20:17:36 pfn: Alright, thanks. May 06 20:17:48 dunno if it can install new system-images, but if not, you can do it with sbt May 06 20:17:55 and then carry on with the android command May 06 20:18:02 does the SDK manager plugin that comes with AS just punt to the standalone version, or is it a re-implementation ? May 06 20:18:11 everything punts to standalone May 06 20:20:10 how do you ask these questions? do you not use android studio? May 06 20:20:27 i have standalone sdk manager, all those stupid plugins are disabled May 06 20:20:45 only have android support, gradle support enabled May 06 20:20:52 android support includes sdk manager May 06 20:20:56 it's not a plugin... May 06 20:21:59 what is the SDK updater plugin then ... whatever May 06 20:22:50 no idea, something 3rd party May 06 20:24:09 oh, I guess something android studio specific May 06 20:24:10 * pfn shrugs May 06 20:26:13 Hi guys! Hi do you organize your project structure on a package level? Do you distincts them by component layers (activities, fragments, adapters etc.) or rather by features, like for example accounts, networking, billing etc. ? May 06 20:26:52 AlexBerdnikov i did it by component laters first but now reret that May 06 20:27:21 AlexBerdnikov: features May 06 20:27:36 i would only do it by layers if you intent to reuse that layer as a library or something, because its not easy to do that if the stuff is in feature packages May 06 20:28:01 Features, and then sub group components together. Ie... ThisAwesomeFeature -> Activity ->Views May 06 20:28:23 thats a bit extreme :) May 06 20:28:43 g00s: That's what I'm starting to feel last days. I have a project where amount of files grew so badly that now it's a pain to work with them... May 06 20:29:01 So I wonder how other people do that May 06 20:29:06 * Ping_2_Ur_Pong likes being able to eye anything. That way I know where any component for any feature is... I hate having to read through 50 class names to find something. May 06 20:29:21 AlexBerdnikov did you see this https://medium.com/@cesarmcferreira/package-by-features-not-layers-2d076df1964d#.3gol4e7iy May 06 20:29:38 g00s: haha, I was going to link that May 06 20:29:43 :D May 06 20:29:46 I work with a very large codebase, feature > component type > classes works well May 06 20:29:51 * Ping_2_Ur_Pong high fives g00s May 06 20:30:17 also partitioning app code and "core" code May 06 20:30:34 you should be able to write most of your infra in pure java and just sprinkle app specific code on top May 06 20:30:45 is there a good way to compile against a local aar? May 06 20:30:58 g00s: yes, and I read that yestarday and this article is what made me ask people here :) May 06 20:31:04 it really is a PITA to look for something, though TBH, you can avoid scanning and search, but if you don't know what you're looking for its very useful for scanning May 06 20:31:05 RustyShackleford see mavenLocal() May 06 20:31:07 yes compile(name: 'library', ext: 'aar') May 06 20:31:10 I use compile(name:'name', ext:'aar') May 06 20:31:16 then youre fine May 06 20:31:32 when I do this in a library project, any project that depends on this one must also have that line May 06 20:31:42 it seems odd. like I must be doing something wrong May 06 20:32:04 then create an aar for your library project? May 06 20:32:23 or start hosting stuff May 06 20:32:39 yeah working on it haha May 06 20:33:14 transitive dependencies May 06 20:33:28 I only have `compile(...)` lines in my build file when I have to use specific forks of projects because they refuse to accept my PRs May 06 20:33:33 orbyt_, is that usually how it works though? May 06 20:33:33 or for local libraries I havent released yet May 06 20:33:56 why do I need to explicitly add the transitive dependency? May 06 20:34:04 aars dont contains transitive dependencies May 06 20:34:42 Project A has this in its build.gradle: compile(name:... ext: 'aar') May 06 20:34:59 project B depends on project A. It also needs that same compile() line May 06 20:35:42 how does it depend on project A? are you building an aar out of A or are you just adding it to your build? May 06 20:35:48 pfn is there a link that always points to the latest SDK manager full download? for example this still has 24.4.1 http://developer.android.com/sdk/index.html#downloads May 06 20:36:33 and changing #s doesn't help so http://dl.google.com/android/android-sdk_r25.1.3-macosx.zip is broken May 06 20:37:03 lets start the example over again May 06 20:37:22 Project A is an app project with compile(':projectB') May 06 20:37:53 Project B is a library project with compile(name:'projectC' ext:'aar') May 06 20:38:31 And for some reason, project A must also have this line: compile(name:'projectC' ext:'aar') May 06 20:38:56 projectC.aar is a transitive dependency for project A. Usually gradle handles this for you automagically May 06 20:59:22 g00s, no idea, I no longer need to download the sdk, it is automatic May 06 20:59:31 g00s, completely automatic, and always latest version May 06 21:03:04 pfn so it sounds pretty similar to https://github.com/JakeWharton/sdk-manager-plugin May 06 21:03:46 yes, just use that and call it a day May 06 21:05:25 well I basically rewrote our entire projects build.gradle May 06 21:05:55 there are two library projects I still need to build binaries for. And then I need to get some of these binaries hosted May 06 21:06:21 and FINALLY you can check the project out from source control, open the project with android studio, and press the play icon May 06 21:06:25 no setup required May 06 21:10:29 pressing play in android studio is overrated :^) May 06 21:10:38 I just invoke gradle on the command line May 06 21:10:57 or that May 06 21:11:12 the current way of managing dependencies is to paste jars into libs May 06 21:11:27 or add the source to our codebase, compile it as a library project May 06 21:12:00 my first day there, I was emailed a .zip file with our dependencies lol May 06 21:12:28 that had a word document to a link on mega that actually had the dependencies? May 06 21:14:00 no a .zip file full of jars May 06 21:14:20 many of them given descriptive names May 06 21:14:24 such as classes.jar May 06 21:17:05 https://developer.android.com/reference/android/widget/AbsSpinner.html#setSelection(int, boolean) May 06 21:17:24 is boolean animate supposed to make a smooth transition? because it doesn't have any effect for me when testing May 06 21:43:37 can anyone here tell me why my application is animating EVERY card in my RecyclerView on add, rather than just one? May 06 21:43:46 I've been googling for hours, I don't get it May 06 21:44:33 are you notifying that everything was inserted? May 06 21:44:54 Pyuruku: it's dynamically being added as the data is coming in from my server May 06 21:45:04 scrolling works just fine though, it animates it one by one May 06 21:45:11 RubenADSR: but what methods are you using to add? May 06 21:45:14 but whenever a new item is inserted, it does everythin May 06 21:45:27 are you setting the adapter over and over or something May 06 21:45:44 or calling notifydatasetchanged instead of notifyiteminsertedinrange? May 06 21:46:02 I've tried both using my adapters insert method with notifyItemInserted, and adding to the data list and calling notifyDataSetChanged May 06 21:46:27 insertedinrange? May 06 21:46:33 calling notifyDataSetChanged is going to cause all of them to be reanimated May 06 21:47:35 sorry, it’s just notifyItemInserted May 06 21:47:57 what’s the value you pass into notifyItemInserted? May 06 21:48:11 you're gonna have to share some code May 06 21:52:15 Pyuruku: i've sort of got it working May 06 21:52:24 I have it animating one item at a time now when they're inserted May 06 21:53:28 i'm doing this in my animate(): (position > lastPosition) ? R.anim.pull_in_from_left: R.anim.hold May 06 21:53:54 (anim.hold being an empty animation because i couldn't feed it null. my logic is, if the position is larger than the last one, animate it, if not, dont do anything) May 06 21:54:04 but it's only animating the one at the top, not the ones that are being added to the bottom May 06 21:54:36 are you not implementing a RecyclerView.ItemAnimator? May 06 21:55:35 Pyuruku i'm using RecyclerView.ItemAnimator itemAnimator = new DefaultItemAnimator(); May 06 21:56:10 ok, but if you have custom animations you want to create your own May 06 21:56:19 I'm not sure where this "animate()" function you mentioned is May 06 21:56:49 Pyuruku it's in the "View Adapter" for the recylcer May 06 21:57:06 RubenADSR: I have no idea how your code is laid out, that tells me nothing May 06 21:57:54 Pyuruku: I extended RecyclerView.Adapter to my own ViewHolder May 06 21:59:44 Are you calling `animate` manually? If so, you're doing it wrong May 06 21:59:55 your item animator will be notified of when and what to animate May 06 22:00:09 all you should be doing is notifying when something is inserted May 06 22:00:18 if you want a different animation from the default, imeplement your own item animator May 06 22:01:00 Pyuruku I was banging my head off a wall all day, until I added animate(holder) to the onBindViewHolder May 06 22:01:11 before that, it would not animate in any form whatsoever May 06 22:01:18 regardless of what notifyWhatever() i used May 06 22:01:49 then you're notifying incorrectly May 06 22:15:28 Hey so I am not sure if this is a legal query - in android database helper need to id beings unique together for it to be unique, I am getting an error because of it ... + KEY_DATE_ADDED + " LONG," + "UNIQUE ON CONFLICT REPLACE (" + KEY_PROJECT_ID + ", " + KEY_USER_ID + ")"+ ")"; May 06 22:21:20 hello :) May 06 22:21:37 I wonder, does anyone here know if its really a requirement to have a USB reader for partitioning SDcard? May 06 22:21:47 using a guide to setup multirom on my s5 and the partition tool doesn't detect either of my phone's drives, so maybe I really do need that hardware? Seems like you could at least mount it in recovery mode or something for lowlevel access.... May 06 22:21:54 I can probably get a reader for like a dollar off ebay, just don't wanna have to wait on shipping if I don't need it... May 06 22:22:00 joe7dust: #android-root May 06 22:22:05 k May 06 22:22:15 ty May 06 22:24:27 It may more be #android May 06 23:01:38 i'm in immediate need of assistance May 06 23:02:06 please help. my mother's gone missing and she deleted her whatsapp messages May 06 23:02:10 please May 06 23:02:33 ask whatsapp May 06 23:02:56 where? May 06 23:03:12 no way they're gonna let me do that May 06 23:03:21 really, people. this is emergency May 06 23:03:31 what the hell do you expect us to do? May 06 23:03:43 we’re not what’s app. we can’t do anything May 06 23:03:58 help me with adb commands May 06 23:04:05 that’s not going to help you May 06 23:04:08 i have her phone right here May 06 23:04:25 backups were automated, if she deleted, there's still numerous backups on phone for sure May 06 23:04:26 call the police May 06 23:04:33 i already have May 06 23:04:37 4 hours ago May 06 23:04:57 look, i have zero interest at this point discussing this May 06 23:05:02 someone please help me with adb commands May 06 23:05:08 or shut the fuck up May 06 23:05:18 my fucking mother's missing and this is only clue May 06 23:05:50 please May 06 23:06:06 go away May 06 23:06:13 go ask whatsapp May 06 23:06:14 dude May 06 23:10:40 What is being asked? May 06 23:18:10 why the hell would you use a proprietary chat that isn't free May 06 23:18:35 had heard of whatsapp but didn't google it till just now, sounds like a waste of money imo May 06 23:18:41 joe7dust: because you are force to? May 06 23:18:49 how? May 06 23:18:49 joe7dust: it's free BTW May 06 23:18:53 joe7dust: for life May 06 23:19:10 joe7dust: this day and age, almost everyone uses WhatsApp since it's free May 06 23:19:13 "WhatsApp is an instant messaging app for smartphones that operates under a subscription business model. The proprietary, cross-platform " May 06 23:19:29 * kbs sighs May 06 23:19:32 google why u lie to me May 06 23:21:15 anyways, @synthmeat can't you just restore a backup without using ADB? May 06 23:21:18 joe7dust: they changed it May 06 23:21:38 joe7dust: now is free since Facebook wants to charge businesses to use it May 06 23:22:11 still it just amazes me that such a thing ever got traction in the first place May 06 23:22:22 i mean its not like we didn't have free IM thru AIM like 20 years ago >.> May 06 23:22:38 then YIm May 06 23:22:42 icq May 06 23:22:46 skype May 06 23:22:47 etc. May 06 23:23:33 anyone remember trillian May 06 23:23:33 synthmeat you dumbass :D if this was an emergency you wouldn't be here asking for help haha May 06 23:23:55 that thing was 100% free from the start and was the first crossplatform i used May 06 23:24:04 it did aim/yim/something else at the start May 06 23:24:19 man i used to pull so many bitches back then ahah May 06 23:24:29 i had dem mad IM skills and college guy rep May 06 23:24:37 we should update topic "if this is an emergency, please disconnect and dial 911" May 06 23:24:46 joe7dust: please help May 06 23:25:01 i've enabled debuggin, have sdk and ndk in path, and i've ran adb backup -all May 06 23:25:01 can't you just restore a backup using normal methods? May 06 23:25:11 g00s: what you trying to do? May 06 23:25:20 joe7dust: please help. this is activity now of adb https://www.dropbox.com/s/cj76lvwnagxumk8/Screenshot%202016-05-07%2001.24.19.png?dl=0 May 06 23:25:28 does that look like it's backing anything up? May 06 23:25:49 spudowiar i don't know, what are you trying to do ? May 06 23:25:51 joe7dust: i'd first like to back everything up before i possibly mess stuff up May 06 23:25:52 synthmeat: what you trying to do? May 06 23:25:57 g00s: sorry, wrong nick lol May 06 23:26:01 haha May 06 23:26:11 spudowiar: back entire android phone first, then restore whatsapp May 06 23:26:20 synthmeat: why? May 06 23:26:26 synthmeat: makes no sense May 06 23:26:40 backup data from phone, restore it to phone (same result lol) May 06 23:26:42 spudowiar: this is only fucking clue i have about my missing mother May 06 23:26:47 SimonVT around ? May 06 23:26:50 synthmeat: wtf man May 06 23:26:53 sucks when are mods go to sleep May 06 23:26:54 synthmeat: call the police May 06 23:26:54 spudowiar: backup data first so i don't fuck it up May 06 23:26:58 spudowiar: already reported May 06 23:27:15 synthmeat: where do you live? May 06 23:27:17 synthmeat go to #android-root, this is app development channel May 06 23:27:29 g00s: thank you May 06 23:30:15 Guys, how do you usually organize DB <--> model interaction? Do you keep all the DB CRUD stuff in some database helper\util file where you have all the saveUser(), deleteUser(), saveItem(), deleteItem() etc. methods or you keep your CRUD methods in your model instances (having it like Active Record?) May 07 00:04:11 where would be a good place to seek help on a bootloop? and don't say android-root cause i got crickets there May 07 00:04:23 also have bout 5 comment replies in various threads with no reply May 07 00:09:53 you could try #android May 07 00:09:56 joe7dust #android-root May 07 00:10:23 at least crickets won't get hostile for being off topic ;) May 07 00:10:48 theres nowhere else? May 07 00:11:07 joe7dust you could ask your dentist May 07 00:11:25 no, not really. May 07 00:11:45 or maybe there is some trick to getting replies on xda May 07 00:12:01 joe7dust: perhaps contact the manufacturer of your phone / tablet? May 07 00:12:01 donation? :p May 07 00:14:55 s73v3r does that really work? like is the a donor only support forum? May 07 00:15:20 i don’t know. I just remember back in the day when I went there, the word “donation” was plastered all over everything May 07 00:18:29 s73v3r where do you go now? May 07 00:18:33 i don't May 07 00:18:47 my days of flashing roms and all that jazz are over May 07 00:19:04 wyoung: Samsung don't support you if you chose to flash some random OS build on your phone and broke it May 07 00:19:06 yea it can be frustrating... i may just go with 6.0.1 stock May 07 00:21:37 damn this thing got hot.. about 30 bootloops and its 70c May 07 00:24:54 put it outside in case it catches fire May 07 00:25:02 like a fireproof bag or something May 07 00:29:55 sounds delicious like fruitloops May 07 00:32:54 joe7dust: so you can't pull the battery or override it by holding power button? May 07 00:33:06 oh i did that lmao May 07 00:33:19 right now I'm trying to find the best FW to nuke it with Odin May 07 00:33:27 the handy thread about it was updated in December... May 07 00:33:38 pretty sure the tmobile one i have has had a new FW since then May 07 00:37:10 welp i can't find anything newer so I guess the FOL1 from december really is the newest May 07 00:37:16 wish me luck! May 07 00:37:46 good luck! May 07 00:38:23 When I set a variable in "doBackground" of an AsyncTask, is this guaranteed to be visible in the "postExecute" May 07 00:38:57 no wait that can't be right... May 07 00:39:02 FOL1 is for 5.1.1 May 07 00:39:11 surely there is a MM FW for g900t ? May 07 00:40:10 no idea May 07 00:41:13 start repeating and typing in caps on xda-developers May 07 01:37:24 whatup whatup May 07 01:38:02 anyone heard of chrome apps/extionships generating revenue? May 07 01:38:37 orbyt_: I never bought a chrome extension in my life. Not sure what this has to do with Android though. May 07 01:39:09 LunarEclipse120: Sure but that doesnt mean they're not generating revenue May 07 01:39:39 You never answered what this has to do with android May 07 01:39:48 it doesnt? May 07 01:41:18 orbyt_: This channel is for "Android application development". May 07 01:44:51 LunarEclipse120: You dont say May 07 01:45:28 orbyt_: Yah I don't. The topic does and was set by an admin. I know you come here alot though. I personally don't care; I know others do May 07 01:45:42 Are launchers on Android phones the equivalent of Desktop Environments on Desktop PCs? May 07 01:46:02 Queenslayer: Not at all. What does this have to do with apps? May 07 01:46:07 *app development May 07 01:46:07 Nothing May 07 01:46:10 Queenslayer like the Start menu i guess May 07 01:46:10 Just curious May 07 01:46:11 Queenslayer: #android May 07 01:46:20 or OS X Launchpad May 07 01:46:23 LunarEclipse120: When no questions get asked discussing other semi related tops is perfectly normal May 07 01:46:31 chill out May 07 01:46:36 Yeah, start menu seems more like it May 07 01:46:46 orbyt_: I am fine with it but others aren't. May 07 01:46:54 LunarEclipse120 is only a kid, he's alright when he's acting mature May 07 01:47:09 orbyt_: I have got yelled at for giving a guy ADB standalone when he isn't doing developing May 07 01:47:25 Well considering your the only one responding on the issue I'd suggest the opposite is true May 07 01:48:15 The reason I asked is because I'm trying to correlate certain Desktop terminology with the Android terms May 07 01:48:31 Queenslayer: like what May 07 01:48:34 Queenslayer: Well I think I have a pretty good analogy for recovery to windows May 07 01:48:34 Just to get an understanding of both simultaneously May 07 01:48:43 lol LunarEclipse120 May 07 01:48:50 I don't think it's SFW May 07 01:48:54 What do you currently do? May 07 01:48:59 orbyt_, like init processes May 07 01:49:19 Queenslayer: what do you program for May 07 01:49:25 Queenslayer: Recovery is kind of like that mini version of Windows or Linux on the bootables drives/CDs. Used to run the installer May 07 01:49:26 I'm just learning Linux to enhance networking career May 07 01:49:33 No programming or developing May 07 01:49:39 Strictly learning May 07 01:50:03 Queenslayer: Now this IS actually fairly off topic May 07 01:50:15 Probably will want to learn Python along the route for scripts May 07 01:50:23 No worries May 07 01:50:32 Android uses Java, and you can script in any scripting language May 07 01:50:40 is that what ur asking May 07 01:50:42 I thought developing the kernel comes into it, so introduced it here May 07 01:50:51 Yeah orbyt_ May 07 01:50:58 Oh so you wanna get into lower level stuff ROMS etc? May 07 01:51:06 not apps? May 07 01:51:08 Python is ideal for network scripting, or so I've heard May 07 01:51:36 I'd love to learn Java, but isn't it way more intensive than python? May 07 01:51:45 Still not sure what your asking but im guessing your looking for #android-root May 07 01:51:49 Queenslayer: Kind of. Python is something good for Linux though May 07 01:51:59 Yeah LunarEclipse120 May 07 01:52:01 Or maybe even #Linux May 07 01:52:16 I've just realised this is strictly Android May 07 01:52:22 orbyt_: Building ROMs is in #android I think. I love how those people get thrown around May 07 01:52:24 Which isn't Linux May 07 01:53:13 Because I really do want to understand what 'built on top of Linux' means in development context May 07 01:53:32 Queenslayer: The kernel is modified Linux kernel May 07 01:53:37 Ahh May 07 01:53:42 Makes sense May 07 01:53:48 * LunarEclipse120 hates when people treat Android like a full desktop linux distro May 07 01:53:58 So not the same kernel that would be used on Debia......lol May 07 01:54:20 Queenslayer: No May 07 01:54:37 I'm going to leave android development for now then May 07 01:55:02 Sounds good, but need to learn to make money in my first passion - networking May 07 01:55:35 Anyways, I'll let you lads get on with it May 07 01:55:44 Cheers for the repliese May 07 01:55:49 *replies May 07 02:38:44 Using recycleview with picasso for showing an explore section (similar to instagram) - when a user scrolls down and is 10 away from the end I start fetching more from the server - adding them to the list and Picasso is taking care of cache and showing the images) - This all works fine as I load batches of 50 but once the third batch is loaded (amounting in a 150 total list items/images) I get an out of memor May 07 02:38:45 y error .. .java.lang.OutOfMemoryError: Failed to allocate saying 12mb is the max and I hit about 15mb... am I suppose to do something with Picasso to deal with this exactly or release the pictures cached somehow May 07 02:44:45 perhaps you dont something with the views in the rv to prevent them from recycling properly? May 07 02:44:49 doing* May 07 02:49:05 Hm how so, let me get some code up May 07 02:52:14 Hi May 07 02:52:20 R13ose: Hello May 07 02:53:33 When I use this code: http://pastebin.com/VmuX0xh5 to try and open the default gallery app, which could photos or others, the app I created crashes. How do I fix this? May 07 02:55:14 you should really post the error lol May 07 02:59:28 Unfortunately, Plastics has stopped. Name of app May 07 02:59:35 Plastics is the name of the app. **** ENDING LOGGING AT Sat May 07 02:59:58 2016