**** BEGIN LOGGING AT Mon Sep 01 02:59:58 2014 Sep 01 03:21:01 hello Sep 01 03:26:27 and today's sunday night zinger -- A Grand Ayatollah in Iran has determined that access to high-speed and 3G Internet is "against Sharia" and "against moral standards." Sep 01 03:26:53 guess i shouldn't hope to sell my app there hmmm Sep 01 03:40:01 but your app doesn't need 3g Sep 01 03:40:13 no problem Sep 01 03:40:26 Maybe they just want to save bandwidth, Iran still does not have a lot of lines, iirc there is only one main cable going into there. Sep 01 04:00:29 anyone know if there is a way to specify install path (trying to put on sd card) from adb install? Sep 01 04:02:53 you can do it in the manifest Sep 01 04:03:04 I don't recall the exact syntax tho Sep 01 04:04:19 bankai_au rx 0.20.3 Sep 01 04:04:45 thank ya Sep 01 04:15:29 io.reactivex:rxjava:1.0.0-rc.1 aww!!! Sep 01 04:58:13 slow night Sep 01 05:05:38 heh, sony must have APIs for detecting when the phone is submerged Sep 01 05:05:54 https://github.com/sonyxperiadev/UnderwaterApps Sep 01 05:06:04 "Water Detection Library" hehe Sep 01 05:06:13 heh, nice! Sep 01 05:06:27 "ENSURE ALL WATERPROOF FLAPS ARE SECURELY CLOSED BEFORE SUBMERGING PHONE" Sep 01 05:06:37 heh Sep 01 05:06:48 there needs to be an API to determine if the waterproof flaps are securely closed Sep 01 05:07:21 its a good phone for where I live actually, Seattle, it rains on average 200 days a year here Sep 01 05:07:41 swap? i love rain Sep 01 05:07:48 yeah, waterproof / dustproof is a nice feature Sep 01 05:08:00 so do I, I grew up in southern calif. Sep 01 05:08:19 and that's a .... wet place ? Sep 01 05:08:29 still, there are a lot of jobs and new apt buildings here Sep 01 05:08:52 LA is very dry, rain always seemed a miracle Sep 01 05:09:21 i think the american southwest is in deep shit (droubt) for a loong time to come Sep 01 05:09:34 Los Angeles is a desert, it gets all its water from other places Sep 01 05:09:37 oh yeah i saw pics on reddit, crazy! Sep 01 05:09:52 yup, and the water tables are almost gone too Sep 01 05:10:20 it was so crazy, the gravitational fields over that area changed and mountains rose like an inch Sep 01 05:10:25 I suspect the next big wars will be over water in fact. Sep 01 05:10:32 (wetter dirt is heavier and sinks) Sep 01 05:10:45 interesting, I did not know that Sep 01 05:10:49 yeah so lets pump it into the ground to extract gas Sep 01 05:11:37 ya :/ Sep 01 05:12:14 Carbonflux see http://www.drought.gov/drought/ Sep 01 05:12:23 its interesting too, their are moons around both gas giants that more hydrocarbons than we can ever use Sep 01 05:12:25 the rating ends at D4 - they are thinking about adding another class, D5 Sep 01 05:12:42 mass water restrictions? Sep 01 05:13:02 wow Sep 01 05:13:08 that looks really bad Sep 01 05:13:30 bankai_au only for poor people like myself ;) Sep 01 05:13:32 the water rationing is already fairly harsh in California Sep 01 05:13:33 bankai_au http://la.curbed.com/archives/2014/08/oprah_shipping_in_drought_water_to_massive_montecito_estate.php Sep 01 05:13:49 heh Sep 01 05:14:50 my hope is this will promote nanotechnology, building nano-scale filters for desalinization for example. Sep 01 05:15:32 we tried desal here, but for some reason it never got off the ground.... i also remember a lot of the pipes rusting ( i don't think it was a well thought through plan ) Sep 01 05:15:53 Carbonflux: for what it's worth, it's arguable that control of water sources - on the Golan Heights, for example - has played a part in Middle East wars already Sep 01 05:15:56 yeah our infrastructure is aging too Sep 01 05:16:26 same was true for California, there was even a plan to move an iceberg into the LA harbor, but it was easier to just use up all the existing water. Sep 01 05:16:55 Leeds, I could not agree more, I also think this is a but part of why China wants to control Tibet. Sep 01 05:17:06 big part* Sep 01 05:17:45 very possible, yes Sep 01 05:19:14 so maybe dustrproof is a better feature for the future :| Sep 01 05:20:06 everything more north, Canada is going to be one of the wealthiest nations on earth in 50 years Sep 01 05:22:45 Carbonflux i saw a book http://www.amazon.com/American-Exodus-Climate-Change-Survival/dp/0865717494 Sep 01 05:23:03 maybe too alarmist, but ... maybe you are right Sep 01 05:23:36 interesting Sep 01 05:24:36 i lived in Phoenix, one of the least sustainable places on the planet Sep 01 05:24:37 the northern passage above Canada will be open soon which will effect shipping all over the world, Canada has huge mineral and oil reserves that warming will allow to be exploited etc Sep 01 05:25:05 it gets SO HOT there, I always wonder how people lived there before air-cond. Sep 01 05:25:18 most civilizations perished ;) Sep 01 05:25:31 :) Sep 01 05:25:36 well, all technically Sep 01 05:25:45 the current one is just a monument to arrogance Sep 01 05:26:14 but Las Vegas is in deep crap too Sep 01 05:27:06 ya, I hear there are deep problems with the economy there Sep 01 05:28:14 back to mobile, i empathize with this blogger https://medium.com/@jakek/my-year-with-a-distraction-free-iphone-and-how-to-start-your-own-experiment-6ff74a0e7a50 Sep 01 05:28:51 which is one of the reasons I like my lumia, i was easily able to set it up to be a dumb phone - just mail , camera, maps, IE basically Sep 01 05:29:14 i dont have crap like instagram / twitter ;) Sep 01 05:30:23 an interesting thing is, for people who don't want to be distracted by much - do the current wearables offer anything at all? i see them as notifications on wrists atm Sep 01 05:30:58 which translates to "distractions on wrists" Sep 01 05:30:59 g00s poem https://www.youtube.com/watch?v=ZS9Wte1gX9g Sep 01 05:31:03 one friend I know that has one says its good for censoring calls, I noticed he stopped wearing it after a few weeks tho Sep 01 05:31:24 I admit much of this technology seems to be a "conspiracy" to get us to waste time. Sep 01 05:31:50 interesting post, the only crit I have is some people don't have the luxury to unplug, because of work etc. Sep 01 05:32:15 StingRay_ sounds good so far Sep 01 05:32:25 sad too Sep 01 05:33:24 there has been a bunch of research on social web sites giving rise to anxiety and depression. its worse than useless Sep 01 05:34:25 therapists say lots of patients coming in because they are a mess comparing themselves to made up illusions of others Sep 01 05:34:46 ya, it creates a context where nothing is completed, you have to keep everything in the air...it might be interesting to write some kind of app, with a timer, the unplugs you for a set period of time. Sep 01 05:35:07 that* Sep 01 05:37:50 Carbonflux i think there are a few apps like that actually Sep 01 05:38:15 that makes sense, its an obvious idea really Sep 01 05:49:13 Carbonflux was reading an interesting paper on democracy; in the US there were always several layers of people interacting; until recently one was neighbor - to - neighbor. since you had to live next to these people it was a good idea not to piss them off too much; conversation about politics tended to reduce extreme positions Sep 01 05:49:53 but lately that interaction has been deteriorating, maybe too many people sucked up into FB etc ;) Sep 01 05:50:17 lots of research on how democracy works over hybrid media, but i'm not too up on it Sep 01 05:51:02 everybody finds their online tribe and seems things get more polarized but alienated at the same time Sep 01 05:51:07 yup, I remember when I was a kid I was told, "never talk about politics or religion..." thats changed a lot. Sep 01 05:51:52 cultural silos Sep 01 05:52:24 I think its part of a larger meta-cycle tho Sep 01 05:52:47 I am quite optimistic about the future for some reason I can't really explain Sep 01 05:54:09 this is one of the more recent books that talks about that http://www.amazon.com/dp/1400069572 Sep 01 05:54:33 "The Vanishing Neighbor" was another Sep 01 05:55:12 Carbonflux i'm not too optimistic about it, seems like as a race we're not abe to even save up for retirement, nevermind preserve commons for future generations or people you never see Sep 01 05:55:29 it might sound weird but I think part of the solution is to ban cars in cities. Sep 01 05:55:31 in other words, evolutionary we aren't equipped to deal with todays problems Sep 01 05:55:58 ya thats an argument I am hearing a lot, also in relation to the Fermi paradox Sep 01 05:57:14 this might be a fundamental problem with sentient life in general, is the argument. And of course it relates to complex systems theory, we can't build proper networks robust enough to self organized at higher levels of complexity Sep 01 05:57:37 i don't think people will change behaviors until it actually impacts them - but at that point, are we past tipping points Sep 01 05:57:38 ya Sep 01 05:57:49 i have 2 books here on resilient systems Sep 01 05:58:23 Carbonflux have you ever seen this ? http://www.amazon.com/dp/1107011361 Sep 01 05:58:28 something you may like Sep 01 05:59:01 I think a big factor is that we are always demanding knowability from our systems, even though we realize thats wrong, its one of the biggest barriers to machine intelligence fex. Sep 01 05:59:34 that looks good Sep 01 06:51:01 ah we get to the end of the earth habitatability, launch some organizms with terraforming to mars, civilization arises some millions of laters get to the end, fires back to earth, keeps going until one of the lifeforms that evolves figures out how to do more than just hopscotch around the genepool Sep 01 06:52:20 we are all screwed until we stop with the pretend make believe, that most actually believe ! So for now, just go with it :) Sep 01 06:59:58 ChatArrayBuffer is android specific datatype but not Java ? Sep 01 07:00:24 you use it for sqlite read operations Sep 01 07:01:18 me? Sep 01 07:03:12 can i define all my margins and padding in a single file and then call it for a particular edittext? Sep 01 07:03:47 samsamsam "styles" Sep 01 07:03:54 * StingRay_ shudders Sep 01 07:05:27 shmoon_: does the package name give you any clues? :) Sep 01 07:09:58 Anyone knows how I can calculate the Amplitude from the WaveForm that you get in Android? Sep 01 07:32:36 Hallo Sep 01 07:33:18 hi Sep 01 07:42:29 Click66: put the waveform in byte array and do the math. Sep 01 07:43:26 hokkaido: I'm calculating the amp like this http://pastebin.com/dbRQbmRc Sep 01 07:45:53 yeah you didn't even specify WHAT kind of amplitude - min, max, avg, ... Sep 01 07:46:00 this is obviously avg Sep 01 07:53:45 ravilov: yup I need the avg Sep 01 07:54:05 I don't understand the 128 * in the formula Sep 01 07:54:15 and i'm not someone who just uses it without knowing :D Sep 01 07:54:20 so maybe you can explain? Sep 01 07:55:02 Hi guys :) Sep 01 07:57:40 Click66, brings it to the center in case of 8-bit data I would assume Sep 01 07:58:06 ravilov: what do you mean by brings it to the center? Sep 01 07:58:28 smack bottom is 0, smack top is 256, middle is... Sep 01 07:58:38 or something like that Sep 01 07:58:39 oo k :) Sep 01 07:59:01 could be signed data so just flips the sign maybe Sep 01 07:59:17 not sure where you copied that from, but today's waveform data is mostly 16-bit though Sep 01 08:20:11 ravilov: so the formula isn't correct anymore? Sep 01 08:23:30 I hate stupid stacktraces from deep in Binder or something :( Sep 01 08:26:08 Binder, hahaha Sep 01 08:26:22 legacy crap Android OS team never properly fixed Sep 01 08:26:34 :D Sep 01 08:26:47 What are you breaking today Estel Sep 01 08:27:49 Can't fix won't fix Sep 01 08:28:13 Thats the spirit Sep 01 08:31:39 argh Sep 01 08:31:52 I don't get it... my actionbar disappeared -.- Sep 01 08:32:29 Where did you last see it Sep 01 08:32:40 So careless :( Sep 01 08:34:58 found it Sep 01 08:35:10 except it crashed Sep 01 08:39:38 sigh Sep 01 08:39:56 I wish I could just hit samsung on the forehead with something heavy Sep 01 08:41:47 samsung's idea of 0dp height actionbar: http://eclipser.xmms2.org/device-2014-09-01-114027.png Sep 01 08:42:13 Hi all Sep 01 08:42:38 Quick question: if i want a drawable for the debug build only (as a placeholder, for design purposes), how can I use it? Sep 01 08:42:52 if I drop it in main/res/drawable it works without further work Sep 01 08:43:09 but if I put it in debug/res/drawable it can't be referenced from the XML Sep 01 08:43:44 at least not on the android studio preview Sep 01 08:43:52 which is where I want to see it Sep 01 08:50:31 the thing is, of course, that I don't want such resources to be on the release build Sep 01 08:51:57 does gradle handle the debug path thing? Sep 01 08:57:48 com.novoda.gradle:robolectric-plugin:0.0.1-snapshot ... all guides point me to this when trying to use testing in android studio, but it fails.. and I can't seem to find a right link Sep 01 08:57:51 anyone know what I Sep 01 08:57:56 'm talking about ? :) Sep 01 09:00:40 P3nnyw1se: are you trying to build your test flavour with Robolectric? Sep 01 09:06:15 Is there anyway to get an array of the wavefrom from the whole song? So I could calculate some things before playing the song? Sep 01 09:07:51 If I have a dual SIM phone do I have a different IMEI (http://goo.gl/Vty5R) based on the SIM I use ? Sep 01 09:09:04 I don't know if gradle handles that Sep 01 09:09:28 now that I think of it Sep 01 09:09:35 I created the debug dir Sep 01 09:09:42 so I guess that gradle knows nothing about it Sep 01 09:12:10 CodePulsar: I'm pretty sure the IMEI for the phone remains the same Sep 01 09:16:58 so the question would be, how to exclude a given set of resources from the release build Sep 01 09:18:59 for example, I want to have a drawable to use with tools:src attribute Sep 01 09:19:04 so it's displayed as a placeholder Sep 01 09:19:13 but I don't want that file on the release build Sep 01 09:20:21 I have a service that plays media. I'm having a problem where it hangs around after stopSelf() is called and eats lots of battery. I don't really know how to diagnose the root of the problem. I know that i) stopSelf() is definitely called, ii) the service isn't bound to any activity when stopSelf() is called, and 3) no mediaPlayer objects are playing when stopSelf() is called Sep 01 09:21:53 so if I start my app, play 30 seconds of audio, then shut the activity and log the service calling stopSelf(), then I check my phone 12 hours later and see that "Media server" has eaten 28% of battery Sep 01 09:24:00 Mrdarknezz: Why is that? Some people claim that you can have multiple IMEIs if you have dual sim phone and you can use both of the SIMs simultanenously Sep 01 10:08:26 hi, what is a stub activity? Sep 01 10:13:01 I'm having a problem with Environment.getExternalStoragePublicDirectory returning an invalid dir Sep 01 10:15:48 meital: presumably one with no content... Sep 01 10:16:10 Do you mean the generated code when you create an activity, with no body? Sep 01 10:25:57 is it technically possible to forward the phone audio (microphone and speakers) in an app to a computer? is there an app that lets me make and receive phone calls on my computer with my headset? Sep 01 10:26:07 when the android phone is connected via usb cable Sep 01 10:26:12 (linux) Sep 01 10:29:30 have a look at http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html Sep 01 11:33:37 ecraven, there is no exposed API for that Sep 01 11:33:48 and there are devices (like Nexuses) where that isn't possible Sep 01 11:34:06 would this be possible over gsm modem stuff? Sep 01 11:34:44 over what? :) Sep 01 11:38:42 would it be possible to connect the android phone as a gsm modem and use that for voice calls? Sep 01 11:38:58 using AT DT... and so on Sep 01 11:39:23 depends on a phone of course. Sep 01 11:39:26 and the modem it has. Sep 01 11:39:55 u gonna dial up some BBS and download some warez? Sep 01 11:40:09 cuz last time i used AT commands, that's what I was up to Sep 01 11:40:29 20 years ago Sep 01 11:40:45 Mavrik: ok, i'll need to get a /dev/ttyACM0, for some reason it doesn't show up, samsung galaxy s, might work Sep 01 11:41:21 sabton: i just want to use my computer as a headset for the phone.. bluetooth handsfree is not an option, not supported at all in recent bluez :-( Sep 01 11:41:37 how can it be 2014, and there's just no simple way to use my computer headset with my phone :-/ Sep 01 11:42:17 Hello, what is the best way, when I want to work on one App on two pc? I try to use my dropbpx folder but it doesnt work, becaus the file pathes are not the same on both pc Sep 01 11:42:37 use some sort of version control, like git Sep 01 11:42:58 why are the paths important? your build tool should take care of al lthat Sep 01 11:43:10 ecraven I thought the same thing should be true, and wondered about BT Sep 01 11:43:25 macbook as audio I/O for phone Sep 01 11:43:27 :) Sep 01 11:43:37 StingRay_: does it work? Sep 01 11:43:54 never gave enough sh*ts to start researching or testing Sep 01 11:43:56 :) Sep 01 11:44:07 I only give a partial sh*t about it in passing Sep 01 11:44:08 :) Sep 01 11:44:27 There are devices that due to security do not allow software on main ARM to access audio stream Sep 01 11:44:40 Samsungs usually do but the impementation is baseband-chip specific Sep 01 11:45:12 never workes with git before, but i will try Sep 01 11:45:36 ok Sep 01 11:45:54 Laire, let's make it clear: using a version control system like GIt is a basic prerequirement to any programming Sep 01 11:46:13 if you don't know how to use one and don't use one you're just asking for hell Sep 01 11:46:19 not to mention noone will hire you without that knowledge Sep 01 11:48:28 I get file:/storage/emulated/0 when I try to get external storage Sep 01 11:48:41 That folder doesnt exist so when I try to read files I get IO errors Sep 01 11:49:30 How are you trying to read the files? Sep 01 11:49:40 Because that's a logical path which is resolved if you read files properly. Sep 01 11:50:49 BitmapFactory that decodes the path to the file Sep 01 11:51:19 I used the debugger to check what the paths resolves to when I create it and it's the same when I create it as when I read it Sep 01 11:51:37 paste code Sep 01 11:52:05 (in a pastebin) Sep 01 11:54:24 https://gist.github.com/Mrdarknezz/71379dc44537d4b4d9c4 Sep 01 11:55:31 is there a reason why aren't you passing tempImage object directly to decodeFIle_ Sep 01 11:55:32 ? Sep 01 11:56:16 It's basically copy pasted from the android docs Sep 01 11:56:31 I tried reading the file directly but I get the same problem Sep 01 11:56:43 also do you have required permissions? Sep 01 11:56:49 does cding in the shell work? Sep 01 11:57:09 Mavrik: the folder that i tries to write to doesnt exist in shell Sep 01 11:57:16 hower they appear on the sdcard0 folder Sep 01 11:57:20 however* Sep 01 11:59:13 the folder file:/storage/emulated/0/ that is Sep 01 11:59:48 what is file:/? Sep 01 12:00:14 yeah, that's what I'm wondering too Sep 01 12:00:18 why isn't /storage... Sep 01 12:00:22 or file:///storage... ? Sep 01 12:00:43 just remove the file: part Sep 01 12:00:56 but why would google then leave that in the doc? Sep 01 12:01:11 because google sometimes does not update docs properly Sep 01 12:01:14 Ah Sep 01 12:01:17 :) Sep 01 12:03:54 file:/// is perfectly fine when dealing with Uris Sep 01 12:06:12 Mrdarknezz, either have "file://", or remove it altogether Sep 01 12:06:29 "file:" is incorrect Sep 01 12:07:53 if i connect my samsung galaxy s (using slimkat) via a usb cable to arch linux, i should get a serial terminal (like /dev/ttyS?), right? is there anything special i need to do? Sep 01 12:08:47 ...what? Sep 01 12:08:54 why would you get a "serial terminal"? Sep 01 12:09:28 also this is no place for such questions, this is what #android-root is for Sep 01 12:09:54 ravilov: thanks, i'll ask there Sep 01 12:10:16 ravilov: i seem to remember that i got a serial terminal (like for a modem) when connecting my phone via usb.. but it doesn't do that any longer.. maybe i'm misremembering Sep 01 12:15:01 What's wrong with this code? http://pastebin.com/mzrfArPf The error is about the ? looks like it's being substituted. Shouldn't it be? Sep 01 12:16:58 one would have thought that yes Sep 01 12:16:59 http://pastebin.com/X9drA5WU Sep 01 12:17:21 since table doesn't need any char treatment :) Sep 01 12:17:23 Hello. If I use a 2.3 Android SDK or a 4.3 Android SDK to compile the same project, will they have the same behavior ? Is the a performance impact ? Sep 01 12:18:08 ravilov: Yeah that solved the problem :) Sep 01 12:18:12 StingRay_, yea i bet that will work but why can't it substitute :( Sep 01 12:18:36 not sure, debug it Sep 01 12:18:47 just uses queryBuilder and regex Sep 01 12:19:00 so you can walk through the exec bit quite easy Sep 01 12:20:04 "1 arguments were provided but the statement needs 0 arguments." Guess it doesn't work with table names.. Sep 01 12:41:35 hey guys.. wondering if anybody has had issues with javap not finding the class properly. I've specified my classpath and it still can't find my class I want to to get the signatures for. I'm running JDK7 (build 1.7.0_51-b13) Sep 01 12:53:45 How can I draw a oval in the center of the screen. So the middlepoint of the oval is in the center of the screen? Sep 01 13:02:58 Hi all, Somebody used osmdroid before? of mobac (mobile atlas creator)? Sep 01 13:04:35 Hi! Anyone used the estimote android SDK? How were your experiences with it? Mine are: it's shit. It works really poorly and unreliable. On iphone it works order of magnitude better. Sep 01 13:06:43 MapMan: I have used this before https://github.com/RadiusNetworks/android-ibeacon-service and works good. Was for a proof of concept, haven't tested it with a lot beacons in small area Sep 01 13:07:36 sorry, didn't know it's gone Sep 01 13:08:37 it's not as much gone Sep 01 13:08:43 ive heard about it Sep 01 13:09:08 I see it too, sorry about that but I used it in December (last year). Sep 01 13:09:10 I just wonder what is at fault, the beacons (or its OS), my phone or the SDK Sep 01 13:09:27 i have one of the very early estimote beacons Sep 01 13:09:35 but on an iphone 5 they work quite nice Sep 01 13:10:06 the same beacons with my SGS 3 work like crap. The proximity calculation is so unreliable it's hard to do anything. Sep 01 13:10:26 Click66 drawCircle() on a canvas that is at getWidth/getHeight /2 of the canvas? Sep 01 13:10:46 StingRay_: Needs to be an oval not a circle. So I need to specify RectF Sep 01 13:11:04 I think that Estimote put more effort in the iOs SDK than for Android. I used some estimote ibeacons too with my SS3 and iPhone 5C, quality wasn't a big difference with Radius ibeacon lib Sep 01 13:11:18 then drawRect() Sep 01 13:11:24 MapMan: maybe they wrote their algorithms according to signal gains on iphone antennas... Sep 01 13:11:33 or whatever draw method takes RectF Sep 01 13:13:39 p_l: that may be the case Sep 01 13:14:25 FrancescoV: you mean the android-ibeacon-service (that is now removed from git?) Sep 01 13:26:17 MapMan: yes Sep 01 13:30:55 Hello. If I use a 2.3 Android SDK or a 4.3 Android SDK to compile the same project, will they have the same behavior ? Is the a performance impact ? Sep 01 13:33:38 nicorio not sure that question is a well informed one Sep 01 13:34:10 StingRay what do you mean (sorry, not fluent in English) Sep 01 13:34:50 I mean it's a bit of a silly question Sep 01 13:35:58 StingRay Sorry about that. So the answer would be "of course, it improves performance" ? Sep 01 13:36:17 Is there something like background-size cover in android? Sep 01 13:36:43 Hello guys! Sep 01 13:36:46 nicorio no, the answer would be …the question is irrelevant and has nothing to do with it Sep 01 13:37:24 Do you happen to know what's the correct way to fill a ListView when you use an ORM? Sep 01 13:37:25 compile ? build against? target? performance..build time ? running on? Sep 01 13:37:43 I'm using a BaseAdapter, but I've seen when you use SQLite directly people use a CursorAdapter Sep 01 13:37:57 which makes more sense and is probably better for performance Sep 01 13:38:08 but not sure if that is possible with ORMs, I don't think so Sep 01 13:38:45 StingRay OK. Thank you. By that you mean that a sdk essentially brings new components and funcitonnalities, but the performance relies on the target device. That's it ? Sep 01 13:40:16 nicorio: You can set a minSdkVersion in your gradble build file Sep 01 13:40:21 and a targetSdkVersion Sep 01 13:41:28 ok Sep 01 13:42:54 i have this code http://pastebin.com/b5pyxz7T where when a list item loads, it creates a textview for each object in an object's arraylist. there will only be 3-4 textviews created for each object. problem im running into is, every time that view is scrolled past, 3-4 more textviews are created in addition to the ones already there. any ideas on what i can do so that textviews arent duplicated? Sep 01 13:43:45 aaearon dont create them if they are there Sep 01 13:43:52 listView recycles views Sep 01 13:43:56 learn about it Sep 01 13:44:08 <_inno_> Mattx: If you're using an ORM then you would extend BaseAdapter to wrap the calls to your ORM layer. Probably a good idea for either the ORM or your adapter to cache the DB lookup results though... Sep 01 13:44:27 ok, that's a good idea actually Sep 01 13:45:27 the problem is that I'm filling the BaseAdapter with a list of objects, so that when the ListView requires items I can take them from the list Sep 01 13:45:40 it looks like something really inefficient Sep 01 13:46:37 are you suggesting that I should take the objects on demand from the ORM instead of saving a list of them all when I create the adapter? (just before the listView.setAdapter() call) Sep 01 13:46:49 _inno_ Sep 01 13:47:05 <_inno_> well, if every time you need to show and object you do a DB hit, you will get horrible performance in your ListView Sep 01 13:47:41 ok, I suppose a good tradeoff would be to cache 10 or 20 items in my baseadapter each time Sep 01 13:48:02 but not all of them like now! haha Sep 01 13:49:43 <_inno_> Mattx: yeah. you can detect when you are close to either to bottom or the top (depending on how you are showing stuff) and load more in the background. however, you will have to do a bit of funky stuff to make sure you maintain the scroll position after you load the new entries Sep 01 13:50:19 hmn, intersting. why is that? Sep 01 13:50:47 I'm only going to be adding elements to the end of the cache list Sep 01 13:51:23 <_inno_> because you will have call notifyDatasetChanged() in the Adapter, and this will probably reset your scroll position... I think, but I haven't done this in a while Sep 01 13:54:11 <_inno_> there is some discussion here, but perhaps it might be easier to just use the CursorAdapter ;) Sep 01 13:54:12 <_inno_> http://stackoverflow.com/questions/8276128/retaining-position-in-listview-after-calling-notifydatasetchanged Sep 01 13:56:30 _inno_, the problem is that I'm not using the DB directly Sep 01 13:56:39 can I still use a cursor adapter with an ORM? Sep 01 13:58:33 Mattx you would maybe use BaseAdapter Sep 01 13:58:53 and supply whatever object allows you to get data from whatever it is you store it in Sep 01 13:58:59 it's not black magic Sep 01 13:59:33 that's exactly what I'm doing now ^ Sep 01 14:01:16 so whats the prob ? sorry if I missed it Sep 01 14:01:32 <_inno_> just make sure you're not hitting the DB every time - you have ~16ms to return a View if you want the scrolling performance to be smooth Sep 01 14:01:58 hello. I have a swiperefreshLayout which has a scrollview as a child with a tablelayout in it. The problem is when i scroll an reach the botttom of the scollview, when i want to come to the top position of the scrollview it starts refreshing Sep 01 14:02:12 how can i avoid this. I can't use a listview Sep 01 14:04:11 StingRay_, there's no problem. I was asking whether a) I was doing it correctly with BaseAdapter or b) if I can use a CursorAdapter with an ORM and I was missing how to do so Sep 01 14:04:27 well you would use baseAdapter with a cursor Sep 01 14:04:30 or I would Sep 01 14:05:14 a base adapter with a cursor? hmn Sep 01 14:05:22 that is probably what I'm looking for Sep 01 14:05:42 well the adapter is just a nice way to supply a view Sep 01 14:05:55 you specify what data etc Sep 01 14:06:12 getView uses a row of data Sep 01 14:06:24 yeah, I know what you mean. I wonder how to get a cursor from Sugar ORM Sep 01 14:07:08 all I do is something like: List results = MyModel.listAll(MyModel.class); Sep 01 14:07:20 no, dont want that Sep 01 14:07:21 (awful, I know..) Sep 01 14:07:43 http://stackoverflow.com/questions/7159816/android-cursor-with-ormlite-to-use-in-cursoradapter Sep 01 14:11:22 cool! Sep 01 14:11:35 I definitely need to get that cursor out of sugar! Sep 01 14:12:05 o:) Sep 01 14:13:45 When do you guys set your widgets? onCreateView or onResume? (on Fragments). Example: when should you set the listview adapter and itemclick? Sep 01 14:23:50 I've got a question on linking using the NDK. I have a class that is defined within a custom namespace. I can't seem to get my code to compile using ndk-build b/c it con't find the funtion I reference inside that class. The class is part of another lib I build separately that gets linked to my ndk-build (using -llibXXX ) What might be wrong? Am I missing a flag? Other classes/functions from other Sep 01 14:23:51 custom libs I can reference successfully. Sep 01 14:24:29 I'm not sure what kind of error this is so I'm having a problem searching on Google/SO for an answer Sep 01 14:33:51 n/m figured it out.. my Makefile had a typo Sep 01 14:45:55 Is there a simple way to change the brightness of a bitmap? Sep 01 14:47:10 just the appearance or the data ? Sep 01 14:47:41 The bitmap is set as a background drawable Sep 01 14:48:48 like is there a myBitmap.brightness(50) ? Sep 01 14:51:08 you can filter a drawable Sep 01 14:52:16 http://developer.android.com/training/camera/photobasics.html#TaskPath – trying to retrieve according to this example from getExtras() fails as Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity Sep 01 14:53:42 I do a takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile)); as it says Sep 01 14:54:19 But, Bundle extras = data.getExtras(); Bitmap imageBitmap = (Bitmap) extras.get("data"); fails Sep 01 14:54:48 kitallis: If you put the image in the file it doesnt send any thumbnail Sep 01 14:55:19 in a file* Sep 01 14:55:38 in file*. seems safer Sep 01 14:55:43 I see Sep 01 14:57:31 thanks, Mrdarknezz, I guess I'll just make a thumbnail myself Sep 01 15:00:44 Hi. I'm trying to push my hosts file to an Android emulator. I was able to do with adb -s ... remount and adb -s ... push /etc/hosts /system/etc/hosts exactly once, but when the emulator went on standby (I guess that's what it is doing when it grays out?) and came back, /system was remounted ro again and even though adb remount still worked, it didn't have Sep 01 15:00:44 any actual effect. And /system/etc/hosts was restored. Am I fighting with some system process that for some random reason didn't do anything the very first time? Sep 01 15:02:27 wizonesolutions is that an app development related question ? Sep 01 15:03:32 StingRay_: it's "I didn't get a quick answer in #android, so I thought I'd try elsewhere" Sep 01 15:06:06 Leeds/StingRay_: yep, sorry, thought that maybe #android was the wrong place Sep 01 15:06:25 can take it back there if it was not Sep 01 15:07:13 well it has little to do with app dev Sep 01 15:07:22 so not here :) Sep 01 15:22:08 Hello Sep 01 15:22:32 hello, im cleaning up my android project and have question about object classes: my object needs appwide only 2 variables but for network communication (GSON) i need to pass another 3 parameter. Should i put this in one class oder split it up? whats the best approach? Sep 01 15:26:50 hello Sep 01 15:27:37 i have a list view and i am trying to change the height of the items in the list view but it always just ends up as wrap content. this is the custom list view item layout http://pastebin.com/MixcuERe Sep 01 15:28:03 how can i change the height of a list view item, why is it stuck in wrap content Sep 01 15:32:07 If I call "setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);" coming from "SCREEN_ORIENTATION_FULLSENSOR" the screen will snap to regular portrait, but I intended for the activity to remain in the current orientation until a later time when I call setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); HOw can I get my intended behavior? Sep 01 15:32:13 because you have android:layout_height="wrap_content" in your linearlayouts? Sep 01 15:32:28 android-dev793: Are you talking to me? Sep 01 15:32:48 @Heck123 Sep 01 15:39:14 android-dev793: no it;s because in the custom list adapter, i had the inflation parameter to null Sep 01 15:39:30 solution: http://stackoverflow.com/questions/9439401/set-listview-item-height Sep 01 15:59:36 Do you see any ways to run a task on a service thread and get a blocking call for when the runnable has finished? Sep 01 16:19:06 Hey guys, could anyone confirm what the default locale is, en-GB? Sep 01 16:23:06 pws-reggar from the docs "getDefault() gets the appropriate locale for the user of the device you're running on" Sep 01 16:23:36 It returns the user's preferred locale Sep 01 16:26:38 EdGeorge: I've have a layout defined in layout/ and am trying to override it in layout-en-rGB/. However, testing it on an en-GB device it's not getting overriden Sep 01 16:31:28 When using SimpleCursorAdapter, can anyone explain why we have to use existing ids instead of defining new ones? E.g. @android:id/text1 instead of @+id/text1 Sep 01 16:31:42 <_inno_> platzhirsch: please elaborate. are you running in a Service? which thread would you like to block? Sep 01 16:31:59 _inno_: oh main thread,... bad idea Sep 01 16:35:45 <_inno_> platzhirsch: indeed ;) process on BG thread, then call back to main Thread. you can always get a reference to it by calling Looper.getMainLooper(). You can either call getThread() on that, or instantiate a Handler and post to that - new Handler(Looper.getMainLooper()) Sep 01 16:36:31 _inno_: yeah that's better Sep 01 16:39:19 <_inno_> platzhirsch: I'd recommend the Handler approach, and just posting to it when you're ready. Sep 01 16:52:30 Anyone here that have built chromium for android? Sep 01 16:52:43 < Sep 01 16:53:39 py0: Are you familiar with NaCL? Does it work on android now? Sep 01 16:54:19 salt? Sep 01 16:54:43 https://duckduckgo.com/NaCl_(software) Sep 01 16:54:56 ah lol Sep 01 16:55:20 ;) Sep 01 16:56:11 I'm also looking to use a DSP on the audio from chromium, but i don't know how audio works in general on android Sep 01 17:04:50 article from HN http://blog.gouline.net/2014/08/31/kotlin-the-swift-of-android/ Sep 01 17:15:51 I am trying to make a debug view, basically just uses canvas to draw a bunch of outputs, what's the best way to set the size for this? Sep 01 17:20:24 * capella just read that Sep 01 17:20:41 * capella is not going to learn >another< language Sep 01 17:20:52 * capella 's brain is full Sep 01 17:23:20 hey capella ;) Sep 01 17:23:33 Hey there :D Sep 01 17:25:09 Quiet isn't it? I'm spending time helping new contributors on moz ... and having little fun with them :p Sep 01 17:26:33 quiet, yeah. no problem with that ;) Sep 01 17:29:43 What's the main advangtage of kotlin? Sep 01 17:29:53 i dont see anything __that__ revolutionary Sep 01 17:30:03 just seems to add some smart macroing to existing java runt ime Sep 01 17:31:36 although i did just eat 7 waffles so i could be maple syrup and butter stupid. Sep 01 17:32:41 My app is being updated with an AsyncTask, but I need to close once the app is killed. Is there any way to detect than from withing the AsyncTask? Perhaps the Context that I pass turns to null or something? Sep 01 17:33:58 you can't explicitly cancel it? Sep 01 17:34:34 Thing is I don't know when the app is being closed, or just minimized to bg Sep 01 17:35:13 skulltower onpause gets called eitehr way when you app goes to bg Sep 01 17:35:22 it will be followed by onstop if it's being killed off Sep 01 17:35:30 or not if it's going to be resumed Sep 01 17:35:40 capella doesn't seem like there is much to learn Sep 01 17:35:51 indeed Sep 01 17:36:21 though I imply there's nothing of value to be gleaned Sep 01 17:36:34 skulltower: how do you implement onPostExecute to talk to your activity? Sep 01 17:37:16 g00s: what's the benefit of this new language mod? seems like it just makes some things a littlebit nicer, but really doesn't add all that much... Sep 01 17:37:35 lasserix, thing is stop is called even when the app is not being killed Sep 01 17:37:50 furthermore ondestroy is called only sometimes Sep 01 17:38:17 skulltower,how do talkt back to the activity from onpostexecute? Sep 01 17:38:26 lasserix its not that new, but i haven't read too fully about it yet Sep 01 17:38:49 I have a context passed to the AsyncTask, through which it later calls a method on my activity Sep 01 17:39:15 so just check if that context is null? Sep 01 17:39:15 Which is my flaw as once the app is killed the context is no longer available (right?) Sep 01 17:39:42 Can I also check that in doInBackground? Sep 01 17:39:49 sure why not Sep 01 17:40:16 ugh, can it really be that simple Sep 01 17:40:19 You worry about a pointer back to a "dead" object? Sep 01 17:40:48 capella: is pointer a valid term here? Sep 01 17:40:57 handle? reference? Sep 01 17:41:01 i am just curiouys cause that is how i think of it, Sep 01 17:41:12 Yah, my c++ betrays me Sep 01 17:41:16 but if we were talking technically, can they be called pointers in java? Sep 01 17:41:23 since pointers do a lot more than just be references Sep 01 17:41:25 references I suppose Sep 01 17:41:29 as they are in java Sep 01 17:41:35 skulltower: yeah it can Sep 01 17:42:06 Alright I'm giving it a shot Sep 01 17:42:15 note skulltoweryou run the risk of memory leak if you are async task never finishes executing (ie while loop without break condition) Sep 01 17:42:26 and thuskeeps a reference to your context Sep 01 17:42:35 if im not mistaken Sep 01 17:44:01 g00s since you are a fan of rx java, one thing i was curious about is whether it is valid to use in a colloborate enviroment: ie if i were working ina team that is not fmiliar and i start writing code with rxjava doesn't this pose serious problems for the other programmers? Sep 01 17:44:23 brb i need to walk off this maple syrup coma Sep 01 17:44:36 lasserix, I'm also wondering, would cancel it also on orientation change? Sep 01 17:44:42 lasserix probably depends if they are in a syrup coma also Sep 01 17:48:02 no, on rotation the task can survive, and you can actually re-attach Sep 01 17:49:04 Hmmm i'm not sure how to test it since logs disappear when app is down. Trying an ingenious way now, just need to wait for it to finish xD Sep 01 17:49:26 lasserix fwiw, as i recall the netflix guys just train everyone on rx and have them forgo other consurrency stuff Sep 01 17:49:42 hmm Sep 01 17:49:43 i still use handlerthread etc but, i don't think its hard Sep 01 17:50:28 they felt it was easier to learn rx than read JCIP; but i didn't think JCP was hard either. just a few days reading Sep 01 17:50:36 but whatever Sep 01 17:50:43 skulltower: logs dont disspear when appis down Sep 01 17:50:57 skulltower: you shoulduse a non ui fragment with setRetainInstance to hold your async task Sep 01 17:51:20 that way orientation change or whatever the async task will finish and you can pull its data hwn ready Sep 01 17:51:32 Problem is i'm blocking the ui with some dialogs while the task is active Sep 01 17:51:50 yeah that is aproblem Sep 01 17:52:11 skulltower if you are going to use asynctask, its gotta be done like this http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something Sep 01 17:52:15 there are a lot of ways: non ui fragment, intent service Sep 01 17:52:43 you can just use a weakreference in a normal thread with a callback Sep 01 17:52:46 all kinds of ways Sep 01 17:52:57 key things tho: never make your user wait for shit to load, ever. Sep 01 17:53:23 let me them do something, even if it is press buttons that make robotic fart sounds or whatever Sep 01 17:56:13 xD Sep 01 17:56:14 lasserix they should have built that in to AsyncTask :| Sep 01 17:56:41 True I can let the user do something but I also want them to see the progress of the task Sep 01 17:56:41 AsyncFartingTask ;) Sep 01 17:58:32 (always do that in the background) Sep 01 17:59:42 Mmm stupid question what happens with a static inner AsyncTask when the app is killed? Does the task survive until finished? Sep 01 18:01:55 Mmm nvm that Sep 01 18:03:13 Mmm ok Sep 01 18:04:16 hey shouldn't be asking this but whats the "sync" version of http://hastebin.com/vahetobofa .. basically don't need this version in a sync adapter that already runs async Sep 01 18:04:27 oops http://hastebin.com/vahetobofa.java Sep 01 18:14:06 someone can tell me a really good book for newbiews Sep 01 18:14:36 Hi Sep 01 18:15:15 PsciCodeliXHAt, try some scifi novel Sep 01 18:15:25 I'm currently working on an Android app that uses JNI and I'm facing a weird bug, something google has not yet been able to help me... Sep 01 18:16:06 Randomly, when I call native methods repetitively , at some point, the method stop being called, and nothing else after the calls happens Sep 01 18:16:07 ravilov: I mean to learn dev to android.. Sep 01 18:16:47 For swiping what is a good algorithm for the movement? Here are the two I've tried so far and my comments on them http://pastebin.com/TWBK7gke Sep 01 18:17:08 PsciCodeliXHAt, the whole internet is your book, also all the various beginners' tutorials as well as the official google docs Sep 01 18:17:14 you really need nothing more Sep 01 18:19:58 also next time you could try being more specific, you are in a very techy place after all Sep 01 18:26:29 ravilov: thank you Sep 01 18:29:35 read everything you can get your hands on... start writing code... lots of it... poorly... youll get better Sep 01 18:30:44 one day youll re-read your old code and you'll hate yourself ;) Sep 01 18:32:00 Hrm, can the Garbage Collector stop an app indefintely & Sep 01 18:32:55 ?* Sep 01 18:33:26 * capella-s3 was waiting for the rest of that Sep 01 18:34:00 I have a GridView with individual xml layout as items. The item contains a TextView. Sep 01 18:34:03 :S Sep 01 18:34:34 Setting layout_height="wrap_content" on the TextView does not work. Sep 01 18:34:43 when creating a ViewPager, can I name my Fragments so that I can retrieve them later? Sep 01 18:34:57 This is so weird. Sometime I'm able to run the entire code, sometime after calling the first log, it stops, no errors, no exceptions Sep 01 18:35:21 Right now I'm doing something like (MyFragmentTab) getSupportFragmentManager().getFragments().get(0); which is not pretty Sep 01 18:35:27 I would like the GridView item (and all other items in that row) to get a larger height. Sep 01 18:36:04 Any ideas? (currently the text will overflow and the height of the item stays the same) Sep 01 18:38:06 bean89: long time ago i had similar problem Sep 01 18:38:33 Ashiren: can you remember how you solved it :P Sep 01 18:38:42 on google i found this http://pastebin.com/XTDZum7W Sep 01 18:39:26 jpdery: maybe some memory leak Sep 01 18:40:14 Ashiren: Memory leak could "stop" the program from running ? Sep 01 18:40:47 at least, it would first throw outofmemory exception Sep 01 18:40:54 bean89, android:singleLine="false" Sep 01 18:40:55 so it might be weird Sep 01 18:41:15 " alleged breach in Apple’s iCloud service may be to blame for countless leaks of private celebrity photos this week." Sep 01 18:41:19 hehe, fuck the cloud Sep 01 18:41:55 that's what you get for having an iLife Sep 01 18:42:32 i see it more as a cloudLife Sep 01 18:44:05 what's the difference :p Sep 01 18:44:16 well except I guess it can happen with any cloud Sep 01 18:44:27 ravilov: tried the singleLine="false" or layout_height="0dp" hack but neither of them do work Sep 01 18:44:58 dunno then Sep 01 18:45:07 usually works for me Sep 01 18:45:13 For swiping what is a good algorithm for the movement? Here are the two I've tried so far and my comments on them http://pastebin.com/TWBK7gke Sep 01 18:45:41 bean89: did my solution work Sep 01 18:50:02 Ashiren: can't test that fast ... how can I use this custom View in my xml? Sep 01 18:50:23 eeyup Sep 01 18:50:26 you implement it, then you use it Sep 01 18:50:34 just like any other view Sep 01 18:51:06 instead of you type Sep 01 18:51:26 dont forget to set expanded to true Sep 01 18:53:03 Ashiren: what do you mean by "expanded" Sep 01 18:53:16 in the code Sep 01 18:56:33 Ashiren: I get "java.lang.ClassNotFoundException: Didn't find class "android.view.ExpandableGridView" on path: DexPathList" Sep 01 18:56:58 maybe I use it the wrong way ... Sep 01 18:57:07 your package Sep 01 18:57:10 not android.view Sep 01 18:58:14 g00s: I thought you *liked* the internet of everything ... even the parts where you need to suffer pictures of irrelevant naked celebrities Sep 01 18:59:26 Ashiren: In my xml layout I use com.mypackage... Sep 01 19:00:27 can you post it Sep 01 19:03:54 http://pastebin.com/jcCd4Gf4 Sep 01 19:04:00 Hey guys, I was wanting old drawable icon from gingerbead (wifi icon) and I see it is not available when I use android.R.drawable, and I was wondering if there is away I can implement it? Sep 01 19:04:54 looks like Sep 01 19:05:05 and first line of the class is package com.example.view; ? Sep 01 19:05:29 capella some kind of personal cloud sounds better to me Sep 01 19:05:41 http://pastebin.com/MYpP0Y8W Sep 01 19:06:52 "com.example" thats right ... its a test app to get rid of the problem (want to isolate it) Sep 01 19:07:22 with .view at the end? Sep 01 19:08:28 Demon_Jester: afaik you shouldnt reference to system icons as they might change (the names and whatnot) Sep 01 19:08:37 com.example.view.ExpandableGridView Sep 01 19:09:02 Demon_Jester: you can find them in [sdk-path]/platforms/android-10/data/res/ Sep 01 19:09:06 how hard is it to copy the package declaration from the top of ExpandableGridView.java and paste it in xml? Sep 01 19:09:15 ExpandableGridView.java is in /src/main/java/com/example/view Sep 01 19:09:23 ah ok Sep 01 19:09:28 if it's in android.R it's stable to use Sep 01 19:09:51 then im not sure why it isnt working Sep 01 19:10:46 I will try later again ... Sep 01 19:10:51 bean89: try this https://stackoverflow.com/questions/7037974/classnotfoundexception-for-custom-imageview-in-android-app Sep 01 19:10:51 thanks anyway ... Sep 01 19:10:54 but i never used that Sep 01 19:14:51 Ashiron thanks for the help, I do have a problem, though. when I go to android.R.drawable.stat_sys_tether_wifi it doesnt appear. even though I see it in android-10/res folder Sep 01 19:16:06 Demon_Jester, you can only use it if it's in R Sep 01 19:16:14 if it's not, you must copy iy Sep 01 19:16:19 OH Sep 01 19:16:36 ok so I can add custom images (in the right dimension) and use them if its in R? Sep 01 19:16:38 that's why I said if it's in it's stable to use Sep 01 19:16:45 no, you can't Sep 01 19:16:53 awwww Sep 01 19:16:59 if it's not in R, you must copy Sep 01 19:17:11 how is that hard to understand Sep 01 19:17:18 lol Sep 01 19:19:06 g00s: here? Sep 01 19:24:46 hi every body Sep 01 19:27:05 hey thepoosh -- kinds, mostly reading a book though Sep 01 19:27:09 *kinda Sep 01 19:30:08 g00s: stop reading that stupid book and read this: https://www.thc.org/root/phun/unmaintain.html Sep 01 19:31:34 thepoosh hehe; man one of the hardest things i always stive for is readable code - its not done until nothing can be taken away Sep 01 19:31:43 i would creat a application for android 2.6.35.7, but when i download sdk of android 2.3 API 10, i don't found Class android.app.Activity, this class creat in API 1 but we don't download AP1. How to do for dowload AP1? Sep 01 19:32:09 g00s: I teared up during this read Sep 01 19:32:12 thepoosh i also hate maintainaing any code, even my own :) Sep 01 19:32:19 it was pure hell and heaven Sep 01 19:32:22 heh Sep 01 19:32:57 g00s: I think about the times i did it in our code and the amount of code reviews that made me wanna tear my eyes out Sep 01 19:33:14 Cd wrttn wtht vwls s mch trsr Sep 01 19:33:26 most of this has been in 'code complete' - not much new Sep 01 19:33:36 uncle bob has a book clean code also Sep 01 19:35:00 g00s: it was written in 97 Sep 01 19:36:00 2004, but yeah --- old Sep 01 19:36:30 http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670 Sep 01 19:37:10 it doesn't really go into the idioms of any language in particular; each tribe has additional measures of goodness no doubt Sep 01 19:37:24 (like in c++, don't throw an exception from a destructor) Sep 01 19:43:27 g00s: defaq?! Sep 01 19:43:34 who would do that?! Sep 01 19:46:29 i had that problem in production code :| Sep 01 19:46:49 and it was also written by brilliant people, so i was even more confused Sep 01 19:47:18 but they were long gone ;) Sep 01 19:47:40 anyhow yeah, Effective C++ will always be a best seller :D Sep 01 19:49:20 hey look, a #hackernews channel Sep 01 20:09:09 JesusFreke i just got an ST3 update :O Sep 01 20:09:18 happens like once a year :) Sep 01 20:10:53 heh Sep 01 20:11:14 Yeah, I don't do a good job of keeping up with library updates Sep 01 20:11:33 build 3065; still wonder if St is doomed Sep 01 20:13:17 Hi all, I've been out of the Android game for a while, say about the introduction of 4.x, has much changed since then? Sep 01 20:13:48 no, its still a pita Sep 01 20:18:13 hi g00s, I think I remember you Sep 01 20:19:36 Is Android Studio the preferred tooling now? Sep 01 20:19:49 I'm quite adept at IntelliJ for work Sep 01 20:20:11 but my Eclipse is fairly dusty Sep 01 20:20:15 you'll probably like it then. you can use plain intellij too Sep 01 20:21:44 It's just that my old projects seem to always fight with Gradle Sep 01 20:22:09 I have never heard of tf-idf and cosine similarity in relation to data mining .... I must live a sheltered life Sep 01 20:33:36 will L be a big shocker in terms of changes for developers? Sep 01 20:33:55 I wonder if I should familiarize myself with it, or still focus on 4.x for now Sep 01 20:36:49 It is never a bad idea to look into it, but 4.x will still be supported, and you'll still need to support it for quite some while. It is unlikely that you'll fall behind by not knowing all the changes before the release. Sep 01 20:42:18 yeah, i agree with Thorbear . also, i'd rather let the curious one spend their time discovering / spending time on that - not like everyone is going to have L phones when it comes out, so there will be plenty of time Sep 01 20:42:52 while the preview is out, how things will work with the support libraries is less clear to me Sep 01 20:43:49 Thorbear i guess you could spend looking at L design guidelines, if only to consider how you may structurethe UI differently Sep 01 20:44:14 Ah thanks, Thorbear and g00s, that's good advice Sep 01 20:44:47 Been looking at the design guidelines for a while already, to ease into it Sep 01 20:48:18 I always wondered what kind of gifted ideas might be turned into awesome apps Sep 01 20:48:26 and then Flappy Bird came around :p Sep 01 20:48:46 and I also realised that the idea must be genius to be succesful Sep 01 20:48:52 musn't* Sep 01 20:48:57 theres a flappy rpg Sep 01 20:49:24 its basically flappy bird with an skill thing or something Sep 01 20:49:46 njcomsec: heh, I guess some fads keep on going :) Sep 01 20:51:00 happy flappy Sep 01 21:00:13 Any good android-dev related websites anyone can recommend? I usually found most stuff by Googling around, don't know if any big resources have stepped up since Sep 01 21:05:24 belgianguy there is also a reddit/r/androiddev forum Sep 01 21:06:12 g00s: ah, yeah, I frequent reddit quite often, I'll add that to the quicklist :) Sep 01 21:06:16 thanks! Sep 01 21:46:17 oh great sphaghetti monster those waffles must have been laced. Sep 01 22:02:36 lasserix processed carbs :) Sep 01 22:06:33 one thing i wish about the Preference Framework, is that it would let you specify a PreferenceGroup for some repeating item - easy enough to have a few Prefs for one server, but doing this for N is a pain Sep 01 22:07:00 wind up just creating my own form and duplicating prefernces Sep 01 22:09:02 hi all Sep 01 22:09:22 anyone have a tutorial for a CRUD app? Remote mysql server, thanks Sep 01 22:09:59 il you develop for Android CRUD apps? Sep 01 22:10:21 jak3000: I'd start by adding a layer in between the mysql server and the device... Sep 01 22:20:09 what's the best way to draw number to a canvas that need to be formatted? Sep 01 22:20:38 ie i have 2.333333 or -9.222223 and i want to drawText with it showing 2.33 or -9.33 Sep 01 22:21:27 g00s heh yeah went to brush my teeth, then sat down to pet the cat and bam i wake up 5 hours later Sep 01 22:26:22 P_L can you shar any documentation? Sep 01 22:29:07 Hello, I'm doing following this: https://stackoverflow.com/questions/6775406/android-intent-action-camera-button-not-broadcasting-on-desire-z-froyo but I can't see the "onReceive clazz init" in the logs, it should be as soon as the app starts, right? Sep 01 22:34:12 Hey guys just need an opinion on something. When I have a client connect I would like to store info the client sends to me, and was wondering if I should store the information in a text file or in a custom adapter for the listview? Sep 01 23:06:15 can gimbal lock fuck the accelerometer? Sep 01 23:09:45 hi guys.. years of java learning behind me, new to Android Studio .. src/AndroidTest .. how.. do I get going with some Junit testing, all the guides I seem to find are outddated Sep 01 23:09:54 I just wanna start out figuring out how it works.. setup a few unit tests Sep 01 23:14:13 nobody knows a good guide maybe ? Sep 01 23:15:06 p3nnyw1se what guides are you looking at that seem/are outdated? Sep 01 23:15:26 first of all I can't find any that adress the project AndroidTest Sep 01 23:15:35 androidtest? Sep 01 23:15:35 I find some talking about robolectric.. but the links are outddate it seems Sep 01 23:15:54 more info on androidtest? Sep 01 23:16:06 as soon as I create a project, in srC it creates a project called AndroidTest Sep 01 23:17:05 yeah it does that for me too, I see what you mean now, you're in Android Studio>? Sep 01 23:17:13 11yeop Sep 01 23:17:22 I just wanna Junit test and assumed I needed this folder somehow Sep 01 23:17:50 It seems it autocreates it, I havent looked into it I thought I made it and forgot about it. Sep 01 23:18:05 is it something new? Sep 01 23:19:40 hey all! Anyone here have experience integrating Volley with the SyncAdapter framework? I feel like i've been having some performance issues dealing with the success listeners... Sep 01 23:30:29 Is there a way to create a CursorLoader from an sqlite db? Sep 01 23:46:29 yea Sep 01 23:51:22 hey I have a quick question about graphics in opengl. so I'm trying to draw a nice smooth looking like you can in canvas so I used to triangles to create the rectangle that is the line. It is very pixelated and not smooth I have multisampling enabled. any ideas beyond that? Sep 01 23:52:05 smooth looking line* sorry on my phone can't create the most grammatically correct sentences Sep 02 00:16:21 I used to be able to reference an apklib's resources with an @dimen in my own layout file...that's not possible with an AAR anymore, is it? Sep 02 00:35:40 hi folks Sep 02 01:05:33 does the android emulator detect dragging? Sep 02 01:05:59 I overrode an ontouch listener but else if (event.getAction() == MotionEvent.ACTION_MOVE) doesn't fire Sep 02 01:06:20 if (event.getAction() == MotionEvent.ACTION_DOWN) does though Sep 02 01:08:00 k, nvm, got it Sep 02 01:32:14 anyone know why sourceSets { main.java.srcDir "$buildDir/source-generated" } is working from command line gradle build, but not AS? this used to work until very recently :( Sep 02 01:33:31 you've angered the gradle gods Sep 02 01:33:54 the generated sources are there of course, 'gradle assembleDebug' is fine ... its not gradle Sep 02 01:34:17 have you checked what android studio is doing when its building? Sep 02 01:34:20 go to gradle outupts Sep 02 01:34:29 somehow AS is not picking up this extra build directory Sep 02 01:38:39 gradle console show nothing unusual. build completes fine from AS ... just that AS editor itself is lit up like a christmas tree with errors Sep 02 01:39:21 clean your project then maybe do a gradle file sync? Sep 02 01:39:28 ugh Sep 02 01:39:35 no, thats not the problem Sep 02 01:39:58 well i clean the project any time i get a problem just for shits n gigs Sep 02 01:41:28 how can google get away with forced portrait in many of their apps various sub-activites …getting sick of it now Sep 02 01:41:44 i lock my screen to landscape most of th etime Sep 02 01:45:17 bah shit, IDE internal error Sep 02 01:45:30 (going to project structure) Sep 02 01:45:50 fuck, some things just never change Sep 02 01:48:23 i still think they should get rid of the 'project structure' dialog altogether ; the gradle files should be the alpha and omega for this crap Sep 02 01:48:32 ... the end Sep 02 01:48:34 yeah Sep 02 01:48:37 it makes it a pain Sep 02 01:48:50 its just a shitton of stupid field entry boxes Sep 02 01:48:55 well not being a native I like the project structure Sep 02 01:49:00 for maven search etc Sep 02 01:49:02 like thats any more clear than just editing the gradle file Sep 02 01:50:06 the "search" Sep 02 01:50:18 just like the ease Sep 02 01:50:45 saves me having a browser open Sep 02 01:50:50 and copy paste Sep 02 01:50:57 just go to http://search.maven.org/ Sep 02 01:51:07 why does that need to be in the ide ? Sep 02 01:51:33 cause the idea can have (like it does) diff m2 locations Sep 02 01:51:40 so that search is not just central Sep 02 01:51:48 google gms local too Sep 02 01:53:30 all right then - if that search is useful so be it Sep 02 01:53:51 but still, the project structure should just follow the gradle filles/ model Sep 02 01:55:14 neat! http://arstechnica.com/information-technology/2014/09/how-a-new-html-element-will-make-the-web-faster Sep 02 02:31:35 am I able to send string over socket then have my server side read it then write it to a file (or skip the reading and write directly to the file)? Sep 02 02:33:31 Demon_Jester if you really wanted to… I would think yes, but by virtue of you asking, probably not at this moment Sep 02 02:34:59 what do you mean by virtue of me asking? Sep 02 02:35:04 Hello...... Sep 02 02:35:05 seems little odd to say Sep 02 02:35:24 well you are asking if you can do something that is totally possible, as most things are Sep 02 02:35:47 but the fact you are asking may mean they are not possible for you to do without lots more learning and development Sep 02 02:36:01 ok I figured you meant something like that Sep 02 02:36:04 ok thank you Sep 02 02:36:04 :) Sep 02 02:36:19 I want to make an app for android. The app will be built with HTML and will be hosted in a WebView. I was wondering, is it possible for my app to run a "web server" with a built in scripting langauge like NodeJS or PHP, and have it running on "localhost" and then have the WebView server up those files? Sep 02 02:36:43 aftermath2: generlly android 'apps' that are just html in a webview suck Sep 02 02:36:43 Also, can I do this without having the phone rooted or anything like that, and keeping the app permissions down to a minimum? Sep 02 02:37:08 aftermath2 this is not really a web dev channel Sep 02 02:37:13 desmin88: Well I also want to have a web-based version of the app, and I want to have the same "code base" Sep 02 02:37:15 you could try phonegap channel Sep 02 02:37:29 so I woun't have a write a version for Android, Iphone, etc... can keep the same code files Sep 02 02:37:29 aftermath2: native is always better Sep 02 02:37:32 will be more relevant to web stuff Sep 02 02:37:33 hmm i'd like to test my app on older versions of android.. anyone know if it's possible to get an older version to install somehow? Sep 02 02:37:59 ftsf: you can use an emulator or get a device Sep 02 02:38:16 I am trying to have a single code channel that I am editing, so that any nea features and stuff will be available on the android app / iphone app/ web site Sep 02 02:38:27 so thats why I want to have the same code, and somehow share it Sep 02 02:38:30 I mean re-use it Sep 02 02:38:32 not a good idea Sep 02 02:38:46 mmm the emulator is very slow, is it possible to install an older android on an existing device? Sep 02 02:38:48 why? Sep 02 02:38:58 native apps are always beter Sep 02 02:39:00 ftsf thats hardware suppose Sep 02 02:39:05 support* Sep 02 02:39:10 not android app dev help Sep 02 02:39:27 ahh fair enough Sep 02 02:39:28 desmin88: but if I keep it a html in webview app, I can have all the changes from my main code base Sep 02 02:39:40 instead of having to edit my android main app Sep 02 02:39:45 native app I mean Sep 02 02:39:49 just no Sep 02 02:39:54 this is android app developmen t Sep 02 02:39:57 not crappy web app Sep 02 02:40:01 and I can add functionality, etc, to all versions of the app in one Sep 02 02:40:09 native. Sep 02 02:40:41 I still don't understand why its a bad idea Sep 02 02:40:54 most of the code will be javascript anyway Sep 02 02:40:59 which is supported in WebView Sep 02 02:41:09 web apps are bad Sep 02 02:41:10 go native Sep 02 02:41:11 hybrid apps in android <3 Sep 02 02:41:16 aftermath2 it's not a bad idea Sep 02 02:41:26 yes "hybrid app" is what I want Sep 02 02:41:29 make app in cordova Sep 02 02:41:29 depends on requirements Sep 02 02:41:36 then post link here Sep 02 02:41:41 so I can give you one star in google store Sep 02 02:41:43 and I want to host a PHP/NodeJS server inside my app Sep 02 02:41:47 if thats possible at all.. Sep 02 02:41:50 and said never done hybrid app again Sep 02 02:42:06 php and js Sep 02 02:42:09 ugh Sep 02 02:42:13 my two favorites :D Sep 02 02:42:20 php or nodejs and js Sep 02 02:42:31 I'm out Sep 02 02:43:25 aftermath2 forget what others say… the idea is only bad if it doesn't meet the requirements with priority consideration Sep 02 02:43:29 html apps for android should just disappear Sep 02 02:43:34 mhm Sep 02 02:43:39 That would be ideal. Sep 02 02:44:05 why? Sep 02 02:44:11 because it's slow Sep 02 02:44:24 you never get close to native performance, ui look Sep 02 02:44:24 and doesnt work like native android app Sep 02 02:44:34 maybe polymer ? Sep 02 02:44:36 your users know when its a website embedded in a webview Sep 02 02:44:37 havent tried Sep 02 02:44:38 nobody likes them Sep 02 02:44:45 with bootstrap / angular js it looks almost native Sep 02 02:44:56 or Sep 02 02:44:57 that made my day Sep 02 02:44:58 just go native Sep 02 02:45:13 desmin88: I can make the page look native and not like a website Sep 02 02:45:16 thats the plan anyway Sep 02 02:45:19 it doesnt matter Sep 02 02:45:29 well I would like to try it Sep 02 02:45:42 just to see what my results will be.. who knows it might be worth it Sep 02 02:45:50 so.. can I host a php server in my app? Sep 02 02:45:55 php or nodejs Sep 02 02:46:17 gordon_ desmin88 don't mean to offend, but it's a bit odd to bark directives not knowing the project aims and specifics Sep 02 02:46:33 OFFENSE WAS TAKEN. Sep 02 02:46:35 StingRay_: I may be odd Sep 02 02:46:38 * StingRay_ personally hates webapps, thinks they should die Sep 02 02:46:50 but I dont know the project so cant say Sep 02 02:46:53 This is what I'm getting from a LocationManager implementation (11.014534508707918, 72.30214765667915) and this is what I'm getting from a LocationClient implementation for the same location (11.0294438, 72.358328). Is the LocationClient inherently designed to provide lesser precision? I see there are a lot less digits in the mantissa. Sep 02 02:46:55 the first thing I look when choosing app Sep 02 02:47:03 is checking if its native or not Sep 02 02:47:11 btw the app is just going to be a news feed like slashdot or twitter Sep 02 02:47:27 and I want to just re-use the html on the phone app Sep 02 02:47:30 * desmin88 uninstalls any app that isnt native Sep 02 02:48:02 i have a note 4 Sep 02 02:48:06 I have a note 3 I mean Sep 02 02:48:12 aftermath2 simple question though = rank these in order / cross-platform / latest features in SDK / User experience+satisfaction+expectation Sep 02 02:49:28 if cross platform ease is the top of the list, and you dont mind the other 2 suffering … then webapp is not all that bad Sep 02 02:50:00 if you dont want the other 2 to suffer, or cross platform is no the main goal, maybe consider an alternative Sep 02 02:51:12 k Sep 02 02:51:29 wonder what you will do with android L Sep 02 02:51:50 aftermath2: http://www.polymer-project.org/ Sep 02 02:51:53 worth trying ? Sep 02 02:52:48 and i want my app to work offline as well using a database sync feature Sep 02 02:53:00 so users can edit their profile offline, and when connect it gets syned Sep 02 02:53:08 cynced Sep 02 02:53:19 synced Sep 02 02:53:23 native Sep 02 02:53:34 :D Sep 02 02:53:50 I will try polymer today at home :> Sep 02 02:55:01 i jsut dont want to re-built complex editing pages for multiple platforms Sep 02 02:55:06 editing and viewing controls Sep 02 02:55:29 use whatever you want ;) Sep 02 02:55:42 I will try polymer :P Sep 02 02:55:51 just know that "User experience+satisfaction+expectation" will suffer Sep 02 02:58:36 I dont understand what that Polymer thing is Sep 02 02:58:54 a control library? **** ENDING LOGGING AT Tue Sep 02 02:59:59 2014