**** BEGIN LOGGING AT Tue Dec 01 03:00:47 2015 Dec 01 03:02:28 TacticalJoke, http://i.imgur.com/gkNbBRK.png Dec 01 03:02:40 feels like a joke... Dec 01 03:03:25 recalling the same experience in undergrad, with buggy open source software Dec 01 03:03:53 lol Dec 01 03:04:10 :D Dec 01 03:04:24 4h lab classes troubleshooting things that didn't make sense; just reinstall everything from scratch and maybe it would work. Dec 01 03:04:39 and sometimes it would. Dec 01 03:05:10 just wait until you decide to use proguard Dec 01 03:05:23 I don't even want to know what that is Dec 01 03:05:53 the ROI on the time spent.... *facepalm* Dec 01 03:05:58 phobik2000: Ctrl+Alt+S > Build, Execution, Deployment > Compiler > Command-line Options. Dec 01 03:06:37 soLucien: If you have three days to do something on Android, I think I'd suggest forgetting setting up Android testing. Dec 01 03:06:50 JVM testing is simple, though. Dec 01 03:06:59 TacticalJoke what do you mean? Dec 01 03:07:08 TacticalJoke, http://i.imgur.com/0ld6tjB.png Dec 01 03:07:13 i have to create a service that listens to WebSockets Dec 01 03:07:23 how could i do it otherwise? Dec 01 03:07:39 the service is supposed to open a WebSockets connection and get updates Dec 01 03:07:43 install eclipse Dec 01 03:07:50 phobik2000: That shouldn't be there. Dec 01 03:08:07 Eclipse won't solve that issue. Eclipse is far worse for Android testing. Dec 01 03:08:11 TacticalJoke, I don't know why it is, I didn't put it there Dec 01 03:08:22 phobik2000: I guess you imported this project from an earlier IDE. Dec 01 03:08:36 Maybe an earlier AS; maybe Eclipse. Dec 01 03:08:46 TacticalJoke, no, this is stock template Dec 01 03:09:03 blank activity Dec 01 03:09:13 ok so give me some advice Dec 01 03:09:14 just wanted to see something launch Dec 01 03:09:30 i know how to do pure JUnit testing, no probs Dec 01 03:09:32 phobik2000: Remove the whole string. Dec 01 03:09:35 done it before Dec 01 03:09:54 so i have this AndroidService. How do i test it? Dec 01 03:10:03 should i create a java class that does all te work Dec 01 03:10:09 wrap it in a service class Dec 01 03:10:16 and hope it works on Android? Dec 01 03:10:42 this is supposed to get stuff from WebSockets Dec 01 03:10:48 then push it to the UI Dec 01 03:10:52 soLucien, google for a working example code? Dec 01 03:10:56 \n\n\n\n\n Dec 01 03:11:01 i have example code Dec 01 03:11:04 it doesn't work Dec 01 03:11:10 i mean i could pull and see Dec 01 03:11:10 bankai_, nyan nyan nyan? Dec 01 03:12:06 soLucien, are you able to biuld & run apps? Dec 01 03:12:10 build* Dec 01 03:12:19 sure Dec 01 03:13:09 before all this crazy AS stuff, nack in the day, when i had stuff working, it made more sense to just create some simple test code class Dec 01 03:13:27 c style Dec 01 03:13:27 this is a service Dec 01 03:13:56 i can't test it unless i have an activity that uses some initialization code Dec 01 03:14:14 how long can it take you to write one Dec 01 03:14:25 maybe less than the time you've already spent in circles Dec 01 03:14:58 better if you can google skeleton code Dec 01 03:15:02 but if i manage to set up testing it's all a breeze Dec 01 03:15:06 i mean i tdd Dec 01 03:15:36 or you could spend 3 days trying Dec 01 03:15:57 http://pasteboard.co/2xo8BGWP.png Dec 01 03:15:59 How do you guys come up with names for your apps? Dec 01 03:16:08 i am sure someone here can help me out Dec 01 03:16:17 myapp###### Dec 01 03:16:18 and that it's just a gradle quirk Dec 01 03:16:24 a stupid thing that is not documented anywhere Dec 01 03:17:59 help please ? :D Dec 01 03:18:18 holy fraking apples Dec 01 03:18:24 TacticalJoke, it worked Dec 01 03:18:51 I can't belive it. such achievement. a white screen. Dec 01 03:18:57 haha Dec 01 03:19:02 soLucien: The 2nd, 3rd, and 4th `androidTestCompile` statements should be deleted. Also, open Build Variants and select "Android Tests". Dec 01 03:19:14 Android Instrumentation Tests* Dec 01 03:19:41 TacticalJoke, thanks for your help. Dec 01 03:19:58 btw, is there a way to easily share apk for testing? Dec 01 03:20:25 Yep Dec 01 03:21:06 I like google ADT tool concept even though still don't know how it works, but that's for web technologies Dec 01 03:21:08 TacticalJoke still red Dec 01 03:21:24 i remember if i was using instrumentation tests Dec 01 03:21:33 i should place the test in another dir? Dec 01 03:21:39 "androidTests" Dec 01 03:21:40 smth? Dec 01 03:21:45 read it somewhere Dec 01 03:22:13 Oh yeah, `androidTest`. I wasn't looking on the left. Dec 01 03:22:31 it also can't build Dec 01 03:22:39 maybe if i put it in androidTest it wil Dec 01 03:24:05 drose379, how? Dec 01 03:24:43 app/build/outputs/apk/app-debug.apk Dec 01 03:25:37 ah, i mean to distribute it Dec 01 03:25:52 I guess cloud storage Dec 01 03:27:52 TacticalJoke, I want to display something on a card, and the item depends on a sqlite query Dec 01 03:28:01 Im trying to figure the best place to make the query Dec 01 03:28:05 I know its not in the adapte Dec 01 03:28:08 adapter Dec 01 03:28:16 are you using MVC Dec 01 03:28:27 Yes Dec 01 03:28:36 fuk yeah ! Dec 01 03:28:39 it works Dec 01 03:28:43 .. better Dec 01 03:28:45 hsouldn't it be in the C? Dec 01 03:28:48 not fully, but better :D Dec 01 03:33:36 drose379: It's often simple to do such things in the View. But that gives the View controller responsibilities, which sometimes looks weird. Dec 01 03:33:56 Wouldnt making a SQLite request for each view slow down the listview immensely? Dec 01 03:35:04 Also, for anyone who cares to look, which cards look better, top image or bottom image (2 cards per image): http://imgur.com/a/s85my Dec 01 03:35:22 !!! JUnit version 3.8 or later expected: Dec 01 03:35:22 java.lang.RuntimeException: Stub! Dec 01 03:35:25 what the hell .. Dec 01 03:35:32 i'm using junit 4.12 Dec 01 03:35:37 Please don't use JUnit 3 Dec 01 03:35:49 looks like you're trying to test an Android component I think Dec 01 03:37:16 http://pasteboard.co/2xpx2ZLN.png Dec 01 03:40:36 Are you adding it to the right build.gradle? (shot in the dark, either should work but the error you're getting is indeed puzzling) Dec 01 03:42:36 yes, i just synced them Dec 01 03:43:02 I'm so sorry I forced JUnit on the whole Android community :( Dec 01 03:43:32 yeah, why didn't you push for testng Dec 01 03:43:34 :p Dec 01 03:43:36 it's all your fault Cedric!!! Dec 01 03:44:05 I felt TestNG was not designed for mobile back then, it would have been irresponsible to pick it over JUnit, no matter how crippled I thought JUnit was Dec 01 03:44:08 * barbs is joking of course Dec 01 03:44:51 It's interesting that the very fact that JUnit was so limited is the reason why I picked it for Android, and at the same time, the reason why I started TestNG in the first place Dec 01 03:45:11 what could i do in order to solve my issue? Dec 01 03:45:14 hello. I want to add a messaging component to an app that allows users to communicate with each other. Are there any existing messing platforms with APIs or an SDK that I can use? Dec 01 03:45:17 someone should hire a ghost writer to write dev chronicles Dec 01 03:45:20 Oh well, junit4 is usable now Dec 01 03:45:31 * pfn is happy Dec 01 03:45:45 just wrote a script to share gradle cache between pc Dec 01 03:45:47 would you give ma a hand, pfn? Dec 01 03:45:50 kind of Dec 01 03:45:57 soLucien, with what? Dec 01 03:46:09 please tell me how i could solve my issue Dec 01 03:46:17 if you know how to Dec 01 03:46:33 what? I'm not scrolling back Dec 01 03:46:36 https://gist.github.com/3c8e89c0b8a1d87048f8 Dec 01 03:46:37 weeee Dec 01 03:46:47 mvn dependency:resolve and go Dec 01 03:47:14 "mvn"... now that's a word I haven't heard in a very long time Dec 01 03:47:33 sadly, it's the only I can make my work flow usable Dec 01 03:47:39 there pfn http://pasteboard.co/2xqcWYTT.png Dec 01 03:47:41 pfn, cloned, even though I have no idea what to use it for Dec 01 03:47:45 pfn: Really? You? The sbt wizard? Dec 01 03:48:09 it's almost 5 AM and i need to succed in something before i sleep Dec 01 03:48:12 CedricBeust, because the canonical build is in gradle Dec 01 03:48:24 CedricBeust, and all the artifacts are protected behind. vpn Dec 01 03:48:31 Welcome to the world of being forced to use subpart de facto standards Dec 01 03:48:34 this test case would be a step forward Dec 01 03:48:40 CedricBeust, I don't want to write the sbt script from scratch Dec 01 03:48:50 and to think even the sun will die Dec 01 03:48:53 quite depressing Dec 01 03:49:04 CedricBeust, so I use android-gradle-build, but the other computer needs to have access to artifacts Dec 01 03:49:19 CedricBeust, so I need to extract into a common repo using mvn Dec 01 03:49:20 alien artifacts Dec 01 03:49:50 mvn dependency:resolve does exactly what I need Dec 01 03:50:13 since I need a repo format that both sbt and gradle can understand Dec 01 03:50:28 if gradle could use ivy, I probably would have done that Dec 01 03:50:38 actually, I think gradle does support ivy Dec 01 03:50:47 damn, I could have done this purely in sbt Dec 01 03:51:15 Oh, no, it doesn't, at least not the ivy cache format Dec 01 03:53:24 soLucien, you can't run android tests on jvm, unless you either mock android.jar, or use robolectric Dec 01 03:53:34 soLucien, you need to run as android test Dec 01 03:53:48 i am running as Android Instrumentation Test Dec 01 03:54:09 in my build variants Dec 01 03:54:34 that's not what the ide is doing in your screen shot Dec 01 03:54:40 you told it to test on jvm Dec 01 03:54:52 ok Dec 01 03:54:56 where do i change that? Dec 01 03:56:45 run profile Dec 01 03:57:06 edit configuration Dec 01 03:57:38 anyone here integrate with Google fit? Dec 01 03:59:17 pfn this ? http://pasteboard.co/2xqY6WQF.png Dec 01 03:59:58 websockets test is absolutely wrong Dec 01 04:00:07 pick one under android application Dec 01 04:02:00 ok i got it Dec 01 04:02:03 great !! Dec 01 04:02:53 yes it works Dec 01 04:02:56 thanks a lot ! Dec 01 04:03:11 it was a stupid thing after all Dec 01 04:03:52 i'mma pop open my champagne bottle Dec 01 04:16:28 ok. I have a service running on 192.168.111.192 (this is my LAN IP). I have read some docs that state that the address is supposed to be 10.0.2.2 Dec 01 04:16:46 soLucien: and while you're at it, learn how to stop using enter writing messages on irc Dec 01 04:16:58 should i be able to contact 192.168.111.192 from an Android? Dec 01 04:17:09 Depends on your wifi set up Dec 01 04:17:51 i was very excited when i used enter chat Dec 01 04:18:11 it is pretty quiet here though .. but i apologize Dec 01 04:19:00 I think it was a bunch of separate messages. Dec 01 04:19:35 hmm about the wifi setup: it's an emulated AVD Dec 01 04:20:07 does it actually get routed to the router? Doesn't it get assigned a ip address from my host pc? Dec 01 04:20:23 i'm looking here http://developer.android.com/tools/devices/emulator.html#networkaddresses Dec 01 04:21:32 hi guys I am using YouTubeBaseActivity and YouTubePlayerView,issue is the video is not loading for the first time ,when the phone is rebooted,and app is loaded,any thoughts? Dec 01 04:21:40 ok it does get routed through the wifi. I just did InetAddress.getByName("google.com") and it returned a actual WAN IP address Dec 01 04:22:03 that's how nat works Dec 01 04:22:12 it doesn't translate Internet addresses Dec 01 04:23:03 well the issue is i can't ping 192.168.111.192 from the android app Dec 01 04:23:29 that's normally the case Dec 01 04:23:38 it's on a private host only interface Dec 01 04:26:02 hi guys i am using youtube sdk,the video is not loading for the first time ,any thouhts? Dec 01 04:26:12 when i refresh it works Dec 01 04:26:25 which means it shares the gateway with my computer. my gateway is the router running on 192.168.111.1 Dec 01 04:26:58 nope Dec 01 04:27:00 packets are sent there, and should get to 192.168.1.192 , then return to the android vm Dec 01 04:27:12 adb -e shell ifconfig Dec 01 04:28:11 192.168 is rfc1918 and thus unreachable from 10.x Dec 01 04:29:55 i shouldn't have skipped that chapter in my networking book .. Dec 01 04:30:35 yes, you are right, i would have kept prodding at it for another hour Dec 01 04:31:15 thanks once again Dec 01 04:33:03 so the solution to my problem would be to run the app on a real android phone that has a real network card Dec 01 04:33:22 OR use 10.0.2.2 Dec 01 04:33:51 is there something i'm missing? Dec 01 04:34:13 nope Dec 01 04:34:55 time to put my Samsung to good use then Dec 01 04:35:55 soLucien: you are trying to reach 192.168.111.x from a 192.168.1.1 router ? Dec 01 04:36:47 no it's a 192.168.111.1 router Dec 01 04:37:19 I mean the other way then, you are trying to reach 192.168.1.x from a 192.168.111.1 router Dec 01 04:37:30 Need to tweak your subnet for that to work Dec 01 04:38:43 no, i'm trying to reach 192.168.111.192 from my AVD Dec 01 05:03:06 ok i don;t get it Dec 01 05:03:14 you need to be ont he same subnet Dec 01 05:03:24 i can ping 192.168.111.1 Dec 01 05:03:29 i am on the same subnet Dec 01 05:03:55 i have 3 devices connected to my router : my PC, my laptop and my phone Dec 01 05:04:03 i can ping between PC and laptop Dec 01 05:04:18 so it's not an issue with the firewall rules Dec 01 05:04:34 but when i try from the phone to either of them, it does not work Dec 01 05:04:49 firewalls Dec 01 05:04:49 however, pinging the router works (as it should) Dec 01 05:04:58 filtering Dec 01 05:05:10 ports Dec 01 05:06:14 nope, i am just dumb. Dec 01 05:06:33 turns out i can ping. i just did it from the shell Dec 01 05:06:36 all good Dec 01 05:07:00 however, Java's InetConnection.isReachable() doesn't ping Dec 01 05:07:22 wireshark Dec 01 05:07:32 i actually don't know what it does, but i'm not going to try find out Dec 01 05:08:44 wireshark? Dec 01 05:09:17 it's a network analyser tool Dec 01 05:09:42 i know , i have used it quite a lot Dec 01 05:10:14 but i need "wireshark for android" Dec 01 05:11:00 I don't know one Dec 01 05:14:43 http://stackoverflow.com/questions/9555403/capturing-mobile-phone-traffic-on-wireshark Dec 01 05:17:25 ah, what you need is to route traffic through it Dec 01 05:17:29 like pfsense Dec 01 05:17:59 you wonna see traffic between mobile and router/pc Dec 01 05:20:39 soLucien: http://alternativeto.net/software/wireshark/?platform=android Dec 01 05:21:29 thanks guys ! Dec 01 05:21:56 yw Dec 01 05:39:21 Hey guys, did anyone ever work with Android Studio and React Native? Dec 01 05:45:59 nadav: Are you here to settle a bet? Dec 01 05:46:43 lol :) I assume this is not a recommended set-up then Dec 01 05:47:04 In MVP approach, how do you guys handle activity recreation? do you do a setView and removeView in activity lifecycle or keep the presenter singleton? Dec 01 05:47:40 nadav: Oh, I have no idea. Just meant that it's one of those "ask to ask" situations. :D Dec 01 05:48:24 Oh, yeah I can see your point Dec 01 05:48:35 Anyawy, I wanted to ask if anyone know some good resources to get started with this setup Dec 01 05:50:35 CedricBeust the last 2 sourcetree updates have been crashing constantly :( well now here is 2.0.5.8 Dec 01 05:51:20 Haven't had any issues, neither Windows nor Mac OS Dec 01 05:51:50 you are lucky :D both 2.0.5.7 and 2.0.5.8 changenotes are "fix crash" Dec 01 05:52:20 this is why one must be able to use git from command line :) Dec 01 05:57:38 does anyone know some good WebSockets lib? I am trying to use AndroidAsync and it seems hard to use Dec 01 05:57:45 i mean hard to test Dec 01 05:59:47 howdy Dec 01 06:00:45 hey alex_PP Dec 01 06:01:42 how's life? Dec 01 06:02:09 alex_PP just deciding on final cyber-monday ebooks to get on sale :D Dec 01 06:02:51 alex_PP whats going on over there Dec 01 06:02:58 not much Dec 01 06:03:07 just found out we're not moving to bhutan Dec 01 06:03:08 :( Dec 01 06:03:11 oh, also trying to add items to NavigationView dynamically Dec 01 06:03:27 alex_PP what happened ? Dec 01 06:05:08 girlfriend didn't get the job Dec 01 06:06:25 getMenu.add() ??? Dec 01 06:08:22 I still can't stand the drawer Dec 01 06:08:31 except in a few cases, like gmail Dec 01 06:08:40 makes sense for a mail client Dec 01 06:10:05 getMenu.add() works, just trying to get stuff to go in the right place Dec 01 06:10:33 alex_PP yeah, a few gapps went tabs only, but google+ added it just recently again :P Dec 01 06:11:00 g+ only has one item in the nav drawer: Settings hahaha Dec 01 06:11:26 in Photos, the things are also in a view pager so you can swipe between some of the items Dec 01 06:11:31 see play books for another super useful example Dec 01 06:12:16 i think its becoming the expected place for (1) account switcher and (2) Settings, Help, and Feedback Dec 01 06:12:30 but yeah , pretty spartan Dec 01 06:22:45 Could someone please try and explain to me ... Yesterday I received partial strings that I had to put back together into one... So I just went String += PartialString ; But for some reason the String would not contain all the information even though all the information was received properly ? The PartialString before becoming partial was roughly 370 lines... Now its only 71 and the Parts are all the same size Dec 01 06:24:20 cart_man show cod Dec 01 06:24:21 code Dec 01 06:25:06 fish too Dec 01 06:25:28 hamsterr: I do not have it here and its really not that complicated ... Example : while (null != HTTPString.readline()) { NewString += HTTPString } Dec 01 06:25:54 where is PartialString Dec 01 06:26:09 Partial String in this case would be HTTPString Dec 01 06:26:17 you see why code matters? Dec 01 06:26:21 and NewString is the one to reAssemble all the parts Dec 01 06:26:29 id maybe use StringBuilder Dec 01 06:26:51 Oh shit I forgot about string builder : / Dec 01 06:27:05 kinda like leavin a dog in a hot car Dec 01 06:27:14 Ok but why use string builder though? Just for interest sake Dec 01 06:27:32 It can not be of a String overflow right? Dec 01 06:28:56 idk id have to see code Dec 01 06:30:40 cart_man: Why aren't you even using Java-style naming. :s Dec 01 06:34:51 this google video that just came out today said you can add widgets to the home and lock screens - but i thought they now disallow the lock screen ? Dec 01 06:48:05 http://pastebin.com/qKMHWvCA using google api and my map wont show up on a real device.. only of emulators. im making the map on line 111 Dec 01 06:49:13 sorry link is broken Dec 01 06:49:49 http://pastebin.com/F5L02ccP Dec 01 06:50:19 TacticalJoke: Because for the past year I have been learning C++ , NodeJs , Ruby and Java/Android and I just got overwhelmed with the different usage of all of them.. So now I just kind of stick to Cart_Man_Notation which is universal on all the languages ...on my own projects though Dec 01 07:15:11 Kotlin gets quite a lot of activity on Twitter nowadays. Dec 01 07:15:26 Almost all of it very positive, it seems. Dec 01 07:16:46 im using HTTPURLConnection, etc.. can i use that in the main activities onCreate? Dec 01 07:18:43 You gotta do that stuff on a thread other than the main thread. Dec 01 07:20:09 TacticalJoke, do you have any examples ? im new to threading stuff Dec 01 07:20:21 TacticalJoke yeah i follow @kotlin and @ceylon, both interesting .... Dec 01 07:38:56 TacticalJoke: hope I will convince ppl here to use it ;) Dec 01 07:39:09 but when I see this code... a lot of cleaning Dec 01 07:57:15 Would it make sense to have all of my login functionality/user creation as a fragment rather than a separate activity? For example: my MainActivity will have a recyclerview with products. When a product is clicked, the screen will be replaced to a basic login flow with no toolbar or anything, just login Dec 01 07:58:24 In my mind it makes more sense to be a fragment, but it's replacing the full screen so maybe an activity would be more appropriate Dec 01 07:58:36 Sorry for the poor explanation, it's 2am here Dec 01 08:13:35 Hey guys, I've a question about android layout, I want to add something like this : http://3.bp.blogspot.com/-BIo9VVSN45w/VFXPGgn0fsI/AAAAAAAABxs/5BZzjC5JXCE/s1600/Refresh%2BIcon.png Dec 01 08:14:17 But I don't know if there is anything standard for such a functionnality ? Dec 01 08:15:19 Hi, was freenode broken ? Dec 01 08:16:20 for half a day or something Dec 01 08:16:33 NeoFrontier: ddos as usual Dec 01 08:19:01 When you think Eclipse can't be crappier.... they try to rewrite it with web tech. Dec 01 08:19:02 https://eclipse.org/che/ Dec 01 08:20:11 noooo Dec 01 08:20:37 webtech = ? Dec 01 08:20:44 electron ? Dec 01 08:20:59 It was not nice. Dec 01 08:21:11 ah, it really works in browser Dec 01 08:21:45 StarLight, is a nice nick. Dec 01 08:22:13 does anyone know why this intent doesnt work? http://pastebin.com/9YVGfhHi Dec 01 08:28:13 yeah its like a strippers name Dec 01 08:30:41 i'm trying to assemble a releasebuild where the storepassword and keypassword are retrieved from environment vars. For example on Shippable this works, where i store an encrypted env var. When I try locally, i get "> No value has been specified for property 'signingConfig.storePassword' " .. i use storePassword System.getenv("envvarname") .. what could be wrong? Dec 01 08:32:10 Hey guys! I've got a question. For testing in-app purchases, the monthly subscriptions, are they shrinked to a smaller length, for example the weekly subscriptions are shrinked to 5 minutes, the monthly to 10 mins etc... Dec 01 08:35:05 osxorgate, when run from AS the env variables aren't set Dec 01 08:35:37 Mavrik: i run ./gradlew from the commandline Dec 01 08:36:12 does anyone know why this intent doesnt work? http://pastebin.com/9YVGfhHi Dec 01 08:37:22 thornekey: protip: define a static method on an activity that returns its startup intent Dec 01 08:37:38 anyone knows reliable way to show GIFs? Dec 01 08:39:01 vigilancer, Glide? Dec 01 08:39:37 Mavrik : did you try it with gifs? Dec 01 08:39:53 Nop, I use MP4s when possible, as i seen it works ok Dec 01 08:40:13 osxorgate, hm ok :) Dec 01 08:42:33 thornekey: in a while you will want to add parameters to the Bundle, and then you need to define keys for those values. You will start forgetting which keys you need to add to the bundle. If you define that stuff inside the activity itself, you won't make those errors Dec 01 08:44:36 osxorgate, this is not the main activity though, this is to check if a listview button (thingy ;) ) was clicked and then i want to switch activities Dec 01 08:57:14 Mavrik : have you ever encoded bunch of images into MP4? Dec 01 08:57:52 In what way? Dec 01 08:57:57 What are you trying to do? Dec 01 08:59:47 I need to make animated gif from set of images. since displaying gif can be somewhat cumbersome on android I'm thinking maybe encoding them into video is the way Dec 01 09:01:28 animated gif will murder any quality and will be huge Dec 01 09:01:51 why not just upload the image set and use AnimationDrawable? Dec 01 09:02:06 It'll save you from mp4 encode, keep the quality and it's way simpler than dealing with other crap. Dec 01 09:02:14 vigilancer, just unpack it into an animation drawable Dec 01 09:02:19 Remember, GIF has 256 color limit. Dec 01 09:02:27 We're in 2015 not 1985 :P Dec 01 09:03:03 yeah, but I need to share them unfortunately in some universal format Dec 01 09:03:33 please, dont use gif Dec 01 09:04:37 gordon_ : I'm trying not to) just can't figure out the way on this Dec 01 09:07:28 I still find it weird that the Android emulator images ship with the ugly Google search bar, even for API23/Marshmallow. Dec 01 09:11:51 kjeldahl: i guess it's one included in launcher2 and launcher2 isn't quite changing Dec 01 09:15:22 StarLight: I'm sure you're right. Still ugly though. Dec 01 09:18:05 who cares Dec 01 09:31:14 Hi all, is it possible to use butterknife in a custom class, for binding dimens & strings? Dec 01 09:37:57 FrancescoV, I don't believe so, but you knock it up yourself if you wanted Dec 01 09:42:40 A general network related question. I'm planning to run a webserver on an Android phone, which will be only consumed by my app in general. What port should I use to run this server on the device? I see some threads that apart from well known ports like 80, there is a range of ports that we can use for general purposes. Dec 01 09:43:17 the web server is my part of the app itself, by the way. Dec 01 09:43:39 s/my part/ part of my Dec 01 09:48:32 napster, you won't be able to use anything below 1024 Dec 01 09:48:43 ok Dec 01 09:48:54 I suggest you choose a random one and try to bind a few times until you succeed. Dec 01 10:01:17 hithere Dec 01 10:02:27 napster: let the system pick the next free port - passing 0 for the port should work for that. once the port is bound and listening, check what was assigned. Dec 01 10:02:39 ok Dec 01 10:02:48 that is interesting Dec 01 10:04:48 thanks Mavrik tm604 Dec 01 10:05:08 Hello guys, i am trying to set gravity of items inside a LinearLayout, but i doesnt work with LayoutParams, i have to assign gravity to the view to have a visual effect Dec 01 10:05:21 Here is the code if you wanna take a look :o http://paste.ofcode.org/Xfkvzw832bs5bWLeRfCKFs Dec 01 10:08:13 I have win Vista 64bit and problem installing HAXM. That means each test is excruciating. Having VMware and Ubuntu as guest I have thought that this could be a way to go (found some how guides), but VMware is not supporting virtualisation in guests. Dec 01 10:08:59 What would you suggest to use in my case for fast testing (free, not online...)? Dec 01 10:09:57 bolovanos, Genymotion Dec 01 10:19:24 Hi, is there a way to add a fragment to viewpager but disable/enable/hide it from viewpager? Dec 01 10:20:04 I'm not talking about deleting the fragment, only disabling it in viewpager. Dec 01 10:20:58 arunlakra15, everything the viewpager shows is handled by the adapter. Dec 01 10:21:12 So just don't return the fragment from the adapter and it won't be shown. Dec 01 10:21:24 Mavrik, I found some freemium, but it seems to me that it is NOT offline "GENYMOBILE may, from time to time, take down or shut down access to the software/application for maintenance" Dec 01 10:22:00 Mavrik, I want the fragment still attached to the activity, so it remains in memory and continues its life cycle. Dec 01 10:22:19 If I delete the fragment from viewpager adapter, then won't it be released from the memory? Dec 01 10:22:28 arunlakra15, don't delete it from adapter then. Dec 01 10:22:37 just don't return it from methods. Dec 01 10:22:47 mgK: set the gravity in the .xml file Dec 01 10:22:50 Again, your adapter controls what happens and appears in viewpager. Dec 01 10:22:58 bolovanos, it's an offline emulator hosted in virtualbox. Dec 01 10:23:05 Is it better to use startActivitForResult or just '.putExtra' in the intent to send data batween activities? Dec 01 10:24:02 Ahraz, that's a strange question because those are two different things. Dec 01 10:24:25 putExtra is to send parameters TO activity, startActivityForResult is used when you want something FROM an activity. Dec 01 10:25:12 Mavrik, ok and how do you understand that sentece from their terms? Dec 01 10:25:47 Mavrik, if I just create a fragment and not return it from viewpager adapter, then normal lifecycle of the fragment won't run (since it's not attached to the activity). Dec 01 10:25:58 Wait, I'll try caching the fragment somewhere and try doing it. Dec 01 10:28:40 Mavrik, thanks man :) that been googling for 20 minutes and you just magically made all the brain fog disapper Dec 01 10:28:44 it all makes sense now :) Dec 01 10:33:06 arunlakra15, hrmf. Dec 01 10:33:21 arunlakra15, not sure there's a good solution for that... can you move your logic outside the lifecycle_ Dec 01 10:33:24 ? Dec 01 10:38:43 TintManager is throwing ClassNotFoundException: Didn't find class "android.support.v7.internal.widget.TintManager", even though I have done "-keep public class android.support.v7.internal.widget.** { *; }" Dec 01 10:38:58 This happened when I did TextInputLayout.setError Dec 01 10:39:12 Are there other proguard commands that I need to add. Dec 01 10:39:34 It only happened on one Moto G randomly, and never happened again. Dec 01 10:49:49 Android studio cannot resolve the symbol 'R' .. any fix for this? Dec 01 10:50:08 Tried gradle clean, sync project files with gradle, rebuild projec Dec 01 10:50:10 :/ Dec 01 10:56:13 you problaly have code which doesnt compile Dec 01 10:57:58 check your xml resource files. if there's an error in there somewhere it won't generate an R file Dec 01 11:21:02 argh.. my 'find in files' also searches in generated code.. how can i disable this? Dec 01 11:40:08 Say your main login screen has two buttons, one to sign up and one to log in. Should clicking one of these buttons spawn a new fragment, or a new activity? Dec 01 11:40:47 yes Dec 01 11:41:16 hah Dec 01 11:41:19 personally i would keep login activity separate Dec 01 12:09:56 Hey. Does anyone know why DatePicker.getCalendarView() throws an exception on API level 22? The message is "java.lang.UnsupportedOperationException: CalendarView does not exists for the new DatePicker" Dec 01 12:11:25 Ashiren: do you mean anactivity for logging in and another one for signing up? Dec 01 12:23:30 Im new to android, so forgive such a basic question. So, I'm using retrofit and trying to set the text of a view from based on the request body. Request.body() reutrns RequestBody, but I can't figure out how to access the actual content of the body Dec 01 12:27:59 Testing broadcastlistener to receive notifications. But some programs notifications are not cought, like skype and g+. I wonder if one can 'protect' a notification from beeing intercepted Dec 01 12:40:15 Anyone have experience using the Facebook Scores API with Android? Dec 01 12:51:46 Mavrik, yeah I'll try doing that. Dec 01 12:52:00 I'm thinking of moving to showing/hiding decisive logic in the activity itself Dec 01 12:52:09 Hi all, when is it save to use the getParentFragment() method in a dialog? Dec 01 12:52:34 I’m trying to do drag and drop and it works fine until I add a SearchView to my layout. Dec 01 12:53:07 Anyone who has any tips/tricks? Dec 01 12:58:55 drag and drop? Dec 01 13:20:39 Hey guys if I have an options button in my toolbar, whats the best way to show a menu from the toolbar when the options button is clicked? Dec 01 13:21:31 hi Dec 01 13:21:37 What does this line mean? latestVersionURL = str.replaceAll(".*Download.*?(https://.*?);.*", "$1"); Dec 01 13:23:44 if im guessing it strips string to single url Dec 01 13:24:09 something something Download ... https://xxx.com; something Dec 01 13:27:42 Hey, i am unable to upgrade sqlite even after version change Dec 01 13:27:53 so if the line is "Version: 10.1" and I only want the number of it. what do I do? Dec 01 13:28:22 checked version with db.getVersion and it really updated the db version by onUpgrade wasnt called Dec 01 13:28:36 but* Dec 01 13:30:10 hm? Dec 01 13:30:27 ? Dec 01 13:30:45 Peyam: "Version: (.*?)", "$1" Dec 01 13:30:58 you may want to change .*? to something that would catch decimals Dec 01 13:31:05 im not java regexp expert Dec 01 13:31:59 S0phos: could you pastebin relevant code Dec 01 13:31:59 Ashiren, i am unable to upgrade sqlite even after version change, did you encounter this problem ? Dec 01 13:32:21 it should call onUpgrade Dec 01 13:33:03 hi all, first time connecting here, i'm beginning android dev, though this would be a good place to be to learn, hope I wont bore anyone with stupid questions Dec 01 13:33:32 http://pastebin.com/arJHzPuS Dec 01 13:33:34 there are no stupid questions Dec 01 13:33:41 (dont try to prove me wrong) Dec 01 13:33:42 Ashiren, its pretty simple Dec 01 13:33:54 strange thing that the on upgrade not called Dec 01 13:33:56 ever Dec 01 13:34:00 hehe Dec 01 13:34:52 S0phos: and whats the constructor. also maybe youre forgetting to call super methods somehwere Dec 01 13:35:12 public MyDbHelper(Context context) {super(context, DATABASE_NAME, null, 15);} Dec 01 13:35:14 man realm io made me really lazy Dec 01 13:35:16 last one is version Dec 01 13:36:39 also how do you filter your logs. they have different tags Dec 01 13:36:54 Just type in the search box aboe the log window? Dec 01 13:36:57 *above Dec 01 13:37:42 Does the button all the way to the right look out of place? http://i.imgur.com/aoHQUj5.png Dec 01 13:37:54 nope :) Dec 01 13:37:55 Ashiren, this isnt the problem i can see all the logs with all the tags just fine Dec 01 13:38:03 its not reaching the onUpgrade Dec 01 13:39:07 S0phos: http://stackoverflow.com/questions/7647566/why-is-onupgrade-not-being-invoked-on-android-sqlite-database Dec 01 13:39:33 already read it... Dec 01 13:39:42 i did my research before comming here.. Dec 01 13:40:22 oh, you actually googled. Dec 01 13:40:26 then im out of options Dec 01 13:41:21 actually googled? lol nvm Dec 01 13:41:28 S0phos: I'm currently reviewing data providers (did quite get the that section in udacity), never played with onUpgrade yet, but I'll give it a try I have a project right here Dec 01 13:41:37 kk Dec 01 13:41:40 its really strange Dec 01 13:41:44 im using nexus Dec 01 13:41:52 if you have a custom view which extends Button, can you inflate a layout xml for that class? Dec 01 13:42:43 the only time it worked is when i called onUpgrade from onCreate Dec 01 13:42:55 but its retarded thats not the way it should work Dec 01 13:46:01 I think i figured it out Dec 01 13:46:14 I got it to work on my data provider, I don't think this will help but you did increment the db version that is passed to the super contructor Dec 01 13:46:21 Sqlite onUpgrade called when db version is changed + app_version Dec 01 13:46:34 which is required when you reupload app to store Dec 01 13:46:39 then it is triggered Dec 01 13:46:44 when in dev Dec 01 13:46:50 it wont call the onUpgrade Dec 01 13:46:58 :/ Dec 01 13:47:39 Anyone know anything about how the ActionBar colors icons? Dec 01 13:47:50 Im trying to get my icons to match the color and size of the default action bar icons Dec 01 13:48:28 drose379, replace ActionBar with custom actionbar layout Dec 01 13:48:46 That still wouldnt get me the correct colors Dec 01 13:48:59 lol attach id's to the layout elements Dec 01 13:49:04 fetch it from the activity Dec 01 13:49:06 and change the color Dec 01 13:49:10 with coloroverlay Dec 01 13:49:20 want the sample for color overlay? Dec 01 13:49:36 This button I want the color of is shown automatically Dec 01 13:49:40 I dont think I have access to it Dec 01 13:49:54 thats why i said use custom action bar Dec 01 13:49:59 its pretty easy Dec 01 13:50:14 How would I go about it? Dec 01 13:50:14 setColorFilter(context.getResources().getColor(R.color.primary)); Dec 01 13:50:22 thats how you change the color Dec 01 13:50:43 Of the ActionBar? Dec 01 13:50:58 http://stackoverflow.com/questions/15518414/how-can-i-implement-custom-action-bar-with-custom-buttons-in-android Dec 01 13:51:07 then you can change what ever you want Dec 01 13:51:28 The thing is, I like the default buttons its giving me Dec 01 13:51:31 I just need the color of it Dec 01 13:51:36 So I can match the rest Dec 01 13:52:03 See: http://i.imgur.com/aoHQUj5.png Dec 01 13:53:33 you can get those icons... check what is the drawble for each icon Dec 01 13:53:45 and put it in the custom actionbar Dec 01 13:53:45 Even the one on the far right? Dec 01 13:53:49 yes Dec 01 13:53:51 ofc Dec 01 13:53:52 How? Dec 01 13:53:57 If I have a white drawable on a transparent background. Can I change that color with just xml for api 15+? Dec 01 13:54:01 menu.getItem(); Dec 01 13:54:21 yes Dec 01 13:54:34 there an event for menu item click in the activity Dec 01 13:54:39 just add breakpoint there Dec 01 13:54:42 and press on the icon Dec 01 13:54:53 it will stop there and you will get the id Dec 01 13:54:58 How will that get me the color? Dec 01 13:55:25 that will get you the icon id Dec 01 13:55:37 so you can use it inside the costum actionbar Dec 01 13:55:50 I dont really need the icon id Dec 01 13:55:52 I just need its color Dec 01 13:55:58 So I can create icons that match that color Dec 01 13:56:14 you want to get the hex color of the icon? Dec 01 13:56:26 Sure Dec 01 13:56:32 lol color picker.. Dec 01 13:56:38 what icon color you need? Dec 01 13:56:41 which icon Dec 01 13:57:06 The one on the far right Dec 01 13:57:29 basically it white with transparent value Dec 01 13:57:40 hmm 0x80ffffff Dec 01 13:57:42 here you got Dec 01 13:57:52 So 80 percent trans? Dec 01 13:57:55 i think so Dec 01 13:58:05 Hmm, I'll try Dec 01 13:58:08 Thanks a lot for the help Dec 01 13:58:16 kk just play with it cos its not an exact hex Dec 01 13:58:22 it has trans for sure Dec 01 13:58:27 np Dec 01 13:58:46 now I need help with my onUpgrade in sqlite db Dec 01 13:59:07 Oh, one more thing, do you know what size icons for the actionbar are? Dec 01 13:59:41 depends its porbably in dps looks like 24dp Dec 01 13:59:49 but create as google design rules Dec 01 14:00:02 Yep Dec 01 14:00:02 18dp - 24dp - 36dp - 48dp Dec 01 14:00:04 for icons Dec 01 14:00:09 Thanks Dec 01 14:00:13 xxhdpi Dec 01 14:00:15 np Dec 01 14:00:54 Agh, now I need to figure out how to create a transparent icon Dec 01 14:01:32 photoshop? Dec 01 14:01:40 I have inkscape Dec 01 14:01:41 or just download google design icon pack Dec 01 14:01:47 ok create png Dec 01 14:01:56 and set trans to 80% Dec 01 14:01:56 Could try that Dec 01 14:02:07 OK, never actually used inkscape before Dec 01 14:04:47 :) Dec 01 14:19:51 drose379: icons are 24dp Dec 01 14:19:58 If I have a white drawable on a transparent background. Can I change that color with just xml for api 15+? Dec 01 14:32:23 Is there a way I can inflate an overflow menu myself? Dec 01 14:32:40 Instead of letting the ActionBar create it automatically, that was I can use my own icon Dec 01 14:33:37 I'm sure there is Dec 01 14:34:31 drose379: http://stackoverflow.com/questions/9733312/changing-overflow-icon-in-the-action-bar Dec 01 14:36:38 Sweet, thank you eghdk Dec 01 14:37:57 if I use a DialogFragment as a regular fragment, is there any difference at all then if I just extended Fragment in the first place? Dec 01 14:39:19 I have this class that extends Fragment and adds a bunch of Service handling methods, I use it whenever I have a fragment that needs access to the background service....but I wanted to provide these methods for DialogFragments too... Dec 01 14:39:57 if I just change the class from Fragment to DialogFragment, then everything seems to work as normal Dec 01 14:46:00 why database of my application is not deleted when i delete application Dec 01 14:49:28 S0phos: it should be. what are you doing to "delete" it? Are you sure the database is going into the default databases dir? Dec 01 14:49:53 eghdk, For some reason that did not work Dec 01 14:50:46 You sure that activity has that theme/style applied to it? Dec 01 14:51:26 Good point, gonna mess with it, one sec Dec 01 14:51:30 what does this error/s mean (im using an emulator) http://pastebin.com/bjcURYT8 Dec 01 14:51:32 eghdk, i added new column to my database but the app refuses to recognize it Dec 01 14:52:10 changed the version Dec 01 14:52:22 everything that is needed to make it recognize it Dec 01 14:52:39 but still throws same error no such column Dec 01 14:53:46 eghdk, any idea what im doing wrong? Dec 01 14:56:25 android studio emulator keeps crashing "not responding" and i get this error: http://pastebin.com/tqxeM0AT Dec 01 14:56:47 did you put the code in your onCreate or your onUpgrade? Ideally it would be in both places. Dec 01 15:05:12 eghdk, yeah its very strange happens only on nexus Dec 01 15:05:16 I'm just getting started with android. Im trying to interface with a web API I built. I'm just doing a GET request with token authorization and two query parameters. For some reason I'm getting a 406 code. I thought what I was doing was straight forward, but apparently im doing some wrong. Dec 01 15:05:17 i got lg g3 Dec 01 15:05:27 it deletes the db just fine Dec 01 15:05:31 nexus, nope Dec 01 15:06:26 anyone know where i might look? Dec 01 15:07:00 that's weird. If the application is delte the /data/data/com.your.app dir is delted. that's where the db exists. You must be doing something wrong. Dec 01 15:07:24 need root for that Dec 01 15:07:39 i cant tell the user to delete the app like that right?... Dec 01 15:07:49 do i need to check if im connectd to google play services in every activity? Dec 01 15:10:39 everywhere you need to use it Dec 01 15:11:02 well then wouldnt it be better to just do it in an async? Dec 01 15:11:03 S0phos, are you on android 6? is your app compiled with sdk 23? Dec 01 15:12:21 S0phos, android 6 does auto backup of app data if they're compiled with 23+ and don't explicitly block backups. You can view your backups in the google drive app under settings. If it's backed up your app, it will auto-restore the data on re-install Dec 01 15:13:44 thornekey, asyncs aren't shared between activities. You probably want a service that connects to play services and then all your activities talk to the service. Dec 01 15:15:07 ok Dec 01 15:15:10 oh, n/m. i spelled "application" wrong Dec 01 15:15:13 :/ Dec 01 15:15:56 dragorn, whenever i open up another activity and then go back to the previous one it crashes the emulator because of GPS Dec 01 15:18:14 dragorn, yes its android 6 so is there a way to delete backup Dec 01 15:18:53 S0phos, the user can delete individual app backups via google drive Dec 01 15:18:59 there is no automated way Dec 01 15:19:12 you can also use 'clear data' instead of uninstalling, which is how it's always been really Dec 01 15:19:39 so if i want to add new column or change db structure it must be with app update from the store then it will trigger onUpdate Dec 01 15:19:43 correct? Dec 01 15:21:33 yes, you'd use the database helper stuff to trigger database changes Dec 01 15:21:42 and you need to make sure you can cleanly migrate from any previous version Dec 01 15:21:43 I already do that Dec 01 15:21:52 it just didnt trigger the onupdate Dec 01 15:21:57 onupgrade-** Dec 01 15:22:01 im in dev mode Dec 01 15:22:11 so that can explain android 6 behavior Dec 01 15:22:22 lg g3 acts normal Dec 01 15:55:16 hi. how can I fire a bluetooth ACTION_FOUND (without code)? is it enough to toggle bluetooth on another device? Dec 01 15:55:21 Can anyone help with this xml layout? Dec 01 15:55:23 http://pastebin.com/pVqJwmZi Dec 01 15:55:41 It works great when it's short. But when it's long, it extends all the way to the end Dec 01 16:09:31 When my one textView is too long, it pushes out the other textView to the right of it. How do I stop this? Dec 01 16:14:43 can use weights to keep em even Dec 01 16:16:25 I'm using weights Dec 01 16:18:11 only on the middle view Dec 01 16:18:27 it'll keep size, the others will resize to take what that one doesn't use Dec 01 16:20:00 if you give em all a weight of 1 they'll evenly distribute their size across the linearlayout without pushing each other Dec 01 16:20:15 canvs2321: I am giving a weight to just the middle. http://pastebin.com/pVqJwmZi Dec 01 16:20:29 i know Dec 01 16:20:48 You want me to put a weight on every view? Dec 01 16:20:57 play around with it and see what it does Dec 01 16:21:54 with only giving weight to middle, the left can push the middle to the right pushing the right view outta place, but left view will only grow enough where middleview can't move anymore with it's fixed size Dec 01 16:23:52 not sure how weightSum is calculated/defaulted to if you don't give it one Dec 01 16:24:43 canvs2321: It seems to work if I give the leftView a weight Dec 01 16:25:04 but, if I remove the text to make it shorter, then the leftView takes up all of the space still. Dec 01 16:26:01 yeah play around and you'll be able to dial it in. if you can should show some screen shots of what you are getting, and what you are wanting etc. Dec 01 16:26:18 do you want them to take up equal amounts of space across the linearlayout? Dec 01 16:27:07 Nope. Let me draw it out. Thanks canvs2321 Dec 01 16:27:21 k Dec 01 16:29:51 canvs2321: http://pastebin.com/hvA4MkcF Dec 01 16:30:16 Scroll to the bottom for my artwork canvs2321 =) Dec 01 16:40:55 Hey guys, I have something on top of a map in a framelayout Dec 01 16:41:15 most motion events pass through the thing on top, which is what I want Dec 01 16:41:25 but not gestures, pinching to zoom the map in and out etc. Dec 01 16:41:44 so it seems to be selectively allowing events though. Dec 01 16:47:47 canvs2321: No luck right? Dec 01 17:04:28 canvs2321: Seems like this question. http://stackoverflow.com/questions/11508191/android-ellipsize-with-right-aligned-view Dec 01 17:08:59 sorry went to lunch, did you get it? Dec 01 17:12:53 canvs2321: Nope. Dec 01 17:13:09 Tried so many things =( so many weights. nested layouts. relatives and linear. nada Dec 01 17:13:24 the stack overflow question is my exact issue I think though. with no solution. Dec 01 17:17:41 eghdk if i recall, if using RL, the trick is to specify the dependency in the right direction : tv1 -> tv2 or tv2 -> tv1 Dec 01 17:17:53 hello kroot :D Dec 01 17:18:44 ? RL? Dec 01 17:18:51 relative layout Dec 01 17:19:04 gotcha. I'll try. Dec 01 17:21:02 tv1 has to have a dependency on parent right? g00s Dec 01 17:21:28 parent, like parent viewgroup, sure : both will need to be position ed relative to its edges Dec 01 17:24:53 any way to get a bitmap of a tinted drawable? Dec 01 17:25:03 seems to just use whatever the drawable originally was Dec 01 17:25:05 g00s: So why isn't this working... ? seems right http://pastebin.com/fNFPC5R0 Dec 01 17:27:15 Should ExoPlayer via ExtractorSampleSource be able to play a video thats in an OBB by specifying a URI such as: "jar:file:///storage/emulated/0/Android/obb/com.testvideo.nativevideotest/main.1.com.testvideo.nativevideotest.obb!/assets/movie.mp4" ? Dec 01 17:27:30 should hugleft be layout_alignParentRight="true" ? Dec 01 17:27:51 also not sure if you should use alignBaseline and alignBottom at the sam time Dec 01 17:27:59 i would get rid of alignBottom Dec 01 17:28:17 and toRightOf and tOEndOf at the same time also - seems weird Dec 01 17:28:37 it should be hugging the view to the left of it. lint tells me to use right and end. Dec 01 17:28:52 hm, ok Dec 01 17:29:33 works fine with short text. when its long. it makes hugLeft dissapear Dec 01 17:31:06 Curious: do you guys know of any half-decent android dev forums or do you mostly just use stackoverflow? Dec 01 17:31:28 SO is probably most popular, for news /r/androiddev is OK Dec 01 17:31:40 androidweekly.net is good for news also Dec 01 17:48:32 androiddev on reddit is good for news but less than okay for discussions, the amount of bad advice and pointless debates on there isn't as bad as the rest of reddit but it's still bad Dec 01 17:48:53 stackoverflow or IRC is where you go if you want real advice, imo Dec 01 17:49:04 Sooo, basically - no good sources for discussion, only stack overflow for specific questions? Dec 01 17:49:27 google+, twitter, #android-dev, stackoverflow Dec 01 17:49:34 liuwenhao lol, *plenty* of bad advice on SO also Dec 01 17:49:34 thats what I use for information most of the time Dec 01 17:49:46 yeah g00s but stackoverflow is invaluable for a lot of stuff Dec 01 17:49:47 SO sux for stuff like appcompat & style & co Dec 01 17:49:57 whereas /r/androiddev is completely unneccessary Dec 01 17:50:19 wtf with these answers like EDIT 1, EDIT ... EDIT N! UPDATE 123, UPDATE N+1 Dec 01 17:50:28 impossible to follow, and quickly deprecated anyway Dec 01 17:50:44 (and sometimes, wrong! because it's not necessarily the majority who votes who is right) Dec 01 17:50:46 these days, i'm constantly having to add search options to my query "last month" or some crap - what was necessary then is bad now, and often central docs (d.android.com) aren't updated Dec 01 17:50:55 same g00s Dec 01 17:52:10 during the tools talk at Android Summit, Xavier was like soon you won't have to do this, or that .. i was thinking, well i hope i get the memo when that happens :D Dec 01 17:52:36 stack overflow has some gems Dec 01 17:52:38 but the docs are always best Dec 01 17:52:46 docs and source Dec 01 17:52:52 I'd say source the most Dec 01 17:52:59 even docs have bad info Dec 01 17:53:17 docs are not well updated, but for most of the fundamentals stuff it's there and rock solid Dec 01 17:53:17 even the ApiSamples have bad info Dec 01 17:53:36 Yeah i tend to just read through the source now, plus it helps with really understanding what's going on...may take longer, better in the long-run I hope =) Dec 01 17:53:37 yeah, Activity lifecycle, etc - just don't expect insight on interesting corner cases Dec 01 17:53:55 problem with reading the source, is you have no idea if somebody changed it Dec 01 17:54:02 true Dec 01 17:54:11 yeah, and you don't want to read the source of 10 different sdk Dec 01 17:54:22 well, you don't get docs of 10 different sdks in any case Dec 01 17:54:28 not even mentioning the native stuff Dec 01 17:54:40 and for that matter, I just git checkout branch all the time Dec 01 17:54:46 to see the source for various different behaviors Dec 01 17:55:00 having aosp checked out is pretty essential to being productive and knowing what's going on Dec 01 17:57:15 Hey all. I'm putting together an SDK from a native .so and a .jar which depends on it. Is there a good way to allow users to use them without having to copy them? Adding the .jar as an external dependency I grok, but not so much the binary and header files Dec 01 17:57:49 .so is bundled automatically if it's in the correct location in jar Dec 01 17:57:50 I basically want to create a sample with a gradle file and/or .mk file but no binaries. Dec 01 17:57:51 krang, create an AAR? Dec 01 17:57:52 header files, no Dec 01 17:58:03 all the interface into your .so should be via java Dec 01 17:58:20 Nope, it's a native library with some functions wrapped by java. Dec 01 17:58:27 needs to support both Dec 01 17:58:32 you can't ship a .so in a way that library consumers can call directly into the .so without manually hacking .h include paths Dec 01 17:59:29 krang: there is no such thing as library applications that can be installed on a device — everything needed by an application gets compiled into that application (minus android framework) Dec 01 18:00:05 if you're shipping a custom build template, ok Dec 01 18:00:14 yeah. the jar can bundle the so and the java interface easily, but you can't also support native apps the same way Dec 01 18:00:25 Hmm, well, if I accept that the headers need to be copied, is there an easy way to just include the .so from an environment variable when compiling native apps, and still have the java apps know where it is as well? Dec 01 18:00:35 it's automatic Dec 01 18:00:39 just package it in a jar that you depend on Dec 01 18:00:54 if you make a custom android.mk you can certainly reference the so from native code in your link step Dec 01 18:01:13 all that is standard *nix linkage stuff Dec 01 18:01:14 pfn: If I do that, and copy headers, should that be it? Dec 01 18:01:16 I think what he's saying is he wants it to be a single package for both native apps and java apps to consume Dec 01 18:01:24 herriojr, and what we're saying is, not going to happen :P Dec 01 18:01:25 herriojr: yup, got it Dec 01 18:01:25 krang, sure Dec 01 18:01:50 dragorn: I was making sure everyone was on the same page :P Dec 01 18:01:55 pfn: so how would I build against a .jar with ndk-build? Dec 01 18:02:10 krang, you don't, would need to extract it Dec 01 18:02:18 Ah, crap. Dec 01 18:02:18 krang, look at stuff like libgdx that does this already Dec 01 18:02:21 i understand what he wants to do, but the native code build tools don't particularly speak java bundling Dec 01 18:02:22 krang: so you really just need to distribute them separately Dec 01 18:03:36 krang, again, look at libgdx, it pretty much handles this scenario Dec 01 18:03:57 Yeah, and that's the plan. I'm just have to build samples that don't contain the binaries, for native, java, and both. I guess java is handled by packaging inside the jar, which I'm good with. Not sure what to do about native Dec 01 18:04:10 * pfn stops repeating himself and starts ignoring Dec 01 18:04:11 pfn: doing that now. Thanks for the pointer! Dec 01 18:04:41 applying a colour filter to a drawable and then getting a bitmap of that drawable doesn't work, hmm. Dec 01 18:04:46 meh, moto display doesn't support vector drawable :( Dec 01 18:04:59 anyone got any ideas? I've also tried making a new bitmap and applying a colour filter to that, didn't work either. Dec 01 18:05:05 my vector icons all show up as black circles on moto x :( Dec 01 18:05:35 tx, use a porterduff mode with a solid color Dec 01 18:05:43 ColorFilters tend to be shaders. Dec 01 18:05:46 yep, doing that Dec 01 18:06:00 tx, and by using porterduff mode I mean that you're rendering to a bitmap with Paint that has a proper porterduff mode set Dec 01 18:06:02 p.setColorFilter(new PorterDuffColorFilter(colour, PorterDuff.Mode.SRC_IN)); Dec 01 18:06:15 where p is paint and I am using a canvas to modify a mutable bitmap Dec 01 18:07:13 http://pastie.org/private/n2k4s9ii57dy18npj9f5wq Dec 01 18:07:14 activeIcon.setColorFilter(activeColor, PorterDuff.Mode.SRC_ATOP); Dec 01 18:07:17 full "painting" method Dec 01 18:07:19 This works just fine for me. Dec 01 18:07:58 anyone familiar with testProguardFiles? Does it append onto your other proguard files during testing or do i need to include those too? Dec 01 18:08:35 Mavrik: I'm assuming 'activeIcon' in that case is a drawable yeah? Dec 01 18:08:43 also has anyone gotten espresso to work with proguard turned on? Dec 01 18:09:03 I can't to that because when convert that drawable to a bitmap, it returns the unfiltered / original / source bitmap associated with that drawable. Dec 01 18:09:09 do* Dec 01 18:12:54 tx, same works with bitmap painting as well, it does fail if you render to a canvas from view though Dec 01 18:15:30 I'm trying to read a video file from an OBB using RandomAccessFile object. I've tried a number of variations on the path but I keep getting file not found exception: AndroidJavaException: java.io.FileNotFoundException: jar:file:/storage/emulated/0/Android/obb/com.testvideo.nativevideotest/main.1.com.testvideo.nativevideotest.obb!/assets/movie.mp4: Dec 01 18:15:30 open failed: ENOENT (No such file or directory) Dec 01 18:17:22 anyone have any ideas? Dec 01 18:21:46 Hi, I'm building an apache cordova app from scratch, no plugins, nothing strang at all. When I run: cordova run android --device with my device Samsung Galaxy Ace 3 and then I logcat I always get the same error: E/DatabaseUtils(856): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Dec 01 18:23:32 Mavrik: http://pastie.org/private/svxxudzfwtezhu0oqqfila Dec 01 18:23:42 andr3wmac: what's the exclamation? Dec 01 18:23:44 hi Dec 01 18:23:47 here I am getting the bitmap from an existing drawable object, applying the filter Dec 01 18:23:51 anybody got a minut? Dec 01 18:24:01 and setting background to new filtered drawable to test, doesn't work. Dec 01 18:24:09 wait, why would Cordova have anything to do with running as a user? Dec 01 18:24:12 andr3wmac: did you actually shell on the device and check the location? Dec 01 18:25:44 Im trying to update my app with reading an url and search for the version code. https://gist.github.com/anonymous/41adb2579518e1b1afb4 somehow it doesnt read the url. Dec 01 18:26:58 Peyam: just a note, make your UpdateTask static Dec 01 18:27:25 Peyam: what exactly are you trying to do? Dec 01 18:27:30 herriojr, yes but that is not the probem Dec 01 18:27:43 Im trying to send updates to my app. I dont want to use google play. Dec 01 18:27:52 Peyam, http://imgur.com/jacoj Dec 01 18:28:04 I want the app to update itself when the user press "update the application" Dec 01 18:28:57 then make a request to some API Dec 01 18:29:04 with the users current version Dec 01 18:29:12 Peyam: you should use the package version you get from PackageManager Dec 01 18:29:13 return something if there's an update (or not) Dec 01 18:29:14 herriojr: its apparently supposed to be part of the URI when dealing with an OBB Dec 01 18:29:18 if there is, perhaps a URL to open. Dec 01 18:29:20 in terms of the readme, do you get an exception? Dec 01 18:29:36 andr3wmac: does the file exist? Dec 01 18:29:47 herriojr: or at least all the instructions/docs include ! Dec 01 18:30:15 https://gist.github.com/anonymous/a45cbbf5edcc37ae1699 danijoo Dec 01 18:30:15 it is on the sdcard, so you should be able to shell in and check Dec 01 18:30:43 I'm actually using Unity (3d engine) and it has a WWW object for reading web data that functions to read files on android as well. If I hand it the URI it reads the file fine. Dec 01 18:31:03 Peyam: it's a runtime exception Dec 01 18:31:17 but exoplayer (android) uses RandomAccessFile and it fails when I hand it the URI Dec 01 18:31:19 Peyam: it's failing to parse something into a float Dec 01 18:31:37 it cant parse your versioncode (StringToReal.java:63 Dec 01 18:31:37 herriojr, yes. but I dont know why it does. Dec 01 18:31:48 attach a debugger and check why Dec 01 18:32:02 Peyam: because whatever you're reading isn't in a float format Dec 01 18:32:06 https://dl.dropboxusercontent.com/u/12866097/README.md This is the file Dec 01 18:32:19 0.0001 is a float Dec 01 18:32:51 Peyam: are you sure your regex is actually parsing that? Dec 01 18:33:00 Peyam: put it in debug mode and a breakpoint there and check Dec 01 18:33:29 herriojr, Im not sure it does read the adress Dec 01 18:33:51 Peyam, attach a debugger as everybody tells you and check it. Dec 01 18:34:04 Peyam: if Float fails to parse it, it means the string isn't jus tthe number Dec 01 18:34:09 it means there's other crap there Dec 01 18:34:31 danijoo, sorry i only read the lines tagged with my name Dec 01 18:34:43 Peyam, i cant help you then. Dec 01 18:34:52 have a nice day :) Dec 01 18:35:04 danijoo, sorry but it is easy to miss Dec 01 18:35:16 canvs2321: g00s this issue is gonna make me go insane. Dec 01 18:35:45 If anyone think they can solve my issue. Let me know. http://stackoverflow.com/questions/7670375/android-layout-ellipsize-with-right-aligned-view Dec 01 18:35:46 eghdk is it worth it, why not just flush that 2nd Tv with the right border Dec 01 18:36:21 s73v3r, I didn't understand your question :S Dec 01 18:36:29 2nd tv with the right border would be soooo easy. but designers really want this counter text to hug the other TV Dec 01 18:37:54 herriojr, The problem is in latestVersionURL = str.replaceAll("(https://.*?);.*", "$1"); Dec 01 18:38:13 is reads the whole file. I want only the one with https://... Dec 01 18:38:16 will JSONObject automatically escape newline characters when using the put method? json.put("abc", "a\nb\nc") Dec 01 18:38:31 rdnt, no. Dec 01 18:38:42 new lines are allowed in a json string Dec 01 18:40:36 interesting, Java 9 was supposed to be feature complete in 9 days Dec 01 18:40:39 .c Dec 01 18:40:52 Is there an easy way to overcome `setClipChildren(false)` issue Dec 01 18:41:03 I can't go and add this to all my views Dec 01 18:41:10 and plus it doesn't work at some places Dec 01 18:41:27 why do you want it on _all_ views/ Dec 01 18:41:29 I want my aniamtions to be visible outside view's bounds Dec 01 18:41:54 danijoo: my view scales to >1F on animation, and its parents clip it Dec 01 18:42:36 you only need it on some views then, dont you?> Dec 01 18:42:40 so just set the setting Dec 01 18:43:05 danijoo: but there are soo many places to add this :( Dec 01 18:43:17 inheritance then ;) Dec 01 18:43:20 or reuse xmls Dec 01 18:43:25 okay, colour filter is working Dec 01 18:43:30 For now i did this bad hack in my view to fix this http://dpaste.com/3WF5TFA Dec 01 18:43:41 I just need to get a way to get a version of the colour filtered drawable in bitmap form! :p Dec 01 18:43:52 works fine but I don't like it Dec 01 18:44:58 git st Dec 01 18:45:02 oops, sorry Dec 01 18:51:31 rdnt: if you want to put a newline character into a json char you'd have to use \\n Dec 01 18:51:46 Hi, I'm building an apache cordova app from scratch, no plugins, nothing strang at all. When I run: cordova run android --device with my device Samsung Galaxy Ace 3 and then I logcat I always get the same error: E/DatabaseUtils(856): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Dec 01 18:52:47 xxMatiasxx, you should ask that in a cordova related place Dec 01 18:53:10 done already, but may be something related to the build for android platform Dec 01 18:53:31 yes. but its a cordova issue Dec 01 18:54:36 yeah, ask in a cordova place Dec 01 18:54:41 we don’t really know cordova here Dec 01 18:55:10 and the error message mentions running the app as certain users, and i don’t understand what that would be doing Dec 01 18:57:35 this is messing me up; i have a NavigationView, lets say 3 groups (each with divider) . i need the groups because i have to add items dynamically in the right spots. yet, the group determines selectable semantics. for example, as is, one item can be selected for each group - but i want 1 item selectable across all groups Dec 01 18:57:44 i have a feeling i'm just going to have to roll my own Dec 01 18:59:55 yeeey i fix Dec 01 19:00:57 Is it possible to display recyclerview inside a popup? Dec 01 19:06:25 sure Dec 01 19:06:34 just override the view's layout Dec 01 19:06:48 hi, my question is .. if are a company you have an app that tracks the phone user call actitivy... Dec 01 19:07:38 ... how do you get this working on Android 6.0. I'm reading that asking for most permissions at installation time is not enought and that .. Dec 01 19:08:29 .. the user has to grant the track permission upon usage. but the company will obviously not want to rely on the phone user to accept/deny the permission Dec 01 19:10:38 Sounds like this company is the exact reason why we need that new permission system Dec 01 19:12:03 if it’s for business phones, either the phone is going to be pre-provisioned with that app installed and the permission granted, or they’re going to have another way to track calls Dec 01 19:12:33 it's pre provisioned but read this Dec 01 19:14:04 https://code.google.com/p/android-developer-preview/issues/detail?id=2938 Dec 01 19:14:52 the very first message says that just requesting the permission on the manifest (aka installation time) is just NOT enought for sensitive permissions Dec 01 19:14:59 I mean the very last message Dec 01 19:15:47 do you mean that after I grand the perssion upon first usage of that feature it will not ask me again, even if the phone is reset? Dec 01 19:15:57 sorry , I mean phone, turned on off Dec 01 19:16:00 JFlash, no. Dec 01 19:16:22 just check everytime you need the permission if its granted Dec 01 19:16:29 if its not, you have to ask for it again Dec 01 19:16:37 ouch Dec 01 19:16:45 the user could have switched the permission off at any time from the phones settings Dec 01 19:16:58 so it's up to the employee itself to accept/deny? Dec 01 19:17:34 correct Dec 01 19:17:51 goddamit, I wonder how iOS ppl do business phones because it has been like that in iOS for ages Dec 01 19:17:58 oh its JFlash again, master of shady stuff Dec 01 19:18:22 sup g00s Dec 01 19:18:29 Sounds easier to just get the call log from the provider Dec 01 19:18:42 or trust the employees :p Dec 01 19:18:48 hehe Dec 01 19:18:54 yr funny Dec 01 19:18:59 just put a tracking collar around their neck Dec 01 19:19:18 i was looking around stackoverflow and it seems the call log will not give the call duration but I must be wrong Dec 01 19:19:18 there are ways for businesses to get around those permissions Dec 01 19:19:32 I may* be wrong Dec 01 19:19:33 but i imagine they have to be backed up with an enterprise server Dec 01 19:19:44 something similar to what Blackberry offered Dec 01 19:19:49 enterprise server? Dec 01 19:20:42 something which is going to provision the devices, provide remote wipe in case phone is lost, etc Dec 01 19:20:47 ah I remember now! Dec 01 19:21:17 the reason why I need the phone state is to know when the call is over so I get the the log write then. otherwise the user can delete the log Dec 01 19:21:25 does it sound like a good plan? Dec 01 19:22:08 write then = right* then Dec 01 19:23:19 you could attach a microphone to the employees ties and track the calls by listening to them Dec 01 19:23:39 funny but this is serious business to me :( Dec 01 19:24:03 I was just hired on a 9-6 to make this work. first day on my new job Dec 01 19:24:04 and it still sounds super scammy to us Dec 01 19:24:15 is this the product your company works on? Dec 01 19:24:19 well , if you dont want to help it's fine with me Dec 01 19:24:44 JFlash let me guess, they asked if you knew android and know how to do this, you said "yes" .. and now you are stuck :P Dec 01 19:24:49 the sold this to someone and hired a freelancer but the guy bailed out without finishing it Dec 01 19:25:06 he might had a reason :p Dec 01 19:25:27 ¨please make us an app that somehow bypasses androids new permission system ¨ Dec 01 19:25:29 are these company provided phones you’re going to be running this on? Dec 01 19:25:42 lol Dec 01 19:25:48 g00s, knowing how to create spy apps was not a publish requirement of the job, no ;-) Dec 01 19:25:49 what happens with legacy apps in 6.0? Dec 01 19:25:53 (ones that do not target 6) Dec 01 19:26:07 do you just get a generic dialog when you open the app? Dec 01 19:26:09 they get the same permissions dialog that’s always come up, but the user can still turn stuff off Dec 01 19:26:15 and for the record , I do "know Android" now Dec 01 19:26:41 tx, if your compileSdkVersion is smaller 23, it will use the ´old´ system -> permissions are provided at install time Dec 01 19:27:04 but users can still disable then which will make the system respond with mocked responsed when using them iirc Dec 01 19:27:09 tx there is a good android summit talk about it, from last week Dec 01 19:27:19 users can still revoke permissions in the settings app Dec 01 19:27:36 yeah what danijoo said Dec 01 19:27:42 wait Dec 01 19:27:57 so all I have to do is compile with 23 and I'm all set? Dec 01 19:28:00 JFlash: You can find out if the permission has been revoked, in which case you could ping their boss, but unless these are company provided phones, what you’re doing is pretty unethical Dec 01 19:28:59 JFlash, as I said: No. nothing will prevent the user from revoking the permission from androids settings menu Dec 01 19:29:01 anyone know if theres an easy way to get gradle tasks to autocomplete in cmd line? Dec 01 19:29:06 doesnt matter what you compile with Dec 01 19:29:14 but that means legacy apps would crash Dec 01 19:29:14 eghdk, lots of aliases :p Dec 01 19:29:17 read this Dec 01 19:29:23 JFlash, no. that doesnt mean they crash Dec 01 19:29:28 they get mocked responses Dec 01 19:29:33 like.. empty phone call lists Dec 01 19:29:44 ha wait Dec 01 19:29:48 or an empty list of contacts if you request contact permission Dec 01 19:29:50 google will terminate the app Dec 01 19:30:02 if the user enters the settings. intersting Dec 01 19:30:49 but what happens when the user opens the app again , the permission will not be there. i dont get it.. reading further... Dec 01 19:31:07 what’s not to get? The user revoked the permission, so you no longer have it Dec 01 19:31:24 JFlash, user opens app again, permission is denied -> you either get a security exception or you ask for it again. period Dec 01 19:31:33 anyway, if I have a way to know the permission has been revoked, that would be good enough I guess Dec 01 19:31:42 if its a legacy app, and the permission is denied, you will get empty data as result of your calls Dec 01 19:31:59 but can I know that the permission has been revoked? Dec 01 19:32:07 you still haven’t answered if this is going to be something running on company provided phones, or on someone’s personal device Dec 01 19:32:08 yes. you check for it Dec 01 19:32:12 before you request it Dec 01 19:33:01 s73v3r, sorry , you may have lost the beginning of the discussion. It's supposed to the on a company provided phone Dec 01 19:33:13 s73v3r, that's what they are telling me at least :( Dec 01 19:33:53 in that case, wouldn’t it be better to look into enterprise offerings from Samsung? They have to have something that would work with this, and not allow the user to revoke the permission Dec 01 19:34:00 it's a 9-6 job, so I gotta give them some credit. I do have the name of the client that bought this system.. havent taken the time to check their website Dec 01 19:35:24 s73v3r, nice to know that's an option. but as the service provider, I think that the company that hired me could possibly have charged more to roll out a custom solution rather than use something off the shelf. but yea, it would be interesting to know what phone vendors have on this space Dec 01 19:36:07 s73v3r, as a new hire thou, I cannot make any sort of suggestions, just stick to the plan. this app has already been rolled out to the client, btw. only problem is that it doesnt really work. LOL Dec 01 19:36:28 you absolutely can make suggestions as a new hire. that’s part of why they hired you Dec 01 19:36:57 well, in an ideal world yes. I real life, things don't work quite like that :( Dec 01 19:37:34 s73v3r, been there, tried it. regretted it later :( Dec 01 19:37:43 roll out, then test lol Dec 01 19:37:57 and the fact that things don’t work is a reason to suggest it Dec 01 19:38:07 yeah, facebook style. :D Dec 01 19:38:09 and if you’re working somewhere that won’t let you suggest a solution to the problem, leave Dec 01 19:38:18 that job does not deserve qualified peopel Dec 01 19:38:55 also better check your corporate phone if you are working for such a company :p Dec 01 19:39:00 I just left my last job last week. I can't leave one job per week :P Dec 01 19:39:21 when I started an AVD from android-studio, it automatically had a 3G connection (which was routed through my box's ethernet); however when I start it manually from avd manager, there is no connection inside the emulator :-O How can I enable it? Dec 01 19:39:59 JFlash: Yes you can. just don’t put this job on your resuem Dec 01 19:40:03 resume Dec 01 19:40:07 i cannot type this morning Dec 01 19:42:06 s73v3r, sorry dude. the money is going to be on my bank account in 29 days, no matter what. so I'd better deliver something Dec 01 19:42:30 s73v3r, and by the way, it's quite a bit more than the previous job. So I'm happy Dec 01 19:42:56 ouch.. sms, phone calls.. internet history?? Dec 01 19:43:03 is this even possible? Dec 01 19:43:10 jeez Dec 01 19:43:35 where did you apply? NSA? Dec 01 19:44:13 danijoo, right. I guess you have a point... is it even legal? I'm asking my supervisor now Dec 01 19:44:21 maybe they just need the data Dec 01 19:44:46 depends on where you live i guess Dec 01 19:45:03 in most countries its legal if you tell the employee what you are doing Dec 01 19:45:06 it would be legal if it’s a company phone Dec 01 19:45:24 because it is the company’s property, and presumably it’s only used for work purposes Dec 01 19:45:43 s73v3r, thats might be the case where you live Dec 01 19:45:51 in the US it generally is Dec 01 19:46:07 its not legal to do that without letting the employee know in most european countries i guess Dec 01 19:46:34 i don’t know if you have to let them know, but it’s generally accepted that one should be aware they have no right to privacy at work here Dec 01 19:46:37 it would make a lot more sense to just restrict evrything and allow access only to "approuved" websites Dec 01 19:47:06 some places do that, but then there’s a hassle when something new needs to be added to the approved category Dec 01 19:48:12 they initially hired a freelancer but then the guy left and they tell me they do not have the source code, rings a bell? Dec 01 19:48:33 you might want to talk to the guy, if you can Dec 01 19:48:34 so I decompiled the APK but mostly for reference and I will be making it from scratch Dec 01 19:48:38 there might be a reason he left Dec 01 19:49:01 He might have checked is corporate phone :p Dec 01 19:49:37 nah, from xp I can say that 90% of the time is either money or he just could not do it Dec 01 19:49:58 Any ideas why my black notification icons seem to turn white on certain android os? Dec 01 19:50:04 well, if it was money, then you might want to think twice too Dec 01 19:50:18 especially if it turns out they weren’t paying him on time Dec 01 19:50:28 a lot off ppl here don't even know how to speak english, so they have very limited resources to learn new skills beyond what they already have. so just cannot pull it off Dec 01 19:50:48 or they wanted impossible things like bypassing android 6 permissions :p Dec 01 19:51:34 s73v3r, no but again he was hired as a remote contractor. they usually do this to save money. but I'm working on site and the work laws where I am are extremely protective Dec 01 19:51:50 yeah, unless you’re Samsung, Google, or Blackberry, you’re not going to bypass the permissions system Dec 01 19:52:18 unless you cook your own ROM at least Dec 01 19:52:30 s73v3r, no problem. I guess just knowing the permission has been revoked would be good enough for them, hopefully Dec 01 19:54:14 either that, or build your own dialer, and have the phone provisioned with that instead of the stock dialer Dec 01 19:55:27 s73v3r, wow never thought if this possibility Dec 01 19:55:44 but what about hte default dialer, will it still be around? Dec 01 19:55:48 you still have the permissions problem, but it’s less likely that the permission would be denied Dec 01 19:56:03 it all depends on how the company provisions the phone Dec 01 19:56:28 s73v3r, not really because the own custom dialer applicaion would log evrything itself, right? Dec 01 19:56:54 it still needs permission to actually make and receive calls Dec 01 19:57:08 I see Dec 01 19:57:22 well but that the user will have no reason to deny Dec 01 19:57:57 thanks guys, I learned a lot today Dec 01 19:58:28 now you know me and Donald Trump have the same motto " learning *on the job* is the way to go" Dec 01 19:58:30 :D Dec 01 19:58:44 no, it isn't Dec 01 19:59:01 stop being an ass and selling yourself for jobs you are clearly not qualified or capable of doing Dec 01 19:59:12 next time you try, we will ban you from the channel Dec 01 19:59:54 but unlike him, I can promisse you guys I will *not* be applying to any jobs where I have to own a fleet of nukes Dec 01 20:00:00 pinky swear!! Dec 01 20:00:05 stop being cute Dec 01 20:01:06 ttygl ;-) Dec 01 20:14:58 Hello, all! Is there anything analogous to "Automatic extraction of native code at install time" that would apply to executables that I compile with the NDK? Or is it only for shared objects? Dec 01 20:17:45 damn, now even the one started by Android Studio has no internet :-( Dec 01 20:18:01 all my AS/gradle builds are failing now Dec 01 20:18:02 Android Device Monitor is showing "voice: home" and "data: home" in telephony status Dec 01 20:18:13 can you check out this error and see what its about? http://pastebin.com/cWqZvxRC Dec 01 20:18:17 I'm trying to toggle it a bit, but it's still unavailable inside the emulator :-( Dec 01 20:19:40 I'm trying to add an APN but when I click "Save" the list is empty :-S Dec 01 20:19:56 calguy: solution here, https://github.com/kelemen/netbeans-gradle-project/issues/100 Dec 01 20:20:06 my google foo is failing me. Android launcher icon size? where is that? Dec 01 20:20:56 chendry, even if there was, it wouldn't set the executeable bit. What you can do is put it in the assets of your app, then copy it out into an app directory and make it executeable (copy via java, make exec either via exec.run chmod or calling file controls directly, maybe through jni) Dec 01 20:22:30 dragorn: yup! that's exactly what I'm doing now, but I'm going to need some conditional logic to determine which binary to copy, make executable, and use. I was hoping I could somehow leverage the same logic that apparently exists for .so's Dec 01 20:25:12 Not really. Dec 01 20:25:29 Running an external executable isn't really a desired thing on Android :/ Dec 01 20:25:44 ^ Dec 01 20:26:01 i think it actually discouraged and can be suspended unless you using expansion apks Dec 01 20:29:35 can anyone help please? what is the availability of 3G inside an emulator dependent on? :-S my google-fu fails me too Dec 01 20:29:57 the emulator doesn’t have 3g Dec 01 20:30:02 didnt know u could use 3g in an emulator Dec 01 20:30:11 s73v3r, I swear I saw it several times Dec 01 20:30:14 it uses your built in network via nat, like (virtualbox?) Dec 01 20:30:23 hamsterr, well, yeah, routed via built-in network Dec 01 20:30:28 it shows 3g, but it itself does not have it Dec 01 20:30:31 but it looks like 3G inside the emulator Dec 01 20:30:33 yeah Dec 01 20:30:37 precisely Dec 01 20:30:51 so why is it sometimes broken? Dec 01 20:30:52 so there’s absolutely nothing you can do about it Dec 01 20:31:00 broken how? Dec 01 20:31:06 mine works most time, maybe u have a misconfig Dec 01 20:31:13 like sometimes when I start the same AVD, there's no virtual-3G inside of it Dec 01 20:31:14 cant think of 1 time my hasnt worked Dec 01 20:31:21 and sometimes there is Dec 01 20:31:42 so, it is just not showing wifi / 3g connected? Dec 01 20:31:47 are you using the emulator depending on there being a certain kind of network availability? Dec 01 20:31:50 if so, you’re doing it wrong Dec 01 20:32:02 s73v3r, nope, network's up all the time Dec 01 20:32:28 if the network is up, then i wouldn’t worry about it Dec 01 20:32:36 ^ Dec 01 20:32:46 I thought it worked in Android Studio and didn't work when I started emulator64-x86 from CLI, but that's not the case now Dec 01 20:32:52 Any ideas why my application is dying with 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollVertically()' invoked on a null reference? https://gist.github.com/Quintasan/3974d563d4abb5d9f4a9 Dec 01 20:32:55 s73v3r, nope, network wasn't up when it was broken Dec 01 20:32:57 hamsterr: shoot! I didn't know that. (Just started on Android a few days ago.) I actually do compile it together with my iOS app statically, but it tends to crash every once in a while so I was hoping to have it on a separate process on the Android app. Dec 01 20:33:15 there was an "X" next to the signal strength and there was no "TelKila" in the APN list and I couldn't add a new APN Dec 01 20:33:27 so what is your actual problem? That when your network is down, the emulator doesn’t have network? Dec 01 20:33:36 hamsterr: thanks but what does that have to do with the error I'm seeing? I'm seeing it in AS, not netbeans and it seems completely different than what you are seeing? Dec 01 20:33:42 s73v3r, no, that when my network is up, the emulator doesn't have network Dec 01 20:33:45 sometimes Dec 01 20:33:47 or what that post is talking about rather Dec 01 20:33:52 you cannot do anything at all regarding network stuff, especially cellular network, on the emulator Dec 01 20:34:10 precisely speaking, that sometimes when I start the emulator up, it boots up with working network, and sometimes not Dec 01 20:34:15 so is there any decent way to get onActivityResult() called properlly from Child Fragments? Dec 01 20:34:25 (i.e. boots up with no network, even though the host has connectivity all the time) Dec 01 20:39:01 do you have any proxy settings, or anything set up when launching the emulator? Dec 01 20:39:16 MooGoo i usually see some technique involving putting the result on an event bus, which all fragments subscribe too. its totally lame, one of those things that makes you wonder if they test stuff at all Dec 01 20:39:43 same for requestPermissionResult Dec 01 20:40:12 i honestly don’t see how on earth they could have fucked up child fragments so much Dec 01 20:41:49 it could have been great if they put more thought into it Dec 01 20:42:21 that would probably require having more than one guy who’s working on it part time Dec 01 20:42:40 fragments aren't some rarely used corner of the API, we pretty much use them as building blocks Dec 01 20:42:40 did anyone ask about it during the Dev Sumit? Dec 01 20:42:42 s73v3r, no, I'm not using any proxies Dec 01 20:42:51 s73v3r hm, i thought it was broken in platform too ? Dec 01 20:43:08 (unless they're being configured for my by Android Studio or the emulator or something from the SDK) Dec 01 20:43:26 g00s: i was being silly Dec 01 20:43:33 UukGoblin: no, that wouldn’t do it Dec 01 20:43:43 do you constantly restart the emulator? Dec 01 20:44:03 s73v3r, I restart it a bit when I change its settings, like memory size Dec 01 20:44:20 do you do that often? Dec 01 20:44:43 s73v3r, you could say that, yeah Dec 01 20:44:57 why not just have separate emulator images? Dec 01 20:45:25 I could, I guess Dec 01 20:48:07 I read that it's only a problem in the support libraries, but google wont fix it because reasons or something Dec 01 20:49:08 lol Dec 01 20:50:15 What's a problem? The Fragment.onActivityResult thing? Dec 01 20:50:59 if startActivityForResult() is called from a child fragment, that fragment will never receiver the coroosponding onActivityResult() Dec 01 20:51:18 your Activity will get it, as well as some fragment index error in logcat Dec 01 20:51:25 Hmm, I thought that was working nowadays. Dec 01 20:51:35 did they actually say they won’t fix it? Dec 01 20:51:37 and for onRequestPermissionResult, so you'll need the same technique to handle both cases Dec 01 20:51:43 if so, then someone needs to be flayed Dec 01 20:51:57 https://code.google.com/p/android/issues/detail?id=40537#c13 Dec 01 20:52:42 "Over time, moving to the platform implementation of fragments is the solution to this." Dec 01 20:52:53 i thought we did exactly the opposite so we could have bug fixes Dec 01 20:53:21 oh, i should have guessed, dianne hackborn said that. i'm sure she takes perverse glee in all of us suffering Dec 01 20:53:48 g00s: I missed it, what was the quote? Dec 01 20:54:18 herriojr in the link, comment 13 Dec 01 20:54:31 I don't have the history to see the link :P Dec 01 20:54:55 herriojr https://code.google.com/p/android/issues/detail?id=40537#c13 Dec 01 20:55:19 some day, karma will strike, and dianne will find herself programming, not creating, a platform designed by people who don't give a fuck Dec 01 20:55:31 one can hope Dec 01 20:55:49 TacticalJoke lol i think i just fell for the just world hypothesis Dec 01 20:56:16 I think it's required for happiness. Dec 01 20:56:29 We are also genetically programmed to fall for it. Dec 01 20:56:48 I think Benatar talks about it in that book Better Never to Have Been, but I can't remember for sure. Dec 01 20:56:55 g00s: lol Dec 01 20:57:17 i'm also going to make sure no future platform i use was architected by practitioners of bsdm Dec 01 20:57:40 *bdsm Dec 01 20:58:29 Android doesn't respect anyone's safe word. Dec 01 20:58:42 Oh, 'safeword' is a word now. Dec 01 21:00:23 so yeah, starting my emulator in exactly the same way (right now via AVD Manager) results in random no internet Dec 01 21:00:39 and the DPI or resolution also seems random, sometimes my icons are huge and sometimes not so much Dec 01 21:00:45 Is there a standard way to get a port to receive UDP traffic when connected to a mobile network? Dec 01 21:01:43 Exaeta mobile and UDP don't mix well Dec 01 21:01:50 carrier might block, etc Dec 01 21:03:21 Exaeta: is there a particular reason you need udp? Dec 01 21:04:59 I'm trying to port code designed for UDP Dec 01 21:05:18 kk Dec 01 21:05:36 And P2P Dec 01 21:05:37 well, if you're doing java, you can use http://developer.android.com/reference/java/net/DatagramSocket.html Dec 01 21:08:16 UDP will work fine on wifi - but mobile ... don't think so Dec 01 21:08:48 Exaeta Mavrik might know if he's around Dec 01 21:09:00 Who summoned me? Dec 01 21:09:23 s73v3r, right, I also restart the emulator when it hangs up :-] Dec 01 21:10:40 Exaeta better ask your question :D Dec 01 21:11:17 Is there any way to connect two UDP clients reliably over mobile networks? Dec 01 21:11:25 http://stackoverflow.com/questions/8401481/android-phone-development-udp-services Dec 01 21:11:25 Hrmf. Dec 01 21:11:26 Or ways Dec 01 21:11:40 Exaeta, via HTTP server bridge? :) Dec 01 21:11:50 Mobile networks are... funny. Dec 01 21:12:06 Mostly ruled by overzealous devops people who like to set up really awful firewalls. Dec 01 21:12:17 Most of them are NAT'ed so you can't really do P2P Dec 01 21:12:39 does anyone have any great examples of source thats using Palette? Dec 01 21:12:45 And a lot of them won't properly tag UDP sessions so you can't even get reliable two-way communication with an open server. Dec 01 21:12:56 hum Dec 01 21:13:08 im having trouble getting my mind around how to use it efficiently, especially with picasso Dec 01 21:13:15 I don't mind if the source and destination address change Dec 01 21:13:25 drinfernoo: do it as a transformation I guess Dec 01 21:13:30 I just want to be able to send the packets and have some of them arrive at the other side Dec 01 21:13:49 drinfernoo: doing it as a transformation will guarantee it is on a separate thread Dec 01 21:13:54 Exaeta, that's not gonna work over NAT :/ Dec 01 21:14:04 Exaeta, how about abusing GCM for that? Dec 01 21:14:30 So, what if I have a server X, with a static IP, are there any workarounds to get client A and B talking directly to eachother? Dec 01 21:14:42 Hello, I have to use JoCoCo with android studio to show that I have 90 % test coverage. Is there a tutorial how to integrate Jacoco? Dec 01 21:14:45 herriojr, thats all fine, but can i cache that palette instance and continue using it in other places? Dec 01 21:15:16 so many apps use it so well, but im just having trouble :( Dec 01 21:15:47 Exaeta, see if UDP hole punching can work, but I'd not rely on it working Dec 01 21:16:20 Domi, JaCoCo is available as part of Gradle coverage and should work with AS I think Dec 01 21:16:53 drinfernoo: sure, that's what it is for — it just gets colors/swatches Dec 01 21:17:04 ok,is it able to highlight the lines that are covered? Dec 01 21:17:08 it's meant to be used to change the UI based on the image Dec 01 21:17:24 Domi, it should if you use unit testing, it generates a HTML if you're using instrumentation testing Dec 01 21:17:57 drinfernoo: it just tests the image for the necessary colors then caches them Dec 01 21:18:04 that's why it's supposed to be run async Dec 01 21:19:26 ok can I combine the instrumentation tested classes with normal unit tests for java code without android dependences Dec 01 21:21:15 herriojr, i guess my problem is, how do i apply those colors async? i dont want to run a transformation on every single one of my ui elements, especially in listview rows, etc Dec 01 21:21:35 and i dont really want an asynctask on every row lol Dec 01 21:25:59 drinfernoo: you only do it async when building it from a bitmap Dec 01 21:26:23 drinfernoo: usually on a single image (assuming not a list) Dec 01 21:26:43 drinfernoo: usually an image contextual to what you're doing Dec 01 21:27:26 drinfernoo: http://code.tutsplus.com/tutorials/coloring-android-apps-with-palette--cms-24096 Dec 01 21:29:55 Does this get easier if I have IPv6? Dec 01 21:30:07 or does T-Mobile NAT that too? Dec 01 21:32:18 How will you guarantee your users are going to have IPv6 without NAT? Or are you building an app that will be used only on one telco? Dec 01 21:33:18 Well, ideally, any clients that support UDP will run UDP P2P. Other clients would use a proxy I guess Dec 01 21:33:52 I'm wondering if most telcos use crazy NAT stuff on IPv6 too Dec 01 21:34:54 I just said T-Mobile because that's what my device has, although I want to work with the other networks too. Dec 01 21:40:52 Exaeta, UDP is inherently connection-less ;-) Dec 01 21:47:57 more of a legal issue.. I just got contacted by these guys: http://www.lowlifescum.com/ asking me to change the logo of my app because its to similar to their site.. never heard of that. how would you react? Dec 01 21:48:17 s/that/them Dec 01 21:49:22 I would usually them to F**k off, but who know how google reacts if they fill a DMCA Dec 01 21:49:37 That site is like going back in time. Dec 01 21:49:59 indeed Dec 01 21:50:06 btw my logo: http://postimg.org/image/84qxjk2vd/70da1ede/ Dec 01 21:50:15 Anyone using data binding plugin? I want to bind an action to a button in my card which is in a recyclerview and I have no idea which approach to take. Dec 01 21:50:26 so its now a copyright violation to combine an L and an S? Dec 01 21:50:43 Theirs is LLS; yours, LS. Dec 01 21:50:46 Yeah, that seems ridiculous. Dec 01 21:51:00 danijoo, yeah, I'd blow them off Dec 01 21:51:07 Actually, theirs is more "LLS-". Dec 01 21:51:38 at least they wrote a very friendly mail. Dec 01 21:51:45 no offense in their Dec 01 21:53:12 My app is loading the data from the server (over the internet). When done, it processes the data in the app (storing in the db). When done, i'm reading the data, and do some other work (filling calendar entries). Is it best practice to create a Service for filling the calender? Or? Dec 01 21:54:32 Currently I started a AsyncTask Dec 01 21:55:33 both is a valid option tofra Dec 01 21:56:51 but with android 6, I first need to check if I have the permission to store entries in the calendar.. So i'm getting a little confused what to do, because now I need to use onRequestPermissionsResult (i guess) and start the AsyncTask from there.. Dec 01 21:57:28 id just ask for the permission before the download Dec 01 21:57:35 and only start it if you get permission Dec 01 22:09:26 oh yay Dec 01 22:09:52 At least if I'm using IPv6, I can receive UDP packets on T-Mobile's network Dec 01 22:11:40 Can I somehow add onclicklistener to the Button inside a CardView? I'm trying to repurpose the cardlayout in recyclerview for my app https://github.com/googlecodelabs/android-design-library/blob/master/app/src/main/res/layout/item_card.xml Dec 01 22:11:58 Quintasan, sure\ Dec 01 22:13:29 danijoo: I've been working with a ListView and I have been getting the object at clicked position and passing it to an DetailsActivity using putExtra but I have no idea how to do something similar using RecyclerView Dec 01 22:16:36 Quintasan, onClickListeners are not limited to buttons Dec 01 22:16:49 you can register an onclicklister to every view of the recyclerview Dec 01 22:17:03 The problem is I don't know how to achieve that. Dec 01 22:17:18 view.setOnClickListener(...) Dec 01 22:17:25 https://gist.github.com/Quintasan/9c4ffa0233e043953543 Dec 01 22:17:33 If I'm at Activity B, and I start Activity C, how do I finish activity A? Dec 01 22:17:39 I'm trying to do this in the adapter, not sure if I'm right Dec 01 22:19:16 Quintasan, just add it where you create/inflate the view Dec 01 22:25:39 woohoo, interesting http://www.gforgames.com/gadgets/nexus-7-2016-by-huawei-50722/ Dec 01 22:27:34 well Dec 01 22:27:59 danijoo: This was kind of convoluted but holder.getBinding().getRoot().findViewById(R.id.action_button).setOnClickListener(new View.OnClickListener() Dec 01 22:28:56 Data binding makes one thing convenient and others convoluted Dec 01 22:29:15 i dont use data binding, sorry Dec 01 22:29:38 No problem, the only question is whether I'm doing it right or not. Dec 01 22:30:28 id just do view.setOnClickListener(..) before passing the view to the constructor of ViewHolder(view) Dec 01 22:31:50 danijoo: It will set up a onClickListener for the whole card. Dec 01 22:32:11 i thought thats what you want Dec 01 22:32:21 I wanted it only for the button for now. Dec 01 22:32:33 then findViewById and set it on the button. Dec 01 22:32:57 The only question I have now if whether passing whole Objects to Activities via Intents is a good idea or not. Dec 01 22:33:15 Currently I'm passing the whole Object as a Parcelable Dec 01 22:33:19 you can only pass serialized or parcelled objects Dec 01 22:33:25 that is fine as long as they are small Dec 01 22:33:27 theres a size limit Dec 01 22:33:34 So far it's mostly text. Dec 01 22:33:44 somewhere arround 1mb for the whole bundle i think Dec 01 22:33:52 Oh, I should be fine then. Dec 01 22:34:35 I'm mostly passing objects created from JSON array and they're all Strings with some DateTime objects after Retrofit is done with them. Dec 01 22:42:38 what would cause some objects returned by Retrofit to be null while the other objects are fine? Dec 01 22:43:46 orbyt_, are you sure its retrofit and not the server response / you swallowing an error Dec 01 22:45:08 I am trying to connect to my android tablet (Samsung Tab A), using Mac OS X, however "adb devices" doesn't show anything. Additionally, my Console log is full of the following: 2/12/2015 9:44:08.000 AM kernel[0]: 182388.315861 HS02@14200000: AppleUSB20XHCIPort::resetAndCreateDevice: failed to create device, disabling port Dec 01 22:45:11 danijoo: well it couldnt be a problem with a response because the other json objects are all getting filled in Dec 01 22:45:11 What am I doing wrong? Dec 01 22:45:26 danijoo: and no errors of course Dec 01 22:45:27 orbyt_: It could be a Gson problem Dec 01 22:45:59 Gson would trow an error if it fails deserialize i thing Dec 01 22:46:03 s73v3r: Well I noticed in the json response, the 2 that are null are both strings with an underscore in the name.. Dec 01 22:46:11 What is the advantage of using fragments instead of just loading the UI from an XML file? Dec 01 22:46:19 the field’s name has an underscore? Dec 01 22:46:54 s73v3r: yea like one of the keys in the response is "img_src:" Dec 01 22:47:08 orbyt_, maybe you need custom serialization there.. Dec 01 22:47:08 is that allowed in JSON? Dec 01 22:47:48 underscores are allowed, im not sure about ´:´ Dec 01 22:47:59 Arahael: You did try other USB ports? Dec 01 22:48:11 Quintasan: Let me try my only other USB port, but why would that be the issue? Dec 01 22:48:28 danijoo: no the : is just the semicolon between the key/value Dec 01 22:48:38 not in the name Dec 01 22:48:56 Quintasan: Same issue. Dec 01 22:49:04 Arahael, different usb cable Dec 01 22:49:21 Arahael: Generally if it fails to create a device it's a communication problem. Dec 01 22:49:26 danijoo: Actually that's a good possibility. Dec 01 22:50:10 Arahael: My USB port for example works when you plug in a HDD but my phone refuses to be discovered in any sensible manner :D Dec 01 22:50:15 There are some super-cheap usb cables that dont support data connection Dec 01 22:50:19 they are only for charging Dec 01 22:50:35 Quintasan: Yeah, it works fine with my USB stick. Dec 01 22:50:38 Quintasan, you may need to enable developer / usb debugging // etc Dec 01 22:50:50 also sometimes adb seems to not like usb 3.0 Dec 01 22:50:58 These are USB 3.0. Dec 01 22:51:05 hamsterr: I do realize that, it's just that particular port is "retarded". Dec 01 22:51:19 take it up with your motherboard manufacturer Dec 01 22:51:20 lol Dec 01 22:51:25 hamsterr: Apple? Dec 01 22:51:27 long past warranty lol Dec 01 22:51:30 Quintasan, hehe. im having such a port on my laptop, too ^^ Dec 01 22:51:35 This is a brand new mac book pro. Dec 01 22:51:43 Like, weeks old. Dec 01 22:51:50 well theres your problem Dec 01 22:51:54 paying too much for an i3 Dec 01 22:51:55 ^^ Dec 01 22:52:02 hamsterr: This big scary thing is at least 5 years old, should probably replace it at some point. Dec 01 22:52:03 hamsterr: It's not an i3. Dec 01 22:52:16 Actually this cable does work fine for HIB API queries. Dec 01 22:52:21 to be fair macs usually make way less problems with things like that Dec 01 22:52:26 its usually just plug+play there Dec 01 22:53:03 yeah. i’ve had untold problems with drivers and crap connecting phones to windows. Nothing like that in Linux or Mac Dec 01 22:53:19 Hey guys, I'm trying to record button presses by their view, and put them in a list, so that I have the order of presses. Is there an easy way to do that? Dec 01 22:53:55 CampinSam, the onclick callback has the view as a param Dec 01 22:53:59 you could log the view id Dec 01 22:54:20 Assuming that it's not the cable, what might the issue be? Dec 01 22:54:27 I've noticed that other people seem to have the same isseu: Dec 01 22:54:27 CampinSam: What have you tried? Dec 01 22:54:36 danijoo, that sounds simple, I'll try that Dec 01 22:54:56 https://discussions.apple.com/thread/7353475 Dec 01 22:55:19 s73v3r, well... I'm a bit noob, but I have to record the views and the difference in time inbetween each keypress. So I made this function that gets called in the onclick to put the time difference and the view in a map() Dec 01 22:55:29 Arahael: I don’t think you can assume it’s not the cable Dec 01 22:55:40 s73v3r, but I think I'm gonna try and make that simpler with putting the view in just an array or something Dec 01 22:55:56 s73v3r, or rather, tried to make* Dec 01 22:56:27 s73v3r: It would be odd that the cable works with other devices, but not this one. Dec 01 22:56:39 then it sounds like it’s the phone Dec 01 22:56:51 s73v3r: A Samsung Tab A? Dec 01 22:56:58 device, whatever Dec 01 22:56:59 s73v3r: With all the latest updates? Dec 01 22:57:00 Samsung is always an issue Dec 01 22:57:21 agreed. Samsung: Because Fuck You, that’s why Dec 01 22:57:35 but they make good hardware Dec 01 22:57:40 Samsungs are a pain on windows driver-wise Dec 01 22:59:55 What is the advantage of using fragments instead of just loading the UI from an XML file? Dec 01 23:00:04 Ok, that's weird. It was a cable issue. Dec 01 23:01:37 This cable is slightly fatter though - perhaps it's a USB 1.1/USB2/USB3 compatibility issue. Dec 01 23:01:37 asddas, different tools for differnt situations Dec 01 23:01:52 a fragment is more than just a part of the ui Dec 01 23:03:25 danijoo, dynamism maybe ? Dec 01 23:03:59 can you explain Dec 01 23:04:01 what do you mean? Dec 01 23:04:06 dynamism Dec 01 23:04:17 if you inflate an xml, you have just a view Dec 01 23:04:31 a fragment is much more than a view. Dec 01 23:04:42 we can create dynamic fragments Dec 01 23:04:43 asddas: Perhaps you should read the documentation on fragments Dec 01 23:05:10 danijoo, small error, but whenever list.add(thatview) in my program is called, I get a OutOfMemoryError Dec 01 23:05:25 I'm trying to run something on a device, and getting "CANNOT LINK EXECUTABLE: unknown reloc type 160 @ 0xb534a084 (89286)". I ran readelf on the binary, and found that this corresponds to "000000a0 R_ARM_IRELATIVE" ... does anyone know anything about this? why would it cause problems? Wrong EABI version or something? Dec 01 23:05:40 CampinSam, you are out of memory ;) Dec 01 23:05:43 Am I declaring the Arraylist wrong? : private List list = new ArrayList(); Dec 01 23:06:36 CampinSam, i told you to store id, not the view Dec 01 23:06:54 storing the view could end you with memory leaks depending on where/how you are doing this Dec 01 23:07:22 but anyways, OOM indicates you are out of memory Dec 01 23:07:31 seems not to be related to what you are doign Dec 01 23:07:44 danijoo, I get the OOM error on the first call : / Dec 01 23:07:50 not sure how to troubleshoot that Dec 01 23:08:24 check your memory usage Dec 01 23:08:26 and adjust it Dec 01 23:08:32 and have an open eye for memory leaks Dec 01 23:18:27 I'm trying to add Vungle value exchange ads to my app, but they don't have gradle - only jar files. One of their jar files is support-v4-18.0.0.jar, but I already have com.android.support:support-v4:23.1.1 in my app.gradle. Could this cause problems? Dec 01 23:18:29 g00s: you know I was looking at that issue you linked me before about onActivityResult and unfortunately, Diane's right — the patch someone created wouldn't work either — the issue is overlapping result code resolution Dec 01 23:19:26 duncannz, yes it could Dec 01 23:20:16 danijoo: and it also includes the nineoldandroids jar which is deprecated Dec 01 23:20:22 kinda offputting Dec 01 23:20:47 yeah that would already put me off Dec 01 23:21:08 Does anyone here have experience with any value exchange ad network by any chance? Dec 01 23:26:04 is this where you make contracts with other devs to show ads for their apps while they show ads for yours, for free? Dec 01 23:32:28 danijoo: no, it's where the user can view a video ad to get free in game currency. like in crossy road Dec 01 23:33:01 i think unity has this feature too Dec 01 23:33:13 unity reward ads or sth like that Dec 01 23:34:01 oh thanks danijoo I'll look into that Dec 02 00:46:50 i am having an issue with this menu file thats driving me crazy https://gist.github.com/DylanRedfield/bcdb2906182d8f3b6d7a Dec 02 00:47:02 im sorry im an idiot Dec 02 00:47:21 i was using android:showAsAction not app:showAsAction Dec 02 00:47:29 ive been up too long Dec 02 00:48:40 DadFoundMy easy to mess up Dec 02 00:51:24 I have an android app and a server java app, both using some simliar logic. How can I make both of them depend on the same exact code? Some sort of shared library? Dec 02 00:52:34 ntio sure Dec 02 00:53:20 either that, or try change the app and server so that the app doesn’t need that logic, because it’s all being done on big beefy servers Dec 02 00:53:49 one can argue that validation should happen at all levels of abstraction Dec 02 00:53:58 I have a lot of questions about this. How do I make sure that this shared library only links to available libraries on android? Would android studio be suitable for developing this library? Dec 02 00:54:00 that would be one candidate for reuse among pieces Dec 02 00:54:30 presumably you wouldn’t have many, if any dependencies Dec 02 00:54:50 it would be pure logic Dec 02 00:54:54 s73v3r: Yea, I don't have many, that's true. Dec 02 00:54:59 not from concentrate Dec 02 00:55:17 but, is there some development environment that would prohibit me from using unavailable libraries? Dec 02 00:55:47 they will complain if you haven’t included them Dec 02 00:56:58 s73v3r: not at the library compilation stage though, right? the complaint will happen at the android project compilation? Dec 02 00:57:13 no, at library compillation, i believe Dec 02 00:57:21 you still have to have your dependencies declared Dec 02 00:57:29 what kind of libraries are you talking about? Dec 02 00:58:56 if I by chance import java.awt in my library, the compilation would work on my local machine, right? Dec 02 00:59:10 but it should not work in android studio projects Dec 02 01:00:23 So is there any development environment I can create this library that would complain about an import java.awt statement Dec 02 01:00:37 i guess studio would do that Dec 02 01:02:58 s73v3r: but Android Studio doesn't have an option of creating a purely java project. I must select a form factor (phone/wear/etc.) when creating a new project Dec 02 01:03:21 then i don’t think there’s anything for you Dec 02 01:03:29 you’re going to have to rely on your own discipline Dec 02 01:03:59 I don't trust myself :( Dec 02 01:05:26 ok, another question: when I choose to create new module in android studio, there are choices like "import gradle project", "import eclipse adt project" "Import jar/aar package" "Java library" Dec 02 01:05:42 which one is appropriate for my situation? Dec 02 01:06:23 probably one of the last two Dec 02 01:18:46 Anyone have problems getting code iris to work? Dec 02 01:32:02 MOrning all Dec 02 01:39:48 it seems like setting the InputType of an edit text programmaticly makes it so the enter button submits, not goes to a new line Dec 02 01:39:53 how should i change this Dec 02 01:40:22 i have tried: mEditText.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_FLAG_MULTI_LINE); Dec 02 01:41:46 Wouldn't you want a single-line EditText? Dec 02 01:43:29 DadFoundMy, check setImeOptions Dec 02 01:43:52 TacticalJoke: no i want a multiLine, but setting the inputtype is changing it to a single line Dec 02 01:46:15 we had a maybe related problem in our app, solved like this http://tinyurl.com/nf8z6uy Dec 02 01:48:03 anyone know of a good source of information on large scale mobile app design? Dec 02 01:48:44 so setting the inputtype set singleLine to true for some reason even tho i had it set to false in xml Dec 02 01:49:02 so after setting the inputtype programmaticly i setSIngleLine programmaticly also Dec 02 01:49:05 it worked Dec 02 02:17:12 my galaxy s5 just feels like it's getting slow Dec 02 02:17:38 I could try a factory reset, but I'm not sure if it would do anything Dec 02 02:18:02 I always factory-reset if they're getting slow. Dec 02 02:24:08 I guess I'll try it Dec 02 02:24:24 I need to screenshot a bunch of stuff first to accelerate re-setting up my phone Dec 02 02:28:33 are there any customized open source android dialog projects? I can't find anything on google Dec 02 02:29:56 hey if its alright to ask what I should be focusing on learning as a beginner I'dd really appreciate the advice, I'm currently focusing on properly understanding writing data providers, then sync adapters. I'm doing udacity free online course and when I feel I dont really understand the code they give us, I try to reimplement/understand the code they give us (which is why I'm doing data providers and syncadapters now). Any Dec 02 02:30:12 custom alert dialogs i guess Dec 02 02:30:47 dompaq777: are you a java beginner or an android beginner? Dec 02 02:32:52 no I know java pretty good, switched over from programming to voip a few years back, but I have 2 sun certifications (scjp and scwcd), so I think on a java scale i'm good, pretty much learning the framework I would say Dec 02 02:37:11 grekkos: yeah so java knowleadge so far I havent had issues. Android framework is really what I think i need to focus on... but not sure 100% if im focusing on the proper areas **** ENDING LOGGING AT Wed Dec 02 03:00:57 2015