**** BEGIN LOGGING AT Mon Jan 25 02:59:58 2016 Jan 25 03:08:31 Anyone ever re-written an app they built? Jan 25 03:08:37 From ground up Jan 25 03:20:52 drose379: Yes Jan 25 03:22:25 Beneficial loke_ Jan 25 03:22:27 ? Jan 25 03:23:30 drose379: Well, there are times a project is clearly going down the wrong path. When fundamental core designs were just bad. Rebuilding from scratch and selectively taking code from the old project may be the right thing to do. Jan 25 03:24:07 True loke_, this is an app I have already released and am working on updating, but realizing some of the code is un-maintainable Jan 25 03:24:16 So thinking a re-write may be best Jan 25 03:24:45 That's why one should always write modular code with as fae interdependencies as possible. That makes it easier to reuse code when you do a rewrite. Jan 25 03:24:52 few Jan 25 03:25:08 Yep, learning that now Jan 25 03:25:14 Will prob focus on that in the re-write Jan 25 03:29:42 this is your pets app drose379? Jan 25 03:29:47 Yep Jan 25 03:29:58 your first wasn't it? Jan 25 03:30:06 A pets app? Jan 25 03:30:13 It was alex_PP Jan 25 03:30:14 * loke_ pets alex_PP Jan 25 03:30:20 loke_, pet adoption app Jan 25 03:30:25 Want to check it out? Jan 25 03:30:30 Sure Jan 25 03:30:34 One sec Jan 25 03:30:36 gonna grab link Jan 25 03:30:54 rewrite it, why not. apply everything you learned the first time around Jan 25 03:31:06 Thats what Im thinking alex_PP Jan 25 03:31:08 loke_, https://play.google.com/store/apps/details?id=dylan.com.adoptapet&hl=en Jan 25 03:31:10 or move onto something new Jan 25 03:31:17 variety is the spice of life Jan 25 03:31:30 Hmm. Weird. Jan 25 03:31:31 "This app is incompatible with all of your devices." Jan 25 03:31:51 Thats weird, what are you using? Jan 25 03:31:57 Nexus 6P Jan 25 03:32:13 Are you in USA Or Canada Jan 25 03:32:17 Let me try directly from my phone Jan 25 03:32:19 No Jan 25 03:32:23 Thats why Jan 25 03:32:55 Why have a regional lock? Jan 25 03:33:13 I use an api to find animals up for adoption, and the api only covers USA and canada? Jan 25 03:33:24 Oops, did not mean the "?" at the end Jan 25 03:34:16 drose379: Sure, but what if I use a foreign phone but still want to see the availability in the US? I can see the reason to have a warning about non-availabaility outside the US, but completely locking the application? Jan 25 03:34:38 Although, perhaps you just want to reduce support questions and bad reviews... Jan 25 03:34:43 You are right, it doesnt make sense on my part Jan 25 03:34:45 Oh, well yeah Jan 25 03:35:08 drose379: You got the source code available on Github or something? Jan 25 03:35:35 Yeah loke_ Jan 25 03:35:44 Interesting in looking? Jan 25 03:35:57 Ah found it Jan 25 03:36:07 The source code? Jan 25 03:36:17 Well, since it's your first application I'm sure I can critique it :-) Jan 25 03:36:53 Please do! And how did you find it Jan 25 03:37:11 You have a website link from the application page, then there is a big github link Jan 25 03:37:24 Haha yep Jan 25 03:37:24 Nice Jan 25 03:39:08 loke_, what you think? Jan 25 03:40:00 drose379: I'm trying to figure out how much prioir Java experience you have by looking at the code. My current impression is that you have some limited Java exposure. Jan 25 03:40:16 But you have never worked on a real Java project before. Correct? Jan 25 03:40:19 rewriting an app you just published sucks, but since it's your first app, that's forgivable Jan 25 03:41:19 your package is back to front, drose379 Jan 25 03:41:28 should be com.domain.whatever Jan 25 03:41:32 (I base that on the fact that there is a lot of hardcoded stuff in the code) Jan 25 03:41:44 Where loke_ Jan 25 03:41:46 too tired for any meaningful feedback I'm afraid Jan 25 03:41:59 No prob alex_PP Jan 25 03:42:14 Well, just to take an example. Here: https://github.com/drose379/AdoptAPet/blob/master/app/src/main/java/dylan/com/adoptapet/PetResultDetail.java#L302 Jan 25 03:42:29 Think about what happens if you want to offer multiple languages in your application. Jan 25 03:42:52 Ah that wouldnt work yeah Jan 25 03:43:14 A good rule of thumb is to nevel expose an explicit string in the code. Jan 25 03:44:14 why does java use the com.domain.whatever package naming scheme? Jan 25 03:44:21 why even bother with com/org? Jan 25 03:44:37 you're meant to use a domain you own, to enforce uniqueness Jan 25 03:44:42 that is an easily googlable answer Jan 25 03:44:44 RustySha1kleford: Because if your package name clashes you are going to suffer. Jan 25 03:44:45 of course, no one does Jan 25 03:44:54 It's better to ensure uniqueness by using your own domain name. Jan 25 03:44:56 I don't even have a domain name so I ignore it Jan 25 03:45:02 rustyshackleford.whatever Jan 25 03:45:06 no one? everyone that matters does Jan 25 03:45:11 I use com.alex for my personal stuff Jan 25 03:45:18 loke_, never expose a string in the code? Jan 25 03:45:20 pfn, you're right Jan 25 03:45:42 drose379: Yes. Well, kinda. Jan 25 03:45:49 I was exaggerating Jan 25 03:45:52 Where would I put the strings Jan 25 03:45:53 drose379: There are strings, and there are strings. :-) Jan 25 03:46:00 Explain? Jan 25 03:46:03 drose379: in res/ Jan 25 03:46:06 drose379: So it all depends on the purpose of your strings. Jan 25 03:46:18 strings.xml alex_PP ? Jan 25 03:46:21 Ok loke_ Jan 25 03:46:43 create a type that represents an animal Jan 25 03:46:52 Human-readable strings should be in one place only, in res/strings. Now, you should never use those strings as tags (i.e. if you find yourself calling .equals() on a human-readable string you've done something wrong) Jan 25 03:47:09 and have the id of teh sting and id of the icon in there amybe Jan 25 03:47:12 *maybe Jan 25 03:47:17 *the string Jan 25 03:47:26 then you can bin that switch Jan 25 03:48:04 class Animal { int label; int ic_xs;} Jan 25 03:48:18 So I need to call getResources().getString(...) each time I need to use a string Jan 25 03:48:29 if a user's going to see it Jan 25 03:48:31 then yes Jan 25 03:48:38 getString is available on context anyway Jan 25 03:48:54 and most settext things take a resid as well Jan 25 03:49:03 A lot of my data is dynamic tho Jan 25 03:49:06 Point is, "every time you need it" is actaully very rare. It's only when it's being displayed anyway. Jan 25 03:49:33 hard coding strings into java ain't very dynamic Jan 25 03:49:51 the strings that come from the API you can leave as they are Jan 25 03:49:55 I get items from server, store it in a POJO and then display Jan 25 03:49:59 Right Jan 25 03:50:07 there might be a language option on the api, maybe not Jan 25 03:50:12 translation is an afterthought for me and most organizations I work with Jan 25 03:50:23 we're all very American centric Jan 25 03:50:29 translation is an afterthought for me and most organizations Jan 25 03:50:34 pfn: I've seen that often. Jan 25 03:50:52 pfn: Trust me, it's not just in US organisations. China is just as bad. Jan 25 03:50:56 And Japan Jan 25 03:51:03 we were working with most of europe at one point, and still no one cared Jan 25 03:51:07 Pretty much any monologual society suffers from that. Jan 25 03:51:21 monolingual Jan 25 03:51:29 was so hard to even get translations done Jan 25 03:51:48 or convince people to write in easily localised ways Jan 25 03:52:09 alex_PP: That depends on the industry. In Europe, many countries are perfectly happy using English for technical applications. However, an english-only Social application won't fly though. Jan 25 03:52:24 for that matter, most of my apps are region locked Jan 25 03:52:38 this was apps for hire Jan 25 03:52:56 beer and yellow pages and advertising junk Jan 25 03:53:50 Last time I was lead on a major application, I just ensured that everything was properly written so that they could be localised correctly (which involves testing for right-to-left layout and stuff regularly). Then translation was easy. Just send the translation files to the translator and you don't have to do much. Jan 25 03:54:27 However, to be able to design an application correctly, requires at least very basic understanding of multiple languages (I studied 5 of them, so that helps) Jan 25 03:55:08 I was looking for a language version of this, but I can't find one Jan 25 03:55:09 http://infiniteundo.com/post/25326999628/falsehoods-programmers-believe-about-time Jan 25 03:55:13 still a good read Jan 25 03:55:32 alex_PP: Yes. There definitily needs to be a language version of that. Jan 25 03:56:17 the names one is good too Jan 25 03:56:23 http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/ Jan 25 03:56:23 Just getting a basic understand of how different languages count would be useful. Far too many english speakers things that just slapping a suffix for plurals works in all languages. Jan 25 03:58:19 http://www.guidetojapanese.org/learn/grammar/numbers Jan 25 04:00:41 http://www.russianlessons.net/lessons/lesson11_main.php Jan 25 04:00:51 That's for Russian plurls. Jan 25 04:02:37 loke_: TL;DR Jan 25 04:02:38 ;) Jan 25 04:03:00 christ, masculine, feminine nouns Jan 25 04:03:16 alex_PP: For someone internationalising their application, the key thing to remember is that in russian, the plurals are different depending on the last digit of the number. Jan 25 04:03:49 so 22 and 32 use the same suffix, hich is different from the one used in 28 and 38 Jan 25 04:04:15 So you can't even use numeric ranges to choose the form. Aaaargh Jan 25 04:04:53 if I was getting a new android phone, what would you suggest? Jan 25 04:04:58 I'm on verizon unfortunately Jan 25 04:05:05 RustySha1kleford: Do you want a phablet or a smaller device? Jan 25 04:05:10 I just got an xperia Z5 Jan 25 04:05:11 or I would choose the Nexus 5X Jan 25 04:05:20 which is nice Jan 25 04:05:26 no M for it yet thoug Jan 25 04:05:27 loke_: I have an S5 and don't really want to go bigger Jan 25 04:05:36 there's no nice small phoes anymore Jan 25 04:05:39 *phones Jan 25 04:05:42 yeah it kinda sucks Jan 25 04:05:45 Every time I hear about the mobile network situation in the US I just want to cry (out of sympathy) Jan 25 04:05:55 alex_PP: 5X is small Jan 25 04:05:56 although every time I've upgraded to a bigger screen, I haven't regretted it Jan 25 04:06:00 -ish Jan 25 04:06:07 loke_: relatively small Jan 25 04:06:14 compared to whats offered on the market Jan 25 04:06:16 bigger than the old 5 Jan 25 04:06:25 and that was about as big as I'd have like to go Jan 25 04:06:36 I moved from Nexus 5 to 6P. I still feel the 6P is _slightly_ too big. I want it to be maybe 5 mm smaller. Jan 25 04:06:41 nearly got a Z5 compact, but it's asthick as a brick Jan 25 04:06:53 guys any idea how to space out tabs in a tablayout, sort like this? http://prntscr.com/9ugn3m Jan 25 04:07:01 sorta* Jan 25 04:07:04 the normal X5 looks much nicer, and has a bigegr battery and more ram Jan 25 04:07:16 *z5 Jan 25 04:07:35 is there anything with a replacable battery? Jan 25 04:07:38 there was some reason I didn't consider the 5x, I forget what it was Jan 25 04:07:40 The Sony devices are nice froma hardware perspective, but they are too square. Jan 25 04:07:47 wtf samsung. That is a huge reason I bought an s4 and s5 Jan 25 04:08:10 i'd still have my nexus 5 if the power button hadn't died Jan 25 04:08:17 alex_PP: Same! Jan 25 04:08:38 the screen on this x5 is awesome though Jan 25 04:08:38 The N5 was amazing. Jan 25 04:08:49 camera on the 5 was garbage though Jan 25 04:09:02 alex_PP: I wouldn't know. I very rarely use the camera. Jan 25 04:09:03 :-) Jan 25 04:09:10 I find myself using the camera on my new one loads Jan 25 04:09:11 i think it would be cool if sony did a nexus Jan 25 04:09:22 there's a dedicated button which is awesome Jan 25 04:09:33 I never used the nexus camera, because it was soooo bad Jan 25 04:10:02 I dunno. I found it acceptabe on the rare occasions I used it. If I want to take real pictures I use a DSLR though. Jan 25 04:10:12 my cheap $75 lumia 521 is still going strong; i'd by another nokia in a heartbeat Jan 25 04:10:16 "best camera ... blah" Jan 25 04:10:37 got to go Jan 25 04:14:25 meh, git reset --hard :( Jan 25 04:14:33 SlidingPaneLayout is a pain in the ass Jan 25 04:14:44 I dunno. Here's a snapshot I took before I got my 6P: Jan 25 04:14:45 https://goo.gl/photos/C8vcg5vfxeX8jwFM6 Jan 25 04:14:58 It's acceptable I think. Jan 25 04:18:34 loke_ looks like an android dev Jan 25 04:19:15 hanging around, waiting for build to complete :D Jan 25 04:19:35 g00s: :-) Jan 25 04:19:48 Yes, that's way too accurate. Jan 25 04:20:17 Or waiting for the emulator to react to a mouse click... Jan 25 04:22:47 is there an appcompat there for translucent system bar ? Jan 25 04:25:09 weird, its here https://android.googlesource.com/platform/frameworks/support/+/221a4a34d7055d10ec7241525c3576d73eea3004/v14/appcompat/res/values-v19/themes.xml Jan 25 05:34:09 i have 4.4.2. the android Camera app seems to have been, by itself with no input from me: 1) changing its resolution from highest to lowest 2) turning voice control off. can it be coded in the next release to either never have that happen, or for there to be a confirmation box pop up whenever that change is detected? Jan 25 07:26:05 I have a uri like: "content://com.android.providers.downloads.documents/document/6044". it's an image. it can be called, but I can't seem to find its width/height Jan 25 07:26:30 calling BitmapFactory.decodeFile returns gives me null Jan 25 07:27:58 without an exception, so I assume it can't find the file Jan 25 07:28:14 the absolute path is giving me "/document/6044" Jan 25 07:32:59 Greetings. I have a Google Maps fragment in my app, I also have tons and tons of markers in clusters. Problem is that it takes a few seconds to load these, which is annoying. I put the loading in a background thread. This works. However, I don't see the newly loaded markers and clusters in the fragment until I zoom the map in or out just a bit. Jan 25 07:33:33 Can I tell the map to update itself after I'm done loading the markers and clusters (in postExecute())? Jan 25 07:38:00 Heh. I cheated and made a zoomIn() and ZoomOut() Jan 25 07:43:36 @kdeh Are you updating the map on the UI thread? runOnUIThread Jan 25 07:44:18 @kdehl: ^ Jan 25 07:44:21 benwilber: I kinda have to, don't I? In onProgressUpdate(Void... v) Jan 25 08:21:46 hi i am creating chat application and crating chatService and binding it to the activity. Now writing the code for send and receive message. The question is where should i encapsulate the code in the service or MyBinder class Jan 25 08:39:17 so, i wanna write code to know when i am connected a captive portal, but i wanna support most versions and i'm trying to follow the code for the framework to understand how exactly i can do so Jan 25 08:40:24 anyone can help me with direction on this? it seems like the captive portal handling keeps changing between versions Jan 25 09:28:33 Hiii Jan 25 09:29:11 can anyone tell where to find the latest version of "com.android.support:design" ??? Thanks Jan 25 09:31:06 How can I get the row position of a ListView item in the getView() method of an ArrayAdapter? Jan 25 09:33:06 Hello! Is there any way to listen when my accessibility service was disabled in settings by user? Jan 25 09:36:47 rohit7roy_: android support repository ? Jan 25 09:39:54 i have copied the a.txt file into resource folder. how can i access in java code and read the file content ? Jan 25 10:00:30 keestu: is it in the "assets" folder? Jan 25 10:02:01 String filename= "text/a.txt"; // /assets/text/a.txt Jan 25 10:02:08 context.getAssets().open(filename); Jan 25 10:02:13 explodes, not. i am just thinking where to keep?. i have writting a library and to protect the library based on license file. Jan 25 10:02:20 i will provide license file to user to use my library. Jan 25 10:02:39 i am not sure would one would be the standard way of achieving this. Jan 25 10:05:23 if the "key" you have in the file is large enough to warrant a file I bet you could have them put a file under "assets" and then you read the file with the name you tell them to put the file there as Jan 25 10:05:26 assets go here: http://i.imgur.com/phZRbAr.png Jan 25 10:10:28 keestu: what is your library if you dont mind me asking Jan 25 10:14:31 hi, i have a very strange problem with an old smatphone samsung galaxy mini 2 (android 2.3). when i start app it stack on white screen forever. if i enable debug usb app works perfectly. anyone can explan me ? Jan 25 10:16:10 hi i am creating chat application and crating chatService and binding it to the activity. Now writing the code for send and receive message. The question is where should i encapsulate the code in the service or MyBinder class Jan 25 10:29:18 Hello, I am trying to make sure that my Fragment specific code runs only when I move to it, however, on my server I can see the GET of 2nd fragment which is not in focus Jan 25 10:29:29 I am doing the work in onStart() Jan 25 10:31:17 Would onResume be the place I should be looking/working with ? ? Jan 25 10:33:07 Looney: in what structure is the fragment in? Jan 25 10:33:15 is it part of a pager? Jan 25 10:36:16 Yup, pager Jan 25 10:36:27 Sorry for the delay thepoosh Jan 25 10:36:32 Was filling a form :-) Jan 25 10:36:53 since it's a pager, 3 fragments are created and displayed immidately Jan 25 10:37:05 you need a better mechanism to prevent the requests from going out Jan 25 10:39:12 Hmm, but I only see request of 2 fragment and not the 3rd one's Jan 25 10:39:19 Then this is still a problem :-D Jan 25 10:40:03 Looney: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v4/java/android/support/v4/view/ViewPager.java#904 Jan 25 10:40:17 it's because it's out of the offset limit Jan 25 10:40:24 OK Jan 25 10:41:01 hi explodes, what could be difference going to be if i keep the same in res folder ? Jan 25 10:43:10 keestu: difference is that I don't know how! Jan 25 10:43:29 explodes, :) Jan 25 11:09:24 hi i am creating chat application and crating chatService and binding it to the activity. Now writing the code for send and receive message. The question is where should i encapsulate the code in the service or MyBinder class Jan 25 11:13:26 Life on the bleeding edge: App silently crashes (deep down in libc) when multiDexEnabled is false. Works with true. Fun. Jan 25 11:14:04 Combined with the fact that the crash point is called through Dagger generated code. Jan 25 11:14:21 FML Jan 25 11:21:12 what was that ADB command to show JNI stacktraces? Jan 25 11:23:34 Hello, given the following, how can I clear the strikethrough only if it already exists? http://ix.io/nOp Jan 25 11:25:28 holder.textView.getPaintFlags() ^ Paint.STRIKE_THRU_TEXT_FLAG Jan 25 11:25:49 ^ is XOR, XOR will toggle bits Jan 25 11:26:29 fantastic, thanks. Jan 25 11:26:34 if you strictly want to CLEAR the bit, use holder.textView.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG Jan 25 11:26:46 For more info: http://stackoverflow.com/questions/47981/how-do-you-set-clear-and-toggle-a-single-bit-in-c-c Jan 25 11:31:07 Hello, has anyone here used JUnit4+espresso integration tests ? Jan 25 11:35:49 a while ago, yea Jan 25 11:38:02 explodes, did you have any problem when performing action that opens new Activity? Test performs click on button which opens new activity, and then my test stops exactly on that line Jan 25 11:38:43 mmm the apps i used it with were single-activity apps, I used fragments Jan 25 11:39:33 oh, just that looking by other examples and tutorials it should continue after calling click, but it stops Jan 25 11:49:52 hello, i got same problem like here -> hi, i got same problem like here -> http://stackoverflow.com/questions/12162069/sending-a-raw-packet-to-a-networkinterface-in-android-doesnt-work Jan 25 11:50:46 i am tring to make local vpn to capture packet and edit them and send to destination. i managed to get packet but i cant send it. someone can help? Jan 25 11:53:58 hi there! Jan 25 11:54:44 can someone help me to open to programm on Windows? i always got the JAVA_HOME problem. I fixed it but it bothers me anyway with that problem... Jan 25 11:57:35 So whats the problem if you fixed it ? Jan 25 12:00:04 ugure47, did you restart your system ? Jan 25 12:00:21 error is, No JVM installation found, Please install a 64-bit JDK. If you already have a JDK installed, define a JAVA_HOME variable in envıroment variables Jan 25 12:00:24 yes i did Jan 25 12:00:35 and added also the variable Jan 25 12:01:22 what did you set as the value ? Jan 25 12:02:26 for users: Name: JAVA_HOME and Value: the path Jan 25 12:02:31 for system the same Jan 25 12:02:42 also the same with jre_HOME Jan 25 12:03:14 what is your path value ? Jan 25 12:03:28 JDK: C:\Program Files (x86)\Java\jdk1.7.0_79 and JRE C:\Program Files (x86)\Java\jre1.8.0_71 Jan 25 12:07:15 what happens if you do "echo %JAVA_HOME%" ? (I don't remember if this is correct syntax for windows, haven't used it for years) Jan 25 12:07:52 on cmd? Jan 25 12:08:02 yes Jan 25 12:08:10 when i write java, it appears the about Jan 25 12:08:19 but i try with echo just a moment Jan 25 12:08:46 it gives me the path of jdk Jan 25 12:09:04 is it correct ? Jan 25 12:09:46 ugure47, it tells you to install a 64bit JDK but if your jdk is in `Program Files (x86)`, thats 32 bit, not 64 Jan 25 12:10:03 So anybody figured out a workaround for "Run" from AS not working with Dagger (pressing run a second time always works though)? Jan 25 12:10:20 ok just a minute i will do it Jan 25 12:12:11 it takes me 10 minutes ill be back Jan 25 12:16:33 http://pastebin.com/QdYzRshZ Jan 25 12:16:45 i managed get packet but i cant send it Jan 25 12:17:21 this way i get null destination why? and how i can do it better? Jan 25 12:35:45 Hello, Do you have something about how to configure android studio 1.5 and reboeletric 3.0 ? I'm trying to add testCompile into Gradle file, but it says method not found to 'testCompile()' Jan 25 12:59:58 I have a ListFragment, I am tempted to implement onClick inside my customadapter Jan 25 13:00:26 Should I go with temptation or use onListItemClick in my ListFragment Jan 25 13:16:05 I would not have the onClick in the Adapter Jan 25 13:18:09 i have collapsingtoolbar/appbarlayout and recyclerview. i can scroll recyclerview to collapse/expand the toolbar (appbarlayout?) Jan 25 13:18:20 Is there a safe way with AudioTrack to directly convert a number of channels to an AudioFormat? Jan 25 13:18:24 but i also want to scroll within the appbarlayout Jan 25 13:18:39 Ashiren: CoordinatorLayout Jan 25 13:18:59 i have this Jan 25 13:19:26 scrolling on recyclerview works. but i also want to scroll in the expanded toolbar to collapse Jan 25 13:20:32 explodes: what do you mean Jan 25 13:21:03 squ: ffmpeg is giving me a number of channels, it isn't giving me Dolby 5.1, 7.1, Surround, stereo, mono, etc Jan 25 13:21:16 it's easy to guess stereo/mono, but the other AudioFormats are anyones guess Jan 25 13:21:38 look up android supported media format page Jan 25 13:21:41 i just get squelch if i guess incorrectly Jan 25 13:22:04 i'm looking at the source code, here, it shows the options Jan 25 13:22:18 look up supported formats page Jan 25 13:22:48 I googled it for you my friend Jan 25 13:22:49 http://developer.android.com/guide/appendix/media-formats.html Jan 25 13:23:12 i just went over it and thanks for the help and all Jan 25 13:23:29 there is column of android version and the column of supported channels/codec Jan 25 13:25:25 explodes, what you're looking for it channel layout. Jan 25 13:25:45 yea, i need ffmpeg to give me that information it seems Jan 25 13:25:54 i'm sure it's in the probe data somewhere Jan 25 13:25:59 The ffmpeg API does. Jan 25 13:26:25 ffprobe stream information switch should show it as well. Jan 25 13:26:32 When able. Jan 25 13:30:53 yeee https://ffmpeg.org/doxygen/2.8/decoding__encoding_8c_source.html#l00078 Jan 25 13:31:16 AVCodecContext.channel_layout boom Jan 25 13:32:17 I have a activity like this public class LoginActivity extends AppCompatActivity { ... When trying to test it with Robolectric it gives You need to use a Theme.AppCompat theme (or descendant) with this activity. Jan 25 13:32:27 any tip ? Jan 25 13:33:12 explodes: what do you need it for? Jan 25 13:34:57 building a variable speed playback video player Jan 25 13:35:05 because apparently nobody has Jan 25 13:36:56 and your app re-encodes audio ? Jan 25 13:37:28 I mean this dolby 5.1 channel thing, what for? Jan 25 13:38:53 Hello there. Jan 25 13:38:54 decodes audio, using sonic to adjust the pitch so that when you speed it up it doesnt sound like a mouse Jan 25 13:39:17 the app itself doesn't decode or encode anything, i'm just feeding the decoded bytes to an AudioTrack Jan 25 13:39:59 does instant run do anything now? i see that it re-enabled itsself Jan 25 13:41:00 So I've been doing some tinkering with fragments and new material design and I followed different guides on how to implement navigation drawer with Toolbar. The idea is to use one activity with different fragments for each navigation drawer item. The problem I'm having is when I want to go back from Fragment2->Fragment1 (Fragment 1 being my home fragment) with up button in Tollbar. It opens navigation drawer instead of going up. What could cause Jan 25 13:41:00 this? Jan 25 13:41:41 did you set something like "homeAsUpButton" or whatever Jan 25 13:41:52 Back button is woring ok, I just have to call addToBackStack and it's working. Don't know why up is not working Jan 25 13:41:53 explodes: and why ffmpeg is there? androids AVCodecContext is ffmpegs software? Jan 25 13:41:58 explodes, yes I did. Jan 25 13:42:08 frojnd: then I don't know, heh. sorry Jan 25 13:42:29 <_3mpty> frojnd: did you set onNavigationClickListener? Jan 25 13:42:30 activity.getSupportActionBar().setDisplayHomeAsUpEnabled(true); since I'm in a Fragment Jan 25 13:42:43 squ: ffmpeg is there to decode the video and audio, sonic sits on top of ffmpeg for audio decoding. the built-in stuff for decoding isn't adequate Jan 25 13:43:05 _3mpty, no I did not set onnavigationClickListener Jan 25 13:43:23 explodes: sonic is android library, ffmpeg wrapper ? Jan 25 13:43:47 neither is android stuff, its c code, so I'm using JNI/NDK Jan 25 13:43:55 I see Jan 25 13:44:05 you ported ffmpeg software to android ndk? Jan 25 13:44:37 didn't have to port it, i have a jni entry point that uses the ffmpeg pieces that i need Jan 25 13:44:58 interesting, but how do you install ffmpeg to android Jan 25 13:45:04 the c code in this app is only 500 lines long Jan 25 13:45:14 you mean sonic? Jan 25 13:45:22 no, main.c Jan 25 13:45:27 your app? Jan 25 13:45:28 the jni layer Jan 25 13:45:44 Alright let me type this out once in a paste Jan 25 13:45:51 ok Jan 25 13:46:28 https://www.youtube.com/watch?v=PIb6AZdTr-A Jan 25 13:46:34 this is a song to listen while you paste Jan 25 13:46:46 BTW, does JNA work on Android? Jan 25 13:46:55 justJanne: wait, let him explain :) Jan 25 13:47:15 squ: http://i.imgur.com/VOw0kdA.png our code is 500 lines long, main.c, that #includes sonic and ffmpeg stuffs. Jan 25 13:47:26 squ: that's not directly related, tbh Jan 25 13:47:29 Just wondering. Jan 25 13:47:50 explodes: but where do you get ffmpeg from Jan 25 13:47:53 Because I hear people say "JNI" here, while in the rest of the Java world, JNI has been considered dead for a long time Jan 25 13:48:13 squ: build_ffmpeg.sh builds the ffmpeg .a files, ndk-build uses Android.mk to make the libffmpeg.so files for the different architectures. those .so files are the libraries included in the .apk Jan 25 13:48:21 squ: download the source code Jan 25 13:48:34 also this song is sweet at 7 am for some reason Jan 25 13:48:36 I see Jan 25 13:48:42 i've been coding for way too long Jan 25 13:49:16 do you need ffmpeg to adjust sound pitch? Jan 25 13:49:43 sonic.c does that. Jan 25 13:49:56 you pass it an audio packet and a speed and it just werks Jan 25 13:50:06 pretty sweet, really. Jan 25 13:50:27 I'm not sure, but I guess pitch adjustments doesn't need ffmpeg Jan 25 13:50:46 so you could use just java without ffmpeg, no? Jan 25 13:51:37 to adjust pitch one needs to reencode audio, yes or no? Jan 25 13:52:46 i think so Jan 25 13:53:03 squ: you wouldn't believe how much cpu i'm burning doing this even at the c-level, though Jan 25 13:53:28 Am I just tired, I don't see any indication in this trace where my method can't be found: http://pastebin.com/XrW7uFDH Jan 25 13:53:49 squ: at some point (soon) i'm going to need to bypass Bitmaps and use opengl textures Jan 25 13:54:01 anyways it is fun that you succeeded I'm really glad Jan 25 13:54:01 cuz it's really, really, really bad with HD video Jan 25 13:54:20 explodes: have a look at libopus Jan 25 13:54:25 yea Jan 25 13:54:28 it is most modern codec Jan 25 13:54:33 for audio Jan 25 13:55:15 cool, will do man, thanks Jan 25 13:55:42 explodes: also look up sox, soundExchange Jan 25 13:55:53 it is hardcore tool for audio manipulation Jan 25 13:59:13 you could possibly replace both sonic+ffmpeg with it if you succeed porting it to android Jan 25 13:59:32 btw, of what size libffmpeg.so is? Jan 25 14:00:47 for 3 different architectures, the binary comes out to 9.2Mb Jan 25 14:00:52 so about 3Mb each Jan 25 14:03:02 for example, mp4 container consists of m4a & m4v (audio, video), you need ffmpeg to just move .m4a out of container Jan 25 14:07:27 du -h ffmpeg/2.8.5/lib/ Jan 25 14:07:27 35M ffmpeg/2.8.5/lib/ Jan 25 14:07:57 explodes: does that 3mb ffmpeg supports much codecs? Jan 25 14:08:20 when code compiles it usually gets smaller Jan 25 14:08:51 what do you mean Jan 25 14:08:52 let me show what flags it gets compiled with Jan 25 14:08:57 ye Jan 25 14:09:03 like --with-libaac Jan 25 14:09:07 a 35M directory of FFMpeg doesn't mean 35M library Jan 25 14:09:24 explodes, opensl is included on android and does pitch adjustment iirc Jan 25 14:09:44 http://pastebin.com/KdYxjcqS Jan 25 14:09:45 du -h ffmpeg/2.8.5/bin/ Jan 25 14:09:46 572K ffmpeg/2.8.5/bin/ Jan 25 14:09:50 explodes: ffmpeg itself is 500kb Jan 25 14:10:32 this build includes everything, ffmpeg the binary is linked to the other .so files it needs Jan 25 14:10:39 explodes: check out if your ffmpeg handles VP9 webm file Jan 25 14:10:45 it doesn't i'm sure Jan 25 14:10:51 i'm not shooting for that yet Jan 25 14:12:32 you could avoid ffmpeg at all Jan 25 14:12:51 just need to extract audio file from container and adjust pitch with java Jan 25 14:12:54 without ndk Jan 25 14:13:27 I'm away Jan 25 14:14:56 that would be a very slow way to do it, man. Jan 25 14:16:32 Do you think I should go for Robolectric or JUnit ? It's first time I'm playing with test and I'm having a lot of problems with Robolectric. It's running but getting some NullPointerException in it owns classes. Jan 25 14:16:49 anyone is aware of the performances impact of calling a C++ function from java? Jan 25 14:17:09 (like doing it 30 times a second) Jan 25 14:17:35 im concerned about the idea that the function does less than the actual function call Jan 25 14:18:26 its a fair concern, crossing the boundary is very expensive Jan 25 14:18:40 ok, so i'll probably combine it with another call Jan 25 14:19:02 honestly, if you're not sure, you should profile your calls Jan 25 14:19:29 my point of asking was if anyone knew Jan 25 14:19:38 but if you're saying "very expensive", i pretty much have my answer Jan 25 14:19:45 :P Jan 25 14:23:07 eh, not very expensive, but relatively slow Jan 25 14:26:30 I wonder why people want to use actors on android Jan 25 14:41:07 how can I give opacity to my shape? Jan 25 14:41:52 where you define the color just add a byte at the beginning: example: #22ff0000 is a mostly transparent red Jan 25 14:42:22 explodes: thanks, probably should say RTFM to myself. Jan 25 14:42:54 hah Jan 25 14:45:13 anyone familiar with the new gradle ndk plugin? (experimental). I noticed that my .so is 6mb in debug and 5.4 in release which leads me to think that it's either not getting optimized or symbols are not being stripped Jan 25 14:45:25 is there a way to make sure those 2 happen? Jan 25 14:56:57 you want it to optimize in debug? Jan 25 14:59:54 usually symbols don't get stripped in debug Jan 25 15:00:04 you certainly shouldn't want them to be Jan 25 15:02:48 DrBenway, use the file tool on Linux to see if the binary is stripped in release mode Jan 25 15:03:05 and / or see if there's a verbose mode for compiling and see what CC parameters are you using Jan 25 15:03:10 no i want to optimize in release Jan 25 15:04:06 build/intermediates/binaries/release/armv7/lib/armeabi-v7a/libMyLib.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped Jan 25 15:04:24 it's been stripped... so i guess it's not optimized Jan 25 15:04:29 then what's the problem. Jan 25 15:04:38 it's not optimized Jan 25 15:04:44 how are you assuming it's not optimized Jan 25 15:04:51 debug size is 6mb and release 5.4 Jan 25 15:05:01 im not 100% but sounds about right Jan 25 15:05:10 unrolling loops and inlining doesn't increase size that much Jan 25 15:05:20 it should decrease it Jan 25 15:05:21 symbol table is much larger Jan 25 15:05:24 by a fair bit Jan 25 15:05:45 optimizing *increases* binary size Jan 25 15:05:59 let me check on x86 just for fun Jan 25 15:06:09 Hmm. Jan 25 15:06:14 (different build system) Jan 25 15:06:33 DrBenway, it usually also helps if you set method visibility to hidden by default and enable gc-sections Jan 25 15:06:44 there is no DCE in jni Jan 25 15:06:46 i've never seen a release build being of bigger size Jan 25 15:06:54 hi i am creating chat application and crating chatService and binding it to the activity. Now writing the code for send and receive message. The question is where should i encapsulate the code in the service or MyBinder class Jan 25 15:07:01 Mavrik: sure but most of my code is "used" Jan 25 15:07:02 5.4 is smaller than 6 Jan 25 15:07:18 smaller because they've stripped my symbols Jan 25 15:07:23 it should go way smaller Jan 25 15:07:24 DrBenway, well, then I guess there's nothing much you can do. Jan 25 15:07:33 DrBenway, you can run ELF analysis and see what's taking so much space Jan 25 15:07:38 Mavrik: yes... figure out how to switch on optimization Jan 25 15:07:39 6MB is a lot of code :) Jan 25 15:07:45 -Os? Jan 25 15:07:49 -Os -g0? Jan 25 15:07:57 i've tried passing it but didn't make a difference Jan 25 15:08:08 But -Os is pretty much default on most NDK configurations. Jan 25 15:08:13 DrBenway, well then stop guessing. Jan 25 15:08:21 Start figuring out what command-line parameters are being used :) Jan 25 15:08:26 And which parts of code are large. Jan 25 15:08:32 im getting there... Jan 25 15:08:42 my question is if anyone here knew Jan 25 15:09:40 pfn, DCE on NDK libs gives large gains if you use external libs Jan 25 15:09:40 what's to know, your release binary is smaller than debug Jan 25 15:10:01 Mavrik, does it actually work? thought it wasn't there, that's good to know Jan 25 15:10:12 It doesn't work for JNI symbols Jan 25 15:10:34 But if you use large external libs that are only partially invoked in JNI code-paths then it works very well. Jan 25 15:10:48 Just need to add -ffunction-sections -fdata-sections and --gc-sections. Jan 25 15:11:15 with JNI symbols, you have the reflection problem, at least I would, since I don't register shit on load Jan 25 15:12:37 Yeah, with JNI symbols you're SoL. Jan 25 15:12:43 it uses -Os already :( Jan 25 15:13:25 but i just realized that im linking in opencv (.a) Jan 25 15:13:27 that's a good tip to keep in pocket, Mavrik Jan 25 15:13:30 so yeah visibility might help me out Jan 25 15:16:29 So, now having a lecture from a company about doing reproducible UI tests on Android for open source software Jan 25 15:17:00 Bbl Jan 25 15:21:05 glad to hear... Jan 25 15:22:17 danijoo: here? Jan 25 15:22:22 just heard a great lecture Jan 25 15:22:29 thepoosh, yes Jan 25 15:22:43 by unclebob Jan 25 15:22:48 @unclebob Jan 25 15:22:56 about what Jan 25 15:25:01 clean architecture Jan 25 15:25:08 thepoosh poooosh... Jan 25 15:25:14 oh myyy Jan 25 15:25:20 : Jan 25 15:25:21 how're you doin'? Jan 25 15:25:27 ccol :) Jan 25 15:25:42 danijoo: https://vimeo.com/43612849 Jan 25 15:25:54 bitbucket is not working for me Jan 25 15:25:57 that is annoying Jan 25 15:26:24 Investigating - The async workers handling pull request creation and merging are running slow. As a result, it may take longer than normal to create or merge a pull request. We are currently investigating. Jan 25 15:27:01 thepoosh, i love how this guy makes talks Jan 25 15:27:11 bookmarked Jan 25 15:27:24 yeah, he really did a good job Jan 25 15:27:38 reminded me of a college professor of mine, but on crack Jan 25 15:28:03 actually sent it on with this title to a college mate of mine Jan 25 15:28:54 someone give me a perfect gitignore file for Android Jan 25 15:29:04 lol Jan 25 15:29:23 Github's own gitignore includes .idea Jan 25 15:29:24 sanketdg, echo ´*´ >> .gitignore Jan 25 15:29:35 perfectly ignores everything you dont want Jan 25 15:29:41 you should ignore .idea Jan 25 15:30:05 *.iml, build Jan 25 15:30:10 sanketdg: there is an androidstudio plugin for that Jan 25 15:30:26 thats the one I grew over time http://pastebin.com/ZVrnmN98 Jan 25 15:30:32 danijoo: that is cute and evil Jan 25 15:31:04 uncle bob is cool shit Jan 25 15:31:35 here is ours for the time being https://gist.github.com/yishai-glide/f0d380bdcc57e3e8fab4 Jan 25 15:31:41 truckcrash: agreed! Jan 25 15:31:58 it was as a side note from "fragmented" podcast Jan 25 15:34:29 how does this look: https://gist.github.com/SanketDG/6d5b7c2d9fac5d292da3 Jan 25 15:37:02 sanketdg, if it works for you../ Jan 25 15:37:34 danijoo: just want to make sure I do not upload anything sensitive Jan 25 15:37:53 nothing is sensitive beside api keys and passwords Jan 25 15:37:56 and keystore Jan 25 15:38:17 danijoo: I see. Jan 25 15:39:01 do I want to ignore my built apk's? Jan 25 15:40:20 do you want your debug apks sitting in your git repo? Jan 25 15:40:48 danijoo: makes sense thanks. Jan 25 15:56:52 Hello, do i need to have a function loading library for my opengl jni code? (looking at libepoxy, they support to GLES which arises this question in my mind, though my code seem to work without function loading library) Jan 25 15:57:19 s/to GLES/GLES too/ Jan 25 16:08:43 kuldeep: are you asking whether you need to explicitly load opengl libraries? Jan 25 16:11:04 hmmm … I guess we do that, although I’d expect them to always be loaded already. dunno. Jan 25 16:11:55 no, it is about loading opengles functions. like "glCreateProgram" etc... Jan 25 16:12:46 hi, someone can help me please? here is my code -> http://pastebin.com/Dsnv68F0 i am trying make local vpn i managed get packet but cant send them out of the vpn Jan 25 16:12:55 (im targetting GLESv2) Jan 25 16:14:06 my problem is i dont get any error :\ no exception nothing Jan 25 16:16:32 ah, ok. I don’t do opengl stuff, so I don’t know. Jan 25 16:23:38 does someone can help :X ? Jan 25 16:40:06 Bored, im sure you get an error but its not shown because you do not log errors properly Jan 25 16:40:25 there are multiple empty catch blockes and e.printStackTrage() is bad on android too Jan 25 16:40:45 i can add here the full code with exception Jan 25 16:42:52 i cant help with vpn unfortunatly Jan 25 16:42:59 but you should show your full code, yes Jan 25 16:44:35 danijoo http://pastebin.com/Lp9qAAxm Jan 25 16:44:50 danijoo this is with all exception not much different Jan 25 16:45:26 did you try to attach a debugger and step through it line by line? Jan 25 16:46:06 i am using my phone to run it :/ i cant attach to it Jan 25 16:46:08 also logs from a different thread might not show up in AS with default settings. make sure to not filter them out Jan 25 16:46:19 you can Jan 25 16:46:26 phone and emulator arent different in that Jan 25 16:46:53 sorry my bad, so it might be other reason why it crashed earlier Jan 25 16:59:16 funny question, how to force eclipse to rebuild resources? Jan 25 17:00:33 the 90s called, they want their IDE back. Jan 25 17:01:08 Hi guys! Jan 25 17:01:57 I'd like to learn about unit testing on android. Any good book/resource? Thanks in advance! :) Jan 25 17:03:14 Sepho, the official ones are a good starting point Jan 25 17:12:26 lol Samsung SmartTV privacy policy warns users not to discuss personal or sensitive issues infront of their TV Jan 25 17:14:41 thats just sad.. Jan 25 17:14:50 Is there a news article, g00s? Jan 25 17:15:11 i should put all of my "dumb" stuff in storage for 20 years, bet there will be huge demand for toasters not needing internet connections Jan 25 17:15:37 TacticalJoke Edward Snowden tweet Jan 25 17:15:59 but there's a copy of the section in the tweet, so you can read it Jan 25 17:16:59 TacticalJoke https://twitter.com/xor/status/564356757007261696 Jan 25 17:20:12 danijoo TacticalJoke in the US, "trusted third parties" means http://www.zdnet.com/article/meet-the-shadowy-tech-brokers-that-deliver-your-data-to-the-nsa/ Jan 25 17:20:13 danijoo: thanks! Jan 25 17:24:20 hello.. i am using a ThreadPoolExecutor to finish a lot of asynctasks.. now i want to pass the progress threadPoolExecutor.getCompletedTaskCount() / threadPoolExecutor.getTaskCount() to a progressbar.. can u tell me how to do that regularly till all tasks are finished? Jan 25 17:28:08 ugh, hate my old jawbone era, pos Jan 25 17:31:45 montyr: I think you could use ThreadPoolExecutor.afterExecute for that. There, you could Handler.post (to the main thread) a Runnable that updates the ProgressBar. Jan 25 17:32:03 g00s: Hmm, looks bad, although I wonder whether it activates only after pressing a button or something. Jan 25 17:35:11 montyr: An alternative is to have the Runnable you gave to the TPE do this stuff itself (at the end). Jan 25 17:45:05 Any go to lib for displaying gifs? I'm downloading gifs separately, so I don't need a lib that downloads gifs, just something that can actually display them. Jan 25 17:45:17 awful samsung: http://stackoverflow.com/a/33227237/656927 Jan 25 17:45:27 eghdk, i think glide does Jan 25 17:46:01 danijoo: isn't glide a download lib like picasso? Jan 25 17:46:09 it does both Jan 25 17:46:10 bitkiller, you mean aweful swiftkey Jan 25 17:46:10 or are you recommending that I just pull it out of glide Jan 25 17:46:17 they do it on all devices, not only samsung Jan 25 17:46:32 eghdk, glide can download and show already downloaded iirc Jan 25 17:46:42 ok then: awful swiftkey Jan 25 17:46:45 and samsung Jan 25 17:48:26 What is the difference between Handler.obtainMessage(WHAT).sendToTarget(); and Handler.sendMessage(Handler.obtainMessage(WHAT)); ? When is one used instead of the other? Jan 25 17:50:04 danijoo: Okay. I'll look into it. Thanks Jan 25 17:52:43 danijoo: found this guy. gonna try it out. via ndk I think so should be more performant. that's the only issue I see with glides implementation since it is based off of Dave Smiths gist, and it seems like some people have had issues with it. https://github.com/koral--/android-gif-drawable Jan 25 17:55:01 hi Jan 25 17:55:07 how i can solve java.lang.NumberFormatException: Invalid int: "0.0" ? Jan 25 17:55:19 get rid of the part making it a float Jan 25 17:55:59 hey ho hello Jan 25 17:56:37 how do i debug a watch app with my device? Jan 25 17:56:42 or (int) Float.parseFloat("0.0" ) Jan 25 17:57:07 linuxuz3r_, the way its described in the official docs is a good start Jan 25 17:57:29 Hello everyone. Jan 25 18:05:53 what would be the easiest way to have a dropdown from Actionbar with a number of checkbox items ? (which are dynamic) Jan 25 18:06:09 is that Spinner, or ActionProvider ? Jan 25 18:06:53 Well, not spinner i guess since user isnt picking one Jan 25 18:07:19 a popupwindow Jan 25 18:09:12 Computer/Program Specs - (Model:Hp ProBook 4430s, OS:Windows10, Ram:5GB, Software:AndroidStodio1.5.1). First attempt at an actual Android app, I have some previous coding experience as well as having 'started' my BS in Computer Science. I have a problem with GridLayout that I have Googled for all over and cant find an answer. I believe I have everything setup properly, in the View All Screens preview everthing looks good and i Jan 25 18:09:29 good 'ol popupwindow, handing strong from api1 :D Jan 25 18:09:35 *hanging Jan 25 18:10:47 And what, galamar? This is not a US TV series. :D Jan 25 18:10:53 .....but on my phone the GridLayout is only resizing the column and row to fill the blank space and not resizing the first 3 columns or the first 5 rows (grid 4x6). Jan 25 18:11:21 Sorry 2 kids, needing things. Jan 25 18:12:07 column 4 and row 6 resize only. Jan 25 18:12:27 what does the type of computer have anything to do with it? Jan 25 18:13:14 From my time spent in Linux IRC channels. Give as much detail as possible. Jan 25 18:13:15 how do you dev on 5gb ram? Android studio eats this for showing the startup screen :p Jan 25 18:13:17 anyways, post your XML, and maybe your activity/fragment Jan 25 18:13:43 i have the problem Jan 25 18:13:58 t0th_-_ don't panic Jan 25 18:14:28 no you don’t. I have the problem. it’s why I cry myself to sleep with a bottle of cheap scotch every night Jan 25 18:15:51 java.lang.NumberFormatException: Invalid int: "0.0" Jan 25 18:16:00 my 0.0 is a double Jan 25 18:16:28 (int) Double.parseDouble("0.0"); Jan 25 18:16:29 yup Jan 25 18:16:49 TacticalJoke a right.. i wonder i didnt see that before.. i can just update it after each task that finished.. Jan 25 18:16:59 you are right.. Jan 25 18:17:00 Just be sure to come back to the main thread. Jan 25 18:17:01 thanks Jan 25 18:17:36 XML http://pastebin.com/JaF45eMT Jan 25 18:21:20 Be afk off and on. Grandparents coming to pick up a kid. Jan 25 18:24:32 Sorry forgot to mention the phone model, it is an LG G Flex. Jan 25 18:27:01 I’m gonna point out that naming something “imageView1”, “imageView2”, etc is going to make things hell down the road when you need to change things Jan 25 18:28:11 Was getting to renaming those, I never leave default names. They will be name according to the letter that is displayed within the imageview. Jan 25 18:29:00 someone can tell me what i am doingwrong please? http://pastebin.com/Lp9qAAxm line 24-31 Jan 25 18:30:05 Bored, http://imgur.com/jacoj Jan 25 18:30:39 danijooi debugged it but i cant find the problem :\ Jan 25 18:30:45 galamar: do you have a picture as to what it’s doing? And maybe something that shows what it should be doing? Jan 25 18:30:58 Bored: We have no idea what your problem is either, cause we don’t know what’s going wrong Jan 25 18:31:08 show us your stack trace, or tell us what the problem is Jan 25 18:32:52 where can I post pics to? Jan 25 18:33:57 imgur is fine Jan 25 18:37:05 s73v3r i am trying to implement http://stackoverflow.com/questions/20269283/writing-to-vpnservice-output-stream-provides-no-response Jan 25 18:42:08 IMG http://imgur.com/a/t1F4B Jan 25 18:52:48 The latest Mockito beta is really slow here. A mere `mock(List.class)` takes close to a second to execute. Jan 25 19:04:34 I am thinking about just using LinearLayouts and see how that looks. Thoughts? Should that make a difference? Jan 25 19:06:26 pretty sure that's what i end up doing every time i try gridlayout lol Jan 25 19:09:26 That is how I started it but I didn't know about GridLayout at that time. Jan 25 19:25:57 hi, which is the best way to scale an image on an imageview? Jan 25 19:26:48 galamar: The old GridLayout doesn’t support weights, so it couldn’t distribute excess space easily Jan 25 19:27:06 supposedly it does in API 21 Jan 25 19:27:34 I have an image which is wider than higher but I want the height to be bigger than the width Jan 25 19:27:40 however it remains the same Jan 25 19:28:15 Hello, not sure if this is the right channel exactly but does anyone here develop on Ubuntu and use KVM for emulator acceleration? Jan 25 19:28:26 Hey will string.isEmpty() crash if the string == null ? Jan 25 19:28:38 cart_man: Possibly Jan 25 19:28:45 Best to use TextUtils.isEmpty() Jan 25 19:28:51 s73v3r: 100% likely. :D Jan 25 19:29:22 there’s always a chance that things are so broken that the NPE doesn’t throw. Unlikely, but possible :p Jan 25 19:29:55 cart_man youcan use TextUtils.isEmpty() or something Jan 25 19:29:56 s73v3r: Ahhhh yea I remember TextUtils now! I Also remember me and you discussing it ! Jan 25 19:30:06 oh sorty s73v3r Jan 25 19:30:09 *sorry Jan 25 19:30:37 stupid textual keeps getting stuck in scrolling Jan 25 19:30:58 TextUtils seems like one of thsoe classes that not enough people know about, so too many people end up creating their own half-baked implementations of it Jan 25 19:31:14 TacticalJoke https://news.ycombinator.com/item?id=10968135 Jan 25 19:31:42 ditoa, I think most sane people use genymotion :) Jan 25 19:31:47 Yeah, JordiGH. Was talking about it in #mercurial. Jan 25 19:31:53 kinda like NSSet in Cocoa. I used to constantly have to deal with code from offshored teams that would try to use mutable arrays, and loop through them to see if something was already in there Jan 25 19:31:55 cart_man, yes, it'll crash Jan 25 19:31:56 I'm not sure it was a good idea for him to post that. lol Jan 25 19:32:00 because you're calling a method on a null. Jan 25 19:32:00 Ahh, ok thanks Mavrik Jan 25 19:32:35 ditoa, but I used it for a bit and it was kinda working :) Jan 25 19:32:38 keep in mind that if you’re using Genymotion for anything but a personal app that’s free and with no ads, you’re supposed to pay for it Jan 25 19:33:11 Yep. Jan 25 19:33:21 Mavrik yeah, it is working, I just cannot find a way to verify that it is using KVM. Apparently there used to be an Emulator tab in Studio but it appears to have been removed in 1.5 Jan 25 19:35:02 could someone give some advice on animating a button, i’ve put my question on stackoverflow but i don’t understand the last comment, any ideas? http://stackoverflow.com/questions/34957583/android-animation-increase-height-of-imagebutton/34963625?noredirect=1#comment57706188_34963625 Jan 25 19:35:23 Yeah I just setup an emulator running API 19 and it looks the same as on my phone. Did they add the support for weights in GridLayout at API 20? What adjustments could be made to make GridLayout look proper on API 19 devices? Or should I just use LinearLayouts instead? Jan 25 19:35:51 Is there a name for a data structure that consist of an array where the value at some position defines the type of data that follows it ? I'm not limited to android or java here. Jan 25 19:36:05 how do i bottom_align my view? Jan 25 19:37:34 So, I implimented runtime permissions on my app to account for 6.0. I am getting an error that "requestPermissions Call requires API 23 (min is 15)" But My app still works on pre 6.0. Jan 25 19:37:39 Should it not be working? Jan 25 19:38:10 Jdbye not clear what you mean, but generally java doesn't have heterogeneous collections with different types Jan 25 19:38:49 damn it, irc failing all over today jpdery ^^^ Jan 25 19:38:51 jpdery: I think you’re talking about a binary buffer or something like that Jan 25 19:39:10 you’d want to look into ProtocolBuffers or FlatBuffers, I think Jan 25 19:39:15 thank Jan 25 19:39:17 thanks* Jan 25 19:39:36 galamar: Support for weights was added in 21. Jan 25 19:39:57 GridLayout from support lib has weights Jan 25 19:40:00 I'm seeing this pattern, but I have no idea how it's named, Thanks s73v3r! Jan 25 19:40:35 i’m sure there’s a better name for it, as it’s just serializing a struct to binary, but googling those things should lead you to more information about the general idea Jan 25 19:41:04 galamar: What g00s said. Use support lib GridLayout Jan 25 19:41:28 your alternative is using nested LinearLayouts, and that just sounds gross Jan 25 19:42:51 TECFALL: You can use the support library to use that API before 23: http://developer.android.com/training/permissions/requesting.html Jan 25 19:43:28 anyone know how to bottom_align a view? Jan 25 19:43:39 TacticalJoke: I am using the support library, but I am still getting that error. I almost feel like android studio is displaying this error incorrectly. Jan 25 19:44:34 What is the exact line that Lint is warning you about? Jan 25 19:45:45 g00s: Do you mean to add this import android.support.v7.widget.GridLayout; Jan 25 19:45:54 yeah Jan 25 19:46:22 cannot resolve symbol GridLayout. Jan 25 19:47:13 TacticalJoke: line 11 and 16 Jan 25 19:47:16 http://pastebin.com/2JxP5EZQ Jan 25 19:52:07 jpdery, you mean an HList Jan 25 19:52:12 er Jan 25 19:52:21 You need `ActivityCompat.` before both calls. Jan 25 19:52:29 nevermind, you said an item defines what comes after Jan 25 19:52:44 pfn: np Jan 25 19:53:59 new Handler().postDelayed(runnable,5000); do we need to remove the callback in this scenario as well ? Jan 25 19:54:16 is it a good practice to use Handler without a local variable ? Jan 25 19:56:48 so c’mon guys, how do i animate a button increasing in height, any ideas what the comments mean as I am lost http://stackoverflow.com/questions/34957583/android-animation-increase-height-of-imagebutton? Jan 25 19:57:17 chinu: What do you mean by "Do we need to remove the callback"? AFAIK, there's no requirement to do so. But if you don't then I think it'll run no matter what if your process hasn't been killed. Jan 25 19:58:33 krippykripkrip: My gawd, that response: "U can achive your effect like this". Because typing "You" is so hard. :| Jan 25 19:59:13 lol Jan 25 19:59:35 TacticalJoke , I mean , we have to make a variable Handler handler = new Handler() in case we want to remove any callback from it in the other case , but if we make a object without instantiating it with any variable will it eat memory if the task is completed ? or assigning handler = null will be less expensive (main concirn is to save my memory usage) ? Jan 25 19:59:50 TacticalJoke: You any ideas what he means by align_bottom? Jan 25 20:00:02 krippykripkrip, you've been given so many answers, you have never defined wtf it is you want Jan 25 20:00:17 lol Jan 25 20:00:27 for the past week you've been spamming here and getting helo Jan 25 20:00:42 sorry for being a complete newbie :( Jan 25 20:01:10 It’s not that you’re a newbie, it’s that you’re not listening to people who are answering your question Jan 25 20:01:10 krippykripkrip, paste a video of what you want it to look like, and what it currently looks like Jan 25 20:01:35 fuck, my sinuses have completely plugged up my ear Jan 25 20:01:39 this feels miserable Jan 25 20:01:58 chinu: The garbage collector reclaims memory when objects are no longer referenced. Setting a variable to null doesn't achieve anything special; that's just another way of not referencing something. Jan 25 20:03:46 Thanks TacticalJoke , that was what i was worried about , entered into java after javascript and Memory management is completely new world for me, so i make sure i can work with a device with less than 512 Mb RAM as well Jan 25 20:07:45 facebook is no longer giving friend list of any user, any idea why , and how would it help users if they cant invite there friends to play a game together ? Jan 25 20:08:27 How do I add import android.support.v7.widget.GridLayout; if it says it cannot resolve the symbol GridLayout? Jan 25 20:08:45 did you add it to gradle? Jan 25 20:09:14 pfn need that good old decongestant with ephedrine in it Jan 25 20:09:40 the one they banned because you can make meth from it, but the replacement is worthless Jan 25 20:09:56 it’s not banned, you just have to go behind the counter to get it Jan 25 20:10:06 you have to supply ID to get it Jan 25 20:10:19 ah ok Jan 25 20:10:52 netti pot helped me during allergy season, just use distilled water ;) Jan 25 20:11:05 then again its not allergy season :D Jan 25 20:11:05 I just rinsed Jan 25 20:11:07 +1 to netti pot. And to harsh drugs Jan 25 20:11:12 didn't help Jan 25 20:11:45 most useful to prevent the accumulation of allergens in the nasal cavity, once its filled with snot and you need drano its not to helpful Jan 25 20:11:45 I was in this room back in 2013 and g00s , pfn , I remember you guys from those good old days :p , Thanks a lot for serving the community Jan 25 20:12:00 saline from a neti helps with sinus congestion, but didn't do jack squat Jan 25 20:12:00 chinu :D Jan 25 20:12:35 saline nasal spray is good to use on airplanes, dry air + floating pathogens ... Jan 25 20:13:47 Kotlin in Action is 50% of today Jan 25 20:20:34 Add this to build.gradle(Module: app) dependencies { compile "com.android.support:gridlayout-v7:18.0.+" } but still cannot resolve symbol. Jan 25 20:20:48 sync Jan 25 20:20:51 and 18.0.+ is wrong Jan 25 20:20:55 never use + dependencies Jan 25 20:22:15 Hi guys. Just to know. Is there a simple way to have encrypted sqlite databases? Jan 25 20:22:24 I have only found projects like https://guardianproject.info/code/sqlcipher/ Jan 25 20:22:28 g00s: KiA, is it good? Jan 25 20:22:41 I meant native encryption. Jan 25 20:22:49 without requiring adding additional libraries. Jan 25 20:23:08 I did take out the + Jan 25 20:23:21 kjeldahl written by the language designers, most authoritative book there is - i've had good luck with all manning books really Jan 25 20:23:31 g00s: Thanks. Jan 25 20:23:54 wget unless you store the key off-device, encrypting your database will not buy you anything... Jan 25 20:24:08 but I suppose it's ok if you're writing a password manager and the user always enters their password Jan 25 20:24:19 pfn: yep I know. You just need to reverse the apk, and its done. Jan 25 20:24:50 In my use case, this is an app for a company which hasn't internet connection, but only when they are at the office. Jan 25 20:25:26 g00s, i buy it once P2 is done. Jan 25 20:25:44 danijoo what is P2 ? Jan 25 20:26:06 g00s, kotlin in action? Jan 25 20:26:21 Each user of the application has right to access data. The idea is to download the autorisation db locally which allows the user to log in even when they are out. Jan 25 20:26:23 table of contents is divided in 3 parts. part 1 is done Jan 25 20:26:29 ah Jan 25 20:26:43 The cache of data synchronized on the device and the autorization right db must be encrypted. Jan 25 20:26:50 but for me the interessting chapters starts with part 2 Jan 25 20:26:51 But the key will obviously resided inside the app. Jan 25 20:26:58 Except if you have anyother idea. Jan 25 20:29:18 hey guys Jan 25 20:29:19 man i wish there would be someone writing all this backend crap for me :/ Jan 25 20:29:24 unpayed of course Jan 25 20:29:28 bit of research question i got Jan 25 20:29:42 what are generally the good(and easy-ish) game engine available for android Jan 25 20:29:44 we love research questions Jan 25 20:29:46 specifically 2D Jan 25 20:29:49 we all get to debate :) Jan 25 20:30:09 i've looked at andengine Jan 25 20:30:10 unity and libgdx come to mind Jan 25 20:30:13 Ravenheart, libgdx, unity 3D are the most used i think Jan 25 20:30:17 and it looks OK if a bit unsupported Jan 25 20:30:39 i think andengine isnt actively developed anymore (could be wrong) Jan 25 20:30:43 i've fiddled with unity Jan 25 20:30:47 and its a bit overkill for me Jan 25 20:32:10 Hello, guys. I'm trying to use volley framework and I'm getting IllegalStateException from HttpURLConnection class Jan 25 20:32:49 Ravenheart , I have tried andengine , its easy to learn , fast and small in size , Unity makes apk too large , libgdx is not as fast as andengine when it comes to heavy graphics Jan 25 20:33:11 chinu, source for that? Jan 25 20:33:23 i'm looking at making some classic old school remakes, for learning purposes mainly Jan 25 20:33:29 think galaga Jan 25 20:33:35 Caused by: java.lang.IllegalStateException: Already connected W/System.err( 2238): at java.net.URLConnection.checkNotConnected(URLConnection.java:464) W/System.err( 2238): at java.net.URLConnection.setUseCaches(URLConnection.java:861) W/System.err( 2238): at com.android.volley.toolbox.HurlStack.openConnection(HurlStack.java:168) W/System.err( 2238): at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:102) Jan 25 20:33:42 Caused by: java.lang.IllegalStateException: Already connected W/System.err( 2238): at java.net.URLConnection.checkNotConnected(URLConnection.java:464) W/System.err( 2238): at java.net.URLConnection.setUseCaches(URLConnection.java:861) W/System.err( 2238): at com.android.volley.toolbox.HurlStack.openConnection(HurlStack.java:168) W/System.err( 2238): at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:102) Jan 25 20:33:49 Galaga? You can use HTML5. ;-) Jan 25 20:33:58 someone wants to get banned in here... Jan 25 20:34:03 * danijoo glances to melon_aerial Jan 25 20:34:08 sorry Jan 25 20:34:30 Ravenheart , than andengine is way to go , small crisp and fast to learn , there forum is quite active Jan 25 20:34:32 I want to talk about HurlStack openConnection method Jan 25 20:34:34 so, so long as libgdx is still supported/worked on Jan 25 20:34:39 and is not overlycomplex Jan 25 20:34:46 Is anybody from aosp project here ? Jan 25 20:34:48 i think i might have a fiddle with it Jan 25 20:34:55 Ravenheart: It is active. Check out #libgdx. Jan 25 20:34:55 Hey Jan 25 20:35:49 melon_aerial, probably not. we are app developers. The people working on AOSP and framework stuff sit in android-root or the google groups Jan 25 20:36:16 or i've got it. Thank you danijoo. Jan 25 20:36:21 drives me nuts that 'x' on tabs is LEFT on all mac native controls, but RIGHT on AS Jan 25 20:36:56 g00s, this was the hardest thing to get used to when I switched back to windows after years of osX Jan 25 20:37:10 that suddenly all the X switched side Jan 25 20:37:23 playing hide and seek :D Jan 25 20:37:37 danijoo : tried to search some posts but this is what i can get at the moment http://stackoverflow.com/questions/7669268/andengine-vs-libgdx Jan 25 20:38:04 its been a long time i tried andengine for small games Jan 25 20:43:16 ok, so this is what my animation is currently doing, http://sendvid.com/lonhzvg5, this is what I am wanting that I previously implemented in IOS http://sendvid.com/4shunzes Jan 25 20:45:27 krippykripkrip : try YoYo library in android , it will help you with basic animation and if you want this exact effect , try to fiddle with animation object in android with interpolator Jan 25 20:45:43 its not that hard Jan 25 20:46:00 ok thx chinu, lemme go check Jan 25 20:47:06 YoYo Library (c) 1984 Yoyodyne systems Jan 25 20:47:18 chinu: From what I read, most people say libgdx is the faster one. But with the proper architecture, the 3D adapter should be the bottleneck (if you're looking to push polys and pixels at least - Galaga doesn't count). Jan 25 20:48:37 g00s : sorry https://github.com/daimajia/AndroidViewAnimations actually the class name is YoYo the library is this Jan 25 20:49:16 if i have packet that include ip header tcp header and data .. what is easy way to rebuild it and set to its destination? Jan 25 20:49:47 kjeldahl : well i also read a lot on many forums and there are many developers who are slightly on the andengine side and the same amount of developer on the libgdx side , i cant 100% guarantee , I myself is 50.0001% sure Jan 25 20:50:26 chinu: Then go with what is still supported. ;-) Jan 25 20:51:10 is there a way to open an app from a link in a browser if it's installed and if not, redirect to play store? Jan 25 20:52:28 nicolas (the developer) actually replies to the emails , i have pinged him :p , So for me Andengine was way too closer to Android so as per our personal preference I choose andengine , I would just advice others to go through forums and choose the best you framework which suits you Jan 25 20:54:23 alexfu : yeah its very simple , link to the URI of the app Jan 25 20:59:49 krippykripkrip, then just animate y Jan 25 21:00:22 button.animate().y(where you want it to go).setInterpolator(bounce if you want).start() Jan 25 21:00:24 and you're done Jan 25 21:00:34 oh, might have to animate bottom at the same time Jan 25 21:00:39 * pfn forgets Jan 25 21:00:56 I guess you can probably animate top by itself Jan 25 21:01:46 maybe use an object animator to animate top Jan 25 21:03:14 yeah see thats where i am having the issue, no matter what way i try and animate y the bottom position always moves, am looking into the yoyo library but i thought it would be something straight forward Jan 25 21:05:02 chinu: what if the app isnt installed? Jan 25 21:06:39 alexfu : check link and work with try/catch Jan 25 21:08:49 pfn, this nearly works ObjectAnimator.ofInt(v,"top", 100,250).setDuration(300).start(); Jan 25 21:09:01 chinu: i'm asking from a browser, not from an app. Jan 25 21:10:01 alexfu : this might help : https://paul.kinlan.me/deep-app-linking-on-android-and-chrome/ Jan 25 21:10:37 chinu: i literally just saw that Jan 25 21:10:47 seems to be what i was looking for Jan 25 21:10:48 thanks Jan 25 21:30:07 krippykripkrip, but? Jan 25 21:30:30 pfn: yep Jan 25 21:31:03 still not working right, trying to understand what the paths are in objectanimator Jan 25 21:34:09 Hey ! Jan 25 21:35:26 Got a little question : I'm a noob at Android app development, and I need to do a simple task : Make a class which would work like alarm(int minutes) which would wake up the phone & vibrate when needed. Jan 25 21:36:12 I found this > http://stackoverflow.com/questions/4459058/alarm-manager-example, but I don't think I need a service do I ? (I don't need the alarm to start if the app isn't started) Jan 25 21:36:47 pfn: i’m not sure object animator is the to go, any thoughts? Jan 25 21:37:03 krippykripkrip, of course it's the way to go Jan 25 21:37:06 and what path, what are you talking about Jan 25 21:37:16 the objectanimator animating top does exactly what you need Jan 25 21:46:43 wtf, why does changing my view's background drawable to a layer drawable destroy the padding... Jan 25 21:46:48 (padding/margin of the view) Jan 25 21:47:35 g00s: https://redd.it/42mx3z Jan 25 21:47:42 The Reddit version of that Mercurial thing. Jan 25 21:54:18 meh, layerdrawable removes view padding Jan 25 21:58:04 TacticalJoke have seen that argument for a while now Jan 25 22:03:55 With your help and more Googling, my GridLayout now looks perfect on the emulator and my phone. Thank You everyone. Jan 25 22:04:38 galamar welcome to the "finally got gridlayout working" club ! Jan 25 22:06:10 Membership starts at only $199 per year. Please see the receptionist for more information. Jan 25 22:12:55 *sigh* Jan 25 22:13:07 Why the heck can't you do canvas drawing on widget :/ Jan 25 22:14:04 Now this if you would, I have another app that this works in, but in this one it says th .speak method cannot be resolved. As I said I am new and this is probably simple however despite my googling I cannot figure out. Line 18 http://pastebin.com/jq1dA7tE Jan 25 22:15:20 `sayThis` is a String. Jan 25 22:16:01 Local variables take precedence over fields. You'd have to use `this.` to specify otherwise. Jan 25 22:16:41 Mavrik, I assume you mean appwidget, yeah, no remote calls... Jan 25 22:18:24 full screen / immersive mode is not cooperating with Toolbar -- and setSupportActionBar(toolbar) Jan 25 22:18:26 can i ask in objectanimator, what these ints mean, is it the position or the value to be increase? no matter value i set it to it increases to top of screen ObjectAnimator.ofInt(v,"top”,?,? Jan 25 22:18:47 krippykripkrip, from to Jan 25 22:18:53 or whatever the apidoc says it is Jan 25 22:19:08 0 = top of screen Jan 25 22:19:22 g00s: what trouble are you having? Jan 25 22:19:54 duboisj the status bar and navigation bar go away , but the action bar stays behind Jan 25 22:20:08 toolbar isn't maintained by immersive mode Jan 25 22:20:15 and when i come out of immersive, the status bar gets drawn over the action bar Jan 25 22:20:15 setSupportActionBar is only for menu integration Jan 25 22:20:22 pfn ah ... Jan 25 22:20:50 and other minor shit Jan 25 22:20:55 toolbar = your layout, you handle it Jan 25 22:21:11 if you want the system to handle it, use actionbar Jan 25 22:21:32 hm ok thanks Jan 25 22:25:00 Can someone help me please ? https://zerobin.net/?866d9831dd846ccb#rOjEpJel9TX1UDo1nUlrj/ghY11KLKdZE901Ug2stDY= Jan 25 22:25:05 The alarm is never called :( Jan 25 22:40:33 No one is here ? Jan 25 22:40:54 cool app that measures your classic guitar's humidity, temp, and shock http://www.gizmag.com/taylorsense-acoustic-guitar-monitor/41474/ Jan 25 22:41:06 amazing in 2016, such simple visualizations, are missing important things Jan 25 22:47:11 Hello again, is anyone there ? Jan 25 22:48:07 quiet guys - did anyone hear something ? Jan 25 22:48:11 * g00s looks around Jan 25 22:48:14 must be the wind Jan 25 22:48:53 can't hear nothin', sinus pressure has clogged my ear, or I have an ear infection or something Jan 25 23:02:35 foghorn:/home/public/xfer/steam_no_text_android.log Jan 25 23:02:49 eh, wrong channel. sorry. Jan 25 23:04:51 boy howdy trying to get an app developed without testing in mind under test is fun, I tell you whut Jan 25 23:10:22 "without testing in mind under test"? Jan 25 23:12:37 we have an app, and while initially writing it, nobody gave a thought to writing testable code Jan 25 23:13:06 now, we’re looking to make it testable Jan 25 23:20:19 I must be missing something. I keep running into one error after another. Line 31 http://pastebin.com/NfqEhcjL Says: Cannot resolve method 'setOnClickListener(anonymous android.view.View.OnClickListener)'. Jan 25 23:21:59 you're calling the method on the array instead of an item in the array galamar Jan 25 23:22:50 Also, that general idea won't work. The code calls Activity.findViewById before it calls Activity.setContentView, which will always fail. Jan 25 23:22:54 good point. Jan 25 23:30:42 s73v3r: Did you see this? https://www.reddit.com/r/programming/comments/42mx3z/im_going_to_slowly_move_on_from_mercurial/ Jan 25 23:30:49 I did Jan 25 23:31:08 i wish mercurial was more popular, especially in places i work Jan 25 23:40:53 as part of our project, we have several sub-projects. I want to add “prod” and “mock” productFlavors to the app, so I can mock some stuff out. Do I have to do this for every sub-project, or is there a way that I can have one apply to all? Jan 25 23:50:41 ha! https://www.reddit.com/r/Android/comments/42kyph/uninstalling_facebook_speeds_up_your_android/ Jan 25 23:51:07 so no matter what we do , Fb winds up taking away anyhow hahaaaa Jan 25 23:53:30 don't see how this will go well for amzn http://www.businessinsider.com/amazon-said-to-be-in-talks-with-oems-to-get-services-on-android-phones-2016-1 Jan 26 00:20:38 does the lint.xml support regex for matching file names on UnusedResources? I have a few hundred files that are actually referenced programmatically and I'm trying to suppress these warnings Jan 26 00:44:57 https://code.google.com/p/android/issues/detail?id=199597 Jan 26 00:44:58 meh Jan 26 01:02:48 what do you all use for typography? Jan 26 01:36:05 h, i thought the first time my app went into immersive mode, it was supposed to show a help overlay Jan 26 01:38:00 only the first time your device goes into immersive Jan 26 01:38:03 I added a top and bottom padding to my ListView. The pad regions are white, and I do not know how to change the colour Jan 26 01:38:10 I tried changing the background, but this has no effect Jan 26 01:38:28 pfn so its global for the whole device (across all apps) ? Jan 26 01:38:57 probably Jan 26 01:38:58 * pfn shrugs Jan 26 01:39:07 seems strange Jan 26 01:39:32 i would think, first time for any app that requested it Jan 26 01:39:33 sometimes it shows up, sometimes it doesn't, never cared to see why Jan 26 01:39:42 interesting Jan 26 01:55:45 I’ve added product flavors to my app, and now it says it can’t find things in the subprojects Jan 26 01:55:55 i haven’t added any flavor-specific folders yet Jan 26 01:56:09 but it should be grabbing everything from src/main Jan 26 01:56:12 right? Jan 26 02:00:29 stream is unwatchably laggy Jan 26 02:00:32 like all streams Jan 26 02:09:08 wow, noam chomsky thinks bernie has the best policies Jan 26 02:09:32 * g00s would pay to find out where he disagrees Jan 26 02:11:03 politics Jan 26 02:11:04 meh Jan 26 02:11:29 hey jug6ernaut Jan 26 02:11:37 yo Jan 26 02:11:44 and Marvin Minsky dies :( Jan 26 02:12:38 :( Jan 26 02:23:56 s73v3r did you see, xcode 7.3 got 'interactive playgrounds' - looks like a repl ? Jan 26 02:41:56 i have a light theme that extends Theme.AppCompat.Light.NoActionBar, and a dark theme that extends Theme.AppCompat.NoActionBar. In once activity, I'd like to use fullscreen - so I need Theme.AppCompat.Light and Theme.AppCompat for that activity. but then I have 4 themes with lots of duplication. is there a way out of this mess Jan 26 02:43:51 somebody needs to write some kind of theme preprocessor that generates android themes from a better DSL **** ENDING LOGGING AT Tue Jan 26 02:59:58 2016