**** BEGIN LOGGING AT Sun Jun 19 02:59:58 2016 Jun 19 03:00:16 I'd like to leverage docker to run a huge number of emulators all running my app with "monkey" Jun 19 03:00:22 to find any crashes Jun 19 03:00:28 has anyone done this before? Jun 19 03:00:55 I would run the emulators headless Jun 19 03:01:04 and let the "monkey" run forever on my app Jun 19 03:01:26 one issue I am trying to figure out is how would I report any of the crashes Jun 19 03:45:58 that's the easiest problem to solve Jun 19 04:39:33 damn it, like a bad spell - after reading that /r/androiddev post on AS hanging, i noticed AS hang out of the blue when kicking off build :( Jun 19 04:42:33 i think google fucked something up where gradle is blocking the AS UI thread Jun 19 05:01:16 g00s: You done anything with android wear 2.0 preview yet? Jun 19 05:01:29 I am trying to figure out if my dev environment is actually using version 2.0 Jun 19 05:02:33 wyoung sorry, i have no interest in wearables atm Jun 19 05:04:14 so i haven't used that stuff Jun 19 05:15:39 should I get a 5x? Jun 19 05:18:28 i'm waiting to hear more about android on RPi ... Jun 19 05:18:52 i hope its not just Brillo or something Jun 19 05:19:21 weird that Google talked about Brillo / Weave in 2015 I/O ... Jun 19 05:19:36 I actually bought an RPi3 last week... we were getting a few for stuff at the office, so I got one for me at the same time Jun 19 05:19:36 i don't recall them saying anything in this I/O Jun 19 05:19:51 there's a lot of stuff they didn't talk about at this I/O Jun 19 05:20:15 i read their stocks took a bit of a hit based on news advertising is going down Jun 19 05:20:41 it's still a large majority of their revenue Jun 19 05:24:00 but the question is... 5x for US$270 or so? Jun 19 05:25:58 i'd say no Jun 19 05:26:24 because? Jun 19 05:26:25 too advanced in its lifespan, you'll get maybe 2 years of updates Jun 19 05:27:10 I'm not intending to use it for 2 years :) I've barely used any phone for more than a year Jun 19 05:27:53 since android N is coming along, i'd imagine new nexus device earlier than previous Q4 announcements Jun 19 05:28:33 still wouldn't expect anything until October-ish time, I think Jun 19 05:29:44 g00s: ;( Jun 19 05:29:56 g00s: Let me know when you are :) Jun 19 05:32:33 Leeds why do you need a new phone ? Jun 19 05:33:40 g00s: no particular reason :) back buttons on the G4 are annoying me, would like a fingerprint sensor, little things like that Jun 19 05:34:15 and they seem to have got pretty cheap... Jun 19 05:35:15 i'd just wait until 3d touch phones come out, that seems like the most significant UI thing lately Jun 19 05:35:19 Leeds, generally like the 5x noe Jun 19 05:35:43 finger print scanner, sounds like a novelty Jun 19 05:35:53 I'm in the mood to spend some money... retail therapy and all that Jun 19 05:36:09 Leeds come on, think of the environment :) Jun 19 05:36:10 only thing I dont like is lcd vs oled Jun 19 05:36:30 Leeds: set you phone to unlock if you yell expletives at it Jun 19 05:36:39 pfn: 5x is which one? Jun 19 05:36:46 lcd. Jun 19 05:37:14 * pfn has 5x and 6p Jun 19 05:37:19 ah, well, oled is nice, but I've had lcd on phones for a long time Jun 19 05:39:09 will also have to buy a couple of USBC cables... Jun 19 05:40:21 usb c > micro usb Jun 19 05:40:33 oh, sure, but I have lots of micro cables already :) Jun 19 05:42:18 * pfn gonna be in hk in nov Jun 19 05:42:36 cool - beer? Jun 19 05:43:34 would love to, but probably busy with family Jun 19 05:43:50 meh, ditch 'em :) Jun 19 05:44:16 cruising out of hk, then staying in hk for a week, then 2 weeks in thailand Jun 19 05:44:32 * pfn zzz & Jun 19 05:45:00 cool, my parents cruised from HK to India earlier this year... sleep well Jun 19 06:43:34 Leeds: if you want to spend money, get the new One Plus 3 Jun 19 06:43:46 $400 Jun 19 06:45:29 it has 6 whopping GBs of ram! Jun 19 06:51:13 shmoooz: pew pew Jun 19 06:51:40 ? Jun 19 06:52:42 I've heard nothing but complaints about the 5X Jun 19 06:52:57 *shrugs* seemed like an appropriate comment after your "it has a 6 whopping GBs or ram" statement Jun 19 06:55:06 Wonder which one is better, one plus 3 or xiaomi mi5 Jun 19 06:55:54 One Plus because it has a closer to stock rom Jun 19 06:56:11 xiaomi is more for asian markets Jun 19 07:05:00 the 2 problems I noticed with the One plus 3 are it has no sdcard slot and the fingerprint scanner button doesn't also act as a home button (could be fixed with update) Jun 19 07:05:54 I is getting a hiweai watch Jun 19 07:06:24 yeah those are nice with the higher res oled screens Jun 19 07:06:41 480x480 I think was it Jun 19 07:07:06 yeah, I am trying to get it to run standalone with Android wear 2.0 preview Jun 19 07:07:41 you familiar with Android wear 2.0 shmoooz ? Jun 19 07:07:51 wyoung: no I'm not Jun 19 07:08:06 but I ran my app using android wear emulator and it ran! Jun 19 07:08:59 I don't have to make any changes because I already planned for small screens Jun 19 07:09:04 shmoooz: I am trying to get my head around the API Jun 19 07:10:59 wyoung: how much are you getting the huawei watch for? they are pretty old by now Jun 19 07:11:24 shmoooz: In particular, running a service in the background that uses wifi and showing a notofication when a message comes in (via JMS / MQTT) Jun 19 07:11:40 shmoooz: ~$430 AUD Jun 19 07:12:27 wyoung: that sounds like pretty generic thing to do Jun 19 07:14:02 shmoooz: I just need to make sure that the notifications show regardless if in another app or not. Preferable I would like to lock the watch down so all it can do is receive and display messages. I was thikning of using complications API to do that and just dont give the user the unlock code Jun 19 07:14:36 shmoooz: what you reckon? sounds feasible or will I run into issues doing this? Jun 19 07:15:12 wyoung: is that for parental control or something? Jun 19 07:15:35 shmoooz: no, staff control :) Jun 19 07:16:13 notications of orders being ready to be delivered or notifying staff that a certain event has occurred Jun 19 07:16:52 I guess with some permissions while installing it should be possible Jun 19 07:17:09 similar to kiosk mode Jun 19 07:17:35 yeah, kiosk mode is optional if I can achieve this with the lock screen / complications API Jun 19 07:17:35 I don't know anything about the wear api so I can't help :( Jun 19 07:17:49 shmoooz: :( you know any one in this channel that does? Jun 19 07:18:05 not that I can remember Jun 19 07:18:32 ;( Jun 19 07:24:11 shmoooz: N5X is US$270ish, and available today, 1+3 is US$400ish and available in a couple of weeks... it's only meant as a temporary thing, mostly, until either this year's nexus or next year's flagships Jun 19 07:29:26 Leeds: ok, but from what I heard I'd rather get the old Nexus 5 than the 5x Jun 19 07:40:38 I'm trying to use SQlite, but I get an exception when doing a select statement, saying that the table does not exist - which is strange, since I have created it (and yes, I have cleared app data / re-installed it): http://pastebin.com/AgnpBg4K Jun 19 07:49:34 minas114: can you share the CREATE_TABLE_QEURY string? Jun 19 07:49:41 and maybe some more of the error? Jun 19 07:49:48 yes Jun 19 07:49:52 thepoosh: shavuatov Jun 19 07:50:06 also, you can pull the db file from your /data/data/packagename/databases Jun 19 07:50:09 raoul11: HAI Jun 19 07:50:11 sup? Jun 19 07:50:28 not bad, getting ready to deploy Jun 19 07:51:06 cool, working for the man or freelance? Jun 19 07:51:09 thepoosh, The class that contains the query for the Joke table: http://pastebin.com/SwCkcM81 Jun 19 07:51:40 indie dev Jun 19 07:51:57 thepoosh, Caused by: android.database.sqlite.SQLiteException: no such table: Joke (code 1): , while compiling: select * from Joke limit 5 Jun 19 07:51:58 indieDevWithADream Jun 19 07:52:29 minas114: full logcat please Jun 19 07:53:07 minas114: why are you using varchar instead of TEXT? Jun 19 07:53:16 and char? Jun 19 07:53:29 just use TEXT and then serialize it into whatever you need Jun 19 07:53:40 how big is this table?! Jun 19 07:53:43 thepoosh, http://pastebin.com/CUBQnYFm Jun 19 07:53:50 raoul11: anything I've heard of? Jun 19 07:53:55 It's not big, ~1100 rows Jun 19 07:54:04 i wish Jun 19 07:54:16 u thepoosh, startuping or corp? Jun 19 07:54:22 the char is because the lang field is always 5 letters, following the ISO standard Jun 19 07:54:31 so? Jun 19 07:54:38 raoul11: I work for glide.me Jun 19 07:54:55 minas114: code for MainActivity onCreate? Jun 19 07:55:06 minas114: also, overoptimization is the root of all evil Jun 19 07:55:34 I don't believe this is optimization Jun 19 07:55:51 I assure you it is Jun 19 07:55:59 in any case, onCreate? Jun 19 07:56:17 thats an impressive amount of downloads thepoosh Jun 19 07:56:26 thepoosh, I will only post just the section that I made the db, is that okay? the other stuff in there is not relevant Jun 19 07:57:50 thepoosh, http://pastebin.com/mNxrQYP3 Jun 19 07:58:23 Ignore the line "String q = ...". it's unused Jun 19 08:01:51 minas114: just paste the thing, nobody cares about your code Jun 19 08:02:09 where is the DB initialize in there? Jun 19 08:02:21 raoul11: yeah it was a crazy ride Jun 19 08:02:43 I've switched to API level 23, and I have to deal with the new "run-time permissions" mechanism. Which is cool! But, my setup is: I have a custom Content Provider, where the query method attempts to access EXTERNAL_CONTENT_URI (media). But should I handle the permissions inside the Content Provider query() method? Jun 19 08:02:44 http://pastebin.com/LB8AGts9 Jun 19 08:02:59 I've tried to make a descriptive paste :) Jun 19 08:04:31 With API 23, I have to check that the user has granted the READ_EXTERNAL_STORAGE every time the query method is run, right? But then, when permission is granted, there is a callback to onRequestPermissionsResult() Jun 19 08:06:28 so this means I'll have to refactor my query method, moving the actual production of Cursor c_thumbs into onRequestPermissionsResult()...? So, activity calls query, which expects it to return a cursor. But how does that work when there always is a callback to onRequestPermissionsResult? How can query still return the cursor? Jun 19 08:06:37 thepoosh which branch are you on? tlv,rg,jr? Jun 19 08:07:52 joakimk: Handle the permissions in your activity, don't query at all if the user denies Jun 19 08:07:56 right Jun 19 08:08:01 just about to comment on that Jun 19 08:08:06 that's the way to do it? Jun 19 08:08:20 thanks Jun 19 08:08:50 jr Jun 19 08:08:57 Well, you want to check with the user if they'll let you do X before trying to do X Jun 19 08:08:59 raoul11: ^ Jun 19 08:10:04 rgr tht Jun 19 09:23:06 What's the best way to make my app keep the screen lit, unlocked, and bright while the app is running? Jun 19 09:26:39 Hi, could someone give me an advice on my List Row Layout? https://paste.ee/p/mCJY4 Jun 19 09:26:58 How do I change the values so I have to specify only the row height Jun 19 09:27:10 and the rest resizes automatically? Jun 19 09:28:18 or even better, the row height gets assigned by android without explicit call according to device resolution Jun 19 09:50:16 when I use fill_parent in android and the content is bigger than the parent, does the content (image-size and Text.size) get smaller? Jun 19 09:52:35 weird issue. i have 2 activities that uses a style inheriting from Theme.AppCompat.Light.Dialog (with widthMajor/widthMinor defined). refrenced it from manifest and called setTheme before setContentView. It renders ok, except that the app's name is visible on the top of the activity, and i cant seem to find which hook grabs it Jun 19 10:08:51 Hey, I using a recycler view with 2 types of views. one of the view types appears only once. I'd like to set it a min height, but to have it expand if the other views combined height is less than the screen height... any suggestions on how to do that? Jun 19 10:11:15 something similar to height="0dp" weight="1" on one of the views so it would cosume all available space Jun 19 10:24:08 hi Jun 19 10:54:28 Hi... I am working with a old Camera API. I have a preview working on the surfaceview but for some reason its orientation is wrong. I can not seem to use Options.rotate(). It does not do anything Jun 19 12:33:12 guys.... how can i get a real random number in android? Jun 19 12:34:13 if i use the r.nextInt(10) for example and i use that in a for cycle, the result are not so random Jun 19 12:34:26 is* Jun 19 12:36:53 sigh Jun 19 12:36:57 how do u know its not random? Jun 19 12:36:57 still lagging... Jun 19 12:38:57 raoul11: if i run it 30 times some number are showed a lot of times Jun 19 12:39:27 and some numbers are never showed or at least 1 time Jun 19 12:40:59 well, that could be just by chance Jun 19 12:41:45 u can play with seeds a bit, and check what happens if you hardcode a seed to your random code Jun 19 12:43:59 It wouldn't be random if it was a perfect distribution for any sample size Jun 19 12:46:49 mmmh it can definitely be random across a perfect distribution Jun 19 12:47:48 this is just fantastic https://github.com/ToxicBakery/ViewPagerTransforms Jun 19 12:49:11 Sure, but you can't expect a random function to always return a perfect distribution Jun 19 12:50:37 Functions don't return perfect distributions. Distributions are not laws about the future. Jun 19 12:50:57 Just because a function is perfectly distributed doesn't mean it's not random. Jun 19 12:52:00 The distribution describes how the function behaves across multiple values Jun 19 12:57:55 And in the context of skin1980s question/complaint, that some numbers don't show up doesn't mean it's not random Jun 19 12:58:12 Sure Jun 19 12:58:51 SimonVT: http://stackoverflow.com/questions/19732456/android-random-number-is-not-very-random Jun 19 12:59:08 this is what i mean Jun 19 12:59:19 Related: http://beust.com/weblog/2012/02/20/various-ways-to-get-randomness-wrong/ Jun 19 13:00:31 CedricBeust: nice read... tnx a lot Jun 19 13:01:48 huh? Random should suffice for most use-cases Jun 19 13:01:59 of course its not good for cryptography Jun 19 13:02:17 skin1980: Seems random to me Jun 19 13:02:19 https://en.wikipedia.org/wiki/Gambler%27s_fallacy Jun 19 13:02:44 randomness has the property that one number can occur way more than another Jun 19 13:03:13 If you don't want random (e.g. for 30 numbers between 1 and 10 you want every number to show up 3 times every time), then do something else than Random Jun 19 13:04:01 skin1980 are you calling new Random on each iter? Jun 19 13:04:23 raoul11: yes Jun 19 13:04:46 ouch Jun 19 13:04:56 you're basically setting a new seed on each iter Jun 19 13:05:04 skin1980: Don't do that. I explain why in the article I linked. Jun 19 13:05:10 maybe i'll add a check that - if a number appear more then x times - i can't accept it Jun 19 13:05:16 try this: http://pastebin.com/raw/tbVmjEty Jun 19 13:05:26 pretty uniform for me Jun 19 13:05:28 skin1980: Don't do that either, you are just making things worse. Jun 19 13:05:42 just use nextInt, dont instantiate a new Random on each iter Jun 19 13:05:49 The only way you can judge the distribution of a function is to set up a matrix count like I show in my blog post. Jun 19 13:05:58 You will be very surprised how easy it is to get this wrong. Jun 19 13:06:03 CedricBeust thats your blog post? Jun 19 13:06:13 http://beust.com/weblog/2012/02/20/various-ways-to-get-randomness-wrong/ Jun 19 13:06:17 thought the name looked familiar (: Jun 19 13:07:15 tnx Ashiren and tnx all... going to study the exapmples Jun 19 13:08:27 got an issue with activity recreate: it flickers for a fragment of a second until the activity is fully loaded Jun 19 13:18:24 got a noob question too... don't flame me pls, i'm new to java/android. From i random number ( range 0-10) i would like to set the resource for an imageview from a drawable i called one.png two.png etc... Jun 19 13:19:20 hot can i call myimageview.setimageresources(R.drawable."mynumber"); Jun 19 13:19:23 how* Jun 19 13:21:47 skin1980: why not having the int[] = { R.drawable.one, R.drawable.two, ... } Jun 19 13:21:50 and choose from there? Jun 19 13:22:22 nice idea Ashiren Jun 19 13:22:26 like always Jun 19 13:22:40 but i can define the array in that way? Jun 19 13:22:45 can i* Jun 19 13:23:17 R.drawable... is just generated int Jun 19 13:23:34 quite constant even Jun 19 13:24:42 Ashiren: how i cannot realize it was so simple? Jun 19 13:24:49 Thanks a lot Ashiren Jun 19 14:01:52 And that's the end of lightdm https://forum.antergos.com/topic/3082/the-login-screen-for-antergos-is-incredibly-slow/3 Jun 19 14:02:02 ugh Jun 19 14:02:07 wrong channel... Jun 19 14:27:54 RecyclerView question: I have a recyclerview with 2 types of list items. One of them creates a fragment with an interface whose callback function is in the activity hosting the recyclerview. I'm using this callback to add items to the recyclerview, but my RecyclerView adapter is always null inside this function, despite it being called on the UI thread. Does anyone have any idea why this might be? Jun 19 14:44:15 logicp: link relevant code Jun 19 14:46:08 DO I need to set up JDK before I can setup the Android SDK in Intellij? Jun 19 14:46:20 Yes Jun 19 14:46:40 Just install it Jun 19 14:46:41 thank you sir. Jun 19 14:48:36 xorgate: trimming! Jun 19 15:02:37 Do I need to create my own custom adapter if I want to use an ExpandableListView? Jun 19 15:07:52 HactarCE: always a good idea imho Jun 19 15:08:03 Ok thanks Jun 19 15:08:06 will do Jun 19 15:08:36 Hi everyone. I am using the old camera API. I have a preview on a SurfaceView but for some reason the orientation is wrong and Properties.rotate does nothing Jun 19 15:08:43 http://pastebin.com/bnZJbeyp Jun 19 15:11:04 is it "bad" to install all Android SDK Build tools? All revisions that is Jun 19 15:19:37 Which image formats are supported by ImageButton? Jun 19 15:19:51 Cannot find that information in docs Jun 19 15:20:13 I think PNG is supported by mostly everything. Jun 19 15:22:14 The guide calls the image "icon" i.e. set the icon using ImageButton. So I wondered if .ico files are also supported. Jun 19 15:22:30 https://developer.android.com/guide/topics/ui/controls/button.html Jun 19 15:22:57 I've been using PNG mostly. Jun 19 15:23:30 Don't want to use something that is not supported. Jun 19 16:34:27 just use png and jpg Jun 19 17:38:24 Hey, i want to know what is the best way for do a client-server app in android. I want that my app can get a request and send response, maybe http request? webservices? other networking stuff?? Jun 19 17:38:47 codekK: Depends on the data you want to send and how your server is setup. Jun 19 17:39:16 LunarEclipse120, i dont have server already i want to do all from scratch Jun 19 17:39:31 codekK: What data do you want to send? Jun 19 17:39:42 LunarEclipse120, the data its mainly plain text but i want send images too Jun 19 17:40:31 codekK: Maybe FTP? I don't do much data stuff. Jun 19 17:40:39 Hey guys, I have asked this a couple of time and no one seems to answer... my internet connection is a bit temperamental as well today. I have a Camera app that works with SurfaceView. But for some reason the orientation is all wrong and Properties.rotate() does not seem to work. Anybody have some idea on how to change this? Jun 19 17:40:48 hmm just send the data to a FTP hmm can be good Jun 19 17:46:23 codekK: my 0.02 it's hard to go wrong with just http(s ideally) - avoids a bunch of networking/firewall issues Jun 19 17:47:28 are you hosting your own data storage as well? Otherwise, iirc amazon s3 has some fairly simple apis around this Jun 19 17:48:03 kbs, maybe i own my data but i can consdier too u suggestions Jun 19 17:49:01 how is it possible that i define an ad activity as portrait, and it still displays the ad activity as landscape /: Jun 19 17:49:20 in the past i use parse, its now something its there a substitute? Jun 19 17:52:03 codekK: oh, I assumed you were trying to build everything on your own :) not sure how much you want to experiment on the server side code; so hard to say - lot of choices, caveat emptor etc! Jun 19 18:01:01 hithere Jun 19 18:01:34 somebody who already upgraded from win7 to win10? Any problems with AS and development? Jun 19 18:06:02 i have no issues with AS on win10 Jun 19 18:06:21 aside to logcat not showing up package names, but i dont think thats related Jun 19 18:07:15 Can anyone provide a workaround to this: recreate() an activity results with flickering (for a sec) Jun 19 18:09:59 recreating will always result in some flicker Jun 19 18:10:29 you can try setting a pending transition, but probably won't t help Jun 19 18:10:33 im thinking bout ditching it and using a bypass activity Jun 19 18:11:14 just pass extras on intent to the dummyactivity onCreate Jun 19 18:11:27 and launch the activity again Jun 19 18:11:42 thoughts pfn ? Jun 19 18:12:19 try it and see Jun 19 18:13:25 does google have any plans on backporting the loli+ transition to lower api's? Jun 19 18:13:49 loli? Jun 19 18:14:05 ahh, got it Jun 19 18:14:07 5+ Jun 19 18:14:14 those nifty transitions Jun 19 18:14:15 no, why would they Jun 19 18:15:21 if you want them, get a 5+ device Jun 19 18:17:43 tell that to the 55% that still uses pre loli devices Jun 19 18:27:59 so what, they don't get transitions Jun 19 18:33:37 I'm perfectly happy telling 55% of android users that they don't get transitions Jun 19 19:13:51 So yo use SSL, each new client needs a new certificate? how do you solve this practically? Jun 19 19:20:19 CedricBeust interesting http://notes.willcrichton.net/the-coming-age-of-the-polyglot-programmer/ Jun 19 19:22:29 sdsdds, why would you give each client a new cert? Jun 19 19:22:33 O.o Jun 19 19:22:49 scheme/lisp has tried this approch forever, methinks... Jun 19 19:23:12 (re: g00s and polyglotism) Jun 19 19:23:19 Mavrik: key then? Jun 19 19:23:41 would you then generate the key from the cert int he app? Jun 19 19:23:54 kbs metaprogramming, yeah - wyvern kinda sounds a little like Idris Jun 19 19:25:59 fwiw, so far just inventing a little DSL and either antlr or similar tools to generate code of interest hasn't been too tricky, and not very controversial (in in terms of getting other people on teams to go along) Jun 19 19:26:29 but imposing a new language has usually been kinda hard, unless everyone drinks the same koolaid... Jun 19 19:36:26 sdsdds, your question is too vagueh, we have no idea what you are doing and not sure you have an idea of what you are doing too Jun 19 19:40:43 adq: if i want to implement https comm for all my Android clients, can i do with only one cert? each client can generate its own key? Jun 19 19:42:33 only if you want the server to validate/authorize your client Jun 19 19:43:39 and i'm not talking about design, because giving the same identity to multiple clients seems dangerous imho Jun 19 19:44:07 sdsdds, who needs to trust who? Jun 19 19:44:22 your client, like it must be sure to talk to the correct server? Jun 19 19:44:30 or the server, like it must be sure to talk to the correct client? Jun 19 19:44:30 etc Jun 19 19:45:09 well it is for an Android game, both singleplayer (send highscores, get leaderboards) and multplayer (highscores, leaderboards and game sessions) Jun 19 19:46:10 this is very complicated, you would better use an available framework, like playgames or another one Jun 19 19:46:28 maybe you neglect an important part, the deployement of certs from A to B Jun 19 19:49:48 adq: i see, yes maybe it is to risky to implement myself Jun 19 19:50:49 you would better start with an available framework, especially if you have little knowledge in crypto, identity management, certs, keys, whatever, etc it's a big field Jun 19 19:51:14 and then start identifying potential flaw in the existing framework you use and try to find a better solution Jun 19 20:04:33 Where are emulator screenshots saved? Jun 19 20:04:38 I can't find them Jun 19 20:05:06 Nvm, found them Jun 19 20:10:53 glad to be helpful Jun 19 20:14:46 how do you test multiplayer apps, 2 phones isnt really enough and you cant writ e python script simulating a GPGS client right? Jun 19 22:08:13 Is there a way to create a project in android studio that is only a library module. I cannot find a way to create a project that does not have a default app module. Jun 19 22:08:17 ? Jun 19 22:20:46 hi Jun 19 22:21:06 does the Android IDE uses all cores to compile source files? Jun 19 22:24:30 anyone use Instant Run with larger projects? Jun 19 22:25:08 the project I'm working on takes ~10 mins to build with Instant Run disable, ~20 with Instant Run enabled Jun 19 22:25:24 and an incremental build takes ~2 mins regardless of Instant run settings Jun 19 22:25:34 seems like Instant Run is not worth it in this case Jun 19 22:36:13 is there a compatible replacement for getColor()? Seems like the resources.getColor() is deprecated but Context .getColor() is too new to use Jun 19 22:36:58 oh i suppose that would be ContextCompat Jun 19 22:37:52 am I the only one who finds these Compat classes confusing? Jun 19 22:38:05 same with like, FragmentManager vs SupportFragmentManager Jun 19 22:38:11 pretty easy to use the wrong one by accident Jun 19 22:44:26 Yeah, Ive not done a lot of work with any simmilar platforms, so I dont have anything to compare it to, but the amount of support and compat libraries/classes we need to use seems a little rediculous to me Jun 19 22:46:52 sd512: just be happy they exist :) Jun 19 22:47:01 on iOS you write much of that code yourself to be compatible Jun 19 22:47:10 with conditions or #ifdefs Jun 19 22:47:18 oooohhh. ugly Jun 19 22:47:22 yeah Jun 19 22:47:29 I thought it was the coolest thing coming from iOS Jun 19 22:47:31 like wow Jun 19 22:47:36 these guys actually support their old stuff Jun 19 22:47:38 lol Jun 19 22:48:05 the iOS guys I work with are always pushing to cut support for lower versions because of nasty bugs Jun 19 22:50:43 and apple creates most of those bugs becuse every new version of iOS / Xcode they change their auto layout stuff so app layouts will break consistently after upgrading ... or very often at least Jun 19 22:51:10 hmm do I want to use a ViewPager or like, a FragmentPagerAdapter? Jun 19 22:51:19 I'm trying to make a list of lists Jun 19 22:51:41 I'm not sure how those two ideas are tied together Jun 19 22:52:03 in my head I'm thinking List listOfLists; Jun 19 22:52:05 well i can contain each list in its own fragment Jun 19 22:52:22 ah ok Jun 19 22:52:26 sure, data will be stored as a List Jun 19 22:52:36 but I'm trying to figure out the UI elements Jun 19 22:52:38 hmm Jun 19 22:52:46 I could also contain each list in a View Jun 19 22:53:10 well is it an actual list like a ListView? Jun 19 22:53:34 yeah it should look like a ListView Jun 19 22:53:39 all I have to say about ViewPagers and fragments is to be wary of the life cycle nonsense Jun 19 22:53:41 not sure if I'm going to use ListView or RecyclerView Jun 19 22:54:06 we are releasing our next version of our app soon and the life cycle is nasty with ViewPagers and the fragments inside Jun 19 22:54:35 UI isn't really my strong point though so maybe you should wait for someone else to give some better advice Jun 19 22:55:22 ive been researching this for like 3 weeks lol Jun 19 22:55:28 wtf I didn't expect this to be so hard Jun 19 22:55:39 no idea how to implement dragging items from list to list either Jun 19 22:56:27 yeah Jun 19 22:57:00 maybe I should just try to decompile the Trello App lol Jun 19 22:57:00 ux wise I'm visualizing tap and hold, then the screen zooming out, then maybe showing different bins representing your lists that you can drop them into Jun 19 22:57:21 have you used Trello? I'm trying to clone that Jun 19 22:57:24 more or less. Jun 19 22:57:30 I have no idea what Trello is Jun 19 22:57:33 it sounds familiar though Jun 19 22:57:41 its a productivity web app Jun 19 22:57:47 oh Jun 19 22:57:50 maybe that's why Jun 19 22:58:00 so you're making like a pomodoro kind of thing? or some kind of task manager Jun 19 22:58:10 a kanban board basically Jun 19 22:58:21 multiple lists, each have a category or like a priority Jun 19 22:58:21 oh Jun 19 22:58:30 Backlog, In Progress, and Done for example Jun 19 22:58:36 yeah Jun 19 22:58:40 I know what you mean Jun 19 22:59:12 i wouldn't try to drag from one list to another unless you can see it Jun 19 23:00:01 or you can do what amazon does Jun 19 23:00:08 and let them drag it to the bottom of the screen Jun 19 23:00:22 and it stays there until they do something with it Jun 19 23:04:17 well Trello animates it well Jun 19 23:04:22 the item pops out from the list Jun 19 23:04:40 you can drag it to another list, scroll up and down the list and drop it in the position you want Jun 19 23:04:52 which I have no clue how to even start Jun 19 23:38:45 http://pastebin.com/T9vvC2Db - getting error message > Cause: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0 Jun 19 23:38:49 How can I fix this? Jun 19 23:50:07 http://pastebin.com/T9vvC2Db - getting error message > Cause: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0 Jun 19 23:51:05 No need to post it again. The first message is still there Jun 20 00:02:24 is there an app-wide way to lock screen orientation to portrait or it's per activity? Jun 20 00:03:05 android:configChanges="orientation" android:screenOrientation="portrait"> Jun 20 00:03:18 so no? Jun 20 00:03:19 or landscape Jun 20 00:03:20 oh Jun 20 00:03:21 i see Jun 20 00:03:26 wait Jun 20 00:03:30 that does it for all of them? Jun 20 00:03:36 yes.... Jun 20 00:04:02 you basically keep it the same for all activities you need it on Jun 20 00:04:19 so it doesn't do it for all of them Jun 20 00:04:23 I have to do it on each activity Jun 20 00:07:59 Grekkos, why would you limit orientation? Game? Jun 20 00:12:57 because I'm not designing it for landscape Jun 20 00:24:06 Are you specifically stating that in description? Jun 20 00:24:39 Seems silly if for app and not game Jun 20 00:29:18 indeed. Jun 20 00:29:33 http://pastebin.com/T9vvC2Db - getting error message > Cause: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0 Jun 20 00:29:38 anyone know how to fix that? Jun 20 00:51:07 In Android Studio's "Choose Library Dependency", if I search for "com.android.support:appcompat-v7" it only returns one match for version 24.0.0. This is not the version I want, how do I get a list of all versions? Jun 20 01:33:37 This might be more of a general Java question... Jun 20 01:33:49 Is there any reason this line should cause a NullPointerException? Jun 20 01:33:50 new File(context.getFilesDir() + "/plz_" + puzzleName, sessionName + ".dat") Jun 20 01:34:16 Assume puzzleName and sessionName are valid strings, and that the "context" variable has been set to a valid Context Jun 20 01:34:59 sorry, not nullpointer Jun 20 01:35:05 No such file or directory Jun 20 01:35:22 when I try to take that file and do .createFile() Jun 20 01:35:27 OH wait nvrmnd Jun 20 01:35:34 * HactarCE slaps himself Jun 20 01:36:03 HactarCE, get it all figured out there? Jun 20 01:36:08 I think so Jun 20 01:36:21 http://pastebin.com/T9vvC2Db - getting error message > Cause: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0 Jun 20 01:36:24 excellent. If only all problems were that easy :D Jun 20 01:36:25 Anyone know how to fix it Jun 20 01:37:09 impliednude, is that build version 52 it's referring to? Jun 20 01:38:23 I'm kinda new to this but 52 seems awfully high.. Jun 20 01:39:47 impliednude, when you expand "Gradle Scripts" under Project, and then double click build.gradle (Module: app), what versions are you seeing for compileSdkVersion, minSdkVersion, and targetSdkVersion? Jun 20 01:40:31 impliednude, have you tried googling the problem? seems you need jdk 1.8 Jun 20 01:40:36 Anyone know a good way that my app can keep the device from dimming/locking the screen while app is in running and in the foreground? Jun 20 01:41:26 Yay all my errors went away! :D Jun 20 01:41:31 jesseg, yes! Jun 20 01:41:40 one sec... Jun 20 01:41:53 Jun 20 01:42:12 Add that line before " Then in your onCreate(), add "getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);" Jun 20 01:42:59 You might have to do that for each individual activity, but that's usual better anyway Jun 20 01:43:17 HactarCE, thanks! I actually tried the manifest thing by itself from searching google and that didn't do it but let me try the .addFlags thing! Jun 20 01:43:26 ;) np Jun 20 01:43:38 impliednude, 52 means you're building for java8 which is wrong Jun 20 01:43:43 I only have one activity so that's a great solution Jun 20 01:44:17 keep screen on doesn't require wake lock Jun 20 01:44:59 pfn, ahh, is the manifest part not needed? Jun 20 01:48:57 public final variables should still get serialized, right? Jun 20 01:49:43 (if they belong to an object which is serialized, then deserialized later) Jun 20 01:51:24 HactarCE, your trick works! Seems to work without the modification of the manifest file too. Jun 20 01:51:32 :) really? Jun 20 01:51:34 excellent! Jun 20 02:07:58 android:keepScreenOn="true" in the activity xml file also seems to keep the screen lit.. interesting. Jun 20 02:10:21 pfn> then what should I do? Jun 20 02:11:38 impliednude, have you tried closing the current project and creating a new sample project and see if that's any better? Jun 20 02:14:28 impliednude: it looks as if your java is not compatible with your android studio, according to this: http://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0 Jun 20 02:14:53 update your android sdk, jdk, and possibly also android studio **** ENDING LOGGING AT Mon Jun 20 02:59:59 2016