**** BEGIN LOGGING AT Mon Jan 19 02:59:58 2015 Jan 19 03:12:24 i coughed up blood. Jan 19 03:12:26 cool. Jan 19 03:12:39 punched by a dragon ! Jan 19 03:12:56 lol Jan 19 03:13:05 g00s Jan 19 03:13:09 what are you working on mate. Jan 19 03:13:34 i'm working on my irc ignore list Jan 19 03:13:54 :-( Jan 19 03:14:09 * DragonPunch sad Jan 19 03:14:16 there we go Jan 19 03:14:22 * DragonPunch cry Jan 19 03:16:32 /sigh Jan 19 03:16:42 Going to have to write NodeJS API servers. Jan 19 03:16:46 >_< Jan 19 03:25:58 ac_slater: could try https://github.com/fyhertz/libstreaming Jan 19 03:27:08 why Node DragonPunch? X) Jan 19 03:27:48 um because i already know it i guess.. and it is non blocking Jan 19 03:27:59 good for doing multiple things at once Jan 19 03:28:23 coolio I dont really know it, I used Python for my own API Jan 19 03:28:57 Pyramid to be exact Jan 19 03:29:04 cool............. Jan 19 03:29:13 hey are you working on anything Jan 19 03:29:14 if not Jan 19 03:29:20 you should team up with me on this project Jan 19 03:29:30 i can get us funding before the close of this summer Jan 19 03:29:30 busy busy im afraid Jan 19 03:29:37 but thanks for asking Jan 19 03:29:43 yeah man why not right? Jan 19 03:29:56 maybe in a few months X) Jan 19 03:30:11 lol i dont plan on the project needing to be finished in a few months Jan 19 03:30:15 i plan on releasing end of this month Jan 19 03:30:20 #movefast Jan 19 03:30:56 fair enough X) Jan 19 03:52:56 do you guys think this is good commenting Jan 19 03:52:57 http://puu.sh/eIA9N/a42ab5537a.png Jan 19 04:04:29 lacx: most things show encoding with MediaCodec ... I found grafika by google that shows some nifty decoding examples Jan 19 04:08:31 Simon are you there? Jan 19 04:13:44 man this is weird. connect to BLE device, OK. disconnect, OK. reconnect - OK but it takes *20 minutes* Jan 19 04:14:12 * g00s is patient, but users won't be :) Jan 19 04:16:52 'there's a bug for that' https://code.google.com/p/android/issues/detail?id=60646 Jan 19 04:17:03 ohshit, obsolete ! Jan 19 04:17:28 which means, by pfn's logic, this can't be a legit bug hmm Jan 19 04:23:20 FWIW, that happens on my Moto 360 and Gear Live all the time as well Jan 19 04:23:51 lut4rp so you have done some BLE development on android ? or did a peripheral do this ? Jan 19 04:24:22 g00s, peripheral. Jan 19 04:24:54 ah, k. man so many bugs, like this one ! https://code.google.com/p/android/issues/detail?id=77150 Jan 19 04:25:06 "GATT Callback onServicesDiscovered called for wrong device in case connections are triggered to multiple devices arround the same time" Jan 19 04:25:24 they should probably just scrap all the existing code, fire the BLE team, rehire, rewrite from scratch Jan 19 04:25:44 i like a good challenge though :) Jan 19 04:25:56 I could say that for a lot of parts of Android :/ Jan 19 04:26:29 these apis have been my worst experience by far Jan 19 04:27:49 is this too far fetched for me to do: http://forum.xda-developers.com/showpost.php?p=48202838&postcount=16 Jan 19 04:28:19 screwsss: you're writing a camera app? Jan 19 04:29:08 there seems to be a number of ways the BT stack gets into a bad state, and you need to reset it in order to continue Jan 19 04:30:04 Anyone know what's wrong with my double? Jan 19 04:30:19 your double ? Jan 19 04:30:27 g00s: Just a sec Jan 19 04:30:28 lol Jan 19 04:30:34 yeh Jan 19 04:30:48 My first crash on the play store lol Jan 19 04:30:49 i want it to be exactly the same as the system app on my phone, but without the annoying focus nosies Jan 19 04:31:12 java.lang.NumberFormatException: Invalid double: "13,4985398034173" Jan 19 04:31:18 Is it because of the comma? Jan 19 04:31:23 oh maybe Jan 19 04:32:26 I can't reproduce it. My text field is limited to numbers and a decimal. Do you think different android operating systems can override that keyboard? Jan 19 04:32:51 I spent like a year developing this app lol. I never came across this problem. Jan 19 04:32:58 that would be a locale problem... Jan 19 04:33:21 locale? Jan 19 04:33:22 ^ Jan 19 04:33:24 in the English-speaking world, the decimal separator is usually a ".", while in Europe it's usually "," Jan 19 04:33:32 Damn Jan 19 04:33:40 device xperia P Jan 19 04:33:52 Do you think it would process the same way though? Jan 19 04:34:06 ? Jan 19 04:34:25 Think what, would process what the same way as awhat? Jan 19 04:34:27 For example, shouldn't it know that "," is a replacement of a "." in a double then automaticly Jan 19 04:34:39 AndreYonadam http://stackoverflow.com/questions/888088/how-do-i-convert-a-string-to-double-in-java-using-a-specific-locale Jan 19 04:34:48 ^ Jan 19 04:35:09 g00s: Thanks. I never would have realized that in europe they use "," instead of "." Jan 19 04:36:48 Yeah I'm going to check that. Just checked statistics and all my users are from the "United States". They could have set the options differently though. I'm going to follow up on that link and implement that. Jan 19 04:37:26 just because you're in the US doesn't mean you're using a en_US type locale Jan 19 04:39:45 Leeds: Yeah that's true. But this is my question if the there was a locale that uses "," would that allow the user to use that value in the text field. Currently the keyboard only allows numbers and ".". Input type is currently number decimal. Jan 19 04:40:04 how do you know the keyboard only allows numbers and "."? Jan 19 04:40:21 I just used that input type in the xml Jan 19 04:40:28 Can keyboards override that? Jan 19 04:40:45 so might it be more correct to say the keyboard only allows digits and a decimal separator? Jan 19 04:40:49 Yes Jan 19 04:53:56 Today was a good day. Posted my app on Reddit. Reddit approved. I feel like thanking every single person that helped me here. Thanks guys :) Jan 19 04:55:00 keyboards can ignore input type Jan 19 04:55:08 just look at any Samsung keyboard Jan 19 04:55:25 it only correctly honors like 80% of input type configuration Jan 19 04:57:19 JakeWharton: Yeah I keep trying to reproduce it and numberDecimal doesn't even allow commas even with locale which I changed and looked up online. Jan 19 04:57:48 Maybe I should use an imputfilter Jan 19 04:57:53 *input Jan 19 05:01:07 JakeWharton: Do you know any bad keyboard that doesn't work with input type? Jan 19 05:06:16 hi Jan 19 05:06:21 hello Jan 19 05:07:37 I want to add video calling and audio calling facility in my android app, how is that possible? Jan 19 05:08:11 renanferrari: reddit approved as in? They have an app marketplace now? Jan 19 05:09:02 shmoon: As in "Reddit liked it". haha An Reddit marketplace, that would be something. Jan 19 05:09:28 oh congrats! Jan 19 05:11:04 Thanks! :) Jan 19 05:13:26 hello Jan 19 05:13:38 i have more the 10 radiogroup which contains 5 radio buttons in the recyclerview Jan 19 05:13:57 the checkedId in radiobutton is iterate over 30 Jan 19 05:15:13 which means, the first radiobutton of 1st section is checked, then the 31th radiobutton of 7section is checked. Jan 19 05:16:24 although they are in the separated radiogroup section. Jan 19 05:16:37 how can i fix them? Jan 19 05:19:43 er something wrong with the website here Jan 19 05:19:45 http://www.samsung.com/au/support/usefulsoftware/KIES/ Jan 19 05:19:51 clicking the download button and nothings happening Jan 19 05:28:16 Can't reproduce a bad keyboard input Jan 19 05:35:21 AndreYonadam: If the keyboard can be overriden by phone providers then you can just assume that the content type is ignored and they are using a regular keyboard Jan 19 05:36:18 yiati: But for that one person who had an Xperia he used a "," which I couldn't reproduce even though I changed the locale and used various keybaords Jan 19 05:36:42 AndreYonadam: Did you try it on the same device? Jan 19 05:36:53 I don't have an Xperia Jan 19 05:37:18 If you had the same model as them you would probably be able to reproduce it Jan 19 05:37:35 yiati: Yeah I guess. I need to find someway. Maybe Sony has an emulator Jan 19 05:38:20 You could test your solution by turning off inputType Jan 19 05:39:44 yiati: Yeah I can Jan 19 05:41:03 is busy box really a 'mega necessity' for rooted phones Jan 19 05:42:35 AndreYonadam: Found this http://stackoverflow.com/questions/3821539/decimal-separator-comma-with-numberdecimal-inputtype-in-edittext Jan 19 05:43:12 Someone did comment on the solution there though and note that "be aware that it lets a text like "24,22.55" to get through" Jan 19 05:43:29 yiati: Yeah I saw that. I'm going to try to test it without the format to check for all exceptions Jan 19 05:45:35 Woo! Method references, http://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html Jan 19 05:45:46 Introduced in Java 8 Jan 19 05:46:18 Basically chains the parameters from one method to another if you aren't doing anything else with them Jan 19 05:46:36 in the first method Jan 19 05:51:44 yiati: Managed to recreate it the problem without a inputtype Jan 19 05:57:40 AndreYonadam: Cool, yeah it sucks that it cannot be a requirement to fully support it Jan 19 05:57:59 that it is not* Jan 19 06:01:29 Guys help, after trying out android 5.0.1 dev with new ADT 24.0.x it now creates two projects by default when I want to create one on eclipse Jan 19 06:14:23 the multiple radiogroups iterates checkedId over 30 Jan 19 06:14:46 each of radio groups contains 5 radio buttons, Jan 19 06:15:36 and the 1st button of 1st section is clicked, the 31st button of 7th section button is clicked automatically Jan 19 06:15:43 why ? Jan 19 06:15:53 i don't know the reason. Jan 19 06:16:11 i spend a lot of time to find the solution Jan 19 06:16:27 how can i solve them? Jan 19 06:17:44 I don't understand your question Jan 19 06:21:06 ylati: 5 radio button is in the each of 20 radiogroup Jan 19 06:21:30 then, there are 100 radio buttons Jan 19 06:21:30 k Jan 19 06:21:51 but, the checkedId of radiobutton iterates over 30. Jan 19 06:22:13 it means, 1st radiobutton is checked, then the 31st radiobutton is checked too. Jan 19 06:22:25 it's not right behaviour Jan 19 06:22:49 the group of radiobuttons is seperated. Jan 19 06:23:09 What does "iterates over 30" mean? Jan 19 06:23:50 Oh you are saying that the index is always off by +30? Jan 19 06:24:02 no no Jan 19 06:24:07 index is iterate over 30 Jan 19 06:24:34 the index of 1st radio button is 1, but also index of 31st radio button is 1 too. Jan 19 06:24:47 I have a custom view that in xml takes simple integer as value, how can i add int type as xml resource? Jan 19 06:24:57 they have same checkedId. Jan 19 06:25:21 and the container is recylerview Jan 19 06:25:44 recycler view adds the views dynamically. Jan 19 06:25:51 lasserix_: http://stackoverflow.com/questions/7608464/android-custom-ui-with-custom-attributes Jan 19 06:36:51 Hello, is it possible to run a Runnable explictly on UI thread? I search for something like Activity.Invoke(runnable) like it's in .NET. I know I can use AsyncTask but it's overkill for simple view updating Jan 19 06:37:20 Activity.runOnUiThread Jan 19 06:37:30 or create a Handler with Looper.getMainLooper() and post to it Jan 19 06:38:03 Thank you Jan 19 06:50:57 I have android:noHistory="true" in Manifest for a particular activity - And I'm still able to get back to it by back button. Is there's something else to be done to prevent it? Docs don't say anything Jan 19 06:55:01 Interesting: https://code.google.com/p/android/issues/detail?id=2626 Jan 19 07:04:53 I'm trying to get adb to recognize my nexus 7 that's plugged into my mac, but I can't get the fingerprint confirmation to show up on the device. I've tried removing the adbkey{,.pub}, restarting the adb server, unplugging it and plugging it back in, restarting the device, but nothing seems to work... what can I do? I have the developer options (and USB debugging) enabled... Jan 19 07:08:42 double value = Double.parseDouble("1,234".replaceAll(",", ".")); Jan 19 07:08:49 That's the fix that works. Jan 19 07:08:56 Replaces , regardless Jan 19 07:11:49 The problem is multiple ","s Jan 19 07:12:13 But I don't know if I should handle that. shouldn't happen Jan 19 07:12:42 there are countries where you may write 1.000,12 Jan 19 07:12:50 For real? Jan 19 07:12:55 yup Jan 19 07:13:52 Why the comma later? Jan 19 07:14:06 Omg Jan 19 07:14:09 lol Jan 19 07:14:11 you may find last index of , or . and correct it if it's ',' and then remove the rest ,. Jan 19 07:17:30 afl_ext: Maybe I should just use on textchange and convert the first "," to a decimal Jan 19 07:18:01 own parser is more universal Jan 19 07:18:07 are there any good books if I'm just getting started with android dev? Jan 19 07:22:40 afl_ext: Yeah the way of finding the index is a good way to do it. I might take that approach because I can't seem to figure out a way to not allow them to use ","s at all Jan 19 07:38:05 Directly using paypal for users to "tip" is against the developer liscence? Jan 19 07:39:58 Does your country allows for something like that when not doing registered business and paying taxes from it? Jan 19 07:40:40 how to get all children of recycler view ? Jan 19 07:44:50 lasserix_: yes Jan 19 07:51:46 JakeWharton: but using in-app biling to do tips is legal? Jan 19 07:51:53 probably Jan 19 07:54:15 k Jan 19 07:54:17 thanks Jan 19 08:01:01 this has to be doable - the nordic semi app can reconnect to a ble device no problem, but if i do it as docs described first connection is ok, but reconnection takes anywhere from 5-20 minutes Jan 19 08:01:34 i wonder if i should dispose of the client instead of reusing hmm Jan 19 08:03:47 capella did the newest FF put a search widget on my lock screen ? Jan 19 08:04:04 Mobile? yah - we're tinkering Jan 19 08:04:06 on the bottom, slide up, magnifying glass - then i see a firefox logo Jan 19 08:04:10 yep Jan 19 08:04:12 how the fuck do i get rid of that ? Jan 19 08:04:15 dumbasses Jan 19 08:04:18 hey there lads Jan 19 08:04:22 Heh - build wo it Jan 19 08:04:47 is there any wizzard guy who knows how to get deletec dcim back from internal memory :| Jan 19 08:05:04 g00s: I have a patch in my queue to remove it also ... Jan 19 08:05:06 I tried everything, including creating .raw and vhd from internal memory using cygwin and netcat Jan 19 08:05:16 capella i'll just uninstall it Jan 19 08:05:20 * capella trying to remember if we preff'ed it off somehow Jan 19 08:05:30 i didn't see anything Jan 19 08:06:00 yuka: now would be a good time to learn about "backups" :( Jan 19 08:06:11 Leeds I know mate :\ I usually alway do it Jan 19 08:06:16 g00s: Is that on the normal "release" version? Jan 19 08:06:21 yeah Jan 19 08:06:25 but last time I made couple of work photos which accidently got deleted on same day :) Jan 19 08:06:42 Not sure you can uninstall w/o uninstalling FF itself Jan 19 08:06:59 capella did they get money from yahoo to do that heh Jan 19 08:07:11 well thats the idea, uninstall ff Jan 19 08:07:11 I want to add video calling and audio calling facility in my android app, how is that possible? Jan 19 08:07:19 Yah, yahoo's moz's new patriarchs Jan 19 08:07:25 Leeds yday I tried till 2am to get the adb and cygwin and stuff to actually create .raw file from internal dev block and then mount it in disk managment Jan 19 08:07:36 caus new damn android won't mount as mass storage anymore Jan 19 08:07:53 capella sweet, uninstall fixed it :D Jan 19 08:08:26 Uninstall just the search thingy? Jan 19 08:08:32 uninstall ff Jan 19 08:08:38 ouch Jan 19 08:08:49 thats what I was afraid of Jan 19 08:15:00 if anybody gets me my dcim from internal memory back :) I pay mad $$$ Jan 19 08:15:32 g00s: what's a good short varName for the opposite of |emptyRect|? ... actualRect? nonNullRect? Jan 19 08:15:56 theRect? Jan 19 08:16:17 filledRect Jan 19 08:16:19 ? Jan 19 08:16:22 ugh :D Jan 19 08:17:15 dunno Jan 19 08:17:33 yuka: if it's really worth serious money, there are places that do forensic-style data recovery... Jan 19 08:18:16 g00s: I just saw something that made my throw up a little in my own mouth Jan 19 08:18:29 http://redd.it/2skwgu Jan 19 08:18:33 Leeds you think it would be possible to get back? Because I ran recovery on VHD made out of blocks from phone internal memory, and ran all sorts of recovery tools, which return me EVERYTHING but the dcim folder Jan 19 08:18:49 seems to me that the delete from camera does some deep delete shit like replace data with 0 Jan 19 08:19:08 yuka: I don't know... more likely you're just unlucky and it's been overwritten, I guess Jan 19 08:19:34 Leeds but reading xda topic on this everybody says only DCIM is missing would be abit coiencedence Jan 19 08:19:44 or is it possible that dcim gets stored on some weird block? Jan 19 08:20:51 Hi, I am trying out the mapView inside my fragment. The mapView docs say its onCreate must be called from the parent fragment, but it is always null, after a rotation for example. The mapView is loaded from XML later, in onCreateView. Jan 19 08:20:52 thepoosh i thought she said "The runtime is an essential part of a Dead language" Jan 19 08:21:02 just wait Jan 19 08:21:08 what is required to allow adm to go into /data on a physical device? Jan 19 08:21:21 in the file explorer tab Jan 19 08:21:31 PhlowHome: root access Jan 19 08:21:59 I have to root the phone? Jan 19 08:22:07 thepoosh ""Gallileo and his great descendant: inspector gadget" haha Jan 19 08:22:08 or just restart adb server as root? Jan 19 08:22:12 Never mind. Jan 19 08:22:17 LOLLL Jan 19 08:22:24 g00s: I have another one for you Jan 19 08:22:28 https://www.safaribooksonline.com/search/?q=persistent+XSS+Attack Jan 19 08:22:37 noo - my stomach hurts lol Jan 19 08:25:32 Odaym a few quick ble questions for you ! Jan 19 08:25:36 * g00s pounced Jan 19 08:26:34 Odaym soooo. first time i connect to this ble device with connectGatt ( autoConnect = false ) things are great. then i disconnect, and try to reconnect and it takes forever. do you have any idea ? Jan 19 08:28:19 use Google's sample BLE project to test this connectivity Jan 19 08:28:42 if that app behaves that way as well, there's something wrong with the device and how its broadcasting itself Jan 19 08:28:59 cause connect/disconnect are both instantaneous here Jan 19 08:29:32 i did have that sample app but found it buggy and assumed it was the stack, oh well, i'll try it again Jan 19 08:29:50 nah the app is very good Jan 19 08:29:55 why buggy, where? Jan 19 08:30:09 Odaym did you see this, and have to do anything ? http://stackoverflow.com/questions/20069507/solved-gatt-callback-fails-to-register Jan 19 08:30:13 sometimes it doesnt show the characteristics of the device, but that is because of the state of BLE on Android, sometimes when that happens BLE needs restart Jan 19 08:30:50 i wonder if that got fixed, or do i still have to do things on the main thread for samsung devices ? Jan 19 08:31:00 yes I solved that by deducing it, the connect needs to be on a Handler if its S4 Jan 19 08:31:28 sendEmptyMessage(CONNECT_BLE); Jan 19 08:31:33 the handler will call the connect Jan 19 08:31:46 allright Jan 19 08:31:58 and you only connected to one device at a time right ? Jan 19 08:32:09 yea Jan 19 08:32:29 that sample app doesn't work well with my sample CC2541 or nRF51822 thats why i didn't bother Jan 19 08:33:38 should work with nRF, we use nRF Jan 19 08:33:55 even Nordic have a sample app for you to check these things and send bytes to the device Jan 19 08:34:05 yeah i am using it. works fine Jan 19 08:34:21 but when i do things like the sample app, that reconnect doesn't work well Jan 19 08:34:29 everything else is fine Jan 19 08:34:43 Odaym did you see this ? https://code.google.com/p/android/issues/detail?id=81130 Jan 19 08:34:55 use reflection to clear the clache ? Jan 19 08:34:59 *cache Jan 19 08:37:07 i also got bitten by disconnect() being able to cancel a pending connect on 4.4, but /not/ 4.3 ! Jan 19 08:44:12 never saw the clear cache issue, but there is a method that's overridden from the boilerplate code that has a comment saying "if already connected to this device previously, etc." Jan 19 08:44:16 wich I never looked into :\ Jan 19 08:45:51 i just tried the sample, it has the same reconnect issue Jan 19 08:46:24 the nRF master control panel works though. so there has to be a hack Jan 19 08:46:55 dont put too much hope on the master control panel though, they don't give the source Jan 19 08:47:04 yeah bummer Jan 19 08:47:08 but yea it's good to see that one of them can do it and the other can't Jan 19 08:48:22 Odaym another great bug - if you connect to two devices back to back, onServicesDiscovered can go to the wrong BluettoothGattCallbacks Jan 19 08:48:42 yes Jan 19 08:48:53 that I see Jan 19 08:48:58 and always ignore Jan 19 08:49:03 thats retarded :| Jan 19 08:49:18 i mean, the QA on this stuff Jan 19 08:49:19 the state of development here is that we need to keep going faster...while things behind me sometimes are not 100% done Jan 19 08:49:35 which is really bad, I wouldn't do it like this at my company Jan 19 08:52:55 so, verizon has my htc one m8 locked down in a way that the htcdev unlocker doesn't work... Jan 19 08:54:03 PhlowHome: that's why you shouldn't got with a CDMA provider :) Jan 19 08:54:21 PhlowHome: before you continue, have you read the channel topic? Jan 19 08:56:19 ah, missed it, too long Jan 19 08:59:28 Odaym cool beans ! i got it working Jan 19 08:59:40 how Jan 19 09:00:12 i dispose of the bluetoothgattclient on disconnect, and just recreate a new one with connectGatt() Jan 19 09:00:31 using .connect() on the prevoius one did some passive connection Jan 19 09:00:38 which took much longer Jan 19 09:00:45 great Jan 19 09:01:17 now what i have to determine is, whether i need to connect to multiple devices one at a time Jan 19 09:01:39 like, have these connect operations in a queue Jan 19 09:02:16 my app has to connect to bl and rfcomm devices simultaneously. pita :) Jan 19 09:02:24 *ble and rfcomm Jan 19 09:03:45 what's it do Jan 19 09:04:24 i have to talk to multiple weather devices Jan 19 09:04:52 like a home solution? Jan 19 09:05:11 yeah Jan 19 09:07:53 Does anybody here use the Ion library by koush? Jan 19 09:08:06 Ion Storm? Romero's company? Jan 19 09:08:12 lolIknowsomethingyoudon't Jan 19 09:08:21 https://github.com/koush/ion Jan 19 09:08:39 i'm trying to do something simple....set multiple headers Jan 19 09:11:54 android bugtracker got spammed again Jan 19 09:12:29 :S Jan 19 09:13:25 retards Jan 19 09:13:44 MartialLaw: https://github.com/koush/ion/blob/master/ion/src/com/koushikdutta/ion/HeadersCallback.java Jan 19 09:13:55 this looks like a good place to start looking Jan 19 09:20:06 bankai_jp 'avalanche dog in training' http://imgur.com/mjVq7S1 Jan 19 09:20:38 thepoosh: I figured it out...sorry. thanks tho Jan 19 09:21:04 MartialLaw: was i correct in my suspicion? Jan 19 09:26:03 well i didn't need the callback, simpler then that. i should really look more before i ask you guys Jan 19 09:26:06 lol ;) Jan 19 09:29:27 <_genuser_> hey guys. is reading a file as byte array by setting up a while loop till eof going to be really slow? Jan 19 09:30:14 <_genuser_> or should I do more of a read X bytes where X can be length of the file? Jan 19 09:30:14 try it Jan 19 09:30:24 yaaaaaaaaaaa? Jan 19 09:30:57 <_genuser_> yeah, I was going to write a couple of functions and do A/B with both approaches. but I thought to ask in case someone has a better suggestion. Jan 19 09:32:01 that might be better suited in channel ##java Jan 19 09:32:44 <_genuser_> since it will be on my android, I think android's jre implementation might influence the output. Jan 19 09:33:04 <_genuser_> I'm writing the two functions now to do A/B. Jan 19 09:35:15 JakeWharton which bugsnag plan / license are you using for your open source app ? Jan 19 09:41:51 _genuser_, as long as you use BufferedReader and read in a reasonably sized chunks (e.g. 4 or 8KB) you're just fine Jan 19 09:45:11 <_genuser_> Mavrik: hmmm, I was trying RandomAccessFile f=new RandomAccessFile(file, "r"); byte[] data = new byte[f.length()]; f.readFully(data); Jan 19 09:49:46 <_genuser_> Mavrik: I see bufferedreader in the documentation. let me see how to read byte[] from it. Jan 19 09:54:36 <_genuser_> hmm seems like bufferedreader doesn't work for reading byte[] where data is binary (images, etc.) Jan 19 09:54:53 In AS I miss how Eclipse used to expand a window by double clicking, say, LogCat. Jan 19 09:55:31 <_genuser_> ah, BufferedInputStream. Jan 19 10:07:11 g00s: lol reported a possible bug in AS only to find out not the best time to report the issue. Jan 19 10:11:51 <_genuser_> hmm, I just realized java doesn't do arrays indexes bigger than ints. :) Jan 19 10:13:25 <_genuser_> this project is really teaching me tons of crap. :) Jan 19 10:16:25 Can I completely clear activity back stack so "back" will just quit? Jan 19 10:19:49 <_genuser_> afl_ext: you could add android:noHistory="true" to activities you don't want in the back stack. Jan 19 10:20:13 or bring the top level activity up Jan 19 10:20:15 or create a new task Jan 19 10:20:55 <_genuser_> Mavrik: you got me coding on the path of bufferinputstream and bufferedoutput stream. :) i've finished coding those. I'll probably throw those function at a 100 pictures and see how they behave. Jan 19 10:22:12 _genuser_ - it doesnt work at all Jan 19 10:23:24 <_genuser_> errr, then what he said Jan 19 10:27:08 _genuser_ really, it just doesnt changes anything Jan 19 10:27:23 I also tried to set intent flags like NO_HISTORY and CLEAR_TOP Jan 19 10:27:32 and nothing happens Jan 19 10:27:44 I just press back and i'm again on loading screen Jan 19 10:28:57 I even call .finish() when loadingscreen should disappear and no effect Jan 19 10:29:02 afl_ext, is there a reason why you just don't finish(); the loading screen? Jan 19 10:29:14 if finish doesn't clear it, you have another issue. Jan 19 10:29:28 e.g. loading screen restarting Jan 19 10:29:39 Okay Jan 19 10:29:48 thats clear enough, thank you Jan 19 10:34:12 hi all Jan 19 10:35:13 im facing the problem that i want to disable android beam in my app to make sure it only interacts with nfc tags Jan 19 10:35:35 i was using enableForegroundDispatch before and now saw there is the enableReaderMode method. how are both connected? Jan 19 10:36:01 can i use both? if i do will i receive an tag discovered intent as well as get the callback called? Jan 19 10:40:55 <_genuser_> yuck, merging many different projects into one is pretty messy Jan 19 11:00:59 Which play-services module is needed for gcm? Jan 19 11:03:41 cezium, see http://developer.android.com/google/play-services/setup.html Jan 19 11:04:28 SimonVT: thank you Jan 19 11:16:29 hi all, is it posible to generate TableLayouts in a for loop ? Jan 19 11:16:46 and when created add to ListView ? Jan 19 11:17:10 sure Jan 19 11:17:34 well, what's the best way to generate that TableLayout Jan 19 11:17:45 depends on the itterator Jan 19 11:18:23 loop over the iterator, create new views and add them to the layout Jan 19 11:18:49 Danijoo Jan 19 11:18:53 this is what i got now Jan 19 11:18:53 http://hastebin.com/mehibiseho.avrasm Jan 19 11:19:34 looks valid Jan 19 11:19:43 hm it doesn't show up on my screen :/ Jan 19 11:20:07 maybe because you dont add table to v. Jan 19 11:20:27 if v is the layout Jan 19 11:23:03 danijoo, http://hastebin.com/uqejokobil.avrasm Jan 19 11:23:19 i forgot paste the line which i find from layout xml Jan 19 11:23:57 what does createTv? Jan 19 11:24:16 it creates a textview and returns it :) Jan 19 11:24:18 sec Jan 19 11:24:38 http://hastebin.com/miquluxaxu.avrasm Jan 19 11:27:27 danijoo, i guess i found my problem :) Jan 19 11:27:38 okay :) Jan 19 11:27:39 campus_list.size() is 0 i guess :) Jan 19 11:27:44 i'll check it out! Jan 19 11:32:05 yello, is it possible ot get your app's google play link before submitting it to the store? Jan 19 11:32:08 from the dev portal? Jan 19 11:34:38 g00s - watch for about:resources... Jan 19 11:36:37 "which tabs and addons are eating time, cpu, and memory" Jan 19 11:38:18 Bantalon, yes Jan 19 11:38:49 Bantalon, its https://play.google.com/store/apps/details?id=YOUR.PACKAGE.NAME Jan 19 11:38:53 is android studio replacing the eclipse sdk? Jan 19 11:39:12 the adt bundle i used to get? Jan 19 11:39:39 danijoo: ah thanks! :) Jan 19 11:39:43 how cna I link to the review page of the app directly? Jan 19 11:39:44 MajorTennis, in a long term maybe Jan 19 11:39:47 or is that not possible? Jan 19 11:40:30 danijoo, are they co existing at the moment? Jan 19 11:40:31 thats the page where the review button is. or what do you mean Jan 19 11:40:58 MajorTennis, you can use both. and you will be able to use both in the future Jan 19 11:41:12 but in the future, android studio will be recommended Jan 19 11:41:44 danijoo: like iOS, where you reach the review page directly Jan 19 11:41:49 or is this as close to the review page you can get? Jan 19 11:41:54 maybe it's a popup on android? Jan 19 11:41:59 Bantalon, i dont know iOS Jan 19 11:42:18 danijoo: can you get "closer" to the actual review process than this page on android? Jan 19 11:42:24 review feature* Jan 19 11:42:41 or is this the best link for the review page? Jan 19 11:42:47 i'll test the water Jan 19 11:43:02 Bantalon, do you want to make something like a dialog where user can directly rate without leaving the app? Jan 19 11:43:23 danijoo: yeah, eventualy Jan 19 11:43:35 for now i'm just going with a quick webpopup that opens chrome and shows the best page for the review to be done in Jan 19 11:44:00 Bantalon, then thats the closest you can get Jan 19 11:44:10 danijoo: alright, thanks a lot Jan 19 11:44:11 (at least thats what i know) Jan 19 11:44:23 how do i verify in app purchases locally? Jan 19 11:44:52 i suppose just store a setting after the app is purchased? Jan 19 11:45:36 ultra-, check if on startup Jan 19 11:46:24 if you do a variable and dont check from time on time, users can scam you Jan 19 11:48:56 yeah, it’ll always query inventory and update the setting when it’s online, but if you try to do anything with inventory when the query fails (because offline), it’ll bomb Jan 19 11:49:21 ultra-, nope Jan 19 11:49:32 google play services cached this value from you Jan 19 11:49:34 for* Jan 19 11:49:53 ok, do i access that through the IabHelper? Jan 19 11:49:57 if the device has no internet, you will still receive a "purchased" if it wwas purchased once Jan 19 11:51:06 well i’m using IabHelper.queryInventoryAsync… if the device is offline, and i try to do inventory.hasPurchase, I get a NPE Jan 19 11:52:00 "Because the Google Play client now caches In-app Billing information locally on the device, you can use the Version 3 API to query for this information more frequently, for example through a getPurchases call. Unlike with previous versions of the API, many Version 3 API calls will be serviced through cache lookups instead of through a network connection to Google Play, which significantly speeds up the API's response time." Jan 19 11:57:57 ok, it looks like it even caches details about price Jan 19 12:02:50 Danijoo, it still doesn't show up :) Jan 19 12:02:58 very weird :/ Jan 19 12:12:26 When I try to create class like TestClass.java in AS via Right Click>New>Java Class it creates a new folder TestClass and java.java class file in it. Jan 19 12:14:40 If you're literally typing in "TestClass.java", then that's as expected.. Don't type the file extension Jan 19 12:16:35 . separates package and class name.. So it's creating the class "java" in the package "TestClass". Jan 19 12:22:09 SimonVT: dang. Thanks. Jan 19 12:26:44 hi Jan 19 12:28:31 i have a Asynctask and i need hide some items in menu after my asynctask it is finish, how i can do it? Jan 19 12:28:58 t0th_-_, onPostExecute Jan 19 12:29:06 i put on onCreateOptionsMenu mMenu = menu; Jan 19 12:29:27 in mu onPostExecute mMenu is null Jan 19 12:29:41 i cant do findItem in this mMenu because it is null Jan 19 12:31:59 doing something wrong then.. Jan 19 12:33:16 bah Jan 19 12:33:56 and the first step to get help is posting code/stacktraces instead of asking "how to do this and that" :) Jan 19 12:34:46 ok Jan 19 12:35:06 the stacktrace is nullpointer in mItem.findItem Jan 19 12:35:25 thanks Jan 19 12:37:28 http://pastebin.com/BAZSmg2j danijoo Jan 19 12:37:30 Ooh, you can make IntelliJ/AS accept the Code Completion entry with '.' or whatever. Jan 19 12:39:00 t0th_-_, full stacktrace and full activity + async task Jan 19 12:47:13 Hmm, in Android Studio, it seems that the only way to create a Java module is to select "Java Library" in the "New Module" dialog. Is that right? Jan 19 12:47:26 I guess they amount to the same thing, but I'm not sure. Jan 19 12:50:12 Okay, I guess it would have to be a Java library, in any case. No other way of interfacing with Android stuff. Jan 19 12:52:37 danijoo: Jan 19 12:52:56 thats how they call me Jan 19 12:52:57 working, i use onPrepareOptionsMenu and mMenu is not null Jan 19 12:53:04 thanks Jan 19 12:53:22 in onPrepareOptionsMenu i can manipulate the menu after my onpostexecute Jan 19 12:54:14 hi guys, i am drawing a circle where i want to fill it verically with two different colors, to indicate progress. I think the easiest way to do this is with a bitmapshader using a bitmap with 100pixels of the first color and then 100pixels of the next, and just move the clipping area. Is this a good approch or do you have a better way to solve it? Jan 19 12:54:48 Can't you define custom drawables for ProgressBars? Jan 19 12:55:22 TacticalJoke, yes, you can, but this is so far from a progressbar that i dont think it would be easier Jan 19 12:55:24 TacticalJoke, you can Jan 19 12:55:37 Ah, okay. Jan 19 12:56:29 sounds like a good approach asperon . another one would be a lot of drawables for the animation Jan 19 12:57:26 danijoo, great, ill give it ago then, just wanted to make sure that id wasn't missing any easier way (like filling with a two color strict gradient or so ) Jan 19 13:16:55 Dutch people here ? Jan 19 13:17:57 you can try it in german if you want ;) I might also understand some of your dutch Jan 19 13:18:30 Well, i also can explain in english haha, but it would be easier if i can say it in dutch :p Jan 19 13:19:12 I think it's an English-language channel. Correct me if I'm wrong. Jan 19 13:19:24 yep. Jan 19 13:32:04 Can someone confirm that the BN Nook HD has access to the appstore? Or did the user sideload my app? Jan 19 13:34:48 Syzygy, http://www.barnesandnoble.com/p/samsung-galaxy-tab-4-nook-7-inch-barnes-noble/1119732448 Jan 19 13:35:20 I can see a play store icon on that pic :) Jan 19 13:35:23 well, that screenshot seems to show the play store icon. Jan 19 13:35:30 yep Jan 19 13:35:42 I feel like you can't trust some product photos though Jan 19 13:35:56 but it even says comes with google play at the bottom Jan 19 13:35:57 thanks Jan 19 13:35:58 why do you expect it to not have gp? Jan 19 13:36:50 because many of the obscure phones that produce crashes that no other phones have require sideloading Jan 19 13:37:08 and from what i googled the development process for nook apps seems to be different Jan 19 13:50:09 i have a textview next to an edittext and is centered vertically to that edittext.. the edittext's maxLines is 6 so it grows...while it is growing I want to textview to actually be anchored at the bottom as if it were align_bottom to the Edittext..but ONLY when the edittext view starts to grow... is this possible? Jan 19 13:54:26 can I do something like onResume(){if(someView = null) this.onCreate();} so basically, if something in onResume is null, reinitialize the whole activity via onCreate Jan 19 13:54:58 Syzygy, never call systems callback methods by hand Jan 19 13:55:01 never, ever Jan 19 13:55:27 well, I'm just saying that the activity should be recreated if something is null Jan 19 13:55:29 MartialLaw, Relative layout Jan 19 13:56:03 Syzygy, Why dont you put the corresponding code in a seperate method and call that instead Jan 19 13:56:11 Syzygy: No, you don't know what happens in super classes Jan 19 13:57:22 I guess that's one way of doing it Jan 19 13:57:53 Seems like a bad approach tho.. Jan 19 13:58:36 Sounds like you suddenly don't know what state you're in, and just give up and re-create Jan 19 13:58:41 Also, you could just call recreate() Jan 19 13:58:52 why do you want to recreate the whole actiity if something is null? just initialize this thing Jan 19 13:59:20 But yeah, there's probably some underlying issue you should fix instead Jan 19 13:59:36 what you want to do sounds like a really weird way to work arround instance states and configuration changes Jan 19 14:02:22 danijoo, because some things depend on it. and this happens on 2 devices, the BN Nook HD and the Caterpillar B15. Jan 19 14:14:18 ?? Jan 19 14:14:28 ! Jan 19 14:14:37 !!!! Jan 19 14:14:42 indeed Jan 19 14:16:08 So, in Android Studio, if I delete a public method from one of my classes (and thereby create a build error), I have to manually build the project to see the error. In Eclipse, as soon as I saved I was notified of the error. Hmm. Jan 19 14:17:01 are yo usure? Jan 19 14:17:06 *you sure Jan 19 14:17:49 In eclipse, it automatically build, so you could see the error Jan 19 14:18:05 is there no "build automatically" setting? Jan 19 14:18:06 Anyway, refactor > safe delete Jan 19 14:18:12 oh cool! Jan 19 14:18:24 wait, is safe delete deleting everywhere else? Jan 19 14:18:29 or is it really safe? Jan 19 14:18:48 Leeds: here? Jan 19 14:19:02 Is there a way to get Android Studio to build automatically? (Or is that a crazy idea?) I like the builder telling me instantly when I'm making mistakes. Jan 19 14:19:11 It's a crazy idea Jan 19 14:19:39 :S Jan 19 14:20:34 Okay, I'm reading this: http://stackoverflow.com/questions/20480822/android-studio-auto-build-like-eclipse Jan 19 14:20:45 Anyway, the editor tells you if a method if unused Jan 19 14:20:48 If not, find usages Jan 19 14:21:42 That "find usage" thing is handy. As soon as I switched from Eclipse to Android Studio, Android Studio notified me that I had two unused (public) methods. Jan 19 14:22:29 Learn the various refactor tools in intellij Jan 19 14:22:36 Auto build is not needed at all :) Jan 19 14:22:46 K, thanks. Jan 19 14:22:52 I guess it's mainly a mindset change. :) Jan 19 14:22:59 Hello. Jan 19 14:23:02 What is the easiest way to make an android app coming from an HTML/javascript background? Jan 19 14:23:27 start with an idea Jan 19 14:24:43 Rashad: The "official" way to build an Android app is to use Java. Are you disinclined to go that route? Jan 19 14:24:55 Actually, I could've removed those quotes. Jan 19 14:25:30 I would prefer if there was a way to build an app with just HTML and javascript Jan 19 14:26:06 did your searching show you no options? i know of one off hand that uses those Jan 19 14:26:34 I found something called Sencha Touch. Jan 19 14:26:40 Anyone ever tried that? Jan 19 14:27:57 PhoneGap seems to be popular, but I've never tried anything like it. Jan 19 14:30:21 Thanks TacticalJoke. Jan 19 14:49:08 Aloah together Jan 19 14:50:17 Is there a watch out list for deelopers who want to make their app Lollipop compatible? Jan 19 14:53:52 There's this channel and /r/androiddev. Not sure whether those qualify as "watch out lists". :) Jan 19 14:55:24 A small UI question: How would you approach the following: I need an area where i randomly place imageviews which always should have a certain margin to each other and which should stay in a predefined "area". E.g. in this picture the slashed square should be spared.. http://sketchbin.com/?id=201416 Jan 19 14:57:00 Sorry, I added to your drawing. lol Jan 19 14:57:04 Didn't realise it was mutable. Jan 19 14:57:15 Okay, I clicked Undo. Jan 19 14:57:49 Hi guys I have a noobie question Jan 19 14:59:20 I have an imageview with an image inside of it. The image view takes up the entire screen. How can I get the image, within the image view, NOT to to stretch to fit in any way, aswell as start at x 0 y0 of the image view Jan 19 15:00:32 I see there is a "scaltetype" attribute with a FITSTART setting Jan 19 15:02:43 I think I answered my own quesiton Jan 19 15:02:47 thanks mantas Jan 19 15:02:48 yw Jan 19 15:02:58 wait, scaling Jan 19 15:03:32 how can I prevent an image within an image view from scaling? Jan 19 15:04:43 Hmm, I'm getting "Call requires API level 9 (current min is 1): java.io.IOException#IOException" in Android Studio (my AndroidManifest.xml doesn't declare minSdkVersion because it's in my Gradle script, which is the default configuration for a new project in 1.1 Preview). I guess this is a bug? Jan 19 15:06:04 Hmm, this is happening only in my Java module. Jan 19 15:08:49 That's because you don't have minapi there. Jan 19 15:09:01 Annotate your methods with @TargetApi, it's good practice Jan 19 15:10:03 seems like pivotal guys want to push groovy on android Jan 19 15:10:04 Even for java.io.IOException? I'd end up with annotations all over the place. Jan 19 15:10:25 Also stuff like String.isEmpty. Jan 19 15:11:03 TacticalJoke, "all over the place"? Jan 19 15:11:16 you'll end up with annotations on your methods clearly telling your library user which API level may be used. Jan 19 15:11:26 And the linter working properly when they'll include it. Jan 19 15:13:03 hi, how can i scroll ListView to show an item at top Jan 19 15:13:05 True. In this case I'm using a library only so that I can do JVM unit testing, but they're gonna support it in Android modules soon, so this is just a temporary measure. I guess I'll just ignore the lint warnings for now. Thanks. Jan 19 15:13:05 ? Jan 19 15:13:32 touch and swipe down Jan 19 15:13:33 :P Jan 19 15:14:19 devuser: You can use ListView.setSelection or something like ListView.smoothScrollToPosition. The latter doesn't seem to work if you have variable-height items, though. Jan 19 15:14:44 At least in my experience. Jan 19 15:14:44 i try setSelection and smoothScrollToPos Jan 19 15:14:56 but they don't work :( Jan 19 15:15:32 I know how to programmatically "Click" a listview item. Jan 19 15:15:33 What happened when you tried? Jan 19 15:15:51 that may not me in a "touchable" state Jan 19 15:15:56 be* Jan 19 15:27:56 Argggh android studio is like the worst thing ever Jan 19 15:28:12 Wai? Jan 19 15:28:43 first i couldn't create a project, now i can't change the directory for which projects are stored Jan 19 15:29:36 can i disable a checkbox but make it with the same style as enabled one? Jan 19 15:29:42 hi guys, whats wrong here "imgView.setImageDrawable(R.drawable.myimage);" Jan 19 15:29:45 ? Jan 19 15:29:46 When I go to create a new project, it suggests the same directory as I used last time. Jan 19 15:29:46 #Layer8Problems Jan 19 15:30:12 yoavst, I dont get what you want Jan 19 15:30:39 Checkbox. I need it ready only. But I want it to have the same selector as enabled Jan 19 15:30:56 if its read only, how can you select it. Jan 19 15:31:04 I don't need it to be selectable Jan 19 15:31:10 just to look like normal Jan 19 15:31:11 http://i.imgur.com/p0VcdO2.png Jan 19 15:31:15 not like that ^^ Jan 19 15:31:18 TacticalJoke, closing the application and restarting allowed it to work in both instances Jan 19 15:31:42 make it unclickable then Jan 19 15:31:56 danijoo: clickable="false"? Jan 19 15:31:59 just wasnt responding in the way it should in 2 instances Jan 19 15:32:12 Hmm, Android Studio is claiming that Activity.onSaveInstanceState (in the Android source) has a @NonNull parameter. It doesn't appear to, though. Weird. Jan 19 15:32:13 yoavst, think so. Jan 19 15:32:15 it was because there was whitespace in my initial directory Jan 19 15:32:29 It's complaining about my override not using @NonNull. Jan 19 15:33:00 TacticalJoke: It's perfectly fine to disable inspections :p Jan 19 15:33:12 danijoo: it is clickable even if clickable="false" Jan 19 15:33:26 yoavst, serious question? Jan 19 15:33:31 I'm not sure whether to use nullable annotations, though. Hmm. Jan 19 15:33:42 danijoo: I mean it change the state of checkbox Jan 19 15:33:53 it makes it *not clickable* Jan 19 15:33:58 nothing else Jan 19 15:34:26 but it still change the state, mean it is clickable Jan 19 15:34:38 ahhhh Jan 19 15:37:18 Once again: i want to realize a UI feature: several round imageViews are randomly placed in a pre defined area with margins between them. How would you realize that? http://sketchbin.com/?id=201416 Jan 19 15:45:28 pr0gi, generate voronoi cells and randomly place your images within them Jan 19 15:45:58 voronoi, ok let me see Jan 19 15:46:00 thanks Jan 19 15:47:47 that is not standard is it? i only see a grid Jan 19 15:48:39 afaik you would have to implement it yourself Jan 19 15:48:42 should look like this: http://wikid.eu/images/7/7b/Lv_wiki4.png Jan 19 15:48:48 then you can just fill the cells Jan 19 15:50:16 If one phone receives a notification via GCMINtentService.handleIntent() and the other one doesn't what could be the issue? Jan 19 15:50:18 are you serious? seems a bit complicated... Jan 19 15:50:35 Syzygy some people have a fear or irregular shaped holes. Jan 19 15:51:16 I'll take that as a sexual innuendo and ignore it. Jan 19 15:51:33 Can I upload my android app to the store for free? Jan 19 15:51:34 no there's a word for it , tryptophobia or something. Jan 19 15:51:39 its a real thing Jan 19 15:51:43 **dont google it* Jan 19 15:52:08 I assume the lotus seed think will turn up. I don't have that fear. Jan 19 15:52:14 also, voronoi cells aren't holes. Jan 19 15:52:15 yeah Jan 19 15:52:24 but when its photoshoped on humans.... Jan 19 15:52:27 2spooky4me Jan 19 15:53:01 Rashad, I believe it's a one time payment of 25$, but I'm not entirely sure. Jan 19 15:53:27 yeah u have to pay 25 dollar to do that Jan 19 15:53:33 Can I upload my android app to the store for free? <- no, 25$ fee Jan 19 15:53:36 1 time payment Jan 19 15:53:54 but once that's done you can upload any amount of apps Jan 19 15:54:12 even over 6 apps. Jan 19 15:54:18 6! Jan 19 15:54:28 currently you barely have 1 Jan 19 15:55:55 pr0gi, it's not that hard. just place some random dots, find the nearest neighboring dot and draw a line between them. Jan 19 15:56:18 just curious, why are you doing this? Jan 19 15:56:26 well i am sure i can recrate such a field Jan 19 15:56:28 learning some sort of geo algoythms? Jan 19 15:56:34 but then i dont have cells i can place something in Jan 19 15:57:03 i just want to have a UI where "bubbles" are placed radomly in a certain area... Jan 19 15:57:14 * mantas322 shivers. Jan 19 15:57:14 and lookng for the best way to do so Jan 19 15:57:22 triptophobia Jan 19 15:57:34 trypophobia* Jan 19 15:57:44 Do you guys use separate emails for the contact email for each app on google play store or use the same one? I'm thinking about email harvesting spam risks Jan 19 15:58:09 i thought thats rather a standard problem... so creating some voronoi cell construct seems a bit overkill :P Jan 19 15:59:27 any one here have got oneplue one ? Jan 19 16:03:10 i need an invite please Jan 19 16:03:24 you won't need one tomorrow Jan 19 16:04:53 t2mkn: you know that? Jan 19 16:05:19 no Jan 19 16:05:50 amazon is asking me for invite code Jan 19 16:06:00 some one invite me plz Jan 19 16:06:24 look at oneplus.net Jan 19 16:08:23 Hi. Jan 19 16:08:35 need an invite Jan 19 16:08:54 t2mkn: Please stop asking for invites in this channel Jan 19 16:10:39 is there a shortcut in android studio to create a test for a certain class? Jan 19 16:11:07 I've made a CustomView that inflates a layout.xml with a root FrameLayout and a TextView and ImageView as children. I add my CustomView directly from an Activity's layout.xml, look it up in code and set an OnClickListener on it. But it never gets called; only the CustomView's child Views receive the click. How do I make them pass the click directly down to their parent? Jan 19 16:11:32 shekibobo: Alt+Enter suggests it in some contexts (e.g., outside of a method). Jan 19 16:11:53 Actually, it seems to require being close to the first line of the class definition. Jan 19 16:12:47 close enough, thanks, TacticalJoke Jan 19 16:17:02 a question: accountManager.getAuthType(...)... would the callback somehow invoked when user clicks cancel? :s Jan 19 16:17:23 I've fixed it my letting the CustomView look up its child Views and add a OnClickListener on these that invokes CustomView.this.performClick() Jan 19 16:17:38 Doesn't seem like the best approach... Jan 19 16:45:25 what do you guys make of this? http://pastebin.com/YHj8kgvb error says its in line 187 here: http://pastebin.com/YHj8kgvb Jan 19 16:45:28 whoops Jan 19 16:45:40 here: https://github.com/neokree/MaterialNavigationDrawer/blob/master/MaterialNavigationDrawerModule/src/main/java/it/neokree/materialnavigationdrawer/MaterialNavigationDrawer.java Jan 19 16:54:14 hi, I have an out-of-memory problem with my app Jan 19 16:55:11 while loading bitmaps from resources, they turn out to be like 2,5 times bigger than the entire application itself, and then, every third run I got TWO instances of it for some reason (GC at work?) Jan 19 16:55:47 is there an online tool for testing regex stuff for java? Jan 19 16:56:27 i.e. test the results of "string".split("regex") Jan 19 17:06:24 I know this is a really general question Jan 19 17:06:32 But are nested IF statements bad practice Jan 19 17:07:02 that depends completely on how deeply you nest them, and whether what you're trying to achieve could be achieved otherwise Jan 19 17:07:34 Ok, im gonna try out what im doing with the nested if's, see how it runs Jan 19 17:07:48 and if I think theres a better way then Ill try to change it Jan 19 17:08:20 hey guys I need some advice here, I can't figure out how popular apps do this little task. What do you use to open a different launcher activity based on user's login, e.g. if he's logged out, open the login screen, else just go straight to the main activity? Jan 19 17:11:03 sonOfRa does this code look OK? or could be done a better way? http://pastie.org/9841016 Jan 19 17:11:23 narekb, they're not starting different activities. They decide in onCreate of the main activity what to do Jan 19 17:11:44 e.g. if you're not logged in, you might finish the launcher activity and start a login activity Jan 19 17:11:47 there might be something like EditText.isEmpty or something, that is semantically better. Otherwise, that looks okay Jan 19 17:11:50 so they define two layouts in the XML and just set one as GONE the other as VISIBLE? Jan 19 17:12:02 Thank you sonOfRa Jan 19 17:12:03 oh, like that Jan 19 17:12:07 thanks SimonVT Jan 19 17:14:34 sonOfRa I was thinking I could use a for loop and loop through these Elements Jan 19 17:14:42 Would that be a good idea? Or just keeping it simple is better? Jan 19 17:15:12 well, that depends on how many fields you have, and whether they all require the exact same validation Jan 19 17:16:48 Ah, thats a good point, the same type of validation part Jan 19 17:27:30 okay, so im pretty sure I'm doing something wrong here. I'm attempting to create a new AVD, using Android Studio's AVD Manager. I want to test my ap on a Tablet, instead of a the default nexus 7 phone emulator Jan 19 17:27:47 I've attempted several tutorials, and cant get a new virtual device to show up.... :/ Jan 19 17:39:05 okay i got it Jan 19 17:39:08 rookie mistake Jan 19 17:39:47 What happend? Jan 19 17:40:11 I was trying to figure out how to do something within Android Studio Jan 19 17:40:18 operator error Jan 19 17:40:20 couldnt figure out how to spawn a tablet AVD Jan 19 17:40:33 ooh its agentOrange, I rmemeber you from 4 years ago Jan 19 17:40:59 still doing android I see. Jan 19 17:41:05 good 4 you Jan 19 17:41:20 unfortunately :) Jan 19 17:41:28 I do everything Jan 19 17:41:44 I took a 3-4 year hiatus from Android dev Jan 19 17:41:46 now im back Jan 19 17:41:52 making a crazy app. Jan 19 17:41:53 whered you go Jan 19 17:42:00 moved jobs Jan 19 17:42:07 ah, good move or bad move/ Jan 19 17:42:08 ?* Jan 19 17:42:22 good as far as money, bad as far as commute. Jan 19 17:42:26 ive gota couple android projects going on, but Im doing mostly iOS and Qt these days Jan 19 17:42:43 Should I assume inputType isn't always going to work? Jan 19 17:43:24 yikes this emulator is making my win7 SLOW Jan 19 17:43:56 are you using the intel emulator? Jan 19 17:44:37 no clue.. Jan 19 17:49:03 damn wtf Jan 19 17:49:07 First time I get "java.lang.StackOverflowError" Jan 19 17:49:10 lol Jan 19 17:54:15 is any of you guys running a VNC server on your development phone? Jan 19 17:58:17 don't think it would really work Jan 19 17:58:37 I'm on Windows 8.1, and I can't seem to get ADB to recognize my phone, despite enabling debugging on my phone and installing the right driver. Any tips? Jan 19 18:01:46 buy a mac? :) Jan 19 18:02:32 Absolutely not Jan 19 18:02:37 Why? Jan 19 18:03:01 I like having a nonzero amount of money to my name Jan 19 18:03:08 good point Jan 19 18:03:11 Refurbished? Used? Jan 19 18:03:30 drose379: still not economical Jan 19 18:03:33 I don't need one right now Jan 19 18:03:58 BlueProtoman: What phone is it? Jan 19 18:04:34 marrrk: An LG VS890 4G Jan 19 18:05:33 I think there are some phones that just don't have drivers that work with ADB but I might be wrong. Jan 19 18:05:41 yep Jan 19 18:05:48 but LGs are usually fine Jan 19 18:06:13 maybe the stock driver wont work though. look for an adb driver Jan 19 18:08:31 Where can I find one? Also, what's this usb.ini? Jan 19 18:09:31 So getCheckedRaioButtonId says it returns an int Jan 19 18:09:37 And that int is my id Jan 19 18:10:13 but if my id is "thishere" and I want to compare it to something, I need to declare that an int too? Jan 19 18:11:00 ah, I could just convert that int ID to a string, then compare Jan 19 18:12:24 wat? Jan 19 18:12:39 Im getting the id of a XML element Jan 19 18:12:48 and I need to compare it to a string I have in my java Jan 19 18:12:57 hmmm bummer Jan 19 18:12:59 But I cant compare a string and an int Jan 19 18:13:07 So I need to change that int to a string, then compare Jan 19 18:13:09 Right? Jan 19 18:13:19 sure that just doesnt make sense to me Jan 19 18:13:25 What part? Jan 19 18:13:29 is the string an int? like "10" Jan 19 18:13:36 haha https://i.imgur.com/R3LZZkK.gif Jan 19 18:13:44 nah, the string is a string representation of an XML id Jan 19 18:13:49 checkBox Jan 19 18:13:56 right, its an integer encoded as a string Jan 19 18:14:12 or are you saying its the id label? Jan 19 18:14:23 hmm Jan 19 18:14:25 so Im saying Jan 19 18:14:29 if so you have something really strange with your design Jan 19 18:15:06 Im using getCheckedRadioButtonId to return the ID of a radio button that was selected, the id will be something like "neutralCheckBox" Jan 19 18:15:24 But that method returns the ID in int form, so I cant compare it to the string I have to compare it to Jan 19 18:15:30 so i have to change the id into a string first Jan 19 18:15:39 and how you gonna do that? Jan 19 18:15:53 my question is why you are using strings in the first place Jan 19 18:16:06 String.valueOf(int) Jan 19 18:16:17 ok, you are going to get "1243" or whatever Jan 19 18:16:37 then is there a way to compare my string to the ID Jan 19 18:16:51 not htat i know of, because nobody does that, because it makes no sense Jan 19 18:17:08 Im trying to make sure a radio button in a radio group has been selected Jan 19 18:17:18 why are you not just using the id? Jan 19 18:17:30 so to do that I have an array of all the possible IDs of the radioButtons Jan 19 18:17:45 and when the submit button is pushed I was getCheckedButtonRadioID Jan 19 18:18:19 then I was going to loop over each ID I have saved in the array, and check if any are equal to the one that was submitted, if none are, then a radio button was not pushed, and I set an error Jan 19 18:18:57 Is there a way to figure out what Class an intent was created with, either with the object itself, robolectric, or assertj? Jan 19 18:18:59 Why can't you do String.valueOf(newInt) too? Jan 19 18:19:22 marrk what part? Jan 19 18:19:27 so what you are saying is, instead of using the actual ID itself, you have copied the label of the id in text form, and every time you build you just hope that you copied the string correctly Jan 19 18:19:31 thats really really bad practice Jan 19 18:19:34 why are you not just using R.id.my_button? Jan 19 18:19:47 I forgot about the R class Jan 19 18:19:55 :) Jan 19 18:20:02 is R.id.myButton concidered an int? Jan 19 18:20:07 I don't understand anything now Jan 19 18:20:20 drose379: yes it's an int Jan 19 18:20:28 Ok, problem solved then Jan 19 18:20:29 I use String.valueOf for strings that are integers Jan 19 18:20:35 it works. Jan 19 18:20:43 I've got a product out there. Jan 19 18:20:48 what is it Jan 19 18:20:54 gman23: Why do you need to do this? Jan 19 18:20:54 Can't say Jan 19 18:20:56 haha oh boy Jan 19 18:21:00 this just got insane Jan 19 18:21:00 anyone used MaterialNavigationDrawer? Jan 19 18:21:04 cant say? Jan 19 18:21:07 you two work it out Jan 19 18:21:10 Why do people do things like that? Jan 19 18:21:18 Because they work for businesses Jan 19 18:21:20 agentOrange I think ive figureed it out Jan 19 18:21:32 and they'd rather not say. Jan 19 18:21:36 How can you be sure that whatever is in your String actually is an int? Jan 19 18:21:37 no need to change int to string, forgot to use R.id Jan 19 18:21:42 great Jan 19 18:21:52 is it still bad practice? Jan 19 18:21:52 marrrk: Because I know that's how I stored it in my DB Jan 19 18:22:02 why isn't it stored as a fucking int then? Jan 19 18:22:14 Because I'm getting it from the server as Json. Jan 19 18:22:16 Or Jan 19 18:22:19 as far as I know there is no mapping back to the id label from the id value, there might be but I doubt it because I cant imagine there is a reason for that Jan 19 18:22:22 Because I just want to display it Jan 19 18:22:29 agentOrange: not true Jan 19 18:23:13 gman23: Okay, yeah JSON might be an excuse. Jan 19 18:23:16 anyways, thanks for the help everyone Jan 19 18:23:21 what do you use that for? Jan 19 18:23:28 agentOrange: error messages Jan 19 18:23:34 oh ok, sure Jan 19 18:24:06 https://github.com/JakeWharton/butterknife/blob/42b385310bc034f086f325f2bf6b14c88cd9f4e9/butterknife/src/main/java/butterknife/ButterKnife.java#L136-L143 Jan 19 18:24:20 would I compare two ints by == or .equals? Jan 19 18:24:26 I know == is for reference? Jan 19 18:24:31 I should note that I haven't been following this problem you guys are talking about. I just saw someone say "Can't I use String.valueOf" and "that's really bad practice" Jan 19 18:24:34 so that doesnt sound right Jan 19 18:24:46 drose379: == is for value Jan 19 18:24:50 ints are value types Jan 19 18:24:51 gman23: he was using IDs by their labels as strings Jan 19 18:25:01 drose379: did you try with .equals? it wouldn't even work for non-primitives unless you box them Jan 19 18:25:12 Havent tried yet Jan 19 18:25:19 gman23: ignore them Jan 19 18:25:28 so I should use == to compare the int values? Jan 19 18:25:34 Okay Jan 19 18:26:25 drose379: You can use == for all the types that don't start with capital letters. I think you must be careful with floats and doubles, though. Jan 19 18:27:36 if I am importing projects from a local maven repo, via gradle, and they have dependencies, do I also need those in my local repo? Jan 19 18:27:47 and do I need to do anything special to declare them? Jan 19 18:27:56 Thank you marrrk Jan 19 18:28:53 drinfernoo: I don't think that they all have to be in your local repo. Jan 19 18:29:19 well, I don't have the ability to use a remote repo Jan 19 18:29:29 so they wouldn't be able to pull from maven Jan 19 18:30:06 doesnt that answer your own question then? Jan 19 18:30:19 i'm back \ ( ^ _ ^)/ Jan 19 18:30:27 drinfernoo: That's different then. Jan 19 18:30:46 If I am declaring a int variable that is going to assigned a value later, is there any difference from doing int number; from int number = 0; Jan 19 18:30:49 drinfernoo: you might consider making your dependency a fat jar Jan 19 18:30:55 0 meaning nothing to me Jan 19 18:30:57 I'd enjoy it if I saw someone say "I use Strings when storing numbers with 1-3 digits because Strings are only one byte per character instead of an integer being four bytes per number." Jan 19 18:31:13 That would really make my day. Jan 19 18:31:35 marrrk, projects with resources Jan 19 18:32:22 agentOrange, is there any special syntax I need to use? I just have everything in depencies in my build.gradle Jan 19 18:32:30 drinfernoo: Fat AAR? Jan 19 18:32:44 how do you make an aar? Jan 19 18:32:53 I don't. Jan 19 18:32:56 And I don't know. Jan 19 18:33:08 well, and I have the .aar and .pom for all the libraries Jan 19 18:33:08 Is it possible to use google play game services saved games feature with only a single save game? (Without showing the select saved game dialog) Jan 19 18:37:57 drose: You shouldn't do that in general. Jan 19 18:38:26 It's good practice to define a variable as soon as it's declared. Jan 19 18:38:40 i'm not so sure about that Jan 19 18:38:42 It's rare to have to separate the declaration and definition. Jan 19 18:38:48 not at all true Jan 19 18:39:08 TacticalJoke wanna check out the method? I think im just about finished with the rough draft Jan 19 18:40:01 Where are these commandments coming from? Jan 19 18:40:07 JW: I'm assuming he's talking about local variables. It's very rare in my experience. Jan 19 18:40:11 Question.. when I call Rect dirtyRect = new Rect(0, 0, 16, 16) and then call canvas = getHolder().lockCanvas(dirtyRect); the debugger is showing the dirtyRect is actually modified as a side effect of the function and changes to (0, 0, 720, 1280). what's going on?? I would expect that the lockCanvas call would not change my parameter input Jan 19 18:40:16 TacticalJoke: yes, not rare Jan 19 18:40:27 drose379: leave the local uninitialized if you know it will be initialized later Jan 19 18:40:33 Sure, drose, but I'm on my phone. Jan 19 18:40:42 that way any accidental usage of that variable will be a compilation error Jan 19 18:40:56 there's nothing mentioned in the API doc about it Jan 19 18:41:05 Couldn't it be made final? Jan 19 18:41:36 TacticalJoke http://pastie.org/9841302 Jan 19 18:41:52 If its too annoying to read on your phone, dont worry about it Jan 19 18:42:26 marrrk; even when it is set to final it does the same thing Jan 19 18:42:35 drose379: use a boolean Jan 19 18:42:47 instead of the 0 part for radioChecked? Jan 19 18:43:30 the only way i can get the behavior i would expect for this lockCanvas(diryRect) (no side effects) is if i copy the rect and discard it after the method call Jan 19 18:44:02 JakeWharton my scrollback doesn't go back so far, sorry to ask again - which license are you using for bugsense in telecine ? Jan 19 18:44:18 what license? Jan 19 18:44:27 or paid version, etc Jan 19 18:44:38 the free one Jan 19 18:44:55 hm, ok so with that they give you one project. what happens on your next project ? Jan 19 18:45:12 or is it different for open source projects ? Jan 19 18:45:19 i don't know. i don't write apps. Jan 19 18:45:25 heh Jan 19 18:45:38 i'll figure it out in 5 years when the next app comes around Jan 19 18:46:01 you have to add it to the one you wrote for android 1 Jan 19 18:46:06 :D Jan 19 18:46:30 JakeWharton thanks for the boolean tip Jan 19 18:46:31 heh, yeah i should Jan 19 18:46:41 did you see anything else I should change? Jan 19 18:49:02 hello Jan 19 18:49:03 out of interest. although boolean is more readable, it shouldnt make a performance difference to use 0/1 instead, does it? Jan 19 18:49:10 I'm trying add a new contact Jan 19 18:49:19 drose: Can't you just say "if (priorityButtons.getCheckedRadioButtonId() != -1) { doStuff(); }"? Jan 19 18:49:44 I could be misreading on this small screen, but that looks logically equivalent to what you're doing. Jan 19 18:49:57 ah, I was looking for something like that Jan 19 18:50:13 does it return -1 if no ID is selected? Jan 19 18:50:18 I'm trying this: http://pastebin.com/PPTC85Sn Jan 19 18:50:25 boolean takes less memory, but if you're optimizing stuff like that, then you're having bigger problems Jan 19 18:50:27 but doesn't works and throws an exception Jan 19 18:50:41 I think so. Jan 19 18:50:53 was a theoretical question :) Jan 19 18:51:03 exception: http://pastebin.com/eKUzscyR Jan 19 18:51:16 Thanks TacticalJoke Jan 19 18:51:21 in android, that much optimization should never be needed. at least in the java-part of code. NDK is another question. Jan 19 18:53:14 Hello Jan 19 18:53:48 I can obtain that package manager grants me the permissions used in android manifest? Jan 19 18:53:51 Any ideas? Jan 19 18:54:44 doesnt sound like a problem cristian_c :) or do you mean dont* Jan 19 18:55:15 *How can Jan 19 18:55:18 danijoo, sorry Jan 19 18:55:38 *granting me Jan 19 18:55:56 if you have the permission in manifest, they are already granted Jan 19 18:56:12 you dont need to do sth else, just use them Jan 19 18:56:25 danijoo, I get a not granting message in the logcat Jan 19 18:56:30 what permission Jan 19 18:56:43 the you have not declared the permission correctly Jan 19 18:56:48 Not granting permission android.permission.MOUNT_UNMOUNT_FILESYSTEMS Jan 19 18:57:15 do you have that permission in your manifest? if yes, show it Jan 19 18:57:34 http://developer.android.com/reference/android/Manifest.permission.html#MOUNT_UNMOUNT_FILESYSTEMS Jan 19 18:57:42 not for 3rd party apps Jan 19 18:58:15 Jan 19 18:58:31 oh well.. ^^ Jan 19 18:59:40 whatitis-, I don't understand why some developers use code with these things Jan 19 18:59:57 i dont understand why noone reads docs anymore :p Jan 19 19:00:03 access to external storage Jan 19 19:00:04 people are lazy Jan 19 19:00:14 It's strange Jan 19 19:00:39 there was a time before google, where you actually read books, like, entire books.... that would make a lot of people cry today Jan 19 19:01:08 whatitis-, what permissions do they use, then? Jan 19 19:01:10 I love books but they take so long to read. Jan 19 19:01:18 *for these Jan 19 19:01:27 cristian_c, the one to access, not the one to mount/unmount Jan 19 19:01:48 danijoo, mounting too Jan 19 19:02:06 for what do you need that? Jan 19 19:02:20 danijoo, unmount external storage Jan 19 19:02:37 in some cases Jan 19 19:03:11 I've not that option in Settings->storage Jan 19 19:05:28 hmm, anyone played with transferring data over USB to a desktop app? Jan 19 19:05:31 over socket or something? Jan 19 19:05:55 Mavrik, do you want to use sth like adb or only the app? Jan 19 19:06:19 Um, I'd prefer something that works across as much devices as possible wihtout root or drivers :) Jan 19 19:07:04 i think a network solution would be the easiest to implement. Jan 19 19:07:33 Do you folks tend to use Nullable/NonNull? Jan 19 19:07:52 Considering switching. Jan 19 19:07:54 TacticalJoke, I recently began to use nullable Jan 19 19:08:11 but only as a reminder to myself that i took care about that once I wrote that method Jan 19 19:08:35 (because my documentation sucks) Jan 19 19:09:04 Yeah, it's kinda nice even just for the documentation. Jan 19 19:09:35 yeah. thats the only reason i use it. I can look and it and think "ah yes. this is one of those that you actually took care of.. " Jan 19 19:11:25 So how's everyone doing in the world of android development? Jan 19 19:11:47 My typical MO is to assume non-nullity. If a method is allowing a null input or potentially producing a null output then I document that. I feel that @Billable could be nice here. Jan 19 19:11:55 Mavrik so you can use adb? maybe adb + localserversocket ? Jan 19 19:11:59 Nullable* Jan 19 19:13:21 Though returning something marked @Nullable might be annoying (as lint might complain for times when I know things won't actually be null). Jan 19 19:14:13 g00s, hmm, I figure there's no Java API for that? :) Jan 19 19:14:37 LocalServerSocket ? just nonstandard android java Jan 19 19:14:45 nonstandard java Jan 19 19:15:18 there was a bug with this, heh Jan 19 19:15:58 you couldn't shut down the socket the usual way. but workable Jan 19 19:16:21 hey thepoosh Jan 19 19:16:27 sup! Jan 19 19:18:03 https://code.google.com/p/android/issues/detail?id=29939 Jan 19 19:18:25 This looks awesome: https://android-review.googlesource.com/#/c/123729/ Jan 19 19:18:54 i dunno TacticalJoke , i'm sure you have high expectations for this :D Jan 19 19:19:49 thepoosh is this your first 1 week sprint ? Jan 19 19:19:56 yes Jan 19 19:20:01 finished both my features Jan 19 19:20:05 let me know how it goes :) curious :D Jan 19 19:20:08 tomorrow is code review day Jan 19 19:20:57 oh i think i get it. i was wondering how many hours of coding out of 40 there would be; but you guys are probably working 80 hour weeks so - basically doing 2 week spints Jan 19 19:21:36 I do, g00s, but I have to admit that I am impressed by Android Studio. Things have come a long way. :) Jan 19 19:22:02 So I'm guessing I'll like this new functionality too. Jan 19 19:22:06 g00s: 2 days programming, 1 day code review, 2 days QA Jan 19 19:22:16 thepoosh oh man, thats terrible Jan 19 19:22:20 yeah Jan 19 19:22:24 3 sprints Jan 19 19:22:27 for now Jan 19 19:29:22 g00s: To my surprise, Android Studio actually feels faster on here than Eclipse on here. Months ago it was way slower (unusably slow). Jan 19 19:29:50 It definitely feels faster to me as well. Jan 19 19:30:00 Feels faster in general. (Hard to type on this phone.) Jan 19 19:30:03 hmm. its ok speed wise, just takes up a lot of memory. do a few gradle syncs and watch the daemon grow Jan 19 19:30:20 I have been using it since I started and it has seen some much needed improvements. Jan 19 19:31:46 is there a way to make a ListPrefence show its options on the PreferenceScreen instead of opening a dialog? Jan 19 19:31:48 TacticalJoke: because eclipse is garbage Jan 19 19:55:47 is gcm down right now? Jan 19 19:56:23 it seems more likely that I just screwed up my code, but.... I'm getting a java.io.IOException: SERVICE_NOT_AVAILABLE when I try to register Jan 19 19:58:11 Hello everyone , i'm having some issues with a cursor object, i'm trying to querry my SQlite database and seems to crash all the time, http://pastebin.com/XmCpVQ54 it says on the the Cursos cursos line a nullpointerexp , Could someone look at this maybe i'm just overlooking something, thanks in advance Jan 19 20:00:13 shekiboboi it would take pretty much a meteor impact to make gcm go down Jan 19 20:00:34 that's what I thought :( Jan 19 20:01:01 did that happen? Jan 19 20:01:09 to my knowledge, no Jan 19 20:01:11 not seeing anything in the news yet Jan 19 20:01:15 citation: i am still alive Jan 19 20:06:11 eeinteresting https://news.ycombinator.com/item?id=8913315 Jan 19 20:06:34 "Pivotal just announced it’s decision to stop sponsoring and funding the development of the popular Groovy and Grails Open Source projects. " Jan 19 20:07:23 Hey all, i see in the documentation that an IntentService can't be interrupted. Does that mean I can never talk with the instance once `startService` has been called? even if I were to use broadcast receivers? Jan 19 20:12:50 jobelenus i think what it means is that there's no mechanism to remove an intent you queued Jan 19 20:13:10 whereas with something like a Handler you can remove a previously-posted Runnable Jan 19 20:13:15 right... Jan 19 20:13:41 but how would i communicate/send more info with an intentservice instance? Jan 19 20:16:19 Hi ! Jan 19 20:16:20 receivers and such would work.. but that's generally not the intended use case of an intentservice Jan 19 20:16:25 what are you trying to accomplish? Jan 19 20:16:53 i am starting up intents to download files... and the user should be able to pause... Jan 19 20:17:01 and resume Jan 19 20:17:09 Hello, how can i check this for a nullpointer exp : Cursor cursor = database.query(OpenHelper.TABLE_NAME,allColumns,null,null,null,null,null); Jan 19 20:17:20 Hi. Could anyone point me to a nice tutorial on how to use android studio? Jan 19 20:17:32 Or would you suggest to create layouts "by hand" ? Jan 19 20:17:45 so changing the state of the intentservice to "paused" from my activity (that started the service) is what im trying to do Jan 19 20:17:53 kraftb, in xml u mean ? Jan 19 20:18:03 yes Jan 19 20:18:12 I have a static layout Jan 19 20:18:26 I'm doing it like that, not that i know better Jan 19 20:18:37 I am quite new to android development. I did some development a few years ago. But then I rather just coded a form generator Jan 19 20:18:48 Now I have to create a graphically "appealing" looking app Jan 19 20:19:01 Using UI editors to generate XML is as bad idea as it was using those on iOS or web. Jan 19 20:19:09 No idea if you find out how to make it look nice let me know =D Jan 19 20:19:10 So learn to lay out your app in xml. Jan 19 20:19:33 Well. Maybe I just hit my feet on the first stone I stumbled upon: I have to place an image/logo at the top of the screen, filling it horizontally. Jan 19 20:19:37 I think if u know how to work with themes and styles xml can make it look nice Jan 19 20:20:08 I believe if you look in as studio tutorial from where u dl it u find a theme/style tutorial in the beginning Jan 19 20:20:18 thoughts sarbs ? Jan 19 20:20:27 But the ImageView always draws a padding/margin around the image Jan 19 20:20:49 kraftb, well, did you adjust the scaletype_ Jan 19 20:20:50 ? Jan 19 20:20:54 jobelenus broadcasts would work for that Jan 19 20:21:00 I set it to FitXY Jan 19 20:21:30 kraftb: It might seem a little bit harder at first but learning how to do it in XML is definitely the best. I'm not saying don't use the graphical editor at all but at least make sure you understand the code it is generating so that you can make small changes easier. Jan 19 20:22:02 ok sarbs, ill give it a whirl then...i already have a broadcast from my intentservice back to my activity for progress/done notifications, so ill just make another from activity to intentservice Jan 19 20:22:24 kraftb, well, then your imageview is probably not laid out properly Jan 19 20:22:26 if you want more than one download simultaneously it might be better to write a regular service and handle the downloading with asynctasks Jan 19 20:22:44 intentservices will only process one intent at a time; they are single-threaded Jan 19 20:23:15 right.. i think im actually OK with single-thread there.. as it won't *totally* choke the network out.. most of the downloading files are small, while a few are large Jan 19 20:23:25 or better yet, an intentservice that has a separate async download mechanism, and uses the intents for signaling Jan 19 20:23:34 ic Jan 19 20:26:30 Could someone look at this no clue how i get a nullpointer here Cursor cursor = database.query(LittleChefOpenHelper.TABLE_LITTLECHEF,allColumns,null,null,null,null,null); Jan 19 20:27:28 terg: what's the stacktrace? Jan 19 20:29:54 groxx, uhm how do i see this ? that's btw just a small part of a larger error but i think the fault lays there Jan 19 20:32:29 What attribute is required to let a container stretch to all available space? Jan 19 20:32:37 groxx , i think u mean this http://pastebin.com/UGErJcac Jan 19 20:33:13 terg: yep, exactly that Jan 19 20:33:38 terg: your database is null at that point Jan 19 20:33:42 ok. Its "layout_weight" ... Just wondered if there is a plain "weight" also :) Jan 19 20:34:39 groxx , but i can see it in the filebrowser so woudln't it be existing then ? Jan 19 20:35:38 actually, sarbs i had a slightly crazier idea.. but unsure if it would work... lets say i have put a public static `status` field on my intentservice class, if i changed it from the activity class, would that reference even be changed in whatever context the intent instance is actually running?? Jan 19 20:36:00 jobelenus, there are no "contexts" Jan 19 20:36:09 terg: the file might exist, but the SQLiteDatabase instance in your application does not. you need to create a new instance of it, typically by making an SQLiteOpenHelper and calling .getWriteableDatabase() on it. Jan 19 20:36:10 jobelenus, your service is running in the same VM your app is unless you request otherwise Jan 19 20:36:19 jobelenus, and they act just like another class within that VM would act Jan 19 20:37:03 thanks Mavrik ("context" was just a vague term im using b/c i do not have a grasp on all the android internals about how things actually run) Jan 19 20:37:19 Well, that's what I'm trying to explain. Jan 19 20:37:48 groxx , i do this all the time onresume, this will be called together with oncreate right or ? Jan 19 20:37:51 You can modify fields on Service class from Activity, since that's the same VM ... it's usually an awful way to go about it though :/ Jan 19 20:38:53 terg: onCreate happens before onResume, so you won't have an instance yet in onCreate. you'll have to do it earlier, or do the query later. Jan 19 20:40:08 hmm, java.util.concurrent.Phaser is api 21 - wonder if i can copy it out Jan 19 20:40:32 groxx, ok that might explain it, is there anything that happens auto after onresume ? Jan 19 20:41:48 terg: not really. onResume is essentially the last thing to happen before your UI is displayed. so e.g. a click will happen after onResume (and before onPause), but not not much else (unless you make it happen, e.g. with anything asynchronous) Jan 19 20:43:05 Can i force call the onresume function ? Jan 19 20:44:59 terg: you could, but don't. the framework will call it for you, and you could cause problems if you call it at the wrong time. Jan 19 20:46:10 terg: http://developer.android.com/guide/topics/data/data-storage.html#db has links to a couple example projects with databases, if you need something to compare with Jan 19 20:50:00 ah, or maybe this works better: https://developer.android.com/training/notepad/notepad-ex1.html Jan 19 20:52:30 groxx, i was now thinking of handling it in the resume Jan 19 20:54:28 groxx, aha i see in the last example they just open it aswell in the oncreate, i heard u can open it as much as u like so should work Jan 19 20:55:29 terg: you can. it's a waste of memory to open more than one, and it's unsafe to create multiple helpers on different threads, but there's no real harm in it normally. Jan 19 20:56:36 terg: generally you just create a single one for your entire application. the database is threadsafe, and it never really needs to be closed, since every change will immediately be on the disk. Jan 19 20:57:24 groxx, aha ye still need to switch my database handling to a diff thread i alreayd heard that's a big no-no Jan 19 20:57:34 to have it on the main thread that is Jan 19 20:57:46 it's file access, so yeah, it's not good to have it on the main thread Jan 19 20:58:11 Ye still need to learn how to do it Jan 19 20:58:31 generally you won't notice, but on some devices / while the device is busy, you could end up waiting to read from the disk for a long time. then your app will look like it's frozen, and if it goes on long enough it might even pop up the "not responding" dialog. Jan 19 21:01:14 Groxx, wel it ain't working perfect yet but it's not crashing anymore atleast Jan 19 21:01:31 groxx, so thanks alot for your help Jan 19 21:01:38 terg: good luck :) Jan 19 21:09:08 can you have a project, included from a local repo, depend on another project in the same repo? Jan 19 21:09:24 if so, is there a special way to include the dependency? Jan 19 21:10:11 groxx , did u ever run into Writing exception to parcel 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, when i try to run my phone (non emulator) Jan 19 21:11:01 i know next to nothing about android development, i know a fair bit of java, the ins and outs of linux and a bunch of build systems. i want to strip a theme's boot image of the text. how involved would that be Jan 19 21:13:03 TomyLobo: probably check #android-root, this is an app development area Jan 19 21:13:10 ok Jan 19 21:13:16 thanks for the hint Jan 19 21:13:41 I would think I might need to add my local repo to the referenced libraries build.gradle, but I don't have access to it Jan 19 21:14:16 terg: that's a new one. a small possibility: did you install the app over a previous version, possibly one built by someone else / a different computer? Jan 19 21:14:53 groxx, i did install it over a old one but i read here that said i should try in the manifest Jan 19 21:15:38 terg: unless you know why you need that, you don't need that. more likely it didn't clear out the state properly (I've seen it happen at times, but it seems like a framework bug more than anything) Jan 19 21:15:42 I'm using android.support.v7.widget.Toolbar and android.support.v4.widget.DrawerLayout (following this tutorial: http://www.android4devs.com/2014/12/how-to-make-material-design-navigation-drawer.html?showComment=1421699551001#c7939518931219542565) but for some reason I'm not getting the hamburger drawer toggle icon. Why is that? Jan 19 21:15:49 terg: try uninstalling the app completely, then installing yours. it'll probably fix that problem. Jan 19 21:16:40 groxx, didn't work :/ Jan 19 21:17:35 groxx, it happens when i make a database/table and insert data in it Jan 19 21:17:59 terg: I'm seeing one StackOverflow response that says it was fixed by a clean and rebuild. try that? Jan 19 21:18:23 terg: yeah, for some reason your app _seems_ to be trying to do things with the OS as the wrong user. Jan 19 21:20:08 terg: another says theirs was fixed by fixing the name of an activity in their manifest. seems weird, but I guess possible. Jan 19 21:24:22 ah, -2 is current user. hm. are you doing any explicit shell-exec commands? Jan 19 21:26:10 groxx , no not rly Jan 19 21:29:38 hi, what would be the recommended way to store an array of data sets that each have a title (string) and coordinates (2 integers) associated with them? Jan 19 21:31:27 http://puu.sh/eKB1b/8da9dcd4fd.png Jan 19 21:31:35 why am i getting an unhandled sception error Jan 19 21:32:39 to me, it seems like they should be put in a resource file, but i'm not sure how to safely represent those three attributes of the array elements since the "array" resource type only accepts one resource per element and having separate arrays would lead the problems if i later added an element to the array with the titles, but forgot the add the corresponding coordinates to the other array... Jan 19 21:33:33 DragonPunch: Returns the value mapped by name if it exists, coercing it if necessary, or throws if no such mapping exists. Jan 19 21:33:34 DragonPunch: because getString() might throw a JSONException in some cases and you're neither catching it nor passing it on Jan 19 21:33:38 RTFM Jan 19 21:34:09 so i have to set a try and catch statement up? Jan 19 21:34:28 if you want Jan 19 21:35:04 Look into checked and unchecked exceptions Jan 19 21:35:28 why are you calling your Email object "adam", by the way? Jan 19 21:36:14 just testing Jan 19 21:36:18 What state should I use for a StateListDrawable if I just want to exchange the displayed image from within code? Jan 19 21:36:21 im using Volley lib Jan 19 21:36:42 using "state_enabled" seems senseful but doesn't work as expected. Jan 19 21:36:55 Or should I just exchange the src of the ImageView? Jan 19 21:37:12 kraftb: You can just use state_activated Jan 19 21:37:19 And View#setActivated Jan 19 21:38:01 n-st: create an object with a string and 2 inegers ? Use guava's MutliMap ? Jan 19 21:38:34 csst0111: but how can i represent that in a resource xml file? (assuming that's a sensible place to store static data) Jan 19 21:44:33 how much java should i understand before developing for android? Jan 19 21:44:44 yes Jan 19 21:44:56 -_- Jan 19 21:45:17 well at least something more than helloworld and fizzbuzz example Jan 19 21:45:20 groxx, just changed the entire activity name and still same crash Jan 19 21:45:41 Most of what you'll learn will come as you go. Jan 19 21:45:46 But it's a good idea to read Oracle's guide. Jan 19 21:46:06 you might jump right into android why not Jan 19 21:46:22 but youll get stuck often Jan 19 21:47:05 I got the google material icon pack and there are 8 different sizes for each icon Jan 19 21:47:09 What size icons go where? Jan 19 21:47:16 IS there a reference on the internet anywhere? Jan 19 21:47:44 I have no clue what I'm doing with icons and sizes Jan 19 21:47:44 AKK9, http://developer.android.com/design/style/iconography.html Jan 19 21:49:04 google only provided drawable-mdpi and hdpi Jan 19 21:49:15 what about xhdpi and xxhdpi, how do i make these? Jan 19 21:50:14 AKK9, what do you mean. Jan 19 21:50:21 You take the ones that are appropriately sized. Jan 19 21:50:26 If I use the android:fontFamily attribute (which is an api 16+ attribute) on my TextView, will the app continue to function on api 15? Jan 19 21:50:27 You DID say you have 8 sizes?! Jan 19 21:50:48 yiati, yes, but the font-family obivously won't be applies Jan 19 21:50:50 *applied Jan 19 21:50:58 Mavrik: Right, cool thanks Jan 19 21:51:01 yiati, so make sure you test in emulator / device to see if the app looks ok Jan 19 21:51:15 Mavrik, yeah so they have 32dp icon in the mdpi folder, and they have a 32dp version in the hdpi folder. But they dont have xhdpi or xxhdpi folders Jan 19 21:51:54 AKK9, again, I don't see the issue? Are you missing 64px and 96px versions? Jan 19 21:51:58 I'm looking for the 32dp versions for xhdpi and xxhdpi i guess. so i have the correct versions for all screens? Jan 19 21:52:15 terg: I don't know :\ usual magical fixes are: 1) uninstall and reinstall, 2) rebuild, 3) reboot phone. not sure what to do beyond that though. Jan 19 21:52:18 https://github.com/google/material-design-icons has from mdpi to xxxhdpi Jan 19 21:52:35 Mavrik, I'm not sure dude. ill do some more reading. thanks Jan 19 21:52:57 groxx , i just noticed my querry does return a incrementing long at the same time so maybe i can just ignore it Jan 19 21:53:51 SimonVT, thanks! Jan 19 21:54:00 groxx , idd this is the case the database is fully working and can add and show them so might be just a phone flaw Jan 19 21:56:17 SimonVT, when I download that i only get the action folder, and i only get hdpi, and mdpi.... Jan 19 21:56:23 Am i doing it wrong? Jan 19 21:56:27 I'm pressing Download ZIP Jan 19 21:56:33 git clone Jan 19 21:57:26 groxx , thanks for your help today ! but i'll be going to bed now Jan 19 21:57:31 Thanks all goodnight Jan 19 21:58:34 Nvm i unzipped with 7-zip instead of the default Windows one and I shows me everything Jan 19 21:58:38 Very weird Jan 19 21:58:40 thank you Jan 19 22:01:56 weird indeed. also weird that both OSX and Windows have weird unzip utilities :( 7zip / The Unarchiver seems like a Must™ for every install. Jan 19 22:02:53 Yeah, Windows's unzip thing has always been a pain. It works 95% of the time and silently fails otherwise. Jan 19 22:03:08 7zip works fine for me Jan 19 22:04:46 I moved to Android Studio, groxx. Liking it a lot. They did a good job. :) Jan 19 22:05:19 It's also nice that IntelliJ's editor can be set up so that symbols (such as '.') can accept candidates in intellisense. Jan 19 22:05:29 I think that wasn't possible in Eclipse. Jan 19 22:05:38 intellisense? Jan 19 22:05:41 TacticalJoke: yeah, it's generally pretty nice. Jan 19 22:05:54 YungDaVinci: IntelliJ seems to call it "Code Completion". Jan 19 22:06:00 certainly seems more resource-intensive, sadly, but throw enough ram at it and it seems pretty happy. Jan 19 22:06:11 I'm actually finding it faster than Eclipse now. Weird. Jan 19 22:06:17 Did not expect to be saying that. Jan 19 22:06:20 lol Jan 19 22:06:37 general use feels faster, but build is still slower :) Jan 19 22:06:47 Yeah, build can be slower (but not by a huge margin on my project). Jan 19 22:06:48 might just be that the UI doesn't take a few frames to do anything Jan 19 22:07:18 It's nice having Gradle. Using v7, for example, is a one-liner. Jan 19 22:07:35 It's also nice to get away from Eclipse's horrible concept of a workspace. Jan 19 22:07:43 ugh. workspaces. no kidding. Jan 19 22:07:54 It actually stopped me from creating little side (test) projects. Jan 19 22:08:04 yeah. massive PITA. Jan 19 22:08:34 IntelliJ 14 will have something even nicer for that kinda thing: Scratch Files. Jan 19 22:08:43 Hope that makes its way into Android Studio. Jan 19 22:08:54 so far I think the biggest win for me / work might be that the whole thing is reliably configurable entirely from the Gradle files. zero Studio-specific things in our repo. waaaaaay easier to manage on a team. Jan 19 22:09:09 Yeah, that's nice to have. Jan 19 22:09:13 TacticalJoke: AS 1.2 will be based on 14 Jan 19 22:09:17 Cool. Jan 19 22:09:58 Haven't touched Android Studio yet, is it a self contained deal like the Eclipse bundle? Jan 19 22:10:12 They have a self-contained bundle, yeah. Jan 19 22:10:16 Qowface: as much as Eclipse ever was, mostly. you still need to download a bunch of SDK stuff. Jan 19 22:10:21 I'd recommend trying it. Nicer than Eclipse, IMO. Jan 19 22:10:31 Qowface: the first-launch "set everything up" is infinitely better though Jan 19 22:10:31 groxx: No need to anymore. Jan 19 22:10:35 no? Jan 19 22:10:38 fantastic Jan 19 22:10:41 Now they have a full bundle with the SDK. Jan 19 22:10:46 Only thing you need to download is the JDK. Jan 19 22:10:59 It also sets up HAXM and stuff (where possible)> Jan 19 22:11:04 A really good UX. Jan 19 22:11:28 Sets up an emulator image. Jan 19 22:11:48 yeah. previously the haxm stuff was almost impossible to discover unless you knew to look for it. Jan 19 22:12:00 If I already have the SDK itself installed system-wide, should I just grab IntelliJ, or does Studio have more tools/features? Jan 19 22:12:37 Studio is more android-specific. IntelliJ has an android plugin, but I don't know how much feature-parity there is Jan 19 22:13:07 I'm mostly just looking for an excuse to get away from Eclipse haha :) Jan 19 22:13:08 but fwiw I have the SDK set up externally too, it works fine. auto-detects it too. Jan 19 22:13:12 Qowface: When I moved to Android Studio (two days ago), I just used the bundle. This was partly because I hadn't updated my copy of the SDK recently. Jan 19 22:13:18 It asks where you want to install the SDK. Jan 19 22:13:25 (So the SDK is still separate.) Jan 19 22:14:09 Qowface: unless you a) require jvm unit tests, or b) use Eclipse's NDK integration, it's probably worth switching. Jan 19 22:14:14 I think I'd recommend the bundle if you go the AS route, because it's such a nice introductory UX. Jan 19 22:14:27 Makes sense. Jan 19 22:15:09 groxx: Yeah, for now, I'm putting all my code-to-be-tested in a Java module. So I can do JVM unit testing. (But I'm itching for them to implement JVM unit testing as a first-class citizen, which I believe will happen soonish. :) Jan 19 22:15:31 The Java-module approach isn't ideal, but it works for me for now. Jan 19 22:15:38 for verification of in app purchases after relaunch, do you rely on queryInventoryAsync to give IAP priveleges in your app or do you store a setting when it’s purchased and update it every so often? Jan 19 22:15:50 TacticalJoke: yeah. how much of a pain is the separate module? seems like probably not _too_ bad, but bigger than nothing of course. Jan 19 22:16:13 Yeah, it seems minor. Main drawback is that none of those classes can, for example, implement Parcelable. Jan 19 22:16:25 yeah, has to be a totally-clean split Jan 19 22:16:25 Other than that kinda thing, it's not a huge deal. Jan 19 22:17:46 groxx: I can't wait for this (which I posted earlier; sorry if people saw it before): https://android-review.googlesource.com/#/c/123729/ Jan 19 22:18:23 I guess it'll mean no more issues with android.jar's "Stub!!!" thing. Jan 19 22:18:56 Or whichever number of exclamation marks they use. Jan 19 22:24:19 there has been nothing stopping you from doing that already Jan 19 22:26:57 granted, i'm glad it's coming as well though Jan 19 22:27:45 I wonder whether Robolectric will change to build on top of it. Jan 19 22:28:16 Or whether Robolectric will eventually be deprecated by it. Jan 19 22:28:22 it won't Jan 19 22:28:26 robolectric runs the real code Jan 19 22:28:30 Okay. Jan 19 22:28:40 switching would mean they would have to re-implement 80% of the framework Jan 19 22:35:45 Are most people here self taught Jan 19 22:36:47 i don’t know about most, but i am Jan 19 22:36:50 i assume most are Jan 19 22:36:58 i'm self stupid Jan 19 22:37:03 haha Jan 19 22:37:15 learned Java in school, android dev on my own Jan 19 22:37:16 self taught in programming, or in androiding? Jan 19 22:37:38 programming Jan 19 22:38:16 university, then. apparently an abnormally practical one, though I wish we had more theory :| Jan 19 22:38:34 Same here. Though I feel I learned more by just doing hobby projects. Jan 19 22:38:46 I also feel that university/college is, at some level, "self-teaching". Jan 19 22:38:53 yeah, same here (on both) Jan 19 22:39:11 useful resources and some starting structure definitely helps, but it's definitely what you make of it Jan 19 22:39:17 Yah. Jan 19 22:39:22 TacticalJoke remember that goal-setting app we were talking about the other day Jan 19 22:39:31 Yeah. Jan 19 22:39:45 I wanna add like a self-teaching assistant part to it Jan 19 22:40:03 i just took a visual basic class in like 1997 and ran with it from there Jan 19 22:40:14 How will the self-teaching feature work? Jan 19 22:40:55 I have ever done java before, but I've done a fair amount of webdev with node/javascript and php.. have an idea for an android app, how much of a shock am I in for? Jan 19 22:41:13 Danavu, well to start, Java is strongly-typed Jan 19 22:41:19 js/php are loosely-typed Jan 19 22:41:20 i'm aware Jan 19 22:41:25 so that's one thing Jan 19 22:41:42 TacticalJoke im not quite sure yet, im trying to think of how I could use it, in my learnings. I know I like to have a path that I know I want to go down like an end of the day goal, so maybe help people lay that out Jan 19 22:41:47 i might mention I've done some dabbling with haskell Jan 19 22:41:50 Java is pretty well designed. I never liked JavaScript, and PHP looks horrible (though I've never used PHP). Jan 19 22:42:07 That's a really nice idea, drose379. Jan 19 22:42:10 php is horrible.. Jan 19 22:42:13 TacticalJOke: I actually love PHP, espeically with a nice framework like Laravel Jan 19 22:42:21 Maybe such an app could encourage people to break down tasks into tiny steps. Jan 19 22:42:26 Even suggesting steps. Jan 19 22:42:46 Right, I think the breaking down the tasks into small steps is huge for self-education Jan 19 22:42:53 Yeah. Jan 19 22:42:58 my app idea is a live wallpaper.. wouldn't think it would be too hard to make of all the app ideas Jan 19 22:43:00 You could make this an awesome app, drose379. :) Jan 19 22:43:05 I'll test anytime. Jan 19 22:43:30 Thank you TacticalJoke. Jan 19 22:43:35 wonder what you guys think : i have N Bluetooth clients that need to connect devices. but the actual task of connecting / service discovery should be done one at a time. I was thinking of giving each client a shared ReentrantLock; and when a client goes to connect it calls ReentrantLock.lock() which either acquires the lock so it can go ahead, or parks that thread on a queue until the lock is released (i would use fairness = Jan 19 22:43:35 true). comments ? Jan 19 22:43:51 Danavu: I've never done that, but I'm gonna guess that it's not hugely involved. Jan 19 22:44:56 TacticalJoke do you think the self-learning assistant would be a stand-alone application or just a feature of the other goal app Jan 19 22:44:57 If it turns out that you need to use the NDK or something, I'll totally have to admit that I'm wrong. :D (But I doubt that.) Jan 19 22:45:37 Hmm, not sure. Seems like it could be a subset of "goal setting". Jan 19 22:46:10 Yeah, gotta make a solid plan Jan 19 22:46:27 Hows the reddit client coming? Jan 19 22:46:38 I guess you could have multiple goal types: generic goal, self-learning goal, time-limited goal. Jan 19 22:46:40 Or something. Jan 19 22:46:59 It's going well. I've had two days off to switch to Android Studio. (Glad I did, though.) Jan 19 22:47:28 Thats a great idea. Saw you said your enjoying AS? Jan 19 22:47:48 i flushed eclipse down the toilet Jan 19 22:48:55 swirlywirly Jan 19 22:48:56 Yeah, I've spent hours setting up everything: appearance, keyboard shortcuts, intellisense stuff, and so on. It feels very comfortable now. Jan 19 22:51:17 Glad to hear it TacticalJoke Jan 19 22:52:06 TacticalJoke inbound Jan 19 22:54:53 quick Q for anyone. Can a 3rd party android app, hook into and change the default notification sound of an app that does not support a custom notificaion sound to be set? Jan 19 22:56:16 I would think if that 3rd-party app has root permission it could fairly well do what it likes. i've installed stuff with xposed that changes all kinds of things in other apps Jan 19 22:56:32 does the logcat filter actually work? when i select it, all text disappears, so i hit the sync button and the filter turns off Jan 19 22:56:39 in android studio Jan 19 22:56:40 good call Danavu . I'll do some digging Jan 19 22:57:09 is there any way (yet) to customize the logcat columns that show in AS ? Jan 19 22:57:20 only need time / description really Jan 19 22:57:34 ultra-: The filter selector works here. Jan 19 22:58:31 this is so frustrating Jan 19 22:59:30 Danavu: re java shock: I'd recommend a bit of reading to "get" java (specifically, things like the static keyword and generics, since they're not really part of the languages you mentioned (afaik)), but it's not particularly complex. strict, which forces some gymnastics, but you can bash something out without too much trouble. Jan 19 22:59:36 What filter are you trying to apply? Jan 19 22:59:52 Hey, if I want my app to appear in the Recently Used menu, but I don’t want screenshots of the app itself, cause they’ve got sensitive data in them, what’s the best way of going about that? Jan 19 22:59:54 i just select my app Jan 19 23:00:13 do you have to hit the sync button in logcat? i do every time, or it shows nothing regardless of my filter Jan 19 23:00:30 restarting logcat doesn’t help Jan 19 23:00:40 groxx: cheers Jan 19 23:00:48 any suggested readings? Jan 19 23:01:04 I never have to hit any sync button. Jan 19 23:01:55 Danavu: the organization is a bit odd, but I'd probably recommend straight from the horse's mouth: http://docs.oracle.com/javase/tutorial/ Jan 19 23:02:25 Danavu: you can _probably_ ignore most of the library-related stuff, and regrettably there's no java 8 support yet Jan 19 23:02:46 Danavu: or maybe this is a more useful link: http://docs.oracle.com/javase/tutorial/java/index.html Jan 19 23:04:07 restarting android studio helped Jan 19 23:04:09 so it’s just buggy Jan 19 23:05:12 Danavu: ah, also: you rarely need more than basic generics use, unless you're reading some library code or writing library code. _usually_ you'll just need to understand what SomeClass means and how to use it, not SomeClass or others. really mastering generics is rarely worth the mindbreaking-ness, though maybe haskell will help there. Jan 19 23:06:10 It's been almost 40 hours my Google Play developer doesn't update its statistics. Is that normal? Jan 19 23:06:42 Hmm. adb doesn't print its output to stdout. Jan 19 23:06:54 I mean its help output. Jan 19 23:07:46 TacticalJoke: 2>1 Jan 19 23:07:47 renanferrari: it might be. fwiw at work, the most-recent e.g. "current installs" data is from saturday. Jan 19 23:09:11 groxx: Oh, well... Thank you. Jan 19 23:09:33 TacticalJoke: sorry, 2>&1 Jan 19 23:09:49 renanferrari: I assume this means the app is out? typically we see publish -> first installs within 1-3 hours. Jan 19 23:09:51 i imagine you're trying to adb help 2>&1 | less that'll do the trick Jan 19 23:10:30 groxx: thanks a lot Jan 19 23:10:43 TacticalJoke: do you leave AS running all the time or just open/close it when you’re using it? Jan 19 23:10:56 Thanks, Danavu. Forgot about that. Jan 19 23:11:02 ultra-: All the time. Jan 19 23:11:03 no worries Jan 19 23:11:16 which OS? Jan 19 23:11:17 groxx: Sorry, what you mean? Jan 19 23:11:17 Danavu: To my surprise, that also works on Windows. Jan 19 23:11:24 ultra-: Windows. Jan 19 23:11:27 ok Jan 19 23:11:34 that.. definitely is a surprise Jan 19 23:11:38 maybe there’s something screwy with the osx version Jan 19 23:11:41 ultra-: Have you tried restarting adb when it happens/ Jan 19 23:11:44 windows cmd or cygwin? Jan 19 23:11:49 I tried with cmd.exe. Jan 19 23:11:53 yes and that didn’t fix it, but restarting AS did fix it Jan 19 23:11:54 wow. Jan 19 23:11:56 renanferrari: I'm guessing you're waiting for install numbers to appear? so you have released the app, people are (probably) using it, but the stats are delayed? Jan 19 23:11:59 i leave mine running all the time Jan 19 23:12:20 And you tried "adb kill-server && adb start-server", right? Jan 19 23:12:50 ultra-: the "sync" button in logcat - you mean the one with the "Restart" tooltip? Jan 19 23:12:56 no i just clicked the little circle arrow, so i suppose that doesn’t kill adb Jan 19 23:13:22 I've found that adb kill-server solves a lot of problems. Jan 19 23:13:25 the one with the two horizontal arrows is what i’m calling the sync button Jan 19 23:13:40 the circle one with the arrow is what i’m calling the restart button Jan 19 23:13:47 ultra-: try the bottom one here: http://cl.ly/image/1l0n313m3L1U Jan 19 23:13:54 groxx: Oh, actually the app is released for a few weeks now. It's just that I promoted it yesterday, saw a huge increase on the reviews and on other analytics tools, but nothing on Google Play yet. Jan 19 23:14:20 renanferrari: aah. yeah, i think that's normal. if you want something faster, you have to use e.g. Analytics or some 3rd party thing. Jan 19 23:14:26 groxx: yeah that one doesn’t do anything Jan 19 23:14:40 i suppose i don’t mind just restarting AS, but it seems kinda dumb Jan 19 23:14:42 That 'sync' button has the tooltip "Only Show Logcat From Selected Process", and it's an on-off one. Jan 19 23:14:52 ultra-: huh. usually that fixes my problems. but yeah, for some reason adb integration with IDEs seems really crappy. Jan 19 23:15:04 ultra-: fwiw when I have problems I usually just switch to pidcat for the day. Jan 19 23:15:42 Studio also sometimes has a several-second delay in printing things, which is annoying. Jan 19 23:16:01 groxx: Yeah, I'm actually using Flurry. But I thought my Google Play console was broken or something, haha. Thank you! Jan 19 23:16:27 at least it doesn’t have the problems that xcode has Jan 19 23:16:34 renanferrari: flurry gets unbelievably slow with some features, but yeah we do that too :) Jan 19 23:16:47 all that crap regarding provisioning profiles drives me insane, especailly when xcode doesn’t sync it all properly Jan 19 23:16:53 haha Jan 19 23:17:03 yeah, that flow is seriously messed up. Jan 19 23:17:16 structurally it makes sense, but holy cow did they screw up the UI. Jan 19 23:17:17 groxx: Have you used Mixpanel? I'm using that too. Jan 19 23:17:20 yeah device provisioning was terrible Jan 19 23:17:21 way overkill compared to what you have to deal with in android Jan 19 23:17:40 renanferrari: nope Jan 19 23:18:01 my thought was “i’m at least smart enough to write a program that works on the simulator, why the hell can’t i figure this out?” Jan 19 23:18:05 hi, does anyone know how to make a working selector for selecting child views in a recycleview? Jan 19 23:19:03 every solution i found until now didnt work, the only thing that works is that my item is clickable, and that it is selected...but it doesn't stay visually selected Jan 19 23:19:28 groxx: It's good. Fast, nice visuals. It has a cool live view feature. But I still think Flurry is more detailed. Jan 19 23:19:47 defuex: I've done next to nothing with recyclerview, but I get the feeling that for something like a selected view you might use an item decorator? Jan 19 23:19:59 I think you have to maintain selected state yourself too Jan 19 23:20:22 renanferrari: flurry is surprisingly decent for a free service, yeah. Jan 19 23:20:45 if i want to query IAP purchases in one activity and purchase them from a different activity, how do i share the instance of ServiceConnection, or should I create it twice? Jan 19 23:20:51 groxx: It really is. Jan 19 23:21:25 hmm i’m implenting IAP right now and i don’t even have something called ServiceConnection Jan 19 23:21:54 implenting Jan 19 23:21:54 im using the GestureDetectorCompat class groxx Jan 19 23:22:03 oh well I mean the IInAppBillingService (which uses ServiceConnection) Jan 19 23:22:56 anyway what's the best way to contact the IAP stuff from multiple activities? Jan 19 23:23:06 but it seems that the used item attribute android:state_activated = "true" won't work on my api level 18 ....havent tried it with an android L device though Jan 19 23:24:04 wish i could help, i just have my main activity getting callbacks and controlling everything from there Jan 19 23:25:04 notifies the proper authorities Jan 19 23:25:17 fakey: stick it in a Service perhaps? Jan 19 23:27:36 It is a service technically i think. does that mean it's already sharable between activities? Jan 19 23:32:39 Is it common place to load custom fonts onto your app? Jan 19 23:33:09 common? doubt it Jan 19 23:33:24 Its good to spruce things up though? Jan 19 23:33:26 i usually see the same font across all apps, although i can’t really say i pay attention unless a weird font is used Jan 19 23:33:41 it’s good to make it look slick while keeping it a standard, recognizable interface Jan 19 23:33:50 i find it weird that IAP implementations generally involve copy/pasting a lot of the example code. why such example code instead of adding the things like IAPHelper to the api? Jan 19 23:33:59 Got it Jan 19 23:34:02 err.. IabHelper Jan 19 23:34:03 unless your app has a totally custom UI anyway, like mine Jan 19 23:34:10 even then i use the default font Jan 19 23:34:19 what you makin? Jan 19 23:34:31 this thing http://www.sub-version.net Jan 19 23:34:43 working on going freemium with it Jan 19 23:34:45 you? Jan 19 23:34:56 fakey: IAP doesn’t need much code at all Jan 19 23:34:58 maybe a full description with code would be helpful to my problem. im using the new RecycleView for my application and testing it on a device with api lvl 18. when i click on a row of my recycleview it turns orange, because the state_pressed state is set to true, but it doesnt get to the state_activated = "true" statement and so it gets transparent again. the code of all 3 xml's used is here -> https://dpaste.de/zXkO ...please if some Jan 19 23:35:00 mine hardly has any Jan 19 23:35:07 Looks cool, good luck ultra- Jan 19 23:35:11 thanks Jan 19 23:35:51 the tutorial im lookint at says to put the .ttf in my assets folder Jan 19 23:35:53 but I cant find that Jan 19 23:36:07 ultra-: yeah? kinda seemed that way from reading the Implementing In-app Billing page but then I look at the example code and it's got tons of stuff, and a lot of reading about it i notice it's very common to just copy/paste code from the example Jan 19 23:36:51 fakey: my IAP implementation uses some callbacks and methods specific to my purchases (purchaseSpecificProductMethod, specificProductPurchasedNotifier) to make it easier to use, and there’s still very little code Jan 19 23:37:41 did you need to use any of the helper classes in the example code? Jan 19 23:37:48 OK, so I'm trying to get MaterialNavigationDrawer: https://github.com/neokree/MaterialNavigationDrawer, working, loading my libraries from a local repo, and I'm getting this error: Jan 19 23:37:51 http://pastebin.com/QAV7wkPc Jan 19 23:37:56 my IAP class extends activity while my main activity extends my IAP class, and it all works great Jan 19 23:38:02 but keep in mind that i don’t know wtf i’m doing Jan 19 23:38:13 lol :D Jan 19 23:38:29 i use IabHelper Jan 19 23:38:48 my app structure isn’t complex, i don’t use fragments or other activities or any of that Jan 19 23:39:12 i actually don’t know about using any of that, and don’t use xml and wrote a custom interface all in code Jan 19 23:39:17 yeah i'm looking at using IabHelper too. that's why i was wondering, why don't they just put IabHelper into the API itself? Jan 19 23:39:20 so i should just stop helping people Jan 19 23:39:58 i read that there’s not really a standard method because if you have to write your own, it’s harder to hack Jan 19 23:40:01 Anyone know where the assets folder is Jan 19 23:40:03 but that could have been for iOS haha Jan 19 23:40:59 ultra-: makes sense. i don't really care about hacking though, someone who can hack it maybe deserves to get it free. but, only if they don't share their hack... Jan 19 23:41:10 haha that’s how i look at it too Jan 19 23:41:14 i’m glad my app was good enough to steal Jan 19 23:41:35 i have a day job, anyway, and don’t expect to be able to quit it Jan 19 23:41:43 drose379: You'd have to create it. Jan 19 23:41:48 brb Jan 19 23:42:02 Ok, a stackoverflow answer says it should go into the main/ Jan 19 23:42:12 but im thinking it should go in res/ Jan 19 23:42:13 src/main/assets, I guess. Jan 19 23:42:24 Ok, main it is :) Jan 19 23:42:35 fakey: i do remember struggling with getting AS to recognize where are those extra files i downloaded Jan 19 23:42:44 I'm not certain, though. Jan 19 23:42:51 and in a sense it kind of exposed that i don’t know much about that, and now i don’t remember how i did it Jan 19 23:42:55 Ill give it a shot Jan 19 23:43:29 here's my build.gradle Jan 19 23:43:31 if you can get the line “import com.yourapp.app.util.IabHelper;” to work without an error, then you got it Jan 19 23:43:38 http://pastebin.com/NpJfUJhE Jan 19 23:43:58 ultra-: lol, thanks for the tip. I haven't tried it yet, just been reading about the implementation so far. Jan 19 23:44:05 drose379: If you right-click your app module, you can select New > Folder > Assets Folder. Jan 19 23:44:17 so uhh.. Jan 19 23:44:26 how do I debug an app that is being opened by another app through an intent? Jan 19 23:44:37 not getting log messages in logcat Jan 19 23:44:37 well good on you for reading before you just start pasting a bunch of stuff in Jan 19 23:44:47 and debug is not doing what I expected it to.. Jan 19 23:44:56 Great, thanks TacticalJoke Jan 19 23:45:17 tricknology: should still get logcat messages. but re debug: do you want to actually dive into a debugger? Jan 19 23:45:30 Hello! Anybody working with android wear? A question on is it possible to create custom watches? Not a face, but custom time dimension and behavior? For example 16 hours a day and counter-clockwise. Jan 19 23:45:42 I mean.. It might be useful but I think the log messages are enough Jan 19 23:45:52 I have 2 instances of Eclipse open Jan 19 23:46:01 one is parent app, one is child Jan 19 23:46:17 ah. I think that has a habit of breaking the logcat connection :\ Jan 19 23:46:21 at least, it did for me Jan 19 23:46:37 tricknology test on device Jan 19 23:46:41 `adb logcat` should still work though. Jan 19 23:46:42 lol Jan 19 23:46:51 tricknology: you might try adding a custom debug profile. look in ddms to find the per-app port for the other app you want to debug Jan 19 23:47:23 when you select the app in ddms, it assigns the 8700 port for that app, but there's also a port like 8701, 8702, etc. that's assigned for every process Jan 19 23:47:39 tricknology: otherwise, you can use Debug.waitForDebugger() before the relevant breakpoint (fully before, don't have it on the same line). then the app will freeze until you attach the debugger to the process, and then it'll be a normal debug session. Jan 19 23:48:01 hmm thankx groxx and JesusFreke Jan 19 23:48:46 question Jan 19 23:48:50 anybody know what I'm doing wrong in my build.gradle? lol Jan 19 23:48:56 if android is based directly off of java Jan 19 23:49:07 does that mean that anything I do in Java can be done in android? Jan 19 23:49:18 You can't do Java 8 stuff in Android. Jan 19 23:49:18 close, but not exactly Jan 19 23:49:33 e.g. android doesn't have the normal java UI classes. swing, etc. Jan 19 23:49:34 Well, for certain definitions of "can't". Jan 19 23:49:50 android wear, anyone? Jan 19 23:49:56 Soemday Jan 19 23:50:02 when they get better inque Jan 19 23:50:11 and any JNI library would need to be compiled for android Jan 19 23:50:25 which means I’ll be behind.. but I don’t want to pay $300 to be an early adopter Jan 19 23:50:48 so android is based off of java Jan 19 23:51:00 but it's its own thing Jan 19 23:51:09 more or less Jan 19 23:51:19 intriguing Jan 19 23:51:20 Yeah, I think it's fair to say that. It contains an Apache Harmony Java implementation. Jan 19 23:51:22 YungDaVinci: well, it's Java. but it pretty much only includes the core framework. Jan 19 23:51:29 swing / awt / etc aren't part of it. Jan 19 23:51:41 good to know Jan 19 23:51:45 it uses a totally different bytecode, and has a utility to convert java bytecode to android's bytecode Jan 19 23:52:30 and it has it's own implementation of the core java libraries, that is based on the open source harmony implementation Jan 19 23:52:34 its* Jan 19 23:52:56 Q: I am an engineer and a softwere programmer. Am I a software engineer? Jan 19 23:53:46 I would say no.. Jan 19 23:53:54 Isn't a programmer a software engineer? Jan 19 23:53:59 no wya Jan 19 23:54:02 not even close Jan 19 23:54:03 well, find a definition of software engineer. Jan 19 23:54:07 I'm sure there are many :) Jan 19 23:54:15 “A software engineer is a licensed professional engineer who is schooled and skilled in the application of engineering discipline to the creation of software. A software engineer is often confused with a programmer, but the two are vastly different disciplines.” Jan 19 23:54:26 parsing error: "engineer", "software", and "programmer" are not unambiguously defined. Jan 19 23:54:27 I don’t have my P.E. in Software Engineering Jan 19 23:54:43 you have to take the EF test to become an EIT Jan 19 23:54:49 "Software engineering is the study and application of engineering to the design, development, and maintenance of software." Jan 19 23:54:55 then an licensed PE has to stamp you to becoem a PE Jan 19 23:54:58 then you take the PE test Jan 19 23:55:09 to get licensed as a software engineer Jan 19 23:55:16 So hard to define any of these terms. Jan 19 23:55:19 there are certification boards fwiw. Jan 19 23:55:19 yeah right? Jan 19 23:55:24 yeah Jan 19 23:55:25 I know Jan 19 23:55:28 I am EIT in chemical Jan 19 23:55:38 but it looks like I might never use it haha Jan 19 23:55:39 my job title includes the term "software engineer", but I have no related licenses. Jan 19 23:55:44 * JesusFreke shrugs Jan 19 23:55:50 yeah, same. Jan 19 23:55:51 they can call you what you want Jan 19 23:55:54 *they Jan 19 23:56:02 Well I am an engineer.. and I develop software.. Jan 19 23:56:07 software engineer it is Jan 19 23:56:10 my title is Hex Machine Jan 19 23:56:11 Android Engineer at that Jan 19 23:56:13 lol Jan 19 23:56:16 I'm sure the licensing bodies would love for the definition to include their license :) Jan 19 23:56:21 i’m not an engineer because i only have a couple associates degrees Jan 19 23:56:31 A software engineer is a licensed professional engineer... Jan 19 23:56:32 even though those associates degree have “engineering” in them Jan 19 23:56:44 tricknology: licensed by who? Jan 19 23:56:48 to be an engineer you have to go to an ABET accredited school Jan 19 23:56:50 I'll give myself a license. does that count? :) Jan 19 23:56:57 electronics and computer engineering technology and electronics technology… i guess only one has “engineering” in it Jan 19 23:57:12 NCEES Jan 19 23:57:17 that;s the licensing board Jan 19 23:57:25 i prefer “jack of all trades” or “bad ass" Jan 19 23:57:27 http://ncees.org/about-ncees/news/ncees-introduces-pe-exam-for-software-engineering/ Jan 19 23:57:45 P.E = professional engineer Jan 19 23:57:59 you could go dev software for the govt if you want.. you get a little stamp Jan 19 23:58:02 might be necessary for some safety programming? Jan 19 23:58:03 tricknology: of course the licensing body's definitions will stipulate their license Jan 19 23:58:05 yesss Jan 19 23:58:26 From what I’ve been told.. PE’s review the work of other engineers Jan 19 23:58:44 if they stamp off on something saying they reviewed it.. and they didn’t.. and something goes wrong. they can lose their license Jan 19 23:58:47 although I've been reading some of the Toyota "unintended acceleration" study findings. kinda makes me doubt there's any requirements _period_ for writing safety-critical code. Jan 19 23:58:55 That was BS Jan 19 23:59:06 people were getting their aftermarket floor mats stuck Jan 19 23:59:23 most shocking was the cop who was killed with his family Jan 19 23:59:31 150 mph and didnt think to shift to neutral Jan 19 23:59:44 depends on who you ask, of course :) and yes, neutral / key off / etc are all sane things that many people didn't do. Jan 19 23:59:49 anyway. was browsing this: http://betterembsw.blogspot.com/2014/09/a-case-study-of-toyota-unintended.html?m=1 Jan 19 23:59:53 YOu can even shift into reverse Jan 20 00:00:05 gonna be violent but.. worth it Jan 20 00:00:27 probably crazy biased, but there are some omgs like slide 38 Jan 20 00:00:47 Hey how much do you guys charge for a freelance/moonlightning app? Jan 20 00:01:05 notably the cyclomatic complexity for the throttle code. 146 is beyond ludicrous. Jan 20 00:01:50 tricknology, You can't always shift into reverse Jan 20 00:02:07 I did in my camry once Jan 20 00:02:10 never did it again Jan 20 00:02:13 My mother tried that when I was a kid and the brakes failed Jan 20 00:02:17 and then the engine leapt out of the hood Jan 20 00:02:27 shortly thereafter my transmission took a shit Jan 20 00:02:31 like a few months later Jan 20 00:02:37 well.. can't always does not mean can't at all.. I'd certainly kick it out of gear or kill the engine thuogh Jan 20 00:02:49 105 of 343 switch statements with no default? Jan 20 00:02:51 good lord Jan 20 00:02:59 yeah. it's a frightening slideshow. Jan 20 00:03:22 haha spaghetti on slide 38 Jan 20 00:03:38 Codesonar results: 2272 globals. Jan 20 00:04:00 i'm not sure if that part implies "and referenced with varying types" or if it just means there were that many globals Jan 20 00:04:08 Not sure Jan 20 00:04:11 depends on the code they use Jan 20 00:04:30 C++? Jan 20 00:04:48 keep in mind the requirements for emebedded real-time programming are often vastly different than that for, e.g. a typical android application :) Jan 20 00:05:03 of course. but 146? that takes effort. Jan 20 00:05:11 g00s: fyi http://blog.margaretleibovic.com/tagged/search Jan 20 00:06:00 and there's still things like multi-thousand-line functions. there's no benefit there - you can inline-compile functions that large, but that's crazy for human reasoning. Jan 20 00:06:08 How do you get a ListView to have inset dividers as shown in the material design guidelines (http://www.google.com/design/spec/components/dividers.html#dividers-usage)? Jan 20 00:06:45 So.. how much do you guys charge for a moonlighting/freelance gig? Jan 20 00:06:48 also: no error-detecting ram? that goes beyond "wtf" in a safety-critical piece of hardware. Jan 20 00:06:48 14 view states Jan 20 00:06:51 4 main areas Jan 20 00:06:58 interacts with backend Jan 20 00:07:03 video/pictures Jan 20 00:07:10 database.. Jan 20 00:07:17 3-4 months Jan 20 00:07:29 1 meeeeelion dollars. Jan 20 00:07:35 lol Jan 20 00:07:42 I don’t want to lowball myself Jan 20 00:07:58 ~15-20k? Jan 20 00:08:00 capella thanks - did i miss the part about disabling it ? Jan 20 00:08:33 woah you can charge 20 grand for an app? Jan 20 00:08:49 I guess if it takes 4 months full-time to write Jan 20 00:09:07 20k is low for a non-trivial app Jan 20 00:09:09 heh Jan 20 00:09:25 you serious? Jan 20 00:09:32 video? i'd add another $40k haha Jan 20 00:09:43 drose379: to write it. not to sell it on the play store for that much. Jan 20 00:09:50 who the hell is paying 20K for an app? Jan 20 00:10:02 No I know that JesusFreke :) Jan 20 00:10:03 surf2b1: hm. it's possible one of the "nested data" listview types could do that, but tbh I'd just do it by hand. make another "kind" of view, that's just 1dp tall, and add it as an item in the list's "data" Jan 20 00:10:09 drose379: someone who wants to sell it on the play store? :) Jan 20 00:10:21 A compnay with an app already out on iOS Jan 20 00:10:24 oh yeah API calls too Jan 20 00:10:31 ahh Jan 20 00:10:52 groxx: Thanks. I would like to avoid adding another view. Just found this answer on SO http://stackoverflow.com/a/16768738/1048340. Looks promising. Jan 20 00:11:00 JF the app is free. Jan 20 00:11:01 there are a bunch of these http://www.kinvey.com/app-cost-estimator Jan 20 00:11:21 g00s awesome thanks!!! Jan 20 00:11:38 yw Jan 20 00:11:40 Hwo do you handle maintenance? Jan 20 00:11:41 http://howmuchtomakeanapp.com/estimator Jan 20 00:11:44 or updates? Jan 20 00:12:45 tricknology, how many hours of work to be guaranteed per day? 20k is good only for moonlighting Jan 20 00:12:58 moonlighting Jan 20 00:13:06 4-6 horus a day Jan 20 00:13:08 8-12 on weekends Jan 20 00:13:13 surf2b1: fwiw I've had mixed results with ListView's dividers. the behavior changes between OS versions, and they're essentially uncontrolled. Jan 20 00:13:14 where is the company? Jan 20 00:13:21 Los Angeles Jan 20 00:13:27 surf2b1: if it works though, go for it. Jan 20 00:13:32 There are a lot of startups out here Jan 20 00:13:34 surf2b1: that's definitely the easy option Jan 20 00:13:35 and in the bay Jan 20 00:13:58 For setting full screen activity backgrounds with images Jan 20 00:14:08 groxx: if it works after testing on several devices I'll use it, if not I'll add another view at the bottom. :) Jan 20 00:14:09 Whats the best way to do that? Jan 20 00:14:12 full remote? Jan 20 00:14:51 jesus christ Jan 20 00:15:02 kinvey says 154,145 Jan 20 00:15:10 well for DIY Jan 20 00:15:14 kinvey is 53.778 Jan 20 00:15:28 tricknology there are a few calculators, try each for datapoints Jan 20 00:16:09 surf2b1: you could set the background of the views inside getView, and have one with a line, one without. if you cache the drawables it'll probably perform fine too. Jan 20 00:16:23 second one estimate 33.6 k but didnt ask about media Jan 20 00:16:32 surf2b1: not always a realistic option, but just to give you ideas :) Jan 20 00:17:25 looking at some other apps that have implemented the inset dividers now. Looks like it is not apart of the view and is the divider. Jan 20 00:17:31 kinvey says $10k difference between "polished" and "mvp", but $25k between "no login" and "social". that seems a little off. Jan 20 00:17:43 are there lots of custom views? do you have to do the graphics work? Jan 20 00:17:56 Right? It will be social Jan 20 00:18:06 but those aren’t /that/ bad Jan 20 00:18:36 i wonder what the cuclomatic complexity on the app is. lol Jan 20 00:18:46 there should be a converter from CC to $ Jan 20 00:18:59 tricknology: basically it penalizes you for branches, recursion, etc. 146 is huge. Jan 20 00:19:08 i see Jan 20 00:19:17 so not complexity to build.. but like.. x ln x Jan 20 00:19:52 Does a Layout background fie have to be a certain format? Jan 20 00:20:35 drose379: like, an image? Jan 20 00:20:59 yeah, I did android:background in my layout and im getting a rendering problem Jan 20 00:21:10 failed to convert...X into a drawable Jan 20 00:21:15 JesusFreke: Just out of curiosity, what is your view on CyanogenMod and other ROMs becoming companies (like Miui)? Since you are basically the guy that started it all.... Jan 20 00:21:53 surf2b1: more power to them :) Jan 20 00:22:06 cool Jan 20 00:22:30 JesusFreke: where do you work now? Do you still work on smali? Jan 20 00:22:31 personally, I'm happy to see CM be doing so well, and have that sort of opportunity Jan 20 00:23:27 yeah, still working on smali on the side Jan 20 00:23:55 most recently working on a smali plugin for IDEA Jan 20 00:24:04 Hi all Jan 20 00:25:08 Am i able to generate 3 TableLayouts programmatically and add it to a vertical LinearLayout ? Jan 20 00:26:49 fLm: yes :) Jan 20 00:27:05 i'm trying to do this, but it's not showing up :/ Jan 20 00:27:24 drose379: dunno. if it's an image, it has to be a format that Bitmap can parse - stick to jpeg and png and you're probably fine. Jan 20 00:27:43 figured out I had a capital letter Jan 20 00:27:51 only accepts lowercase I guess Jan 20 00:27:54 drose379: aah. yeah, I hate that part. Jan 20 00:28:07 I always forget, though more and more I just do all files lowercase anyway Jan 20 00:28:19 Yeah, I gotta start doing that Jan 20 00:31:34 in a class that extends ImageView, this.getDrawable().getIntrinsicWidth() return exactly 3 times the size of the drawable (rather than the size of the drawable, like i expected). what am i doing wrong? Jan 20 00:33:17 n-st: are you on an xxxhdpi device? Jan 20 00:33:31 groxx: no clue. is the nexus 5 one of those? Jan 20 00:33:55 it might be xxhdpi I think? or I forget what the 3x density is. Jan 20 00:34:28 xxxhdpi is BEST dpi. Jan 20 00:34:40 eh. either way. is the image scaled? and are you perhaps not expecting it to be in pixels? Jan 20 00:35:15 does volley only work for port 80 Jan 20 00:35:21 because my server is running @ port 3000 Jan 20 00:35:29 JesusFreke: it is hard to beat xxxhdpi, yeah. it's like negative pixelization Jan 20 00:35:32 http://puu.sh/eL4Jx/b7deb2d9b4.png Jan 20 00:35:41 the volley request is not hitting my web server to fetch the e-mails Jan 20 00:35:45 groxx: I was referring more to the xxx part :p Jan 20 00:36:02 http://puu.sh/eL4Mf/8a794a4288.png my node server just chillin, nothing hit it Jan 20 00:36:10 in your url you have to specify the port i guess Jan 20 00:36:16 fLm: i did Jan 20 00:36:26 i have no errors or anything Jan 20 00:36:30 the request is not being made. Jan 20 00:36:41 get request ? Jan 20 00:36:43 DragonPunch: you created a request, but did you actually execute it? Jan 20 00:36:48 yeh Jan 20 00:36:50 let me link full code Jan 20 00:36:57 you need to add it to the queue Jan 20 00:37:10 http://hastebin.com/vequhurutu.java Jan 20 00:37:11 i did Jan 20 00:37:17 DragonPunch: also, you might try specifying the protocol. http://104.131..." Jan 20 00:38:02 groxx: yes, the image is scaled. i'm trying to get its original size (the dimension of the image file i put into the resource folder) because i want to mark a spot given as the position of a pixel on the original bitmap Jan 20 00:38:15 specifcying the protocol didnt help Jan 20 00:38:38 DragonPunch: print out the error in the onErrorResponse :) Jan 20 00:38:39 you need to :) Jan 20 00:40:22 i've moved the image from drawable-mdpi to drawable-nodpi, which cause it to be centered in the imageview rather than scaled to fill it, so i changed the scaleType to fitCenter. now the image fill the ImageView and the intrinsicWidth/Height are correct, but when i draw a circle on the ImageView's canvas, it is scaled to three times the size i set it to... Jan 20 00:40:48 fLm, JesusFreke, okay im about to runn it lol *scared* Jan 20 00:40:56 how do i check the errorlo Jan 20 00:41:00 errorlog Jan 20 00:41:05 VolleyLog.d(TAG, "Error: " + error.getMessage()); Jan 20 00:41:07 (ugh, please ignore the spelling mistakes, it's almost 2 a.m. :|) Jan 20 00:41:09 i put that Jan 20 00:41:10 logcat.. Jan 20 00:41:12 okay Jan 20 00:41:39 I would just use Log.d directly Jan 20 00:41:42 yeh Jan 20 00:41:46 i always use Log.d :) Jan 20 00:41:47 n-st: heh. np :) I was just wondering which folder it was in, so that answers that question at least. Jan 20 00:41:55 never used VolleyLog Jan 20 00:42:14 n-st: this isn't an area I have much experience in, so apologies for guesses. and hopefully someone else will come along and help too. Jan 20 00:42:28 you can use VolleyLog for the official production code, but for a troubleshooting step like this, using Log.d has less chance of.. not working. Jan 20 00:42:37 http://hastebin.com/afunafapax.avrasm Jan 20 00:42:45 i.e. I don't know if VolleyLog has some mechanism to control logging level, etc. Jan 20 00:42:56 n-st: I'm _guessing_ that fitCenter is giving you a 3x (ish) scaled projection for your canvas. you might be able to getMatrix() and get the x/y scale. Jan 20 00:42:58 i dont think its saying anything helpful Jan 20 00:43:34 DragonPunch: are you sure you recompiled? I don't see "Error:" there at all. Jan 20 00:43:48 groxx: getMatrix is deprecated for some reaso Jan 20 00:43:56 really? interesting Jan 20 00:43:58 also, use Log.d like we mentioned :) Jan 20 00:44:32 JesusFreke: umm well i look at my web server again and it hit it. Jan 20 00:44:32 n-st: doesn't seem to be in the docs... eh. maybe .getScaleX() on the imageview works? Jan 20 00:44:38 JesusFreke: but it took a while to hit it Jan 20 00:44:39 heh Jan 20 00:44:48 a good 30s Jan 20 00:44:50 what the hell Jan 20 00:44:57 why does it take that long to make a network request Jan 20 00:45:11 groxx: getMatrix *on the canvas* is deprecated. getMatrix *on the imageview* isn't, so apparently you're supposed to use that now Jan 20 00:45:25 you run it locally ? Jan 20 00:45:27 no Jan 20 00:45:32 im running web server on digitalocean Jan 20 00:45:48 what do you return ? just JSON ? Jan 20 00:46:08 n-st: is it perhaps just getMatrix() that's deprecated, not getMatrix(Matrix m)? Jan 20 00:46:21 json array Jan 20 00:46:31 thats weird yes :) Jan 20 00:46:42 json array is weird? Jan 20 00:46:47 apparently not. odd that it's not in the docs. Jan 20 00:47:35 No Jan 20 00:47:45 that it takes 30 seconds to fetch Jan 20 00:47:47 just Json Jan 20 00:47:48 .. Jan 20 00:48:45 groxx: i was *multiplying* my circle radius with the current image scale rather than *dividing* it. duh! :| Jan 20 00:49:36 groxx: the old scaling setting somehow counteracted that, but since i disabled, my dots became huge Jan 20 00:49:38 DragonPunch, mine takes 548 ms Jan 20 00:49:50 to fetch JSON from API Jan 20 00:50:00 also with Volley Jan 20 00:50:29 n-st: heh. well, thanks for pointing out the getMatrix deprecation :) I'll have to find out the specifics there some time. Jan 20 00:50:54 groxx: just relaying what android studio told me ;) Jan 20 00:51:12 (which i haven't updated for months, so be careful about what i tell you...) Jan 20 00:51:15 werid Jan 20 00:51:23 yeah, it's part of the API16 diff. but nothing else seems to mention it. Jan 20 00:51:26 fLm: how can i get volley to print out a token from sharedPrfernces Jan 20 00:51:28 in log cat Jan 20 00:51:30 groxx: see also: https://stackoverflow.com/questions/13210340/what-is-the-alternative-for-deprecated-canvas-getmatrix Jan 20 00:51:34 closest I can guess is that it's related to https://code.google.com/p/android/issues/detail?id=24517 Jan 20 00:51:42 because my web server it saying no token is being recieved from header Jan 20 00:51:52 Ohh Jan 20 00:51:59 you need to override the headers Jan 20 00:52:05 i did Jan 20 00:52:09 what should the dimentions of a full screen background be Jan 20 00:52:11 http://puu.sh/eL6Uf/648530a9c8.png Jan 20 00:52:11 for an activity Jan 20 00:52:24 n-st: android documentation is so sad-inducing. Jan 20 00:52:43 and token is not null ? Jan 20 00:53:00 fLm: look http://puu.sh/eL6Zh/2603ac2f71.png Jan 20 00:53:10 my server is saying it's undefined Jan 20 00:53:17 how can i log cat to see token is actually set Jan 20 00:53:28 groxx: really? it's one of the best i've seen so far! Jan 20 00:53:42 n-st: ouch. can't imagine what you came from D: Jan 20 00:53:47 (the other major ones being python, java, glusterfs and dovecot) Jan 20 00:54:00 Log.d("TOKEN",token); ? Jan 20 00:54:16 ever tried setting up realtime master-master replication for a dovecot imap server? :P Jan 20 00:54:26 okay let me try it Jan 20 00:54:35 im going to put it inside of onCreateView of my fragment Jan 20 00:54:44 yes Jan 20 00:54:49 after your this.token Jan 20 00:55:16 n-st: personally, I did iOS first. that documentation is way more sane and precise (and accurate). you can read the docs, assume they're correct, and build a correct thing on your first try. On android? you've also gotta check Stack Overflow. Jan 20 00:55:47 okay i did it Jan 20 00:55:51 n-st: and no :) mail servers (and headless mail clients) seem like they're built on crazy Jan 20 00:55:51 but theres alot o fcrap in my logcat Jan 20 00:55:54 how do i filter it out Jan 20 00:56:04 try asking google Jan 20 00:56:09 * g00s punches DragonPunch Jan 20 00:56:16 http://puu.sh/eL7qF/26cadda838.png Jan 20 00:56:17 lal Jan 20 00:56:34 in the search bar Jan 20 00:56:36 type TOKEN Jan 20 00:56:42 ok Jan 20 00:56:50 sugarrush Jan 20 00:56:51 okay Jan 20 00:56:53 it printed out my token Jan 20 00:57:02 http://puu.sh/eL7xf/1c62641d0a.png Jan 20 00:57:22 and its the right token ? Jan 20 00:57:24 yeah Jan 20 00:57:26 dammit Jan 20 00:57:28 so it works :) Jan 20 00:57:35 what the hell Jan 20 00:57:40 now my web server starts recognizing the token Jan 20 00:57:41 hmmm Jan 20 00:57:42 -_- Jan 20 00:57:44 xD Jan 20 00:58:02 now its not recognizing the token Jan 20 00:58:06 what the fuck is going on Jan 20 00:58:23 fLm: does volley make multiple request Jan 20 00:59:34 time to debug with cURL Jan 20 00:59:40 hhnnrrgg Jan 20 00:59:46 it requests when you add it to the Queue Jan 20 01:07:05 ffffuuuu... why can a parent fragment find a child fragment, but the child fragment returns null for getParentFragment() ? Jan 20 01:11:42 I'm guessing it's more complex than the situation covered by "If this Fragment is attached directly to an Activity, returns null". Jan 20 01:11:51 s/this/the parent/ Jan 20 01:12:05 Wait, never mind. I misread the documentation. Jan 20 01:13:10 yeah. in onCreateView of fragment A, I get the fragment manager, and find fragment B. it exists. I call a method on B, which calls getParentFragment(), which normally returns A. (yes, this is not great design. it is what it is though.) Jan 20 01:13:48 ah, wait, I typed that wrong. B doesn't return A, B returns a different fragment (which never goes away / never gets detached) Jan 20 01:15:59 groxx: just tried my app on a different device (samsung galaxy s2 this time) and noticed the circles still don't scale correctly :| Jan 20 01:16:25 but that's a task for tomorrow, err... today after i've slept ;) Jan 20 01:16:59 n-st: erg. well, good luck :) just watch out that screen density is inferred in a number of places - find and eliminate if necessary, is generally what I find works Jan 20 01:18:13 well, thanks for your help and have a good night (eventually) ;) Jan 20 01:18:22 What is a good resolution for an activity background image? Jan 20 01:18:38 drose379: eleventy billion pixels Jan 20 01:18:54 240 was making the app crash :) Jan 20 01:19:39 240px? shouldn't cause any problems, unless you're crazy low on memory. Jan 20 01:19:43 well, plus/minus fragmentation. Jan 20 01:19:57 pixels per inch Jan 20 01:20:34 height: 500px Jan 20 01:20:39 wait oops Jan 20 01:20:44 height: 779 pixels Jan 20 01:20:49 width: 500 pixels Jan 20 01:20:57 Res: 72 pixels per inch Jan 20 01:21:07 sound bad? or am I facing a different problem Jan 20 01:22:04 almost definitely a different problem. what's the crash? Jan 20 01:22:40 log cat is blank for some reason: Just my slow laptop, but I got it to show the exception once: lemme find it Jan 20 01:23:02 groxx InflateException Binary XML file line #1 Jan 20 01:23:21 ah. xml bug. those are fun to track down :| Jan 20 01:23:26 full stacktrace plz? Jan 20 01:23:42 I like cant get it Jan 20 01:23:49 I try to open the app, it crashes, logcat is blank Jan 20 01:24:08 you'll probably have to turn off your app filter, the OS is reporting it because your app won't fully start Jan 20 01:24:26 How do I do that Jan 20 01:24:55 Android Studio: in the Android/ddms bottom-tab, it's on the top right corner. should be a dropdown that says "app: com.package.name" Jan 20 01:25:45 I need to open the logcat first right Jan 20 01:26:17 yeah Jan 20 01:26:32 Can i do that without running the app\ Jan 20 01:26:36 yep Jan 20 01:26:52 just click the "6: Android" thing on the bottom edge Jan 20 01:27:47 cant even find that Jan 20 01:28:15 looks like this to me: http://cl.ly/image/2X3C0F0w2F3P Jan 20 01:28:44 ahh im missing tht menu Jan 20 01:29:26 which tool window is that? Jan 20 01:29:27 drose379: odd. looks like "tools -> android -> android device monitor" might show it Jan 20 01:29:37 whups. or that's ddms. Jan 20 01:29:53 so its not that? Jan 20 01:29:55 On Windows it's in View > Tool Windows > Android. Jan 20 01:30:06 views -> tool windows -> android works for me Jan 20 01:30:14 Alt+6 on Windows. Maybe Option+6 on MacOSX. Jan 20 01:30:22 Got it Jan 20 01:30:38 Ok so groxx I need to shut something off? Jan 20 01:30:59 Unless I try to run it again and see if the error shows Jan 20 01:31:27 top right corner of the log area is a dropdown - switch it to 'no filters' Jan 20 01:32:20 Ok, did that. Gonna try again. Im running this on an actual device not an AVD is that ok Jan 20 01:32:34 yup Jan 20 01:32:37 So, I finally have my web server setup and now I'm trying to make a volley request to it for grabbing some JSON and display into list view. Jan 20 01:32:39 http://hastebin.com/raw/nuwojubawi Jan 20 01:32:49 the user token is: sugarrush Jan 20 01:33:03 but im running it on my phone, and my list view is still empty Jan 20 01:33:04 Dat indentation tho. Jan 20 01:33:11 im sorry let me fix it Jan 20 01:33:19 It's okay; I'm kidding. :) Jan 20 01:33:30 ok lol Jan 20 01:33:33 so yeah Jan 20 01:33:36 it hits my web server Jan 20 01:33:40 you can even curl it Jan 20 01:33:42 DragonPunch: add adapter.notifyDataSetChanged after all the email adds. Jan 20 01:33:55 DragonPunch: the adapter doesn't know that you're changing its contents unless you tell it Jan 20 01:34:30 i did Jan 20 01:34:31 its at the end Jan 20 01:34:48 http://puu.sh/eLcwj/42eec15f4e.png Jan 20 01:34:58 DragonPunch: that's running before your request ever executes Jan 20 01:35:16 aka "that's not how asynchronous works" Jan 20 01:35:18 hmm Jan 20 01:35:28 where should i put it Jan 20 01:35:33 inside of the for loop? Jan 20 01:36:06 probably after. it only needs to be called after all the changes. Jan 20 01:36:39 hmm Jan 20 01:36:43 yeah i tried to put it after before Jan 20 01:36:49 but it gave me a red line so i took it out Jan 20 01:36:54 i declared it as final just now and put it back in Jan 20 01:37:01 and it worked Jan 20 01:37:03 sweeet Jan 20 01:38:05 groxx whenever I do no filter I get so much output my laptop freezes Jan 20 01:38:11 drose379: haha Jan 20 01:38:28 drose379: k, leave the filter on, and open a terminal for `adb logcat`. it should have no trouble keeping up. Jan 20 01:38:34 Studio is slow there, for some reason Jan 20 01:39:17 I guess you could also set the filter level to 'error'. Jan 20 01:39:28 Log level: Error Jan 20 01:39:51 Which one is better? Jan 20 01:41:18 whichever one is done first. Jan 20 01:42:02 Ok I think I found the error Jan 20 01:42:41 Oh, its saying its not with the image but with the font Jan 20 01:42:48 Im trying to load a custom font Jan 20 01:43:20 Want to see the line that causes it? Jan 20 01:44:49 Sure. #yolo Jan 20 01:45:18 :) Jan 20 01:45:21 Typeface tf = Typeface.createFromAsset(getAssets(),"fonts/elkwood.ttf"); Jan 20 01:45:58 What exception is being thrown? Jan 20 01:46:16 Caused by: java.lang.RuntimeException: native typeface cannot be made Jan 20 01:47:45 And the font is at main/src/assets/fonts/elkwood.ttf? Jan 20 01:48:14 shit Jan 20 01:48:23 shit Jan 20 01:48:24 shit Jan 20 01:48:24 shit Jan 20 01:48:33 its at just assets/ Jan 20 01:48:39 fonts doesnt exist :) Jan 20 01:48:45 Oops, I meant "src/main/...". Jan 20 01:49:14 so I should just do "filename" Jan 20 01:49:19 no /filename Jan 20 01:49:19 ? Jan 20 01:50:25 I think it should be in src/main/assets/fonts/elkwood.ttf. Not certain, though. Jan 20 01:50:46 s/in/at/ Jan 20 01:51:36 "native typeface cannot be made" is such an excessively generic error message :( Jan 20 01:51:52 Yeah. Jan 20 01:51:57 haha, hey, she works Jan 20 01:52:01 "A problem has occurred." Jan 20 01:52:22 Literally Jan 20 01:53:27 Hmm, does Ctrl+Alt+Space (or equivalent) do anything for you guys? Here, it always seems to be the same as Ctrl+Space. Jan 20 01:53:34 In Android Studio or IntelliJ. Jan 20 01:54:25 gives me a different hint at the bottom, nothing else I can see. should it be different? Jan 20 01:54:57 eh, maybe that hint is random Jan 20 01:55:07 though ctrl-space + alt-space is pretty cool Jan 20 01:55:27 It should be "Class Name Completion". Jan 20 01:55:56 Alt+Space just opens the window menu here. :) Jan 20 01:56:09 might be context sensitive? Jan 20 01:57:06 Okay, if I type "IOE" and then Ctrl+Alt+Space then I get more than with Ctrl+Space. Jan 20 01:57:23 It's the equivalent to pressing Ctrl+Space twice, it seems. Jan 20 01:57:25 try hitting ctrl-space again, they both seem to fill in slowly to me Jan 20 02:06:54 Hey guys. lifecycle Q here: I am starting my app from another app. Now I want to finish from my app and start up the second app. But when I finish() I get the home screen of my app, not the calling app.. Jan 20 02:09:08 By "home screen of my app", do you mean "main Activity of my app"? Jan 20 02:10:08 yessss Jan 20 02:10:20 What are you calling "finish()" on? A secondary Activity? Jan 20 02:10:33 yes Jan 20 02:10:47 I am starting the activity with startActivityForResult() Jan 20 02:10:58 setting Intent.Action_Send Jan 20 02:11:14 Secondary activity receives the bundle fine Jan 20 02:11:22 navigates through a few more activities. Jan 20 02:11:53 then finish() to main activity. But I would like to finish to calling activity, which is a different app Jan 20 02:13:08 I guess one solution would be to say "setResult(RESULT_CANCELED); finish();" in the second Activity. Then, when the main Activity gets this result, it finishes itself. Not sure wehther that's the best solution, though. Jan 20 02:13:48 nope, I need the secondary app to be logged in and active in the background Jan 20 02:13:51 or at least logged in Jan 20 02:14:10 wel.. it would work.. because it doesnt logout onPause or onDestroy Jan 20 02:14:13 tricknology: so... app A launches activity X in your app, you finish() in X, and they see Y in your app? Jan 20 02:15:07 A -> X -> Y -> Z -> finish() -> W Jan 20 02:15:23 hm. Jan 20 02:15:36 I might have foudn something though Jan 20 02:15:50 you might want / need to FLAG_ACTIVITY_FORWARD_RESULT along the way Jan 20 02:15:55 some else is launching an intent that is goign to my main activity Jan 20 02:16:27 Thanks for the help today groxx TacticalJoke Jan 20 02:16:30 Im out for the night Jan 20 02:17:14 not sure that’s what I want Jan 20 02:17:30 I’ll keep digging. thanks.. just need to make sure finish() is really what I should be doing Jan 20 02:17:39 and that it’s behavior is indeed strange.. Jan 20 02:17:56 (there could be some other wrapped up in here starting that activity too :( ) Jan 20 02:18:08 yeah. it does sound like something's tweaking your stack in an unexpected way. Jan 20 02:18:31 `adb shell dumpsys activity activities` and see if there's something odd? Jan 20 02:18:39 but it's probably in code somewhere. Jan 20 02:19:18 omg man.. Jan 20 02:19:23 there are so many activities in this project Jan 20 02:20:10 61 Jan 20 02:20:42 separate pieces of code? zomg Jan 20 02:20:57 no I didn’t get that from there Jan 20 02:20:58 lol Jan 20 02:21:02 counting activities in the manifest Jan 20 02:21:10 Recent = 11 Jan 20 02:22:19 Does the app have to be open to reveive the intent? Jan 20 02:22:43 nope Jan 20 02:23:05 I forget if this will cause that behavior, but: do you have launchMode="singleTask" anywhere? Jan 20 02:24:31 I don’t think so.. Jan 20 02:27:37 Hey guys, I'm getting an error "replace (int, android.support.v4.app.Fragment) in FragmentTransaction cannot be applied (int, com.mikerinehart.navdrawertest2.HomeFragment)" on line 78 of this: http://pastebin.com/ZJWCLBLB. Any ideas? Jan 20 02:30:20 t0astt: does HomeFragment extend the support fragment, or the SDK fragment? Jan 20 02:31:22 SDK fragment I think Jan 20 02:31:37 that's my guess anyway, yeah Jan 20 02:31:54 Do all android phone cameras use a bayer image filter? Jan 20 02:32:04 groxx: public class HomeFragment extends Fragment { Jan 20 02:32:24 whats the import? Jan 20 02:32:29 for that fragment in homefragment Jan 20 02:32:29 at some point here, I really want to make an annotation processor that just shows warnings / errors on silly mistakes like that. Jan 20 02:32:33 lol Jan 20 02:32:39 groxx, tricknology: import android.app.Fragment; Jan 20 02:32:47 theres the problem Jan 20 02:32:47 theres ur problem Jan 20 02:32:53 you need to import app compat fragment Jan 20 02:33:06 just delete that import and hover over Fragment Jan 20 02:33:19 it should give you the option to import android.support.v4.app.Fragment Jan 20 02:33:27 groxx did you see this http://hannesdorfmann.com/annotation-processing/annotationprocessing101/ Jan 20 02:33:30 ah, looks like it works now Jan 20 02:33:36 :) yay! Jan 20 02:33:42 thanks guys, let me test it Jan 20 02:33:43 but first Jan 20 02:33:50 is there any downside to using the app compat? Jan 20 02:33:57 g00s: nope. will read. Jan 20 02:34:06 for annotations Jan 20 02:34:32 t0astt, I’m interested in knowing that answer myself Jan 20 02:34:41 it makes coding more of a bitch because of things liek you just ran into Jan 20 02:34:51 Yeah it does :P Jan 20 02:34:53 does anyone have a recommended way of creating an independent android library using AS? Jan 20 02:34:58 I've built some simple stuff, and a little code generation. but what I really want now is a way to define enforced-use wrapper classes. e.g. we have a wrapper for Crashlytics - outside that wrapper, Crashlytics should never be accessed directly. there's no way to encode this currently though. Jan 20 02:34:59 (i want to know because I’m going to start using AppCompat v21 soon for Material_ Jan 20 02:35:03 including maven/gradle options Jan 20 02:35:24 Thanks for the help guys. Just need to figure out how to get my app to load the homefragment by default (shouldn't be too tough), but if I need help I'll do some googling and come back. Jan 20 02:35:27 dynmeth I know how for Eclipse.. bue not AS Jan 20 02:35:51 tricknology: yeah I'd prefer to stick to one IDE if possible Jan 20 02:35:54 t0astt: there's one, but afaik it only matters if you use the new lollipop-related stuff: https://code.google.com/p/android/issues/detail?id=78377 Jan 20 02:36:05 right click project, go properties, Android , check is Library Jan 20 02:36:12 there should be some analog to it in AS Jan 20 02:36:17 otherwise I haven't seen much. compat seems generally preferable, since you get consistent behavior across OS versions. Jan 20 02:36:44 http://stackoverflow.com/questions/16601299/how-to-create-a-library-project-in-android-studio-and-an-application-project-tha Jan 20 02:37:11 There you go dynmeth I think that’s what you need Jan 20 02:37:31 tricknology: you have to create an app project as the primary module and then add a library project after Jan 20 02:38:01 tricknology: e.g. you cannot create a library project without an app project (using the AS wizard) Jan 20 02:38:12 Reasons why I don’t use AS Jan 20 02:38:38 You can’t create an app project and designate it as a library? Jan 20 02:38:45 That’s what I do in Eclipse Jan 20 02:38:46 I prefer it now over Eclipse except for this Jan 20 02:38:52 I'll try actually Jan 20 02:38:54 heh Jan 20 02:39:05 Every time I try to use AS I run into something like this Jan 20 02:39:12 then I go back to eclipse Jan 20 02:39:23 after an hour of searching for how to get it to work Jan 20 02:39:39 * tricknology doesnt take well to change he reckons Jan 20 02:39:40 you probably can switch app to library. just change the plugin it imports, from com.android.application to com.android.library or something. Jan 20 02:40:58 HAHA.. man I had an else condition that was excaping me.. It was elsing and just starting the home activity Jan 20 02:46:20 shmooz saw this today https://www.youtube.com/watch?v=zEfJY3JkacA Jan 20 02:48:01 groxx, tricknology: that appears to work! will investigate further. thanks Jan 20 02:48:09 g00s: yeah privacy was never ours to have, we just thought it was Jan 20 02:48:15 groxx: had to remove the 'applicationId' from the gradle config **** ENDING LOGGING AT Tue Jan 20 02:59:59 2015