**** BEGIN LOGGING AT Sat Jan 16 02:59:58 2016 Jan 16 03:14:14 Hey guys, has anyone ever had a problem with tests timing out? My tests seem to time out after 60s with an error saying "Timed out waiting for process to appear on huawei-nexus_6p-8XV7N15A08000638". Jan 16 03:15:06 justJanne: I'd be interested to see any reference to google getting fined/sued for blocking ABP Jan 16 03:20:02 I am using retrofit (http://square.github.io/retrofit/) to interact with a REST server that I've setup. The request is JSON and the response is JSON. One problem that I am trying to solve is how to cache the responses. Ideally, it would be nice to be able to just submit a request and not know whether it hit the cache or it had to hit the server. One idea I had (which I don't like) is to setup a database and first check th Jan 16 03:20:30 make the request. I feel this is too complicated. does anyone know if there is a library that does this automatically? i.e. checks the request (in JSON) to see if it was already made and if so, returns the cached JSON response? Jan 16 03:27:30 Leeds: read the ABP blog, they’ve been making some vague statements about it. Jan 16 03:29:41 sleepster: Are you getting the JSON Callback response as a String? Why not just save a List or a HashMap to SharedPreferences with the response data and what the query was Jan 16 03:30:04 or you could write to internal storage, no need for a DB Jan 16 03:30:19 db is too heavy for something small like that Jan 16 03:30:47 (in my opinion) Jan 16 03:31:24 actually, that’s an ingenious idea. Jan 16 03:31:33 store the hashcode of the string you received. Jan 16 03:31:51 wait, you don’t need an auto-invalidating string even Jan 16 03:31:53 sorry Jan 16 03:32:10 justJanne: that's a pretty vague not-a-reference Jan 16 03:32:15 ignore what I said Jan 16 03:32:16 ignore what I said Jan 16 03:32:21 just ignore it Jan 16 03:32:33 I was about to design a self-invalidating cache Jan 16 03:33:52 liuwenhao: thanks for the idea. I agree that a db is too heavy Jan 16 03:34:19 liuwenhao: I just wish that there is a library that handles everything for me Jan 16 03:34:29 Leeds: the original idea was to store a hash, and filesize. Then use 304 to check for modified, and, if yes, handle the changes automatically Jan 16 03:34:29 so I just make a request and do not know whether it cache or not Jan 16 03:34:48 liuwenhao: instead of having to add the logic of checking the cache first then make the network request Jan 16 03:34:49 justJanne: er, I wasn't talking about caching Jan 16 03:35:03 Write the library then and put it on github :) Jan 16 03:35:27 a nice thing to add to a portfolio Jan 16 03:35:37 liuwenhao: :) I know OkHttp has some caching functions but it requires changes to the actual http header Jan 16 03:36:00 oh, that. Leeds: it’s hard to say more, cause I only read about it in a sidenote of a newspaper interview with Til Faida, where it was mentioned that legal proceeds were ongoing, and their blog would tell more about it Jan 16 03:36:36 Does it really? Maybe it has what you're looking for then. I just use basic Retrofit/OKhttp stuff so I've never delved deep into it @sleepster Jan 16 04:33:10 I usually map a cache check through a future/observable Jan 16 04:36:34 I have an LG L34C phone that is giving Unfortunately, the process com.android.systemui has stopped. Does anyone know of a way to get this to stop? The phone company claims they cannot help me with the issue and it is too old for them to replace it. Also cannot afford a new phone Jan 16 04:36:37 proof of error https://www.youtube.com/watch?v=N_yAR-460CI Jan 16 06:16:31 hi Jan 16 06:16:53 I just attached my samsung mobile device to my laptop and enabled developer options on my device Jan 16 06:17:06 how to I run my app from the android studio on my laptop Jan 16 06:17:08 please help Jan 16 06:17:09 thanks Jan 16 06:18:11 and I get an error unable to launch debug bridge Jan 16 06:22:28 hi Jan 16 06:22:32 sorry to ask this again Jan 16 06:22:52 because no one has ever replied to my earlier question Jan 16 06:22:57 I just attached my samsung mobile device to my laptop and enabled developer options on my device Jan 16 06:23:17 how do I run my app from the android studio on my laptop Jan 16 06:23:30 as I get an error unable to launch debug bridge Jan 16 06:37:47 Just launch it Jan 16 07:36:43 hi Jan 16 07:36:47 I just attached my samsung mobile device to my laptop and enabled developer options on my device Jan 16 07:36:52 how do I run my app from the android studio on my laptop Jan 16 07:36:57 as I get an error unable to launch debug bridge Jan 16 07:37:01 thanks Jan 16 07:37:47 any dialog popped up in samsung? Jan 16 07:38:03 try to replug the device and change usb mode to mtp, ptp or others Jan 16 07:38:52 that might be other problem as well - https://stackoverflow.com/questions/34012226/errorunable-to-obtain-debug-bridge-in-android-studio Jan 16 07:47:13 Good morning. Jan 16 08:01:21 hi, does anyone know how to submit a patch to AOSP kernel? Jan 16 08:43:12 Hello! Does anyone know the way to calculate dir size? Jan 16 08:44:56 this values/styles.xml: https://pastebin.mozilla.org/8856841 gives me the build error: Error retrieving parent for item: No resource found that matches the given name 'AppThemeBase'. Jan 16 08:45:01 what did I probably do wrong? Jan 16 08:47:05 Question about Parse.com Android SDK. Why it stores versionName value instead of versionCode for the appVersion column? http://stackoverflow.com/questions/34825121/why-parse-android-sdk-stores-versionname-value-instead-of-versioncode-for-the-ap Jan 16 08:52:29 Hola people Jan 16 08:53:07 I am sure that some, if not many, have faced the onScroll being called multiple times in ListView Jan 16 08:53:23 What is the solution/hack that works best/reliably Jan 16 09:38:46 can you jtag a locked bootloader device? Jan 16 09:41:12 what feaature in Android is it that may make an app paint over the most upper-right corner of the screen i.e. the righthand 25% of the system "bar"? Jan 16 09:41:19 but not the left 75% of ti Jan 16 10:11:02 Is it possible to have two different sections of radiobuttons in a dialog ? Jan 16 10:11:13 yes - customv iew Jan 16 10:11:16 view Jan 16 10:11:44 I was hoping for a library ... Jan 16 10:11:49 thanks Jan 16 10:12:06 its a layout file + one line of code :p Jan 16 10:12:23 thats true! im lazy :)) Jan 16 10:35:24 Is it not possible to detect search button in onOptionsItemSelected ? ? Jan 16 10:36:59 I can easily detect refresh or preference click in a simple switch case Jan 16 10:37:20 Why not search, is it because it's a widget/view which expands? Jan 16 10:51:13 pfn: protify rocks, thank you! Jan 16 10:57:47 anyone here? Jan 16 10:57:56 o.o I need help in unbricking my device Jan 16 11:02:52 Zenn: not this channel Jan 16 11:03:00 go to android-root Jan 16 11:26:50 hi, my adview in the MainActivity is overlapping my elements in the fragment layouts. does anyone know how I can fix it? Jan 16 11:27:28 sk8dev, margin or padding? Jan 16 11:29:09 danijoo, what do you exactly mean? I tried layout_above but it isn't working, because fragment is under the main layout Jan 16 11:29:57 I don't want to do it with fixed values. is it possible to do it dynamically? Jan 16 11:39:31 <_abc_> Hi guys. Can you please share development machine benchmark speed in bogoMIPS or dhrystones or whatever, suitable to run AS and emulator at reasonable speed? My devel platform is and will be (after upgrade) intel or amd. I need to shop around, my curent machnes are not okay in speed. Jan 16 11:45:43 _abc_, dont buy AMD Jan 16 11:46:12 amds are horrible for android dev because they dont support HAXM Jan 16 11:57:37 <_abc_> I am not on windows anyway, and never will be. Jan 16 11:57:43 <_abc_> It's linux and linux does not do haxm Jan 16 11:58:39 <_abc_> I understand I need a SSE3 + virtualization cpu to be able to run the x86 atom targeted emu roms. Jan 16 11:58:42 *shrug* Jan 16 11:58:55 <_abc_> The question is, how fast does the machine need to be, so how much money. Jan 16 11:58:56 Buy the fastest Intel you can get with 16G of ram and SSD. Jan 16 11:59:03 Which is like 500eur or so Jan 16 11:59:11 I concur Jan 16 11:59:28 <_abc_> I will probably build it not buy it, and it will be headless since that's what I use all the time for other things too. Jan 16 11:59:48 <_abc_> Does Java thrash a lot with small files? Is SSD a definite advantage there due to read access time? Jan 16 12:00:23 Buying a machine with mechanical HDD for any kind of work in 2016 is silly. Jan 16 12:00:29 The performance difference is staggering. Jan 16 12:00:33 It beats ANYTHING else. Jan 16 12:01:03 So there's an i5 for 200eur, a mobo for 100 eur or so, throw in a 256/512GB SSD and 16G of RAM and you have a machine Jan 16 12:01:06 only thing HDD makes sense for is big-storage Jan 16 12:02:36 Running AS remotely on Linux is going ot be painful though. Jan 16 12:10:24 <_abc_> Mavrik: no it is not. It works nicely. Jan 16 12:10:56 <_abc_> So point taken on SSD etc. Jan 16 12:14:28 <_abc_> So you people (nice developers, experienced and all :) ) now use about what kind of machines for developing? ;) I mean, those who paid for them themseves, i.e. not issued by employers. Jan 16 12:14:33 <_abc_> brb Jan 16 12:14:47 it doesnt really matter.. Jan 16 12:15:04 what kind of machine? a PC. Jan 16 12:15:06 you need enough RAM for AS + gradle + emulator which is arroung 8 to 16gb Jan 16 12:15:33 for processor any intel one supporting virtualisation is good enough Jan 16 12:16:35 mhm Jan 16 12:16:53 Even though fast quadcore chip does help with compile times :) Jan 16 12:16:58 Not as much as SSD but still. Jan 16 12:17:22 Hard to get something < 4 cores these days anyways Jan 16 12:17:57 But I dont think you will notice a large difference between the newest i7 and a 2 year old i5 Jan 16 12:23:33 okay, I've treid android:paddingBottom="50dp" Jan 16 12:23:50 but it isn't working in my gridview. any idea someone? Jan 16 12:26:52 danijoo__, as long as it doesn't throttle. Jan 16 12:26:58 As I've found out the hard way on my MBP :P Jan 16 12:27:31 sk8dev, not if you dont show the layout file Jan 16 12:28:08 Mavrik, cant you disable that? Jan 16 12:28:36 Not on a Mac. Jan 16 12:28:41 :/ Jan 16 12:28:43 It just starts working really really slowly. Jan 16 12:28:54 And you see kernel_task showing a lot of fake CPU use. Jan 16 12:29:01 (Of course the solution is to open the damn thing up :P ) Jan 16 12:29:51 haha Jan 16 12:30:20 Which is of course annoying because you can't disable the builtin screen when it's open :) Jan 16 12:32:55 Jan 16 12:33:08 not like that Jan 16 12:35:41 http://pastie.org/10691856 Jan 16 12:35:43 sorry Jan 16 12:39:18 theres no adView in that file Jan 16 12:39:29 <_abc_> Mavrik: I was going to ask, is there a special cooler kit for it... Jan 16 12:39:42 <_abc_> Thanks for the answers Mavrik and danijoo__ , it's about the way I see it. Jan 16 12:40:07 <_abc_> How fast is your current devel machine please? In whatever units you have handy (benchmark units from web or else) Jan 16 12:40:34 I never saw a need in benchmarking it Jan 16 12:41:02 <_abc_> Well I do now ;) So if it has a benchmark anywhere on the net and you care to look it up it would be useful. Don't care what machine, just benchmark and if you're happy with it... Jan 16 12:42:12 danijoo__: the adview is in the main activity. the gridview is in the fragment Jan 16 12:42:22 <_abc_> Also re virtualization support, I noticed the hard way that the emu needs SSE3 and virtualization both. I tested an older Athlon which is eminently overclockable, dual core, and it only has SSE2. Bummer. So what's a baseline cpu which can do what I need from what's on offer now? The sellers are really good at throwing about numbers which mean nothing. Jan 16 12:42:42 sk8dev, show the xml of your main layout then Jan 16 12:44:46 danijoo__: http://pastie.org/10691865 Jan 16 12:46:29 use a linear layout and position the adview below the viewpager Jan 16 12:47:01 danijoo__: thx, I'll try it Jan 16 12:50:06 In Android, is keystore single process? Jan 16 12:50:18 keystore? Jan 16 12:50:22 yes Jan 16 12:50:56 a keystore is not a process, its a file. Jan 16 12:52:13 njumdl2014, elaborate a bit more :) Jan 16 12:52:24 <_abc_> (say yes here) Jan 16 12:52:26 <_abc_> :) Jan 16 12:52:57 <_abc_> I think he's asking if concurrent access to a keystore is okay Jan 16 12:53:07 <_abc_> From various threads of the same app :) Jan 16 12:53:11 * _abc_ likes to guess Jan 16 12:53:26 <_abc_> And the answer is no, afaik. Jan 16 12:53:37 <_abc_> Need a synchronized object to guard it Jan 16 12:54:22 native daemon : keystore is a single process? Jan 16 12:54:33 <_abc_> Does anyone know of a direct, shortest-path java 4 android implementation for dhrystone-2.1 which is a C program from 1988? Jan 16 13:02:37 danijoo__: I only needed to put the gridview in a new relative layout... http://pastie.org/10691878 Jan 16 13:02:50 danijoo__: thx anyway :) Jan 16 13:07:41 <_abc_> Where would you rate your development machine's cpu in this page please? By cpu type used (I assume most people say i7 here now?) http://www.webarchive.org.uk/wayback/archive/20130303230728/http://www.roylongbottom.org.uk/dhrystone%20results.htm Jan 16 13:08:04 i7s arent worth their money imo Jan 16 13:08:04 <_abc_> dhry2 opt vax column Jan 16 13:08:08 <_abc_> O.o Jan 16 13:08:29 <_abc_> Someone over in ##electronics just suggested a z890 as java workhorse. Because he has one. In the basement. Jan 16 13:10:18 I have a gameboy in the basement. Jan 16 13:10:24 :) Jan 16 13:11:03 my t60 still working great for android dev Jan 16 13:11:05 In Android, native daemon keystore is a single process ? Jan 16 13:12:19 what keystore are you talking about? Jan 16 13:12:44 <_abc_> sk8dev: what is a t60? Jan 16 13:12:47 <_abc_> what cpu Jan 16 13:13:22 <_abc_> from what I see, I need at least a Phenom II or a i7 to better my current amd's speed in dhrystones. Jan 16 13:13:31 <_abc_> And that will only go 2x faster. Jan 16 13:14:07 <_abc_> Is AS building very file intensive? Where does one go to improve performance first? More ram? SSD? Which one is more important? Jan 16 13:14:24 <_abc_> Also I assume swapping on a ssd is a particularly bad idea. Jan 16 13:14:28 _abc_: lenovo t60 T5500 (1.6 GHz) Jan 16 13:14:30 SSD Jan 16 13:14:44 ram answer cant be answered in general. if you have only 2 gb ram id say RAM :P Jan 16 13:14:55 <_abc_> So SSD for install and hdd for swap? Or get rid of swap completely for performance? Jan 16 13:15:01 get as much ram as you need Jan 16 13:15:14 <_abc_> Don't even know how much this old board can bear. Jan 16 13:15:21 dont swap Jan 16 13:15:29 swap kills performance Jan 16 13:15:32 <_abc_> Okay, so I have some numbers I can work with. New cpu would only better speed by less than x2 Jan 16 13:15:52 <_abc_> RAM will be bouht which can be reused in a new board, then I'll see about a SSD for seek performance. Jan 16 13:16:00 <_abc_> *bought even Jan 16 13:19:21 _abc_, i5 laptop @ 2.7 GHZ Jan 16 13:20:40 <_abc_> thanks Jan 16 13:21:04 <_abc_> Is ram fsb speed important for AS/java speed? Jan 16 13:21:29 AS = Android Studio Jan 16 13:21:35 <_abc_> yes Jan 16 13:22:03 I've only built small apps, so I wouldn't know Jan 16 13:22:25 <_abc_> Well did you try with two different ram configs on the same machine, or not... Jan 16 13:22:50 <_abc_> Anyway AS release notes should really address required hw platform performance... I saw only the usual vague requirements. Jan 16 13:23:00 <_abc_> Maybe I missed the important points there. Jan 16 13:23:39 its the same requirements as Intellij Jan 16 13:27:08 if you are familiar with programming, have a bit experience in developing android apps, and want to develop big or bigger appps, what can go wrong? I mean: what professional steps has to be done like unit testing etc. Jan 16 13:27:42 I mean skills you don't learn by studying computer science but by working in a company Jan 16 13:28:16 anything in particular? Jan 16 13:28:33 <_abc_> big app in any language, without analysis phase and system design = big spaghetti Jan 16 13:28:45 in general Jan 16 13:29:01 general big spaghetti :p Jan 16 13:29:12 <_abc_> in general, spghetti. Even with analysis and proper design, after a number of feature add iterations, it still becomes spghetti Jan 16 13:29:27 <_abc_> +a Jan 16 13:29:41 then refactoring Jan 16 13:29:43 what would an analysis phase entail? =) Jan 16 13:29:45 <_abc_> Where do you think all those yummy bugs bedeviling computing now come from, eh? Jan 16 13:30:04 <_abc_> honigkuchen: refactoring changes the flavor of the spaghetti. Jan 16 13:30:08 <_abc_> It does not untangle it. Jan 16 13:30:29 <_abc_> Taios: see "system analyst", a branch of computer science. Jan 16 13:30:56 <_abc_> Err that's the function/job not the branch. Jan 16 13:31:00 so if it is spaghetti, how do you make it better? Jan 16 13:31:08 I've been making apps for Android for about two days, and I've already made a singleton. Code reorganisation needed. Jan 16 13:31:20 <_abc_> honigkuchen: By dropping the old version, doing proper analysis and making a new version based on said analysis. Jan 16 13:31:39 <_abc_> And by persuading your boss with a gun in your hand, of necessary, to NOT just add features and size to the old version instead. Jan 16 13:32:02 <_abc_> *if necessary. Jan 16 13:32:28 <_abc_> "surely we can go from a 100 entry address book to a cloud shared 10,000,000 entry one in a few days, right" Jan 16 13:33:02 <_abc_> "just increase the array sizes, devices are more performant than anytime, they will cope" Jan 16 13:33:21 <_abc_> sounds familiar? /me does not do android usually - the above are valid in any language. Jan 16 13:34:11 <_abc_> I found the hard way that single projects over 5000loc should be two projects or more in any higher level language like tcl or perl or anything ;) Jan 16 13:34:23 <_abc_> Also more than one-man projects. Jan 16 13:34:57 <_abc_> Rephrased: my error rate after debugging is <0.1%, therefore, there will be at least 5 major bugs in a 5000loc project I'd release alone... Jan 16 13:35:47 theres a bug in everything > hello world Jan 16 13:35:54 <_abc_> Speaking of unit testing, are there built in facilities to help with unit testing at class level? Jan 16 13:36:11 for android there might even be some bugs in hello world because of the framework :D Jan 16 13:36:22 <_abc_> exactly. Jan 16 13:36:48 <_abc_> You can't scare me, I'm an older electronics/embedded guy who lately met a lot of arduino-scare people. Jan 16 13:37:11 <_abc_> Hm okay let's go hunt some cheap ram I can test my hypothesis with. Jan 16 13:37:19 There was a bug in the fragment example in the guide Jan 16 13:37:25 <_abc_> lol Jan 16 13:37:33 the app crashed in table two-pane mode when you clicked an entry Jan 16 13:38:00 this guide: http://developer.android.com/training/basics/fragments/index.html Jan 16 13:40:07 Hey folks, please let me clarify this. Can I add something to the following file/program/behaviour in a running cm installation, or do I need to compile/build cm completely for this to take effect: https://github.com/CyanogenMod/android_frameworks_base/blob/cm-13.0/core/java/com/android/internal/widget/PointerLocationView.java Jan 16 13:42:07 And1, you need to recompile it Jan 16 13:43:34 danijoo__: Ok thanks. Jan 16 13:44:19 danijoo__: I’m trying to write one value (dy) to a file like /tmp/fifo or directly send it via UDP. Do you think this will work? Jan 16 13:49:35 <_abc_> Is there a shortcut to start the emulator from within AS without launching a debug session? Jan 16 13:49:53 <_abc_> I can't find one and help also can't Jan 16 13:50:58 <_abc_> Oh it's in the avd manager the play button Jan 16 13:52:37 <_abc_> Wow our predicted 20cm of snow started falling just now Jan 16 13:52:44 <_abc_> Looks glum outside Jan 16 13:54:28 <_abc_> http://www.roylongbottom.org.uk/android%20benchmarks.htm fwiw the benchmark sources I was seeking, for android. Jan 16 13:55:15 <_abc_> (they are linked from in there, look for a zip besides the apks) Jan 16 13:56:19 <_abc_> I really wonder why this great info must live inside archive.org? No University found a place for them?! Really? Jan 16 14:00:59 _abc_, snowing here too Jan 16 14:01:09 _abc_, started a few hours ago, still going strong Jan 16 14:03:43 * _abc_ is not looking forward to wasing through snow to do chores and shovelling Jan 16 14:05:16 <_abc_> Can you guys please get MP-Dhry.apk from the link above and push it to your emulator and see how fast it goes? I turned swapping off on the devel oldie machine and I got ~136 VAX MIPS . Which is puny but that's what I have now. Am curious how fast your thing is. Thanks. Jan 16 14:05:35 <_abc_> The apk works fine in almost any version from 2.2 up, tested. Jan 16 14:07:27 <_abc_> Conclusion: my AS should get about 2x faster with enough ram and the emu could get 4-10x faster with qemu (no haxm since on linux), with a cpu with suitable hw emu Jan 16 14:07:43 <_abc_> And the AS could get much faster than 2x with SSD. Jan 16 14:08:02 <_abc_> Does ramdisk caching spinning disks make sense? Assuming one has a lot of ram, spinning disks, and no ssd? Jan 16 14:15:03 <_abc_> In an AS compilation speedup context. Jan 16 14:17:35 I'm trying to align text in a text view and it does not work Jan 16 14:17:40 How are you supposed to do this Jan 16 14:18:04 I've got 3 textviews in a vertical linearlayout, I want the first one to be centered and the last one to be right aligned Jan 16 14:20:21 gravity Jan 16 14:20:37 <_abc_> fwiw I started playing with linux vm disk cache control settings per https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/ and it does improve performance a lot in AS compilation and indexing on linux. So there are ways to make things go faster even without buying anything. Jan 16 14:20:39 Like in the right aligne one I've got "gravity = Gravity.RIGHT" and "textAlignment = TextView.TEXT_ALIGNMENT_GRAVITY" but it doesn't work Jan 16 14:21:59 Well, the last one is a single line so I could align the view instead of the text I guess Jan 16 14:22:22 But what about the first one ? It's often 2 lines and sometimes 1 line, and I want it to be center-aligned Jan 16 14:22:36 <_abc_> It's far from ideal but much much better than before. Am using 'swapoff -a; sysctl vm.dirty_background_ratio=5; sysctl vm.dirty_ratio=80;' Jan 16 14:37:34 hi, can anyone tell me if basegameutils is available through the android sdk manager? Jan 16 15:46:13 I wanted to show a notification when my app is not opened for instance 2 days Jan 16 15:47:01 my problem is not with the notification Jan 16 15:47:24 If i had your app and i got a notification out of nothing just because i didnt use it, i would deinstall it ;-) Jan 16 15:47:48 how can I achieve it? Jan 16 15:47:54 it's a pretty common thing: "we haven't seen you in 2 days, come back and we'll love you long time!" Jan 16 15:48:22 its annoying and tells you that probably some background service is running to check it Jan 16 15:48:54 yes my question is that if the best way is to run a service? Jan 16 15:49:02 or if I have other optioons? Jan 16 15:49:10 how else should it work? unless you send an email Jan 16 15:49:11 like built in func Jan 16 15:49:12 A service is the only opion Jan 16 15:49:39 But please don't add such a feature, it's annoying to the end-user. What's the context? Jan 16 15:49:41 A game? Jan 16 15:50:24 it is not just to tell that Jan 16 15:50:35 If i didnt open an app for a long time its for a reason- i dont want them to remember me, and especially i dont want every app to have a service running in the background to make the phone sluggish Jan 16 15:51:19 yes I understand your viewpoint I will take that in consideration Jan 16 15:51:20 thks Jan 16 15:54:11 when i have genymotion open it keeps growing and growing ram usage. Happens to you also ? In 2-3 hours it reaches ~3G Jan 16 15:58:34 csst0111, does not happen to me, are you sure you're not talking about Android Studio :'_] Jan 16 15:58:44 im sure Jan 16 15:59:25 csst0111, vm are powered by virtualbox in gm, you could try to restrict more the ram you allow to your vm Jan 16 15:59:50 i usually restrict them to 512MB or 1GB max, highly sufficient Jan 16 16:00:15 thank you - i'll try and configure it Jan 16 16:45:04 anyone use this? good? https://github.com/jakob-grabner/Circle-Progress-View Jan 16 17:24:20 is the "android-platform" Google group moderated so that when you make a post, it takes 1-2 days for it to appear? Jan 16 17:24:32 (..or did I just accidentally click "discard" or what :)) ) Jan 16 17:25:36 has anyone been able to run the new emulator on linux? Jan 16 17:37:28 heh, wanting to run android studio remotely over x11 is a joke... Jan 16 17:37:56 Yep, actually tried that. Jan 16 17:37:58 Doesn't work :P Jan 16 17:45:14 pfn: what about VNC? Jan 16 17:45:31 vnc isn't particularly good Jan 16 17:45:49 it's OK if you're desperate to do a little bit of work Jan 16 17:47:28 Yeah, VNC is even worse. Jan 16 17:47:35 Since it transmits pictures not actual UI elements. Jan 16 17:50:58 windows RDP is the best, sadly, but even then, without something like citrix, you have to get the entire desktop Jan 16 17:51:50 actually, xrdp works on Linux... Jan 16 17:52:02 pfn: maybe you can get windows RDP to run on linux with wine ;P Jan 16 17:52:55 you can run xrdp on the remote server, display android studio to it, and then use an RDP client to get to it Jan 16 17:53:21 * pfn used to do that with very usable results for Firefox... Jan 16 17:53:24 I. think Jan 16 17:53:34 Maybe I forget and it was nx Jan 16 17:55:23 I have the craziest error where my ("AppCompat"?) Android OS Status bar is overlapped by a background image! Jan 16 17:55:25 Documented here: https://pastebin.mozilla.org/8856861 Jan 16 17:55:48 Looks like this: http://picpaste.com/splash_error-iCgt0G6K.jpg Jan 16 17:55:52 Any idea !?!?!? Jan 16 17:55:55 Talk about an error to go nuts over =( Jan 16 17:56:10 Any thoughts about how it happened or how I can resolve it? All details in the paste. Jan 16 17:59:55 with NavigationView, is it possible to have a child item which is slightly indented ? Jan 16 18:01:07 g00s,pfn,mavrik,shmoooz,mentazoom: do you have any idea about my issue? :O Jan 16 18:01:12 on a scale, how weird is this one? Jan 16 18:01:31 BW^-: I would suspect android:windowContentOverlay">@null Jan 16 18:02:15 BW^-: I have no idea, never done splash screens Jan 16 18:02:16 is that a fitsSystemWindow thing ? Jan 16 18:02:52 don't know why the status bar only goes 2/3 way across though, thats weird Jan 16 18:02:59 shmoooz:I tried commenting it out, and it was still broken :( Jan 16 18:03:00 I am writing a RSS reader app. Should I store the rss items(posts) links in sqlite database or in an ArrayList? Jan 16 18:03:04 shmoooz: (broken exactly the same way.) more ideas? Jan 16 18:03:22 g00s: do you have any thought on how I maybe could be able to resolve it? Jan 16 18:03:24 like, things tot ry Jan 16 18:03:37 BW^- beside googliny fitsSystemWindow ? Jan 16 18:03:47 g00s: anything to foolproof it Jan 16 18:03:53 g00s: ok i'll google that Jan 16 18:05:14 g00s: but.. I mean, the drawing area is also UNDER the status bar Jan 16 18:05:22 so the system window in that definition is allt he dispay Jan 16 18:05:27 just that the OS also has an overlay in place Jan 16 18:05:28 isn't itso? Jan 16 18:09:12 g00s,shmoooz: more ideas? Jan 16 18:09:44 yes, don't do splash screens Jan 16 18:10:17 out of sight, out of mind, problem solved Jan 16 18:13:10 hi Jan 16 18:13:58 how do I correct the error:ADB Connection Error: Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output Jan 16 18:17:14 install android platform tools Jan 16 18:29:31 pfn: I already did Jan 16 18:29:38 pfn: each time I start android-studio on my linux laptop I got that message Jan 16 18:29:44 pfn: please help me Jan 16 18:29:52 i dont suppose there's a way to tint menu icons via a toolbar theme? Jan 16 18:30:19 easyOnMe, run adb from commandline, if you cannot, then fix it Jan 16 18:30:28 alexfu, nope Jan 16 18:30:28 alexfu seems toolbar just tints a few whitelisted icons Jan 16 18:30:46 alexfu so you have to do it manually / programatically Jan 16 18:30:52 pfn: what command shall I use to run adb from the command line Jan 16 18:31:08 g00s: thanks for confirming Jan 16 18:31:18 easyOnMe, adb Jan 16 18:31:30 alexfu its kinda weird though, NavigationView handles all of it Jan 16 18:31:40 maybe toolbar will eventually Jan 16 18:32:44 g00s: NavigationView is the drop-in drawer layout content that you see in most Google apps right? Jan 16 18:33:05 i dont think most gapps use it specifically, but ... that kind of thing yeah Jan 16 18:34:52 pfn: now I get this error Jan 16 18:34:53 ADB not responding. If you'd like to retry, then please manually kill "adb" and click 'Restart' Jan 16 18:35:20 easyOnMe, run adb from commandline Jan 16 18:35:34 will not help further until you do Jan 16 18:35:55 pfn: ok I got this Jan 16 18:35:56 The program 'adb' is currently not installed. You can install it by typing: Jan 16 18:35:56 sudo apt-get install android-tools-adb Jan 16 18:36:04 nope Jan 16 18:36:05 I know what to do now my question is Jan 16 18:36:09 wrong Jan 16 18:36:22 what do you mean Jan 16 18:36:32 which command line are you referring to Jan 16 18:36:34 it must be installed from android sdk manager Jan 16 18:36:36 the linux terminal right Jan 16 18:36:41 oh ok Jan 16 18:36:44 installing from apt is incorrect Jan 16 18:36:52 pfn: ok Jan 16 18:36:57 hang on Jan 16 18:37:24 pfn: I just opened the sdk manager Jan 16 18:37:45 on the sdk platforms tab I only see these: Jan 16 18:38:02 and there is only one commandline when talking about a computer in general Jan 16 18:38:12 android 6.0 and android 5.1.1 stated as installed Jan 16 18:38:22 platform tools Jan 16 18:38:27 not sdk Jan 16 18:38:54 pfn: right Jan 16 18:39:03 now I am on platform tools tab Jan 16 18:39:32 gordon_, I'm glad it works for you Jan 16 18:39:38 hmm Jan 16 18:39:40 not here Jan 16 18:39:57 I see the following: android sdk tools 24.4.1 Installed Jan 16 18:40:03 android build tools installed Jan 16 18:40:40 android sdk platform-tools 23.1 installed Jan 16 18:40:51 then run adb from commandline Jan 16 18:40:52 so what else am I missing Jan 16 18:40:57 and report your results Jan 16 18:41:07 I already did that I got the message I gave you earlier Jan 16 18:41:11 you haven't done the very first thing I told you to do Jan 16 18:41:24 adb doesn't report that error Jan 16 18:41:39 pastebin your terminal when you do that Jan 16 18:43:10 ~/Desktop/android-studio/bin$ adb | pastebinit Jan 16 18:43:11 The program 'adb' is currently not installed. You can install it by typing: Jan 16 18:43:11 sudo apt-get install android-tools-adb Jan 16 18:43:11 You are trying to send an empty document, exiting. Jan 16 18:43:20 that is what I got Jan 16 18:43:38 easyOnMe: looks like adb isn't in your PATH Jan 16 18:43:38 pfn: sorry man I am a newbie to android dev Jan 16 18:43:51 alexfu: so what will I do now Jan 16 18:44:05 how shall I fix this problem Jan 16 18:44:17 sounds like you're a newbie to linux Jan 16 18:44:19 easyOnMe: well, you have to put adb in your PATH Jan 16 18:44:31 alexfu: how Jan 16 18:44:47 pfn: please show me what I did wrong Jan 16 18:45:05 put android-sdk-folder/platform-tools on your path Jan 16 18:45:39 pfn: ok hang on here what path are you talking about Jan 16 18:45:54 easyOnMe: read through this: android:icon="@drawable/ic_clock_48dp" Jan 16 18:45:58 oops Jan 16 18:46:04 http://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path Jan 16 18:46:14 are you referring to placing the android-sdk inside the android-studio folder on my Desktop Jan 16 18:46:21 there's only one path when you're talking about a commandline Jan 16 18:46:29 easyOnMe: no. linux PATH Jan 16 18:46:30 and no, that is not correct Jan 16 18:46:44 easyOnMe: read through http://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path Jan 16 18:47:14 dont just skim it either. read through the whole thing Jan 16 18:48:56 alexfu: ok so are you saying that I do this Jan 16 18:49:08 easyOnMe: yes Jan 16 18:49:18 alexfu: PATH=$PATH:~/Desktop/android-studio Jan 16 18:49:30 easyOnMe: no. not quite Jan 16 18:49:37 alexfu: ok then how Jan 16 18:49:50 secondly I do not even know where the android sdk is located Jan 16 18:50:04 easyOnMe: PATH will contain the path to the adb tool. Jan 16 18:50:14 easyOnMe: which distro are you using? Jan 16 18:50:32 alexfu: ubuntu 14.04 LTS Jan 16 18:50:48 alexfu: ok my android folder is in my Home folder Jan 16 18:50:51 I found it there Jan 16 18:50:52 just now Jan 16 18:51:04 there are certain things people need to know about using a computer before developing... Jan 16 18:51:32 alexfu: inside that Android folder is the Sdk folder Jan 16 18:51:36 pfn: certain things to know about linux before using linux Jan 16 18:52:02 alexfu: PATH=$PATH:~/Android/Sdk Jan 16 18:52:07 is that the correct way Jan 16 18:52:10 eh, from a user perspective, Ubuntu is stupidly easy now Jan 16 18:52:16 it's well done Jan 16 18:52:27 easyOnMe: adb should be located under platform-tools dir inside the sdk dir Jan 16 18:52:50 not should be, it is Jan 16 18:53:06 alexfu: ok I saw adb there as a file is that what you mean Jan 16 18:53:16 easyOnMe: so, modify your original PATH statement to include the platform-tools dir Jan 16 18:54:08 alexfu: PATH=$PATH:~/Android/Sdk/platform-tools/ Jan 16 18:54:09 is the correct now Jan 16 18:54:13 or do I do it this way Jan 16 18:54:21 alexfu: PATH=$PATH:~/Home/Android/Sdk/platform-tools/ Jan 16 18:54:22 I'd argue that Ubuntu is just about as easy to use as osx Jan 16 18:54:56 alexfu: is it the first one or the second one Jan 16 18:55:32 easyOnMe: first... tilde (~) refers to your home dir Jan 16 18:55:52 alexfu: do I need sudo before the whole command Jan 16 18:56:07 you should avoid using sudo ever Jan 16 18:56:20 pfn: noted with thanks :) Jan 16 18:56:26 only for system updates Jan 16 18:56:38 easyOnMe: you include that statement into your .bashrc file Jan 16 18:56:58 easyOnMe: did you read that post i sent you? Jan 16 18:57:46 i guess the correct one is ~/.profile Jan 16 18:57:57 alexfu: yes Jan 16 18:58:19 so I include it ~/.profile using nano Jan 16 18:59:02 Yay for nano Jan 16 18:59:11 easyOnMe: sure or whatever editor you like Jan 16 18:59:36 why are you using linux instead of Windows or OSX, where this is practically idiot proof Jan 16 18:59:45 alexfu: so I just type it in and hit ctrl-X Jan 16 19:00:01 easyOnMe: Ctrl-X will exit nano without saving Jan 16 19:00:01 pfn: man I got a pounding from your meanness but it is ok Jan 16 19:00:06 I am learning Jan 16 19:00:11 easyOnMe: :) Jan 16 19:00:31 yeah, but you're trying to learn too many things at onc Jan 16 19:00:32 easyOnMe: ctrl-w to write to file, ctrl-x to exit Jan 16 19:00:42 e, it is not productive for you, nor us Jan 16 19:00:58 #android-dev is reduced to giving basic lessons on using linux Jan 16 19:01:29 alexfu: I just have to type PATH=$PATH:~/Android/Sdk/platform-tools/ without having to include them inside an if - fi block Jan 16 19:01:45 pfn: newbie here :) Jan 16 19:01:53 I learn from masters like you Jan 16 19:02:16 alexfu: is that correct Jan 16 19:02:21 should start off in #ubuntu for those Linux questions Jan 16 19:02:32 pfn: ok then Jan 16 19:02:42 go to ubuntu channel Jan 16 19:02:44 thanks Jan 16 19:02:48 alexfu Jan 16 19:02:51 and pfn Jan 16 19:18:20 alexfu: http://paste.ubuntu.com/14531930/ that is my ~/.profile now Jan 16 19:18:20 Jan 16 19:18:46 I am still encountering errors such as unable to run debug bridge sort of error Jan 16 19:20:13 pfn: can you help me please Jan 16 19:20:40 my very first instruction to you still stands Jan 16 19:20:54 you haven't answered what I asked at the start of all this Jan 16 19:21:05 run adb from commandline Jan 16 19:21:19 easyOnMe: 1) no need to include line 22 around an if.. 2) you need export in front of line 22 Jan 16 19:24:38 alexfu: http://paste.ubuntu.com/14532263/ Jan 16 19:24:46 alexfu: will that work Jan 16 19:25:24 easyOnMe: try it. need to run source ~/.profile first from terminal Jan 16 19:30:07 alexfu: how to I run the ~/.profile file Jan 16 19:30:16 just type the file name in the terminal Jan 16 19:32:25 easyOnMe: source ~/.profile Jan 16 19:32:37 Hi i cannot get notifications to work using notification builder Jan 16 19:32:48 i have also set the correct permissions in manifest file Jan 16 19:33:06 alexfu: ok once I do it I will start android-studio Jan 16 19:33:16 because I shut it down Jan 16 19:34:17 alexfu: I still got this issue: Error running app: Unable to obtain debug bridge Jan 16 19:34:54 alexfu: this is my latest ~/.profile http://paste.ubuntu.com/14532765 Jan 16 19:36:31 alexfu: http://paste.ubuntu.com/14532811/ sorry but this is the latest Jan 16 19:40:49 Is there a way to verify that an AVD is running with KVM? In Android Studio 1.5 it seems the Emulator tab has been removed from the Run Configurations window so I have no way to know if it is running under KVM as it doesn't seem to launch the emulator with KVM parameters :/ Jan 16 20:12:23 hmm, how do I get the tap 10 promo... Jan 16 20:16:08 Anyone used ActivityOptions to animate an activity opening from a thumbnail? Jan 16 20:21:55 Where has TacticalJoke been Jan 16 20:32:33 drose379, be specific, lots have Jan 16 20:32:57 I have a ImageView, and when I click that I want that to open up to a larger image view in a "Details" type activity Jan 16 20:33:15 And it works perfectly, except for the first time the image is clicked, because the image has to load before it is shown Jan 16 20:33:25 Im wondering if I am doing it wrong? Jan 16 20:33:34 I can show screen recording of the issue if that would help Jan 16 20:34:11 Probably won't work smoothly if you have to load the image in the detail activity Jan 16 20:34:14 <_genuser_> anybody here use origin for gaming? Jan 16 20:34:26 pfn is there a way where I dont have to load the image? Jan 16 20:34:35 I thought if I cache it that it would be smoothe Jan 16 20:35:04 if you could load it up front, sure Jan 16 20:35:19 this is a problem with most anything that uses that transition Jan 16 20:35:42 eg, you see that problem all the time in like play music Jan 16 20:36:02 What about in plaid Jan 16 20:36:05 it works perfectly Jan 16 21:20:47 yipes 503 from jcenter DD Jan 16 21:43:32 Whats the best way to place a view underneath a transparent status bar? Jan 16 22:00:26 drose379, plaid is open source, you can do what they do :p Jan 16 22:00:33 and it's probably preloaded Jan 16 22:08:33 hm, I don't understand google recommending signature blocking MediaBrowserService access Jan 16 22:08:59 seems to make the whole concept useless, from my view Jan 16 22:10:12 I'm looking for examples of how to write an app that is always listening for voice commands. The only thing I've found thus far is pocketsphinx, but I was hoping to leverage the Google API for voice recognition. Jan 16 22:10:49 I'm trying to write a simple app for my grandfather's phone so if he needs assistance he can just say, "I need help" and it will notify someone. Jan 16 22:24:42 darkfrog would a voice recording app be helpful at all? Jan 16 22:42:53 In intellij, where can I find the path that gradle uses to the JRE? Jan 16 22:43:19 I set it about 10 minutes ago, and I've managed to lose it Jan 16 22:53:04 scarpia: I doubt it. I'm trying to make sure it continues listening even when the phone is locked and the app is backgrounded. Jan 16 22:53:32 voice recording apps do that Jan 16 22:54:43 scarpia: hmmm....good point Jan 16 22:59:56 i'm wondering if this is even worth considering: https://disqus.com/home/discussion/wugfresh/nrt/newest/ Jan 16 23:02:02 nexus root toolkit Jan 16 23:06:47 dunno, I'm not interested in rooting my phones Jan 16 23:06:56 and this isn't #android-root Jan 16 23:12:18 thanks for the input pfn. Jan 16 23:44:21 i'm pretty new to programming and am having problems with a bit of code. Is this an okay place to get some help? Jan 16 23:45:11 brent1: StackOverflow might be a better place to search for answers and then post if you can't find what you're looking for. Jan 16 23:45:33 If it's Android-development-related, there's no problem with asking here. Jan 16 23:47:12 it is android related Jan 16 23:47:31 check with pfn first Jan 16 23:47:39 To be honest, it's way better to just ask the question. Jan 16 23:47:43 hahaha Jan 16 23:47:48 Look at how much time and effort have already been wasted. :D Jan 16 23:47:54 :P Jan 16 23:48:51 basically, I have popup menu and i'm struggling to match the selection to an enum value Jan 16 23:49:26 https://github.com/530farm/Slide/blob/a151372fb0885d06a667db86c9c5ee06ce0073d4/app/src/main/java/me/ccrama/redditslide/Activities/SettingsFont.java https://github.com/530farm/Slide/blob/a151372fb0885d06a667db86c9c5ee06ce0073d4/app/src/main/java/me/ccrama/redditslide/Visuals/FontPreferences.java Jan 16 23:49:31 ooh now you've done it Jan 16 23:51:07 When I select one of the values form the popup menu on SettingsFont.java it crashes saying there's no matching value. I"m trying to apply the popup menu to the FontType enum on the other file Jan 16 23:52:01 brent1: Which line are you referring to? Jan 16 23:52:57 So i Believe it has to do w/ the click listeners on either 44 or 69 of the SettingsFont.java Jan 16 23:53:13 and 65 of the FontPrefs.java Jan 16 23:54:01 Basically the click listener on 44/69 aren't matching to the constants on 65 in FontPres Jan 16 23:55:50 I'm trying to have the popMenu value be referenced to the FontStyle enums "titles" Jan 16 23:56:17 but i think it's currently referencing the enums name its self Jan 17 00:01:32 How would it work, though? For example, there are *two* enum constants that have the title "Smaller". Which one should be picked? Jan 17 00:03:14 you're right Jan 17 00:03:28 so there's a popmenu for Post and Comment Jan 17 00:03:51 and basically want them to match to the appropriate smallerPost/smallerComment Jan 17 00:04:32 while being able to keep the text on the menus the same Jan 17 00:06:14 Is the only way to do that by making 2 separate enums for the 2 different dropdowns? Jan 17 00:11:25 Doesn't the code already match "SmallerPost" in a popup menu with FontStyle.SmallerPost? Jan 17 00:11:46 On a side note, that code isn't nice. :s Jan 17 00:12:22 Even basic stuff such as using SharedPreferences.Editor.commit instead of SharedPreferences.Editor.apply. Jan 17 00:13:54 the values in both of the popup menu are "smaller, small, medium, etc." Jan 17 00:15:16 like i said i'm new and this is an opensource app i was trying to help with. Though I wouldn't know why .apply is better than .commit Jan 17 00:15:40 Oh, I thought it was that ccrama guy who'd written the `commit` thing. :D Jan 17 00:15:52 I saw him as fair game since he posts on Reddit about that app so much. Jan 17 00:16:32 Yes, it's his app. I just wanted to try and learn a bit by adding a feature Jan 17 00:18:01 I think the main thing is that the click listener is looking to match to the constants name instead of the title Jan 17 00:19:34 trying to figure out how to alter that so the value selected in the popmenu gets matched to the constants titles Jan 17 00:20:52 Hard to say what's best without more code. One approach is to split the enum into two and give each enum a `parse(String title)` method that produces a value based on the provided String. Jan 17 00:21:55 I mean a static method, one which returns an enum value. Jan 17 00:23:41 Do you even need enums here, though? I've not read the code much, but it feels kinda weird to me. Jan 17 00:23:54 Honestly not sure Jan 17 00:24:01 Did you add the enums or were they already there? Jan 17 00:24:08 The FontStyles were intially enums Jan 17 00:24:31 Though as just "Smaller, Small, Medium etc." Jan 17 00:24:54 I altered them to the "SmallerPost, SmallerComment, etc." Jan 17 00:25:45 What ID values were used before (e.g., `R.style.FontStyle_SmallerPost`)> Jan 17 00:25:47 ?* Jan 17 00:25:51 ah, good to be home. asked "how to disable 'unused' warnings in xcode" in #macdev. answer was - "yes, it can be done, but we don't tell how, you have to figure out yourself" Jan 17 00:26:00 is it mac dev world ? Jan 17 00:26:49 pissed of. never again) Jan 17 00:27:10 Had you googled it? Jan 17 00:27:15 yes Jan 17 00:27:22 Smaller(R.style.FontStyle_Small, "Smaller") Jan 17 00:29:08 vigilancer, for trivial shit like that, I agree with their answer Jan 17 00:29:39 brent1: I think a simpler solution would be for FontPreferences.setPostFontStyle and so on to take a String, not a FontStyle. But I don't know how that meshes with the rest of the code. Jan 17 00:30:02 pfn: of course you are) it was not about "unused" per se, I rephrased Jan 17 00:32:11 TacticacJoke kind of makes sense. So set them to take a string and then I can do a switch to set the appropriate FontStyle based on what the string equals? Jan 17 00:32:38 There's no switch then, is there? As far as I remember, they were simply writing to a SharedPreferences thing. Jan 17 00:33:03 I belive so Jan 17 00:33:15 vigilancer: I wouldn't pay much attention to the response of arbitrary IRCers. This place if packed to the brim with personality disorders. Jan 17 00:34:09 I was meaning in terms of removing the enum all together and just having the potential options being decided by matching the input string w/ a switch Jan 17 00:35:11 brent1: Yeah, I guess so (but can't remember what the code said). Ultimately, the problem is simple: you have a bunch of user-visible strings and a bunch of related resource IDs. Jan 17 00:35:56 The "title" field in those enums makes things more complicated, because then you have a third thing. Jan 17 00:36:14 Though I guess it might be justified in cases where the user-visible strings vary based on language. Jan 17 00:36:43 TacticalJoke: well, yeah, thanks) this channel mostly supportive. wrong expectations I suppose Jan 17 00:37:42 brent1: Now that I think of it, it's actually more common to use an integer key (e.g., the index in the popup menu) rather than a String key for stuff like this. Jan 17 00:38:01 The integer key doesn't change even if the UI language changes. Jan 17 00:38:42 makes sense Jan 17 00:39:19 Do you know if the popup menu can be referenced via index automatically? Jan 17 00:40:56 IIRC, something like this works: http://stackoverflow.com/a/2453661 Jan 17 00:46:32 i got to go Jan 17 00:46:37 i appreciate your time TacticalJoke Jan 17 00:47:00 for future reference, is this a place to get help or not? Jan 17 00:51:14 My understanding is that this channel is for questions or discussion relating to Android-app development. Jan 17 00:52:49 okay, so should be fine to ask some questions Jan 17 00:55:04 TacticalJoke have you met chief broken pipe ? Jan 17 00:55:27 Yes, but please be aware that your 21-day trial expires in 21 days. Thereafter, prices start from $5.99 per minute and go to $9.99 per minute for our "famous developer answers your questions" package. Jan 17 00:55:40 g00s: Nah, have never seen that. Jan 17 00:55:51 Oh, wait. That Reddit thing? Jan 17 00:56:42 Is there a reason why all the docs tend to use public static final strings for identifiers for eg bundles, rather than enums? Jan 17 00:56:52 TacticalJoke ha, i see it all the time in AS too... Jan 17 00:57:05 like public static final String ACTION_ACCEPT = "accept"; Jan 17 00:57:11 rubenwardy enums are pita to parcel for one Jan 17 00:57:47 Do enums not have integer values? Jan 17 00:57:55 I think also, in framework code, the lower bytecode overhead for ints (compared to enums, which are full classes) is significant. Jan 17 00:58:09 But whether this is significant for apps is questionable. Jan 17 00:58:53 So it's not like in C, where enums are fancy ints with type checking? Jan 17 00:59:10 rubenwardy their ordinal positions, yeah ... but thats pretty brittle to rely on those not changing ;) Jan 17 00:59:21 I've read that historically final fields instead of enums was used because of cpu and memory limitations on first devices Jan 17 00:59:31 I see. Jan 17 01:01:07 rubenwardy: Yeah, enums in Java are classes. Jan 17 01:02:04 Seems overkill :/ Why would you need methods? Probably not the place for this, I will google. Jan 17 01:02:37 rubenwardy java enums are way nicer than c/c++ ones ;) Jan 17 01:03:06 they are also singletons. you can even make state machines from them Jan 17 01:03:08 Yeah, Java gets this right, IMO. Enums instances have state and behaviour. It's weird to allow state but not behaviour, and it creates messy code. Jan 17 01:04:12 "they are also singletons. you can even make state machines from them" => So basically you're storing a global variable? Jan 17 01:04:19 ew :/ Jan 17 01:04:42 they are stateless ... Jan 17 01:04:53 they are state) Jan 17 01:04:57 i think you are confused , read up on them :D Jan 17 01:04:59 ok Jan 17 01:05:03 I will Jan 17 01:07:11 Let's say that we have a Day enum. We could have a `boolean isWeekendDay()` method, where `someDay.isWeekendDay()` returns true if and only if `someDay` is SATURDAY or SUNDAY. Jan 17 01:07:25 If enums couldn't have methods, what would we do here? Have some kind of function for this? Jan 17 01:07:35 IMO, that function would just be a wannabe enum method. Jan 17 01:08:12 fun Int.isWeekendDay() {.. } ? ) Jan 17 01:08:41 vigilancer: That allows `8.isWeekendDay()`, which shouldn't really compile. Jan 17 01:08:53 Why do you keep ending messages with ), vigilancer, just wondering? Jan 17 01:09:05 good mood Jan 17 01:09:11 I think vigilancer has no eyes. :D Jan 17 01:09:31 Ah XD Jan 17 01:09:37 ah, yeah, and also that) Jan 17 01:10:18 Another nice enum-behaviour thing is static factory methods. An example might be `FooType fooType = FooType.parse("whatever");`. Jan 17 01:10:27 don't tell me that there is such thing as "smile grammar" Jan 17 01:13:47 g00s: It's amazing -- the emulator is finally usable for me now. Jan 17 01:13:51 It's pretty fast (with HAXM). Jan 17 01:14:03 TacticalJoke using the new emus ? Jan 17 01:14:08 It used to take around 10 minutes to start, and then it'd lag my laptop (because of paging). Jan 17 01:14:12 Nah, the old one. Jan 17 01:14:24 I'm guessing the new one will be even faster still. Jan 17 01:14:41 TacticalJoke what machine did you settle on ? Jan 17 01:14:52 There's a new one that boots in a reasonable time? Jan 17 01:15:06 This: http://www.toshiba.co.uk/laptops/satellite/satellite-l50-c/satellite-l50-c-22p/ Jan 17 01:15:53 I have Android Studio, the emulator, and loads of Google Chrome tabs open, and I'm using 5.1GB of 12GB of RAM. Jan 17 01:16:13 With 4GB RAM, this'd be painful. Jan 17 01:16:20 I have the same processor in my laptop Jan 17 01:16:25 quite good Jan 17 01:16:35 Yeah, it's way faster than I had expected. Jan 17 01:16:45 Good for a laptop Jan 17 01:16:53 I was looking at i7s initially, but most of them come with FHD resolutions, which I hate for 15.6" screens. Jan 17 01:17:08 The first thing I did was change from "energy efficient" to "high performance" Jan 17 01:17:10 At least for Windows. Might be different in the Mac world. Jan 17 01:17:52 Everything is tiny by default. Changing DPI settings makes some things too big, while other things remain too small. 1366x768 works way better for such a small screen in the Windows world, if you ask me. Jan 17 01:18:31 It took quite a bit of adjustment for me, going from 1366x768@20" to 1920x1080@15.6" Jan 17 01:19:24 I think mine is on "high performance" as well. Jan 17 01:20:23 Windows 10's virtual desktops are quite nice, but there's no affordance of how many desktops are open in the background, which makes it very easy to forget about an extra desktop you opened hours ago. Jan 17 01:20:33 Especially since there's no prompt if you try to shut down Windows at that point. Jan 17 01:21:02 I'm surprised it took so long for Windows to get workspaces/virtual desktops, Linux and OS X has had them for years. Jan 17 01:21:20 Yeah. There was a power tool thing before, but it sucked. Jan 17 01:21:26 I now dual screen, but before then I used it heavily. Jan 17 01:21:27 cmd.exe is also finally kinda usable now. Jan 17 01:21:37 PowerShell is actually okay Jan 17 01:21:49 fwtw my old acer with i7 (not U) was hot as hell. so i5 or lower is optimal for notebook. it require some efforts to make quility colling Jan 17 01:22:32 *cooling Jan 17 01:22:38 I had an Acer, years ago, whose motherboard melted from overheating. :D Jan 17 01:22:47 All those Firefox (back then) tabs I had open. Jan 17 01:23:01 The fan on that thing was tiny. Jan 17 01:29:26 shmooz: You should go ahead and learn version control. It makes programming a zillion times easier. Jan 17 01:29:35 (In reference to that conversation yesterday.) Jan 17 01:29:39 Version control is goo Jan 17 01:29:41 *good Jan 17 01:30:21 I just started working on a branch I hadn't touched in three months. Without version control, I would be completely lost regarding what I was doing, how far along I had gone, etc. Jan 17 01:30:33 That made me think of shmooz. :D Jan 17 01:33:58 lol, how can anyone work w/o vc Jan 17 01:34:01 This is a good tutorial: http://hginit.com/ Jan 17 01:34:41 You can skip the Subversion thing if you're never used Subversion. Jan 17 01:35:24 g00s: I agree. It's such a basic necessity. It's hard to think of an analogy that does it justice. Jan 17 01:35:42 'long term undo' :D Jan 17 01:36:01 Perhaps it's like performing surgery without anaesthetizing the patient beforehand. Jan 17 01:36:04 About as painful, anyway. Jan 17 01:36:15 I'm using a ResultReceiver to receive results from an IntentService. If all activities are closed, will the receiver still receive? What if the activities are destroyed? Jan 17 01:36:36 rubenwardy eh i wouldn't use ResultReceiver Jan 17 01:36:50 that so 2010 Jan 17 01:36:53 I get very mixed messages in resources :/ Jan 17 01:37:19 Basically, if there is an activity open, I want to send a message to it saying the service has finished work Jan 17 01:37:25 so that it can update the ui Jan 17 01:37:41 So please, tell me the correct method :S Jan 17 01:39:25 hello Jan 17 01:40:51 TacticalJoke: everyone using git right now. there is also convenient thing as git-flow Jan 17 01:46:02 Yeah, but IMO Git isn't very well designed. If someone hasn't used version control before, inflicting Git on them seems unfair. :D Jan 17 01:47:13 I'm talking about the CLI here. Jan 17 01:47:23 git works almost identically to hg, including all cli commands Jan 17 01:49:27 for the most part, all you ever need to know is, init, clone, push, pull, status and commit, add checkout and branch if you want branches Jan 17 01:49:33 The end result is almost identical; the CLI is largely different in places. Jan 17 01:49:33 I found hg very annoying to use Jan 17 01:49:40 rubenwardy: Which parts? Jan 17 01:49:53 I find hg more attractive myself. git author also justify existing two commands "wiconfig" and "ifconfig". if someone wants to know how looks best cli design, take any openbsd specific Jan 17 01:49:55 squashing and rebasing, mainly Jan 17 01:50:09 rubenwardy, that's a pain in every system Jan 17 01:50:30 Hg doesn't allow squashing without a plugin, though Jan 17 01:50:52 With git it's just git rebase -i HEAD~n, pick -> s, save, save. Jan 17 01:50:58 question: what should i use to stream a video from livestream? i read that i could use Vitamio, can someone give a hint? thank you. Jan 17 01:51:20 bl0bus4r, exoplayer Jan 17 01:51:24 rubenwardy: It's part of `histedit` which is part of Mercurial. Jan 17 01:51:32 mmm Jan 17 01:51:51 The histedit extension isn't enabled by default (which IMO is a terrible idea). Jan 17 01:51:54 Same with rebase and so on. Jan 17 01:52:08 Even though it's technically an extension, it's a core part of Mercurial. Jan 17 01:52:10 hg and git are similarly terrible with gigantic repos Jan 17 01:52:25 examples: openjdk and aosp Jan 17 01:52:58 thank you :) Jan 17 01:53:10 that's edge cases Jan 17 01:54:26 bl0bus4r: VideoView is not enough? Jan 17 01:57:23 video view is extremely limited Jan 17 01:57:55 in any case, picking hg or git are a wash, you really can't go wrong or better picking either Jan 17 01:57:56 vigilancer: it's saied that it can't play this video Jan 17 01:58:02 pick what everyone knows Jan 17 01:59:52 i think it doesn't support hls Jan 17 02:08:38 it doesn't Jan 17 02:08:54 if you want HLS, use exoplayer Jan 17 02:12:54 trying to fix small menubar app. surprised that swift is very similar to kotlin Jan 17 02:14:13 i wonder if we'll be able to sell to iran soon Jan 17 02:18:35 Hi folks, I'm halfway thru the Big Nerd Ranch book and thought I would ask: what are the tools / libraries that you use to make life eaiser, adding values and such?! Jan 17 02:19:12 support libraries first Jan 17 02:19:22 maybe a dash of xjava Jan 17 02:19:27 *rxjava Jan 17 02:20:04 ho. ok.. I've read on RxNet, probably similar. Jan 17 02:20:35 retrofit, picasso/glide Jan 17 02:21:41 Noted. Any DI? Jan 17 02:24:31 dagger2 Jan 17 02:24:59 there is also some libs for views binding can't recall Jan 17 02:25:35 That's cool. Just taking note so I have a look at them when I don't feel like coding / reading the book. Thanks. ;) Jan 17 02:25:48 Elezium also this Q gets asked almost every week on /r/androiddev, sure you can find some prior discussion ;) Jan 17 02:26:15 Doh. Sure thing. I just.. like... never go on redredit :/ Jan 17 02:26:49 Elezium: check this https://github.com/wasabeef/awesome-android-libraries Jan 17 02:28:03 nice. Thanks vigilancer Jan 17 02:40:04 twrp or cwm, any recommendations?? thanks! Jan 17 02:40:59 the #android-root Jan 17 02:51:26 I'm making an IntentService to download and process files. Is it better to use the download manager, or make my own download? **** ENDING LOGGING AT Sun Jan 17 02:59:58 2016