**** BEGIN LOGGING AT Mon Mar 14 02:59:58 2016 Mar 14 03:04:22 Rusty: You could flat map it into an Observable, filter that, then call toList() at the end Mar 14 03:06:59 RustyShackleford: observerable.flatMap(list -> Observable.from(list)).filter(...).toList(); Mar 14 03:10:27 observable.from() was the sticking point Mar 14 03:10:30 awesome, thanks Mar 14 03:40:51 konk3r: would you have idea why this doesn't work? Mar 14 03:41:08 it compiles, runs without error, but doesn't emit any observable's Mar 14 03:42:27 Can you throw in a break point to see if `list -> Observable.from(list)` is called? Mar 14 03:44:56 yup it hits the breakpoint Mar 14 03:44:59 data looks fine Mar 14 03:45:22 I commented out filter just to try to isolate the problem Mar 14 03:49:26 so wait, the toList() breakpoint is hit before the flatMap() Mar 14 03:49:39 Oh, sorry Mar 14 03:49:50 Try subscribe after filter Mar 14 03:50:01 Er Mar 14 03:50:12 filter().toList().subscribe() (if you didn't) Mar 14 03:50:26 I really don't understand this library at all lol. How is toList() first? Mar 14 03:51:29 well I eventually subscribe to it in another method Mar 14 03:51:41 Okay Mar 14 03:52:11 Basically: flatMap turns a single event into a series of events, then toList() should collect them all into one Mar 14 03:52:24 Oh wait, toList() may wait until finish() is called... I'm not 100% Mar 14 03:52:44 But if you have an observable that stays open so it never actually finishes, that may be the issue Mar 14 03:54:38 right thats why I'm surpised Mar 14 03:55:13 originalList -> flatMap -> toList -> originalList is what I expected Mar 14 04:02:56 RustyShackleford: just post your code... Mar 14 04:07:41 alright I've got to accumulate all the necessary code Mar 14 04:17:01 lda #code Mar 14 04:18:22 http://pastebin.com/if0FbZBD here's what I meant to post originally Mar 14 04:19:14 never emits any observables Mar 14 04:19:41 if I comment out everyting except query() it does Mar 14 04:19:59 I would expect this to output the same thing as query() Mar 14 04:28:45 Did Android M get rid of dialog titles appearing by default on dialogFragments? Mar 14 04:29:29 I'm seeing titles on my 5.x genymotion devices but not on my 6.0 phone Mar 14 04:51:56 are the snackbars in support lib supposed to show flush with the bottom of the screen , or is there supposed to be some gap? in every app i try there is a gap, but not in my app Mar 14 04:52:08 i even tried making sure there was a CoordinatorLayout, etc Mar 14 04:56:09 huh, there is no gap Mar 14 04:58:21 if I want to convert and Observable> to a sequence of Observable, is Observable.from() the correct operator? Mar 14 04:59:29 .flatMap(list -> Observable.from(list)) Mar 14 05:01:47 usgrant: http://pastebin.com/ZeVTLEVg Mar 14 05:02:24 g00s: I've never seen a gap Mar 14 05:02:43 flatMap gets the data it should. So this breaks down either in the Observable.from() call or the .toList() call. Mar 14 05:02:46 I'm stumped Mar 14 05:02:49 like every gapp i use, the snackbar is like 8dp off the bottom Mar 14 05:03:07 wonder if its because tablet Mar 14 05:03:22 change it to switchmap Mar 14 05:04:07 also why are you doing that Mar 14 05:04:48 the query would be sorta complicated Mar 14 05:05:39 is that what you mean? Mar 14 05:05:57 the dataset is small, few hundred items. I think it would be easier to do in Java than in SQL Mar 14 05:06:53 switchMap also does not work Mar 14 05:14:24 RustyShackleford protip: always make SQL return the smallest amount of data you need Mar 14 05:14:35 don't 'post process' it in java ;) Mar 14 05:14:59 the least # of rows, the least # of columns, sorted correctly Mar 14 05:16:27 this one is sorta wierd. There are 8 different train lines, each row has a boolean value Mar 14 05:16:33 er, 8 boolean values Mar 14 05:16:48 g00s: pro tip: dont do logic in sql Mar 14 05:16:53 or you will have bad time Mar 14 05:17:01 red=1 would mean that the red line stops at this station Mar 14 05:17:30 gordon_ pro tip: this is about writing correct queries, not stored procedures ;) Mar 14 05:17:58 hope so Mar 14 05:18:15 sqlite doesn't even have stored procs Mar 14 05:18:45 I dont think getting whole user will take much longer than getting part of the data Mar 14 05:18:53 well they have user defined functions in C, but clearly thats not applicable here Mar 14 05:19:54 * g00s <3 affinity designer Mar 14 05:20:09 if i go back to windows i'll be so depressed Mar 14 05:25:27 aaaah why won't this work? Mar 14 05:25:35 I was making such good progress today Mar 14 06:00:14 got it. So toList() won't emit any observables because onCompleted() is never called Mar 14 06:02:30 so now I just need to work around that Mar 14 06:02:32 great Mar 14 06:26:15 mornin' all Mar 14 06:27:16 hey alex_PP Mar 14 06:27:27 how's life g00s Mar 14 06:27:49 hm ok. nice we got some new android goodies last week :) Mar 14 06:27:56 how are things over there ? Mar 14 06:28:34 using affinity designer for some stuff, i love this but their export is still pretty horrible compared to sketch :( Mar 14 06:29:03 alex_PP what do you use to convert svg to vector drawables ? Mar 14 06:29:18 wish I could buy affinity without having to use the app store Mar 14 06:29:28 I don't Mar 14 06:29:40 I use android asset studio for most stuff Mar 14 06:30:06 not doing super design heavy stuff Mar 14 06:30:09 more funtional Mar 14 06:39:30 RustyShackleford: So my assumption was correct Mar 14 06:39:35 That sucks =/ Mar 14 06:40:06 But it also makes sense, it's the only way to know the list has completed. Mar 14 06:49:00 fellas, could someone tell me if i have to user a file path of just indicate the file name in this code : Mar 14 06:50:03 http://pastie.org/10758971 Mar 14 06:50:47 its a cloudinary upload asynctask Mar 14 06:51:10 cloudinary? Mar 14 06:51:46 cloudinary - yeah the hosting website ... Mar 14 06:51:53 JanusJanus: also, you should probably not post your credentials to a service on an IRC channel Mar 14 06:52:17 indeed but its just a temp account ... Mar 14 06:52:38 but yeah that was wrong ... dammn it Mar 14 06:53:47 ill change the account now, thanks for pointing that out ... maaaan its a hectic day ... Mar 14 06:53:58 JanusJanus: http://cloudinary.com/documentation/java_image_upload#all_upload_options Mar 14 06:54:13 file - The resource to upload. Can be one of the following: Mar 14 06:54:13 A local path (e.g., '/home/my_image.jpg'). Mar 14 06:54:13 An HTTP URL of a resource available on the Internet (e.g., 'http://www.example.com/image.jpg'). Mar 14 06:54:15 A URL of a file in a private S3 bucket white-listed for your account (e.g., 's3://my-bucket/my-path/my-file.jpg') Mar 14 06:54:19 any one of those Mar 14 06:57:30 well i am trying to upload a pic from a phone, so after pointing out to the program the ImageView to get the pic i created an Uri, by setImageURI imageviewname Mar 14 06:58:00 by i cant use that Uri ? when i put it in the code shown in the link i posted ? Mar 14 06:59:39 this is my full code : http://pastie.org/10758975 Mar 14 07:06:31 i keep getting Caused by: java.lang.RuntimeException: Missing required parameter - file Mar 14 07:06:40 at the stacktrace ? Mar 14 07:06:53 JanusJanus: why use an AsyncTask if you don't do anything in the onPostExecute? Mar 14 07:07:21 checked on google, stackoverflow etc ... and added all the api i need and dependencies, so i guess something wrong with my syntax ? Mar 14 07:07:29 LOL Mar 14 07:07:43 JanusJanus: http://stackoverflow.com/a/6699842/1056359 Mar 14 07:07:50 i just learned today the Asynctask lol Mar 14 07:08:15 there is no reason to use it unless you need to pass the result of heavy off-ui work to the UI thread Mar 14 07:12:50 even then there's other solutions Mar 14 07:13:10 well i am using it, becuase when i first implemented the mothod suggested by Cloudinary to Upload a file i was getting an Error, Exception error, then some guys here pointed out to me that if do any network stuff on the main thread i should use AsyncTask Mar 14 07:13:41 so i was going over some tutorials about uploading picture to a server and i noticed there use of Asyntask ... Mar 14 07:14:29 i tried to implement some lesson in my app, and i am just having difficulty combining Cloudinary upload syntax provided with the AsyncTask methods Mar 14 07:14:49 but the last post you sent me of StakcOvrfl seems might be the cuase of it ... Mar 14 07:15:03 from what i am reading in my stacktrace : Caused by: java.lang.RuntimeException: Missing required parameter - file Mar 14 07:15:43 wtf Mar 14 07:15:53 ??????? Mar 14 07:16:12 too many ppl just got dropped Mar 14 07:16:12 migration .... ? Mar 14 07:16:12 lol Mar 14 07:16:18 yeah... Mar 14 07:16:22 I wonder Mar 14 07:16:25 wtf Mar 14 07:16:31 did that happen before ? Mar 14 07:16:33 netsplit... it happens Mar 14 07:16:34 eyah Mar 14 07:16:39 it happens sometimes with irc Mar 14 07:16:39 Leeds: HAI Mar 14 07:16:49 thepoosh: hey Mar 14 07:17:08 splits happen all the time Mar 14 07:17:34 oh gordon_ thanks for pointing out to me the importance of AsyncTask Mar 14 07:17:40 I know, still funny thing to watch Mar 14 07:17:47 JanusJanus: me? Mar 14 07:17:51 been trying to learn about since yesterday Mar 14 07:17:55 I think he's talking to me Mar 14 07:18:03 JanusJanus: read the documentation website Mar 14 07:18:11 might be a bit out of date but it's very good Mar 14 07:18:11 yeah or was it Dragon ? Mar 14 07:18:35 man am fuzzzy today ... just posted a code with my credentials LOL Mar 14 07:18:39 -_- Mar 14 07:19:11 believe me i am reading the documentation website, i have at least 6 tabs for Cloudinary on Mar 14 07:19:19 g00s, this thing again http://arstechnica.com/information-technology/2016/03/tp-link-blocks-open-source-router-firmware-to-comply-with-new-fcc-rule/ Mar 14 07:20:04 capella-5x: there is an FCC rule against modding firmware?! Mar 14 07:20:55 well, software allowing channel transmission range modification Mar 14 07:21:04 oh well Mar 14 07:21:14 that might be an issue Mar 14 07:21:19 but the rest shouldn't Mar 14 07:21:40 Hello I am getting a 400 bad request while using RestTemplate Mar 14 07:22:00 Can anyone help me resolve it Mar 14 07:22:55 MonsterAbyss: that might be a backend issue Mar 14 07:23:32 thepoosh , Not backend issue , I checked it Mar 14 07:24:07 that is a weird statement Mar 14 07:25:23 MonsterAbyss: debug and see what the request going out looks like and then try to mock it from curl Mar 14 07:40:08 say, I want to make some video manipulations, crop and audio removal, for example. ffmpeg is the only option? Mar 14 07:45:20 Hi, I need to sync my data with server. Do I need the "Content Provider" eventhough I don't need to share it with other applications? Mar 14 07:45:47 space31: you need to issue a request to your server Mar 14 07:45:57 what does ContentProvider have to do with this? Mar 14 07:49:29 what cheap phones support android 6 Mar 14 07:50:32 thepoosh: I was reading "http://goo.gl/czWSDd", and at the end it mentioned "Content Provider" which is needed for authenticator and sync adaptor. Mar 14 07:50:40 squ: I would probably say BLU Mar 14 07:50:44 but they suck Mar 14 07:51:34 thepoosh: I'm pretty new though, so I may ask non-professional question. Sorry for that. Mar 14 07:51:35 what about samsung Mar 14 07:51:40 space31: read this - http://blog.udinic.com/2013/07/24/write-your-own-android-sync-adapter/ Mar 14 07:51:46 samsung, lg Mar 14 07:51:47 squ: NO!! Mar 14 07:51:54 Samsung has touchwiz Mar 14 07:52:03 you should want to get a clean system device Mar 14 07:52:12 yes Mar 14 07:52:15 Android 6, that old thing? Mar 14 07:52:18 but I don't know which Mar 14 07:52:23 Leeds: lolz Mar 14 07:52:26 android 6 marshmallow Mar 14 07:52:52 there are so much phones produced that I don't know Mar 14 07:53:23 squ: http://www.androidauthority.com/cheap-android-phones-269520/ Mar 14 07:53:48 this kind of phone is not available here Mar 14 07:53:59 thepoosh: cool, thanks Mar 14 07:54:05 np Mar 14 07:54:14 udnic is a good guy Mar 14 07:54:18 knows his shit Mar 14 07:54:44 greate Mar 14 07:55:15 what do you think about asus zen phone 2 Mar 14 07:55:25 (didn't knew asus produce phones) Mar 14 07:55:42 I think we have on Asus in the office Mar 14 07:55:50 will ask our QA guys soon Mar 14 07:56:00 has it 6 upgrade? Mar 14 07:56:07 or 5? Mar 14 07:56:10 dunno Mar 14 07:56:13 need to check Mar 14 07:56:21 remind me in an hour or 2 Mar 14 07:57:20 according to wikipedia, it has android 5 by default Mar 14 07:57:32 5.5 inches Mar 14 07:57:34 so big Mar 14 07:57:39 damn Mar 14 08:18:20 thepoosh, I am tried debug it it wont help Mar 14 08:18:36 you'll have to give some more information Mar 14 08:18:47 restTemplate.postForObject("http://xxxxxx:8080/rest/ordernow/update", orderNows[0], String.class) Mar 14 08:19:07 its the requset I am making but it wont add to database Mar 14 08:19:34 but adding of objects work Mar 14 08:20:05 update doesnt Mar 14 08:20:16 MonsterAbyss: debug and step in until you see the request being sent Mar 14 08:20:33 then you'll have everything you are looking for and will be able to see what's wrong Mar 14 08:21:33 thepoosh , will help me if I show you the code Mar 14 08:21:52 MonsterAbyss: no, you need to debug your code Mar 14 08:21:56 i am not going to do that Mar 14 08:32:38 Morning Mar 14 08:33:08 Good morning. Mar 14 08:33:25 morning it is Mar 14 08:33:43 any good app or online tool for app mockup? Mar 14 08:36:01 vegetablesalad19: Sketch (Mac only, expensive) or Draw.io (Web, works kinda) Mar 14 08:36:22 I just use the Android Layout designer for mock-ups ;) Mar 14 08:37:41 fluid may be worth a try for mockup. Mar 14 08:38:22 https://www.fluidui.com/ Mar 14 08:38:33 Sketch looks good, mac only is ok, but it seems that it's intended for iOS. I need something for my team (not developers) Mar 14 08:39:01 hi! I am using Android Studio 2.0 and the experimental plugin: com.android.tools.build:gradle-experimental:0.6.0-beta6 . I try to add a .jar to as one of my dependancies. how can I do this? can someone give me some hints? Mar 14 08:39:56 Thanks will try draw.io and fluidui Mar 14 08:40:39 HunterD: shouldn't be an issue Mar 14 08:40:49 add it to a folder Mar 14 08:40:54 and in the dependencies add it Mar 14 08:41:05 What can I use to find what causes this: E/libdex (12016): Out-of-order method_idx: 0x35a then 0x35a; E/libdex (12016): Trouble with item 114 @ offset 0x192f8; E/libdex (12016): Swap of section type 2006 failed; E/libdex (12016): ERROR: Byte swap + verify failed Mar 14 08:41:09 (dexdump returns that) Mar 14 08:42:40 thepoosh: I think I solved it with: compile fileTree(dir: 'src/main/libs', include: ['*.jar']) Mar 14 08:42:53 previously I had just: compile fileTree(dir: 'libs', include: ['*.jar']) and it did not work Mar 14 08:42:57 you didn't solve anythimg this was how to do this all along Mar 14 08:45:33 hello Mar 14 08:45:46 now I have another error. someone encountered something simillar with this: Error:(59, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). ? Mar 14 08:46:07 *error is inside the generated AndroidManifest.xml Mar 14 08:46:52 I am an android developer. I have 4 different phones and tablets at office but now I want to buy an Android phone for myself for development purposes and daily use. Mar 14 08:47:15 Do you think Nexus 5X is a good choice for me? Mar 14 08:47:45 I would use almost any nexus device for dev. Mar 14 08:48:33 Spider, Thank you for advice. I know that too. But I want to use it daily too. Mar 14 08:48:38 And Mar 14 08:49:13 I want to test many different OSes on it like Cyanogenmod and Ubuntu Phone Mar 14 08:49:29 do you use multirom? Mar 14 08:50:43 me personally i would try to find a device that is directly compatible with multirom if your main goal is to test different OS Mar 14 08:51:30 Spider, What is multirom? Mar 14 08:51:30 that way you can have stock for daily use and then have the multi boot capabilities that multirom offers Mar 14 08:51:44 hmmm. interesting Mar 14 08:51:55 like what grub offers, right? Mar 14 08:52:31 multirom allows you to boot multiple OSes Mar 14 08:52:37 sort of Mar 14 08:53:04 but i do know that the multirom dev is mainly focused at nexus devices Mar 14 08:53:32 so in my opinion that may be your best option Mar 14 08:53:46 give me a sec and i will give a lin Mar 14 08:53:49 link Mar 14 08:54:51 https://github.com/Tasssadar/multirom/wiki Mar 14 08:55:21 Spider, I am currently make money by developing for Android. So it is very important for me to have latest Android version (currently Android 7) before anyone else. Mar 14 08:55:44 Hi, anyone tried Tabbed Activity (with ActionBar Spniner) created by Android Studio 1.5.1? I think it's broken. Mar 14 08:56:17 the layout looks terrible https://img.vim-cn.com/96/4929993470112a9945e8e31710331d2c644016.jpg Mar 14 08:56:37 On the other hand, the technology world is changing very fast. So I should be able to test different technologies (like ubuntu phone) to make innovative apps as soon as possible Mar 14 08:56:54 The button and EditText should align to the bottom. Mar 14 08:56:56 Not trying to sound like an ass but you should already know that nexus devices offer that better than most. Mar 14 08:57:05 how can I add using the same plugin (com.android.tools.build:gradle-experimental:0.6.0-beta6) dependancy on google-play-services-v8.4.87-000-debug.aar ? Mar 14 08:57:39 momken, have you heard of XDA? Mar 14 08:57:49 Spider, Of course Mar 14 08:57:57 ok Mar 14 08:58:05 i was starting to wonder Mar 14 09:00:32 Spider: I have 3 problems with Nexus 5X: Mar 14 09:00:52 which are? Mar 14 09:01:21 1. It is so new that only a few tools are readily available for it. Even Ubuntu Phone and Multirom doesn't support it now Mar 14 09:01:46 2. It doesn't support uSD. So its storage can get full soon Mar 14 09:02:57 3. Nexus 5X 32GB comes without any warranty in Iran (here) which seems a little risky. Although I think if I tweak OS, its warranty would simply void. Mar 14 09:03:04 e Mar 14 09:04:09 yeah well then you should be able to answer your own question. because to me all of those would be a deal breaker although the last two being the main ones Mar 14 09:04:54 as far as i know multirom can be ported to other devices if you know how Mar 14 09:05:26 so if I was you i would be looking for something different for sure Mar 14 09:06:43 Spider, Yeah. I guess Nexus 5X being new is not bad. Its tools will come soon. And I heard Android 7 is also available for it too. Mar 14 09:07:28 yeah thats always the issue with the newest stuff Mar 14 09:08:08 but if it was all done for you then that would not leave a whole lot of room for dev. Mar 14 09:08:56 but again that dependes on exactly what you want/need it for and which one of those things is more important to you your wants or your needs. Mar 14 09:09:00 Spider, But consider Android 7 is not readily available from google, even for Nexus 5. Buying an old device seems more risky. Mar 14 09:09:19 Spider, About uSD. No Nexus device supports it. Mar 14 09:09:36 really i had no idea Mar 14 09:09:37 But I may be able to use USB OTG for testing purposes Mar 14 09:09:55 i am pretty sure you could Mar 14 09:10:21 Spider, My main problem is lack of warranty for 32GB version. Although I don't need a it at all, I fear to buy a fake device. Mar 14 09:10:37 Spider, Have you seen any fake Nexus 5X? Mar 14 09:11:04 not yet but then again i am not really a phone enthusiast Mar 14 09:11:20 i really just prefer android tablets myself Mar 14 09:11:35 i honestly only use phones to make phone calls Mar 14 09:12:09 i prefer hardware that i can do more with Mar 14 09:12:23 like PC Mar 14 09:12:35 Spider, Hmm. I think I should risk and buy a Nexus 5X, because it will be the best phone for development in next 6 months in my opinion. Mar 14 09:13:18 And I should buy a 32GB version, because 16GB is very low for testing different OSes. Mar 14 09:13:39 why should it be the best phone for development? Or don't you mean app development Mar 14 09:13:58 to me though not having uSD is messed up considering how the major change that just happened in regards to how android handles storage now Mar 14 09:14:18 Spider, You may laugh, but as an Android developer, I use a very simple nokia phone myself :)) Mar 14 09:14:42 you may laugh but i am not even an android dev :) Mar 14 09:14:44 the best choice for productive app development would be a samsung imho, because thats where the user-base is. test on stock android can be perfectly done with the AVD Mar 14 09:14:54 ktwo, I mean testing new tools, roms and oses and developing apps for them. Mar 14 09:14:55 i just like my stuff to do what i want it to do Mar 14 09:15:36 so i learn what i need to do and it has led me to just dabble a little bit in the dev side of thing Mar 14 09:15:40 things Mar 14 09:16:41 but that does not mean i don't know how to figure things out you know Mar 14 09:17:41 Hi, loading a website in a WebView causes my App to hang, like I cant scroll or touch any other buttons while the website is loading. Did anyone experience this aswell or has any idea what may be the cause of this behaviour? Mar 14 09:18:02 ktwo, I agree with you that Samsung is best for productive app dev, because has most share of the market. But I don't want to use my phone for productive dev, that's duty of my company. I want to more for geeky stuff and testing new oses before anyone else. Mar 14 09:19:14 back with more Android Studio + experimental plugin (0.6.0) problems. how can I add the library: 'org.apache.http.legacy' to my project? Mar 14 09:19:19 I prefer to develop android apps on my iphone ;) Mar 14 09:20:05 lomex, Weird, I have never seen like this before. Although, is your device powerful enough to load a heavy component (like webview)? Mar 14 09:20:43 falsealarm, You can just simply use emulators like AVD in your mac Mar 14 09:20:52 momken: Yes, it happens on all devices :( Mar 14 09:21:18 momken: usually you should be able to scroll while the page is loading, right? Mar 14 09:21:41 lomex, Hmmm. Scroll in webview or scroll in activity? Mar 14 09:21:48 Scroll in the webview Mar 14 09:21:49 momken: just kidding :) Mar 14 09:24:23 falsealarm, I wish someday Apple get bankrupted. That shitty, closed, selfish, capitalist company which has monopolised a lot of market Mar 14 09:26:55 is there 'useLibrary' still available in the experimental plugins (0.6.0) ? Mar 14 09:27:43 Google is too capitalist Mar 14 09:27:58 any company is basically Mar 14 09:28:16 Maybe a facebookphone will kill apple :( Mar 14 09:29:30 HunterD for what do you need apache http legacy? Mar 14 09:29:52 HunterD, I use apache http legacy in my app. Mar 14 09:30:04 I try to build a game with Android Studio 2.0 and experimental plugin Mar 14 09:30:16 the sources are already written Mar 14 09:30:19 why don't you rewrite code instead of relying on those plugins Mar 14 09:30:24 *dependencies Mar 14 09:30:27 I just need to build it with this version. Mar 14 09:31:09 I cannot modify the source. the project already compiles using a custom build system (that calls ndk-build and previous gradle) Mar 14 09:31:41 memken, can you guide me on how to use it with the experimental plugin? Mar 14 09:33:37 HunterD, I don't remember where I added legacy http library of apache. But I am sure I used a very old version of it Mar 14 09:33:58 I think I used http library 3 by apache Mar 14 09:34:15 HunterD, What is experimental plugin? Mar 14 09:34:28 I use Android Studio 1.5.1 myself Mar 14 09:34:38 http://tools.android.com/tech-docs/new-build-system/gradle-experimental Mar 14 09:35:05 doesnt this work? compile fileTree(include: ['*.jar'], dir: 'libs') -> i use this to add plain jar dependencies Mar 14 09:35:16 it is the plugin that adds NDK support and changes some other things Mar 14 09:35:24 ktwo, I use that too Mar 14 09:35:34 ktwo: I will try with local jar Mar 14 09:35:42 *some jars already work this way Mar 14 09:35:43 I copy jar files into "libs" folder Mar 14 09:35:55 where can I grab the jar for org.apache.http.legacy ? Mar 14 09:38:07 Hunter: android-sdk-linux-x86/platforms/android-23/optional/ Mar 14 09:38:33 It is actually there in your android sdk folder Mar 14 09:38:39 You can simply copy it Mar 14 09:39:05 memken, thank you so much! :D Mar 14 09:39:09 will give it a try Mar 14 09:39:16 HunterD, reference: http://stackoverflow.com/a/32066606/5894508 Mar 14 09:39:55 HunterD, I still don't know whether it's apache http lib 4 or 3. But I guess it's 4 Mar 14 09:40:09 Android has removed it in newer versions Mar 14 09:40:20 I have used with version 3 myself Mar 14 09:43:22 You know what? No technology has improved my life as much as 9gag.com :)) Mar 14 09:46:52 9gag.com ftw Mar 14 09:54:51 is it possible to show previews of nested fragments included via a FrameLayout container? android studio only offers me fragment previews included via tag Mar 14 10:13:29 hi, i don't know why but i lost textColor functionality with last support library. any help? Mar 14 10:13:43 still have some other problems, the game, crashes at: onCreate() when line: System.loadLibrary("Android" ); is executed. the libAndroid.so is not present inside the apk. I need a way to specify a dependancy on that .so inside the gradle file (experimental plugin, again, 0.6.0) Mar 14 10:13:53 that code works before last update of support Mar 14 10:14:00 need help Mar 14 10:15:23 it's very strange Mar 14 10:15:57 seams all my app lost "textColor", it seams a bug of SDK or support library o i don't know Mar 14 10:16:53 hithere Mar 14 10:18:08 is there a way to persuade EditTextPreference to have numbers in some fixed intervals ie - <0;100> through xml? Mar 14 10:19:01 there is "android:maxLength=" but this define interval <0;100) Mar 14 10:19:39 use 0;101 [solved] Mar 14 10:19:43 I was trying to do that in "public boolean onPreferenceChange(Preference preference, Object value)" through Mar 14 10:20:03 ((EditTextPreference) preference).setText("100"); Mar 14 10:20:11 with android:maxLength="3" in xml Mar 14 10:20:26 but id does not commit until user reenters that fragment Mar 14 10:21:38 Ashiren, in xml - how? Mar 14 10:22:35 http://www.cnet.com/news/samsung-galaxy-s7-would-be-my-perfect-iphone/ Mar 14 10:22:51 Samsung Galaxy S7's one flaw: It still runs Android Mar 14 10:23:00 is there a way to commit to that preference number right from onPreferenceChange? Mar 14 10:27:47 can I not just call wait() in my threads start()? I get IllegalMonitorStateException: object not locked by thread before wait() Mar 14 10:33:07 Samsung Galaxy S7's one flaw: It still runs Android :: that's android's flaw Mar 14 10:35:19 from http://tools.android.com/tech-docs/new-build-system/gradle-experimental :: To declare a dependency on a file, create a prebuilt library and add dependency on the library ... that method from there does not work for me Mar 14 10:35:45 any hints on how to add the .so to the apk that is built with this experimental plugin? Mar 14 10:51:41 did anyone ever work with video and android? is the EGL extension the only way to go there? Mar 14 10:53:41 video what Mar 14 10:54:39 and android Mar 14 10:55:50 YUV420p Mar 14 10:55:59 Android 4.2+ Mar 14 10:56:38 I'm using sws_scale at the moment to convert it to RGBA (since sws_scale supports NEON nowadays) Mar 14 10:57:24 coming from programming a little python, I'm used to defining a class, and then calling its functions. On android, I see that a porgram defines a class, e.g. onCreate,onDraw, but onDraw isn't called inside the program, yet an app is created and objects are drawn. Mar 14 10:57:26 glTexSubImage2D is too slow Mar 14 10:57:48 Question is - what is going on here, is there a name for this paradigm? Mar 14 11:08:12 should I try avoid many new() operations for android game dev? Mar 14 11:08:49 I have my own Vector2/Vector4 coordinate classes, but to pass such data around I find myself creating many instances of these classes, which is many new()'s every game tick Mar 14 11:11:52 Xanather, yes you should Mar 14 11:12:28 if you create a new object every run of your games main loop, this will put a lot of stress to the garbage collector Mar 14 11:12:31 and will slow down Mar 14 11:12:59 you should try to recycle your vector objects Mar 14 11:13:47 yeah will do Mar 14 11:13:56 I guess I need to redesign how I amworking with vectors abit Mar 14 11:14:04 falsealarm: It's called the 'template method pattern'. Mar 14 11:14:24 for stuff like vectors and point classes it should be fine if you create an ObjectPool Mar 14 11:14:38 pduin: Thank you! Mar 14 11:23:56 danijoo: !!! Mar 14 11:24:11 did you convert all your drawables with vectorDrawables? Mar 14 11:24:34 i converted exactly .. 0 :D Mar 14 11:24:50 I passed it on to our designer Mar 14 11:24:55 nothing really happened there Mar 14 11:25:00 All I hear are horrible stories about the support lib so im still on 23.2 :/ Mar 14 11:25:22 my design team is me and Gimp ^^ Mar 14 11:26:33 i didnt look into vectors at all yet. Can I implement all my menu icons in a vector drawable instead of all those drawable-xxxx folders ? Mar 14 11:27:17 do you intent to support pre-L devices Mar 14 11:27:42 yeah my api16 userbase is still 10% :/ Mar 14 11:28:03 vector drawables are present since api21 Mar 14 11:28:14 they are part of support now, arent they Mar 14 11:28:19 o.O Mar 14 11:28:31 wow, technology Mar 14 11:29:00 well actually never played with them so i dont know ^^ Mar 14 11:29:11 yeah same here Mar 14 11:29:19 "Vector drawables allow you to replace multiple png assets with a single vector graphic, defined in XML" Mar 14 11:29:52 that's right Mar 14 11:30:32 I guess ill stick to pngs for a while ;) Mar 14 11:30:47 I've drew some vectors manually Mar 14 11:30:49 its not like they change daily Mar 14 11:31:03 in editor, with calculator Mar 14 11:31:05 Ashiren: support 23.2 added vector support Mar 14 11:31:11 that was so fun Mar 14 11:31:15 I did maths Mar 14 11:31:17 ) Mar 14 11:31:22 how about no Mar 14 11:31:33 wonderful experience Mar 14 11:31:34 If I create a custom View by ... extends views, can I still assign my layout defined in xml to this view? Mar 14 11:31:37 never forget Mar 14 11:31:44 extends View* Mar 14 11:32:05 thepoosh: why not give it a try Mar 14 11:32:08 ) Mar 14 11:32:13 lomex, yes Mar 14 11:32:20 but you might need to handle them yourself Mar 14 11:32:25 squ: i hate dealing with the UI things Mar 14 11:32:44 thepoosh: making a vector drawable is fun Mar 14 11:33:02 manually Mar 14 11:33:05 in text editor Mar 14 11:33:08 squ.setIsCrazy(true); Mar 14 11:33:26 :( Mar 14 11:33:54 I think that I will focus on theming soon Mar 14 11:34:04 but that's as far as I'm willing to go Mar 14 11:34:06 one moment, I'll show you example Mar 14 11:34:15 paste that shit Mar 14 11:34:51 danijoo: Maybe its wrong to extend from View? I am about to implement a ProgressBar, but I am not to sure what kind of element is the best to represent a ProgressBar within my Activity Mar 14 11:35:24 https://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg Mar 14 11:35:30 thepoosh: view-source on this Mar 14 11:36:14 lomex, its not wrong. its just something you need to do correctly Mar 14 11:36:29 thepoosh: it consists of 3 lines of code Mar 14 11:36:42 lomex, theres a progressbar view. you dont need to create one Mar 14 11:36:44 each line represents a rectangle with color attribute Mar 14 11:36:49 that is it Mar 14 11:38:02 luckily, that doesn't work on android Mar 14 11:38:06 :) Mar 14 11:38:40 squ: what about this? Mar 14 11:38:40 http://pastebin.com/AFJdcC5g Mar 14 11:39:19 taken from events.google.com/io2016/ Mar 14 11:39:27 http://events.google.com/io2016/ Mar 14 11:40:09 squ: now create computer with server icon by hand Mar 14 11:40:35 thepoosh: this is too much Mar 14 11:40:52 I've just modified these 3-5 liners to android pathData Mar 14 11:41:04 default svgs doesn't work, they need to be converted Mar 14 11:45:53 thepoosh: take that path d="" and put into .xml as Mar 14 11:46:24 chunk by chunk, because android xml parser is buggy Mar 14 11:47:59 JakeWharton: how are you guys running tests on Android? Mar 14 11:49:10 anyone knows what youtube apk version works without google play services? Mar 14 11:49:22 justJanne, its in the middle of the night in murica :/ Mar 14 11:49:57 danijoo: well, do you know how to properly run different types of tests (especially non-device junit tests) Mar 14 11:50:39 well you can create jvm tests if thats what you mean Mar 14 11:50:44 with mocked android classes Mar 14 11:51:28 but properly and android tests are to things that dont belong together :´D Mar 14 11:51:36 two* Mar 14 11:55:55 is it better to use https://android.googlesource.com/platform/development/+/master/samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatPreferenceActivity.java or http://developer.android.com/reference/android/preference/PreferenceActivity.html to create preferences? Mar 14 12:02:04 bolovanos, i´d say dont use any preference activity and use preference fragments instead Mar 14 12:02:31 i think most of PreferenceActivity is deprecated by now Mar 14 12:02:37 danijoo, like in sample code? http://developer.android.com/reference/android/preference/PreferenceActivity.html Mar 14 12:03:11 bolovanos, read the first line on this page Mar 14 12:04:39 danijoo, probably referring to http://developer.android.com/reference/android/preference/PreferenceFragment.html Mar 14 12:04:51 yes. or the support version of it Mar 14 12:06:41 danijoo, is there any documentation to that support version? Mar 14 12:07:14 theres a javadoc page like for every class Mar 14 12:07:21 danijoo, I have created new activity from AS template and it uses AppCompatPreferenceActivity Mar 14 12:07:23 but it doesnt differ much from the non-support verson Mar 14 12:08:02 but for that - there is no documentation on http://developer.android.com/ Mar 14 12:08:22 except that class source one android.googlesource.com Mar 14 12:09:33 thats not true. it has a javadoc page like every other class Mar 14 12:12:10 which part of my statement is not true? Mar 14 12:12:21 there is no documentation on http://developer.android.com/ Mar 14 12:12:26 ^this Mar 14 12:13:56 u missed one important part of that statement Mar 14 12:14:11 "but for that - there is no documentation" Mar 14 12:14:34 there is. every class has documentation Mar 14 12:15:31 just search for PreferenceFragmentCompat Mar 14 12:16:08 I was searching for that exact class I was asking for http://developer.android.com/reference/android/package-summary.html#q=AppCompatPreferenceActivity Mar 14 12:19:38 this is no class thats part of official support lib. the class you linked is from an example project Mar 14 12:19:46 Question is why is Google using Demo Class in its Templates? Mar 14 12:19:51 'com.example.android' Mar 14 12:20:16 because when this demo was created we didn had PreferenceFragmentCompat and devs had to work arround it with things like that Mar 14 12:20:39 now you can use preferenceFragments and normal activities Mar 14 12:20:51 and google did not care and left this template there as it were final version Mar 14 12:21:05 its still working Mar 14 12:21:10 danijoo, thx for clarification Mar 14 12:21:10 but yes Mar 14 12:21:14 google doesnt care :( Mar 14 12:21:17 np Mar 14 12:21:25 danijoo, it works - somehow Mar 14 12:21:28 ... Mar 14 12:21:46 therefore I am asking for to find out workaround Mar 14 12:22:14 danijoo, btw - this is my problem right now http://stackoverflow.com/questions/20592659/edittextpreference-settextvalue-not-updating-as-expected Mar 14 12:22:51 or http://stackoverflow.com/questions/13303469/edittext-settext-not-working-with-fragment Mar 14 12:23:08 but the last one uses just Fragment... Mar 14 12:24:54 bolovanos, the accepted answer doesnt work for you? Mar 14 12:29:40 danijoo, for second link - I do not have custom EditTextPreference - since my custom NumberPicker did not work - http://stackoverflow.com/questions/35920209/android-preferences-numberpicker-and-preferencescreen-compile-errors-no-res I was avoiding another custom - unleas I am sure there is no easier way to do what I am after... Mar 14 12:30:42 Anyone here familiar with dagger? Having an issue, where essentially the Object that I'm injecting takes time to retrieve, but I'm injecting it into my activities onCreate(), so it's slowing down my app. What's the best approach here? Mar 14 12:31:43 danijoo, first one I have rewritten Preference.OnPreferenceChangeListener to SharedPreferences.OnSharedPreferenceChangeListener but for some reason (which I have forgot) I have failed Mar 14 12:38:39 bolovanos,probably because you didnt save an instance to the OnSharedPreferenceChangeListener Mar 14 12:38:46 it gets recycled if you donty Mar 14 12:40:28 danijoo, your answer is probably related to first url "EditTextPreference.setText(value) not updating as expected..." - will look at that - thank you Mar 14 12:44:07 Huh, didn't know you can't use "Ok google" anywhere on SGS7 Mar 14 12:46:29 Mavrik, theres a setting to enable that afaik Mar 14 12:47:06 Google app -> Settingws -> Voice -> Ok Google detection Mar 14 12:50:59 So toList() won't emit any observables because onCompleted() is never called Mar 14 12:51:44 how can I work around this. I'm starting with SqlBrite.createQuery() Mar 14 13:09:59 Hey, is there any way to put elements ontop of all my current elements without using a "Dialog"? Mar 14 13:12:31 anyone familiar with MediaCodec? wondering it it's possible to apply filters to video with it Mar 14 13:22:41 hey, I’m trying to run a friend android project on android studio. When I try to run it I have the following error : Could not find class: apple.awt.CGraphicsEnvironment. Do you guys know where it’s coming from ? Mar 14 13:23:34 are you on a mac? can you open other projects in AS? Mar 14 13:24:01 lomex: I did that once. SO yeah, its possible, but I forget what I did. I think I just created a new view programatically and added it directly to the window? Mar 14 13:25:01 Whats the best route to take if using dagger and the dependency I want to inject comes in Asynchronously? Mar 14 13:26:49 dragorn: yes I am, and yes I can run a project I wrote myself Mar 14 13:27:46 nitenq, huh. That was all sort of a long way of saying I have no idea, but since it works otherwise, that's interesting. Was this other project made on a mac? I'm surprised any sort of state gets carried w/ the project like that though Mar 14 13:28:12 nitenq, https://code.google.com/p/android/issues/detail?id=162448 Mar 14 13:28:51 dragorn: yes it has been made on a mac too but on a different version of Android studio Mar 14 13:29:06 nitenq, looks like a gradle version issue; you could strip the embedded gradle out of their package and either run system or your own copy of gradlew Mar 14 13:30:01 dragorn: I think it’s actually using my own gradle Mar 14 13:30:27 nitenq, I'm not a mac guy so my advice has about run out, but there's several suggested fixes in that link, hopefully one of them works? Mar 14 13:30:41 dragorn: yes I’ll try thanks Mar 14 13:31:16 Does many phones support android key chain with Trusted Execution Environment (TEE), Secure Element (SE)? Mar 14 13:36:47 hey guys, im trying to figure out why wifi/bluetooth isnt working on a samsung galaxy tab s2 i have Mar 14 13:37:10 when i attempt to turn them on it says "turning on..." for a while then reverts to off Mar 14 13:37:30 ive fired up adb and im trying to see if i can get any useful info out of the radio logs now Mar 14 13:37:38 any ideas at what else i could look at? Mar 14 13:38:44 gonna see what i canh get out of dmesg too Mar 14 13:42:08 i get a couple of these Mar 14 13:42:09 D/DCT ( 3817): [0]onReceive: action=android.net.wifi.WIFI_STATE_CHANGED Mar 14 13:42:09 D/DCT ( 3817): [0]WIFI_STATE_CHANGED_ACTION: enabled=false mIsWifiConnected=false Mar 14 13:52:03 Hi guys, I wanted to learn and play around with USB Host Accessory protocol for data transmission. Which is the best board to have for this: raspberry pi, arduino, beagle bone etc.? Mar 14 13:52:36 i am thinking to buy and try this in raspberry pi ? Mar 14 13:52:51 any suggestion would are welcome Mar 14 13:54:15 hello.. anyone here Mar 14 13:55:10 most of us are probably in work or getting ready for work right now :P Mar 14 13:55:33 Taios: got you, i am on other side of the world, so just came back Mar 14 13:55:36 from work Mar 14 13:59:47 http://forum.xda-developers.com/tab-s2/help/help-tab-s2-t710-wont-charge-stuck-boot-t3317140 sounds somewhat familiar, though i dont think there was any reflashing involved, there was some boot looping after some kind of reset but i didnt see why it reset Mar 14 13:59:51 kernel panic maybe?? Mar 14 14:00:02 idk if android resets after a kernel panic Mar 14 14:00:50 pie__: wrong channel Mar 14 14:00:59 ^ Mar 14 14:01:09 hm ok Mar 14 14:01:16 try #android /list Mar 14 14:01:28 danijoo: life is heavy Mar 14 14:02:11 Hi guys, I wanted to learn and play around with USB Host Accessory protocol for data transmission. Which is the best board to have for this: raspberry pi, arduino, beagle bone etc.? Mar 14 14:03:46 hi, does anyone know why I have a error : package org.apache.http does not exist on android studio ? Mar 14 14:05:34 nitenq: seems like you updated your target SDK to 22 but still using Volley Mar 14 14:06:40 nitenq: http://stackoverflow.com/a/32075449/1056359 Mar 14 14:06:44 thepoosh: I’m trying to merge my code to a friend project Mar 14 14:06:51 read the link Mar 14 14:09:13 thepoosh: looks fine thanks Mar 14 14:09:19 np Mar 14 14:11:02 Can you get ANRs if your onCreate takes too long? Mar 14 14:11:39 barq: makes sense to me. Mar 14 14:12:05 why wouldn't you get an ANR if anything took too long anywhere on the UI thread. Mar 14 14:12:59 yes Mar 14 14:13:37 is #android really the best place to ask about possibly hardware/deeper android issues? Mar 14 14:13:43 no Mar 14 14:13:58 but still a better place then this channel ;) Mar 14 14:14:05 :/ meh. Mar 14 14:14:32 Is it fine making a game in SurfaceView or is it too slow? Mar 14 14:14:46 id try searching the xda forums but the search isnt working for me for some reason Mar 14 14:14:51 Kake_Fisk, depends what kind of game Mar 14 14:15:10 2D puzzle game with quite static graphics Mar 14 14:15:13 it will be too slow for a fps Mar 14 14:15:30 Kake_Fisk, you want to look into libgdx Mar 14 14:15:50 My game is a bit slow, but I don't know if it's my logic or the drawing Mar 14 14:16:00 It kind of sucks a bit since it is almost completed Mar 14 14:16:42 for 2d drawing i think it should be fine, on what phone are you testing? Mar 14 14:17:26 I have a progressDialog wrapped in a DialogFragment. Clicking outside of the dialog dimisses this. How can I prevent this/ Mar 14 14:17:27 ? Mar 14 14:17:56 eghdk, theres a method for that in Dialog Mar 14 14:18:16 should be covered in the javadoc i forgot its name Mar 14 14:18:35 danijoo: I thought it was setCancelable(false) which I set on the ProgressDialog inside of the DialogFragment, but that didn't work. Mar 14 14:18:41 ktwo: I'm testing on a Honor 7. Worked fine on Xperia Z3 Compact Mar 14 14:18:47 So I thought maybe theres something I call on DialogFragment directly danijoo Mar 14 14:18:48 setCacnelable is for backpress Mar 14 14:19:35 eghdk, there you go: http://developer.android.com/reference/android/app/Dialog.html#setCanceledOnTouchOutside(boolean) Mar 14 14:21:21 Kake_Fisk, i would just try to do the usual things when you have a performance problem, identify the expensive calls by removing them / simplify them, monitor cpu load, log time between/after calls Mar 14 14:21:22 danijoo: Hm. I did setCancelable and it didn't work for preventing backpress either. I'll try that method and let you know danijoo Mar 14 14:21:40 ktwo: Thanks Mar 14 14:22:37 danijoo: Okay, so that method worked for touch outside, but now I want to prevent the back button, but I'm using set cancelable set to false and I'm still able to cancel. Mar 14 14:23:04 you need to set them both then Mar 14 14:23:16 make it not cancelable and not cancelable on outside touch Mar 14 14:23:24 danijoo: I have both set =( Mar 14 14:23:38 show your code then Mar 14 14:25:15 In onCreateDialog() I have ProgressDialog progress = new ProgressDialog(getActivity()); progress.setMessage("..."); progress.setCancelable(false); progress.setCanceledOnTouchOutside(false); return progress; Mar 14 14:25:42 Maybe theres a cancelable method on dialogFragment. Let me look into that Mar 14 14:28:05 You have to set it on the DialogFragment instead of the Dialog Mar 14 14:31:47 pduin: Oh, via getDialog()? Mar 14 14:32:50 one more question, why can’t I use getAssets in a oncreateview class ? Mar 14 14:33:53 this.setCancelable(false) Mar 14 14:34:00 class? you mean method? why can't you use it? Mar 14 14:34:03 what happens? Mar 14 14:34:30 context.getAssets() should be available almost anywhere if im not wrong, in the onCreate for sure Mar 14 14:34:32 eghdk: set cancelable on the fragment instead of the dialog inside the fragment Mar 14 14:34:47 ran into the same problem only a few days ago Mar 14 14:35:26 ktwo: yeah method, InputStream is = getAssets().open("faq.json"); and it says : cannot resolve method getAssets() Mar 14 14:36:06 nitenq, what are you calling getAssets() on? Mar 14 14:36:13 its a method of Resources, not context Mar 14 14:36:30 danijoo: public View onCreateView(LayoutInflater inflater, ViewGroup container, Mar 14 14:36:31 Bundle savedInstanceState) Mar 14 14:36:55 you must call it on the right object.. Mar 14 14:36:59 danijoo: it’s coming from a fragment Mar 14 14:37:06 fragment does not have this method Mar 14 14:37:33 danijoo: oh so I can’t get my json from in my fragment ? Mar 14 14:37:49 you can if you call getAssets() on resources. Mar 14 14:38:26 what do you mean ? Mar 14 14:38:43 did you try with getActivity().getAssets() ? Mar 14 14:39:00 why on Resources? the getAssets() method is implemented for Context (Maybe for resources too) Mar 14 14:39:00 nitenq, getContext().getResources().getAssets() Mar 14 14:39:14 a fragment is not a context Mar 14 14:39:32 and it works as i use it on the activity all the time so getActivity().getAssets() should work as well within a fragment Mar 14 14:39:40 because an activity is a context Mar 14 14:39:43 a fragment is not Mar 14 14:39:50 read the javadocs.. Mar 14 14:40:05 oh ok thanks Mar 14 14:42:14 Good mac irc client? Mar 14 14:47:08 lomex, HexChat not available for Mac? Mar 14 14:59:51 I'm trying Limechat now, lets see if its good. Mar 14 15:01:54 Anyone ever pass Runnable as a paramater to a method kind of as a closure Mar 14 15:02:18 lomex: try textual Mar 14 15:02:29 its limechat based Mar 14 15:02:37 It's not free, is it? Mar 14 15:02:38 drose379, all the time, but not in java ;) Mar 14 15:02:50 Kotlin danijoo ? Mar 14 15:02:54 yup Mar 14 15:03:23 danijoo, is it ok that Im doing it in java Mar 14 15:03:32 Just want to make sure its not bad practice or something Mar 14 15:03:42 For my situation its working awesome Mar 14 15:04:28 if it works.. Mar 14 15:04:43 it's fine Mar 14 15:04:44 i guess there are better ways to do that in java but if it works for you Mar 14 15:04:50 What would be better? Mar 14 15:04:57 dunno. depends on the usecase Mar 14 15:05:01 there's not much better for java Mar 14 15:05:09 Id love to explain the situation but im tight for time rn Mar 14 15:05:15 but since you cant pass methods arround in J you dont have much options Mar 14 15:05:15 but using Function and such from guava is better Mar 14 15:10:43 Ok, thakns guys Mar 14 15:10:53 thanks* Mar 14 15:19:53 Hello all. Mar 14 15:20:32 When a running application is updated, is Application.onCreate called after the upgrade is done? Mar 14 15:21:21 ddobrev, the app will get killed before the update Mar 14 15:21:29 so yes Mar 14 15:21:54 danijoo: I thought so. Thank you. Mar 14 15:22:25 i have a user submitting a crash where my app requests the WRITE_SETTINGS permission. He's running marshmallow on a Nexus Player. I was wondering if that permission is unavailable on Android TV. Mar 14 15:23:45 danijoo: Is there any chance, though, that somehow all activities, services, receivers and so on are killed but the application itself somehow remains alive? Mar 14 15:24:01 not for an update Mar 14 15:26:02 danijoo: I assume that http://stackoverflow.com/a/14337992 is then wrong. Mar 14 15:28:06 Application#onCreate is not called during upgrade, but it's called when the app is launched after the upgrade Mar 14 15:28:26 I think you misunderstand the concept behind this Mar 14 15:28:46 Application.onCreate and SQLiteOpenHelper.onCreate do different things Mar 14 15:29:02 one is called everytime the app starts, the other only once ever for the database creation Mar 14 15:29:38 its not like Application.onCreate is only called on first install, but instead at every launch if the app isnt already active in background Mar 14 15:30:24 ddobrev: http://developer.android.com/training/basics/activity-lifecycle/starting.html Mar 14 15:30:38 danijoo: I understand. Thank you very much for your time. Mar 14 15:30:52 danijoo: I am sorry if my questions seemed stupid. Mar 14 15:31:16 danijoo: It's just that I wanted to make absolutely sure because we have a really strange problem here. Mar 14 15:31:48 danijoo: We initialise some push services in onCreate. There was a bug in that initialisation so I released a new version. Mar 14 15:31:49 np :) Mar 14 15:32:01 think of it like the big brother of Activity.onCreate Mar 14 15:32:23 danijoo: But my testers said they still didn't receive the push notifications. They started to after restarting their devices. Mar 14 15:33:27 ddobrev: Using GCM 3.0+? Mar 14 15:34:34 eghdk: I don't know, actually. We use a separate service which deals with GCM itself internally. Mar 14 15:34:54 eghdk: It only requires Google Play Services to be installed on the phone. Mar 14 15:35:18 ddobrev: Well find out what version you're using and make sure you're using the latest. Mar 14 15:36:50 eghdk: Do you mean that GCM below 3.0 has some problem which might be related? Mar 14 15:50:31 I'm trying to install the canary build of Android Studio for Linux from here: http://mfonville.github.io/android-studio/ but it fails with SHA checksum mismatch error. How do I fix that? Mar 14 15:51:27 whats the reason for using an unofficial repository supersmilers ? Mar 14 15:51:35 just download the package from googles page.. Mar 14 15:51:39 I'm using Ubuntu Mar 14 15:51:46 yes Mar 14 15:52:09 http://tools.android.com/download/studio/canary/latest Mar 14 15:52:18 get the package from here Mar 14 15:52:37 I like to automate full IDE update since the IDE doesn't include the IDE updater Mar 14 15:52:49 thats not true Mar 14 15:52:53 the ide has an updater Mar 14 15:54:28 Yea. but when I switch channel, it just takes me to this page when I click "download" in Android Studio: http://tools.android.com/download/studio/canary/latest Mar 14 15:54:50 yeah if you switch chennell.. Mar 14 15:54:55 but thats also true for the repository Mar 14 15:55:16 if you switch channel there, you still have to apt-get install android-studio-NEWCHANNEL Mar 14 15:56:30 But the repo doesn't download the zip entirely, it just fails at SHA checksum mismatch error Mar 14 15:56:43 so something is wrong with that repo Mar 14 15:58:16 would be nice if we could provide launcher icons for bright / dark backgrounds Mar 14 15:58:24 hard making one that looks nice on all Mar 14 15:58:56 Yea. I thought the same, but Is there a .deb script so I can make my own repo. So its like wget http://tools.android.com/download/studio/canary/latest | sudo unzip "file.zip" /opt? Mar 14 15:59:04 g00s, how would this handle a half white/half black background? :p Mar 14 15:59:09 or a chessboard background Mar 14 15:59:20 :( Mar 14 15:59:37 supersmilers, no idea? not the right channel to discuss how to make repos Mar 14 16:00:04 yea. I came from #ubuntu Mar 14 16:01:12 maybe #ubuntu-dev? Mar 14 16:02:49 nope. #ubuntu-dev is dead Mar 14 16:03:01 no idea. but definitly not #android-dev ;) Mar 14 16:03:44 g00s, screw people with photos as background :p Mar 14 16:04:22 danijoo lol thats what i'm up against now :) icons on those photos look best when they have a bunch of vivid colors Mar 14 16:05:31 03-14 09:01:09.121 26087 26087 E AndroidRuntime: org.joda.time.IllegalInstantException: Cannot parse "2016-03-13T02:30:29Z": Illegal instant due to time zone offset transition (America/Los_Angeles) Mar 14 16:05:34 hmm, wtf is that Mar 14 16:06:01 * pfn tries updating pockethub Mar 14 16:07:04 is it possible to add a action to my toolbar that shows text instead of an icon? Mar 14 16:07:39 i'm using the v7 support toolbar if that is important Mar 14 16:08:05 showAsAction=withText and do not set an icon Mar 14 16:08:59 pfn: this is what I have tried, although it's still not showing :( Mar 14 16:09:07 always Mar 14 16:11:23 Hello Mar 14 16:11:41 I wanna use xamarin to develop an app, can I ask a question here even tho im using xamarni? Mar 14 16:11:43 and no native java? Mar 14 16:12:30 Xatenev: Xamarin is just the wrapper, the Android API-s are all the same. Just ask away. Mar 14 16:12:49 pfn: that's done it - I also needed to set actionMenuTetColor in my theme to be able to see it, thank you! :) Mar 14 16:13:12 Ive been trying to use webview to include a page on my app Mar 14 16:13:15 http://pastebin.com/LAGyHapW Mar 14 16:13:33 But the javascript does not work even tho I set javascriptEnabled = true Mar 14 16:14:09 (The page uses websockets to refresh the content all the time but even the javascript for the navigation does not work) Mar 14 16:15:21 anybody an idea? :p Mar 14 16:16:50 Xatenev: Does javascript not work at all or just not your websockets script specificially? Mar 14 16:17:13 Lomex: It looks like not at all Mar 14 16:17:21 because there is a bootstrap menu on the top right of the page if you nkow that Mar 14 16:17:25 which uses JS to open Mar 14 16:17:30 and nothing happens when I click that Mar 14 16:18:13 danijoo, still here? Ad PreferenceFragment http://developer.android.com/guide/topics/ui/settings.html#Activity Mar 14 16:18:51 as u sugested - it suggest rather to use PreferenceFragment than PreferenceActivity Mar 14 16:19:22 Xatenev: Try this: webView.getSettings().setJavaScriptEnabled(true); Mar 14 16:19:32 few pages below - it says Using Preference Header http://developer.android.com/guide/topics/ui/settings.html#PreferenceHeaders "In rare cases, you might want to design" Mar 14 16:19:41 Xatenev: Thats how I enabled it in my App and it works fine. Mar 14 16:19:54 I try Mar 14 16:20:04 Android.Webkit.WebView has no definition for getSettings() Mar 14 16:20:12 danijoo, which leads me in huge loop to the begining - which says - use PreferenceActivity Mar 14 16:20:24 on compile Mar 14 16:20:49 bolovanos, what? Mar 14 16:21:16 Xatenev: http://developer.android.com/reference/android/webkit/WebView.html#getSettings() Mar 14 16:21:40 danijoo, if I understand it well - in order to use preference headers - one must extend PreferenceActivity Mar 14 16:22:01 webView.getSettings().setJavaScriptEnabled (true); Mar 14 16:22:11 exactly as written in the docs Mar 14 16:22:13 Hi guys, can I use raspberry pi (since i am interested in linux) for playing and learning with android host accessory protocol? Mar 14 16:22:14 oo Mar 14 16:22:22 bolovanos, havent used this yet, sorry Mar 14 16:22:28 my pref screens are usually small :/ Mar 14 16:22:37 or is there some board which is more rec recommended or some reasons Mar 14 16:22:40 danijoo, argh - not in my case Mar 14 16:22:41 ok Mar 14 16:22:55 back on trees Mar 14 16:23:07 Lomex: This is pretty weird :O Mar 14 16:23:56 Xatenev: What Android SDK are you using? You are using FindViewById() which shouldn't exist at all. Mar 14 16:24:43 Lomex: He means "findViewById", he uses C# instead of Java. Mar 14 16:24:58 Does C# use a different API? Mar 14 16:25:06 I dont know :( Mar 14 16:25:08 Because he can't use getSettings() on a WebView Mar 14 16:25:14 Lomex: No, just a different casing. Mar 14 16:25:21 it's xamarin, they go with .net conventions Mar 14 16:25:25 "FindViewById" instead of "findViewById". Mar 14 16:25:26 maybe its GetSettings :D wait Mar 14 16:25:28 Is it GetSettings() then maybe? Mar 14 16:25:30 it might just be Settings rather than getSettings Mar 14 16:25:36 Oh Mar 14 16:25:38 Hi guys, can I use raspberry pi (since i am interested in linuxfor playing and learning with android host accessory protocol? or is there some board which is more rec recommended or some reasons Mar 14 16:25:47 Xatenev: Can't help with C#/.NET Mar 14 16:25:49 Nope theres no GetSettings Mar 14 16:25:52 Yes, it's "Settings". Mar 14 16:25:54 quit using xamarin Mar 14 16:26:00 Yea I got Settings Mar 14 16:26:09 pfn: Why would anyone use it? Mar 14 16:26:13 webView.Settings.JavaScriptEnabled = true but it doesnt seem to have any effect Mar 14 16:26:17 I heard its cool :O Mar 14 16:26:22 Im absolutely new to that app stuff xd Mar 14 16:26:27 so you recommend better switching to java yes? Mar 14 16:26:31 just use java Mar 14 16:26:35 unless you *know* .net Mar 14 16:26:38 with android studio? Mar 14 16:26:41 Yes Mar 14 16:27:06 what is this phonegap stuff? Mar 14 16:27:16 shit or good? :O Mar 14 16:27:22 java only Mar 14 16:27:23 or gtfo Mar 14 16:27:24 It's a completely different topic. Mar 14 16:27:27 oh okay Mar 14 16:27:30 pfn: :D Mar 14 16:27:43 Okay I will just remove all what I Done until now and start new with java then^^ Mar 14 16:27:44 thanks Mar 14 16:27:46 Xatenev: If you are new to apps I advice you to start with a native system. Mar 14 16:27:56 yes Mar 14 16:28:15 I felt like that while fiddling around with the xamarin stuff already.. :O Mar 14 16:28:45 but with a native java app I can just include a page on my app no matter what kind of JS it uses yea? Mar 14 16:28:46 And with PhoneGap you pretty much write websites that run in a "webview" and have access to some native features. Mar 14 16:28:55 Pretty much yes Mar 14 16:28:55 okay Mar 14 16:29:01 thanks =) Mar 14 16:29:05 good channel :P Mar 14 16:29:42 Xatenev: Different devices can have different implementations of the WebView and therefore a different support for JavaScript Mar 14 16:29:47 Yes, this is a great channel, one of the few in which an answer is received almost immediately. Mar 14 16:30:10 ddobrev: :) Mar 14 16:30:17 Lomex: different ANDROId devices? Mar 14 16:30:22 Lomex: shouldnt this be a standardized feature? :O Mar 14 16:30:39 meh, seems like thread synchronization in N is all fucked up Mar 14 16:30:46 Lomex: or do you mean by different devices = devices with different android versions? Mar 14 16:30:52 Xatenev: Well different android versions to be more specific. Mar 14 16:30:55 okay:) Mar 14 16:31:08 Xatenev: Android < 4.4 used WebKit, Android >= 4.4 uses Chromium Mar 14 16:31:32 why did they switch when chrome still uses webkit? Mar 14 16:32:26 Xatenev: Good read on the different versions: http://www.quirksmode.org/blog/archives/2015/02/android_webview.html Mar 14 16:33:55 Xatenev: I can't answer you that question in detail. As far as I know is Chrome not using Webkit but a fork of it. Mar 14 16:34:39 okey Mar 14 16:34:55 thanks :) I will come back when im home, gonna be regular here now :p Mar 14 16:34:59 c ya Mar 14 16:37:46 pfn holy shit, serious ? Mar 14 16:37:55 Hi guys, can I use raspberry pi (since i am interested in linuxfor playing and learning with android host accessory protocol? or is there some board which is more rec recommended or some reasons Mar 14 16:38:12 pranav you can look at dragonboard Mar 14 16:38:14 g00s, dunno, getting illegal monitor states even though my code is legit Mar 14 16:38:21 g00s, it's a preview, to be expected, I suppose Mar 14 16:44:53 Anyone know how to add a watcher to a variable in AS? I have a member of a class I want to watch (the type of the member is List), but when I try to add it to the "Watches" panel I can't set that member. Mar 14 16:46:53 pranav: you can look at the Sparkfun IOIO, which is arduino based Mar 14 16:48:31 nice, f.lux beta for android Mar 14 16:48:50 s73v3r is the IOIO still in production ? Mar 14 16:49:08 i don’t know. i was just about to check Mar 14 16:49:22 they have it in stock Mar 14 16:49:29 https://www.sparkfun.com/products/12633 Mar 14 16:49:43 the book, however, is not Mar 14 16:50:17 And I was wrong; it’s not Arduino based. It’s running a PIC24 Mar 14 16:55:14 eghdk, http://i.imgur.com/Z930mdH.png Mar 14 16:55:57 s73v3r another organization article https://medium.com/@msandin/strategies-for-organizing-code-2c9d690b6f33 Mar 14 16:58:04 people are finally starting to think about this Mar 14 17:00:20 g00s, whats your opinion on seperating logic from UI. For example I have a class Account and I have an AccountView Mar 14 17:00:38 a long time ago, there was a book for c++ "physical design" http://www.amazon.com/Large-Scale-Software-Design-John-Lakos/dp/0201633620 Mar 14 17:00:39 do you go by one ui and one ¨logic¨ package on top of your package model? Mar 14 17:01:09 or one package ´account´ with ui and model logic Mar 14 17:01:18 danijoo i'm trying this atm https://medium.com/the-engineering-team/package-by-features-not-layers-2d076df1964d Mar 14 17:01:39 so that would probably be the latter Mar 14 17:03:04 g00s, going with the image on the top, where would you put a model class that gets loaded by the RestApi (network), is used as filter in the SearchRelativeLayout and shown in RegisterActivity? Mar 14 17:03:31 thats usually my biggest problem. classes that are used thoughout my whole code Mar 14 17:04:51 hmm Mar 14 17:05:07 as concrete example I currently make an app for a game Mar 14 17:05:17 that shows playable characters Mar 14 17:05:33 they are stored in a database, can be displayed in the CharacterOverviewActivity Mar 14 17:06:15 but theres also a listactivity for them and another activity thats completly unrelated to both of them and show an icon of that characters Mar 14 17:06:18 Hello, how do i enable init.d in android 5.02 stock rom samsung? Mar 14 17:06:49 I think about putting the model to the database logic, but then again its seperated from the view logic that is full of code using that model class Mar 14 17:07:47 killall, wrong channel. read topic Mar 14 17:07:53 s73v3r what would you do? i'm not sure Mar 14 17:08:16 do about what? Mar 14 17:08:51 im developing an app that needs init.d :) Mar 14 17:08:58 no Mar 14 17:10:14 Wait, you can use init.d on stock android? Mar 14 17:10:26 danijoo i'll have to think about it, not sure. i'll probably have the same problem Mar 14 17:10:29 its those little classes for me that let my code become spaghetti over time :/ Mar 14 17:10:43 Activities and stuff like that are usually organized easily Mar 14 17:11:03 but then are are classes that fit everywhere and nowhere at the same time :/ Mar 14 17:11:22 Core Mar 14 17:12:38 mh yeah. Mar 14 17:12:41 maybe a core package Mar 14 17:13:08 but that sounds a bit like a garbage package to put in everything that dont fit others :p Mar 14 17:15:37 i don't really like java's package semantics Mar 14 17:16:01 there is no relationship between x and x.y beside whats in your head Mar 14 17:16:14 i think kotlin improved on this area, but haven't looked lately Mar 14 17:16:20 I think for me its just my spaghetti code :s Mar 14 17:16:27 ^^ ´ Mar 14 17:17:33 I really like the ones you posted tough.. Might try that out Mar 14 17:18:30 g00s, i dont see how kotlin improves this? Mar 14 17:18:55 danijoo doesn't it impose some scoping rules between parent / child packages Mar 14 17:19:12 i dunno, its been maybe 6mos since i looked Mar 14 17:19:12 in fact I see even more spaghetti here because you start abusing extension functions to create methods in package A that belong to a class in Package B Mar 14 17:19:17 ^^' Mar 14 17:20:22 like `fun ImageView.setAccountIcon(account: Account) { setImageDrawable(account.getImage() } ` Mar 14 17:21:33 this somewhat belongs to account because without account you dont need that function. But its a function of ImageView so you might want it to be as a shared resource Mar 14 17:22:46 or if you only need it at one place it might even end in the AccountActivity package Mar 14 17:23:01 s73v3r: yes, but my embedded device needs linux drivers for fnctionality. in that case which is recommended. thanks.. Mar 14 17:23:31 *functionality Mar 14 17:24:03 pranav i mentioned the dragonboard ... Mar 14 17:24:25 you can look at odroid but their support seems meh Mar 14 17:33:33 google used to have an official port to beagle i think Mar 14 17:34:18 once once JBQ left for yahoo, that pretty much ended Mar 14 17:34:28 but they should have something, for fk sake, like RPi Mar 14 17:50:47 Hey guys.... Yesterday I was forced to update some of my project dependencies and SDK. I went from compiledSdkVersion 22 to 23 and then I started having all kinds of issues ... soo eventually I was forced to use MultiDex which I hear is a real deal breaker. Anyway the app works on any 5.0+ device but seems to crash instantly on any lower version devices with this error -> java.lang.NoClassDefFoundError: com.google.android.gms.in Mar 14 17:54:10 probably because theres no such thing *.in Mar 14 17:55:14 orbyt_: Hmm sorry I do not get that ? Mar 14 17:55:20 what part Mar 14 17:55:26 are you proguarding? Mar 14 17:55:42 Did you properly set up multidex support in your Application subclass? Mar 14 17:56:42 I would prefer NOT using multiDex at all ! BUT If I have to ... I have done no setup whatsoever .. this is actually the first time ive heard of setting it up actually Mar 14 17:56:55 Hey folks, it says here https://www.udacity.com/course/viewer#!/c-ud853/l-1395568821/m-1647298624 that I will have MainActivityFragment.java, but there wasn't one in my project folder. Is there a template I can download or do I need to create an empty one from scratch? Mar 14 17:56:58 danijoo: I am not proGuarding no Mar 14 17:57:09 cart_man, if you do, you might not need multidex Mar 14 17:58:03 danijoo: ghez this is a real headache seriously... Mar 14 17:58:18 danijoo: Hows the learning curve on ProGuard ? Mar 14 17:58:25 but that you get a classnotfoundexception indicates your MultiDex isnt setup correctly :/ Mar 14 17:58:36 http://developer.android.com/tools/building/multidex.html#mdex-gradle Mar 14 17:58:53 cart_man, the learning curve is like ´impossible to get in, but once you got it...´ Mar 14 17:59:24 I saw people add this to every "extends activity" class -> http://pastebin.com/ZuEtmdKn Mar 14 17:59:50 that belongs to the application class, not activity Mar 14 18:00:30 danijoo: Ughh... SOo I build this app right... takes me quit some time and finally everything is working well... 1 simple step to implement for the last milestone on the app and THIS implementation requires an update... BAM FK YOU MAN NO WORKING APP for you ! And all this on release date Mar 14 18:02:09 danijoo: I would LOVE to avoid this learning curve I must be honest Mar 14 18:02:35 implementing multidex is not really hard. just follow what SimonVT posted. Its actually just replacing the Application class with MultidexApplication and 2 lines in build.gradle Mar 14 18:03:11 If you refuse to read the documentation, the learning curve will often be steep Mar 14 18:03:53 anybody can you please have a quick look at my previous question? Mar 14 18:03:56 thanks Mar 14 18:04:13 No I will read it haha... its just the final push for this app was a mountain and now this.. ANyway I will get into the Docs quickly... Mar 14 18:04:45 danijoo: SimonVT : Although is there something that can have unnecessary conflicts in my grade -> http://pastebin.com/kV91rN4Z Mar 14 18:05:32 Never use different versions of the support libraries Mar 14 18:05:40 im not sure if this is a problem but different supp versions? Mar 14 18:05:43 yeah Mar 14 18:05:48 that looks wrong to me Mar 14 18:09:01 ok but the one is for recyclerview etc? Mar 14 18:09:13 still should be same version Mar 14 18:10:02 other one is for something else... soo the question is .. if I have something like compile 'com.google.android.gms:play-services:8.4.0' do I really need to specifically include the rest or are they included already with this include Mar 14 18:11:06 could someone please edit that file to show me what exactly would have to change to the same version ? Mar 14 18:11:22 The support libraries.. com.android.support Mar 14 18:11:59 is there something built in to get OAuth2 tokens or do I need an external lib for that? Mar 14 18:24:36 Is there any difference if I target my app for N then backport it to 5.0.1+? Mar 14 18:26:38 AnyOne? Mar 14 18:28:03 I'm new to Android Dev Mar 14 18:29:10 Well, for one, almost no one has an N device right now Mar 14 18:29:32 although, I have no idea what you mean by “difference" Mar 14 18:43:20 SimonVT: So it seems to me that to enable MultiDex one just add package="com.example.android.multidex.myapplication"> and android:name="android.support.multidex.MultiDexApplication"> to the manifest file ? This is without optimization Mar 14 19:04:21 file:/ Uris https://commonsware.com/blog/2016/03/14/psa-file-scheme-ban-n-developer-preview.html Mar 14 19:04:38 no, just Mar 14 19:04:40 no package Mar 14 19:04:41 read the docs Mar 14 19:04:45 Hi there. I have to use a Jenks Natural Breaks in my app, Do you suggest some library ? I found something on gistools, but the is no examples. I'v found a JS library that does what I want to, is there some way to execute JS inside android without a WebView. Something like Rhino Mar 14 19:05:00 use rhino Mar 14 19:06:04 pfn: Does it works all right on Android ? Mar 14 19:06:08 yes Mar 14 19:08:32 "Just tried split-screen on Android N preview. It introduces new gestures while killing some old ones. Edge swipes are clearly a no go now…" Mar 14 19:08:40 hopefully thats just a bug :) Mar 14 19:08:47 WHat's the best way to remove an item from my list in getView? I have a condition in which case where I want to remove an item from the list, but removing it from the List<> directly gives me an indexoutofbounds exception. I just need a quick way to hide one list item Mar 14 19:09:04 g00s, no, the gesture just doesn't really work from the split Mar 14 19:09:15 think of it logically Mar 14 19:09:36 pfn so when you try to swip from edge in split, did they change that to do something ? Mar 14 19:09:38 you can still edge-swipe, but it's painful due to the split screen nature Mar 14 19:09:46 hm Mar 14 19:09:55 install N preview and see Mar 14 19:09:57 it's pretty obvious :P Mar 14 19:10:06 you drag the split to adjust the size, of course Mar 14 19:10:37 pfn: Ok so the package name must remain the same but only must be added to the manifest? Mar 14 19:10:44 cart_man, read the docs Mar 14 19:10:58 they could do something like requiring 2 points down to move the divider - like thumb and index finger Mar 14 19:11:03 im trying ... this is what I am working from -> http://developer.android.com/tools/building/multidex.html#mdex-gradle Mar 14 19:11:25 it's quite clear then Mar 14 19:11:55 the problem is, the edge swipe has been something they’ve pushed for a while Mar 14 19:12:12 in my drawer layout, i have right and left side drawers Mar 14 19:12:24 generally there are other ways to open the drawer, but it’s still a loss Mar 14 19:12:41 i wonder if this means we go back to SlidingPaneLayout like gmail Mar 14 19:12:55 since you can swipe that whole detail pane anywhere Mar 14 19:13:19 gmail isn't a sliding pane, hu Mar 14 19:13:20 h Mar 14 19:13:31 pfn it is on tablet Mar 14 19:13:41 you don't use your n9 much do you pfn :) Mar 14 19:13:51 I use inbox, not gmail Mar 14 19:13:59 and it's not a sliding pane Mar 14 19:14:12 sure looks like it to me Mar 14 19:14:20 but maybe gmail is Mar 14 19:14:24 Hi. I wanted to ask if it better to target for N then back port the app to 5.0.1+? Mar 14 19:14:24 Is there a version of CopyOnWriteArrayList that doesn't allow duplicates? Mar 14 19:15:02 supersmilers: that was answered Mar 14 19:15:17 I wasn't here that answer Mar 14 19:15:41 the answer is that almost nobody has an N device Mar 14 19:16:31 if you're an indie developer, develop to what you have first Mar 14 19:16:36 then expand the version ranges Mar 14 19:17:19 I just wanted to ensure smooth transition from 5.0.1+ to MM, and N. However, my phone is still on 5.1.1 and soon 6.0.1 Mar 14 19:17:30 especially if you're a hobbyist whose app will not see any real outsider use Mar 14 19:17:34 don’t worry about it Mar 14 19:17:49 Ok. Mar 14 19:18:34 I just going to write a reddit app with proper API in place Mar 14 19:18:55 pfn: adding does not seem to work.. ive tried what the docs are saying ...I am missing something Mar 14 19:18:59 what does that mean? Mar 14 19:19:08 cart_man, stack trace or gtfo Mar 14 19:19:26 When did Android Studio get fancy JSON support? Mar 14 19:19:27 I'm loving it Mar 14 19:20:26 does not work is never a description of a problem Mar 14 19:20:40 I'm using Android Studio IDE 2.1 Mar 14 19:20:54 so many people want to write reddit apps Mar 14 19:21:00 * pfn just uses baconreader and calls it a day Mar 14 19:21:03 doesn’t matter, other than it being beta and potentially buggy Mar 14 19:21:35 yeah, I would advise against reddit apps unless you truly have something unique Mar 14 19:21:44 Most reddit apps are taken down for API violation Mar 14 19:21:51 baconreader hasn't Mar 14 19:21:53 * pfn shrugs Mar 14 19:21:58 no they aren't Mar 14 19:22:01 then again, there are so many irc clients... Mar 14 19:22:14 Slide did Mar 14 19:22:54 that’s far from most Mar 14 19:23:11 I'm going for more native material design style than most reddit apps Mar 14 19:23:19 most already have that, too Mar 14 19:23:41 and material design is something you should apply as makes sense, not feel you need to grab all of it Mar 14 19:24:13 Oh, well. I just want to write a app. I thought Reddit would work Mar 14 19:24:55 pfn: -> http://pastebin.com/jjYpcbeZ Mar 14 19:24:57 I wouldn’t tell you expressly not to do it, but probably think a little harder Mar 14 19:25:46 I view Material Design as great rules that people who aren't designers can follow fairly diligently to create fairly well designed apps. If you are a designer it's a great set of rules that you can break as you feel like it Mar 14 19:26:15 They're more like guidelines anyway... Mar 14 19:26:22 i just get fed up with all the #NEXUS_WARRIOR “Material Design or Bust” idiots Mar 14 19:26:41 orbyt_ I don't think so, if they were Google would call them their design guidelines Mar 14 19:26:42 Oh wait... Mar 14 19:26:43 Maybe. More unique something? There's a lot of app for something. I'm more of UX designer than a programmer Mar 14 19:26:52 ;) Mar 14 19:27:31 It's all about the features and looks for me Mar 14 19:27:34 That said, skewing toward the design guidelines tends to make for better UX from my experience Mar 14 19:27:52 i mean, you can always try taking something that has an app that doesn’t work well, or doesn’t have a nice design. I’d just avoid reddit clients as there’s already too many of them Mar 14 19:28:32 supersmilers: What's your goal, to make it big or just to build something to prove your experience? If it's for the experience I don't see anything wrong with a reddit client Mar 14 19:28:36 Just don't expect it to take off Mar 14 19:29:01 That said, there's going to be a lot going on with a reddit client if you want it to be fully functional, it won't be a one week task Mar 14 19:30:33 My goal, I need to start something so I can base my future products off it, like medical. I'm a little fascinated with AI, Apps, OS, medical robotics Mar 14 19:32:13 That’s a large swath of things for just one person Mar 14 19:32:31 Yea. I like to think big Mar 14 19:33:57 I thought I'd start from apps, then move on to OS and Medical Robotics controlled by users Mar 14 19:35:14 Medical robots itself is a huge area, covering a large amount of different things Mar 14 19:35:43 Mine is more specifically, implanted robotics Mar 14 19:36:06 pfn: Mar 14 19:36:09 Like blood vessels replacements Mar 14 19:36:41 If you're looking into that, straight C may be a better focus Mar 14 19:37:16 Although I'm not a medical embedded systems expert, I don't know what languages are common there Mar 14 19:38:04 konk3r: C / Assembler and lately C++ on ARM and some MCUs Mar 14 19:38:07 Having like nerve-blood vessel hybrid replacement was a cool idea for me. Mar 14 19:39:14 cart_man: that sounds exactly inline with what I've heard, although I've also heard that assembly is being largely faded out Mar 14 19:39:23 Well, in terms of working directly with it Mar 14 19:39:58 konk3r: Yea you get some old school people who go ape shit about it but its because they refuse to move forward ... I work with 2 of them -.- Mar 14 19:40:07 Hahaha Mar 14 19:40:31 IMO you should work with the highest level language your hardware can support without any hiccups Mar 14 19:40:55 Human readable code = less mistakes Mar 14 19:40:58 I mean, almost no one thought of robotic implants yet without the idea of having something like robotic hands Mar 14 19:41:25 I like people as organic as possible Mar 14 19:44:00 Woah. It says 97% of devices are stuck on Android 4.0.3 Mar 14 19:44:28 konk3r: True but as soon as you go timing specific you want to avoid using any OS especially on older ARM and MCU(which can run OSes) so therefore higher level languages(OOP) works out pretty bad. I know Classes sucks up allot or memory Mar 14 19:44:45 I meant which CANT` run OSes Mar 14 19:45:33 Wouldn't medical robotics more app or OS? Mar 14 19:45:34 Like I said, the highest your hardware can support ;) Mar 14 19:45:41 Also, "without any hiccups" completely depends on what you're doing Mar 14 19:45:56 Medical equipment has a much lower tolerance than most other development Mar 14 19:46:27 Still, that ends up with plain old C being a much better option than assembly in most cases Mar 14 19:46:28 If a patient have problems with my implants, then I'm in trouble Mar 14 19:46:43 Exactly Mar 14 19:46:46 supersmilers: lol yea... Mar 14 19:47:53 If I'm bound to make it real, I should patent it before anyone sue me Mar 14 19:49:27 Oh well, before I go to medical robotics, what should I start before going there Mar 14 19:50:38 supersmilers: How much dev experience do you have? Mar 14 19:52:00 I know basic Java, HTML5, C++, CSS3... Mar 14 19:52:01 Hello everyone, How do i update sqlite in android when i don’t know the ID Mar 14 19:52:19 spykins: add the info you know to the where statement Mar 14 19:52:27 can i see the load on each core from adb? Mar 14 19:52:56 where name = 'my_name' Mar 14 19:54:22 So, I'm more of UX designer than programmer Mar 14 19:54:26 So if something like CleverTap demands that my application should = BUT MultiDex demands it to be android:name="android.support.multidex.MultiDexApplication" > ...what does one do ? Will CleverTap still work ?> Mar 14 19:54:43 supersmilers, around 97% represents API 15 or lower: <*****> 8=100%, 10=100%, 15=97%, 16=95%, 17=87%, 18=76%, 19=73%, 21=38%, 22=22%, 23=2% Mar 14 19:54:55 konk3r: I am getting an error that it doesn’t exist Mar 14 19:55:14 If you load all objects from your database does it load? Mar 14 19:55:42 Yes Mar 14 19:56:27 cart_man, "demands": https://developer.android.com/reference/android/support/multidex/MultiDexApplication.html Mar 14 19:56:39 Sometimes, I ways thought of something, but someone else already done it Mar 14 19:56:45 konk3r: http://codepad.org/a9J1EmfP Mar 14 19:56:57 Am i doing anything wrong? Mar 14 19:57:51 I'm not that familiar with straight SQL, I'd try doing it with Android SQL query syntax Mar 14 19:58:25 oope Mar 14 19:59:00 It works when i have this DbConfig.COLUMN_EXCHANGE_RATE.getRealName() + " = " + Mar 14 19:59:01 newValue + " WHERE " + DbConfig.COLUMN_ID.getRealName() + " = " + 0; Mar 14 19:59:16 I was like leaning on whether it's Android or Windows UWA/UWP. Mar 14 20:00:54 So, I'm out of organic ideas for an app Mar 14 20:01:50 ideas are cheap, implementation is hard Mar 14 20:03:11 Yea. I got all good ideas but it's depressing that it's almost impossible to make them real, since I rely on people a lot. Mar 14 20:03:19 SimonVT: I see i see... Ok soo now that you have destroyed my argument... mind telling me where I can @Override the applications attachBaseContext class. Does not seem to do anything if I put it in MainActivity . Probably a stupid question I know Mar 14 20:04:45 It tells you to override Application#attachBaseContext Mar 14 20:04:52 Which you do in an Application subclass Mar 14 20:08:22 So, I'm stuck Mar 14 20:08:37 so i have 6 buttons, 3 rows, 2 buttons in each, so say i want to hide 3 of the buttons, theres no issue with making them with invisble but is it possible for the remaining buttons to move into the hidden spaces, if that makes sense?? Mar 14 20:11:59 SimonVT: -> http://pastebin.com/51nSh1mq Mar 14 20:12:46 You got it Mar 14 20:13:19 Amnyone ever had an AsyncTask fail to execute? Mar 14 20:14:13 Hey guys just curious what your approach to doing a textswitcher but with 2 or even 3 words on display would be? I've been racking my head with this for over a week. Mar 14 20:15:05 I've created two textviews. When the first one animates, the second one takes it's place and a third takes the second views place so the effect is words sliding across the screen. Mar 14 20:15:22 but I wasn't sure if a viewpager would be more ideal to use for this... Mar 14 20:15:51 resizing this at runtime is like a pain...I have to resize the textviews based on the font sizes and make sure it looks the same on both as the user is doing it Mar 14 20:16:22 I've got an Rx question: Is there anything out of the box that conditionally lets me split an observable into two paths, or will I need to put an if statement in my subscription? Mar 14 20:16:45 SimonVT: So I just instantiate that in my Main and Im done? Mar 14 20:18:23 No.. Mar 14 20:18:26 Too much hand holding Mar 14 20:18:31 Google it Mar 14 20:18:31 too much Mar 14 20:19:36 lol ok.. I do not usually ask so many question its just that i am in deep deep shit as is Mar 14 20:22:52 Google should have enough on it, I implemented it a year ago and it wasn't too difficult Mar 14 20:23:30 Anyway, how do I extract info from HTML site like in Slide or other apps. Mar 14 20:23:50 In card style Mar 14 20:26:38 Anyone know how? Mar 14 20:28:11 Like RSS feed or something Mar 14 20:28:37 http://stackoverflow.com/questions/2423498/how-to-get-the-html-source-of-a-page-from-a-html-link-in-android Mar 14 20:32:30 It's funny, in Android, there's no official RSS layout view unlike Windows phone AppStudio, which already allows RSS feed Mar 14 20:32:40 supersmilers: there are ways to scrape a site, but it’s generally not a good thing to do Mar 14 20:32:59 you’re gonna have to link the docs on that one. I doubt there’s specifically an RSS widget Mar 14 20:33:17 on Android, it’d just be a ListView or RecyclerView Mar 14 20:33:24 Slide doesnt use RSS lol Mar 14 20:34:15 Take a look through the code: https://github.com/ccrama/Slide Mar 14 20:34:18 Yea. I wanted to do native Android app. Where I already made a RSS like app for WP via AppStudio website Mar 14 20:34:42 So port that app to Android Mar 14 20:35:34 How, I thought it's impossible to port WP app to android Mar 14 20:36:13 i mean write that same app for Android Mar 14 20:37:41 there's rss libraries available, i'm using one Mar 14 20:38:15 yup. and if there weren’t, RSS isn’t terribly difficult to parse Mar 14 20:49:59 That's odd, my old robotics team's webite, the about me section, isn't parsed Mar 14 20:50:37 I guess I have to reference some how. I'm making a app for them Mar 14 20:55:33 I want to have debug builds made by a variety of developers all signed by the same key. Someone here (Mavrik, maybe) suggested simply checking a shared debug key into git a while back. That sounds good. Mar 14 20:56:01 I’m getting around to doing that now and wondering whether anyone understands in what circumstances the play store will refuse a key. Mar 14 20:56:39 1.) Don't publish with debug keys your developers have. Mar 14 20:56:41 I know it refuses a key that expires earlier than 10000 days from the upload: is there anything else I should do to my key to signify that it is a ‘debug’ key? Mar 14 20:56:49 2.) It'll refuse it if it's not valid for long enough time. Mar 14 20:57:06 Yeah, I want to make sure no .apk gets leaked and confused for something truly signed by the company Mar 14 20:57:27 After you publish first version it won't really matter. Mar 14 20:57:39 I made a key good for only 365 days. Mar 14 20:59:13 I guess the expiration date should be enough to prevent the play store from accepting it. Google’s docs say “You can run and debug an app signed in debug mode on the emulator and on devices connected to your development machine through USB, but you cannot distribute an app signed in debug mode.” but don’t specify why exactly. Probably there’s nothing else to do aside from making it short-lived. Mar 14 20:59:56 That has nothing to do with the signing key, just the debuggable flag in the APK Mar 14 21:00:16 Is there a version of CopyOnWriteArrayList that doesn't allow duplicates? Mar 14 21:00:49 oh, I see. Mar 14 21:01:31 say i have two buttons, button 1 & 2, side by side, i want for one scenario to display both buttons, for another scenario, i may only want 1 button displayed, but if i want only button 2 displayed i want it displayed in place of button 1. now i have no issue with creating page each time thru code but its time consuming, is is possible to hide button 1 and display button 2 in its place, does that even make sense lol? Mar 14 21:02:14 Thanks Mar 14 21:03:10 Yes krippykripkrip Mar 14 21:03:24 button.setVisibility(View.GONE) Mar 14 21:03:56 but does that just hide the button, will the button to the right just stay where it is? Mar 14 21:04:30 It might move around, especially in a RelativeLayout Mar 14 21:04:38 try View.INVISIBLE Mar 14 21:04:44 that will keep it where it is and just hude it Mar 14 21:04:48 hide* Mar 14 21:05:28 i dont want it to stay where it is, i want it to move over to where the button is hidden so i don’t have a blank space Mar 14 21:05:56 You’re gonn ahave to play with it but I’m pretty sure that you want to make your button GONE Mar 14 21:06:48 k, i’ll try, thx Mar 14 21:13:57 lame, if you have an error in your AndroidManifest.XML, it opens up the generated one - so when you edit it, you're editing the wrong one Mar 14 21:14:16 kept wondering why @mipmap was being changed to @drawable :D Mar 14 21:15:33 how can I set the text color of a spinner when it's not opened? Mar 14 21:22:33 This is interesting... Mar 14 21:23:00 People using keywords in their reviews for you on Google Play push up your rankings for those keywords on Google Play Mar 14 21:24:06 so my bot review army can charge more for using keywords in our spam reviews? Mar 14 21:48:30 Ologn: very interesting. So, they have learnt literally nothing from Pagerank. Mar 14 21:51:19 well, they certainly do but they don't allow user to use it, see how awful are the results of a search on the play store Mar 14 21:51:44 man when will Android Device Monitor go away Mar 14 21:52:02 why must I fire up a neutered version of eclipse that ruins my AS instance's adb integration Mar 14 21:52:16 idk but i'm still using ddms for half of the things because android monitor tracing is not that great Mar 14 21:52:23 for allocation it's coolos though Mar 14 21:52:58 also i have a bug with android monitor looping with GC... https://code.google.com/p/android/issues/detail?id=202943 Mar 14 21:53:50 missingno yeah that thing is laaaame ... Mar 14 21:53:59 should have been fixed years ago Mar 14 21:54:18 just re-enable when your done with adm? Not a big deal Mar 14 21:54:45 usually I end up restarting AS Mar 14 21:54:50 sure orbyt_ Mar 14 21:55:04 missingno: Tools->Android->Recheck enable adb integration Mar 14 21:55:12 it just creeped me out for half an hour, i thought i had a big issue with thread non terminating lol Mar 14 21:55:42 justJanne, https://play.google.com/store/search?q=svelte Mar 14 21:56:00 justJanne, see #16, Stopwatch? Mar 14 21:56:27 justJanne, look through the blurb etc. for the word svelte. Not there, not in the app either (I wrote it). Only in the one review with text. Mar 14 21:56:31 eh, no? Mar 14 21:56:44 none of the apps have the word svelte for me, except the first 3 or so Mar 14 21:57:02 the rest are all random arabic apps, or minecraft clones. Mar 14 21:57:04 Right. Only the review for Stopwatch has the word svelte. Mar 14 21:57:25 I'm only looking at that one app, really, because it's my app Mar 14 21:57:41 this is the top #16 for the search you linked for me: https://play.google.com/store/apps/details?id=com.wasafat.diet.mouad Mar 14 21:58:09 wait, that was #15, #16 is https://play.google.com/store/apps/details?id=com.farawlah.diet Mar 14 21:58:17 justJanne, are you in a non-English speaking country? Mar 14 21:58:21 Ologn: yup. Mar 14 21:58:24 Germany. Mar 14 21:58:44 Play Store search is 100% useless here. Mar 14 21:58:53 search for "minecraft", get skype. Mar 14 21:58:55 justJanne, oh, I don't publish in Germany because my German translation won't be done until I get a little more money Mar 14 21:59:08 Ologn: well, then publish the english version maybe? Mar 14 21:59:10 https://play.google.com/store/search?q=sdfsdfsdf&c=apps << i see no mention on the second app :D Mar 14 21:59:13 justJanne: you say that as if it’s not the same everywhere else. Mar 14 21:59:14 lots of people speak english. Mar 14 21:59:28 s73v3r: well, maybe it does work on the Google campus, Mar 14 21:59:32 justJanne, well I'll have the German translation in hand soon enough so I may as well wait Mar 14 21:59:33 so Googlers never noticed Mar 14 21:59:51 Ologn: https://jakubmarian.com/wp-content/uploads/2014/05/english-eu.jpg Mar 14 22:00:25 especially netherlands, sweden, denmark, finland, austria (being 70%+) might be of interest for you. Mar 14 22:00:34 I'm #4 in the US for "buch" Mar 14 22:00:47 For Kostenlos bcher lesen Mar 14 22:01:14 darn.. I adjusted my Validators and now 66% of the tests are borked.. Mar 14 22:01:15 I have apps translated into Dutch, Swedish, Danish, Finnish and German Mar 14 22:01:33 well, you should have focused more on french, spanish, italian ;P Mar 14 22:01:55 I thought Spain is broke so no one buys apps there D: .. jk jk Mar 14 22:01:57 fun fact: from #16 on the search for "Buch" only returns arabic results in the play store for me, too. Mar 14 22:02:24 it’s like the play store decided to randomly only give me 15 german or english apps per search, and arabic apps the rest of the time Mar 14 22:02:48 even outranking Google apps. Mar 14 22:03:01 divStar, wrong. nobody buys apps on android at all ;) Mar 14 22:03:08 worldwide Mar 14 22:03:19 you are so wrong danijoo D: Mar 14 22:03:33 I bought some apps myself.. though somehow PowerAmp became broken on my BB Priv Mar 14 22:03:45 it keeps stuttering to no end :/ while Google Music doesn't Mar 14 22:03:53 well, danijoo, if you want to make the point of "apps are licensed, not bought", Mar 14 22:04:01 that doesn’t hold true in EU Mar 14 22:04:01 Play search is another example of filter bubble. we'll all see different things beside the strong signal Mar 14 22:04:02 (again) Mar 14 22:04:15 divStar, you are one of the view then :s Mar 14 22:04:18 justJanne: software is licensed in EU, though Mar 14 22:04:29 p_l: yes, but you can resell it, and return it. Mar 14 22:04:31 is there an immutable class generator plugin for intellij? Mar 14 22:04:33 and you can rent it to others. Mar 14 22:04:38 i get different results on web and google play app, different results based on IP within my own country, etc Mar 14 22:04:48 no @ danijoo.. it's just hard to find some apps worth paying for among all the scam and trash Mar 14 22:05:09 g00s, different results depending on device, age of Google Play app etc. Mar 14 22:05:10 divStar, most is free because devs know nobody will buy them Mar 14 22:05:13 g00s: I just don’t search at all via Google anymore. I’ve given up. for 90% of my search terms I see them crossed out anyway below every result, Mar 14 22:05:17 android users arent willing to pay their dollar Mar 14 22:05:19 and so I use DDG mostly now Mar 14 22:05:19 I bought PowerAmp, Bubble UPNP and a few others Mar 14 22:05:26 that's bs danijoo Mar 14 22:05:32 on iOS everything is 0.99$ and gets bought Mar 14 22:05:38 danijoo: well, some are. I spent like over 100$ since they added "pay via mobile" Mar 14 22:05:40 bs again xD Mar 14 22:05:53 I always pay via phone bill Mar 14 22:06:11 and I'm from Germany, too, justJanne Mar 14 22:06:53 I wish it'd be easier to buy CDs and other media that I truly own .. hate all the online licensing a lot Mar 14 22:08:03 divStar, i buy lots of apps too. But dont forget we arent the average users. statistics clearly say android users buy mostly nothing :/ Mar 14 22:08:16 "If your app doesn’t have a sharedUserId you have a lot to lose, not adding one to your app before launching to Google Play (or any other distribution channel) will make it impossible to add one at any point in the future through an update since adding after an initial install will make your applications data (under /data/data//) inaccessible. " Mar 14 22:08:19 d'oh ! Mar 14 22:09:21 what do you need it for g00s ? Mar 14 22:09:25 i notices that too.. Mar 14 22:09:42 i dont, but hate those situations you can never fix if you didn't think of it Mar 14 22:09:46 danijoo - that's absolutely nothing I'd be wondering about.. just look at how next to every app spies on you.. if I am already letting myself getting spied on, I'd certainly not drop a single coin onto the app Mar 14 22:09:53 so, I spent 628.32€ on Google Play, out of which 60.34€ for apps Mar 14 22:10:15 g00s, things like that always make me think what people do that put Integer.MAX_VALUE as versionCode ^^ you cant change it ever :D Mar 14 22:10:23 lol Mar 14 22:11:03 oh wow I found the super rare CD on amazon japan :O ... now I need to find "translate to English" button .. Mar 14 22:11:31 divStar, so you just said im wrong - people buy lots of android apps and your next post is you dont wonder nobody is buying it :p Mar 14 22:11:59 I am saying that apps, that are worth buying, are being bought Mar 14 22:12:16 many of the apps I found online are not worth a penny.. I should actually get paid to use them >.< Mar 14 22:13:34 oh wow the CDs are cheap >.< that's suspicious Mar 14 22:18:51 oh damn why does amazon jp not accept paypal :( Mar 14 22:23:55 pfn is it possible to use vector drawable for notification icons pre-L ? i'm guessing not ... Mar 14 22:24:01 no Mar 14 22:24:43 hmm, android site lost the notification icon sizes Mar 14 22:25:00 Has anyone had an AsyncTask refuse to run? Mar 14 22:25:12 asynctask is single-threaded by default Mar 14 22:25:18 I jsut saw this behavior earlier today for the first time.. Mar 14 22:25:28 so there is another AT running.. Mar 14 22:25:47 ah ok makes sense. My request was timing out and never actually finished Mar 14 22:26:04 asynctask is garbage Mar 14 22:26:07 by the time the next one was sent Mar 14 22:26:20 yeah I’m thinking of just turning it into a thread. Mar 14 22:26:44 actually it says it is possible to use vector drawables pre-L.. I read up on it yesterday Mar 14 22:27:20 I did not know that.. that’s neat Mar 14 22:27:22 I'm so sad, my espresso machine is busted :( Mar 14 22:27:34 despresso :( Mar 14 22:27:52 g00s - http://android-developers.blogspot.de/2016/02/android-support-library-232.html Mar 14 22:27:54 heat exchanger in the boiler seems to have broken :( Mar 14 22:27:58 lel Mar 14 22:28:06 someone doesn't know how to read the parameters of the question Mar 14 22:28:12 it says VectorDrawableCompat can work starting API7 and the animation starting API11 Mar 14 22:33:12 divStar: welcome in my world. Mar 14 22:33:35 Recently hanseatic bank tried to sell me a credit card, when I said I was a student, they instantly noped out. Mar 14 22:33:59 odd. in the US, they would have upped the limit Mar 14 22:34:02 People who live responsibly can’t get them, and sadly we’re becoming more and more americanized, where they become necessary. Mar 14 22:34:12 credit cards arent common in germany s73v3r Mar 14 22:34:17 we still pay with real money Mar 14 22:34:28 two things: credit cards are rarer than pink poodles here, Mar 14 22:34:40 yep Mar 14 22:34:42 and: I never had a single debt. To anyone. (except as a kid like 20ct to my parents) Mar 14 22:35:18 I don’t buy anything on subscription, instead always using prepaid. Mar 14 22:35:20 meaning you have no credit history, and are therefore a risk Mar 14 22:35:34 everything I do is done in a way that the subscription would cancel if I stop paying, Mar 14 22:35:35 s73v3r, thats not how german credit system works Mar 14 22:35:38 Mar 14 22:35:51 ^ Mar 14 22:36:13 German credit system is based on your income, your current expenses, and your socioeconomic status. Mar 14 22:36:14 i’m not saying it’s a bad thing. but you’re an unknown, and that’s riskier than someone having crappy credit, but it being known Mar 14 22:36:15 no credit history means more eligable for credit here Mar 14 22:36:18 ^ Mar 14 22:36:34 it’s a very different system. Mar 14 22:36:51 my issue: I am a student. Student = no income. No income = no anything. Mar 14 22:37:03 things like a clear bank history and no ¨schufa¨ entries mean you get credits Mar 14 22:37:19 + a job/house/car/no student.. Mar 14 22:37:29 but, funnily, hanseatic bank does it in cooperation with a US bank, so the hanseatic bank limit is: "you didn’t have many credit history entries yet" and the US bank limit is "lots of credit history entries" Mar 14 22:37:33 so, it’s weird anyway. Mar 14 22:37:33 and nobody uses credit cards for everyday business Mar 14 22:37:47 danijoo: except the people using the payback integrated credit card. Mar 14 22:37:48 seems the german system is more fair Mar 14 22:38:14 As payback gives like what, 1% back without the credit card, just if they get your payment history, Mar 14 22:38:22 and with credit card it’s like 2 or 3% Mar 14 22:38:27 here in the US , everything is moving to quantify every aspect of your life, and put you in whatever bin for profitability, loans, opportunities, etc Mar 14 22:38:38 yeah, not bad. although, as someone who likes paying with cards, and doesn’t like carrying around cash, I don’t know how much i like it Mar 14 22:38:48 s73v3r: we do have a card system. Mar 14 22:38:50 you can still pay with cards Mar 14 22:38:53 Electronic Cash. EC. Mar 14 22:38:53 just not credit cards Mar 14 22:38:56 the E in EMV Mar 14 22:39:01 we have direct debit Mar 14 22:39:09 Chip+PIN since 2004 or something. Mar 14 22:39:21 g00s: there are also multiple rating agencies in Germany, some of which rate you purely on your facebook data. Mar 14 22:39:34 you guys are missing out on the premium titanium platinum cards ! Mar 14 22:39:35 its kinda like prepaid from your bank account instead of post payed by credit card Mar 14 22:39:46 justJanne oh, well thats not good Mar 14 22:39:54 i don't have Fb, so i guess thats like no credit Mar 14 22:40:10 danijoo: and it’s the only system where the mobile app bears no risk. Mar 14 22:40:23 any app using EC can be completely backdoored, and still be safe. Mar 14 22:40:26 in the US we have alternative credit ratings too, outside the normal ones which will look at Fb, etc tho Mar 14 22:40:32 as all the transaction logic is in the secure enclave. Mar 14 22:41:21 it used to just be FICO, etc ... Mar 14 22:41:45 some of these are in legal grey area, because the algorithms are discriminatory Mar 14 22:41:59 my country is going to hell Mar 14 22:42:36 i'd be so up for a one way trip to mars at this point ... Mar 14 22:43:10 don’t bother. Mar 14 22:43:41 3 states voted on sunday here, in all of them, the AfD (think German Trump) got from 0% (last election) u to 20% Mar 14 22:47:12 only 20%? Must be nice Mar 14 22:47:25 justJanne i can only guess why thats happening :P Mar 14 22:47:33 Actual Trump is routinely getting around 30-40% Mar 14 22:47:49 yeah but this means now 20% of the seats are filled with trumps Mar 14 22:48:05 g00s: it’s a mystery indeed. The party themselves said "obviously, the people elected us not because of our refugee politics, but because of our family and school policies" Mar 14 22:48:13 oh, you meant parliament. Mar 14 22:48:17 at the same time, 65% of people still are pro merkel’s policies. Mar 14 22:48:18 s73v3r, yeah Mar 14 22:48:26 s73v3r: well, what else would we mean? Mar 14 22:48:27 state parliament though Mar 14 22:48:33 there’s only federal and state parliaments. Mar 14 22:48:38 that’s all electable there is. Mar 14 22:48:39 not for whole germany Mar 14 22:48:41 dunno. you guys don’t have primaries? Mar 14 22:48:51 well, some parties do, some don’t Mar 14 22:48:55 the SPD does, for example. Mar 14 22:48:59 the others usually don’t Mar 14 22:49:18 s73v3r, we have but we dont elect them Mar 14 22:49:29 s73v3r: well, the SPD elects their Spitzenkandidat. Mar 14 22:49:38 eh, meant to @danijoo Mar 14 22:49:49 we vote from a bunch of parties and the party with the most seats provides the primary (bundeskanzler) Mar 14 22:50:01 at least thats the easy version of it Mar 14 22:50:07 eh, danijoo, primaries in US is parties voting for their spitzenkandidat. Mar 14 22:50:23 like, all republican party members voting for who will be the republican candidate. Mar 14 22:50:34 systems are hardly comparable Mar 14 22:50:39 indeed. Mar 14 22:53:22 ill never get why there are only 2 parties in murica Mar 14 22:53:45 justJanne http://nymag.com/daily/intelligencer/2016/03/china-uses-trump-in-anti-democracy-propaganda.html Mar 14 22:54:00 danijoo at this rate we might have 4 soon :D Mar 14 22:56:18 g00s: sadly, that’s probably a fairly convincing argument Mar 14 22:56:40 isnt that a good thing? Mar 14 22:56:48 like more different parties to chose from? Mar 14 22:56:56 danijoo: It comes down to things being winner take all. given that, it’s a mathematical inevitibility that people will gravitate toward 2 parties Mar 14 22:57:04 err, first past the post Mar 14 22:59:18 makes sense yeah. Mar 14 23:00:51 Basically, because of first past the post, if I vote for someone who’s less popular but more aligned with my values, instead of someone who’s more popular but only somewhat aligned with my values, I could be opening the door to someone I really don’t want to win Mar 14 23:01:18 man, if it's trump/hillary, there's no one I want to vote for Mar 14 23:01:45 actually, quite a bit like Trump now. He has more people in the Republican party constituency who do not want him to be the nominee, but those people are all split between different candidates, so Trump gets to concentrate his support Mar 14 23:01:51 s73v3r, ie everyone in trumps party Mar 14 23:02:27 well, like I said, there’s that core, 30% or so that is solidly behind Trump. Mar 14 23:02:36 weird systems Mar 14 23:02:42 yeah it is Mar 14 23:03:10 unfortunately preference voting doesn’t have much traction behind it Mar 14 23:03:47 some states do it internally for positions Mar 14 23:04:05 if you want someone who votes exactly like you want, run for office :P Mar 14 23:04:33 I just want ranked voting Mar 14 23:08:10 Hmm, what's the best way to get hold of the default android assets? I'm trying to override a drawable...but looking on github everything is truncated after 1k -.- Mar 14 23:08:15 https://github.com/android/platform_frameworks_base/tree/ics-factoryrom-2-release/core/res/res/drawable-mdpi Mar 14 23:09:02 Taios: git clone? Mar 14 23:09:14 that’s probably your best bet Mar 14 23:09:32 oookay, git clone it is Mar 14 23:10:08 do a shallow clone Mar 14 23:10:09 btw Mar 14 23:10:23 otherwise you’ll clone the whole history with every change ever done Mar 14 23:10:37 also, installing marshmallow is sloooooow Mar 14 23:10:41 bah. It’s not like you had anything else to do today, right? Mar 14 23:10:49 thanks justjanne Mar 14 23:10:50 well, luckily it’s not that bad. Mar 14 23:11:01 cloning all 40GB of the history of AOSP is just 2h Mar 14 23:11:06 but... Mar 14 23:11:17 installing marshmallow is bad: Mar 14 23:11:17 spent now over 40min optimizing apps. Mar 14 23:11:29 152/169 apps by now, at least Mar 14 23:11:42 N and Jack are supposed to end that Mar 14 23:12:11 yeah, N’s "oh, we remembered why we used JIT in the first place in Gingerbread!" Mar 14 23:12:27 and Jack, the "make compiling for android slower and worse!" Mar 14 23:12:59 github truncates images at 1k? never seen that Mar 14 23:13:06 blamb: no, the file list. Mar 14 23:13:17 going from eclipsec+dx to jack+jill increased my compile times from 4sec to 2min Mar 14 23:13:18 AS InstantRun does not support Jack Mar 14 23:13:30 yet Mar 14 23:13:54 man why does logging into amazon.co.jp prime music take so long today :x Mar 14 23:17:45 conversation has to be translated to japanese Mar 14 23:17:59 divStar: think of the triple ping! Mar 14 23:18:14 everything has to go Germany - NSA - Amazon JP - NSA - Germany Mar 14 23:21:46 wow, that’s weird: Mar 14 23:21:58 progress bars went from 2dp to 4dp height in MM Mar 14 23:22:37 and a new activity transition from launcher Mar 14 23:22:40 interesting Mar 14 23:25:24 Why did no one document these changes >_> Mar 14 23:25:47 Also, I wonder if the Google Now on Tap API really is as open as claimed, and I can replace it completely with my own app. Mar 14 23:26:20 I already discovered I can't replace the widget on the recent screen, as that's bound to com.google.quicksearchbox on Nexus and Moto devices, but not on AOSP Mar 14 23:26:37 Luckily it disappears if not installed on MM Mar 14 23:29:38 it feels like it's going Germany -> NSA -> KGB -> BND -> MOSAD -> MI6 -> whatever-else-there-is -> Japan and back the same route... Mar 14 23:30:06 though maybe it's just undergoing a VPN check or something and does not load because I am not IN japan Mar 14 23:31:15 And there is another change: the clock and date in notification screen doesn't link to clock and calendar anymore in MM, as it used to in LP Mar 14 23:34:14 So, can anyone explain me why Google Keep requires access to step counter sensor and to Contacts? Seriously? Mar 14 23:35:16 if you’re running MM, hopefully they will have done the right thing and not ask you for those things until it needs them, and give an explaination for them Mar 14 23:37:17 so.. prime music page from japan does not load... but adding it to the list for free and listening does.. now someone explain D: Mar 14 23:40:56 s73v3r: Google Keep is granted *all* permissions upon install on MM Mar 14 23:41:03 It only has to ask for camera. Mar 14 23:41:16 Microphone and contacts are given automatically. Mar 14 23:41:20 was it previously installed? Mar 14 23:41:41 I flashed the Nexus stock image. Mar 14 23:41:49 On that image, it already has these permissions. Mar 14 23:41:51 Burnt in. Mar 14 23:42:12 ahhh, yeah, that’s the way things get around the “Permissions at runtime Mar 14 23:42:14 thing Mar 14 23:42:40 So, I removed all permissions from all Google apps, as always. As I always do as first thing. Then I install alternatives for everything requiring Google services. Mar 14 23:43:04 almost seems like it would be easier to use a ROM with that stripped out already Mar 14 23:44:07 Well, yes, but sadly neither Moto nor Google distribute the proprietary driver. Mar 14 23:44:15 *drivers. Mar 14 23:44:43 But indeed, as soon as N is out I'll compile from source myself again for the whole phone, not just 40% of apps. Mar 14 23:44:57 The Android Search app and the Android Music app are also neat. Mar 14 23:45:09 Full integration with the launcher widget even. Mar 14 23:45:33 Sure, everything Android looks like Gingerbread, but hey, it was last updated this February, Google never abandoned it. Mar 14 23:46:56 Just like AOSP SMS is still holo Mar 15 00:00:44 looks material to me Mar 15 00:00:46 huehuehue Mar 15 00:02:00 hey guys, I have a question regarding activity instrumentation testing. I have an app with auto-login functionality and it is interfering with my tests... im testing using ActivityInstrumentationTestCase2 and wondering what is the best way to handle this situation? Mar 15 00:02:45 disable the auto-login functionality for tests Mar 15 00:05:06 that was my first thought, although I don't necessarily like having special conditions in the main code for tests ... wondering if there are other ways of doing this? if not im gonna have to disable auto-login for this Mar 15 00:05:32 not necessarily in the code. remove the account from the device before each test runs Mar 15 00:09:47 yep that should work .... feel stupid for not thinking of that lol thanks s73v3r Mar 15 00:14:08 silly question: I want to load an image from a drawable, but it’s a JPG. I should still be able to use setImageDrawable(), right? Mar 15 00:14:29 doesn't setImageDrawable require a Bitmap? Mar 15 00:14:35 Bitmap as in Bitmap-object Mar 15 00:14:42 if so - then yes o.o; Mar 15 00:14:52 so I can’t do getResources().getDrawable()? Mar 15 00:15:13 uhm I can't remember which resources count as Drawables.. Mar 15 00:15:19 PNG for sure.. and XML Mar 15 00:15:49 not sure about JPG.. try putting a JPG into res/drawables and build app.. if it says cannot find or some other trouble, just put it in res/raw Mar 15 00:15:58 and use I think BitmapFactory Mar 15 00:16:03 the reason I ask is that it’s not showing up Mar 15 00:16:16 ah.. hm let me check quickly Mar 15 00:17:25 apparently jpeg is still "acceptable" Mar 15 00:17:32 http://developer.android.com/guide/topics/resources/drawable-resource.html#Bitmap Mar 15 00:17:44 that’s what I thought Mar 15 00:17:58 ensure your resource is .jpg and not .jpeg - perhaps that is causing some trouble.. Mar 15 00:20:18 so yeah.. I'd guess if you put it into the res/drawable folder and give it a lower-case name, it should appear in R.drawable. after a rebuild Mar 15 00:20:24 nevermind. It’s a networkImageView that I’m just trying to short circuit for right now, and apparently the DefaultImageResource takes precedence over setImageResource Mar 15 00:20:47 oh.. :) Mar 15 00:20:53 i think. I’ve commented out that line, and I’m rebuilding Mar 15 00:21:03 alright - good luck and good night! Mar 15 00:44:55 whats the best service / tool convert svg vector drawables ? Mar 15 00:45:03 svg to vector drawables Mar 15 00:45:27 uhm I use the Android Studio Vector Assets import Mar 15 00:47:00 svg2android Mar 15 00:47:37 pfn i see the website, is there a command line tool ? Mar 15 00:47:48 i only have a few, this should be fine Mar 15 00:48:17 maybe there's a better tool Mar 15 00:49:59 ugh, card.io doesn't ship a proper proguard.txt in their aar Mar 15 00:50:01 buttheads Mar 15 01:07:29 does anyone have the 5x and 6p on display? Mar 15 01:07:35 holy shit I cannot make up my mind Mar 15 01:07:57 I have tried each of them, but haven't had the chance to do an a/b comparison Mar 15 01:08:04 Best Buy? Mar 15 01:09:09 do they really? Mar 15 01:09:25 i'll have to check that out Mar 15 01:09:30 no idea. but if anyone would have it, I’d guess it’d be them Mar 15 01:09:58 I hate Best Buy. I'll probably just order it online even though they'll likely price match Mar 15 01:12:28 RustyShackleford, just get the 6p Mar 15 01:13:03 the price difference is so marginal that it's not worth getting the 5x unless you have girl hands Mar 15 01:13:30 hey guys... so i am implementing a simple ListView that has a label and a value that would be very simple TextViews... I did some googling and it seems like this isn't really "out of the box" and needs to be implemented via a custom view adapter, like http://www.ezzylearning.com/tutorial/customizing-android-listview-items-with-custom-arrayadapter ... is this the best approach to take? Mar 15 01:14:37 yes Mar 15 01:17:34 RustyShackleford by the time you decide, they will announce the next one :D Mar 15 01:17:48 did i hear HTC was doing nexus for next 3 years ... Mar 15 01:17:55 rumor probably Mar 15 01:34:22 alright, so next question. i have two TextViews next to each other. the "label" has layout:weight of 0.25, and the "value" has weight of 0.75... i thought this would mean the label would be 25% of the width, and the value would be 75% of the width... but this doesn't appear to be the case if the label's text is too long... i figured it would "wrap" or something? Mar 15 01:35:42 it's rendering like so: https://dl.dropboxusercontent.com/u/68434403/device-2016-03-14-213415.png Mar 15 01:37:20 ah, shoulda googled first. nevermind, got it Mar 15 02:02:18 has anyone had chrome notify them of phsyical web beacons yet Mar 15 02:12:54 ron_frown check this out http://arstechnica.com/gadgets/2016/03/western-digital-makes-a-46-314gb-hard-drive-just-for-the-raspberry-pi/ Mar 15 02:13:23 I think the googs lied Mar 15 02:13:41 like 20 beacons provisioned for physical web eddystone url Mar 15 02:14:04 my device with chrome 49 doesnt find shit Mar 15 02:18:17 ron_frown have you tried N preview yet ? Mar 15 02:18:33 nope Mar 15 02:18:36 and honestly Mar 15 02:19:00 I dont know if I'll have another android phone I just 1) not convinced my purchased a couple months ago phone will ever get n Mar 15 02:19:12 and 2) not convinced google is ever goign to get their shit together Mar 15 02:19:21 last two phones I had, had split screen Mar 15 02:19:27 why the fuck google thinks thats a big priority Mar 15 02:19:28 I dont know Mar 15 02:19:42 Yeah split screen is pretty annoying Mar 15 02:19:52 I love when I accidentlaly split screen Mar 15 02:20:01 and spend a bunch of time trying to figure out how to undero it Mar 15 02:20:02 undo Mar 15 02:20:07 Literally hahaha Mar 15 02:20:10 So funny Mar 15 02:20:13 Happens all the time Mar 15 02:24:20 ron_frown i thought samsung had some multi window thing a while back, but they got into a disagreement with google about it Mar 15 02:24:28 its still on my note Mar 15 02:24:36 something similar was on my lg Mar 15 02:24:38 maybe it coming now is a concession of sorts to them? Mar 15 02:25:10 wonder what they have been doing with tizen, haven't heard ANYTHING in ... long time Mar 15 02:25:50 yeah Mar 15 02:25:56 I dont know Mar 15 02:25:58 they should Mar 15 02:25:58 soemone should do something Mar 15 02:26:03 android is withering away Mar 15 02:28:28 ron_frown well, its still has like 80% market share, not sure about profit share numbers this Quarter Mar 15 02:28:33 yeah Mar 15 02:28:38 you cant just do nothing Mar 15 02:28:41 that doesnt work Mar 15 02:29:49 if the iPhone SE comes in at $350 that could shake some things up Mar 15 02:33:02 if you can get a device for $350, no bloatware, 2+ years updates that would be pretty attractive i would think Mar 15 02:33:25 I get iphones for free Mar 15 02:33:32 well I got this note for free too Mar 15 02:33:56 android may have 80% market share Mar 15 02:34:21 i think Play has 2 millions apps now Mar 15 02:37:36 but I think if *ANYTHING* that was to come out that was as open as android without all of the fucked up shit... Mar 15 02:37:48 it'd be like blackberry and android all over again Mar 15 02:38:10 too worried about porting it to this that and the other thing and IOT Mar 15 02:38:14 blah blah blah Mar 15 02:38:21 android... you get split window Mar 15 02:40:01 it works Mar 15 02:40:12 and what I've seen people be able to achieve Mar 15 02:40:16 its impressive Mar 15 02:40:24 just way way way more work to achieve simple results Mar 15 02:41:56 nice Mar 15 02:42:19 install "physical web" browser it finds my beacons quick Mar 15 02:42:33 chrome 49 doesnt Mar 15 02:42:43 even after turning that feature to explicitly on vs default Mar 15 02:49:06 there is an article on MVP every day /r/androiddev ... Mar 15 02:49:20 how many articles are needed for this Mar 15 02:54:49 mvp? Mar 15 02:55:02 dude Mar 15 02:55:07 the rxjava shit? Mar 15 02:56:29 no, the mvc shit from the 90s Mar 15 02:56:39 I've noticed many nuts being busted over the rxjava stuff Mar 15 02:56:49 it fucking boggles my mind people build frameworks on that Mar 15 02:56:49 either (1) android devs are total morons or (2) its so hard doing with android, maybe not worth it Mar 15 02:56:56 seems like app dev is like 10x the work Mar 15 02:57:06 based on the hundred mvp articles in the past 6 mos ... Mar 15 02:57:09 I mean mvc/mvp shit... Mar 15 02:57:23 do you realize how little of a problem a lot of things would bcome if this was the plan from the get go with android? Mar 15 02:57:32 I need to destroy and recreate my view and restore state Mar 15 02:57:43 or, destroy my view and bind a new view to the same model Mar 15 02:57:46 * ron_frown gasps Mar 15 02:58:16 hehe, dianne wanted to make sure you implemented memory management yourself :D Mar 15 02:59:03 if anyone understands legacy, I understand legacy Mar 15 02:59:13 but fuck dude Mar 15 02:59:41 android has the same problem my company has **** ENDING LOGGING AT Tue Mar 15 02:59:58 2016