**** BEGIN LOGGING AT Sun Jul 03 02:59:58 2016 Jul 03 03:06:39 Is https://github.com/nkzawa/socket.io-android-chat a credible official source for socket.io on webgl? Jul 03 03:06:43 erm.. Jul 03 03:06:47 on anrdoid Jul 03 03:06:54 android too Jul 03 03:13:39 How do people usually swap between a surfaceView and a fragment with a list view? Should the surfaceView itself be in a separate fragment Jul 03 03:24:18 I'm cross-compiling a LuaJIT C module, any hint for improving performance (NDK) Jul 03 03:38:55 How do I get the serial number shown on the About Status dialog? Jul 03 03:40:19 Google suggests using android.os.Build.SERIAL, but on my device this returns 3004636c76e27200 instead of the serial shown on the dialog which is R52G900907Y. Jul 03 03:41:47 I already checked all the other documented constants in android.os.Build but none of them matches R52G900907Y. Jul 03 03:43:58 Looks like this does the trick: http://stackoverflow.com/a/18071939 Jul 03 03:45:35 How do you quickly make a string "TAG" into a global final variable? is there a shortcut? Jul 03 04:45:04 Giant Meteor 2016 ! Jul 03 04:45:35 "Hindsight is 20/20, Make earth great again!" Jul 03 04:49:12 lol a bumper sticker https://www.amazon.com/Giant-Meteor-2016-Bumper-Sticker/dp/B01G4FRUTI Jul 03 04:58:41 Anyone in here subscribe to caster.io? I am considering it. Is it worthwhile? Jul 03 05:01:44 sd512: what's wrong with udacity Jul 03 05:01:45 ? Jul 03 05:11:00 hey thepoosh Jul 03 05:11:04 hi hi Jul 03 05:11:06 sup? Jul 03 05:11:17 not much, it was a boring week in android land Jul 03 05:11:36 what did I miss while on vacation in the Israeli riviera? Jul 03 05:11:52 thepoosh i guess htc is doing the next 2 nexus devices, Jul 03 05:12:03 pretty identical except for size Jul 03 05:12:08 I thought google are making the next one Jul 03 05:12:29 maybe sometime down the road, that was pretty iffy rumor though Jul 03 05:12:31 also, I am happy that at last there'll be an HTC device without their disgusting OS Jul 03 05:12:35 they suck ass Jul 03 05:12:47 lol Jul 03 05:13:12 do you know they wrap all the JNI exceptions in the OS and don't give them to the dev? Jul 03 05:13:26 but wrap them in some custom fingerprint and stacktrace Jul 03 05:13:30 no idea Jul 03 05:13:37 yep Jul 03 05:13:42 happened on the M8 Jul 03 05:13:42 thepoosh, I have not been on udacity in a while, but it seems more like full courses where caster is a bit more targeted at specific skills. Jul 03 05:14:10 thepoosh O.o Jul 03 05:14:10 there are many learning material websites like vogella and commonsware Jul 03 05:14:18 Ive heard some praises of caster too. Just wanted to see if anyone here had any opinions Jul 03 05:14:28 well, never been there Jul 03 05:14:38 I get my learning from here, SO and d.android.com Jul 03 05:15:00 thepoosh did you see that /r/androiddev post about the typical day ? Jul 03 05:15:09 nope, link? Jul 03 05:15:16 reddit.com/r/androiddev :P Jul 03 05:15:23 sd512: yep Jul 03 05:15:31 g00s typical day: start coding. bug in android api or docs. goto SO. repeat Jul 03 05:15:46 that is were all the fun and patronising are at Jul 03 05:16:04 https://www.reddit.com/r/androiddev/comments/4qwgj2/professional_android_devs_describe_your_day/ << full link Jul 03 05:16:11 g00s: forgot reading source code, cursing out and burring head in hands Jul 03 05:16:37 heh yeah Jul 03 05:17:03 g00s: also git blame, go to colleague's chair, start arguing, fist fight, ice box because I'm weak Jul 03 05:17:09 Do you guys both do android dev professionally? Jul 03 05:17:20 thepoosh i was thinking for a topic of blog, deconstructing each gapp and discussing its design. but the few i've taken apart so far are just a fucking mess anyhow Jul 03 05:17:38 sd512: I am Jul 03 05:17:53 thepoosh lol fist fight Jul 03 05:18:01 never got that far Jul 03 05:18:06 not enough n00bs Jul 03 05:18:18 thepoosh are you in the us? Jul 03 05:18:28 nope, Israel Jul 03 05:18:32 ah cool Jul 03 05:21:50 thepoosh are you trying AS 2.2 yet ? Jul 03 05:22:11 no time, I am now a team coordinator so I can't waste time Jul 03 05:22:20 sure Jul 03 05:22:20 * thepoosh is talking on irc while wasting time Jul 03 05:22:32 but I am waiting for it Jul 03 05:22:33 lol Jul 03 05:22:38 is it working better now? Jul 03 05:22:48 it was a pain in the ass in the first release Jul 03 05:24:56 i haven't bothered yet either Jul 03 05:25:07 no idea how far preview 4 is away from final release Jul 03 05:25:59 g00s: I just saw the worst thing Jul 03 05:26:01 :( Jul 03 05:26:18 query an entire DB table in order to string match and update Jul 03 05:26:32 instead of making it all in the same query Jul 03 05:26:54 since I don't have resources I can't fix it now Jul 03 05:26:58 ;( Jul 03 05:28:00 haha, time to git blame, go to coworker, begin first fight :) Jul 03 05:29:34 the guy got fired Jul 03 05:29:40 I now exactly who did it Jul 03 05:29:52 the code stinks from hackishness Jul 03 05:30:26 also, working from home this morning Jul 03 05:33:08 thepoosh did you know you can id git commit with :/foobar Jul 03 05:33:21 foobar being text in commit message Jul 03 05:33:28 nope Jul 03 05:33:32 i have a collapsing toolbar layout with some tabs in it and i want to animate the tabs when it is collapsing or expanding. Do I need to hook the collapsingtoolbar or the appbarlayout? seeing conflicting posts Jul 03 05:33:47 did you know you can see commits in the code in AS with enabling annotations? Jul 03 05:34:16 collapsing toolbar? Jul 03 05:34:26 yes Jul 03 05:34:29 WeAreOneMind: are you using coordinatedlayout? Jul 03 05:34:32 yes Jul 03 05:34:35 oh Jul 03 05:35:03 WeAreOneMind i think you just want AppBarLayout, not CollapsingToolbarLayout Jul 03 05:35:21 i mean, maybe you do, but its pretty weird Jul 03 05:35:51 when the collapsing toolbar is expanded the tabs default to wrap_content for width but when collapsed i need them to fill the toolbar's width Jul 03 05:36:31 figured i could grab the layout params, the difficulty is figuring out how to hook into the scroll. onscrollchangelistener is not working as expected :\ Jul 03 05:36:32 http://antonioleiva.com/collapsing-toolbar-layout/ Jul 03 05:36:35 seems good Jul 03 05:38:05 no, i already have it set up and working on that front. just not for the scroll event itself Jul 03 05:40:21 one second, I will take a screenshot to illustrate Jul 03 05:50:47 hello Jul 03 05:51:22 im having a problem guys, i have some xxhdpi images i use on my app, but when i send the app to my nexus 5x the images look smaller than they must be, what could be the problem? Jul 03 06:09:39 dunkel2: it's probably a layout definition and not the image itself Jul 03 06:18:49 placeholder icons and 2 screens later: http://imgur.com/a/6mLzP Jul 03 06:19:22 i want to have a parallax effect so the tab buttons expand to fill the bar when the collapsing toolbar is collapsed Jul 03 06:20:27 thepoosh: i just have a main layout for that activity and the imageview Jul 03 06:20:49 dunkel2_: pastebin the layout.xml Jul 03 06:27:16 thepoosh: http://kopy.io/9Ygvk Jul 03 06:28:58 dunkel2_: and you're saying wt_logo is not displaying nicely? Jul 03 06:30:44 Anyone have any idea what this callback is meant to do?: https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html#onInterrupt() Jul 03 06:31:37 I have to implement it since it's abstract but I have no idea what's it meant to do... Jul 03 06:32:49 Maybe if you're speaking a sentence to the user, it's meant to interrupt that? Jul 03 06:33:31 yes Jul 03 06:33:38 and other image that is inside the pager Jul 03 06:33:41 is smaleer too Jul 03 06:33:49 like if it is getting the images on xhdpi Jul 03 06:33:55 instead of xxhdpi Jul 03 06:34:07 and the images on the folders are correct Jul 03 06:44:09 any idea thepoosh Jul 03 06:44:42 are you sure this is not happening due to the margin and layout params? Jul 03 06:45:43 let me try it on a clean layout Jul 03 06:47:09 have the imageview wrap_content for height and width in the dead center of a clean layout and see Jul 03 06:53:09 thepoosh: even in the preview looks small on a nexus 5x like if it is making the imageview smaller that the wrap_content Jul 03 06:54:18 nope, that is the actual size of your image Jul 03 06:56:18 on a nexus 5 preview it is ok Jul 03 06:56:29 and the screen size is the same isnt it? Jul 03 06:56:39 1920x1080 Jul 03 07:01:18 any ideas for my issue? Jul 03 07:05:22 Hi at all, I want to make a bit for bit backup of /data partition, so I connected at my device trough adb, setting root and typed Jul 03 07:06:16 dd if=/dev/block/(datablockhere) | nc -l -p 7000 Jul 03 07:06:43 And on my linux system I typed Jul 03 07:07:19 adb forward tcp:7000 tcp:7000 Jul 03 07:08:01 nc 127.0.0.1 7000 > /mypath/data.img Jul 03 07:08:29 However, the transfer stops at 8 GB, and there's 11 GB Jul 03 07:08:49 There's something I have made wrong? Jul 03 07:51:25 what does this mean drawable-w420dp Jul 03 07:51:35 the w is for width? Jul 03 07:53:16 min wid in dp afaik Jul 03 08:08:33 hello Jul 03 08:09:02 where can I save all the data on app. for example users registration etc. Jul 03 08:13:50 hello? Jul 03 08:14:07 in a db on your internal storage? Jul 03 08:14:20 or SharedPreferences Jul 03 08:14:28 indeed Jul 03 08:15:13 like for example, if I wanna login. where are the credentials for login stored? server? Jul 03 08:15:36 login to what? Jul 03 08:15:41 to an app Jul 03 08:15:52 my app. Jul 03 08:15:58 I want user to register Jul 03 08:16:05 how can we do remotely Jul 03 08:16:19 well, u make a db for it, and u can use some backend server to respond to registration events Jul 03 08:16:28 alright. thanks :) Jul 03 08:16:34 any reference? Jul 03 08:19:11 https://www.learn2crack.com/2013/08/develop-android-login-registration-with-php-mysql.html Jul 03 08:19:16 dis is from basic googling Jul 03 08:19:22 so we need to Jul 03 08:19:23 havnt tested it Jul 03 08:19:24 learn php Jul 03 08:19:28 and mysql Jul 03 08:19:30 right? Jul 03 08:19:39 not really Jul 03 08:19:52 but you need to use basic operations of both Jul 03 08:19:59 I see Jul 03 08:22:33 thanks raoul11 Jul 03 08:22:41 goodluck Jul 03 08:22:45 should be some ride Jul 03 08:30:22 i have this problem where my app, when i install it directly to my phone, let's me authenticate with my Google account. but auth doesn't work when i install the app from the play store. any ideas what i should be looking for? Jul 03 08:31:42 Anyone around? Jul 03 08:49:58 I created a new projet and for some reason the run configurations wreren't preset. WHat gradle task do I need to run is order to build my app and upload & run it to a device? Jul 03 09:08:12 ANyone? Jul 03 09:28:14 I figured that out, but now I get this error, it asks me to configure my build for VectorDrawableCompat, how do I do that? (https://gist.github.com/anonymous/312e0d2631a54536a7c2e029e93ff0da) Jul 03 09:42:16 hi guys :) Jul 03 09:42:47 guys, is this a correct line for dependency declaration? Jul 03 09:43:04 debugCompile project(path: ':libraries:mylib', configuration: 'debug') Jul 03 09:43:58 because it gives me an gradle sync error and says: "Configuration with name 'debug' not found." Jul 03 09:55:35 see if you DEBUG present in that path/folder Jul 03 10:06:05 in my library output folder, there is only 1 aar/ folder with 2 files in it: mylib-release.aar mylib-debug.aar Jul 03 10:06:47 it should automatically pick mylib-debug.aar,isn't it? Jul 03 10:14:47 Let's say that some asshole has a grudge on me and knows that if they click on my ads repeatedly, I'll get penalized or banned by AdMob. How willing is Google to see my proof that it's not me or my friends or whatever? Jul 03 10:15:20 I'm actually afraid to post this to my friends because of this Jul 03 10:16:02 *to post my app Jul 03 10:35:22 could someone help me with an issue I am having with scope in my android project, i am passing an object from my mainactivity to my fragment using a public method updateUI. This works fine and can see my object being passed to the fragment. In the fragment i have a private method updateDisplay() on my onCreateview which will use that object and start assigning the values to my various edittexts etc. The problem is that when i call the Jul 03 10:35:23 updatedisplay() my object is null, any ideas http://pastebin.com/uyASkFke Jul 03 10:45:50 this has had me stomped for days, any ideas? Jul 03 10:45:52 updateDisplay is called in onCreateView of your fragment which is created before you update the value of personData. Jul 03 10:46:18 yeah thats what i was thinking, so when should i call that? Jul 03 10:46:40 can't you pass the person data object in the constructor of your fragment? Jul 03 10:47:26 its doesn’t seem to allow me to pass anything into the constructor of a fragment or even add a new constructor Jul 03 10:48:31 you could pass it in your newInstance method Jul 03 10:48:54 and existing instances could just call a setter method if it needs updating Jul 03 10:49:19 but i’ve been told that you should not pass objects in the newinstance, it should just be for strings, int etc... Jul 03 10:49:25 I've done something similar, I'm just trying to find how I did it Jul 03 10:49:31 k, thx Jul 03 10:49:49 i can defo pass it in my newinstance but i was told this is no best practice :( Jul 03 10:49:58 that makes sense Jul 03 10:51:07 It might be against best practice but I've done the same thing :P Jul 03 10:51:23 http://pastebin.com/pw7dKVPt Jul 03 10:52:54 I then have a private constructor to take those args Jul 03 10:54:22 k, yeah, to be honest the object from my example is just a sample, the object i am returning is a json object which is huge and I just wanna follow best practice throughout my app, but yeah your way will defo work Jul 03 10:55:02 let me know if you do find another way as I want to stick to best practice too! Jul 03 10:55:46 lol, i know, i’ve only started developing my app but this has me stuck for last couple of day and am getting no where lol, thx for you help anyways Jul 03 10:56:25 no problem, sometimes it's best to just do it so you can progress and then come back to it (My current app is for uni so I have deadlines so I just need to get it done) Jul 03 10:57:06 true, mines for a demo for a contract I’m trying to get so it might just be I fudge it for now Jul 03 10:57:41 Anyone done a custom info window in a mapView on android wear? The default info window pops up with information just fine, but when I use my custom info window with pop up adapter it just appears blank (this same custom info window works fine on my phone) Jul 03 10:58:01 I can provide screens if needed Jul 03 11:04:53 hey guys, why do my apps sometetimes end up in /data/app/com.foo.myapp-1/lib/(arch)/lib ? Why the -1 ? Jul 03 11:05:19 (And what would be the best way to figure out this location from the NDK?) Jul 03 11:16:28 It switches between -1 and -2 every time the app is updated Jul 03 11:16:37 I suppose it creates the new apk, then deletes the old Jul 03 11:16:53 Just use the java APIs for getting the path (easily googled) Jul 03 11:21:02 SimonVT: there isn't any NDK function for that? Jul 03 11:21:32 having it switched is very annoying, having the whole path location totally changed is very annoying... calling Java API is extremely annoying. Jul 03 11:24:05 No, the android api is java Jul 03 11:28:10 SimonVT: there are a whole bunch of NDK API exposed? Jul 03 11:30:35 There'a a limited set of APIs available to make it less painful to create native apps, but the android api as a whole is in java Jul 03 11:32:02 well yes I'm well aware of that, but sounds to me like this should be in the limited set of APIs as it is so basic :P Jul 03 11:34:07 getPackageCodePath is the key :) Jul 03 11:36:17 I don't see how getting the apk path is basic Jul 03 11:36:26 Not very many need to do that Jul 03 11:40:00 SimonVT: Loading shared libraries? Jul 03 11:40:19 It's very common from the NDK Jul 03 11:42:19 In java there's System#loadLibrary, doesn't require the apk location Jul 03 11:43:03 ESphynx, http://android-developers.blogspot.fr/2016/06/android-changes-for-ndk-developers.html Jul 03 11:44:13 arg wrong link, i meant: http://android-developers.blogspot.fr/2016/06/improving-stability-with-private-cc.html Jul 03 11:44:36 they're gonna restrict more lib loading Jul 03 11:46:21 adq: right Jul 03 11:47:28 usually you don't need what you asked for, you just load lib in /data/data/packagenameofyourapp/lib Jul 03 11:48:08 you can check after an apk (which contains lib) where they are Jul 03 11:48:31 it's a bit confusing at first, because the dir tree is different before being built and installed Jul 03 11:50:57 adq: that's where I used to load from Jul 03 11:51:13 but then the -1 and it changed to /app/data/ and then it added a /arm64/ on my Nexus 9 Jul 03 11:51:30 that's not the same path you are referring too Jul 03 11:53:55 is it not? Jul 03 11:54:16 data directory != unpacked apk dir Jul 03 11:54:27 of course, they might have most of files in common Jul 03 11:55:54 anyway, i just recommand that you load your lib from /data/data/packagenameofyourapp Jul 03 11:56:18 if you are curious, you can spawn adb shell and look at those different pathes Jul 03 11:57:21 Can I add something like a boolean "inside" a View? Jul 03 11:57:53 sure Jul 03 11:58:21 adq: I used to load from there, then it started failing. Jul 03 11:58:44 could be wrong path (because of -1 -2) or permission issues too Jul 03 11:59:02 adq: you were talking to me? Jul 03 11:59:48 Nevermind. Just learned about tags. Jul 03 12:00:43 it's not always -1 or -2, it can be an arbitrary high number Jul 03 12:00:52 adq: quite sure I also had to go to /data/app Jul 03 12:01:02 and also had to add the /arm64/ Jul 03 12:06:05 WHen you use GPGS do you have to sign the app with the real release key and not the debugkey? Jul 03 12:06:06 http://stackoverflow.com/questions/20756769/android-play-games-services-is-incorrectly-configured-anyone-know-how-to-fix Jul 03 12:06:08 i get that Jul 03 12:06:39 you can bypass that if you add the sha-1 of your debug key Jul 03 12:07:01 sss_, there is another console: https://console.developers.google.com/project?pli=1 Jul 03 12:07:12 erf sdd* Jul 03 12:12:13 adq: what is that? Jul 03 12:12:20 how do i bypass? Jul 03 12:12:47 hmm Jul 03 12:12:55 sorry, it was for sdd Jul 03 12:13:04 hmmapparently i am sdd and sss_ Jul 03 12:13:47 well, if you want to test play service with an apk signed with your debug key, you need to add the corresponding sha1 Jul 03 12:14:08 OK, how is it done? Jul 03 12:14:37 you take the sha1 of your debugkey and you copy/paste it to the corresponding field -_-" Jul 03 12:16:15 i'm going afk, good luck, you will probably find more info (but i did it for play games so it works) if you need online with a simple search Jul 03 12:16:42 also, this is not that hard to do Jul 03 12:16:56 and there is info about it in the google developer website Jul 03 12:21:43 When creating an anonymous inner class, do I *really* have to override ALL the methods? It just takes up so much space X_X Jul 03 12:23:21 How do I change project name? Jul 03 12:23:56 Android Studio 2.1 Jul 03 12:24:31 purplex88: how do you mean project name? Jul 03 12:24:45 MisterGadfly: you must override all abstract methods Jul 03 12:24:51 it's a java thing Jul 03 12:24:52 thepoosh: my project Jul 03 12:25:05 project name or applicationId? Jul 03 12:25:06 thepoosh: *Darth Vader voice* noooooooooooo Jul 03 12:25:16 thepoosh: everything Jul 03 12:25:25 MisterGadfly: I feel a great disturbance in the force by your n00bness Jul 03 12:25:44 thepoosh: whats id? Jul 03 12:25:47 purplex88: well, I think the project name is defined in one of the iml files but why would it matter Jul 03 12:25:56 applicationId is the packagename Jul 03 12:26:19 yes packagename too Jul 03 12:26:31 because it contains project name Jul 03 12:26:42 com. Jul 03 12:27:18 thepoosh: i want to start a new project with same name Jul 03 12:27:25 that is not the project name, it's the applicationId and you change in app/build.gradle Jul 03 12:27:29 so renaming old Jul 03 12:27:37 that sounds so wrong Jul 03 12:27:50 why not just start a new project with a new project name?! Jul 03 12:27:51 how was eilat thepoosh /: Jul 03 12:28:00 thepoosh: first i want to change project name Jul 03 12:28:10 raoul11: it was nice Jul 03 12:28:22 hot as f? Jul 03 12:28:25 now sitting in new cloths trying to fill in 3 days of work in one Jul 03 12:28:34 it was actually not that bad Jul 03 12:28:37 outsource stuff to elance Jul 03 12:28:39 37-43 Jul 03 12:28:41 thepoosh: like "hello word" to "goodbye world" Jul 03 12:28:49 that is retarded Jul 03 12:28:52 felt like 50 in tlv Jul 03 12:28:54 just create a new project Jul 03 12:29:01 i cannot Jul 03 12:29:09 raoul11: i know, went to my parents for the weekend, in Rehovot Jul 03 12:29:10 with same name Jul 03 12:29:13 was hot as fuck Jul 03 12:29:19 purplex88: well, try harder Jul 03 12:29:20 humidity man Jul 03 12:29:23 names are stupid Jul 03 12:29:28 lol harder Jul 03 12:29:37 not kidding Jul 03 12:30:05 thepoosh: thx will look Jul 03 12:30:19 you can physically delete the old project Jul 03 12:30:31 or move the old one to a different location on disc Jul 03 12:31:26 raoul11: you work in TLV? Jul 03 12:31:35 work and live Jul 03 12:31:40 my friend is trying to make me go and work with her in Saluto Jul 03 12:31:43 in the same place Jul 03 12:31:44 do you know them? Jul 03 12:31:50 freelance? Jul 03 12:32:08 i used to know soluto Jul 03 12:32:15 used to? Jul 03 12:32:34 one of the founders was in mehubarim Jul 03 12:32:40 the first season Jul 03 12:32:56 second, first season was all girls Jul 03 12:33:11 right, for the boys Jul 03 12:33:22 meh Jul 03 12:33:24 won tech-crunch that year afaik Jul 03 12:33:28 didn't like that show Jul 03 12:33:46 we won the crowd choice in TC Jul 03 12:34:01 whats your business model btw? Jul 03 12:34:02 still have the trophy here Jul 03 12:34:13 סקס סמים ורוקנרול Jul 03 12:34:22 sorry for UTF8 guys Jul 03 12:34:24 nice, same as mine Jul 03 12:34:30 fuckall bout money (: Jul 03 12:34:32 סקס סמים רוקנרול ואיי אר סי Jul 03 12:34:37 oh look Jul 03 12:34:40 another one Jul 03 12:34:53 indeed Jul 03 12:34:54 holdsworth: you're from here as well? Jul 03 12:34:58 yeah, tlv Jul 03 12:35:15 why can't you be from JLM Jul 03 12:35:16 tlv masterace /: Jul 03 12:35:17 so lonely Jul 03 12:35:38 you have a tlv branch as well thepoosh ? Jul 03 12:35:55 RG Jul 03 12:35:58 where are you guys from? Jul 03 12:36:10 this is our business model: http://cdn.crowdfundinsider.com/wp-content/uploads/2014/09/Southpark.png Jul 03 12:36:11 tlv Jul 03 12:36:13 raoul11: ^ Jul 03 12:36:18 I am from near jlm Jul 03 12:36:23 originally? Jul 03 12:36:31 rehovot Jul 03 12:36:32 thats exactly my business model Jul 03 12:36:39 near rehovot originally /: Jul 03 12:36:47 LOL Jul 03 12:36:51 raoul11: Ekron? Jul 03 12:36:54 la morse thepoosh ? Jul 03 12:36:55 bnei eish? Jul 03 12:36:58 further up Jul 03 12:37:04 elazariya? Jul 03 12:37:18 karme Jul 03 12:37:45 לֹשמםא Jul 03 12:37:48 Kanot Jul 03 12:38:07 de shalit or the other one thepoosh ? Jul 03 12:38:25 nah, religious. not from Katzir or de-shalit Jul 03 12:38:39 had a few de shalit gf's when i was younger Jul 03 12:38:41 oh Jul 03 12:38:47 menuchavanahala? Jul 03 12:39:15 holdsworth: indie/freelance/corp? Jul 03 12:40:22 raoul11: corp Jul 03 12:41:00 enjoyin it? Jul 03 12:43:01 raoul11: nope, Kiriat David Jul 03 12:44:01 unfamiliar with that part of rehovot Jul 03 12:44:12 next to Haganah Jul 03 12:45:23 u still live in rehovot or jlm? Jul 03 12:46:07 Tekoa Jul 03 12:48:13 libermans neighboor (: Jul 03 12:50:37 that is me Jul 03 12:55:02 thepoosh: i just created a project and moved files Jul 03 12:55:25 so annoying not to be able to rename Jul 03 12:56:08 i wanted to rename project directory as well and everything associated Jul 03 12:57:08 purplex88: the annoying thing is that you feel that you MUST use the same name for a different project Jul 03 12:57:51 Good day, In the development documentation it is stated that event.values[0] for the Sensor.TYPE_AMBIENT_TEMPERATURE will return the temperature in degrees C. I know that the battery temperature is given like 300 if its 30.0 deg C and 401 if its 40.1 deg c. Now my question is what exactly with event.values[0] return ? 30.0 or 300 or 30.00000 or what ? Jul 03 12:58:25 battery :| Jul 03 12:58:32 I don 't have a device with an ambient temp sensor to test out. Not sure about the emulators... Jul 03 12:58:45 Oh look a battery. Jul 03 12:58:57 * NeoFrontier points at battery Jul 03 12:59:06 stop plz Jul 03 12:59:14 :) Jul 03 13:09:35 thepoosh: all i had to do was move manifest, res, and java files Jul 03 13:13:32 Can someone help me? I cannot figure out how to sign to use my debug ceritificate with GPGS Jul 03 13:14:10 Why the hell don't the Android docs specify in WHAT the parameters are? Pixels? DP? Jul 03 13:19:45 MikeClassic: where? Jul 03 13:20:15 if you mean in XML its usually like width = "20 dp" Jul 03 13:25:33 purplex88: maybe it's just my noobishness, but when I read the method parameters that handle sizes, I'm not sure if they're in pixels or whatever Jul 03 13:27:28 MisterGadfly: do you have docs link? Jul 03 13:29:08 purplex88: like this one https://developer.android.com/reference/android/widget/PopupWindow.html#PopupWindow(android.view.View,%20int,%20int) Jul 03 13:30:46 How do I sign my debug app with my real key? Jul 03 13:30:53 I need to for GPGS (I think) Jul 03 13:46:06 How do I sign my debug app with my real key? Jul 03 13:46:13 Is it not possible? Jul 03 13:48:24 is there a way to use samsung s4 with borken screen as developing device? so that I can see and click everything from within PC monitor? Jul 03 13:50:56 You could try Vysor, but it's a pretty silly way of doing things. Use emulator instead. Jul 03 13:53:20 Mavrik: it's two way question, sometimes I needed to show thing from my laptop screen Jul 03 13:53:31 in a presentatin for example Jul 03 13:55:01 but anyway, vysor requires a fully functional android device to be able to install and configure the app Jul 03 13:55:13 Obviously :) Jul 03 13:56:22 yes but not if I could do it from adb Jul 03 13:57:53 So Google Play Rape Services, is it really worth the enormous pain? I mean they even lock in your data in the end... Jul 03 13:58:19 sss_, just how long are you going to persist with trolling here? Jul 03 13:58:41 until i manage to get GPGS to work Jul 03 13:58:45 im not trolling Jul 03 13:59:09 TheLawyer, if anyone could just connect to a phone via USB and then control it, it would make security pointless. So it's not possible to gain access without working touchscreen and passphrase. Jul 03 13:59:13 sss_, yes you are. Jul 03 13:59:14 Go away. Jul 03 14:01:55 well you can control it...after a hard reset Jul 03 14:05:14 so there are 3 ways people can get money from developing android programms right ? Jul 03 14:05:46 just 3? Jul 03 14:06:07 they are 1) paid software 2) add supported software 3) free software, that is donation based Jul 03 14:06:22 JustinHitla: and there is ransomware Jul 03 14:06:23 so which one of the best way to get more and fast money and which one is worse ? Jul 03 14:06:25 ads? Jul 03 14:06:37 in-app purchases? Jul 03 14:06:52 I don't know what "in-app purchases" Jul 03 14:06:53 oh, "add" is supposed to mean ads. Jul 03 14:07:05 yes "ads supported software" Jul 03 14:07:22 where you see ads when you use the programm Jul 03 14:07:28 the best one would be ads Jul 03 14:07:34 it depends entirely on your target audience. Jul 03 14:07:42 so donation is the worst one ? not many people wants to donate nowadays ? Jul 03 14:07:50 nobody donates, yes. Jul 03 14:08:14 what is ransomware ? Jul 03 14:08:26 well if your target is international its definitely ads Jul 03 14:09:06 many countries still lack the ability to have proper google play transactions Jul 03 14:09:45 JustinHitla: virus. it encrypts the system and demands money for decryption Jul 03 14:11:02 you can also mine bitcoins :D Jul 03 14:12:03 mining bitcoins on an android phone seems far-fetched Jul 03 14:12:10 Just target hipsters. Loads of cash and all you have to do is a stick figures platformer game and call its cheapness next-gen ultra-innovative mega-artistic super-awesome. Jul 03 14:12:59 like flappy bird or minecraft. Jul 03 14:14:25 razor1101: the fact that so many kids play Minecraft scares the living hell out of me. Their brains will grow into mush. Jul 03 14:15:38 MisterGadfly: its in pixel, you can convert it to dp Jul 03 14:15:43 JustinHitla, there's also purpose built software to support services Jul 03 14:15:54 Which is usually the best way to earn money as an Android dev :) Jul 03 14:18:49 MisterGadfly: Kids are quite pampered these days. Jul 03 14:21:18 razor1101: I'm actually 23 and I know what you're talking about. I consider myself pampered as well. :D Jul 03 14:22:04 razor1101: what I'm really worried about is the fact that this kind of simple games probably screw up developing brains Jul 03 14:24:39 that sounds like rubbish. Jul 03 14:30:11 yawkat: it's ok. You're in denial because you don't want to feel guilty for making slot machine apps. Jul 03 14:30:34 If I want to connect via https from my Android app to a backend supporting https, do I need any extra certs or does Android provide satdard certs so that this is possible? Jul 03 14:30:39 what kind of apps do you make MisterGadfly Jul 03 14:30:49 MisterGadfly: i dont even write games Jul 03 14:30:52 rake_boss: just making my first one :D Jul 03 14:31:08 rake_boss: and I don't wanna say Jul 03 14:31:25 yawkat: just making a joke :) Jul 03 14:31:27 noice noice, ill catch up to you as soons as i learn design Jul 03 14:31:50 ill be making several apps/games per day putting them on the store Jul 03 14:32:02 will make me rich Jul 03 14:32:19 rake_boss: well, good luck to you :P Jul 03 14:32:44 rake_boss: as long as you don't compete in the Romanian market (mine), then I have no reason to give a damn :P Jul 03 14:33:21 im competing with everybody, the international market. take on the whole world Jul 03 14:33:42 rake_boss: sounds like you've been watching too many Ted videos :D Jul 03 14:35:08 O.o Jul 03 14:39:27 hi everybody Jul 03 15:18:35 hey all Jul 03 15:19:46 Has anyone test there app on the Android Virtual Devices for firebase test lab? Jul 03 15:51:57 Hey guys. So I'm writing an app and using NativeScript but the SQLite and Loki plugins are a little outdated. Is parsing a <2000 line CSV (To create an array of objects I store in the application's document directory) something unreasonable for a mobile application? Jul 03 15:52:59 The parsing will likely be once-off and then there will only be random access in the array (Using keys) or a full traversal for displaying the items. Jul 03 16:02:11 the topic in this room, does it include eyecandy like animated backgrounds n such? Jul 03 16:02:48 -i want to learn how to make live backgrounds that react to touch Jul 03 16:07:10 For GPGS achievements, how do you just fetch the achievements the player has made? Jul 03 16:07:52 ZeloZelos: make an animated background that reacts to touch... user touches it a lot... *boom* ad popup and get revenue. Dude, you're a genius! Jul 03 16:09:26 hello Jul 03 16:11:15 DearVolt, no it's not. Just don't do it on main thread. Jul 03 16:11:27 is any of you not satisfied with the user interface of modern OS, including Android? Jul 03 16:11:50 Nope. Jul 03 16:14:33 MisterGadfly, welll not the idea no..such as snow, when you drag to switch screens to change from just falling to "blowing" across from the direction you swiped your finger Jul 03 16:15:08 Mavrik: Thanks. Do you know of any other ways to persist data in NativeScript? The CSV has ~80 columns. Jul 03 16:15:32 I have no idea what nativescript is :) Jul 03 16:15:43 But SQLite is by far the best way of storing / retrieving such data on Android Jul 03 16:20:08 i dislike the user interface of Android, and I would like to create a launcher Jul 03 16:20:19 is anyone interested in contributing? Jul 03 16:21:05 Huh. Jul 03 16:24:09 aoeu, the sad thing is that the day has only 24h and my back aches Jul 03 16:25:09 bitkiller: what do you do during your productive hours? Jul 03 16:25:24 he sleeps Jul 03 16:25:52 razor1101, :) Jul 03 16:26:24 alrihgt gonna figure out how to combine these two blogs http://saigeethamn.blogspot.com/2010/12/creating-android-ui-programmatically.html and http://www.cannonade.net/blog.php?id=1521 Jul 03 16:26:32 work, take care of the kids, study, take a walk Jul 03 16:26:35 bitkiller: it's okay not to care about making the world better Jul 03 16:26:42 bitkiller: don't blame lack of time Jul 03 16:27:03 oh Jul 03 16:27:08 15 year old entrepreneur alert Jul 03 16:28:16 i vomit a little bit in my mouth every time i hear the word entrepreneur these days Jul 03 16:28:43 why Jul 03 16:28:52 rosten: you'll get sick when you see kickstarter then. Jul 03 16:29:10 rosten: just think of me as the ghandi of software Jul 03 16:29:24 gandhi* Jul 03 16:29:25 "ghandi" Jul 03 16:29:49 razor1101: i gave some money to oculus actually Jul 03 16:30:20 rosten: that's some good spending. Jul 03 16:30:32 got the t-shirt and everything, threw it away when facebook bought them Jul 03 16:30:57 sorry, i lost that ambition (making the "world" better) when i was 11. Jul 03 16:30:58 facebook likes to be the next google. Jul 03 16:33:23 why does ambition die? Jul 03 16:33:26 are you a lower being? Jul 03 16:35:02 maybe from coding android. coding iphone is frankly inspiring Jul 03 16:35:48 android is good enough tho. i can get what i want. its just harder. Jul 03 16:36:29 i dont know what good enough means Jul 03 16:38:57 its like difference between car made in 2015 versus 1995 Jul 03 16:38:59 slightly above a threshold of satisfaction Jul 03 16:39:54 car made in 1995 is vintage and priced higher? Jul 03 16:42:11 maybe some of it is due to more heterogeneous device ecosystem. thats definitely been hard on windows. but i think its more like just a systematically inferior api Jul 03 16:42:35 oh well its really not that big of a deal Jul 03 16:43:58 maybe it Jul 03 16:44:09 maybe it's just java* Jul 03 16:44:42 iOS has MUCH saner API than Android Jul 03 16:44:45 it's not even fair Jul 03 16:47:20 So how csn I get a list of achievements for a player without starting an intent/activity to show them? I just want to show them with my own grphics instead Jul 03 16:47:24 (GPGS) Jul 03 16:49:20 you can retrieve the achievement list & related data/value and display them as you wish Jul 03 16:51:41 secureComm, https://developers.google.com/android/reference/com/google/android/gms/games/achievement/Achievements.html#public-methods Jul 03 16:51:45 rtfm ffs Jul 03 16:52:23 Anyone know why a popup ScrollView won't have a transition animation despite setting it with setAnimationStyle() Jul 03 16:52:29 ? Jul 03 16:52:40 well, at least ios compilation time is shorter ;P Jul 03 16:53:23 why don't you people have ambition? Jul 03 16:53:27 you don't want to make things better? Jul 03 16:53:31 you just accept the status quo? Jul 03 16:53:32 why? Jul 03 16:53:53 you should get kicked for troll offense Jul 03 16:53:57 ?? Jul 03 16:53:58 aoeu: Wrong channel Jul 03 16:54:00 i'm dead serious Jul 03 16:54:04 oh Jul 03 16:54:31 that might be true Jul 03 16:54:32 aoeu: we're too busy swimming in all that money we earn from developing android apps Jul 03 16:54:35 sorry Jul 03 16:54:43 i build Android and iOS apps Jul 03 16:54:44 Anyone that used GPGS for multplayer? How do you send game data the first time, like you should play this puzzle against each ohter. I assume that is possible? Jul 03 16:54:47 guy Jul 03 16:55:03 I'm trying to depend on a library like this: debugCompile project(path: ':libraries:keyhanjni', configuration: 'debug') Jul 03 16:55:10 CedricBeust: I was talking about improving Android though, so it was slightly related. Jul 03 16:55:14 secureComm, you can start with a simple turn-by-turn mechanism Jul 03 16:55:15 but I get configuration 'debug' not found. Jul 03 16:55:18 any idea why? Jul 03 16:55:28 secureComm, read the tutorials Jul 03 16:55:49 gordon_: is building Android apps well paid where you live? Jul 03 16:56:36 I earn 35k USD building iOS and Android apps here Jul 03 16:57:08 yes it's paid well :P Jul 03 16:57:23 where is that? Jul 03 16:57:24 california? Jul 03 16:57:35 no :D Jul 03 16:57:47 I like how you assume that I live in states :D Jul 03 16:57:59 salaries are low outside of the US Jul 03 16:58:04 yeah Jul 03 16:58:08 i nowhere near 50k Jul 03 16:58:14 and i do both iOS and Android Jul 03 16:58:18 tell that to my healthcare :D Jul 03 16:58:25 i can't imagine how much an Android and iOS dev would make in the US Jul 03 16:58:45 actually, i also do Windows Jul 03 16:58:49 so i cover all 3 OSes Jul 03 16:59:22 imagine, 'dont let your dreams be dreams' Jul 03 16:59:37 just do it Jul 03 16:59:45 i wish, but i can't move to the us Jul 03 16:59:48 i don't have a degree Jul 03 17:00:43 id be out of the shithole that is canada Jul 03 17:00:58 aoeu: lol... Jul 03 17:01:04 aoeu: Last time, stick to android-dev topics please Jul 03 17:01:22 CedricBeust: did the canada part get into you? :D Jul 03 17:01:29 aoeu: Canada shithole? Dude, do you even east of Western Europe?! Jul 03 17:01:37 the state of Android development in Canada, that's Android-related no? Jul 03 17:01:53 This is android-dev. Coding discussions. Jul 03 17:02:01 Ok. Jul 03 17:02:18 is xamarin allowed? Jul 03 17:03:15 eeyup Jul 03 17:03:44 adq, thanks Jul 03 17:03:48 CedricBeust: did you banned that mimtw guy ? Jul 03 17:04:08 I have actually never banned nor kicked anyone here. Jul 03 17:04:47 Xamarin, cordova, etc, are not really discussed here.. They have their own forums Jul 03 17:05:01 I've banned lots, but mimtw doens't ring a bell Jul 03 17:05:40 SimonVT: he was saying about how much he's strving and begging for some game apk so he will earn for his food... Jul 03 17:05:48 for 4 or 5 days... Jul 03 17:06:00 Must have missed that Jul 03 17:06:22 I will highlight you next time then Jul 03 17:06:42 Sure Jul 03 17:06:46 Ask him to post about his life story on facebook instead Jul 03 17:07:25 I did Jul 03 17:07:34 he was asking same question over and over again Jul 03 17:08:26 Hey how everyone doing? Jul 03 17:18:48 hello Jul 03 17:19:52 im having a problem with an image, on a nexus 5 it looks like this which is correct (the red image): http://d.pr/i/1hVRg but on a nexus 5x it looks smaller: http://d.pr/i/16BJ6 what could be the problem? Jul 03 17:20:52 padding, margin set? Jul 03 17:28:44 dunkel2: i think 5x is xxxhdpi Jul 03 17:28:49 while 5 is xxhdpi Jul 03 17:28:57 which would explain that Jul 03 17:30:31 but ... 5x says its 420dp Jul 03 17:31:55 so if my base image is 192x16 my xxhdpi is 384x32 and the xxxhdpi is 576x48 Jul 03 17:32:37 the gray background i set is the lines where i want that image to be and as you can see the nexus 5x is smaller even if the image was 3x Jul 03 17:33:18 dunkel2: install this https://play.google.com/store/apps/details?id=com.jotabout.screeninfo Jul 03 17:35:35 done Jul 03 17:35:43 it says Jul 03 17:35:53 framework resource selection: Normal XXHDPI Jul 03 17:35:54 :O Jul 03 17:36:02 http://stackoverflow.com/a/33789580/1056359 Jul 03 17:36:07 yeah, I was wrong Jul 03 17:36:19 in any case the screen ratio might also be a factor Jul 03 17:36:23 Screen DPI: 420 Jul 03 17:36:40 dunkel2: have you considered using vectors? Jul 03 17:36:59 android does not want my svgs Jul 03 17:37:12 :( it shows lot of errors and destroy the final image Jul 03 17:37:38 have you tried using the vector importing tool? Jul 03 17:37:46 svg != vectordrawable Jul 03 17:38:15 i think i havent Jul 03 17:38:27 how is it done? Jul 03 17:39:12 Hey. What's the best way to do the following: when a user opens my app they enter some information. I want to save the information some where (in the cloud/outside of that local device) and check if some of the fields of the information match with the info of other users. If it matches, then I want to send a notification to a different device. (Also, a way to store data locally until a device has an internet connection would be Jul 03 17:39:19 be great Jul 03 17:39:52 http://android-coffee.com/svg-integration-in-android-studio/ Jul 03 17:40:35 Oh. My. God. Why does AnimationListener HAVE to HAVE 4 big ass methods to override?! Jul 03 17:40:58 I just want to set a callback for the end, goddamn it Jul 03 17:41:45 basically, I'm looking to do the following: 1) save user data locally, 2)check if internet connection exists and if so, push to database somewhere, 3) check if other entries in database match and if so, 4) push a notification of the device corresponding to matched entry Jul 03 17:41:49 let me try it thepoosh Jul 03 17:41:53 are there good solutions to do ^ Jul 03 17:43:01 MisterGadfly: you can do that with a simple view animations Jul 03 17:43:27 thepoosh: how? Jul 03 17:43:51 https://www.youtube.com/watch?v=_UWXqFBF86U Jul 03 17:44:18 thepoosh any ideas as to how I can solve my problem? Jul 03 17:44:33 be a better programmer Jul 03 17:44:44 MisterGadfly, you can use the abstract class implementation of animation listener Jul 03 17:44:47 Ashiren: [solved] Jul 03 17:44:55 bionerd2: what seems to be the issue? Jul 03 17:45:33 thepoosh: I'm trying to do the following: basically, I'm looking to do the following: 1) save user data locally, 2)check if internet connection exists and if so, push to database somewhere, 3) check if other entries in database match and if so, 4) push a notification of the device corresponding to matched entry Jul 03 17:46:19 sounds like you can do 1-3 very easily Jul 03 17:46:23 how Jul 03 17:46:28 and 4 should probably require a server Jul 03 17:46:29 what are the good solutions to do that Jul 03 17:46:33 set flags Jul 03 17:46:48 Guys, I need some help with JNI, am using makefiles, but I want to have different code for one ABI and different code for the rest of all ABIs. 32-bit and 64-bit basically. Jul 03 17:47:02 sorry thepoosh can you elaboraote a bit more, Jul 03 17:47:02 i dont know of any already-existing solutions for that but it doesnt sound very complex Jul 03 17:47:09 thepoosh: when creating a new emulator, which one is recomended? the x86 or x86_64? Jul 03 17:47:11 Is there any way that I can detect that through #ifdef ? Jul 03 17:47:28 dunkel2: dunno, I use actual devices Jul 03 17:47:46 bionerd2: if you're setting data that needs to be sent to a server, set a flag and wake a service Jul 03 17:47:56 listen to network connectivity with a broadcast receiver Jul 03 17:48:42 thepoosh: I already done the things in that video. My problem is that triggering something after the animation ends is cumbersome. Jul 03 17:48:49 *already have done Jul 03 17:49:02 there is a runnable you can set for onAnimationEnd Jul 03 17:49:33 thepoosh: again, how? :D Jul 03 17:49:59 http://stackoverflow.com/a/8579365/1056359 Jul 03 17:50:51 thepoosh: I have already done it like that, but it's cumbersome X_X Jul 03 17:50:56 MisterGadfly: that took me as long as typing "onAnimationEnd android" Jul 03 17:51:04 fuck you, do your job Jul 03 17:51:05 thepoosh: what is the best type of server to use for this type of thing Jul 03 17:51:15 dunno, we use NodeJS Jul 03 17:51:23 thepoosh: :P Jul 03 17:51:34 Does anyone here use GPGS? How do I sign my debug version of the app so that I can use it with GPGS? Jul 03 17:53:24 secureComm, not sure you can, since you do auth Jul 03 17:53:51 android studio keeps recommendning I use the support lib version 24.x but I am building a api 23 (marshmallow) app. How can I find the latest version number for the 23.x support library? for example 23.2.0 - is this the latest? Jul 03 17:54:09 raoul11 for the rescue Jul 03 17:54:11 raoul11: that makes it incredibly painful to test. can you at least deploy your signed apk from Android Studio (and can it still log stuff?)? Jul 03 17:54:28 in build.gradle you can hover the package, and it will tell you what's the latest sd512 Jul 03 17:54:35 hover over* Jul 03 17:54:37 sd512: it's about target sdk so you can set it. but if you want to use 23.x.x it's in your sdk folder Jul 03 17:55:19 of course secureComm Jul 03 17:55:49 raoul11: how? Jul 03 17:56:00 how to make a release version? Jul 03 17:56:03 flavour flave Jul 03 17:56:05 raoul11, thanks. this is suggesting the 24.x lib though which I cannot use because I am still on 23. Jul 03 17:56:16 gordon_, I dont quite understand, can you clarify? Jul 03 17:57:12 could u show your build.gradle? Jul 03 17:57:51 pastebin or pastie please Jul 03 17:58:11 u still at work thepoosh ? Jul 03 17:58:19 sd512: you can use 24 lib if you set compile and target sdk to 24 Jul 03 17:58:20 raoul11: nope, at home Jul 03 17:58:24 raoul11: how do do in Android Astudio to do a 1 click action to build a release build and launch it to the phone Jul 03 17:58:29 gotta pick up the kids today Jul 03 17:58:44 and you will still be able to use older versions Jul 03 17:59:22 its probably a two click action, and you also need to at least upload 1 apk to the developer console Jul 03 17:59:41 (not to mention making a certificate) Jul 03 18:00:11 gradle file: http://i.imgur.com/zXhq7KI.png Jul 03 18:00:52 kopy.io Jul 03 18:01:13 sd512, mine's also bitching about it Jul 03 18:01:30 google pushin up their api /: Jul 03 18:01:43 gordon_, I appreciate that I can switch to 24, but I am wondering how to find the latest version for an older release :) Jul 03 18:01:58 raoul11, complaining about what? Jul 03 18:02:04 24.0.0 Jul 03 18:02:27 sure, of course. If you are targeting a lower sdk. Jul 03 18:03:59 targeting 23 /: Jul 03 18:05:09 found this which has my answer. Thanks all https://developer.android.com/topic/libraries/support-library/revisions.html?hl=EN Jul 03 18:07:03 sd512: it's in your sdk folder Jul 03 18:07:57 at least if you've downloaded it befre Jul 03 18:13:21 thepoosh: i cant test it the emulator is not running Jul 03 18:17:13 is there a way to get APK for google play store, from official Google websites, and not apk mirrors? Jul 03 18:25:52 guy,I have a problem Jul 03 18:26:01 I'm trying to depend on a library like this: debugCompile project(path: ':libraries:mylib', configuration: 'debug') Jul 03 18:26:13 but I get configuration 'debug' not found error from gradle. Jul 03 18:26:16 any idea why? Jul 03 18:35:37 How do I choose a "Signing" config in Android Studio? Jul 03 18:35:55 secureComm: build variations Jul 03 18:36:44 sigh, Error:Gradle DSL method not found: 'compile()' Jul 03 18:37:08 open the file, then paste it here Jul 03 18:37:11 *pastebin Jul 03 18:39:01 ok Jul 03 18:44:07 thepoosh: http://lpaste.net/168967 Jul 03 18:45:17 which line is not playing nicely? Jul 03 18:47:04 why is everything in the same file? Jul 03 18:47:29 secureComm: anyway, this seems over my league, maybe try #gradle Jul 03 18:50:41 What types of fragments are there? Jul 03 18:50:50 can't find it Jul 03 18:51:51 purplex88: what do you mean by "types of fragments" ? Jul 03 18:51:55 purplex88: go to d.android.com Jul 03 18:51:59 search for fragment Jul 03 18:52:05 and then know subclasses Jul 03 18:54:10 ok got it Jul 03 18:59:46 thepoosh: i finally run the app in device, but is not adding my svgs with the method you shared :( i just see a black box Jul 03 18:59:58 http://d.pr/i/1903D Jul 03 19:00:10 did you enable vectors in the build.gradle? Jul 03 19:00:28 http://kopy.io/T4HM6 Jul 03 19:01:01 dunkel2: why not set it as the src in the layout.xml? Jul 03 19:01:12 http://kopy.io/qEE8T Jul 03 19:01:19 oh, i followed the tutorial Jul 03 19:01:20 let me see Jul 03 19:01:28 so i set it the raw/logo Jul 03 19:01:54 do you have this in your android closure? Jul 03 19:01:56 aaptOptions { Jul 03 19:01:56 additionalParameters "--no-version-vectors" Jul 03 19:01:56 } Jul 03 19:02:50 which file is that thepoosh Jul 03 19:03:22 app/build.gradle Jul 03 19:04:28 no i dont think i have that line Jul 03 19:04:28 http://kopy.io/qEE8T Jul 03 19:04:32 thats the graddle Jul 03 19:05:03 well, you should if you want to support vectors on appcompat Jul 03 19:06:52 i cant find the svg while on the layout src Jul 03 19:07:05 i added it to the raw directory as the tutorial says Jul 03 19:07:24 don't add them to drawables Jul 03 19:08:58 http://d.pr/i/jYS8 Jul 03 19:09:49 Failed to convert @drawable/wt_logo into a drawable Jul 03 19:17:58 How do you change the parent layout without editing XML yourself? Jul 03 19:24:13 thepoosh: no luck yet :( Jul 03 19:53:13 Hi all - got a quick one - how can I add a switch (on/off) to the end of a submenu text item : example > View this sub category [on/off] Jul 03 19:54:03 I'm experiencing some very strange behavior. I show a `Toast` and then a `ProgressDialog` with the same string taken from resources. But the language of the first is different than the second! (the second has the correct language) http://pastebin.com/sStc5fdV Jul 03 19:55:20 I do not change the locale from code and do not store the Context or anything like that Jul 03 19:55:30 I'm having trouble understanding how threading works. An app has three files, main, file1 and file2. Main calls asynctask->doInBackGround in file1, doInBackground's calls publishProgress which calls onProgressUpdate, which is running on main ui thread. onProgressUpdate does file2 f = new file2; f.static_function(); but then static function isn't running on main ui thread Jul 03 19:55:34 hrm. im using a FrameLayout for an opengl app. the only way i could fix artifacts on showing/hiding soft keyboard was to do a addOnGlobalLayoutListener() and use view.getWindowVisibleDispayFrame() and then in my opengl code just start drawing to top half of screen only when keyboard displayed. now i want a toolbar like view that sits above the keyboard so it seems im gonna change its topMargin when keyboard displayed or hidden. any advice? Jul 03 19:56:01 testing whether or not it's running on main ui thread with Looper.myLooper() == Looper.getMainLooper() Jul 03 19:56:06 seems its all getting very hacky Jul 03 20:00:31 g00s: so very meh Jul 03 20:01:05 basically I want to structure the files so that functions with related tasks are grouped together but when trying to call a static function in another file from the main ui thread, that function doesn't seem to run on the main ui thread Jul 03 20:03:19 minas114, have you tried passing the string id to makeText directly? Jul 03 20:05:12 bitkiller, Yes, and it's the same effect. Note that if I don't create a Toast, the ProgressDialog has the wrong language! Jul 03 20:13:20 thepoosh yes, very meh Jul 03 20:19:53 can anybody explain why KeyPair.getPrivate always throws a cast exception?? (https://ghostbin.com/paste/ss3ep) Jul 03 20:20:02 thepoosh we could be reaching a whole new level of meh, never before achieved Jul 03 20:20:20 yep Jul 03 20:21:02 we needs to give awards to those achieving this new level of meh Jul 03 20:21:15 the mehmies Jul 03 20:21:24 haha Jul 03 20:21:39 yeah thats better than the golden meh Jul 03 20:22:16 referencing the golden globe only shows that this is an entire world of meh Jul 03 20:22:21 so maybe yours is better Jul 03 20:22:39 lol Jul 03 20:23:37 even the N statue was meh Jul 03 20:23:52 Nougat? Jul 03 20:24:00 yeah Jul 03 20:24:17 well, there is the OkHttp thing Jul 03 20:24:22 i'm going to call it nugget Jul 03 20:24:23 did it make it in? Jul 03 20:24:31 poop--nugget Jul 03 20:24:44 I was going for nutela Jul 03 20:25:12 or Nugget McNuggetface Jul 03 20:25:29 no no Jul 03 20:25:49 they said specifically no N Mcface Jul 03 20:25:57 yes yes, i read somewhere the voting was sham and the names were already picked Jul 03 20:26:05 probably Jul 03 20:26:12 so N mcNuggetFace is reference to ... you know, the other sham democracy thing Jul 03 20:26:14 but it's a good buzz creator Jul 03 20:26:24 HAY! Jul 03 20:26:34 BOATY MCBOATFACE IS REAL!!! Jul 03 20:29:38 hi thepoosh Jul 03 20:29:46 hi Jul 03 20:29:49 apparently it would be impossible to make the app looks good on android Jul 03 20:29:50 :/ Jul 03 20:29:58 that a load of crap Jul 03 20:30:01 but sure Jul 03 20:30:02 it will resize the image to 420dpi no matter what Jul 03 20:30:03 thepoosh how do you think this android apps on chromeOS thing will go ? Jul 03 20:30:09 nope Jul 03 20:30:20 i think chromeOS will flop Jul 03 20:30:26 fine, going to sleep Jul 03 20:30:29 ot's 23:30 Jul 03 20:30:35 dunkel2: for some reason, i think i agree with you Jul 03 20:30:36 cu thepoosh Jul 03 20:30:45 gnight thepoosh Jul 03 20:30:47 supay: cuz you're a n00b Jul 03 20:30:52 lol Jul 03 20:30:54 thepoosh: yep Jul 03 20:30:57 g00s: guide them into the light Jul 03 20:31:01 pls do Jul 03 20:31:06 yes please Jul 03 20:31:07 ive been waiting Jul 03 20:31:09 xD Jul 03 20:31:23 for years, on #android-dev, to learn how to make sexy apps with great UI Jul 03 20:31:44 g00s: i have an image in xxhdpi but when i put that image on a nexus 5x its smaller Jul 03 20:31:46 than the 3x Jul 03 20:31:52 its 2.625x :( Jul 03 20:32:12 because you know... android Jul 03 20:32:14 xD Jul 03 20:32:47 why not just 1x 2x 3x why 3.1415926421341253452345x Jul 03 20:32:48 g00s: hey? pls? :( Jul 03 20:32:50 :( Jul 03 20:33:06 supay forget sexy, go for meh Jul 03 20:33:25 dunkel2 uh, i'm no good with bitmaps, i punt to glide or picasso Jul 03 20:33:38 :/ Jul 03 20:33:54 g00s: haha, okay.. do i have to use libraries like https://github.com/navasmdc/MaterialDesignLibrary ? Jul 03 20:33:59 i dont know how to start Jul 03 20:34:15 yeah, starting is tough, the information is all spread out Jul 03 20:34:26 for sure, its almost annoying Jul 03 20:34:32 thats google fault really, they still have ActionBars with tab navigation modes and shit in ther guides Jul 03 20:34:48 the worst part is all the thousands of blogposts that teach the same thing differently Jul 03 20:34:48 ugh Jul 03 20:34:56 sometimes, i feel technology is a bane. Jul 03 20:35:08 and old ways to do it Jul 03 20:35:17 Stupid search engines that return all these articles. Search engines should be banned, all they do is create confusion. Jul 03 20:35:24 but i also think its googles fault to let that fragmentation exists Jul 03 20:35:26 CedricBeust: +1k Jul 03 20:36:07 Hint: when using Google to look for technical info, restrict the answers to the last year. Jul 03 20:36:23 CedricBeust yeah we need to put together some advanced google query string that picks Ian, Chris B, Dianne H stuff from SO, medium, etc in reverse chronological order Jul 03 20:36:25 CedricBeust: haha, i tend to do that very often. keeps everything relevant. Jul 03 20:36:30 at this moment i think it is really confusing why an image looks bigger (xxhdpi) on a nexus 5 but on nexus 5x its rescales to 2.625x Jul 03 20:36:34 thats non sense Jul 03 20:37:08 g00s: no need.. google something, then Search Tools > Change 'Any Time' to 'Past Year' Jul 03 20:37:39 yeah i constantly do that, its a pita Jul 03 20:37:43 if someone can guide on how to get started with designing decent looking apps, i would be extremely grateful :) recently, i began to wonder if i was going about it all wrong and that maybe i should focus on cordova Jul 03 20:37:43 like every search Jul 03 20:37:57 Would be nice if I could set this as the default for all my Google searches Jul 03 20:38:38 CedricBeust: seems like adding: &tbs=qdr:y to the end of the url gives that effect Jul 03 20:38:50 im sure its possible to tweak the browser somehow to do this :) Jul 03 20:38:52 yeah, like you set 'android profile' Jul 03 20:39:12 http://d.pr/i/HiXD Jul 03 20:39:15 supay yeah in FF you can make a custom search thingy Jul 03 20:39:20 yep! Jul 03 20:39:23 look thats how the red box is not in the space it must be Jul 03 20:39:43 g00s: should be possible in other browsers as well, with addons/plugins at least. Jul 03 20:39:52 can someone help me with android threading asynctask calling into another file from onProgressUpdate (see above) Jul 03 20:40:13 dunkel2: lol, just do with it says. click on the link 'Install missing platform(s)...' that should fix it Jul 03 20:40:16 soreau thats gross, use rxjava Jul 03 20:41:05 supay: if you have problem cordova doesnt seem to be the solution.. Jul 03 20:41:15 well i interpreted that as one asynctask calling into another asynctask Jul 03 20:41:49 nexus 5x is.. special. afaik its xxhdpi (480) yet it is 420 Jul 03 20:41:52 Ashiren: please guide toward the right path. Jul 03 20:43:04 what is the right path in 2016 ... Jul 03 20:43:20 there are many paths, they all lead to pain :) Jul 03 20:43:28 dp is all you need. the thing that you can design a layout that will look THE SAME on every device.. it is illusion Jul 03 20:43:32 for exampe: if i want to make an app that looks like this: http://imgur.com/a/7kPhE Jul 03 20:43:44 g00s, CedricBeust, Ashiren ^ Jul 03 20:43:47 how would i go about it? Jul 03 20:44:11 looks like CardView inside RecyclerView Jul 03 20:44:23 supay thats easy ... download chris banes cheese square app Jul 03 20:44:31 eeyup Jul 03 20:44:42 sources, it has all that stuff pretty much Jul 03 20:44:53 how on earth do you get to know about these resources? Jul 03 20:44:58 https://github.com/chrisbanes/cheesesquare Jul 03 20:45:01 i doubt i would have found it without those exact search terms Jul 03 20:45:11 it simple Jul 03 20:45:15 Ashiren: thanks! :) Jul 03 20:45:35 i look at the screen then cheese comes to my mind Jul 03 20:45:37 supay we're here for when googling fails :) Jul 03 20:45:45 then i think.. "its kind of square isnt it?" Jul 03 20:45:46 haha Jul 03 20:45:46 (but google first) Jul 03 20:45:48 so i add square Jul 03 20:45:49 and voila! Jul 03 20:45:52 LOL Jul 03 20:45:58 cheesesquare Jul 03 20:46:11 Ashiren: silly me, i should use my brain more :) :P Jul 03 20:50:01 i think i hate android :( Jul 03 20:50:04 it wants me to do ugly ui apps Jul 03 20:50:04 xD Jul 03 20:50:35 dunkel2: people are making beautiful apps. so its probably just us and we need to learn more. Jul 03 20:51:10 but but... why the image size whyyy Jul 03 20:51:33 thats the only thing i need to realize Jul 03 20:51:39 :( Jul 03 20:52:22 hm? Jul 03 20:52:27 i think Ashiren answered you: [02:11:49] nexus 5x is.. special. afaik its xxhdpi (480) yet it is 420 Jul 03 20:52:34 dunkel2: ^ Jul 03 20:53:31 myyes Jul 03 20:54:24 yes Jul 03 20:54:25 its 420 Jul 03 20:54:25 so then i will never have the 480 size? Jul 03 20:54:25 :( Jul 03 20:54:25 sorry didnt read that Ashiren Jul 03 20:56:24 to be honest i never encountered 420 other than nexus 5x, those *dpi dont mention that Jul 03 20:57:41 Sooner you get rid of the idea of pixel perfect UI, sooner you'll start building UIs worth a damn on Android (and web and everywhere else that's not iOS) Jul 03 21:00:23 nexus 5 correct behaviour http://d.pr/i/17ILb Jul 03 21:00:59 so how does xml looks like Jul 03 21:01:53 http://kopy.io/mYlSp Jul 03 21:01:59 Ashiren: Jul 03 21:02:45 and 5x bad http://d.pr/i/14lVf Jul 03 21:02:48 oh and whats the problem :v Jul 03 21:02:57 Mavrik: haha, i realised that the hard way long ago while trying to pixel perfect my webdesigns. i would do all kinds of crazy css and perfect the design on my laptop screen just to see it fail miserably on other sized screens. haha. seems the concept is similar to what happens in android. Jul 03 21:02:57 as you see the image th red one Jul 03 21:02:59 is smaller Jul 03 21:03:30 if i have the same 1080x1920 screen why it is smaller Jul 03 21:03:31 :( Jul 03 21:03:50 i can stand that it could show smaller on a different resolution but why on same T_T Jul 03 21:04:35 supay, yeah, on Android it helps to think in terms of "what's next to what" and leave spaces that stretch Jul 03 21:04:45 hmm Jul 03 21:05:01 dunkel2, fix the size of the gray stripe Jul 03 21:05:07 Make sure it has the same dp width. Jul 03 21:05:10 Stop working with pixels. Jul 03 21:05:37 yes. the question is what size are those pictures. do you try to fit layout to those size? Jul 03 21:06:42 ah and thats other stuff, why the background is not wrong Jul 03 21:06:56 Can you explictly set the position cords of widget in layout say a x, y pos on screen? Jul 03 21:07:13 Mavrik: whoa, you just made my life a lot easier. thats a very good strategy! Jul 03 21:07:26 Ashiren: i have all drawable- directory with the image Jul 03 21:07:42 the base mdpi is 192x16 Jul 03 21:08:11 the xxhdpi which is shown in nexus 5 is 576x48 Jul 03 21:08:35 but apparently the nexus 5x is rescaling that image to 2.625x Jul 03 21:08:56 504x42 Jul 03 21:09:24 but not the background, that background with gray line is just a guide Jul 03 21:09:30 Uh. Jul 03 21:09:34 to see where the image must be set, Jul 03 21:12:00 this is desperating then i will need to live with smaller images on nexus 5x Jul 03 21:12:48 or Jul 03 21:13:05 hard set an image specifically for 420 Jul 03 21:13:24 not to be rude, but you probably want to cut down on how many times you hit return dunkel2. :) Jul 03 21:13:44 device can has the same resolution but different density Jul 03 21:13:55 no problem sorry :$ Jul 03 21:14:03 its not only nexus 5x Jul 03 21:14:43 ok, so as Mavrik mention, i should not care for the final image size in the device? no pixel perfect apps just beauty apps that works? Jul 03 21:14:51 the more visible example: phone (xxhdpi) vs tablet (mdpi). it will look different Jul 03 21:15:10 if you dont have device try to compare with emulator and its density settingsd Jul 03 21:15:20 dunkel2, UIs are laid out in DP units. Jul 03 21:15:30 yes i am using only dps Jul 03 21:15:35 with pixel perfection it will look completely different Jul 03 21:15:39 Then it's fine. Jul 03 21:16:08 There's no uniform screen size in dp, but laying out items using dps will make them look roughly the same size on all devices. Jul 03 21:16:13 but i noticed the problem because first i open an image exported from sketch into my nexus 5x, then i opened the app and they looked different Jul 03 21:16:56 thats why i noticed the problem i send a 1080x1920 image to the phone then all the images looked as designed Jul 03 21:17:39 then in the app they werent so i started to dig, at the end its something like this: http://dowebsitesneedtolookexactlythesameineverybrowser.com Jul 03 21:17:42 hehehe Jul 03 21:36:50 so I am running hyper-v on my computer Jul 03 21:37:05 is there an emulator I can use that does not require me disable it Jul 03 21:37:28 gennymotion was my go to choice but its difficult to use it with this limitation Jul 03 21:37:30 the microsoft emulator Jul 03 21:41:43 thanks Ashiren, Mavrik Jul 03 22:02:19 thanks pfn Jul 03 22:02:24 is it normal for it to be this slow? Jul 03 22:02:29 videos show it much faster Jul 03 22:02:43 for minutes I am waiting for the virtual android to start Jul 03 22:04:54 hey Jul 03 22:05:03 ToAruShiroiNeko: its natural for the emulator to be slow. Jul 03 22:05:49 Virtual android for test lab is part of a emulator? Jul 03 22:07:11 perlsyntax: "test lab" ? and yes, an emulator would emulate the android operating system. Jul 03 22:08:35 supay,I understand now that why it cost a $1.00 a hour.IS it the same one that come with android studio? Jul 03 22:09:08 $1 an hour? which one are you talking about? the emulator that comes with Android Studio is 100% free Jul 03 22:10:48 Sorry supay i was talking about this https://firebase.google.com/docs/test-lab/avds Jul 03 22:12:57 supay,See what i talking about now. Jul 03 22:13:32 perlsyntax: im sorry, i dont have experience with that. you might want to wait for someone else to answer :) Jul 03 22:14:20 supay,That n prob hope someone can help #firebase irc is dead. Jul 03 22:15:31 :) Jul 03 22:26:20 hi Jul 03 22:26:38 yes but it doesnt progress beyond the android logo / Jul 03 22:26:40 :/ Jul 03 22:26:41 what is the name of the black bar in the android with the 3 buttons? Jul 03 22:26:53 the one at the bottom Jul 03 23:20:32 system nav Jul 03 23:21:23 ty Jul 03 23:29:44 If I install the release-signed apk using adb or by downloading it from a website, will it still download any updates that I may later publish on Google play? Jul 03 23:32:19 is layout_height="60 px" valid? Jul 03 23:32:32 it always uses dp Jul 03 23:36:13 seems like it is nvm Jul 03 23:39:01 java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. Jul 03 23:46:10 dunkel2, then do what it says Jul 03 23:46:20 yeah there was an error on layout v21 Jul 03 23:46:21 :D Jul 03 23:46:48 Lewoco, only if you installed from the play store to begin with Jul 03 23:47:01 purplex88, don't ever use px Jul 03 23:47:41 pfn: why? Jul 03 23:49:32 use the google Jul 03 23:51:46 i want to ask something. How a "framelayout" is a fragment? in code: Fragment fragment = fm.findFragmentById(R.id.framelayoutID); Jul 03 23:53:14 the id in unrelated to the type Jul 03 23:54:08 but it is framelayout. what makes it a fragment? like can any widget by a fragment? Jul 03 23:54:29 be* Jul 03 23:59:08 i am setting this error in my console using the google play ad services, any ideas? : E/Ads ( 9985): JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined (:1) Jul 04 00:10:57 hey Jul 04 00:11:00 can someone help me out Jul 04 00:11:53 i'm pulling my hair trying to figure out how i can push and pull data between arrayList and sqliteDatabase Jul 04 00:30:18 anyone know why the "OverScroll" animation only works sometimes with RecyclerView? if i try to scroll when I am already at the end of the list it doesn't do it Jul 04 00:53:25 does a 'repo sync' after a 'repo init -u -b tool' only dl the source for the tool? Jul 04 00:55:24 Fishbowled, you need -g default,tools Jul 04 00:57:06 phh Jul 04 00:57:09 ah Jul 04 00:57:46 thanks pfn that's heaps better, was gonna dl googles 20year search history without that Jul 04 01:49:49 whatup whatup Jul 04 02:01:21 dude, can someone please help me with this sqliteDatabase crap. i'll honestly paypal someone if they can help me Jul 04 02:04:18 zzzkael: probably want to start by asking a proper question Jul 04 02:06:20 or, y'know, don't - either way is fine Jul 04 02:07:07 This way we get to practice our mind reading. Jul 04 02:08:57 Knew you were gonna say that Jul 04 02:17:13 how do i install apk on Android 6.0 from PC? there is no "INSTALL from unknown sources option" any more in setup. Jul 04 02:21:50 hey guys, what's a contract class? Jul 04 02:22:03 i need some help :( Jul 04 02:23:03 zzzkael: http://www.vogella.com/tutorials/AndroidSQLite/article.html Jul 04 02:23:30 i have the open. was just about to read it. just dont feel like reading through it :( Jul 04 02:26:38 bq, have always been able to install from pc without unknown sources Jul 04 02:26:40 lol, i was just about to help, just don't feel like helping though Jul 04 02:27:17 unknown sources is under security in any case Jul 04 02:30:07 pfn: i copied apk from pc via USB into phone. but i could not find it on phone. Jul 04 02:31:48 not being able to find it has nothing to do with unknown sources Jul 04 02:32:06 no i do find it but unable to click and install it Jul 04 02:32:45 i find it under Download folder in setup. but it says unable to open it Jul 04 02:40:16 then enable unknown sources Jul 04 02:40:35 ass|hat awesome nick :) Jul 04 02:43:23 pfn: no such option in 6.0. i enabled developer option already. Jul 04 02:43:37 because you don't know how to look Jul 04 02:43:43 I already said where it is Jul 04 02:44:31 Is there any OS limitation for generating more than 150 parallel TCP connections? Jul 04 02:44:58 no Jul 04 02:45:12 pfn: yes. thanks. enabled. Jul 04 02:45:32 you're typically limited by number of file handles and ports Jul 04 02:46:40 pfn: but still couldn't open it from setup/storage/browse Jul 04 02:46:41 so the problem might be my client... Jul 04 02:47:05 gonna try from several computers, hope that doesn't fries my poor phone Jul 04 02:51:46 bq, builtin browser doesn't let you Jul 04 02:52:35 generated 150 connections from 2 different computers, both, tests crashed with error: Connection reset by peer Jul 04 02:52:41 reduced to 100... Jul 04 02:52:50 same thing Jul 04 02:53:06 reduced to 75 Jul 04 02:54:40 same thing after 10k tries Jul 04 02:55:21 so Android networking is not that bad Jul 04 02:55:39 develCuy: that's most likely a problem with your internet provider. it may be intentional. Jul 04 02:56:09 everything is running on my lan Jul 04 02:56:35 my router is shity btw... Jul 04 02:57:34 pfn: i ended up installing EX file manager and works. thanks. Jul 04 02:58:56 now I need a connection pooler for JS for not breaking that limit... **** ENDING LOGGING AT Mon Jul 04 02:59:58 2016