**** BEGIN LOGGING AT Sat May 14 02:59:58 2016 May 14 03:01:19 Can anyone help with "The constructor ParcelableCall is undefined"? May 14 03:26:21 Does anyone know of a way to launch an Android Studio project from the command line? May 14 03:27:29 So far, the closest I've gotten is being able to add a project to the "Recent Projects" pane, but I get errors for not having the .idea project folder in place; I know there must be a better way. May 14 04:12:22 G May 14 04:12:31 PipeChela: H May 14 04:22:02 eh guys May 14 04:24:56 spid3rMin3: Eh May 14 04:25:27 I have an app drawer with the "OnNavigationItemSelected()" method within a activity .. now I have a recycle view with another activity (acts like a fragment) , how would i be able to influence the scroll position from the the "onNavigationItemSelected" method ? May 14 04:27:07 so mainActivity (appDrawer methods) - > control scroll position of RecycleView - within fragment - that is called withing the mainActivity May 14 05:07:12 I was wondering if anyone is able to look at my question on codereview. http://codereview.stackexchange.com/questions/128326/am-i-using-sslsocket-properly May 14 05:53:49 What language and framework do you prefer for writing backend of your android app? May 14 05:54:10 jackhum: Uhh, Java I guess? May 14 05:54:17 you mean the server? May 14 05:54:29 Yeah. The backend May 14 05:54:34 oh May 14 05:54:57 i dont touch backend stuff. im happy as long as there are decent jsons and/or websockets May 14 05:55:10 jackhum: Kotlin May 14 05:58:32 kotlin? May 14 06:06:30 Kotlin May 14 07:23:18 Kotlin! May 14 10:06:25 Kotlin is in Poland a company that makes ketchup May 14 10:38:48 'morning May 14 10:38:53 Hey guys. In a layout file if I don't want to databind to a custom object but to a regular double -- how do I define the XML? What will the 'type' and 'name' variables will be? May 14 10:41:07 double May 14 10:41:08 lol May 14 10:41:13 Psychiatrist May 14 10:42:14 Napalm, with custom objects it was the project path to the object I thought with regular objects it would be something along the lines of com.android.double... I'm stupid. May 14 10:42:22 Napalm, Thanks May 14 10:46:27 hi May 14 10:48:08 how to register android app to use drive api May 14 10:52:59 Noticed someone was asking about the Tinder cards the other day May 14 10:53:08 There's a GitHub repo for it May 14 11:20:15 hi May 14 11:31:32 I've a list item that is clickable and the textview inside is selectable. My problem is that one click on my text won't trigger the onclick and the long click triggers the selection mode. May 14 11:32:04 How can I change that behavior to trigger the on click when my list items textview is selectable? May 14 12:05:50 Anyone here work for small android dev. Company? Companies that takes on projects and make them May 14 12:06:01 Anyone here is freelancer? May 14 12:07:06 No advertising, jobs or otherwise May 14 12:07:47 Ah. Okay. I am not asking them for job May 14 12:09:32 Taking a survey? May 14 12:09:58 Yeah. Just some questions May 14 12:10:53 It's usually better to just ask the question May 14 12:12:48 How much do small companies charge to make app like Uber? May 14 12:18:30 ha! the other day I said i had a phone in my hand where the haptic feedback for the virtal keys was amazing. It's the old galaxy s2. It has a different vibration motor or even a linear actuator. May 14 12:19:24 it even sounds springy May 14 12:24:10 jackhum: Are you looking to get an app made, or did someone ask you to make an app? May 14 12:48:25 I've a list item that is clickable and the textview inside is selectable. My problem is that one click on my text won't trigger the onclick and the long click triggers the selection mode. May 14 12:48:26 How can I change that behavior to trigger the on click when my list items textview is selectable? May 14 12:50:24 try android:focusable="false" and android:focusableInTouchMode="false" for the textview May 14 13:11:27 Ashiren this won't work because it makes my view not clickable and the selectable property does not work either if it is not focusable May 14 14:08:13 With this code: http://pastebin.com/s6XEu0rS I open the printer app but then this app crashes. I want to open the image app I am using to see my photos. Any ideas on what I am doing wrong? May 14 14:11:51 R13ose: what are you trying to do? May 14 14:11:58 because that intent is broken May 14 14:12:29 Napalm: all I want is to open the gallery app I have May 14 14:12:38 to get a picture from it? May 14 14:12:50 In the future yes but right now only open this. May 14 14:12:58 Intent.ACTION_GET_CONTENT May 14 14:15:02 Napalm: that works to open the documents app. Is there a way to app other gallery apps? May 14 14:15:12 its in the list there May 14 14:15:15 on the left May 14 14:16:04 R13ose: on older versions of android pre-21 you will just get the a list of apps that support image types May 14 14:16:30 now in 21 you have the document selection stuff which lets you choose an app May 14 14:20:23 R13ose: https://youtu.be/C28pvd2plBA?t=24m30s May 14 14:22:13 R13ose: sorry it was kit-kat the document stuff came in.. https://www.youtube.com/watch?v=UFj9AEz0DHQ May 14 14:23:38 R13ose: the other video she speaks of at the start.. https://www.youtube.com/watch?v=zxHVeXbK1P4 May 14 14:31:19 Napalm: thanks May 14 14:32:42 Napalm: I don't see how I am able to choose very a list of apps and not have this default to documents. May 14 14:33:16 it will always default to image documents because that's what you've asked for May 14 14:39:00 R13ose: you can try wrapping your intent with Intent.createChooser May 14 14:39:19 Hello May 14 14:39:27 hello May 14 14:39:54 Sorry to disturb you. They are so many function to retrieve a directory in java, but I want a specific one : the one which is in /data/ May 14 14:40:08 contenxt.getFilesDir May 14 14:40:13 context.getFilesDir May 14 14:41:03 Thanks ^^ "the doc is complicated with it ^^" May 14 14:44:22 Napalm: like this startActivity(Intent.createChooser(intent, "Choose your gallery:")); ? May 14 14:45:22 R13ose: yes.. but try "Choose an image" May 14 14:51:20 Napalm: still chooses only the documents app May 14 14:51:52 R13ose: then you only have 1 app that supports what your requesting the document app. lol May 14 14:52:01 R13ose: pastebin your code now May 14 14:53:59 Napalm: Code: http://pastebin.com/6E19sgMK All I want to request is open a gallery app which is not the documents app. May 14 14:54:24 R13ose: but you want to get an image? May 14 14:55:19 Napalm: I only want to open the gallery right now and later get an image May 14 14:55:31 R13ose: what do you mean later? May 14 14:55:55 R13ose: you mean in "later in your code" or later when you get to that point of dev May 14 14:56:11 R13ose: because either way you might aswell launch to get an image now and ignore the result May 14 14:56:37 Napalm: When I get to that point in dev. I am only trying to open various apps right now. May 14 15:04:33 wb g00s May 14 15:04:42 hey nap May 14 15:04:47 lol hey Napalm May 14 15:05:39 restarted machine, AS hangs again May 14 15:08:41 Napalm are you using instant run ? May 14 15:08:50 yes May 14 15:09:04 do you set minSdk=21 for dev to speed up multidex? May 14 15:09:26 i never seem to need multidex May 14 15:09:39 from what i understand, IR uses it underneath May 14 15:09:51 if I did, i probably would speed it up with that if thats what it does May 14 15:13:21 Napalm: I tried addCategory(Intent.CATEGORY_APP_GALLERY); and that opened a blank window with Choose an image but nothing else. May 14 15:13:30 hey, they said they fixed this 05-14 11:12:11.296 .... W/FragmentManager: moveToState: Fragment state for SettingsFragment{2c4fd1f #0 id=0x7f0f00a0 android:switcher:2131689632:1} not updated inline; expected state 3 found 2 May 14 15:13:39 R13ose: http://pastebin.com/GbX1BmWi May 14 15:14:15 Napalm do you know how to get AS and command line gradle to use same cache, and how to do 'gradle dependencies' on AS's version of the cache May 14 15:16:09 R13ose: Intent.CATEGORY_APP_GALLERY only works with Intent.makeMainSelectorActivity May 14 15:16:23 okay May 14 15:16:36 g00s: yes install gradle and ask as to use it May 14 15:16:44 AS May 14 15:16:55 its in the settings you choose the gradle install directory May 14 15:17:13 Napalm i'm not using the wrapper; already using the local gradle - but AS cache and command line cache are not the same May 14 15:17:32 g00s: probably because your gradle version differs? May 14 15:17:35 you see this, if you go out of AS and do a build, and gradle downloads all the shit again May 14 15:17:49 Napalm i only have one version of gradle installed ;) May 14 15:18:10 my project structure is pointing to the correct gradle (the only one, local, 2.13) May 14 15:18:16 no i mean the requested version.. other than that.. i'd say AS cant find gradle. so its defaulting over to local.. perhaps May 14 15:18:35 AS has a different /cache/ its using the correct gradle May 14 15:19:39 g00s.. its AS settings that has the gradle install path.. not the project structure. May 14 15:19:54 g00s: let me give it a go May 14 15:20:20 oh yeah you are right about that, project strusture has JDK May 14 15:21:06 Napalm https://discuss.gradle.org/t/one-cache-for-both-commandline-and-android-studio-gradle/14227 May 14 15:22:09 erm.. but that dude is executing "gradlew" the wrapper May 14 15:22:17 instead of "gradle" May 14 15:22:34 yeah i seethe same thing though May 14 15:22:52 just using '$ gradle' May 14 15:24:01 Napalm its the .gradle/2.13 dir in the project root folder May 14 15:24:32 reminder to self, delete ~/.gradle every now and then.. 2.5GB fucking hell May 14 15:24:48 I've a list item that is clickable and the textview inside is selectable. My problem is that one click on my text won't trigger the onclick and the long click triggers the selection mode. May 14 15:24:50 sp ~/.gradle/caches/2.13 and $project/.gradle/2.13 are the same May 14 15:24:52 How can I change that behavior to trigger the on click when my list items textview is selectable? May 14 15:25:24 Napalm: thanks for the help. I am doing something wrong and need to do some other things now. May 14 15:25:41 i wonder if there is a way to make AS use ~/.gradle/caches May 14 15:25:52 ChampS_: have you tried setting the onClickListener for your TextView? May 14 15:26:02 g00s: just checking May 14 15:26:16 Napalm: I have a onClicklistener on the item May 14 15:26:27 but it is not triggered when my textview is selectable May 14 15:26:43 just if I click not directly on the text May 14 15:26:51 ChampS_: i did read what you wrote.. is the TextView your item? May 14 15:27:37 I wrote the textview is part of the item :P May 14 15:27:53 the item is a linearlayout with an imageview and a textview May 14 15:27:57 right.. so do as i suggested then May 14 15:27:59 jees May 14 15:28:42 Hello everyone May 14 15:29:09 hello figuraurto May 14 15:29:46 I tried to implement runtime permission and I'll be glad if you can check it out if I did it properly. May 14 15:30:31 I have a location button and it displays user's location when clicked. But of course, it first checks location provider and permissions. May 14 15:30:43 Napalm so I have to add two click listener one for my item and one for the textview? May 14 15:30:57 Could you have a quick look at the flow of my code? May 14 15:32:30 fig: i cant but perhaps someone else can May 14 15:32:45 ChampS_: im saying try it and see if your TextView's onClick handler is being called May 14 15:32:57 oke, then I'll drp the github link here: https://github.com/figengungor/LocationPermissionDeneme/blob/master/app/src/main/java/com/figengungor/locationpermissiondeneme/MainActivity.java May 14 15:33:00 ChampS_: then you can work out how you want to handle the clicks May 14 15:33:54 yes that would work but it's just a hack. The question is, why is the items onclick not triggered when I click on a component inisde the item when this item is selectable May 14 15:36:21 because the selection takes it May 14 15:36:47 ChampS_: try calling textView.setClickable(false); in your code after you make the text selectable May 14 15:36:59 that should let the click fall-through May 14 15:37:41 ChampS_: did you read the docs? https://developer.android.com/reference/android/widget/TextView.html#setTextIsSelectable(boolean) May 14 15:38:28 I'm trying to wrap Firebase async calls in rxjava May 14 15:38:35 this is harder than I expected May 14 15:40:53 g00s: my $project/.gradle never has any cache in it.. no matter if i use the wrapper or not.. it always uses ~/.gradle May 14 15:41:07 RustyShackleford: thats because its a bad idea May 14 15:41:17 Napalm weird May 14 15:41:34 Napalm, why do you say that? May 14 15:41:34 perhaps a platform/os difference.. or environment variable someplace May 14 15:41:46 seemed like a good idea to me May 14 15:41:57 async depending on async possibly depending on more async calls May 14 15:41:59 welcome to nodejs May 14 15:42:00 lol May 14 15:42:13 abstract the database so the rest of my app doesn't call Firebase methods directly May 14 15:42:58 the problem I'm running into writing tests is that they aren't easy to make self contained May 14 15:43:47 RustyShackleford: im not saying your idea isnt correct.. but why abstract an async system with another? May 14 15:44:06 RustyShackleford: just create your own interface and class to maintain your database relationship across the app May 14 15:44:08 writing a test for createBoard() means that I also need to use getBoard() (to verify that the value was added to the database) and deleteBoard() (to prevent this new value from screwing up other test cases) May 14 15:44:10 then the backend can be whatever you like May 14 15:44:50 RustyShackleford: i know this video uses Ruby as its example.. but it also applies to Java. https://www.destroyallsoftware.com/talks/boundaries May 14 15:46:29 30 mins lol May 14 15:46:46 alright lets see what this guy has to say May 14 15:56:36 Napalm, I think i'm following this guy's "Value is the boundary" more or less May 14 15:56:51 except my boundary is an Observable May 14 15:57:00 er Observable May 14 15:58:13 Napalm have you tried that new flexbox layout library > May 14 15:59:19 from google May 14 15:59:41 nope May 14 15:59:48 but looks like something I made awhile back May 14 16:00:29 hm, so ProgressBar leftmost point must be 0; i can't have 0 in the middle May 14 16:00:46 thing that gets me so many android widgets make dumb assumptions May 14 16:00:55 g00s: just add a base and negate from it May 14 16:01:04 like progressbar is 0 to 100 May 14 16:01:23 read value=0 .. so 0-50 = -50 May 14 16:01:26 Napalm i need 0 to be in the middle, with -10 pointing to the left from the middle May 14 16:01:35 read value=50 .. so 50-50 = 0 May 14 16:01:54 i'll just make my own May 14 16:01:58 ? May 14 16:02:03 i just said how simple it is May 14 16:02:09 lol, make your own progressbar? May 14 16:02:35 -10 to +10 basically is what you want. May 14 16:02:49 on SO somebody proposed using two ProgressBars and rotating the left one lol May 14 16:02:52 Shh, don't tell secrets of maths! May 14 16:02:55 what?? May 14 16:03:07 i dont think you guys understand this :D May 14 16:03:12 oh rlt? May 14 16:03:14 rly May 14 16:03:20 i need 0 to be in the MIDDLE of the progress bar May 14 16:03:34 and a negative number goes on to the left, not the right May 14 16:03:41 g00s: and i just said how to do that May 14 16:04:40 so i'd like to figure out what check an application i'm blackbox testing is performing to determine that it's on a 'rooted' device (refusing to run in android-studio emulator) May 14 16:04:40 any suggestions? May 14 16:05:05 Decompile it? May 14 16:10:12 nsh: most root checking apps do a few checks. 1. check to see if "su" can be found on the env $PATH. 2. check to see if supersu is installed via package or location of apk file in /system/app 3. test if the device os is built using test-keys which genymotion is, not sure about adk. done by checking Build.FINGERPRINT contains "test-keys" or Build.TAGS is equal to "test-keys" or Build.TYPE May 14 16:10:12 equals "userdebug". May 14 16:10:46 all of that however is pretty flawed May 14 16:11:23 nsh: one of the better checks is to see if the ro.debuggable system property is set to 1 May 14 16:11:44 which of those would be triggered by running a stock image in android studio emulator? the OS build? May 14 16:11:46 which is the system wide debug flag.. which you can enable on any device and get root without ever installing su/supersu May 14 16:12:09 nsh: I did a post on it.. http://forum.xda-developers.com/showthread.php?t=1794203 May 14 16:12:13 ty May 14 16:14:30 nah GMS has some check for something like that ... May 14 16:14:35 not sure if its rooted specifically May 14 16:18:42 nsh oh i was thinking of this https://developers.google.com/android/reference/com/google/android/gms/safetynet/SafetyNet#field-summary May 14 16:18:49 man, those docs fucking suck ! May 14 16:18:58 why do they even bother May 14 16:22:36 ah, su is present in the android emulator May 14 16:22:53 nsh: The emulator has built in root access? May 14 16:22:56 nsh: just adb shell in and rename it May 14 16:23:01 * nsh nods May 14 16:23:13 LunarEclipse120: the command is "adb root" May 14 16:23:33 it'll restart adbd on the emulator as root May 14 16:23:35 rather than shell May 14 16:23:38 Napalm: Yeah I know about that. I do custom ROM stuff lol May 14 16:23:39 if i remember correctly May 14 16:23:47 oh, I thought you were asking May 14 16:24:00 Napalm: Doesn't work on all devices. May 14 16:24:09 LunarEclipse120: you can make it May 14 16:24:19 Napalm: https://play.google.com/store/apps/details?id=eu.chainfire.adbd&hl=en May 14 16:24:25 That thing does it automaticlly. May 14 16:24:33 its not the same May 14 16:24:42 LunarEclipse120: http://forum.xda-developers.com/showthread.php?t=1794203 May 14 16:25:01 oh May 14 16:25:02 wait May 14 16:25:08 perhaps it is May 14 16:25:09 Same guy May 14 16:25:16 He used to make it free; now it is paid May 14 16:25:31 Chainfire: < is here May 14 16:25:54 Napalm: Oh are you just flashing SuperSU? May 14 16:25:59 no May 14 16:26:02 read on May 14 16:26:09 that was just to show regular "rooting" May 14 16:26:21 i modify the boot parition May 14 16:26:30 well the initrd May 14 16:26:34 You aren't using ClockworkMod are you? May 14 16:26:36 in the boot parition May 14 16:26:46 no May 14 16:26:52 Oh thank god May 14 16:27:00 this was back in 2012 May 14 16:27:01 :P May 14 16:27:57 anyway, i just modified the default.prop in the initrd of the boot partition.. so the device boots up with ro.debuggable set to 1 May 14 16:28:28 the os detects this and lets you see all threads/processes/anything and adbd to run as root May 14 16:28:42 And use ADB on boot afaik May 14 16:28:48 Oh wait, that is a differernt one May 14 16:37:51 /system is mounted ro so couldn't rename su, remounted rw and still can't... May 14 16:39:01 oh remount failed May 14 16:39:39 nsh May 14 16:39:43 shutdown the emulator May 14 16:40:06 * nsh nods May 14 16:40:07 mount the system partition of the emualators disk image on a loopback device and edit the file thre May 14 16:40:16 right May 14 16:41:12 Hey guys. If I want to use the 'location.getSpeed()' method in my emulator -- it's not possible, right? What would be the best way to calculate speed in that case? May 14 16:48:24 heh, now the image won't boot May 14 16:48:53 ah because i forgot to umount May 14 16:49:03 right, that did the trick :) May 14 17:09:44 why is there no find command... :/ May 14 17:09:57 busybox find May 14 17:10:03 or at least install busybox May 14 17:10:03 ty May 14 17:10:13 * nsh nods May 14 17:10:31 or Termux May 14 17:57:48 Guys how can I set my emulator to go to lock screen mode when I press the power button_? May 14 17:58:25 Psychiatrist: ? May 14 17:58:46 Psychiatrist: in the android settings? May 14 17:58:55 LunarEclipse120, When I press the power button the screen goes black and when I press it again theres no lock screen May 14 17:59:05 Psychiatrist: Turn it on in settings -_- May 14 17:59:22 Psychiatrist: Are you making one of those crappy 3rd party lock screens? May 14 17:59:43 LunarEclipse120, No I'm trying to see if my notification remains on the lock screen May 14 17:59:47 ok May 14 18:01:02 Thanks it worked! May 14 18:02:38 im making a new activity start up via button click. does finish(); stop the current activity? May 14 18:02:45 should i use it on my main activity? May 14 18:03:24 thornekey: Do you have another activity? May 14 18:03:48 well i mean is it good practice to finish the main activity when i press a button and start another May 14 18:03:55 or should i allow the user to hit the back button May 14 18:04:04 on their phone to go back? May 14 18:04:45 Depends on the purpose May 14 18:04:55 fair enough May 14 18:06:58 you can freely finish() if you want May 14 18:08:01 i meant as good practice :) like would most apps have it that way May 14 18:13:21 Isnt it the only way to close an activitiy? May 14 18:14:24 drose379, i mean you could just not close it so the user can hit the back button on their phone and return to the previous activity May 14 18:14:36 life if you were on a main menu and hit back after pressing a button May 14 18:15:58 Depends on how you are managing the backstack May 14 18:39:56 is there an easy way to install busybox on non-rooted devices? May 14 18:40:02 nsh: No May 14 18:40:24 k May 14 18:41:49 erm May 14 18:41:54 just copy the binary into the image May 14 18:42:36 nsh: Well, you can install it anyway; they need to be run as root afaik May 14 18:42:52 he has su May 14 18:42:54 just renamed May 14 18:43:12 oh ok May 14 18:43:51 Napalm, no i'm now trying to copy statefiles over from a real device that isn't rooted May 14 18:44:02 because the emulated android couldn't take a photo in a way the app wanted May 14 19:03:55 can somebody help me to pass a var from a custom listview (selected) to a new activity ? its not visible, i have to get it via ID but it doesnt work =/ May 14 19:05:03 Hey guys, I keep getting "segmentation fault" when trying to run my c++ cmd line app. It normally worked perfectly, until now. May 14 19:05:21 that means there's a memory access error. maybe you're trying to access something that's null? May 14 19:05:34 its a very very vague error that you should try debug mode with May 14 19:06:19 dpyro The App runs on terminal, but when a type something as the input, it gives the error May 14 19:10:07 i hve a text view and ive set the text alignment to center but its appearing on the left? May 14 19:10:27 I think it could possible be a problem with my code. Link to repo: https://github.com/cyource/Prebuiltive May 14 19:14:20 hi everyone May 14 19:14:26 hey May 14 19:14:47 did anyone use selendroid on android here ? May 14 19:17:10 I have an app that I am trying to find some international folks to help me test soem features I can’t test in the US. Anyone have any tips on where to find beta testers for free? May 14 19:17:38 for free? May 14 19:18:56 BooeyOH,Have you try google+ May 14 19:19:35 I have a couple of communities for the app and asked there, but those are mostly current US only users, so it didn’t seem to work too well May 14 19:19:46 dypro: preferrably, or cheap May 14 19:19:59 i see May 14 19:24:29 Im tryna make a splash screen. This is what ive got however it wont show. http://ideone.com/Pn9rZf May 14 19:24:35 I have no errors May 14 19:27:02 thornekey, what is the name of your file for that class? May 14 19:27:17 SplashScreen May 14 19:27:24 do i need to do SplashScreen.this? May 14 19:27:44 it should be SplashScreen.java May 14 19:28:11 for which parameter? May 14 19:28:12 at least for the “should be declared in a file named SplashScreen.” error May 14 19:28:23 the file that class is in May 14 19:28:25 You finish it immediately.. It's never shown May 14 19:28:42 Im not getting any errors thats just ideone being stupid May 14 19:29:46 oh, gotcha, what exactly is (or isn’t) happening then May 14 19:30:53 heheh :3 Im using that class as my splash screen, and in oncreate i want it to load the main menu activity. I get no errors and it just loads straight to the main menu (i dont see the splash) May 14 19:30:56 https://www.bignerdranch.com/blog/splash-screens-the-right-way/ im following this guide May 14 19:31:43 anyone know anything about selendroid ? May 14 19:33:28 The content view will not be shown if you finish immediately. That's why that guide sets the image as the window background May 14 19:34:32 oh May 14 19:34:34 :/ May 14 19:34:41 Is there a way I could make my method work? May 14 19:34:46 like a delay? May 14 19:35:30 Sure, but why would you unnecessarily delay showing the user your content? May 14 19:36:17 you need to put a delay before calling finish() May 14 19:36:34 oh. my hexchat didnt scroll :/ May 14 19:37:53 danijoo, how do you suggest doing that? May 14 19:38:11 SimonVT, cos the splash has the app name haha (bit redundant but) and the menu does not May 14 19:38:29 thornekey, i suggest to not do a splash if you dont need to load anything May 14 19:38:35 So just in case the user didn't notice what icon they clicked May 14 19:38:36 Gotcha May 14 19:38:37 nobody cares about seeing your app name May 14 19:38:52 well each to their own.. May 14 19:38:57 i want one ahah May 14 19:39:21 yea, SimonVT XD May 14 19:40:44 has instant run already arrived in intellij (ultimate) ? or is it still AS exclusive May 14 19:42:24 thornekey its been known for 10 years , splash screens piss users off May 14 19:42:42 desktop, mobile, doesn't matter May 14 19:43:03 at least 10 years, whenever HN/g did that research - it was a while ago May 14 19:47:19 thornekey: that splash guide doesnt really advocate the best experience, there is no need to have a SplashActivity May 14 19:48:07 thornekey: you just load straight into your MainActivity and change the windowBackground in onCreate or call setTheme before super.onCreate May 14 19:48:40 Hey Napalm May 14 19:48:56 hey drose379 May 14 19:49:19 Hows it going May 14 19:50:00 alright thanks, and yourself May 14 19:50:27 Not bad, had to re-install my OS last night May 14 19:50:39 Turned out OK though, running the newest Ubuntu version now May 14 19:51:37 Hey guys. What could be the reason I cannot find my Textviews in my custom notification from my MainActivity with: '(TextView) findViewById(R.id.textViewWayPointMetrics)' ? May 14 19:52:00 It returns null always May 14 19:52:06 erm... what? May 14 19:52:06 Because the TextViews are in the custom notification, not the activitys content view May 14 19:52:07 lol May 14 19:52:27 Find them on the view you're inflating for the notification May 14 19:52:54 thornekey, if you really want to go that way, something like that would work https://gist.github.com/danijoo/7da14338cd425a963a9eb4879c3b5908 May 14 19:53:15 danijoo: really? May 14 19:53:34 You're such an enabler May 14 19:53:43 SimonVT, How would I do that? Give my custom_notification an Id and find by that id? May 14 19:54:16 Napalm, yes? May 14 19:54:37 bad idea May 14 19:54:48 Napalm, the whole thing is a bad idea May 14 19:55:15 Bad Idea Jeans (tm) May 14 19:55:19 are you asking or telling.. because i know its a bad idea May 14 19:55:21 lol May 14 19:55:23 but thats the starting point for him to how to delay the finish May 14 19:55:42 Napalm, im telling. An we all told him already that it is :) May 14 19:55:54 * Napalm goes back to writing his awesome media player May 14 19:56:00 Psychiatrist: I assume you have a custom layout for your notification.. So somewhere you're inflating that May 14 19:56:02 but hes not looking for better design decisions. hes looking for how to do his bad thing May 14 19:56:58 Anyway, depending on what you're trying to do, there's probably a better way May 14 19:57:22 On a button click, is it bad practice to make a quick logic decision before deciding what to do May 14 19:57:24 Will it show lag? May 14 19:57:47 drose379, its fine May 14 19:57:52 if its quick May 14 19:58:05 be quick or be dead May 14 19:58:13 Just check if a number is greater then 0 May 14 19:58:15 BUT May 14 19:58:22 you can do that May 14 19:58:29 but you shouldnt do sth like i/o May 14 19:58:38 Im not doing it in the view, im telling the presenter about it, and the presenter is making the decision and telling the view where to go May 14 19:58:49 Is that ok too? The logic is just abstracted away from the view May 14 19:59:02 yes May 14 19:59:15 Sweet, thanks May 14 19:59:34 Working on keeping strict mvp design May 14 19:59:45 So.. no logic in the View May 14 20:05:32 SimonVT, What did you mean exactly by inflating the custom layout ? I tried setting the notification textview text with: remoteView.setTextViewText but that did not work. The remoteView was new RemoteViews(getPackageName(), R.layout.notification); May 14 20:06:56 Should be no issue with setTextViewText May 14 20:07:06 The issue is probably with your code May 14 20:08:23 SimonVT, Alright I'll check, now I know I'm at least going in the right direction. Thanks a lot, I appreciate it! May 14 20:17:41 is there a good helper method to take a 24 hour representation and turn it into a 12 hour representation for display? May 14 20:17:47 inputs : hour == 0-23, min == 0-59 and outputs something like 12:34PM May 14 20:18:17 if(hour > 12) hour -= 12; May 14 20:18:38 could be some Calendar and SimpleDateFormat("") May 14 20:18:47 ^ this or DateUtils May 14 20:19:04 best thing is to work with unix timestamps internally and then DateUtils for formatting imo May 14 20:19:32 SimonVT, It works the initial time when I inflate the view but when I later try to use the '.setTextViewText()' method again on the same 'remoteView' variable it doesn't update the text. Should I use another method to update it? May 14 20:20:08 Yeah, update the entire notification May 14 20:21:03 DateUtils.formatDateTime(context, timestamp, FORMAT_SHOW_TIME | FORMAT_12HOUR); should give you the time as 12 hr representation May 14 20:21:13 + it will be in the correct locale and stuff :) May 14 20:21:21 Once you show the notification, it's parceled and sent to the OS.. It's no longer in your process, and it doesn't use the RemoteViews instance you have May 14 20:22:06 danijoo cool. thanks :) it's coming back from a timepicker instance is there a method on that to get a timestamp? May 14 20:22:59 weaksauce, timestamp is just elapsed seconds from 1.1.1970 so it should be easy to calculate May 14 20:23:33 if you have only hours and minutes, then it might be overkill May 14 20:24:32 i think this should work: GregorianCalendar(year, month, day, hour, minute).getTimeInMillis() May 14 20:25:05 if you dont care about date you could just add hours and minutes as seconds together and use this with DateUtils May 14 20:25:07 SimonVT, Is there a special way for updating the entire notification or should I just recreate it? May 14 20:25:19 Just recreate it :) May 14 20:25:28 Give it the same id and it'll override the previous May 14 20:25:31 it will lead to a time on 1.1.1970 but if you dont display date, who cares May 14 20:26:16 DateUitls.formatDateTime(ctx, hours * 60 * 60 + seconds, ....) May 14 20:32:04 I just wrote a quick utility method that should work fine. thanks for the help though May 14 20:45:29 you guys ever use fiddler? May 14 20:45:37 very cool piece of software May 14 20:46:20 anyone know how to open the facebook app for pages in the latest facebook? fb://facewebmodal doesn't seem to work anymore May 14 20:52:44 can someone tell me what has gone wrong here when I try to run my app? https://i.imgur.com/sBheJRn.png May 14 20:55:04 Sounds like you didn't add the design library as a dependency May 14 20:55:34 I was following the official tutorial and it said nothing about that: https://developer.android.com/training/basics/firstapp/building-ui.html May 14 20:55:59 in fact, I ran the app earlier in the tutorial without a hitch May 14 20:56:17 I only added a couple View items and strings May 14 20:56:44 Though, it was yesterday when I last ran the app, and I left AS running since then May 14 20:58:19 layout_behavior is for when you use CoordinatorLayout, which is in the design library May 14 20:58:25 If you don't use CoordinatorLayout, just remove it May 14 20:58:46 I don't have coordinatorlayout written anywhere that I can see May 14 20:58:55 can I search for it throughout my project? May 14 20:59:35 Sure, right click any folder and find in path May 14 20:59:46 I doubt you do, since it requires the design library May 14 21:00:13 wasn't found May 14 21:00:23 so if it wasn't found what is causing the error? May 14 21:00:56 layout_behavior is defined in the design library May 14 21:01:10 what's the "Design library"? May 14 21:01:15 It doesn't exist if you dont use the design library May 14 21:01:20 oh, I see May 14 21:01:40 so was the design library included by default in the past? May 14 21:01:43 http://developer.android.com/tools/support-library/features.html#design May 14 21:01:52 No idea May 14 21:01:57 because it's included in the tutorial without any mention about the design library: https://developer.android.com/training/basics/firstapp/building-ui.html May 14 21:02:08 and I know the tutorial is a bit dated May 14 21:06:14 Can you publish ARM and x86 versions of your app on Android Market separately? May 14 21:13:46 yes May 14 21:23:18 SimonVT, Distrubing you again, I got my notification to update its textvoew values now but it won't keep updating while I'm on the lockscreen -- does that require some additional magic? May 14 21:26:15 Not that I know of May 14 21:26:20 Is your code still running? May 14 21:28:11 SimonVT, Damn, I thought it was, I'm making a map app so I'm using emulator to run a GPX file. But it seems the values are just updated instantly when my map opens, since they update so quickly I thought it was running in the background. May 14 21:31:31 thanks pfn May 14 21:39:21 I've a list item that is clickable and the textview inside is selectable. My problem is that one click on my text won't trigger the onclick and the long click triggers the selection mode. May 14 21:39:28 How can I change that behavior to trigger the on click when my list items textview is selectable? May 14 21:39:52 already changed the textview to non clickable and non focusable but that does not work either May 14 21:47:25 SimonVT, Thanks. I found my bug - the onLocationChanged() method from LocationListener isn't called in lock screen even though the location is being updated. May 14 21:55:10 Has anyone got an idea on why the onLocationChanged() method from LocationListener isn't called while in lock screen? May 14 21:57:03 SimonVT, I just removed the line. Thank you May 14 23:40:49 when user press on button, I need to slide rightmost DrawerLayout panel (opposite of navigation). The contents of this panel are a fragment. The fragment is added when the user presses the button (its not known until then). what i see, when i do fragmentManager(add) , drawerLayout(slide) - is not cool May 14 23:41:10 i'd like the fragment to be added, and the slide out animation to be smooth - any ideas ? May 14 23:41:32 should i wait a few ms after adding the fragment to the framelayout, before I slide out the drawer ? May 14 23:42:29 almost seems the panel slides out completely before the fragment appears lol May 15 00:04:01 So about loggers May 15 00:04:12 Any recommendations for android? Or ones to avoid? May 15 00:05:04 My body is prepared for the beating I will take for asking an open-ended, slightly opinion oriented question May 15 00:06:39 how many options are there O.o May 15 00:08:37 According to my googling, a metric butt ton. Scientifically speaking May 15 00:09:27 I'm used to log4j in not android java environments, but I feel like that might be overkill May 15 00:10:43 christ, its 2016 and my stupid IDE is still out of sync with gradle : builds are fine but red underlines everwhere, after all kinds of clean / clear caches dances May 15 00:11:48 g00s: don't worry christ will show up in 2020 May 15 00:12:16 shmooz you'll still be using gingerbread when He comes ! May 15 00:12:51 I will have my cupcake phone ready, it's my ticket to heaven May 15 00:13:05 or hell May 15 00:13:16 and all you greedy classist programmers who don't care about the poor will burn in hell forever! May 15 00:18:33 is Vector a good unbounded array or is there another one I should use? May 15 00:20:16 Hasn't Vector been deprecated since like 1.5? May 15 00:21:29 ResidentBiscuit no clue. that's why I am asking May 15 00:21:44 I'm only slightly more clueful than you May 15 00:22:05 I just know the generic term for things. hashmap, map, dictionary are all java things and they all do nearly the same thing May 15 00:22:17 just curious what is the best one to use May 15 00:22:19 "If a thread-safe implementation is not needed, it is recommended to use ArrayList in place of Vector." May 15 00:22:44 Straight from the horse's mouth. I can't say I've ever seen Vector used in anything but really old code May 15 00:22:54 cool beans. thanks for that May 15 00:23:25 It doesn't say anything about being deprecated though. But yeah, I'd follow the javadoc advice, use ArrayList unless you need thread safe May 15 00:35:40 this message on my .cpp file in android studio never goes away: "please sync the project again for the ndk support to work properly" even after i sync hte project. May 15 00:51:05 Hi guys, I seem to be having trouble adding a second thread to my activity... are there considerations to be made when accessing/modifying non-ui variables in the class? May 15 00:51:28 Bam_Bam of course ... May 15 00:53:50 g00s: sorry for a fairly dumb question. I have extremely limited android/java experience. Will it throw an exception if there is a cross thread violation? May 15 00:54:32 if you touch a view from non-ui thread you will get an exception ... but other things just wind up being subtle concurrency bugs May 15 00:54:54 hey guys, I'm trying to add a button on top of a ScrollView, as in "floating", but I can't make it work, do i have to set TranslationZ or something? May 15 00:59:29 g00s: I don't think I'll have concurrency issues. I think my problem is a lack of a handler in the thread run method. I'll do some more reading. May 15 01:01:10 evening May 15 01:03:49 nvm i'm going to use the floating button May 15 01:43:11 Bam_Bam, threading can be non-trivial, depending on what you're trying to do: http://developer.android.com/guide/components/processes-and-threads.html May 15 01:43:49 AsyncTask is probably going to be your goto "quick and dirty" class, but some people might even recommend getting started with RxJava right away May 15 01:44:17 to get a nicer way to deal with schedulers/threads May 15 01:54:33 Ologn http://appleinsider.com/articles/16/05/13/study-amid-sea-of-disposable-apps-health-and-fitness-reigns-supreme May 15 01:54:50 seems to apply to both iOS and Android May 15 02:09:49 http://www.androidpolice.com/2016/05/14/play-store-v6-7-is-rolling-out-with-ability-to-joinleave-betas-developer-feedback-for-betas-and-more/ May 15 02:10:23 feedback for betas sounds interesting ... May 15 02:19:24 CORDOVA QUESTION: Hello guys, can anyone please help me? I'm using Cordova Camera plugin (tried Capture Media too), I'm using cordova-android 5.1.0 and when I took the photo, the app get killed, and get back to the app the "resume" event does not come with the "pendingResult" key. I tried to remove and add the platform, all the plugins, tried to use another plugins but nothing work. Can anyone May 15 02:19:30 help me please? In fact I'm using cordova-android 5.2 (development) but already tried cordova-android 5.1 too May 15 02:20:25 do intents queue or would I need to implement intentService to make sure I don't miss any? May 15 02:21:08 victorqueiroz: How about just coding the camera thing yourself? May 15 02:21:14 victorqueiroz this is native app dev May 15 02:21:21 try #cordova or something like that May 15 02:21:42 Bam_Bam they queue May 15 02:22:31 @LunarEclipse120 the problem is that Android kill the app if the option "Don't keep activities" is checked or if the device is a low memory one... May 15 02:22:48 victorqueiroz: Please stop using @ May 15 02:22:55 victorqueiroz: IRC != Twitter May 15 02:24:04 Ok. Thank you. **** ENDING LOGGING AT Sun May 15 02:59:58 2016