**** BEGIN LOGGING AT Tue Dec 08 03:00:19 2015 Dec 08 03:00:32 Im gonna try centerInside Dec 08 03:00:44 Nope Dec 08 03:01:49 Either way, thanks for the help liuwenhao Dec 08 03:02:14 You ever implmented CollapsingToolbarLayout? Dec 08 03:02:14 The default scaleType should do it. Dec 08 03:03:04 With adjustViewBounds set to true? Dec 08 03:03:08 I use CoordinatorLayout + AppBarLayout Dec 08 03:03:16 and then just set the toolbar to app:layout_scrollFlags="scroll|enterAlways" Dec 08 03:03:30 Ok, cool Dec 08 03:03:50 TacticalJoke, if I dont use a scaleType, the image does not stretch to the full width of match_parent Dec 08 03:04:08 https://mzgreen.github.io/2015/06/23/How-to-hideshow-Toolbar-when-list-is-scrolling%28part3%29/ @drose379 Dec 08 03:04:12 Isn't that what you want? Dec 08 03:04:16 No I want full width Dec 08 03:04:39 Thanks for the link liuwenhao Dec 08 03:04:39 You already have full width. What do you want different? Dec 08 03:04:46 CollapsingToolbarLayout is similar to implement I think Dec 08 03:05:11 OK, gonna try that here Dec 08 03:05:39 One sec TacticalJoke Dec 08 03:06:01 See what happens here? http://i.imgur.com/eWErGGO.jpg Dec 08 03:06:29 Maybe I should just show a bigger ImageView by default, and use the CollapsingToolbar with this, would be nice Dec 08 03:06:33 You want it to crop? Dec 08 03:06:42 I just wish his face wasent cut out Dec 08 03:06:47 But theres no way around it Dec 08 03:07:13 http://antonioleiva.com/wp-content/uploads/2015/07/collapsing-toolbar-layout.gif like this? Dec 08 03:07:35 Yeah thats beautiful liuwenhao Dec 08 03:07:42 Exactly what I plan on doing too Dec 08 03:07:49 But no FAB Dec 08 03:07:51 http://antonioleiva.com/collapsing-toolbar-layout/ Dec 08 03:08:10 Awesome, but it looks like they are using their own lib there? Dec 08 03:08:16 Doesnt this come with a support lib? Dec 08 03:08:17 Or no? Dec 08 03:08:24 You can do it with support library Dec 08 03:08:29 google around, I don't know of a good tutorial for it Dec 08 03:08:45 Ok, do you think I should just make the ImageView bigger by default? Dec 08 03:08:48 Height-wise Dec 08 03:09:19 Im gonna try wrap_content Dec 08 03:09:20 or get pictures that are better suited to whatever aspect ratio you're using Dec 08 03:09:58 They are coming from an API Dec 08 03:10:08 I have no control over them Dec 08 03:28:55 Cool, kinda works.. Dec 08 03:30:42 liuwenhao, wanna check it out Dec 08 03:36:02 https://vid.me/nK8a Dec 08 03:37:03 Is it ever a good reason to save a users password? Dec 08 03:39:54 eghdk_: If you're dealing with OAuth (as you mentioned before), you won't have access to their password. Dec 08 03:40:42 Nope. Not talking about oAuth now. oAuth definitely got me thinking, but just in general. Isn't it safe to say you should never store the users password? Dec 08 04:03:36 hello has anyone used google fit sdk? Dec 08 04:08:00 JakeWharton: You use bugsnag right? Is there anything specific we can do to make sure that nothing personal gets sent up in the stacktrace? Dec 08 04:09:21 hey all is there a nice little library I can use to go grab a json string for me from a site Dec 08 04:09:25 without having to use async workers Dec 08 04:19:20 prism what? Dec 08 04:21:16 ustream wants 15k/year to use their SDK, :fp: Dec 08 04:49:39 CedricBeust would be nice if SourceTree had a dark theme; doing from darcula to sourcetree is like O.O Dec 08 04:50:46 I don't care, I use an in-between theme (solarized) Dec 08 04:51:31 CedricBeust does that cover everything in AS ? Dec 08 04:51:42 Lot of things Dec 08 04:51:51 the eclipse themes were like 80%. ah ok Dec 08 04:58:35 CedricBeust do you have a high degree of confidence that kotlin will eventually work with instant run Dec 08 04:58:53 Dunno Dec 08 05:01:20 CedricBeust see this? http://blog.ezyang.com/2015/12/the-convergence-of-compilers-build-systems-and-package-managers/ Dec 08 05:01:36 for your work on kobalt ;) Dec 08 05:02:26 hmm, how do i reduce edittext hint size Dec 08 05:18:31 Hey all I want to grab some data from a webservice, I am using the OkHTTPClient Dec 08 05:18:37 but if I use async clients I get Dec 08 05:18:38 A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xb6f1646e in tid 12566 (AsyncTask #2) Dec 08 05:18:50 how can I fetch data without having to use async Dec 08 05:21:49 prism: Are you the guy from earlier? Dec 08 05:21:58 TacticalJoke, yep Dec 08 05:22:00 I might have to write my own damned library to translate OpenDocument files Dec 08 05:22:10 TacticalJoke, I found what caused it Dec 08 05:22:14 Bleh Dec 08 05:23:18 Don't keep me in suspense. :p Dec 08 05:23:27 TacticalJoke, Issue with AMD's Dec 08 05:23:37 and async Dec 08 05:24:01 so to get this working I am going to need to not use async Dec 08 05:24:19 Do you mean "AVDs"? Dec 08 05:24:31 Ologn odf reader? i would think thats a huge amount of work Dec 08 05:24:35 TacticalJoke, no I meant AMD as in the CPU Dec 08 05:24:47 TacticalJoke, there is 2 posts with peopl with the EXACT cpu I have the AMD 1090T Dec 08 05:24:48 g00s, maybe it will be, I'll see Dec 08 05:24:50 with the exact same issue Dec 08 05:24:58 prism: You're seeing this only on the emulator? Dec 08 05:25:02 Ologn itself more than 64k methods :P Dec 08 05:25:11 I can already do CSV and XLSX...so if it is too much work I can punt Dec 08 05:25:14 TacticalJoke, I get that in logcat Dec 08 05:25:38 Is this SIGILL happening on something that isn't an emulator? Dec 08 05:25:52 TacticalJoke, I don't own any compatible devices Dec 08 05:26:20 TacticalJoke, Unless it will run on a ChromeBook or Sony Ericcson :P Dec 08 05:27:20 On a side note, do you have `` declared? Dec 08 05:27:45 TacticalJoke, yep, I this working on an intel system earlier in the day Dec 08 05:27:50 but I had to come home Dec 08 05:27:59 Then I added a few other things and it started crashing Dec 08 05:28:08 so I was not 100% sure if it was just the change of venue that causes it Dec 08 05:28:40 wonder if I can just tell it to emulate ARM instead of x86 Dec 08 05:35:57 TacticalJoke, so ... any idea howto get data from a network place without async? Dec 08 05:36:56 You could do it without AsyncTask, but I don't know what's going on. Maybe your emulator is broken; maybe it's running an ancient version of Android with a bug; who knows. Dec 08 05:37:01 I guess you could try Genymotion. Dec 08 05:37:16 TacticalJoke, when this was going wrong earlier that was with Genymotion Dec 08 05:37:31 TacticalJoke, where now on an entirely different OS and entirely different emulator Dec 08 05:37:39 I installed linux especially Dec 08 05:37:57 could anyone take a look at this and tell me whats wrong? http://pastebin.com/Qwe34UVz Dec 08 05:38:18 ive tried clean builds, but i keep getting this same crash Dec 08 05:39:07 prism: Do you still get the crash if your AsyncTask methods are empty? Dec 08 05:39:59 Or rather the SIGILL. Dec 08 05:40:44 TacticalJoke, testing now Dec 08 05:41:24 im using a library for a navigation drawer, and the crash just randomly started happening whenever i choose a drawer item Dec 08 05:41:29 TacticalJoke, also another fun bit: Dec 08 05:41:36 emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3 Dec 08 05:41:42 it does actually support SSSE3 Dec 08 05:41:48 and is in the cpuinfo lol Dec 08 05:41:56 literally just happening out of nowhere. i removed an unrelated library, that i wasnt even using anymore, and this starts happening Dec 08 05:42:05 drinfernoo: are you setting any options on the drawer? any click listeners for the drawer items? Dec 08 05:42:27 well yeah, but theyve been working perfectly forever Dec 08 05:42:39 drinfernoo: and by chance did you try re-adding that library you just mentioned? Dec 08 05:42:50 not that i know of Dec 08 05:43:17 well if it starts happening right after you remove a library wouldnt it make sense for that to be the first thing to check? Dec 08 05:44:05 its having some problem with a recycler view method, and idk why :( Dec 08 05:44:30 but why would me removing stuff i dont even reference cause problems? Dec 08 05:45:05 we wont know unless you try it now will we :) Dec 08 05:45:23 tbh, i dont even remember what i deleted lol nothing related to the library where the errors coming from Dec 08 05:46:59 drinfernoo: You gotta use version control. Dec 08 05:47:25 Does the samsung note 4 vzw have perm root? Dec 08 05:47:39 Dat: please to be reading channel topic please Dec 08 05:47:50 @Dat ask in #android Dec 08 05:47:51 i use github, but the last commit i did worked Dec 08 05:47:58 oh thx Dec 08 05:48:44 drinfernoo: Compare your changes then....? Dec 08 05:49:40 drinfernoo: If that doesnt give you a result, post an issue for it, mikepenz resolves those things fast Dec 08 05:50:31 can github just roll back changes to a previous commit? Dec 08 05:50:36 Yes Dec 08 05:51:01 https://github.com/blog/2019-how-to-undo-almost-anything-with-git Dec 08 05:51:18 Actually, even easier: https://github.com/blog/1857-introducing-the-revert-button Dec 08 05:52:31 drinfernoo: What I meant was that stuff like "i dont even remember what i deleted" never needs to be said if you're using version control correctly. Dec 08 06:02:09 TacticalJoke its almost xmas, are you releasing soon ? :D :D :D Dec 08 06:02:42 i think we're both in tie for not finishing :P Dec 08 06:03:15 i think i re-did my UI for the 4th time Dec 08 06:04:28 I think it's more likely that one of those people who break into houses on Xmas Eve is the real Santa. Dec 08 06:24:14 ok, so i reverted back to before today, and it still gives me the same error Dec 08 06:24:32 it was working all day until about two hours ago anyway Dec 08 06:28:06 what does that error mean? Dec 08 06:28:37 http://pastebin.com/Qwe34UVz Dec 08 06:29:32 Does anybody know of a XML to Object converter? Dec 08 06:31:01 cart_man XmlPullParser :P Dec 08 06:34:00 g00s: Thanks Dec 08 06:34:35 and now... last night I was told to use Html.fromHTTP() on a really dirty string... but that did not seem to do anything to the string really Dec 08 06:34:38 any ideas? Dec 08 06:36:29 Use a lot of detergent and wash on at least 40. Dec 08 06:37:34 TacticalJoke: I already tried ...this string is seriously dirty.. full of HTML stains :( Dec 08 06:37:59 pre-wash it first Dec 08 06:40:09 cart_man: Why do you want to display HTML? Dec 08 06:41:24 Well I thought Id scrape simple XML from a RSS feed and sort/display it ... I was wrong Dec 08 06:41:52 Riddled with bad nasty ugly html Dec 08 06:42:37 Hmm, HTML is not XML. Dec 08 06:42:42 You need an XML parser. Dec 08 06:44:13 oh god, why is setHint in TextView final :( Dec 08 06:44:25 cart_man, the reason is your html string is not really a html string Dec 08 06:44:34 but an rss feed with some html in it Dec 08 06:47:24 cart_man maybe http://jsoup.org Dec 08 07:01:14 review highlights Dec 08 07:04:12 isn't rss supposed to be valid xml? Dec 08 07:04:35 if so, just retrieve text children of the element you want using an xml parser Dec 08 07:04:47 I forget if rss is legit xml though Dec 08 07:05:04 ok, well... now im getting this http://pastebin.com/LUkgkZE2 Dec 08 07:05:38 which is even more worse, even though i just reverted to a commit from a few days ago, when i know everything was working Dec 08 07:06:02 hello chums! Dec 08 07:06:06 i just dont get it :( Dec 08 07:06:11 Yea no look it turns out to be a pain really Dec 08 07:06:14 pfn, from what ive seen yesterday its valid xml, but the content of the description was (more or less) valid html Dec 08 07:06:26 so he needs to parse the rss, and then html. Dec 08 07:06:39 danijoo, bummer Dec 08 07:07:14 problem is that the rss lib might detect the html as part of the xml and fuck it up Dec 08 07:08:18 you could regex for the description tag and then feed the result in a html parser possibly Dec 08 07:08:28 anybody seen that error before? Dec 08 07:09:56 question, in this picture, http://imgur.com/ZQpqigN see that hex number 1. is that the location of the data in memory? 2. if i have the same "looking" object with different number, does that mean i have two copies of the OBJECT (not reference) in memory? Dec 08 07:12:21 drinfernoo, clean build run Dec 08 07:12:29 done it a thousand times Dec 08 07:12:50 erdos, yes Dec 08 07:12:55 and yes Dec 08 07:12:58 * pfn zzz Dec 08 07:13:20 I've even uninstalled, deleted my local project, and started over fresh with a past commit from my github Dec 08 07:14:02 i don't understand how it could possibly be broken now Dec 08 07:15:33 erdos: It'd help if you added some more arrows. Dec 08 07:15:55 TacticalJoke, lol Dec 08 07:18:54 pfn thank you i love you Dec 08 07:19:57 TacticalJoke: plz refer to to http://imgur.com/TY7TLce Dec 08 07:26:37 good going erdos, you scared him off Dec 08 07:26:40 lol Dec 08 07:27:11 HA! can't take my extreme form of humour, good riddance Dec 08 07:45:32 hello. anyone has any idea PAGECACHE_OVERFLOW in Android app memory info means? Dec 08 07:55:31 hi, is there some way to get the binary produced by ART and disassemble it to find out what code it generated from the bytecode? Dec 08 07:56:17 I'd like to know what kind of optimisations are worth implementing Dec 08 08:05:54 anyone here using eclim? have you got it to work with android-studio projects? Dec 08 08:43:57 hi all does anyone know if the ndk standalone toolchain can work with gcc 5.2 ? Dec 08 08:57:41 Is anybody facing problem with TintManager NoClassDefFoundError in Moto G2 5.0.2? I have proguard and everything setup, only happens in this phone. Dec 08 09:09:08 WantToCode: hey, sounds like someone packaged a different version of the support library in the Moto G2 Dec 08 09:09:14 WantToCode: same problem here https://code.google.com/p/android/issues/detail?id=78377 Dec 08 09:09:48 WantToCode: you can jarjar to repackage the support library.. or proguard repackageclasses Dec 08 09:10:18 Yeah I read this and was afraid that this would be the cause. Dec 08 09:20:21 Napalm, can I see which support lib version is exported in Moto G2? Dec 08 09:20:35 yes Dec 08 09:20:50 use the Class library to load the BuildConfig class Dec 08 09:20:54 ClassLoader Dec 08 09:22:55 I have downvote power on HN, woohoo Dec 08 09:40:43 hi all does anyone know if the ndk standalone toolchain can work with gcc 5.2 ? Dec 08 09:53:59 Napalm, 23.1.1 seems to fix this issue too. https://code.google.com/p/android/issues/detail?id=78377#c286 Dec 08 09:55:27 WantToCode: good to knopw Dec 08 10:11:41 I need to implement an email2sms gateway in a service. It should be running until the user explicitly turns it off. Should I use Service or IntentService? Dec 08 10:11:48 Or something else entirely? Dec 08 10:22:24 Your question is irrelevant. The difference is the way these services operate, not if they can be user controlled or not. You should store some preference if the user wants the service to run or not. If the service is called you check this preference and act accordingly. The only advantage for your problem by using Service, is the fact that you can control the service through startService() and stopService() Dec 08 10:25:43 hi everyone Dec 08 10:25:51 DroidGuy, I mentioned that it should run until turned off to indicate the length of running because some comparisons mentions that Service should not be used for long running tasks which this one is. Dec 08 10:26:14 isthereagirl, hello Dec 08 10:26:17 i have installed android sdk 19 bu ti can not use android.support.v7.widget.Toolbar please help me Dec 08 10:27:13 DroidGuy, what would you use in my case? Dec 08 10:28:26 dokma, it is indeed true that Services should not run for a long time. Maybe you could register a broadcast receiver which listens for a mail intent, when the broadcast receiver is triggered, you can start an AsynchTask which will send the e-mail to the sms gateway.. if the user didn't turn off the functionality Dec 08 10:28:42 I am facing a confusion/problem regarding DSA encryption on Android (the plain text is not same as the decrypted cipher text). My code is uploaded at https://gist.github.com/navalsaini/e87a16927612ad0310b0 . Dec 08 10:29:20 DroidGuy, the thing is that I want to poll a POP3 server every x minutes and that seems to me to be a good task for a service. Dec 08 10:29:21 I would appreciate any tips. This looks like a straight forward implementation, not working correctly. Dec 08 10:30:06 dokma, there's no possibility for push messaging from the server instead of pollin? Dec 08 10:31:24 dokma, is push notifications are not an option you could try using AlarmManager, set an Alarm for x minutes, if the user wants the functionality to run, fire a service which polls the server and on response set a new alarm Dec 08 10:31:27 *if Dec 08 10:31:31 DroidGuy, well... I'm root on the server so there's all the possibilities. Dec 08 10:32:19 using the AlarmManager enables you to only change client side (android code) for push notification you probably need to change server side code too Dec 08 10:32:34 why can not use Toolbar class in my project with android sdk 19 ??? Dec 08 10:32:50 dokma, for push notifications check this: https://github.com/airnotifier/airnotifier Dec 08 10:59:58 One last try... can someone help with a small problem related to DES encryption/decryption in Android - link: http://stackoverflow.com/questions/34153817/problems-with-des-encryption-on-android-decrypted-cyphertext-does-not-match-pla Dec 08 11:00:00 so I'm back to working on the dynamic applicationId/package name thing with sbt, last time I was told to remove specific mentions of the default packange name in AndroidManifest.xml, but it seems like sbt needs me to specify package on the root element Dec 08 11:01:08 sbt gives a NoSuchElementException if I don't od that Dec 08 11:04:37 Hello buddies :) I want to bring my activity from background to foreground from a BroadCastReceiver. I do that by launching an intent with the flag FLAG_ACTIVITY_NEW_TASK. What happens is, it recreates the Activity so I lose my last state of the activity. Why doesn't it call onResume of the Activity? Dec 08 11:09:29 According to Developer's doc, for FLAG_ACTIVITY_NEW_TASK if task already exist, it just put the task to the foreground without creating a new activity. This is not the case, could it be because the device is out of resources and so it recreates? I use an old HTC Sensation running Android 4.0.3. Dec 08 11:10:42 Can you give me a feedback on this mockups? (Note: It was done using Pencil, so those aren't accurate mockups) http://imgur.com/a/K3Iui Dec 08 11:46:20 hello. anyone has any idea PAGECACHE_OVERFLOW in Android app memory info means? Dec 08 11:51:21 1/7 = .142857 repeating. 7*2=14, 14*2=28, 28*2=56. Why 57 instead of 56? idk but 14+28+57=99, so .142857 repeating is like .99 repeating kinda Dec 08 11:57:15 Can I somehow get type from retrofit 2's Call? Due to type erasure I cannot perform any application layer caching (via gson)... What I have is cache(Call call) but that's never going to work Dec 08 11:58:30 cant the Call internally cache Dec 08 11:58:57 hi all does anyone know if the ndk standalone toolchain can work with gcc 5.2 ? Dec 08 12:00:04 deebo: Retrofit uses OkHttp caching which only supports file-based caching, and waits for the request to fail before returning the cache (I want to return the cache first, and then try a network req.) Dec 08 12:04:02 will volley work in that situation? Dec 08 12:04:11 oh he left Dec 08 12:12:37 can I somehow view what fragment is active for debugging purposes? Dec 08 12:15:36 autrilla, try hierarchy viewer. I think it is part of android studio now instead of a command line tool Dec 08 12:16:21 rdnt: hm, can't find it on IDEA Dec 08 12:18:02 Hey I moved my project to a new computer and now I can not seem to build it?When I go "Install repo and sync it say" -> Loading SDK information... Dec 08 12:18:03 There is nothing to install or update. Dec 08 12:18:14 and then just makes the cancel button available Dec 08 12:19:00 rdnt: okay, I see a framelayout, but there's no info about what's inside it Dec 08 12:20:00 it's been a while since i've used it Dec 08 12:20:29 what about adding a log message? Dec 08 12:20:36 autrilla, can you not just log to logcat? Dec 08 12:20:51 canvs2321: log what Dec 08 12:21:00 I don't know what's going on Dec 08 12:21:08 whatever you want to tell you what fragment is loaded Dec 08 12:22:13 what is your debugging purposes, you should get descriptive and show errors/code/etc Dec 08 12:23:21 I add a fragment to sign in with google, it finishes, I remove it, and then the screen goes blank until I press back Dec 08 12:24:20 what screen, your whole activity that parents the fragment? just the fragment container? what is the size of the container, maybe show your fragment code that is relevante Dec 08 12:24:46 maybe with the removing log fragment lifecycle to see what is happening Dec 08 12:25:37 when you remove are you adding a new fragment to same container, or changing activities at all? Dec 08 12:28:12 canvs2321: the activity just has a framelayout to put a fragment in Dec 08 12:28:15 So the whole screen Dec 08 12:29:06 so when you say you are removing are you just trying to use backstack to load fragment that was previous, or are you adding a fragment back after removing when signed in? Dec 08 12:29:52 best bet is to post some code, others can probably chime in Dec 08 12:30:14 maybe to do with your activity and the changing of fragments Dec 08 12:30:24 canvs2321: https://gist.github.com/autrilla/64f5160c4fc598bbbd5a Dec 08 12:30:54 I add a fragment with addFragment, then remove it with removeFragment Dec 08 12:32:55 that code isn't complete, it'll only show signin if a fresh activity run, don't see anything dealing with anything the fragment does and when it is done how it interfaces to the activity to show anything else. your add methods aren't called anywhere Dec 08 12:33:22 is that kotlin? never used it, but that code doesn't do much put load signin fragment if never loaded Dec 08 12:34:22 Hey I moved my project to a new computer and now I can not seem to build it?When I go "Install repo and sync it say" -> Loading SDK information... Dec 08 12:34:25 There is nothing to install or update. Dec 08 12:34:54 canvs2321: well, okay. https://gist.github.com/autrilla/de4d3f3755bbc9580517 Dec 08 12:35:11 canvs2321: yeah, it's kotlin. It's the SignInFragment that adds fragments and removes them Dec 08 12:38:14 If anyone has an idea how to overcome type erasure with Retrofit+OkHttp, answer http://stackoverflow.com/questions/34155912/overcoming-type-erasure-with-retrofit :) Dec 08 12:38:47 dimitrovskif: what? specify your actual type instead of T Dec 08 12:39:05 autrilla: It needs to work with all Call Dec 08 12:39:28 what's wrong with okhttp doing caching anyway? Dec 08 12:39:41 dimitrovskif: well T explicitly erases type information Dec 08 12:39:55 autrilla: The okhttp maintainer told me the caching I wanted should be done outside of okhttp & retrofit Dec 08 12:40:19 Anyone know how to hide the status bar like it is here? http://blog.grafixartist.com/toolbar-animation-with-android-design-support-library/ Dec 08 12:40:43 Im trying to acheive that effect, but when I set my status bar to translucent it just gets the background color of the view Dec 08 12:41:03 autrilla: I tried Interceptors, CallAdapters, extending the Okhttp class and he told me that I should stop trying to do the caching inside those http libraries.. My caching system is supposed to return the cache first, and then try a subsequent network call Dec 08 12:41:14 canvs2321: the fragment is actually getting removed (hence the blank screen), but for some reason I have to press back to get to the previous fragment in the backstack Dec 08 12:51:52 I've cross-built some cmdline tools for armv7 API 15 with -fPIC -pie, but they randomly segfault in random places - anyone know the usual cause? The tools run fine on other OSs and archs. Dec 08 12:54:17 Keep having the issue where you cannot see my white toolbar and status bar icons on certain images, anyone know how to tint the status/action bar: http://i.imgur.com/lWc5s9K.png Dec 08 12:57:38 autrilla: So it's impossible to do the caching? Dec 08 12:57:45 I don't know Dec 08 12:58:14 You should probably ask jake wharton or whatever about your type erasure issue. I don't really know much about retrofit Dec 08 12:58:41 https://github.com/square/retrofit/issues/1346 Dec 08 13:01:19 hey all I create and populate a listview oncreate, but when an async worker finishsin postexecute I call: listViewAdapter.add("test"); Dec 08 13:01:24 which makes the application stop Dec 08 13:01:57 but as far as I can tell that is the correct way to acctually add data to a listview Dec 08 13:03:54 prism: do you do it on the ui thread? Dec 08 13:04:35 or Alchemy as I guess you are called now Dec 08 13:05:01 Why does the app stop? Dec 08 13:05:14 drose379: no debug output Dec 08 13:05:21 None? Dec 08 13:05:21 it just says its stopped functioning then exits Dec 08 13:05:33 There must be output in logcat Dec 08 13:05:40 Disconnected from the target VM, address: 'localhost:8606', transport: 'socket' Dec 08 13:06:09 there is no java lang errors or other Dec 08 13:06:15 wonder if running it in debug throws anything else up Dec 08 13:07:27 12-08 13:06:12.740 7894-7894/com.example.computing.wikilister E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.computing.wikilister, PID: 7894 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ArrayAdapter.add(java.lang.Object)' on a null object reference Dec 08 13:07:40 it however cannot be null though Dec 08 13:07:52 ArrayAdapter listViewAdapter; Dec 08 13:08:17 https://bpaste.net/show/a18bca0477c6 Dec 08 13:09:19 im doing the add in onPostExecute Dec 08 13:09:24 uhm Dec 08 13:09:28 look at lines 21 and 29 Dec 08 13:09:32 yeah Dec 08 13:09:35 local variable Dec 08 13:09:47 you never save it to the class one Dec 08 13:10:23 so I should set that public Dec 08 13:10:37 no... Dec 08 13:10:40 check out java Dec 08 13:10:57 wait no .. I should post back from onPostExecute to the other class Dec 08 13:11:37 even once you fix the scope issue, you'll have race issues with the asynctask Dec 08 13:12:27 You are hiding your instance variable by introducing a local variable of the same name Dec 08 13:13:24 pduin: ah so the adapter is only active within the scope of the oncreate Dec 08 13:13:32 it resets to the global one afterwards Dec 08 13:13:35 As it is now, yes Dec 08 13:13:58 It's a bit confusing if you have never seen it happen before. Dec 08 13:14:43 pduin: seen it under a different name in a different language Dec 08 13:15:20 ok? Dec 08 13:15:53 It's possible in OBJC for example. But the compiler will warn you about it. Dec 08 13:16:10 Not sure if that's the case with the java compiler Dec 08 13:16:49 pduin: no warnings Dec 08 13:17:25 Ok. You need to stay vigilant then :) Dec 08 13:17:26 so I bet I could get around this by, using: protected ArrayAdapter listViewAdapter = new ArrayAdapter(this,android.R.layout.simple_list_item_1,listViewBase); as an instance variable Dec 08 13:17:35 therefor no creation of local in oncreate? Dec 08 13:17:48 false Dec 08 13:17:49 just dont declare the local one Dec 08 13:18:07 protip: remove 'ArrayAdapter' from the onCreate Dec 08 13:18:32 something tels me you should do some basic java courses before trying something complicated... Dec 08 13:19:15 ok so now I have https://bpaste.net/show/ef146d6bce6c Dec 08 13:20:14 and do you see why it should work better now? Dec 08 13:20:41 That looks like it should work. I'd execute the AsyncTask after setting up the list view adapter though Dec 08 13:21:11 pduin: yeah otherwise the async might finish before listview is initilized Dec 08 13:21:23 bingo Dec 08 13:21:56 Yes, the task depends on the adapter being initialized. Dec 08 13:22:03 interesting just changed the error Dec 08 13:22:07 apparently the adpater does not support .add Dec 08 13:22:24 hmm, why we are onto stupid questions... is it worth changing out your listviews for recycleviews? Dec 08 13:22:25 https://bpaste.net/show/f6d56aaa0e13 Dec 08 13:22:37 recycleviews, ill have to take a peak Dec 08 13:22:53 take a peek with java first Dec 08 13:23:41 I have to change some views to make them work with appcompat and wonder if I should just change the listviews while I'm on it Dec 08 13:23:45 Eplebit: mhmm would be a little pointless for something this small, the async worker just grabs a json and shoves it into a list view. then thats it, app done:) Dec 08 13:23:46 or if it's not worth it Dec 08 13:24:32 Eplebit, if listview does what you want then stay with it. if you are wanting more control with display then start playin with recyclerview Dec 08 13:24:47 ok, thanks Dec 08 13:25:05 I have a ListView that has selectable rows. Now that I added a CheckBox to thsi ListView only the CheckBox is selectable, however I can no longer select rows. I googled this and found the suggestion to set the attributes for the CheckBox setFocusable and setFocusableInTouchMode to false, but this does not solve it either. Any ideas how I can get this to Dec 08 13:25:05 work? Dec 08 13:25:33 Can someone please tell me why AS tells me to "Install Repository and sync projecy" does NOTHING when clicked and then shows up again? Dec 08 13:26:00 cart_man: maybe its failing somehow, but does need to be run Dec 08 13:30:51 Does anyone have bad performance with IntelliJ IDEA and kotlin? Dec 08 13:31:28 Alchemy,Hmmm ... yea that confused me a bit more Dec 08 13:35:16 Eplebit: Dec 08 13:35:28 I think I ma getting that erorr because im using a fixed length array Dec 08 13:35:33 size is static, Dec 08 13:35:54 but when I swap over to using a list, it says it cannot resolve Dec 08 13:36:00 what am I missing here -_- Dec 08 13:37:15 I attemped to use ArrayList Dec 08 13:37:27 but then .. listViewAdapter=new ArrayList(this,android.R.layout.simple_list_item_1,listViewBase); Dec 08 13:37:35 Cannot resolve constructor Dec 08 13:52:34 hypothetically.. can i change Android API by using reflection? Dec 08 13:53:47 Alchemy: you are trying to make an adapter by using ArrayList contructor? Dec 08 13:56:00 AlmogBaku: change? no. Dec 08 13:56:08 I need to wrap it.. Dec 08 13:58:15 so, the only thing I can change with reflection is if its private or public? Dec 08 14:02:54 you cant change anything but fields with reflection. Dec 08 14:03:00 you cant change an api with it. Dec 08 14:03:42 and with "Instrumentation" Dec 08 14:03:42 ? Dec 08 14:06:11 i dont know if android can do runtime instrumentation. Dec 08 14:06:19 i kind of doubt it. Dec 08 14:06:47 but it's a pretty terrible idea anyway. Dec 08 14:07:01 AOP can get messy very easily, just like extension methods. Dec 08 14:07:07 i know 😈 Dec 08 14:07:22 but i have no other way to do it :( Dec 08 14:26:03 cannot be done Dec 08 14:26:30 requires code generation, next to impossible to do well with dex Dec 08 14:27:21 Hey pfn have you ever worked with CollapsingToolbarLayout? Im having an issue where im showing an image with a transparent toolbar and sometimes the colors of the image dont go well with the white toolbar icons Dec 08 14:27:40 Can I apply a tint to the transparent toolbar or something? I can show a recording of an example if my description does not make sense Dec 08 14:28:12 there are examples of how to handle that in the material design for developers course on Udacity Dec 08 14:28:29 Oh really Dec 08 14:30:10 pfn do you have a link to that by any chance? Dec 08 14:32:46 google udacity and look at their list of courses Dec 08 14:32:54 drose379 it's called android materials Dec 08 14:33:10 Thanks Taios Dec 08 14:33:24 I would well recommend their android courses. I did their intermediate/advanced ones after 6 months of dev and it filled in a lot of gaps of things I didn't know about =) Dec 08 14:33:41 How much was it? Dec 08 14:33:43 $ Dec 08 14:34:02 Hello guys, my MainActiovity's onNewIntent() callback is not called when I fire an intent from a BroadcastReceiver. This happens if I process the intent from onCreate(). If I don't process the intent in onCreate(), onNewIntent() is called. See link: http://pastebin.com/ELhzZxF1 What I want is to launch my app from notification to show the complete message in the Activity by showing it in a Dialog. Dec 08 14:34:23 Free =) Dec 08 14:34:37 There's paid options to get certificate stuff but you can just click freeware/free version Dec 08 14:34:55 drose379, the design course is free, and Google that title Dec 08 14:35:13 Would this be it: https://www.udacity.com/course/viewer#!/c-ud855/l-4326960273/m-4329086234 Dec 08 14:36:20 no Dec 08 14:36:25 I gave you the title Dec 08 14:37:26 Found thanks pfn Dec 08 14:39:24 Im trying to find the part where they talk about the issue im havin Dec 08 14:40:01 Looks like it wont let me skip around without answering questions Dec 08 14:45:43 howdy Dec 08 14:46:20 What would prevent AppCompatt.requestPermissions from displaying a dialog box? Dec 08 14:47:28 if you've presented it too many times it will block you and force the user to manually go to the permissions panel Dec 08 14:48:55 you may also need to call shouldShowRequestPermissionRationale; I don't know if it has a state machine or if that's just there for completeness. http://developer.android.com/training/permissions/requesting.html Dec 08 14:49:19 dragorn, it hasn't ever presented itself. Dec 08 14:49:34 I'll try the rationale thing real quick Dec 08 14:55:36 dragorn, do I understand it correctly that requestPermissions WILL show a popup dialog? Dec 08 14:56:27 it should pop up the generic dialog, yeah Dec 08 14:56:38 hi all does anyone know if the ndk standalone toolchain can work with gcc 5.2 ? Dec 08 14:57:28 you're built with api 23? you're presumably on a api 23 device? you haven't already given it permission? Dec 08 14:57:30 Tazmain, no, newest GCC in NDK is 4.9 Dec 08 14:57:37 Tazmain, and LLVM 4.2 Dec 08 14:57:59 Tazmain, the ndk has it's own compilers, it doesn't matter what your system gcc is (or shouldn't). Dec 08 14:58:20 ah okay cool. Dec 08 14:58:27 hey all in listView if I just 'add' then I get a 'header' how do I write to the 'sub item' like in the example Dec 08 14:58:44 NDK is badly due for an update tho :/ Dec 08 14:58:44 you could make your own cross-compilers and build, but you'd need to link against bionic not libc (or include libc) Dec 08 14:59:07 well its giving me issues with trying to compile libcurl Dec 08 14:59:33 Why would libcurl of all of things require GCC 5.2? O.o Dec 08 14:59:39 That probably compiles with GCC3 Dec 08 15:00:18 yeah it's almost certainly some issue with your android.mk config then for libcurl Dec 08 15:00:35 It's a C lib anyway, we didn't see any huge changes from GCC 3 :) Dec 08 15:03:41 well I thought the toolchain uses my gcc on my system to create whatever Dec 08 15:03:46 I have the standard listview working ofc Dec 08 15:03:57 what type of adapter is it using in the example in android studio anyhow Dec 08 15:04:04 it actually looks exactly how I would like it lol Dec 08 15:04:53 Tazmain, nop, NDK is actually a package of bundled GCC / clang and some scripts :) Dec 08 15:05:09 oh interesting. Dec 08 15:05:09 But we might help you if you actually describe what's going on Dec 08 15:05:25 can anyone help me with this? Dec 08 15:05:26 make: *** No rule to make target 'out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by 'out/target/product/tomato/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes'. Stop. Dec 08 15:05:26 usually setting CC, CXX, LD, AR is enough Dec 08 15:07:06 tomato? you building an openwrt thing or something? Dec 08 15:07:06 well let me start at the begining , do I need to set sysroot and CC ? and when I run the make-standalone-toolchain.sh , what platform number do I need to set 21 ? Dec 08 15:07:26 Tazmain, the lowest you want to support Dec 08 15:07:33 is that android version ? Dec 08 15:07:41 Yeah, Android API version Dec 08 15:08:06 There's not a toolchain for each, so you set the one that's older or equal to the minimal version you want to support Dec 08 15:09:10 Just one question guys. when do you like to help others about Android programming? Because I asked a question and nobody answered me, I'm curious about what's the cause that nobody answered me. Dec 08 15:09:17 Tazmain, this is how I compile ffmpeg for Android if it helps: https://gist.github.com/izacus/9c7536a53d26649a5041 Dec 08 15:09:36 or better said, what's the reason to not answer me :) Dec 08 15:10:21 Number5, either noone noticed, was around at that second or didn't read you question :/ Dec 08 15:10:59 or people simply don't know the answer :/ Dec 08 15:11:05 if only that was libcurl :p Dec 08 15:11:51 Mavrik, ok, thnx. It was indeed a bit complex problem. Because the problem I had was due to a Android API bug. Dec 08 15:11:56 Tazmain, then I'd have to charge you a consulting fee ;) Dec 08 15:12:16 Luckily I solved it by a hint of StackOverflow. Dec 08 15:12:41 Number5, btw, onNewIntent says that your intent needs to have SINGLE_TOP flag or activity needs to have singleTop launch mode. Dec 08 15:12:45 Might be that? Dec 08 15:13:02 Number5: or perhaps you should rephrase/clarify the question Dec 08 15:13:11 (I didn't read it) Dec 08 15:13:34 Nothing wrong with his question, it just covers one of the swamps of Android strange behaviour. Dec 08 15:13:47 Mavrik, yes, but the solution is you need BOTH! I only defined singleTop in Manifest, but didn't add the Flag to the intent. Dec 08 15:14:11 what happens to the intent if you don't add the flag Dec 08 15:14:49 Mavrik, getting this error when I try compile the toolchain ERROR: Cannot copy to directory: /tmp/ndk-green/tmp/build-7121/standalone/arm-linux-androideabi-4.8 . I ran it with this command $NDK/build/tools/make-standalone-toolchain.sh --arch=arm --platform=android-21 --install-dir=antc/ Dec 08 15:14:58 although, it is a little undefined in terms of behavior Dec 08 15:15:12 pin, the onNewIntent() callback won't be called if it the intent's extra was fetched in onCreate(). Dec 08 15:15:15 manifest launch flags are only for launching from activity manager Dec 08 15:15:22 as I understand it Dec 08 15:15:34 Number5, that makes no sense Dec 08 15:15:44 arg /tmp is full again Dec 08 15:15:45 and you suck at nick completion Dec 08 15:15:53 pfn, voila :) Dec 08 15:16:07 Number5, I'm sure something else is going on there Dec 08 15:16:16 pfn, blame it to mac osx Dec 08 15:16:19 fetching extra would not result in this behavior Dec 08 15:16:53 pfn, sire, but to me it solved the problem. :) Dec 08 15:17:06 Mavrik, thnx my friend :) Dec 08 15:17:52 Mavrik, okay got my toolchain, so AFAIK libcurl only needs gcc Dec 08 15:17:57 so do I need to set CC now ? Dec 08 15:18:02 pfn, I tested it on a HTC Sensation with Android 4.0.3 and it has this bug. But if you don't believe, Google is your friend. Dec 08 15:20:04 pfn, have some fun: https://code.google.com/p/android/issues/detail?id=17137 Dec 08 15:21:31 hey all if I have a json Array: JSONArray resultNames = jObj.getJSONArray(1); Dec 08 15:21:40 I should be able to loop on resultNames.length() Dec 08 15:21:49 Number5, only a bug in 4.0, don't care Dec 08 15:21:52 and resultNames.getString(i); should be each element id right Dec 08 15:22:05 it seems to be bailing though I know the arrays are correct Dec 08 15:22:07 that's below minSdkVersion for many apps now Dec 08 15:22:24 pfn, have a nice day :) Dec 08 15:23:29 nice find though Dec 08 15:23:46 Alchemy, what is exactly your problem? Dec 08 15:23:53 ["Test","Testosterone","Testudo elephantopus","Testicle","Test... Dec 08 15:24:04 is from a breakpoint for resultNames Dec 08 15:24:21 Number5: well I do a for loop on the length of the JSONObject, resultNames Dec 08 15:24:35 but it stops the second I fetch a record with: resultNames.getString(i); Dec 08 15:24:41 where i is 0 to length Dec 08 15:24:59 I can't see why Dec 08 15:24:59 Alchemy, I think it's not an array, but a dictionary, which is a bit different Dec 08 15:25:46 hmm Dec 08 15:25:50 how do I access one of those Dec 08 15:26:34 Alchemy, can you do a size of your array? Dec 08 15:27:11 btw, how does you for loop looks like? Dec 08 15:27:48 https://bpaste.net/show/db4fc30ec01e Dec 08 15:28:07 the breakpoint's break and leave that try, the second it hits songArrayAdapter.add(resultNames.getString(i)); Dec 08 15:29:16 odd google seems to say im right Dec 08 15:29:42 wait a minute hmm Dec 08 15:30:27 yeah the debugger is saying an array of strings Dec 08 15:30:34 Mavrik, okay got it to the error part again. I have a config.log , can I upload that to sprunge and you have a look at it ? Dec 08 15:30:36 well an arraylist of strings Dec 08 15:31:08 I get this error checking whether the C compiler works... no Dec 08 15:31:23 Alchemy, try to get the String from resultNames.getString(i) first and than do songArrayAdapter.add(resultNames.getString(i)); And put a breakpoint on the first line and see resultNames.getString(i) looks like. Dec 08 15:33:05 String BLAH = resultNames.getString(i); Dec 08 15:33:13 lets see which is actually upsetting it :) Dec 08 15:33:19 yes Dec 08 15:33:37 oh suprise supise its the useless bloody listViewAdapter.add(BLAH); as usual Dec 08 15:34:03 im starting to hope listview's burn in a firesomewhere -_- Dec 08 15:34:15 Listviews are amazing Alchemy Dec 08 15:34:34 doing it wrong is your fault Dec 08 15:34:35 Alchemy, listviewadapter is just a simple adapter to show strings Dec 08 15:34:51 Number5: Yeah its probably because im calling it within an async worker thread Dec 08 15:35:03 Alchemy, aha. Dec 08 15:35:18 was hoping for an easy life without having to pass those JSON objects back to main Dec 08 15:35:20 well it's also not the right place to update the listview from another thread Dec 08 15:36:05 Alchemy, you can put the result into a custom object and than pass it to the main thread. Dec 08 15:36:28 Mavrik, dude <3 I love you, your example helped me soooo much. Do I need to do make install at the end ? Dec 08 15:36:37 Number5: yep just doing that now :) Dec 08 15:37:02 Alchemy, well, now you know what the problem, good luck :) Dec 08 15:39:40 nooo! grrr. I have libcurl build for arm , why can't I import it ! Dec 08 15:42:13 qt creator can compile this for x86 but not android I give up Dec 08 15:43:55 you're not going to be able to compile it for android from a stock toolchain Dec 08 15:44:26 like I said above, heh. Android doesn't use libc. So even if you compile it for arm, you can't link against libc - unless you embed your own libc copy (bad times b/c of symbol collisions) Dec 08 15:44:38 or link it statically (can't do it with a so) Dec 08 15:45:08 how do I copy my built libcurl to the android sysroot, where does it need to go ? Dec 08 15:45:55 Number5: I got it working, but I have a feeling how I got it working was ... naughty lol https://bpaste.net/show/c9a3f56b396e Dec 08 15:46:00 fine or horrible? Dec 08 15:46:00 dragorn, so what do I do then ? Dec 08 15:49:18 you have to make an android.mk and compile it with the ndk toolchain Dec 08 15:49:51 if you managed to compile it with something else, as long as it's linked to bionic properly, you can include it from whatever using your own android.mk Dec 08 15:51:14 android.mk ? Dec 08 15:51:35 so simply configuring libcurl with the standalone toolchain and CC won't work Dec 08 15:53:28 would anyone be willing to spend 10 minutes with me helping me make a shared listview so I can have 'Header', 'Subheader...' Dec 08 15:53:30 Alchemy, that's much better :) Dec 08 15:53:35 got the 'Header' ... version working fine Dec 08 15:53:59 Number5: I thought it looked a little odd doing it that way, im suprised there is not an easier method to get a real String array back from a JsobArray Dec 08 15:54:05 without for'ing them Dec 08 15:54:43 hello. i'm working with a PreferenceScreen that I would like to share across a few different things that have all the same settings parameters. how could i do this dynamically? like set the "key" to be unique for each of those Dec 08 15:55:06 this is more headache than it's worth Dec 08 15:55:09 Once again, it's a dictionary concept, key-value. 'name'='Obama' Dec 08 15:57:25 Alchemy, a library to do for you the most work instead of you doing it is "Retrofit". https://guides.codepath.com/android/Consuming-APIs-with-Retrofit good luck Dec 08 15:58:17 Number5: I tried that earlier it was one of the most confusing things I have ever seen lol Dec 08 15:58:31 mmm less learnt, don't uninstall curl and try reinstall it, if your package manager needs it Dec 08 15:58:45 lesson * Dec 08 15:59:06 why would you mess about with your system curl anyhow :o Dec 08 15:59:22 because I ran make install by accident Dec 08 15:59:33 Alchemy, LOL! Dec 08 15:59:55 Number5, wrong person Dec 08 16:00:19 Tazmain: if your running a binary distribution you can perhaps scrap another copy out of a source iso Dec 08 16:00:25 go grab it with wget, mount it loop etc Dec 08 16:00:32 Tazmain, what do you mean? Dec 08 16:00:33 not arch Dec 08 16:00:59 Number5, you laughed at him right? I thought that should have been towards me since I removed my curl Dec 08 16:01:12 Alchemy, so arch that is part of the base, with pacstrap Dec 08 16:01:50 Tazmain, it was at Alchemy not you. But what's your problem anyway? Didn't follow your situation Dec 08 16:02:04 oh haha sorry then Number5 Dec 08 16:03:44 Number5: I am a bit new :) I managed to get my application working amazingly enough but I have been reading howto get a listview with two cols of information Dec 08 16:03:47 Header Dec 08 16:03:49 sub Item Dec 08 16:03:53 and I just flat out don't get it Dec 08 16:04:08 not even vaguely, so I was hoping for a bit of hand holding if possible Dec 08 16:04:51 well I say not even vaguely ... I get it vaguely enough to not be able to understand howto do it for my data types :) Dec 08 16:05:04 Alchemy, what do you mean by two columns? like a table? or a list cell with two parts in it? Dec 08 16:05:16 Number5: you know when you create a list view and the default list comes up Dec 08 16:05:19 Item 1 Dec 08 16:05:21 sub Item 1 Dec 08 16:05:42 I want that type of list for my application, at the moment I have Item 1, Item 2, Item 3, Dec 08 16:06:07 I believe I need to use simple_expandable_list_item_2 instead of simple_expandable_list_item_1 Dec 08 16:06:16 but it just explodes if I just swap it Dec 08 16:06:35 dragorn, so I am going to see if I can use QNetwork and QNetworkRequest to do the same, since that would compile Dec 08 16:06:46 Alchemy, that's indeed a tricky part. I recommend you first to create a custom listview with each cell having an image and a title. If you understand this, you can than try header -> item -> sub item. Dec 08 16:07:11 Number5: actually a touch eaiser in my case don't need an image Dec 08 16:07:20 I have 2 string arrays, I want one for the headers, one for the sub items Dec 08 16:07:22 Tazmain, why do you need curl or Network...? Dec 08 16:07:45 Number5, I was using libcurl to do the HTTP get with basic auth Dec 08 16:08:45 Alchemy, as I told you, first try to understand normal listview with custom cells and custom adapter. From there on you can do header stuff and so on. You have to pass the first part, really. Dec 08 16:09:17 Tazmain, http get is quite standard my friend. Dec 08 16:09:46 Number5, needs basic auth, and I have not done this before. I know http get is standard, but I need to login Dec 08 16:10:49 * pfn <3 allDevices = true Dec 08 16:10:49 Tazmain, you can post with standard android http library. Although I haven't done that yet, but I'm sure it's built in. I'll check a link for you Dec 08 16:11:04 for posting use this Dec 08 16:11:24 http://square.github.io/okhttp/ Dec 08 16:11:30 seriously insanely easy http stuff Dec 08 16:11:36 post,oauth,get Dec 08 16:11:41 whatever you want :P Dec 08 16:12:26 Tazmain, Alchemy already gave you a good one, you can also read this: http://developer.android.com/training/volley/simple.html Dec 08 16:12:41 They use Volley for that, which is very popular too. Dec 08 16:13:35 I still have no idea why I have to press back after removing a fragment to have the one under it on the backstack show. The screen just stays blank until I do so Dec 08 16:14:25 commit the transaction? Dec 08 16:14:55 pfn: I do commit it Dec 08 16:15:20 pfn: could it have to do with me using .replace instead of .add? Dec 08 16:15:34 probably not Dec 08 16:16:20 autrilla fragment woes? Dec 08 16:16:20 Is there a way to check what the content of the FrameLayout I put my fragments in is? Dec 08 16:16:32 this is a good primer https://github.com/codepath/android_guides/wiki/Creating-and-Using-Fragments Dec 08 16:16:55 hi all, do beta downloads count toward the overall download count on the Play store? Dec 08 16:16:56 autrilla, you when you add a new fragment, make sure you add and not replace Dec 08 16:17:05 (my boss is concerned about ASO) Dec 08 16:17:13 Number5: what's wrong with replacing? Dec 08 16:17:36 well, it won't added to the stack Dec 08 16:17:57 so when you pop, you have nothing left on the stack :) Dec 08 16:18:02 Number5: even if you call addToBackStack? Dec 08 16:18:25 autrilla, I don't remember I use that method Dec 08 16:19:21 how do I add an onclick event to listview items when I add them? Dec 08 16:19:24 autrilla, do you call addToBackStack(null)? Dec 08 16:19:30 I am adding dynamically, so I cannot do it oncreate Dec 08 16:19:31 Number5: yes Dec 08 16:20:09 Alchemy, setListviewOnItemClickListener or something like that. Boys, you can find a lot on google. So with a little bit of effort... Dec 08 16:20:23 I was always using .add but you could 'click through' fragments, and pfn suggested I use .replace instead. Dec 08 16:20:42 well, if your fragment doesn't capture clicks, of course it will click through Dec 08 16:20:43 Number5: I found so much on google I should have a thousand different ways, but alot of them don't work ;) Dec 08 16:20:48 autrilla, what's exactly your problem? Dec 08 16:20:55 and yes, replace is the correct idiom there Dec 08 16:21:30 Alchemy, an item click listener is easy to find ;) Dec 08 16:21:56 Number5: as I said, after I remove a fragment, I get a blank screen and I have to press back to get to my main fragment Dec 08 16:22:13 Number5: I found several its just I can't find one that seems to specify howto add it when im not extending Textview and also creating records dynamically Dec 08 16:22:19 autrilla, how do you remove? Dec 08 16:23:01 there is also FragmentManager.popBackStack(); if you want to control the backstack yourself Dec 08 16:24:21 Number5: the main fragment gets called by a secondary fragment when the secondary fragment is done, and the main fragment then calls the activity, passing it a reference to the secondary fragment, which then just removes it (using a FragmentTransaction etc) Dec 08 16:24:34 Alchemy, ListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {} .... Dec 08 16:24:37 There you go Dec 08 16:24:38 The issue I'm talking about only happens with fragments I .replace Dec 08 16:27:01 autrilla, I don't quite follow you my friend. The concept is MainActivity -> Fragment A -> Fragment B -> Fragment C -> Fragment B -> Fragment A. Dec 08 16:27:28 Number5, well qtcreator is a lot easier to use than android studio in terms of the UI elements. Dec 08 16:28:39 Tazmain, we're talking about Fragments. I still don't understand what you want to achieve. Dec 08 16:29:10 SignInActivity starts SignInFragment, which then starts FarmnetSignInFragment (by telling SignInActivity to replace SignInFragment with FarmnetSignInFragment). Once FarmnetSignInFragment is done, it calls SignInFragment, which tells SignInActivity to remove FarmnetSignInFragment. Then, the screen stays blank until I press back, and when I do, SignInFragment's UI is shown Dec 08 16:30:05 Hey is there some way I can fit a miniBrowser into my app? Dec 08 16:30:20 cart_man: a WebView? Dec 08 16:30:35 autrilla: As you said it I found i t... Dec 08 16:30:37 LOl Dec 08 16:30:55 Number5, will explain in a bit Dec 08 16:30:57 anyway .. .do you think that it has all the capability of Chrome ? Dec 08 16:31:04 cart_man: no Dec 08 16:31:17 Awww... bummer.. well Ill check how it performs Dec 08 16:32:19 You miss some basic things. In your fragment, create some interface methods that your main Activity has to implement. you can than call those method in the Main Activity. I hope you understand what I mean. Dec 08 16:32:40 Number5: I am already doing what you just said Dec 08 16:32:52 cart_man, yes, use a WebView. Dec 08 16:33:49 autrilla, I have to go. I'm sorry. I hope some other guys can help you. Dec 08 16:34:00 Number5: Do you have allot of experience with WebView? Dec 08 16:34:10 Number5: AWww Dec 08 16:34:27 cart_man, it's just a mini browser :P Dec 08 16:34:32 But I've to go now Dec 08 16:34:37 have a nice day boys Dec 08 16:34:58 pfn: is there a way to check what fragment(s) currently live in my layout element? Dec 08 16:35:09 hierarchyviewer Dec 08 16:35:24 pfn: yup, tried that, it just shows the FrameLayout Dec 08 16:35:37 An empty one. I guess that means there's no fragment in it Dec 08 16:36:27 indeed Dec 08 16:36:49 that makes sense, as I just removed it, but shouldn't the previous fragment on the backstack take its place? Dec 08 16:38:36 this thing is pretty cool https://github.com/michaldrabik/TapBarMenu Dec 08 16:39:19 g00s: indeed, nice animation too Dec 08 16:40:19 how can i get the uri of my cache? Dec 08 16:42:57 how do I look up the name of the package I am current in Dec 08 16:42:59 dynamically Dec 08 16:43:14 pfn: aha. Removing a fragment won't show the one it replaced, obviously, as .replace is just .remove.add Dec 08 16:43:21 autrilla, correct Dec 08 16:44:05 Just popping the backstack works. Dec 08 16:44:13 * autrilla renames his removeFragment method Dec 08 16:44:26 Alchemy safe bet its in PackageManager someplace Dec 08 16:44:40 seems very googleable Dec 08 16:44:55 g00s: was that for me? Dec 08 16:45:05 eh Dec 08 16:45:06 ignore me Dec 08 16:45:09 * autrilla can't read Dec 08 16:45:36 autrilla was for Alchemy Dec 08 17:08:57 how would someone synchronize two different functions? i.e. if either is being accessed neither can be accessed by another thread? Dec 08 17:12:16 synchronize them on the same object. Dec 08 17:14:15 that wont work. Dec 08 17:14:31 or im not understanding how to sync on entry, unsync on exit from each function Dec 08 17:15:41 how EXACTLY ? Dec 08 17:19:20 void function1() { synchromized(this) { your code }} Dec 08 17:19:25 same for function 2 Dec 08 17:19:36 can't you google that ? Dec 08 17:19:50 I'm not even a java dev Dec 08 17:20:20 that just means if f1 is running f1 cant be run in a different thread Dec 08 17:20:23 ..or just synchronized void finction1() {} Dec 08 17:20:31 i want f1 AND f2 blocked if either f1 and f2 is running Dec 08 17:20:37 no that means if f1 is running f2 will wait Dec 08 17:20:41 yes Dec 08 17:20:46 https://docs.oracle.com/javase/tutorial/essential/concurrency/locksync.html Dec 08 17:21:15 just mark both f1 and f2 as syncrhonized and they will be mutually exclusive? Dec 08 17:21:22 no Dec 08 17:21:43 you didn not read my snippet ? Dec 08 17:21:58 i did read it. i dont understand how it does what your saying it does Dec 08 17:22:10 reading the doc help Dec 08 17:22:17 s Dec 08 17:22:19 I440r java concurrency is a big topic Dec 08 17:22:36 g00s concurrency anywhere is a big topic Dec 08 17:23:27 not when speaking about green threads tho Dec 08 17:23:59 i do not understand what you are telling me to do here. put synchronized(this) in both functions does not seem like it makes them both mutually exclusive Dec 08 17:24:00 synchronized void function() { code } != void function() { syncrhonized(obj) { code } } Dec 08 17:24:35 synchronized f1 and f2 is sufficient Dec 08 17:25:08 synchronized f1() { } synchronized f2() { } Dec 08 17:25:12 I440r: do f1 and f2 belong to different classes? Dec 08 17:25:18 that does not seem to me to make f1 and f2 mutually exclusive Dec 08 17:25:20 indeed Dec 08 17:25:22 they are in the same class Dec 08 17:25:28 are they running in the same process Dec 08 17:25:33 no Dec 08 17:25:40 uhhhh Dec 08 17:25:44 yes Dec 08 17:25:44 not same thread but same process Dec 08 17:25:53 whew Dec 08 17:26:14 doesn’t Java have a Mutex object? Dec 08 17:26:39 synchronized f1() { } synchronized f2() { } will work just fine Dec 08 17:26:53 I didn't undestrand synchronized methods at first, but as pfn said it us sufficient Dec 08 17:27:35 the synchronizd(object) stuff is for more finely grained syncrhonization Dec 08 17:28:03 that's exactly how java lock monitors works Dec 08 17:28:46 so ALL methods in a class that are marked syncrhonized will be mutually exclusive? Dec 08 17:28:51 yes Dec 08 17:28:57 https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html Dec 08 17:30:21 all i can say is thank god both of these functions are in the same class lol Dec 08 17:31:23 I440r: nothing prevents you from explicitly synchronizing on instances or class objects Dec 08 17:32:21 not mutually exclusive, locks are reentrant Dec 08 17:32:33 but good enough for what you want Dec 08 17:33:04 pfn if function 1 and function 2 can execute in different threads at the same time then the app crashes. im still seeing the crash Dec 08 17:33:12 maybe I missed it, but why do you need these functions to be mutually exclusive? That sounds like a recipe for disaster Dec 08 17:33:19 one thread is adding a MOB to the list while another thread is killing one Dec 08 17:33:30 the count gets screwed up and the game gets lost in space Dec 08 17:33:38 that can't happen Dec 08 17:33:38 lol Dec 08 17:33:41 f1 must lock f2. f2 MUST lock f1 Dec 08 17:33:45 pigs ... in ... space Dec 08 17:33:51 that's what synchronized does Dec 08 17:35:37 i have marked both f1 and f2 as syncrhonized and im still seeing the mob count get scrwed up. Dec 08 17:36:02 I440r: you don't happen to have them f1 and f2 in some inner classes? Dec 08 17:36:08 so you have a list of mobs. and different threads can mutate this Dec 08 17:36:21 why aren’t they just asking the list how many mobs it has? Dec 08 17:36:24 I440r: are they both in the same class and in the same object Dec 08 17:36:34 f1 is only called from that class. f2 is called from another class/thread too Dec 08 17:36:43 they are static Dec 08 17:36:55 ew, static synchronized. Dec 08 17:37:02 yeah, static isn’t going to help you Dec 08 17:37:06 but okay, that will work. your problem is somewhere else. Dec 08 17:37:14 oh yea i heared that was a nightmare somewhere Dec 08 17:37:21 time to rethink :) Dec 08 17:37:29 I was gonna suggest a Semaphore: http://developer.android.com/reference/java/util/concurrent/Semaphore.html Dec 08 17:37:34 are they BOTH static? Dec 08 17:37:42 yes Dec 08 17:37:51 s73v3r: semaphore is useless here. Dec 08 17:38:11 well, not useless, but not better than synchronized or a lock. Dec 08 17:40:40 I440r: are you sure the crash is happening inside both of f1 and f2 Dec 08 17:40:45 static synchronized does the right thing Dec 08 17:41:24 so yes, it will help you there Dec 08 17:41:48 basically what is happening is mobs are being spawned and despawned. i can see the mob count in the logs and i see it go to 0 when i can plainly see three mobs still in the game Dec 08 17:41:59 I440r: paste the code please. Dec 08 17:42:12 it's most certainly a logic issue Dec 08 17:42:22 pfn yes i know Dec 08 17:42:47 l440r: What is keeping track of the mobs? Dec 08 17:42:53 i have an array of mobs. the mob class has a location. if the locaction is -1 then that mob is dead and its instance can be recycled... Dec 08 17:42:56 and why aren’t you just asking the list itself how many it has? Dec 08 17:43:11 i keep a count of live mobs. somewhere something is screwing up Dec 08 17:43:21 its just an array not a list Dec 08 17:43:28 thats what i meant by time for a rethink :) Dec 08 17:43:46 From the stock Android Contact app, when tapping on a contact, the "view" that pops up can be exited by swiping down. Are there articles or documentation that I can consult to replicate that behaviour? Dec 08 17:43:55 i do not want to be allocating and discarding mob structures with a list Dec 08 17:44:03 mcoffee, you can read the source Dec 08 17:44:14 so i would have to cache the structures for reuse. not a problem tho Dec 08 17:44:16 collection then, whatever Dec 08 17:44:32 pfn: thanks Dec 08 17:44:41 I440r: lists are fast. you probably shouldnt worry about that. Dec 08 17:45:02 yawkat, im worried about memory use. this game is FREEEEEEEEEKING HUGE lol Dec 08 17:45:14 im doing everything i can to minimize garbage Dec 08 17:45:17 lists take little memory Dec 08 17:45:19 ^ Dec 08 17:45:40 using arrays to do it yourself is a bad idea. Dec 08 17:45:46 it's probably slower, in fact. Dec 08 17:46:07 yawkat, yea im nub at this, i already know to follow the advice and change to a list :) Dec 08 17:46:13 how come slower. Dec 08 17:46:21 why does it seem that sometimes my application seems to lose its state when resumed after pressing home button? according to docs the state should be maintained but android can kill the app if low on memory, but i don't think the killing is what happened here Dec 08 17:46:25 squirrel: because the resizing logic probably sucks. Dec 08 17:46:39 murosai, only certain types of state are saved automatically Dec 08 17:46:42 murosai, the rest is up to you Dec 08 17:46:44 l440r: in the future, don’t go with something because you think it’s faster. Go with what’s cleaner, and then measure and profile Dec 08 17:47:16 yawkat: it's not like arraylist is particularly smart when resizing Dec 08 17:47:21 s73v3r, its an EYE not an ELL as the first letter of my nick and i didnt go with it for speed. i went with it for simplicity Dec 08 17:47:32 squirrel, it's quite reasonable about resizing Dec 08 17:47:34 a list is a more complex data structure than an array Dec 08 17:47:44 pfn: what do you mean certain type of state? Dec 08 17:47:46 squirrel, you can specify load factors Dec 08 17:47:50 murosai, exactly that Dec 08 17:47:57 more specific? Dec 08 17:48:04 murosai, google is more specific Dec 08 17:51:13 yea i made sure, rand the game for about 20 mintues and my mob count is currently 0 yet i see 5 mobs in the minimap that are now in a lost state. Dec 08 17:51:17 pfn: sure, but if you are doing it manually I bet you are not resizing it at all Dec 08 17:51:25 lol ill convert to a list :P~ Dec 08 17:51:32 squirrel, only if you don't run out of space Dec 08 17:52:16 I440r: Is it possible killing a mob fails? Dec 08 17:52:44 well if you do and start writing resizing logic, you will probably notice how weird it is and take a look at the source of arraylist.. Dec 08 17:52:46 no killing a mob simply means setting its location to -1 and decrementing the mob count Dec 08 17:52:54 wont have to do the count-- with a list tho Dec 08 17:53:29 but now to kill a mob i have to remove it from the list which means searching the list Dec 08 17:54:24 ill swap stability for a minute amount of complexity tho Dec 08 17:54:51 set location to -1, but did you shift your array contents? Dec 08 17:54:51 err... you know what i meant lol Dec 08 17:54:59 hello Dec 08 17:55:00 no. the array is not shifted Dec 08 17:55:07 adding a mob means finding a dead mob Dec 08 17:55:16 with a list ill just have a list of live mobs and a list of dead mobs Dec 08 17:55:27 if i need to add a dropdown field in a form, should it be a dropdown button? is the spinner list still available? Dec 08 17:55:34 killing a mob means moving it from one list to the other Dec 08 17:55:42 squirrel, and it's relatively straightforward Dec 08 17:55:44 dunkel2 spinner is still available O.o Dec 08 17:56:04 yup it is straightforward Dec 08 17:56:33 g00s: so if i need an option which will have many items should i use a Spinner or a Dropdown Button? Dec 08 17:56:48 never heard of dropdown button Dec 08 17:57:11 and how many is 'many', you don't want hundreds of things in a spinner either Dec 08 17:57:14 afk... gotta go to store. then ill make the change to a list. Dec 08 17:57:30 if this doesnt fix the entiere problem ill eat my hat Dec 08 17:57:38 mmm maybe 100 Dec 08 17:57:45 I440r go forth and eat your hat :D Dec 08 17:58:44 http://i.stack.imgur.com/synZZ.png Dec 08 17:58:45 100 is kinda pushing it Dec 08 17:58:56 thats what i saw as a dropdown button Dec 08 17:59:20 dunkel2 i think there are a few data pickers out there ... Dec 08 17:59:23 *date Dec 08 17:59:38 it looks like it's a dropupdown button Dec 08 17:59:42 it is a dataset what i need to show Dec 08 18:00:04 not a date, first show a set then related to the selection show another list with more Dec 08 18:00:32 what do you recommend? Dec 08 18:02:52 one of these http://developer.android.com/guide/topics/ui/controls/pickers.html Dec 08 18:03:20 but there are plenty of libraries around that get fancier Dec 08 18:04:06 ok let me find one, i dont need a date i need information retrieved from a list i have Dec 08 18:13:02 is foreground Tint the most useless property on ImageView or am I using it wrong? Dec 08 18:15:15 Setting a foreground drawable on an ImageView seems mostly useless Dec 08 18:15:36 Unless it's click related, I guess Dec 08 18:19:22 SimonVT: However I found that just simple tint works well Dec 08 18:21:51 hello all :) Dec 08 18:22:08 http://developer.android.com/reference/android/R.styleable.html Dec 08 18:22:14 I'm confused, where is it in sdk... Dec 08 18:22:54 pfn: can I PM you? Dec 08 18:23:18 I don't do pm Dec 08 18:26:03 pfn, i now cant even get my project to build :( the pfn: what I want to ask you is android related but against the "jobs or otherwise" part of the topic Dec 08 18:26:37 tried clean builds, tried starting fresh projects and copying in my source, but cant get it to build :( Dec 08 18:26:46 drinfernoo, build using gradle, report back Dec 08 18:26:54 drinfernoo, include full logs Dec 08 18:27:05 autrilla, I see Dec 08 18:29:53 If I wanted to emit the most infrared possible from a screen, is displaying a fully white screen the best option? Or would there be colors / ways to emit more infrared light? (This probably depends on the screen used) Dec 08 18:30:25 What should I do if I want multiple lines for a textView, but I don't want words to break in half/be hyphenated? Dec 08 18:33:10 pfn, and how do i do that? Dec 08 18:33:19 ./gradlew assemble Dec 08 18:34:14 drinfernoo, building outside of the IDE is the #1 thing you should learn Dec 08 18:34:35 well, it isnt the #1 i learned lol Dec 08 18:34:37 can't hello world if you don't know how to build Dec 08 18:35:17 eghdk_, textview breaks on word boundaries by default Dec 08 18:37:03 pfn: any idea how to turn that off? Dec 08 18:37:17 drinfernoo: building outside IDE is something you should specialise in if you want your PC to have its breath under control Dec 08 18:41:41 Hi! Have anybody worked with automated UI-testing here, like the frameworks Espresso or UI-automator? Dec 08 18:44:46 pfn, cant execute, permission denied Dec 08 18:45:48 I’ve just updated my build sdk to v23, and Google’s Downloader Library and Play Licensing libraries don’t compile (removed org.apache.http package) Dec 08 18:46:30 I’ve never been clear on the circumstances in which I might need the code from the Downloader Library. Even if I have expansion files, aren’t those generally (or basically always) downloaded by Google Play when my .apk is installed? Dec 08 18:48:01 so what MVP/MVVM/MVC stuff do we use over here Dec 08 18:48:13 I should really do a month-long survey for this :/ Dec 08 18:48:31 drinfernoo, learn2computer Dec 08 18:48:45 thanks man Dec 08 18:48:58 Afzal: nothing. I find the binding stuff quite bad Dec 08 18:51:21 autrilla oh I agree. I'm talking more about mosby, and other mvp concepts that have emerged lately Dec 08 18:52:11 hrm..i didn't realize i was still online Dec 08 18:52:39 autrilla, you're often in #django aren't you? Dec 08 18:52:41 Afzal: hmm, that does look decent. Do you do MVVM? If so, what do you use? Dec 08 18:52:49 jonky: I'm there sometimes Dec 08 18:53:07 i thought i recognized the name somewher Dec 08 18:53:07 e Dec 08 18:53:32 I'm looking into it heavily now. I've tried a few concepts but I'm not sold on anything except maybe mosby and hello-mvp (just because they actually have built in rotation handling) Dec 08 18:53:54 Afzal: I very much prefer MVVM to MVP Dec 08 18:53:56 plus mosby seems very opinionated so that's good Dec 08 18:54:05 i'm not sold you actually need a library for this stuff Dec 08 18:54:40 and i think if you survey complex apps, you'll see a combination of mvp/mvvp/mwhatever used in the same app Dec 08 18:54:50 g00s: for two way data bindings? Heck, most people even use MVVM libraries for C# and WPF, which has native binding support Dec 08 18:55:13 anyone care to hazard a guess as to why my 800mb APK is failing to install with "Failure [INSTALL_FAILED_CONTAINER_ERROR]" on the Note4, but installs and works fine on Galaxy S6? Note4 has 28 GB free on SD card and 16 GB free on internal memory so it shouldn't be a space issue. Dec 08 18:55:17 Because who likes boilerplate? Dec 08 18:55:21 oh the databinding is one thing, i meant mosby Dec 08 18:55:30 mvvm is hard w/o databinding Dec 08 18:55:45 autrilla explicity > magic Dec 08 18:56:00 g00s how do they know that there are no leaks (or other bad practices) in there if they use a mix of everything? I wrote this yesterday while investigating (https://github.com/afzalive/cleanarchandroid) and you can see how I'm still confused after that in the readme Dec 08 18:56:03 Zajt: I’ve worked some with Appium and Callabash Dec 08 18:56:10 g00s: so you don't use a single library? Dec 08 18:56:26 not atm, though i have to look at databinding Dec 08 18:56:34 andr3wmac: how to you make use of an 800Mb apk? I’m having trouble with google’s expansion library, but I need to go over the 100Mb limit. You have a different way? Dec 08 18:56:36 g00s: no, I mean any library at all Dec 08 18:56:38 s73v3r: alright are they similar to espresso? Dec 08 18:56:47 sure i use rxjava and some things Dec 08 18:56:47 Because all libraries do magic in the same way as MVVM Dec 08 18:56:55 rxjava does magic too! Dec 08 18:56:58 they do similar things, but they’re not built in like Espresso Dec 08 18:57:02 duboisj: will eventually put the larger assets into OBB but right now they're in the APK for testing. Dec 08 18:57:11 ah Dec 08 18:57:23 autrilla no, the context was boilerplate. just my opinion, i dont find all boilerplate bad. when its removed by magic, i prefer boilerplate Dec 08 18:57:24 i happen to like them better because I can share UI/UX tests between iOS and Android Dec 08 18:57:35 can't figure out why the APK is failing to install on only the Note4 though :/ its concerning Dec 08 18:57:41 g00s not a dagger fan then? Dec 08 18:57:47 because 5 years from now, i'll bet that magic library works differently or nobody know what it does Dec 08 18:57:57 g00s: I find most boilerplate bad. Dunno, that seems to be the general feeling of people in the C# and Python communities Dec 08 18:58:03 autrilla any good starting mvvm samples? Dec 08 18:58:13 Afzal: for C#? Dec 08 18:58:18 I have no idea how to do MVVM on andorid Dec 08 18:58:20 android* Dec 08 18:58:20 oh no, for java Dec 08 18:58:27 we're in #android-dev :/ Dec 08 18:58:29 never tried an 800Mb apk & haven’t seen that error. Dec 08 18:58:33 Well there's the Google databinding crap Dec 08 18:58:34 Afzal ok, i dont want to get into big debate - there are different kinds of boilerplate. DI isn't about boilerplate specifically Dec 08 18:58:45 Sorry to be so harsh, but currently it's really bad Dec 08 18:58:52 s73v3r Alright I have never worked with tests before. But I have created an UI pattern(my own component) and now I should create UI-testning with recommended frameworks on my component, do you think that is difficult? Dec 08 18:58:56 g00s: you can do DI yourself Dec 08 18:59:02 sure, thats what i do Dec 08 18:59:05 true, but dagger has quite a bit of code generation though, that's why I asked Dec 08 18:59:06 Me too, okay Dec 08 18:59:13 DI is good Dec 08 18:59:18 Sure Dec 08 18:59:55 autrilla [13:58:21] oh no, for java Dec 08 19:00:13 Well, anyway. I made the terrible mistake of not doing TDD, and now I have a bunch of untested code :( Dec 08 19:00:16 Afzal: no idea Dec 08 19:00:31 You can do sorta-MVVM with javafx Dec 08 19:01:09 i think going crazy with annotation processors is a recent plague on the android community Dec 08 19:01:25 imho they are an alternate type system your IDE can't enforce Dec 08 19:01:39 and fuck all the code gen, if you need all this code gen, your language sucks Dec 08 19:01:59 g00s: it's the natural response to android not being very good Dec 08 19:02:21 I'm writing an app. I have a phone that runs lollipop, but android studio (By default) only comes with the "SDK Platforms" for marshmallow. Do I need to install the older versions of the SDK from AndroidStudio's SDK manager? Dec 08 19:02:56 how would you mock and activity? Dec 08 19:03:09 hi, can I do nice things with just an android term and command line dalvikvm -cp ... ? Dec 08 19:03:10 specifically, google's play services sign in stuff Dec 08 19:03:48 for example is it possible to open windows or print pdf files? Dec 08 19:04:58 hi, i have a recyclerview, the view is reloaded always in scroll view? when view appears Dec 08 19:05:41 autrilla lol, gms is a deep deep hole Dec 08 19:06:08 there are sooooo many corner cases, it's crazy Dec 08 19:06:11 Afzal: well, Facebook's stuff is similar, and I also have to mock that some way Dec 08 19:06:15 i'm trying to get Nearby Messages working, the docs make it look so easy :D Dec 08 19:06:27 just add this listener, and things happen ! magic ! Dec 08 19:06:33 that's just to get google play services, and then you go into each API itself, Dec 08 19:06:48 Plus testing stuff like random orientation changes, people tapping on stuff very fast, slow networks, no network, etc Dec 08 19:06:55 hi, i have a recyclerview, the view is reloaded always in scroll? when view appears Dec 08 19:07:14 t0th_-_: no need to ask again Dec 08 19:07:18 autrilla oh yeah, fast tapping is one of those funny things Dec 08 19:07:29 ai remove one word Dec 08 19:07:31 i Dec 08 19:07:38 like you tap a button that does startActivity really fast, and you get 2 activities on the task stack Dec 08 19:07:39 g00s: 2 years ago google had a tool to do that, I guess that's still a thing Dec 08 19:07:45 oh the monkey runner Dec 08 19:08:08 autrilla honestly, I just usually start with some helper class for convulated APIs so that things seem simplified Dec 08 19:08:15 g00s: you are a plague on the Android community Dec 08 19:08:20 LMAO Dec 08 19:08:45 JakeWharton i'm sorry i'm not in the church of Square Dec 08 19:09:02 huh, look who showed up! Dec 08 19:09:23 i'm not sure what that means, but ok! Dec 08 19:09:38 JakeWharton how was AndroidTO? I missed it completely :( Dec 08 19:09:44 saw you spoke there Dec 08 19:10:01 it was ok. very small. Dec 08 19:10:23 yup, that's how it was last year too, the code labs seemed interesting Dec 08 19:10:37 i went to the "lightning" talks instead Dec 08 19:11:42 I think I prefer multi-track conferences so that I have a choice on what to attend Dec 08 19:11:58 JakeWharton: why did you say that about g00s? Dec 08 19:11:58 had never been to a single-track thing (other than a GDG DevFest) Dec 08 19:12:09 Also, does Square have something for mocking/testing in general? Dec 08 19:12:13 Hmm. Android Home Mirror! Dec 08 19:12:22 Yeah that one was surprisingly fantastic Dec 08 19:12:59 autrilla: in what manner? we use tools that already exist (JUnit, Espresso, Truth, etc.) Dec 08 19:13:32 JakeWharton, I agree Dec 08 19:13:41 Okay, so if I set the install location to Auto instead of Prefer External my APK installs fine. Why would it fail to install with Prefer External only on the Note 4? Both internal and external memory have ample space for the APK. Dec 08 19:13:52 one of those rare times Dec 08 19:14:11 JakeWharton: well, I'm using google's sign in stuff, and I have to mock it somehow. They start an activity to do the sign in process etc Dec 08 19:14:25 I guess mocking activities in general would do Dec 08 19:14:29 Espresso has an intent capturing thing Dec 08 19:14:32 andr3wmac: It will fail if you have a home screen widget, InputMethod, and some other stuff Dec 08 19:14:32 never used it Dec 08 19:14:35 i would mock that out at the control level Dec 08 19:14:43 autrilla, wouldn't you mock the response from the activity? Dec 08 19:14:44 e.g., replacing the Google sign in button with a fake one somehow Dec 08 19:14:46 JakeWharton: "control level"? Dec 08 19:14:54 andr3wmac: but that should be universal.. maybe the Note 4 has an extra bug Dec 08 19:15:00 Afzal: yeah, but android is a bit tightly coupled in that sense Dec 08 19:15:12 ah Dec 08 19:15:40 andr3wmac: did you look at the error code? Dec 08 19:15:48 I guess I could just not start the activity using espresso intent capturing thing and call the activity result thingy on my activity, pretending to be google Dec 08 19:16:13 kroot: Failure [INSTALL_FAILED_CONTAINER_ERROR] Dec 08 19:16:22 unless theres a way to get more error information Dec 08 19:16:33 andr3wmac: adb logcat Dec 08 19:17:28 never thought of that, will check now Dec 08 19:18:06 if there is a ton of debug, you can bet Samsung changed something in that code :) Dec 08 19:18:42 kroot do you know by any chance, if anything will happen with onActivityResult / onRequestPermissionResult in child fragments; i'm having to dispatch this stuff from the activity up to the children Dec 08 19:18:56 (currently its not working) Dec 08 19:19:34 kroot: there is a LOT of stuff in here Dec 08 19:19:34 g00s: No, I don't write many UI interacting apps (read: none). Dec 08 19:19:45 kroot ok thanks anyhow Dec 08 19:19:50 what might I be looking for? I've tryed narrowing it down by apk name but no luck Dec 08 19:20:31 andr3wmac: MCS, PackageHelper, PackageManagerService Dec 08 19:21:38 E/PackageHelper(12121): Failed to create secure container smdl2tmp10 Dec 08 19:21:44 reckon thats related/ Dec 08 19:22:22 Is there any Vold errors above that Dec 08 19:23:43 http://hastebin.com/xupuponiro.vbs Dec 08 19:24:29 so i converted my array to a list. now when i try run a debug im getting GLX error Dec 08 19:25:01 andr3wmac: oh boy, that's not the standard Android code.. Samsung modifications Dec 08 19:25:09 https://bpaste.net/show/c7c53ef7af3e Dec 08 19:25:20 thats with the same avd i have been using for months Dec 08 19:25:49 kroot: what does this tell us? I'm not familiar with the depths of android lol Dec 08 19:26:11 ooh nvm Dec 08 19:26:24 i know exactly whats happening lol Dec 08 19:26:25 i emerged an upgrade to my nvidia-drivers Dec 08 19:26:28 avd not failing :P~ Dec 08 19:29:55 I have 3 android library projects as dependencies of my main app. Can I compile them each with a different sdk version and expect things to work? Dec 08 19:30:11 only if they're less min sdk that the main app Dec 08 19:30:28 duboisj ^^ Dec 08 19:30:51 yes, libs are lesser minsdk. Dec 08 19:31:11 but there are a few android apis that got removed without a deprecation stage, I forget which ones though Dec 08 19:31:38 everything is mindsk 16, two libs are compiled with android-16, main app and one lib are compiled with android-23 Dec 08 19:31:52 * autrilla ponders about not testing this part of his app Dec 08 19:31:56 what apis do you use in each of them? Any bluetooth apis? :p Dec 08 19:32:09 no Dec 08 19:32:25 you'll be okay probably Dec 08 19:32:49 autrilla I'd be down to write a few tests if it's open source. It's just my code I don't test :p Dec 08 19:33:25 I need android-23 in order to compile the v7 appcompat support library, but I also need google’s downloader & play license libraries for my expansion files (and those don’t compile with android-23 because the org.apache.http package was removed) Dec 08 19:33:30 I'll open source it, of course, but it's an app, not a library Dec 08 19:33:48 never thought it was a library... Dec 08 19:33:59 Ok. thanks. Dec 08 19:35:01 ohh right, org.apache.http. That....might be trouble in android-23 because those classes don't exist in marshmallow so you definitely need a fallback there Dec 08 19:35:32 I don’t actually intend to target 6.0 yet. I just want to use the appcompat library, which I can’t do without the v23 sdk Dec 08 19:35:43 (maybe I could find an older version of that library, but I’ve got the latest atm) Dec 08 19:36:54 kroot: didn't notice at first but yeah this line is directly above the packagemanager one: E/VoldConnector( 976): timed-out waiting for response to 631 asec create smdl2tmp10 819 ext4 [scrubbed] 10008 1 Dec 08 19:38:55 like without the whole sdk building of projects. just a simple class file compiled with javac, dexed with dx and run on android with the android arm emulator Dec 08 19:39:18 or androidterm Dec 08 19:39:34 Afzal: well I'd want to have everything automatically tested, specially stuff like random orientation changes, having no network connectivity... Dec 08 19:39:44 riight Dec 08 19:40:02 wow, google removed wifi and bluetooth mac address access in api 23. wtf :/ Dec 08 19:40:36 Afzal, protecting privacy! Dec 08 19:41:00 yeah, they didn't give a crap for 22 versions though Dec 08 19:43:18 Afzal: do you just have to actually request the permission from them? Dec 08 19:43:53 ok so now i have a problem where my scene class is scanning through the list of mobs and drawing any that are visible and the mob thread killing off mbos in the list at the same time Dec 08 19:43:57 herriojr I think you do for BLE apis but getting the Mac is gone now Dec 08 19:44:10 has anyone worked with playing back video using textureview? Dec 08 19:44:16 i need the list to be a shared resource that can only be locked in its entirety Dec 08 19:44:32 i.e. if thread a is scanning through the list the entire list needs to be locked to other threads Dec 08 19:44:49 erm i have no idea how to do that Dec 08 19:45:03 mark4 you may want to read JCIP (java concurrency in practice) Dec 08 19:45:24 g00s kk Dec 08 19:45:39 sounds like tldr shit thats going to go WAY over my head but... brb :) Dec 08 19:45:56 Afzal: ah, you're right Dec 08 19:45:58 concurrency is part of design; but there are so many nuances / gotchas / details i think its hard for anyone to really give you a comprehensive answer Dec 08 19:46:34 g00s ya i understand. its a gordian knot and im asking you to describe it for me so i can tie one at this end :) Dec 08 19:46:44 g00s: isn't that one about how the JVM implements stuff? Dec 08 19:46:48 mark4: if it's in practice, it should be pretty straightforward Dec 08 19:46:55 so what is an unbound prefix error, and how do i fix it? Dec 08 19:46:55 i cant afford to buy a book Dec 08 19:46:59 Or is it just a guide on how to use semaphores, locks, barriers...? Dec 08 19:47:20 the oracle tuts have enough to get one started ... Dec 08 19:47:56 but yuou'll have to think about deadlocks , thread starvation, etc Dec 08 19:48:21 and just wind up with heisenbugs Dec 08 19:49:18 mark4 also look at the concurrent collections Dec 08 19:49:20 drinfernoo, you don't have your xmlns setup, fix it Dec 08 19:49:51 i think its a heisenbug that i have HERE lol Dec 08 19:50:03 I just arrived, but it sounds like autrilla is asking about something similar. I have a tough question about synchronization of state machines. I need to handle encoding media on multiple threads. I need to manage the process from outside in order to start and stop recording as the user wishes, but the state machine can run behind the user’s intent as it takes time to drain the encoder and close down the max priority threa Dec 08 19:50:04 before starting another recording. How can I make sure the user’s intent is honored while the state machine catches up? I’m worried in particular about deadlocks. Dec 08 19:50:27 its actually the line before that thats causing a problem, Dec 08 19:50:30 concurrent collections... crap theres soooo much to learn and you have to k now 100% of it to be effective with java Dec 08 19:50:34 drinfernoo, it isn't Dec 08 19:50:44 you can get away with like 2% of c and still produce working code Dec 08 19:50:47 drinfernoo, but considering you haven't pasted a single log... Dec 08 19:50:57 mark4, that's not true Dec 08 19:51:00 lets just get past that because i cant get them Dec 08 19:51:03 what isnt? Dec 08 19:51:14 drinfernoo, get logs, then come back Dec 08 19:51:19 if you can't figure out how to get logs, you can't get help Dec 08 19:51:20 period Dec 08 19:51:23 #1 priority, learn Dec 08 19:51:23 i dont have a computer Dec 08 19:51:25 lol Dec 08 19:51:25 pfn the more i dig into what is wrong with my android app the more i see it as being flaws in my understanding of java in general Dec 08 19:51:33 you said "it isnt" Dec 08 19:51:37 what isnt? Dec 08 19:51:38 mark4, flaws in understanding of C would lead to the same problem Dec 08 19:51:43 drinfernoo, the xml decl Dec 08 19:51:47 drinfernoo, isn't the cause of your error Dec 08 19:52:06 "it's actually" --> "it isn't" Dec 08 19:52:07 mark4 concurrency in C is probably even harder :P Dec 08 19:52:07 my build has been building for two years, and out of the blue, it quit Dec 08 19:52:08 not really, i have 30 years of experience wading through c code developed by morons with zero understanding of it Dec 08 19:52:25 and it doesn't produce working code Dec 08 19:52:30 unless you call bug ridden working Dec 08 19:52:41 i didnt change any code, and my app quit building Dec 08 19:52:44 g00s linux threads are ezpz.... err... ish? lol Dec 08 19:52:50 at least java comes with some high level concurrency building blocks like ConcurrenthashMap, Atomic*, etc Dec 08 19:52:52 literally no changes, app quit building Dec 08 19:53:04 all lies, until you prove otherwise Dec 08 19:53:07 Is it possible to do something like this: Have an app. when you first start it, it goes to a "add task" activity. Each added task has it's own screen, navigatable by swiping left or right (including swiping right to the "add task" activity to add a new one. Is this something that could work? Dec 08 19:53:27 pfn thats an INDUSTRY standard. it has bugs... ship it! Dec 08 19:53:35 pfn, i cant prove it, but you could be less of an ass and help me at least TRY to narrow it down Dec 08 19:53:42 I have Dec 08 19:53:45 but you refuse to cooperate Dec 08 19:53:47 provide logs or gtfo Dec 08 19:54:03 pfn, i cant provide logs, or i would have Dec 08 19:54:06 that's too bad Dec 08 19:54:09 provide logs or gtfo Dec 08 19:54:23 getting the fuck out then asshole Dec 08 19:54:34 You know which app is super smooth? Xperia's What's New app Dec 08 19:54:37 I love it Dec 08 19:54:49 i dont even know why pfn hangs around here, is most common answer get lost or whatever Dec 08 19:55:41 how hard is it to run gradlew assemble and show a log... Dec 08 19:55:42 really Dec 08 19:55:51 tbh i dont understand why google chose java in the first place or why they are not abandoning it now Dec 08 19:56:01 mark4, because java is what made android succeed Dec 08 19:56:04 obviously Dec 08 19:56:45 Hi guys, I have a problem. I created a custom view based on CardView, and everything is working beautifully so far, EXCEPT on kitkat and before! Dec 08 19:57:07 Afzal did you see the Primer app? its pretty slick too. i have no idea how do that stuff tho :P Dec 08 19:57:09 https://www.reddit.com/r/androiddev/comments/3vxae6/a_closer_look_at_primer/ Dec 08 19:57:14 pfn android would have succeeded if google had developed their own language Dec 08 19:57:14 \ Dec 08 19:57:18 mark4, nope Dec 08 19:57:19 somehow the kitkat layout doesn't sets the layout weight and height accordly to the XML Dec 08 19:57:25 mark4, look at blackberry and nokia Dec 08 19:57:28 dominators in their space Dec 08 19:57:31 did not succeed Dec 08 19:57:43 blackberry and nokia had totally different problems Dec 08 19:57:50 blackberry wanted you to keep using a keyboard Dec 08 19:57:53 it seems to overwrite the values to "match_parent", doesnt matter what I do Dec 08 19:57:56 they were like touch, lol Dec 08 19:57:59 ios development was an extension of OSX development, it made the transition somewhat easier Dec 08 19:58:12 Hey, I'm looking on Play Services face detection API, any idea if there's a limited on how many call one app can make a day? Dec 08 19:58:12 java is what made android succeed Dec 08 19:58:14 if you guys want to see, here is the XML: http://pasted.co/ac2e833c Dec 08 19:58:22 android being open source is what made android succeed Dec 08 19:58:34 many OEMs wanted an answer to iOS Dec 08 19:59:09 ios would be fine if it were 100% open Dec 08 19:59:11 g00s I did, it looks nice indeed Dec 08 19:59:13 i think android would have succeeded w.o java. iOS tool off and many thought obj-c was crazy Dec 08 19:59:17 Someone is a java fanboy Dec 08 19:59:33 g00s: (it was) Dec 08 19:59:35 it's the truth Dec 08 19:59:37 and here is a print on android M and Kitkat, respectively: https://i.imgur.com/IQU2XNc.png https://i.imgur.com/wGJis6j.png Dec 08 19:59:48 obj-c syntax is worse then perl's Dec 08 19:59:56 than* Dec 08 20:00:21 aviran lol, if somebody asks me to write a perl parser, i know i've gone to hell Dec 08 20:00:39 * parser for perl Dec 08 20:01:34 hi all, is there a way to write an app that can perform button clicks and other ui actions on another app? Dec 08 20:01:44 for example, open up another app, click a button, and take a screenshot Dec 08 20:01:54 (was referred here from #android) Dec 08 20:03:38 so, any idea if Google's play services face detection API is limited in the number of calls? Dec 08 20:04:04 aviran usually they say there are no limits* (small print - unless its abused) Dec 08 20:04:21 sapienTech: to override other app's button behavior is impossible Dec 08 20:04:27 aviran: no it’s not Dec 08 20:04:36 thanks g00s, s73v3r Dec 08 20:04:53 btw, im not trying to override it, i just want to click it and go to the next screen in the app Dec 08 20:05:03 all you could do is place button on alert (hm?) window, which would be overlaying over os and other apps ui Dec 08 20:06:01 yeah just want to simulate a user clicking the button Dec 08 20:07:07 Ashiren: so an alert is all i could throw up in front of another app? Dec 08 20:07:21 sapienTech: look into accessibility stuff Dec 08 20:07:39 s73v3r: mmhh yeah good idea Dec 08 20:08:05 pfn, i added xmlns:tools to my manifest (for no reason, but since i didnt know what to do, i just tried it), and that let me build, but now im getting this: http://pastebin.com/mCKPDrNb Dec 08 20:08:10 whoo logs Dec 08 20:08:27 even a script that opens an app and clicks a button is fine, would this be possible with Tasker? Dec 08 20:08:39 well you could see SYSTEM_ALERT_WINDOW Dec 08 20:08:46 also theres MonkeyRunner Dec 08 20:09:07 pfn, also, i apologize :) Dec 08 20:09:18 i really cant get gradle logs though lol Dec 08 20:09:22 Ashiren: can i use monkey runner on an app from the app store? Dec 08 20:09:46 dunno Dec 08 20:10:07 your app is crashing then and your build is bad Dec 08 20:10:09 Damn, the nexus 6P emulator is slow as hell on my computer Dec 08 20:10:41 im aware that my app is crashing, that log is the log from when it crashed Dec 08 20:10:56 i was hoping youd offer some help :( Dec 08 20:12:14 if my "build is bad", what can i do to fix it? what would you do if your "build was bad"? the first thing youd do if you suspected that, before you had to dig into logs? Dec 08 20:12:43 drinfernoo looks like you are missing dependencies. maybe post that Dec 08 20:12:54 LinearLayoutManager Dec 08 20:13:05 When creating a new project, what activity should I setup to have a list of items that one can select to open a new activity and also scroll up/down. Dec 08 20:13:24 drinfernoo, build using gradle, come back with full gradle logs Dec 08 20:13:27 stop building with IDE Dec 08 20:13:44 yes Dec 08 20:13:52 drinfernoo, #1 priority, build with gradle Dec 08 20:13:53 everyone usesSATA nowadays Dec 08 20:13:55 pfn, said it before, i cant do that Dec 08 20:14:02 drinfernoo, yes, you can Dec 08 20:14:14 drinfernoo what build system are you using ? Dec 08 20:14:17 if you can't, make it so that you can Dec 08 20:14:46 pfn, i dont own a computer, so if you can tell me how to run gradle on my device, without an ide, ill do it Dec 08 20:14:56 g00s, i use gradle Dec 08 20:14:58 http://pastebin.com/btuefZ5e Dec 08 20:15:17 how are you using gradle if you don’t own a computer? Dec 08 20:16:00 AIDE Dec 08 20:16:04 oh lol Dec 08 20:16:10 aide is not a development environment Dec 08 20:16:10 * g00s was very confused Dec 08 20:16:14 if your app fails, it is not supported Dec 08 20:16:22 not a suitable development environment at least Dec 08 20:16:23 and yes, i know it isnt AS, but it is a development environment Dec 08 20:16:29 barely Dec 08 20:16:32 suitable for everything but gradle logs Dec 08 20:16:39 run it on a computer and see what’s happening Dec 08 20:16:40 drinfernoo well, then you might need to ask aide guys for hep Dec 08 20:16:42 i can do everything you can, except gradle logs Dec 08 20:16:56 they have no community for support lol Dec 08 20:17:20 hence why it’s not suitable as a development environment Dec 08 20:17:33 drinfernoo you are waaay off the beaten path; i dont think anyone can here can help Dec 08 20:18:11 aide looks like a cool science experiment Dec 08 20:18:19 no, you can't do everything, you can't build apps Dec 08 20:19:37 should ask the AIDE people for help Dec 08 20:19:53 drinfernoo you may as well be using something crazy like sbt :P Dec 08 20:19:54 I'm sorry, but AIDE is not supported as a development solution, at all Dec 08 20:20:04 and neither is sbt ;) Dec 08 20:21:24 the only thing I can think of is that it’s not properly downloading the support library Dec 08 20:23:04 considering that AIDE isn't a complete toolchain, I'd imagine that it would be missing all sorts of support for external libraries Dec 08 20:23:41 if it’s got Gradle, though, i’d imagine it’d have to be able to download dependencies Dec 08 20:24:52 it doesn't Dec 08 20:25:00 it can't run gradle because it's on-android Dec 08 20:29:23 Anyone know how to change the color of the EditText Dec 08 20:29:36 Ive tried colorControlNormal, colorControlHighlighted, etc Dec 08 20:29:39 Nothing works Dec 08 20:31:07 the color of what Dec 08 20:31:20 cursor? background? text? Dec 08 20:31:25 there's a lot going on there Dec 08 20:32:23 The line below the text Dec 08 20:32:31 the background Dec 08 20:32:33 that's an image Dec 08 20:33:02 pfn see the line below "Zip Code" http://i.imgur.com/qiywF2S.png Dec 08 20:33:17 that's colorAccent Dec 08 20:33:26 What if I dont want it be the color accent? Dec 08 20:33:37 dig through the source and see :p Dec 08 20:33:46 Source of? Dec 08 20:33:57 EditText? Dec 08 20:34:37 drose379 look at the editText's drawable.xml in platform res/drawable Dec 08 20:34:45 Ok Dec 08 20:34:48 its probably a nine patch Dec 08 20:34:54 * autrilla still hasn't written his test Dec 08 20:34:56 tests* Dec 08 20:34:56 well the xml will point to a 9 patch Dec 08 20:43:53 I'm trying to follow the "My First App" guide on d.android.com, but it's not matching up with what I actually have in Android Studio. Dec 08 20:44:11 It's asking me to edit activity_my.xml and replace some things, but the things aren't there. Dec 08 20:48:08 I have an issue where FragmentPagerAdapter's fragments doesn't remove it's layout Dec 08 20:56:49 * Tazmain so stocked that his app works :p qt for the qin Dec 08 21:01:31 can someone recommend a book or website tutorial that has information on how to build an app on android that can view,create,remove records to a remote mysql database? Dec 08 21:01:35 with examples Dec 08 21:10:04 looks like FireFoxOS is dead Dec 08 21:10:46 Anyone ever have issues with picasso not loading images? Dec 08 21:11:08 Heres what Im getting: http://pastie.org/private/xibflerxg8w18mjnyoytaa Dec 08 21:11:35 You're out of memory Dec 08 21:11:52 Ok, is there some sort of fix for this JakeWharton? Dec 08 21:11:57 Maybe just use a lower res photo? Dec 08 21:12:34 Or have picasso resize it Dec 08 21:12:38 Don't load larger than you need Dec 08 21:12:46 Weird, its only doing this on emulators though, not on physical devices Dec 08 21:13:27 Not on that one physical device you've tested on Dec 08 21:13:36 Different devices have different heap sizes Dec 08 21:13:42 True Dec 08 21:13:48 So the fix would be to size down the image? Dec 08 21:13:50 And different memory usage because of X Dec 08 21:15:26 51MB image Dec 08 21:15:31 10 megapixel, yeah, scale down Dec 08 21:16:15 pfn I see 51mb but where do you see the MP? Dec 08 21:16:24 that's how it works Dec 08 21:16:28 51MB / 4bpp Dec 08 21:16:33 er, 32bpp Dec 08 21:16:42 so about 12.5million pixels Dec 08 21:17:01 Oh, interesting Dec 08 21:17:06 So I should just do .resize() Dec 08 21:17:12 But what should I set the size to? Dec 08 21:17:27 Well, bad question Dec 08 21:17:28 If I wanted to emit the most infrared possible from a screen, is displaying a fully white screen the best option? Or would there be colors / ways to emit more infrared light? (This probably depends on the screen used) Dec 08 21:17:35 how does resizing work, does the framework do it outside of managed heap? Dec 08 21:17:36 How should I decide on the size Dec 08 21:17:47 Ask JakeWharton, I am using Picasso Dec 08 21:17:56 what do you mean how? choose something that you want to display Dec 08 21:18:06 skfax wouldn't infrared primarily be emitted through heat ? Dec 08 21:18:25 like if it's going to fit inside a small view, then that's the size you choose Dec 08 21:18:37 if you want to zoom around, pick a zoom factor that's appropriate for your UI Dec 08 21:18:44 The height of the view is 380 Dec 08 21:18:49 But im not sure what I should set the width to Dec 08 21:19:03 either match the aspect ratio, or width, you pick Dec 08 21:19:11 all should be something you decide on Dec 08 21:19:59 g00s: Probably yes, I was hoping it would be possible to "spill" enough infrared just from displaying white, but it doesn't seem to be enough. I'm trying to get a laser mouse to follow a screen pattern. It works well for optical mice, but not for laser mice which use an infrared laser. Dec 08 21:20:38 probably the same across all screens Dec 08 21:20:42 oled, you want all white Dec 08 21:20:42 pfn: Like, how does it scale while loading? Dec 08 21:20:55 SimonVT, yes, you still have a 51MB allocation to make somewhere Dec 08 21:21:13 g00s: It might also be a specific frequency / phase thing with laser mice which would make it impossible to get it to follow correctly an emitted screen pattern Dec 08 21:21:15 Scaling while loading must be a power of 2 Dec 08 21:21:32 In that step it can just throw away pixels, or do other smart stuff Dec 08 21:21:55 51 MB has to be in memory at some point, but not necessarily at the same time Dec 08 21:22:12 SimonVT, I suppose Dec 08 21:22:43 Trying 500, 500 Dec 08 21:25:18 drose379: Decide based on views size.. 500x500 might be too little on some devices, and too much on others.. Picasso can fit bitmaps for you Dec 08 21:25:34 Im loading from a URL SimonVT Dec 08 21:25:39 And, the height is 380dp Dec 08 21:25:44 So thats all I have to work with, right? Dec 08 21:26:23 Use .fit() to size to exact display size Dec 08 21:26:57 JakeWharton, will that help me avoid exceeding the max heap size? Dec 08 21:31:19 Looks to work great, thanks guys! Dec 08 21:49:33 Is it inappropriate to ask people to beta test my apk here? Dec 08 21:50:35 drose379 why not find people who would actually use it Dec 08 21:50:43 people looking for animals Dec 08 21:50:52 Well before that I want to make sure theres no bugs that I missed Dec 08 21:51:06 Know what I mean? Dec 08 21:51:41 drose379: is it open-source? Dec 08 21:51:43 have a private alpha , public beta - and invite a few people willing to tolerate rough edges to the alpha Dec 08 21:52:10 Sounds good g00s Dec 08 21:52:14 Yes orbyt_ it is open source Dec 08 21:52:39 Post it on /r/androiddev, sure you'll get plenty of people willing to test it Dec 08 21:52:45 so it's not really beta test, more just to bang on it for a bit and see what breaks :) Dec 08 21:53:03 Whats the difference Leeds Dec 08 21:53:06 i don't know if /r/androiddev is such a good idea Dec 08 21:53:14 g00s: ? Dec 08 21:53:23 drose379: very few people here are likely to care how well it actually *works* Dec 08 21:53:32 What will they care about here? Dec 08 21:53:32 its not really for promoting apps & looking for testers Dec 08 21:53:54 how it looks, how it breaks... Dec 08 21:54:02 g00s: its fine if its OS but w\e Dec 08 21:54:02 and the code Dec 08 21:55:06 So first thing to do would be to upload to google play as alpha? Dec 08 21:55:20 Then I can link it places, and people will be more likely to download, cause its a reputable link Dec 08 21:55:50 first thing is get your advertising right, second thing is advertise Dec 08 21:57:00 But its gotta get uploaded to google play first right? Dec 08 21:58:06 if that is your distribution means, do you have all your screen shots for phones/7in/10in/ etc. and good description written for testing response needs etc. are you winging everything or making a plan? Dec 08 21:58:30 Making a plan Dec 08 21:58:50 then follow your plan Dec 08 21:59:14 Got it Dec 08 21:59:55 you decide distribution hub locations/you decide tester locations/you decide feedback options etc...just find the groups you think will give you honest and reliable feedback Dec 08 22:00:11 Sounds fun :D Dec 08 22:00:15 First app Dec 08 22:00:22 Well, first app I'm actually going to release :P Dec 08 22:00:34 here your feedback is probably just code and some UX, as for actual function and usefulness of app, you may need ppl that know the pet adoption routine Dec 08 22:01:06 Makes sense Dec 08 22:04:45 soooo...trying dagger 2. There's a singleton provides method in a module, should the module also have singleton annotation? (that's the solution I'm reading) Dec 08 22:05:15 or rather the Component using it Dec 08 22:05:15 The component Dec 08 22:05:41 gotcha, thanks JakeWharton . I guess the reasoning in the SO answer is correct then. Dec 08 22:11:57 drose379, just curious, how far does your app go with the whole process of adoption. does it setup an appointment to view adoptee, or does it confirm the aquisition of said adoptee, or just gives deetz on how to contact someone to see the adoptee? Dec 08 22:12:37 As of now just gives deetz Dec 08 22:12:49 I get my data from the PetFinder API Dec 08 22:13:56 canvs2321, you looking to adopt? Dec 08 22:16:03 nope Dec 08 22:16:43 Oh, ok Dec 08 22:16:58 maybe canvs2321 is looking to be adopted Dec 08 22:17:04 ^ Dec 08 22:17:24 Hmm, Would you go under cat,dog,pig,rabbit,bird,horse,barnyard,reptile or rodent? Dec 08 22:17:56 mickey mouse Dec 08 22:18:45 I am looking to get a new rodent icon Dec 08 22:19:03 for sure do that before getting testers if you haven't already :) Dec 08 22:19:13 get a squirrel Dec 08 22:19:22 I used icons8.com, do you guys know any other icon sites? Dec 08 22:20:16 can you even legally use mickey mouse? i'm sure disney is pretty harsh, not sure how much though Dec 08 22:20:34 It came from icons8.com and all those icons are supposed to be free to use Dec 08 22:20:35 So I guess Dec 08 22:25:04 no Dec 08 22:25:18 if it’s Mickey Mouse, it absolutely, positively is not free to use Dec 08 22:25:34 drose379 how invested are you with stickin with the icons? have you mocked up anything more text based to compare? dunno if you are still using the dashboard type approach, but the icons that had been used,sure they got an idea across of what you are doing, but the icon theme kept it not too professional Dec 08 22:26:27 Not sure the last time youve seen the UI, but I have made some changes (added labels and such) Dec 08 22:26:38 Mind if I paste a short recording canvs2321 Dec 08 22:26:40 it's been a week or so Dec 08 22:26:45 go for it Dec 08 22:26:51 https://vid.me/wAIi Dec 08 22:27:48 yeah, that rodent icon needs to go Dec 08 22:28:00 Its on the way out Dec 08 22:28:05 Just looking for a new one Dec 08 22:28:33 on that front screen, I’d make all of the “other” icons the same Dec 08 22:28:49 even though the second row only has 3, it seems a little weird that they’re bigger Dec 08 22:29:05 They stretch to the same exact total width though Dec 08 22:29:13 So I thought that would make it less weird ,no? Dec 08 22:29:21 i know. but it seems weird that the buttons are different sizes Dec 08 22:29:34 "They call me Dinner"? Dec 08 22:29:46 Where did you see that Leeds Dec 08 22:29:48 like, the cat and dog are bigger, so that seems to imply that they’re more common, more important, something more Dec 08 22:29:49 :O Dec 08 22:30:00 drose379: the first pig Dec 08 22:30:00 That is absolutely true s73v3r Dec 08 22:30:03 No way Dec 08 22:30:05 Lemme look Dec 08 22:30:15 the second row is smaller, which implies that they’re less common, or less likely to be used Dec 08 22:30:19 around 1:00 Dec 08 22:30:28 but now the third row is bigger than the second, but still smaller than the third. Dec 08 22:30:42 drose379, that app looks like it has great potential! just needs a bit more work, gj so far though Dec 08 22:30:50 Thats messed up Leeds, but I did not name it Dec 08 22:31:01 Thanks canvs2321 Dec 08 22:31:05 I know you didn't, but it's still a funny name for a pig :) Dec 08 22:31:17 Not funny! Dec 08 22:31:32 :P Dec 08 22:31:52 hey, he wouldn't be dinner for me Dec 08 22:31:55 there isn’t a picture of Dinner, at least Dec 08 22:32:01 Same here Leeds Dec 08 22:32:08 canvs2321, where do you think it needs some work Dec 08 22:32:58 has anyone worked with "androidplot" ? Dec 08 22:33:13 for what it's worth, I'd say the app as a whole looks quite nice - but slightly generic Dec 08 22:33:29 as s73v3r said with the icon size, and i'm not much for kiddie type icons, should just find silohuettes(sp?) or use text Dec 08 22:33:52 Thank you Leeds, I tried to make it fun with the icons, no? Dec 08 22:34:16 canvs2321, theres few ways around the icon size, since there are 9 icons and I want the dog and cat bigger, the rows must be uneven Dec 08 22:34:41 and some of the images of animals gets cropped top, but when viewing gallery you see full image Dec 08 22:34:41 so ALL dependent components have to be Singleton? Dec 08 22:34:43 :/ Dec 08 22:34:55 Right, thats just the effect canvs2321 Dec 08 22:34:56 the icons are cute, but I didn't get much of a sense of identity from the whole app... it almost feels like it's meant to be branded by a specific shelter, say Dec 08 22:35:13 I've been looking to add some brand, yeah Dec 08 22:35:18 Where do you think that can be done? Dec 08 22:36:15 dunno... I'm not much of a designed - better at criticising than proposing :) Dec 08 22:36:16 find just cut outs of the animals without specific colors and cartoonish attributes, if you can't and you are unable to create your own find a text based way. the icons are too cartoonish for your theme Dec 08 22:36:38 You think so canvs2321 Dec 08 22:36:44 Idk, I do like the icons myself Dec 08 22:36:46 just my opinion Dec 08 22:36:50 Sure, yeah Dec 08 22:37:26 i think the icons are nice Dec 08 22:37:37 Can we have a vote? Dec 08 22:37:44 Icons VS silhouette icons? Dec 08 22:37:59 drose379, shouldn't vote and be final, just go with your gut Dec 08 22:38:12 Good point Dec 08 22:38:20 find a wider user base to get results Dec 08 22:38:45 I wonder where I can find that though Dec 08 22:38:51 interwebs Dec 08 22:38:55 drose379: you won't move that location button will ya Dec 08 22:39:16 and remove the back button :/ Dec 08 22:39:40 squirrel, funny story about the back button Dec 08 22:39:48 lol Dec 08 22:40:01 I have removed it and put it back so many times, but whenever I remove it and have friends test it, they ask "How do I get back" Dec 08 22:40:08 But when I have it there, people tell me to remove it Dec 08 22:40:11 Im leaving it Dec 08 22:40:23 lol Dec 08 22:40:37 are your friends iphone users? Dec 08 22:40:44 ^ Dec 08 22:40:50 Yes actually Dec 08 22:40:55 that's why then Dec 08 22:41:01 Well, I offer a few options to go back Dec 08 22:41:09 Back button on screen, hardware back button, and swipe back Dec 08 22:41:15 So, whatever floats your boat Dec 08 22:42:06 well your back button is just above the "hardware" back button Dec 08 22:42:19 Yep Dec 08 22:42:27 android users know how to use the "hardware" back button pretty well Dec 08 22:42:41 also, nice job otherwise! Dec 08 22:42:46 I applied for a job as an Android developer, and one of the take home programming questions asked was to "write a Key-Value persistent storage layer". Since I don't even entirely understand the question, should I instead look for more entry level internship type jobs instead? Dec 08 22:43:17 Maybe. What don’t you understand about it? Dec 08 22:43:29 Hey so there is already a PetFinder app out there, mine does have some more search filters and options, but do you guys think design and UI wise youd rather use PetFinder or mine? https://play.google.com/store/apps/details?id=com.discovery.petfinder&hl=en Dec 08 22:43:45 haha Dec 08 22:43:49 What it is they expect me to submit. Do I write an app in which I connect to an SQLite databased? Dec 08 22:44:17 key-value can be a simple sharedpreference Dec 08 22:44:24 you’d have to ask them (which is perfectly fine; don’t be afraid to ask more questions of them), but I’d imagine they’re not expecting a full app Dec 08 22:44:25 the requirements say that it "should use pure sqlite queries. No ORMs" Dec 08 22:44:44 drose379: i also suggest greying out the age/size/etc buttons (or something like that) if the selection is "any" (i.e. button has no filtering effect) Dec 08 22:45:04 and that evaluation is based on thread safety, and proper use of locks and transactions Dec 08 22:45:41 drose379: Obviously yours has more Material style, so it’d fit in better. But some of the style decisions on theirs make it seem warmer Dec 08 22:45:44 squirrel, doesnt greyed out button imply "Not-clickable" Dec 08 22:46:20 But look at their first search page s73v3r https://lh4.ggpht.com/9mXyPdjYyFS11RZUZd56VbMX00Ka4OXS3xc05_a6TGtjhZ_rseku86ShAu8mpYMaACM=h900-rw Dec 08 22:46:25 well then "something like that" :p Dec 08 22:46:26 i know. I saw it Dec 08 22:46:53 but something about the colors and the texture made it feel better Dec 08 22:47:14 KaylieG ah ok, well implementing mvstore is people-years worth of work, but using sqlite is pretty easy :) Dec 08 22:47:29 Hmmm s73v3r Dec 08 22:47:41 i’m not saying you should lay your search page out like theirs Dec 08 22:47:57 far from it Dec 08 22:48:16 but some screens kinda feel… stark? cold? Dec 08 22:48:31 Mine? Dec 08 22:48:41 yeah Dec 08 22:48:53 Oh, ok, which ones? Dec 08 22:48:56 i think it’s the white background and the green accent color Dec 08 22:49:05 Green accent color needs to be changed? Dec 08 22:49:33 it wouldn’t hurt Dec 08 22:49:51 Ok, will do some looking around now Dec 08 22:49:54 Thanks! Dec 08 22:50:12 their app, in the results, makes the picture of the animal front and center. yours is kinda surrounded by a bunch of nothing with the card Dec 08 22:50:14 So I should basically follow any SQLite guide and the lone table in the database should just contain a key and a value columns? Dec 08 22:50:37 i like the green color Dec 08 22:50:38 and while the pastel blue/pink color does help soften it up, I’d suggest trying to make the animal picture bigger Dec 08 22:51:32 Ok, maybe not a circle then? Dec 08 22:51:39 Or a bigger circle Dec 08 22:51:41 i suggested making ½ of each card a picture but drose likes his circles too much Dec 08 22:51:48 bigger circle, i think Dec 08 22:52:00 Love my circles :D Dec 08 22:52:11 if it was possible to trim the space around the circle, that’d be better Dec 08 22:52:16 I mostly like how the border color of the circle dips down into the rest of the card Dec 08 22:52:21 cut the cells in half, and have two columns? Dec 08 22:52:22 top half = picture, bottom half = name, description, SIZE, AGE, color accoring to sex Dec 08 22:52:43 But the full pic wouldnt fit the pic Dec 08 22:52:45 i do like the circle, and the border color thingy too Dec 08 22:52:53 Thats why im trying to preserve it Dec 08 22:52:56 srsly you have *3* indications of sex Dec 08 22:53:02 drose379 i'd worry less about the icons, borders, etc and just put it in user hands to see if it meets expectations. this is bike shedding now Dec 08 22:53:28 Whats bike shedding? Dec 08 22:53:38 i would just make it so most of the card is the picture of the animal. that’s what people are there to see Dec 08 22:53:42 unless its for yourself, its hard designing apps without user involvement Dec 08 22:53:52 You're right g00s Dec 08 22:53:59 bike shedding is trying to fix problems that aren’t really problems, to kinda procrastinate Dec 08 22:54:03 I do enjoy scrolling through looking at animals, but its for users Dec 08 22:54:06 Oh, ok Dec 08 22:54:28 users are not always very useful tho. they demand the weirdest things Dec 08 22:54:44 i’d say either make the picture bigger and more prominent, or have two columns. Basically a bigger picture to card ratio Dec 08 22:55:03 Im gonna make the circle bigger now, will show screenshot when done Dec 08 22:55:20 Thanks for all the feedback guys, means a lot Dec 08 22:55:28 anytime Dec 08 22:56:48 removed the quit button in my app recently Dec 08 22:57:05 now users come and want the quit button back Dec 08 22:57:30 educate em Dec 08 22:57:30 :D Dec 08 22:57:35 drose379: I do find the “Good Day!”, “Hey!”, and “They call me…” stuff to be pretty cute Dec 08 22:57:43 lol quit button Dec 08 22:57:46 i love telling them that the quit button was a "fake" for several versions and all it did was stop the service and finish the activity Dec 08 22:58:06 You like s73v3r , cool Dec 08 22:58:20 Ok, circles are freaking huge now haha Dec 08 22:58:43 Might bring some life to the cards though Dec 08 23:00:13 Too big? http://i.imgur.com/DONIuXG.jpg Dec 08 23:01:06 Sistine is looking right into my soul Dec 08 23:01:24 Oh yes Dec 08 23:01:33 That may help her get adopted Dec 08 23:01:54 What you think of size squirrel Dec 08 23:02:08 i dunno Dec 08 23:02:13 i feel there’s still too much empty space on the left and right, but you can’t really do anything without making the rest of the card bigger Dec 08 23:02:52 Hmm Dec 08 23:03:38 I think the backdrop has to come down more Dec 08 23:03:43 don't get me wrong, circles are cool and all, but they are used as icons in android Dec 08 23:03:57 for most this app would be a one use then quit it type deal. to even have them find it is the fun part, but to have them use it to the end is the best part. keep them intrigued and interacting to the climax Dec 08 23:03:59 they show information that is usually familiar to you already Dec 08 23:04:09 You suggesting I go square? Dec 08 23:04:23 and in your case picture is the most important part of the card Dec 08 23:04:31 circles are also used as profile pictures in a lot of places Dec 08 23:04:42 Oh good catch s73v3r Dec 08 23:04:52 you usually know those people Dec 08 23:05:07 everyone on G+ is a circle Dec 08 23:05:07 Trueee Dec 08 23:05:43 still, picture is the most important part of the card here Dec 08 23:05:55 i’m ok with or without circles. I think the circles look nice, but the problem is that the picture needs to be the focus of the card Dec 08 23:06:05 yes Dec 08 23:06:06 I don’t know how much i’m feeling that with this design Dec 08 23:06:15 and I definitely don’t want to see the card any bigger Dec 08 23:07:14 Got another screenie with a few changes Dec 08 23:07:17 by providing little info you are sorta pushing users to tap on cards Dec 08 23:07:20 May give the cirlce more focus Dec 08 23:07:27 might or might not be a good thing Dec 08 23:07:27 Yep, exactly what I want Dec 08 23:07:45 That new CollapsingToolbar effect is nice, they might like that, no? Dec 08 23:08:12 Ok, are your eyes drawn to the card here? http://i.imgur.com/nHc1Ien.jpg Dec 08 23:08:16 I mean, to the circle Dec 08 23:09:39 i hate to do this to you, but between the backdrop and the picture having a weird cropping, I’d say the backdrop comes down a bit too far Dec 08 23:09:46 you cut the white dog's head off :/ Dec 08 23:10:04 s73v3r, I enjoy the feedback Dec 08 23:10:25 squirrel, I thought if i tried to fit the entire photo in it would come out distorted Dec 08 23:10:30 it might be that, but it seems like the circle is a bit too big, even though I don’t think the circle itself changed Dec 08 23:10:41 It didnt, lemme make it smaller Dec 08 23:10:51 no, don’t Dec 08 23:11:01 try bringing the backdrop to about halfway down the circle? Dec 08 23:11:21 The cirlces were 200, think I should try 180? Dec 08 23:11:57 Ill try the half backdrpo Dec 08 23:12:09 try one leaving the circle size as is, but moving the backdrop to about half, and then try one changing the circle size Dec 08 23:12:29 Ok, you guys mind all the screenshots im pasting? Dec 08 23:12:39 not at a;; Dec 08 23:12:42 all Dec 08 23:15:40 Here: 200dp circle, 100dp backdrop Dec 08 23:15:46 Looks like the margin at the top is too small Dec 08 23:15:47 http://i.imgur.com/MA85RyN.jpg Dec 08 23:17:10 Maybe the backdrop should be a bit bigger? Dec 08 23:17:28 i liked the ½ card backdrop better Dec 08 23:17:48 Thats what its at now Dec 08 23:17:53 also you've got mail! Dec 08 23:17:54 Oh, 1/2 card you mean Dec 08 23:17:56 Ok Dec 08 23:17:57 I do Dec 08 23:17:57 Yes Dec 08 23:18:39 So the cards height is wrap_content, so theres no sure way to get the backdrop to half height Dec 08 23:18:42 Unless I use weight Dec 08 23:19:17 i agree this last one is too small Dec 08 23:19:34 Ok, I may just keep this then: (One sec) Dec 08 23:20:27 http://i.imgur.com/G2eV2pk.jpg Dec 08 23:20:45 Can I ask about Xposed Framework here? Dec 08 23:22:11 maybe a bit more wider blue/pink circles? Dec 08 23:22:17 Curious how I install the Xposed SDK Zip when I cannot use a custom recovery to install it. Can I install a zip over ADB and wipe cache? Dec 08 23:22:32 I'm not the best with ADB. Dec 08 23:22:43 squirrel, if I go wider I would have to go taller too Dec 08 23:22:47 If not it will be an oval Dec 08 23:23:57 drose379: I think that’s good; although with different animal pictures, it is a bit hard to tell. Dec 08 23:23:59 Asked in the #android-root channel, just waiting for a reply. Dec 08 23:24:23 no i mean the blue and pink circles Dec 08 23:24:32 Oh, theres another thing I have to figure out how to do Dec 08 23:24:36 or circumferences Dec 08 23:24:44 or whatever you call em Dec 08 23:24:55 Oh I see squirrel you mean around the image? Dec 08 23:25:12 yuh Dec 08 23:25:48 In my CollapsableToolbarLayout, when the image is out, the toolbar is trans, the problem is that sometimes the white icons are almoast invisible on the photo Dec 08 23:25:55 Does that make sense or should I show a screenshot Dec 08 23:26:57 makes sense Dec 08 23:27:04 I was thinking I could do a tint Dec 08 23:27:09 like 30 percent black Dec 08 23:27:17 you'll have the same problem with the name Dec 08 23:27:52 Yeah, I've seen apps have a tint behind their writing in situations like this Dec 08 23:27:54 we start transparent, but then as you scroll, there’s a tint Dec 08 23:28:18 Right Dec 08 23:28:23 Id like a tint the whole time Dec 08 23:28:32 A very slight tint, just so the user can see the icons Dec 08 23:28:41 If I run an AMD computer so emulation is crap, can I use an external device as my 'debugger/development target' Dec 08 23:30:07 Be back in a bit guys Dec 08 23:32:11 daemon, of course Dec 08 23:32:18 device is always preferred development env Dec 08 23:32:49 perfect Dec 08 23:32:51 thank you pfn Dec 09 00:03:01 hi Dec 09 00:12:07 Do you guys think this accent color goes well with primary: http://i.imgur.com/JTVb1HS.png Dec 09 00:12:28 better than the previous green Dec 09 00:12:42 Cool Dec 09 00:13:14 Hey would you happen to have any idea on how to tint the toolbar background when the photo is showing below it? Dec 09 00:16:05 i believe you just set the color Dec 09 00:17:13 But where? Because I only want it tinted when the photo is showing Dec 09 00:18:47 we do setBackground Dec 09 00:19:05 we have a scroll listener for scrolling, and change the state of the background as we scroll Dec 09 00:19:19 you could wait until you get the callback that the picture loaded Dec 09 00:27:07 So do you have to have all the screenshots and graphics ready for an alpha release on google play? Dec 09 00:31:46 This is the only other icon I could find for Rodent: https://icons8.com/web-app/for/all/rat Dec 09 00:34:01 silly website. no icons for squirrel Dec 09 00:34:29 Lol Dec 09 00:34:35 Got any other suggestions for sites to search? Dec 09 00:36:28 Could do this: https://thenounproject.com/search/?q=rat&i=181920 Dec 09 00:36:37 https://thenounproject.com/search/?q=rat&i=151745 Dec 09 00:37:11 the face one is nice Dec 09 00:37:22 i don’t know if it fits with your other icons, but it’s nice Dec 09 00:37:45 Right it doesnt fit quite right because there is no color Dec 09 00:38:30 why there are guns in the bottom Dec 09 00:39:01 ?? Dec 09 00:39:46 I am dynamically adding several views to a LinearLayout, but only the first one appears (there is room for at least three of the views) Dec 09 00:39:48 May have just found osme Dec 09 00:40:01 jdeisenberg: Ya dun goofed somewhere. Dec 09 00:40:19 TacticalJoke: Yes, I sort of have that notion. Dec 09 00:40:31 Are there any common "gotchas" that I need to know about? Dec 09 00:40:34 I'm doing this in onCreate(). Dec 09 00:41:27 width and height are set to 896dp and 128dp respectively. Dec 09 00:41:28 You're forgetting to set the orientation to vertical. Dec 09 00:41:46 I want them to be in a horizontal row, so orientation vertical would not help me. Dec 09 00:42:11 The linear layout specifically has android:orientation="horizontal" in the XML. Dec 09 00:44:27 ...but setting it to a fixes the problem. Dec 09 00:44:29 Thank you! Dec 09 00:44:59 jdeisenberg: If they're in a simple line, LinearLayout should work and is better. Dec 09 00:45:17 Morning channel. I've moved my project to AS from Eclipse, I'm now finding that AppCompat and the project's attrs.xml have defined the same value. Any tips here? Dec 09 00:46:00 TacticalJoke: for the moment I'm going to stay with Relative, as it works :) Dec 09 00:46:11 but thank you for the hint that got me thinking. Dec 09 00:46:13 Fall: What resource ID the same? Dec 09 00:46:45 Sorry that question broke my brain Dec 09 00:47:14 Gradle is erroring, reporting that textAllCaps has already been defined Dec 09 00:48:07 New rodent icon, still not sure about it, better then other I think though: http://i.imgur.com/tzBzAUh.png Dec 09 00:49:14 Fall: I guess you have defined `textAllCaps` in attrs.xml and AppCompat does the same. Dec 09 00:49:21 Removing yours should fix it. Dec 09 00:49:45 TacticalJoke: would gravity have any effect on the problem? Dec 09 00:51:53 TacticalJoke, you said I should learn version control ;) what's your best advice on the topic? Dec 09 00:54:52 read the Git book Dec 09 00:54:55 The typical advice would be to learn Git. IMO, it's a less-good Mercurial, but it's basically the standard now (because of GitHub and so on). Dec 09 00:55:01 or use Mercurial Dec 09 00:55:15 jdeisenberg: It's much easier to help if you post the code. Dec 09 00:55:23 https://git-scm.com/book/en/v2 Dec 09 00:55:29 affinity designer 1.4 \o/ Dec 09 00:55:50 do you use it? Dec 09 00:56:17 TacticalJoke: there's a lot of code, so hesitant to post a huge bolus. If I just post the part that's having a problem, there may not be enough context to see what's going on. Dec 09 00:56:23 i've been trying to - missing a few features. we'll see what in the update Dec 09 00:56:33 beside artboards, which is great of course Dec 09 00:56:34 g00s: have you tried Sketch? Dec 09 00:56:42 s73v3r no ... $99 ouch Dec 09 00:56:52 i got AD for $20 on sale Dec 09 00:57:10 AD doesn’t have artboards? Dec 09 00:57:27 it does not. well, i did run a Sketch trial but it was so buggy, i just gave up Dec 09 00:57:42 well it has artboards now in 1.4 Dec 09 00:57:53 i’m looking for a tool that’s like those Dec 09 00:58:11 something I can use to work on the design of apps Dec 09 00:59:59 AD is missing some stuff, like command line, rotate around arbitrary point, etc Dec 09 01:00:21 jdeisenberg: If you're learning, it's a lot easier to create a new layout and test things. Dec 09 01:00:58 If not a whole new project. Dec 09 01:01:43 TacticalJoke: good idea; I may try to set up a project to test just that one part. Thanks again. Dec 09 01:02:00 (the views I'm adding are multiple instances of a custom view, BTW). Dec 09 01:02:53 This is cool: Kotlin may be getting some kind of `async`/`await` construct post-1.0: https://discuss.kotlinlang.org/t/when-async-await-will-support/1350 Dec 09 01:03:29 I guess I just need to git better lol Dec 09 01:04:10 drinfernoo but you said you don't have a computer right ? so git on android ? Dec 09 01:04:37 yeah my ide has git Dec 09 01:04:51 aide on android ? Dec 09 01:04:58 yup Dec 09 01:05:01 lol Dec 09 01:05:22 it does basically everything AS does ;) I just get a lot of hate for doing things differently, I guess Dec 09 01:05:42 seems like a feat of engineering ... Dec 09 01:05:46 except for have any kind of support Dec 09 01:06:04 wow this google fit app sucks Dec 09 01:06:13 doesn't even show the correct exercise stuff :/ Dec 09 01:06:21 Afzal is it telling you , you need to lose weight :P ? Dec 09 01:06:21 yeah s73v3r, I can't even get support for things unrelated to the ide, since everyone focuses on the fact that it's so bad Dec 09 01:06:22 wants to show steps for a WorkoutExercise Dec 09 01:06:26 even though it's not that bad lol Dec 09 01:06:31 g00s I'm talking from a developer's perspective Dec 09 01:06:48 no, it’s that a lot of your problems are caused by the IDE, and by the fact that you can’t do standalone builds Dec 09 01:06:50 Afzal is it open source ? Dec 09 01:06:54 drinfernoo: Why not get a PC? Dec 09 01:07:08 Doing Android development on Android sounds awful. Dec 09 01:07:08 lol when is anything that uses GMS ever open source :p Dec 09 01:07:12 don't need one ;) Dec 09 01:07:17 drinfernoo yes you do :D Dec 09 01:07:19 What device do you use? Dec 09 01:07:24 nexus 6 Dec 09 01:07:29 Jeez, not even a tablet. Dec 09 01:07:36 close enough lolol Dec 09 01:07:41 no, not really Dec 09 01:07:42 drinfernoo now if you had a Lumia 950, then ... you could use your phone as a PC :D Dec 09 01:07:44 Do you have a hardware keyboard? Dec 09 01:08:04 drinfernoo what about a chroebook with crouton on it ? Dec 09 01:08:08 *chromebook Dec 09 01:08:12 I have a Bluetooth keyboard, but I find it a bit cumbersome, since I do most of my coding on the go Dec 09 01:08:45 oh wait , i guess chromebook is arm - i doubt the android binaries have arm versions Dec 09 01:09:02 chromebook can be x86 too Dec 09 01:09:02 drinfernoo: That has to be so painful compared to using a laptop/desktop. Dec 09 01:09:30 so I'm trying to get my app to function correctly on configuration changes, and whenever I change to landscape, it crashes, because it loses contezt Dec 09 01:09:34 context* Dec 09 01:09:52 what’re you doing in onSaveInstanceState and onResume? Dec 09 01:10:01 my mistake, chromebooks are intel Dec 09 01:10:10 they’re both Dec 09 01:10:31 ah ok, was just looking at the pixel 2015 Dec 09 01:10:46 dang thats probably better than my MBP Dec 09 01:11:01 aside from software support Dec 09 01:12:00 drinfernoo Dell Chromebook 11 got good reviews, $250 Dec 09 01:12:07 dude thats cheaper than most android phones Dec 09 01:12:42 s73v3r, nothing really lol I don't know how to approach this Dec 09 01:13:28 g00s, I wish $250 was disposable income ;) Dec 09 01:13:48 err ya, me too - but you need money to make money Dec 09 01:14:26 and beside using something crazy like a rpi, thats about the cheapest computing device you can get Dec 09 01:15:06 sell a kidney or something Dec 09 01:15:21 well, I don't have to spend anything to use my phone ;) and I'm making a free app anyway, so its not gonna make me any money except unless someone donates Dec 09 01:15:27 I've considered it Dec 09 01:15:39 I'm in good health, who do I talk to for that kind of thing? Dec 09 01:15:54 what does a kidney go for these days? Dec 09 01:17:12 s73v3r know offhand if crouton still works on these devices? i heard it was getting harder to sidestep chromeOs Dec 09 01:17:49 not a clue. Dec 09 01:18:07 i bet with ubuntu + xfce its pretty zippy Dec 09 01:19:33 hmm...still don't know how to use dagger for mvp stuff. Dependency stuff is neat though Dec 09 01:21:10 ah, need a mvp architecture and then use dagger with it. oooookay :/ Dec 09 01:23:59 Afzal were the 400 MVP on android articles published in the past year confusing :P Dec 09 01:24:15 'where to i put the blah, in the presenter or the xxx' Dec 09 01:24:26 g00s lol very. Because I was like "hey, my shit works, why do I care" Dec 09 01:25:03 now I'm like "I need to get to this higher level of Android developers, I should probably start giving a crap about this stuff and incorporate it in my workflow" Dec 09 01:27:43 Hmm, proguard not working: http://pastie.org/private/elbbcqbkqj3egnmtxeg Dec 09 01:27:46 What to do Dec 09 01:32:43 drose379 get rid of proguard :) Dec 09 01:32:50 Dont use it? Dec 09 01:32:56 so where do I start on this configuration change stuff? Dec 09 01:33:05 Hi, I can't seam to get adb devices to list my device, i'm running ubuntu 14.04 and have a nexus 6p, Dec 09 01:33:25 skweek, new drivers Dec 09 01:33:34 drinfernoo: from where? Dec 09 01:33:59 g00s, what do you mean>? Dec 09 01:34:08 don’t use proguard unless you have to for pruning method counts Dec 09 01:34:29 Huh, ok Dec 09 01:34:48 and still, probably easier using multidex than proguard Dec 09 01:35:49 skweek, http://lifehacker.com/the-easiest-way-to-install-androids-adb-and-fastboot-to-1586992378 Dec 09 01:36:41 drinfernoo: what's the deal with it? Dec 09 01:37:05 g00s & s73v3r You dont use Proguard for release builds...? Dec 09 01:37:13 Do you not care about obfuscation? Dec 09 01:37:38 skweek, ? Dec 09 01:38:48 i worked one place where we used Dexguard, the big brother to Proguard Dec 09 01:39:08 other than that, obfuscation is too much work for too little return Dec 09 01:39:57 orbyt_ imho its too difficult knowing if / what stuff breaks after proguard Dec 09 01:40:06 you better have some awesome tests Dec 09 01:40:17 proguard brakes stuff? Dec 09 01:40:29 if a library uses reflection, sure Dec 09 01:40:38 unless you know about it, and adjust accordingly Dec 09 01:40:49 kinda pita keeping tabs on what all your libs are doing though Dec 09 01:40:54 and their transitive deps Dec 09 01:40:58 The hell does my description have to be so short for alpha build? Dec 09 01:41:00 80 chars Dec 09 01:41:03 part of proguard is removing methods that aren’t used, and another part is obfuscating method/class/package names Dec 09 01:42:12 proguard can be pretty smart though, like if you use AtomicField**Updater, i guess it leaves those alone Dec 09 01:42:46 s73v3r was dexguard worth it ? Dec 09 01:43:24 boo, material icons missing Google Nearby icon Dec 09 01:43:37 seems to be they require that icon so i have to use their pngs Dec 09 01:43:39 i don’t think so, but they were Big, Enterprise Company with Sensitive Data (TM), so I’m sure they thought so Dec 09 01:43:48 sure Dec 09 01:44:10 i remember there being a lot of work getting the config file working Dec 09 01:44:23 this was about a year and some months ago Dec 09 01:45:39 lol a material icon for 'airline seat legroom' O.o Dec 09 01:45:50 they’ve thought of everything Dec 09 01:45:51 g00s: https://materialdesignicons.com/ has nearby Dec 09 01:46:09 hm i was https://www.google.com/design/icons/ Dec 09 01:46:29 orbyt_ ah ok thanks Dec 09 01:47:24 sweet Dec 09 01:47:32 they had the vector drawables oo Dec 09 01:52:14 so drinfernoo: still nothing listed Dec 09 01:52:44 hey, i'm running ubuntu 14.04, with a nexus 6p and adb devices doesn't list anything Dec 09 01:57:07 drose379 https://github.com/square/okio/issues/60 Dec 09 01:57:15 Thanks Afzal Dec 09 01:58:31 np Dec 09 02:00:11 sorry skweek, thats what I had lol Dec 09 02:04:50 arg wtf am I missing... Dec 09 02:04:53 Anyone have any idea how to get a stream from http://www.ustream.tv/ to play in a textureview? Dec 09 02:05:03 I can see the thing in lsusb Dec 09 02:05:08 I can get a stream to play using a webview but it isnt as nice Dec 09 02:06:20 I can see its a part of plugdev group as well I'm a group member of that group... adb just doesn't see it Dec 09 02:06:29 phone's in dev mode Dec 09 02:06:49 SOMEONE HELP ME! Dec 09 02:06:57 woe is me Dec 09 02:10:56 skweek there is only weeping and gnashing of teeth ahead Dec 09 02:11:19 heh Dec 09 02:12:41 So the play store listing is asking for a hi res icon Dec 09 02:12:58 I have my launcher icon, but its not up to the size standards of the hi res icon Dec 09 02:16:34 skweek: you’re really having adb trouble on ubuntu? Dec 09 02:16:40 yes duboisj Dec 09 02:16:41 or joking? Dec 09 02:17:16 this so post has stuff, I think I may have had to do both in past, but in particular I think I did the ~/.android/adb_usb.ini bit. Dec 09 02:17:20 http://askubuntu.com/questions/213874/how-to-configure-adb-access-for-android-devices Dec 09 02:18:31 I will give it a go Dec 09 02:19:00 good luck Dec 09 02:24:23 ya nope Dec 09 02:24:42 why doesn't it see the thing :/ Dec 09 02:25:31 you changed your udev rule and also added the device to adb_usb.ini? Dec 09 02:27:01 I haven't done anything with adb_usb.ini Dec 09 02:27:41 that has been necessary for me in the past Dec 09 02:33:28 I don't see a udev rule for the nexus 6p that I pulled off of android's website? Dec 09 02:35:25 you mean you don’t have the right udev file to use? Dec 09 02:35:44 I expect you’d need to modify something like the sample on that so post based on the results of lsusb Dec 09 02:36:15 well I don't see any entry for the nexus 6p in the udev file Dec 09 02:37:38 Is there already an udev rule for other android devices? I don’t tinker with those a lot, but I’d think you would make a new rule / file. Dec 09 02:38:33 yes, there is... it's labeled the nexus 5 and it has the same product and vendor IDs as the nexus 6p so I dont think that is the problem Dec 09 02:39:13 so have you edited your adb_usb.ini file in ~/.android? Dec 09 02:41:53 How long does it usually take to get from Pending Publication to Published Dec 09 02:45:32 If your application still wants to be activated with alarm manager even after the application has quit, how do you handle the application quitting? Dec 09 02:45:42 I did, I'm going to restart the machine Dec 09 02:49:41 skweek: still nothing? Dec 09 02:51:45 drose379 hm, don't know but somebody usually looks at it Dec 09 02:51:54 to make sure its legit Dec 09 02:51:54 Ok Dec 09 02:51:58 Right Dec 09 02:52:12 people have actually gotten apps suspended right off on alpha Dec 09 02:52:25 Why? Dec 09 02:52:40 hi i want to pass a arraylist of clas instances to another activity whats the safest way to accomplish this? Dec 09 02:52:56 Either ParcelableArrayList or StringArrayList Dec 09 02:53:04 Oh, yeah Parcelable **** ENDING LOGGING AT Wed Dec 09 03:00:25 2015