**** BEGIN LOGGING AT Fri Sep 19 03:00:00 2014 Sep 19 03:02:00 Ologn your db app is paid, right ? Sep 19 03:02:05 g00s, no Sep 19 03:02:20 All my apps are ad-based Sep 19 03:02:24 ahh Sep 19 03:02:30 you did pretty good then with adds Sep 19 03:02:57 I think there is a point to be made, much of what is called innovation right now is actually elaboration. Sep 19 03:03:02 With my main Play account with Admob I made over $20k since last September Sep 19 03:03:22 Plus a couple of thousand with various other ad networks, Play accounts etc. Sep 19 03:03:51 I'm not full time though, I make money consulting etc., that's my personal side projects Sep 19 03:04:27 my app is too niche to use adds i think Sep 19 03:04:39 Plus I'm not 100% focused on immediate money. Right now I'm futzing with C++ OpenGL Live Wallpaper stuff that I'll probably put on Github Sep 19 03:04:41 (not enough downloads / market too small) Sep 19 03:05:06 good evening Carbonflux Sep 19 03:05:15 this is cool http://www.gizmag.com/intel-3d-realsense-scanners-tablets-phones/33882/ Sep 19 03:05:26 good evening Sep 19 03:06:02 ya I was just reading about that in the intel news letter thingie Sep 19 03:06:16 I mean, the only way that it can work is government funds research, then companies do some R&D and develop products Sep 19 03:06:16 they are releasing a C++ sdk it looks like Sep 19 03:06:45 or developer stipends Sep 19 03:06:48 Government funding university research is where innovations will come from...with the private sector taking it and running with it Sep 19 03:07:13 thats kind of how biotechn works now Sep 19 03:08:28 Ken Thompson said he told his kid to go into Biology, not CS, since Biology is where the innovations will be Sep 19 03:08:46 they will merge in the end Sep 19 03:09:02 I agree though Sep 19 03:09:05 They did with Celera a bit Sep 19 03:09:12 bioengineers were one of the hardest groups hit Sep 19 03:09:20 besides, programming is basic literacy for a scientist Sep 19 03:11:08 IIRC, they cut up genomes randomly into SNPs, which are easier to sequence, duplicated them, then sequenced them - then had the computers run algorithms to assembled SNPs into a genome Sep 19 03:12:09 Ya I think it was some kind of Monti Carlo alg, "shotgun" like they use at CERN Sep 19 03:13:31 I wonder what time I will wake up Saturday and stumble into NYC Droidcon Sep 19 03:13:48 I bet thats going to be a lot of fun Sep 19 03:15:28 the next 20 years are going to be for robotics like the 80s-90s were for PCs. Sep 19 03:15:37 I guess thats obvious :) Sep 19 03:15:44 Let's see..Roman Nurik, Jake Wharton, Chris Haseman, Jean-Baptiste Queru, Mark Murphy... a good lineup Sep 19 03:17:54 It will be interesting when self-driving cars start coming out Sep 19 03:18:34 I guess google keeps going back and forth on it, it seems like getting that last 5% is turning out to be difficult. Sep 19 03:18:50 yeah, not hitting people in the city is tough Sep 19 03:18:57 :) Sep 19 03:19:22 i would expect cargo ships automated first Sep 19 03:19:44 I think we are quite close to that right now. Sep 19 03:20:05 well, somebody needs to figure out how to do mr fusion otherwise we'll all be riding bycycles anyhow Sep 19 03:21:21 unless oil is abiogenic and the oil corps are lying about running out to drive the prices up ;) Sep 19 03:21:32 does anyone else find this article a little odd http://www.gizmag.com/mit-robotic-cheetah/33822/ Sep 19 03:21:46 you got me reading gizmag now g00s Sep 19 03:22:04 Carbonflux http://www.sciencedaily.com/releases/2013/04/130422154911.htm Sep 19 03:22:18 but we need to get carbon emissions down, it could be a bad thing ;) Sep 19 03:22:24 StingRay_ its pretty fun Sep 19 03:22:27 that article would be like discussing mobile smartphones without mentioning android Sep 19 03:22:29 some really wonky stuff Sep 19 03:23:07 g00s, agreed, in some ways the shortage is a good thing. Sep 19 03:23:30 I don't think it looks like a cheetah Sep 19 03:23:37 more like an overweight dog Sep 19 03:24:48 it does make me wonder if evolution tried battery power and internal combustion in the hidden depths of history and bio-power is just better in the end. Sep 19 03:24:50 Carbonflux well considering it's an MIT project and they dont really mention the signature motion of a cheetah , well maybe cause they are missing it Sep 19 03:25:16 :) Sep 19 03:25:33 the whole reason for a cheetah and a rabbit being able to run faster than conventional limb movement would say is sprung semi fused spines that they use Sep 19 03:25:46 and they kinda miss the whole thing, seems odd to me Sep 19 03:25:54 its been a very long time since i've done genetic programming, but i remember the books often saying nature fids a solution that works, not necessarily the best solution Sep 19 03:26:03 thats an interesting link g00s, thank you Sep 19 03:26:10 yw Sep 19 03:27:11 how are people installing (3 month old) versions of my dam app, and in a few cases 8 month old Sep 19 03:27:29 I get reports from bugsense …erm…. not used them in 8 or so months Sep 19 03:27:39 how is that possible? Sep 19 03:28:24 i have to decide whether i'm going to make my app free to get around the new 'putting physical location' details on Play listing page Sep 19 03:28:31 can i go from paid to free ? Sep 19 03:28:46 g00s no Sep 19 03:29:02 oh man, somebody lawsuit up quick Sep 19 03:29:02 well yeah, release it again Sep 19 03:29:25 yeah I would not worry too much Sep 19 03:29:40 g00s: Swift-keyboard did Sep 19 03:29:48 they have your billing address already Sep 19 03:29:50 what do they mean by "physical location?" Sep 19 03:29:58 if they are doing this because of a few locales, they should mention which locales required this so i can uncheck them Sep 19 03:30:04 *after* I bought it Sep 19 03:30:12 Carbonflux http://phandroid.com/2014/09/18/google-play-now-requires-devs-to-make-their-home-address-public/ Sep 19 03:30:16 I have only done free apps so far Sep 19 03:30:23 ah you are lucky Sep 19 03:30:30 only for paid & iap Sep 19 03:30:44 so maybe a P.O. Box Sep 19 03:30:56 the problem is that will lead to spamming devs Sep 19 03:31:11 and phishing scams Sep 19 03:31:24 it creates security problems Sep 19 03:31:32 yeah Sep 19 03:31:43 not to mention $500 per year here for a PO box Sep 19 03:31:52 i keep asking myself, do i want to be fucked by google (in the privacy department) or by apple (in the lock in dept) Sep 19 03:32:05 heh Sep 19 03:32:11 its law coming to the west Sep 19 03:32:19 in effect its an attack on indy devs Sep 19 03:32:33 corporate developers will not have a problem with it Sep 19 03:32:43 but how can they police it Sep 19 03:32:48 cant really Sep 19 03:32:59 they send you a verification letter Sep 19 03:33:12 I think they are trying to solve the problem of malware Sep 19 03:33:23 by creating a physical accountability chain Sep 19 03:33:35 by creating a security risk for everyone Sep 19 03:33:48 but it has side effects clearly and any scammer will already have a po box Sep 19 03:34:02 :/ Sep 19 03:36:02 StingRay_, don't they have cheaper private PO Boxes? Sep 19 03:37:05 not really Sep 19 03:37:53 There's a shop local to me that sells shipping supplies...I have a box there...I forget how much it is, but it's not more than $20 a month...it may be $10 or $15 I have to look Sep 19 03:38:20 UPS store is ~$70 for 3 mos, which is all my profits :) Sep 19 03:39:01 obviously, i'm not making a living on my app; just out there (for fun) and ironically discoverability for getting hired Sep 19 03:39:11 but not that discoverable :| Sep 19 03:39:13 g00s, I know how you can afford it Sep 19 03:39:27 Start a service to service developers without a PO Box Sep 19 03:39:34 :) Sep 19 03:39:55 i wonder if they will require the address to be the same as the wallet account Sep 19 03:39:57 yes ^ Sep 19 03:40:09 the discussion at the bottom is good too Sep 19 03:40:12 see, if somebody buys your app they can see your address on their receipt Sep 19 03:40:20 thats not a problem for me Sep 19 03:40:32 what i dont want is my address on the front page of the interwebs Sep 19 03:41:07 from what i know, amazon, apple store don't have this Sep 19 03:41:26 "hey phil, you still got the shotgun in the boot? That guy that makes that gps over expensive crap lives down here" Sep 19 03:41:28 just google coming up with something stupid like this makes me think, man - i need to ditch these assholes forever and not look back Sep 19 03:42:06 have to wait and see how it plays out Sep 19 03:42:31 maybe they will back off a bit and make the addy for google only Sep 19 03:42:44 unless there is a legal issue or something Sep 19 03:43:13 its an interesting case in terms of virtual object definition tho Sep 19 03:43:14 Apple has done things too that give devs pause like - yeah holy crap, we're just renting space on their lawn and our destiny is in their hands pretty much Sep 19 03:43:27 in effect they are trying to define an app as something physical Sep 19 03:43:35 well if you read into legalese "your app may be removed" ;) Sep 19 03:43:56 the Play servers are going to get much lighter StingRay_ :) Sep 19 03:44:08 all that physical weight - poof ! Sep 19 03:44:08 ya, I noticed some people commenting this will only happen if an indy dev is a threat heh Sep 19 03:45:05 no I mean "may" is not "will" for many reasons Sep 19 03:45:16 "may" please can I, may I etc Sep 19 03:45:41 so they are reserving the option in case they need it for leverage? Sep 19 03:45:42 having a physical address is one of those things that makes being poor / homeless very difficult Sep 19 03:45:56 and also being cyberpunk Sep 19 03:46:05 Carbonflux no as in some1 with legal authority or title does not use the word "may" Sep 19 03:46:08 what about not being poor and yet homeless Sep 19 03:46:44 what about all the roaming devs ? :) Sep 19 03:47:01 for example there was a story I read recently about a google working living in a mobile home in the campus parking lot for a year, would his apps be removed? Sep 19 03:47:12 worker* Sep 19 03:47:23 Carbonflux haha, oh yeah i remember those interns Sep 19 03:47:48 ya, I remember people doing that when I worked in the valley and at MS. Sep 19 03:48:36 so no more chic mobile lifestyle, living off your app revenue ;) Sep 19 03:49:03 StingRay_, you make a great point Sep 19 03:49:56 i think google has enough apps right now, they don't care about indy devs Sep 19 03:50:10 Carbonflux you mean the "may" tacit acquiescence requirement :) Sep 19 03:51:05 agreed :) Sep 19 03:51:34 like filing an income tax return ;) Sep 19 03:51:48 ( in the US ) Sep 19 03:52:44 indeed, most of the time legal authority or title has to be given or relinquished, just people dont read up on the law Sep 19 03:52:49 the tax returns in the US are a major PITA because HR block lobied to keep it that way Sep 19 03:53:02 man, seems like in the US everybody gets screwed unless you're rich Sep 19 03:53:49 and that other company intuit Sep 19 03:54:21 basically the whole f'ing country has to bust their ass on a complicated tax code because of those 2 fckers Sep 19 03:55:14 i'd seriously be up for a one way triip to mars at this point; hoping SpaceX will accept me Sep 19 03:56:21 http://www.propublica.org/article/how-the-maker-of-turbotax-fought-free-simple-tax-filing Sep 19 03:56:32 makes sense Sep 19 03:56:46 many people I know just give in and us HR block Sep 19 03:56:55 because of the legal cover also Sep 19 03:57:06 just get a po box Sep 19 03:57:42 having a p.o. box is not a bad idea anyway Sep 19 03:57:48 cant afford Sep 19 03:59:52 I don't see a field for physical addy on my settings page, maybe because I don't have a merchant account. Sep 19 04:00:47 also PO boxes aren't always availble from offices; i tried a few times near me in AZ and there was a waiting list Sep 19 04:01:18 the little cheap ones go first ;) Sep 19 04:01:20 ya, here you just have to get them from a private service Sep 19 04:01:27 I would not even try at the post office. Sep 19 04:01:42 Carbonflux where are you ? Sep 19 04:01:46 I am thinking google might back down on this a bit Sep 19 04:01:56 StingRay_, Seattle, USA. Sep 19 04:02:12 well I think if nobody does it Sep 19 04:02:15 * g00s hopes to get to seattle some dat Sep 19 04:02:19 uh, some day :) Sep 19 04:02:28 and the only reason you do it is to re-list your app when it's gone Sep 19 04:02:30 all is well Sep 19 04:02:31 :) Sep 19 04:02:35 cause they "may" Sep 19 04:02:41 its nice here, we are having a "boom." Sep 19 04:02:51 :) Sep 19 04:03:03 Carbonflux yeah ... hm, maybe Portland would be better for me Sep 19 04:03:10 less boom :) Sep 19 04:03:16 but some boom :) Sep 19 04:03:17 I am trying to decide if I care if my addy is published to be honest. Sep 19 04:04:13 Hi all I have a few questions about the steps after compile android it's there someone who may help me? Sep 19 04:04:37 macclawd as long as it fits within the topic Sep 19 04:04:46 which you read of course ;) Sep 19 04:05:00 macclawd also just ask, dont ask for some1 to commit to helping you without you asking a single question Sep 19 04:05:11 suuuuure sorry :) Sep 19 04:05:29 i'll try in android-root i think it will fit better Sep 19 04:05:38 sorry and thanks for the info Sep 19 04:06:08 g00s, yup, its a bit crazy here right now. Sep 19 04:06:36 honestly it's arround 10 years since I use for last time IRC so I'm no longer sure of the etiquete here Sep 19 04:06:40 heh ya, don't ask to ask, ask ;) Sep 19 04:07:32 I think IRC has gotten better over the past few years, many trolls have moved on to facebook and stuff. Sep 19 04:09:13 Carbonflux read any good books lately (nonfiction). i think i'll read Theil's new book, even if its not meant for me. Sep 19 04:09:33 should have put '?' instead of . Sep 19 04:10:04 actually, i'm kinda terrified amazon screws something up and hundreds of kindle books dissapear :| Sep 19 04:10:58 Heh, honestly, I have been reading Lev Grossman's Magician series Sep 19 04:12:02 it happens Sep 19 04:12:15 ah; not familiar with those Sep 19 04:12:20 I read about a case in Norway where they erased someone kindle by mistake Sep 19 04:12:26 iirc Sep 19 04:12:30 it was last year tho Sep 19 04:13:04 they can lock or erase it for copyright violations. Sep 19 04:13:53 i 'm worried about something more mundane; like i move to canada and they decide all my content is not visisble there or something Sep 19 04:14:16 heh, thats verging on "magical thinking" ;) Sep 19 04:14:34 have to trust the math in general or you will go mad. Sep 19 04:14:41 Carbonflux so you think i'm safe :) ? Sep 19 04:14:50 I do :) Sep 19 04:14:53 * Carbonflux hides Sep 19 04:14:56 hehe Sep 19 04:24:07 Austin seems better... Sep 19 04:24:19 SF is having quite the boom as well Sep 19 04:24:31 reminds me of 1999 Sep 19 04:25:47 yeah i've considered austin too ... its a possibility. Sep 19 04:25:51 ya, I do think its going to be the "pacific century." In a way most of the western US is identifying with the pacific rim as a culture more so than the east. Sep 19 04:26:14 Pot is legal here ;) Sep 19 04:26:22 I doubt it will ever be in Texas Sep 19 04:26:24 nah, new York is pretty massive too Sep 19 04:26:31 lots of mobile work there Sep 19 04:27:05 I work so many remote jobs, I didn't even know my current client is in ca Sep 19 04:27:06 hah Sep 19 04:27:15 ya, its all dark master types tho, dinosaurs ;) Sep 19 04:28:55 the old power of the Atlantic Alliance is breaking down, moving to Asia...imho. Sep 19 04:29:17 is austin one of those areas a friend almost moved to Waco :| Sep 19 04:29:22 oops Sep 19 04:29:28 heh Sep 19 04:29:37 Carbonflux is austin one of those areas that could be in trouble with water ? Sep 19 04:29:57 i thought they were really killing their aquafier Sep 19 04:30:10 yes, very much so, unless there is some kind of huge desalinization breakthru Sep 19 04:30:43 which is possible given the progress being made in nano-scale sieves Sep 19 04:30:44 actually i did read about a desal breakthrough involving ... graphite ? Sep 19 04:31:11 http://www.extremetech.com/extreme/186704-mit-creates-graphite-solar-sponge-that-converts-sunlight-into-steam-with-85-efficiency Sep 19 04:31:20 I don't doubt it, I think in the end it will just be like a filter you pour the water thru Sep 19 04:32:03 i hope it takes out the Corexit Sep 19 04:51:40 hmmm, are intro screens/tutorials a good idea Sep 19 04:51:57 well, for a complex app obviously Sep 19 04:53:29 I have mixed feelings about that Sep 19 04:53:51 I did, until metric data shows that 1% of my users are the users I wanted Sep 19 04:53:58 mostly I find them annoying to be honest but every now and then I want one Sep 19 04:54:11 as in they are not using the app for what it's supposed to be used Sep 19 04:54:18 interesting Sep 19 04:54:44 can you elaborate a bit? Sep 19 04:55:01 like my sms/mms app has a complex filter system with all sorts of things you can do, from auto responses to messagebox management to individual notifications and actions etc Sep 19 04:55:18 2% of users use filters Sep 19 04:55:27 and thats what the dam thing was created for :) Sep 19 04:56:30 hm...so do you think its a question of UI or documentation/tuts? Sep 19 04:56:59 well, I was chatting to a user about mms settings, currently have a problem with T-Mob US Sep 19 04:57:19 and he asked about something, my answer was, well thats quite a simple filter Sep 19 04:57:33 he asked if there was any way to block spam sms Sep 19 04:57:52 well yeah you can use anything from number, keyword match number match message matching regex anything Sep 19 04:58:07 but even though the filter button, right there in the side pannel, no idea he could do that Sep 19 04:58:14 well, that sounds like the challenge is presentation of the features perhaps. Sep 19 04:58:22 next version I measured users with filters, and got my shock Sep 19 04:59:05 yeah, so an intro kinda presentation slide showy thingy on first run Sep 19 04:59:09 thats what I'm thinking Sep 19 04:59:19 yay, fixed my mutual exclusion problem... Sep 19 04:59:27 maybe... Sep 19 04:59:38 thanks for explaining that, its a great example of a classic problem. Sep 19 05:01:45 I will be very curious to know what kind of results you get, maybe from even something as simple as making the users aware of the feature. Sep 19 05:02:21 tho I suspect for most users regex will be totally alien Sep 19 05:02:54 creating filters in UI is pretty complicated Sep 19 05:03:03 and allowing composition, conditions, etc Sep 19 05:03:07 g00s not really Sep 19 05:03:07 ^ Sep 19 05:03:16 I have a conditions area Sep 19 05:03:21 and an actions area Sep 19 05:04:43 conditions have a global compare operator like "all are true" "none" "any" etc Sep 19 05:05:11 made it as easy as I think is possible Sep 19 05:06:49 well, I with a fk tonne of work I could make it even easier Sep 19 05:06:49 well, I hope you get some feedback Sep 19 05:07:02 feedback for what ? Sep 19 05:07:42 with regard to how effective adding a tut is Sep 19 05:07:56 or if its the filter UI itself etc Sep 19 05:08:30 well I have put out simple videos on use Sep 19 05:09:02 but it's kinda so easy it's hard to make it any more dumb proof Sep 19 05:09:06 StingRay_ if anyone has any questions they can just drop by your flat ... Sep 19 05:09:16 house and yeah Sep 19 05:09:22 my address right there lol Sep 19 05:09:23 :) Sep 19 05:09:40 oh I just had a look, cant add my address Sep 19 05:09:59 so maybe google are considering something else after thousands of angry e-mails and posts? Sep 19 05:11:26 no, they are a large US tech company - they don't give a shit about a few thousand indy devs Sep 19 05:11:59 StingRay_ you aren't in the us so the cultural and political context may be lost , but http://www.amazon.com/The-Class-Conflict-Joel-Kotkin/dp/091438628X Sep 19 05:13:55 I still dont get how I am to solve this T-Mobile issue, there is no outward facing techy I could speak to :( Sep 19 05:15:56 StingRay_ so their response from the server was just that teeny error ? Sep 19 05:16:29 400 response is all I get :( so they have some format enforcement that others dont I would guess Sep 19 05:16:56 I can speculate and maybe add smil support to my messages but that a fair bit of work when I'm just guessing Sep 19 05:17:10 and it's a stupid format Sep 19 05:17:28 who wants a mms as a slideshow…..really ? thats silly! Sep 19 05:18:18 some may say that it's part of the content description but no… no it's not :) thats what the pdu encapsulation is Sep 19 05:18:28 omg, I sound like a programmer Sep 19 05:18:37 * StingRay_ is not going to be quiet for quite some time Sep 19 05:25:42 heh Sep 19 05:26:55 StingRay_ so this involves http ? Sep 19 05:27:15 i don't know crap about what you're doing. can you install something like Charles (Proxy) and get more info ? Sep 19 05:27:49 g00s yeah, http/mmsc server with 3gp standard for mms Sep 19 05:28:09 but no, not much I can do as it's only t-mobile it's failing on Sep 19 05:28:46 well right, but could there be more info in the http stuff that sheds light ? Sep 19 05:29:18 well I get the response entity and no info at all Sep 19 06:26:40 wow thats great; i procrastinated updating mac os 10.7 for so long ... 10.10 is almost here woohoo ! Sep 19 06:28:38 * StingRay_ looks, oh still ML for main workstation Sep 19 06:29:22 i want to try my hand at swift so i'll need to update things for sure Sep 19 06:29:42 oh, my g/f just sent me some links of all the iphone hype, queues etc… it's crazy and a quite about console quality graphics…shows how much the media are retarded too Sep 19 06:29:51 g00s same Sep 19 06:30:21 quote* not sure why is said quite Sep 19 06:31:13 StingRay_ all the Oreilly iOS books are 50% off now Sep 19 06:31:24 http://shop.oreilly.com/category/deals/ios.do?code=WKIOS8 Sep 19 06:31:29 well, cause they are redundant no ? Sep 19 06:31:31 :) Sep 19 06:32:22 redundant ? Sep 19 06:36:28 superfluous Sep 19 06:44:11 oh sorry ios8+swift Sep 19 06:44:22 I thought you were saying all the object-c stuff Sep 19 06:50:33 bummer my lumia 521 only has bluetooth 3. Sep 19 06:51:34 i figure, my app hasn't sold on Play, may as well port it to WP and not sell anything either but use nice tooling, and c# Sep 19 06:51:57 but i will need a device with Bt 4, luma 530 i guess Sep 19 06:52:14 LE? Sep 19 06:52:19 yeah Sep 19 06:52:45 i'll just close this account and forget any of this ever happened Sep 19 06:56:05 g00s I think you choose something a bit …erm… special though Sep 19 06:56:11 go more mainstream :) Sep 19 06:56:47 i chose something i was interested in, used by interesting people with interesting problems. i didn't expect to get rich; i'm just saying - it not worth the hassle with google any more Sep 19 06:59:13 so first i have to migrate everything from gmail to fastmail; which i'll look into now Sep 19 07:23:43 If you're going to migrate, might as well stop by mailnull first. Best and only way to actively kill spam. And with it you can know exactly what corrupt company dared sale your email address. I send them an insult mail, report them to as many people as I can, deactivate the email and never return. Sep 19 07:24:54 Oh he left Sep 19 07:25:10 What is the proper way to save API credentials? Sep 19 07:44:25 android studio update for windows/linux 1mb, for mac 160mb Sep 19 07:48:06 gdrc: Haha how come? Complete UI revamp or what? Sep 19 07:49:06 downloading... I'm also updating xcode Sep 19 07:55:25 not much has changed: "the OSX Android Studio.app directory structure changed significantly, and the patch mechanism does not handle this well" (http://tools.android.com/recent/androidstudio0811released) Sep 19 08:03:10 the download stopped at 104 mb damn Sep 19 08:04:25 wget ftw Sep 19 08:04:46 or any other downloader that is smart enough to resume Sep 19 08:06:26 Is there a way to limit the image from the gallery to be only low quality images? Sep 19 08:06:28 force close android studio and download again worked Sep 19 08:06:35 has google put any info out about the android one program and any sdk additions it brings ? Sep 19 08:06:59 meadhikari not sure what you mean… Sep 19 08:07:29 meadhikari maybe say what the problem is, rather than speculating a solution ..? Sep 19 08:07:43 bitmap too big to load etc ? Sep 19 08:07:45 StingRay_, I will try to rephrase Sep 19 08:07:53 StingRay_, yes exactly that Sep 19 08:08:11 StingRay_, so I want to limit the user on image selection Sep 19 08:08:30 limit the selection ? Sep 19 08:08:36 how many are you getting and loading ? Sep 19 08:09:00 StingRay_, I mean limit in the size of the image Sep 19 08:09:05 I am just loading one Sep 19 08:09:21 well no, you are thinking a bit backwards… you dont get an image Sep 19 08:09:32 you get the location of a file or resource right ? Sep 19 08:09:49 so you can hardly say give me half of the image/resource location Sep 19 08:09:58 but read this http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Sep 19 08:10:23 most answers are in the docs for very common things if you search Sep 19 08:11:03 StingRay_, really thanks a lot for the link Sep 19 08:12:51 1 min and 35 seconds to build release apk! Sep 19 08:15:59 that's fast Sep 19 08:16:04 not even enough to have a decent cup of coffee Sep 19 08:16:11 Ok this I driving me bonkers, I have this imageview, height is fixed, and width is set to wrap_content, scale_type to fitCenter. But still it seems to consume the whole width, although I can clearly see the image in the center with plenty of place on either side, but I can't send that damn image to the left, although I have set the gravity, and even worse, I can't set anything to the right of this picture, because it is using up the whole width of the sc Sep 19 08:17:05 tried playing with weights? Sep 19 08:18:51 Am using a relative layout, but I had without any better luck. So I should drop Relative and keep fooling around with the LinearLayout? I don't know if it's just me but some of this sh*t is really counter intuitive. Because I want an image, a title to it's right and a subtitle below that. Sep 19 08:19:18 You wouldn't think one could lose an hour doing it. Sep 19 08:19:24 SASDOE more than likely you are making it harder than it needs to be Sep 19 08:19:58 from what you just said, I see the use of 2 linearLayouts Sep 19 08:20:13 OutputStream out = new BufferedOutputStream(httpURLConnection.getOutputStream()); Sep 19 08:20:17 whoops Sep 19 08:20:35 one vertical, one added to it horizontal for the image and title Sep 19 08:20:45 StingRay_: Probably. So one for the imageview and another, contained in the first, for the other two? Sep 19 08:21:22 one as a parent, vertical Sep 19 08:21:41 then one inside that for image and text …horizontal Sep 19 08:22:00 then a text view added to the parent for the subtitle Sep 19 08:22:28 I'd like the subtitle to also be to the right of the image and below the title Sep 19 08:22:42 just use linearlayouts, relatives are not meant for this Sep 19 08:23:05 that could very likely be why you're spending so much time on this Sep 19 08:23:12 well, relatives are really supposed to be for this Sep 19 08:23:19 Ok thanks I'll give it a try. God these layouts drive me crazy. It's no even coding. Sep 19 08:23:23 "relative" positioning Sep 19 08:23:38 but if you can get away with a few linear or frame it's better Sep 19 08:24:32 Ok. Yeah I though relative sounded right, obviously they're a nightmare for a newbie like me. Sep 19 08:25:04 tell me what you want Sep 19 08:25:14 description again Sep 19 08:26:23 http://www.vogella.com/tutorials/AndroidListView/images/xlistview_line10.png.pagespeed.ic.V-pIawT-_J.png precisely this Sep 19 08:26:43 The tutorial obviously produced nothing Sep 19 08:27:42 vertical linear layout with a horizontal linear layout in it Sep 19 08:28:07 squared in the first, the rest in the nested layout Sep 19 08:28:35 Ok thanks I'll try Sep 19 08:29:04 you could also use relativelayout then you dont need to nest anything though Sep 19 08:29:38 SASDOE http://pastebin.com/0v5wrUzP Sep 19 08:29:49 Yeah but I've been trying that for an hour now, each resulting in a stupider layout than the previous Sep 19 08:29:58 : D Sep 19 08:30:05 Ha under a minute! Sep 19 08:30:08 Cheers! Sep 19 08:30:11 youll get a feeling for it Sep 19 08:30:20 layouts are something that just needs practice Sep 19 08:30:34 layouts can be totally illogical at times but this specific case seems way too trivial to cause any kind of headache Sep 19 08:31:28 ravilov: so I though! Sep 19 08:31:59 SASDOE alternate http://pastebin.com/T1u4NAGM Sep 19 08:32:05 using relative positioning Sep 19 08:32:32 but should give you some idea of whats going on with those two doing the same thing Sep 19 08:32:37 but diff components etc Sep 19 08:32:59 but yes, both really simple examples Sep 19 08:34:35 I think the big headaches come with Sep 19 08:34:58 Thanks, the first works perfectly, I'll stick with that (but I'll try using the second one some time later, just to get the hang of it). But for now, I need to move as far as possible for doing this layout! Sep 19 08:35:00 variable sizes of sometihng, not known at the layout design stage Sep 19 08:35:14 phpstorm just wiped my license after an update. now i have to search tons of mails to find the key again -_- Sep 19 08:35:14 I'd rather not think of it! Sep 19 08:35:40 damn you intellij Sep 19 08:35:51 SASDOE, no, the thing is, it *is* that trivial, I'm sure you were doing something way more complicated than it needed to be, and were persistent at it :) Sep 19 08:36:33 hey anyone know how I can avoid a touch event when the screen is being scrolled? Sep 19 08:36:35 instead of scratching it and starting over Sep 19 08:36:39 hello Sep 19 08:36:45 persistence at over complicating things, is that not what all you programmers do ? and is indeed a sign of maturity ? Sep 19 08:36:54 JOIN #haxe Sep 19 08:36:57 StingRay_, I was going through the documentation on loading image but stuck on the first argument of the function decodeSampledBitmapFromResource() it is a Resource object, I have fileURi to begin with. How do I resolve this. Please help Sep 19 08:36:59 I was trying to do it all in one Relative or Linear layout, which is probably why I couldn't get anything working. Sep 19 08:37:01 StingRay_, no, that's called overengineering ;) Sep 19 08:37:15 hello Sep 19 08:37:30 Lonesoldier728: explain that further Sep 19 08:37:33 I was wondering if there's a way to remote compile my code on ec2/gce. I want to buy a cheap laptop and use the computing power of amazon/google Sep 19 08:37:35 SASDOE the second example is with a relative layout, single one Sep 19 08:37:38 meadhikari, read loading bitmaps on Android documentation / training Sep 19 08:37:43 a sign of maturity might be overcomplicating it but actually getting it done in the end :) Sep 19 08:37:51 you just have to pass in BitmapOptions with scale to BitmapFactory when loading images Sep 19 08:38:04 guys anyone having experiences with gradle based unit tests? Sep 19 08:38:43 blues-man, just ask the question Sep 19 08:39:01 StingRay_: There's a linearLayout around the Relative in second example is that a mistake then? Sep 19 08:39:08 danijoo_ I have a regular and horizontal scroll view around an image view to be able to scroll the big image up down left and right, and depending on where on the image is clicked I have an ontouch event called to show something depending on the position but if I scroll it counts as a touch event so I want to avoid it Sep 19 08:39:22 SASDOE no, that was me being lazy with pastebin Sep 19 08:39:44 can take it away if you want Sep 19 08:40:07 SASDOE but stick with the 1st example, tis lighter Sep 19 08:40:25 Lonesoldier728: Maybe registering an ontouchlistener works Sep 19 08:40:28 2nd was just to say, here this is how to do it with single relative Sep 19 08:40:30 Mavrik, I am going through http://developer.android.com/training/displaying-bitmaps/load-bitmap.html but the first parameter of the function decodeSampledBitmapFromResource() got me confused Sep 19 08:41:07 Cool, thanks! Would probably have given my computer wings (ie sent it flying though the window) if not for you guys. Sep 19 08:41:15 I have a imageReturnedIntent on my activity result Sep 19 08:41:18 Lonesoldier728: and return true; in it to tell android you consumed the click Sep 19 08:41:28 meadhikari, how experienced are you with activities? Sep 19 08:41:29 meadhikari, why are you using a method to load resource when you're loading a file? Sep 19 08:41:45 (every activity has the resources object at its disposal) Sep 19 08:41:47 ravilov, I would test without roboletric an android library which some unit test I put in androidTest dir. With Eclipse I can run those tests as Android JUnit test but with gradle connectedAndroidTest (and an emulator connected) I got error because I don't know how to test an android library in that way Sep 19 08:41:50 how do I register what do you mean, let me show you code Sep 19 08:42:11 exactly though I need to pass true trying to figure out how to point it out Sep 19 08:42:23 view.setOnTouchListener() .. Sep 19 08:42:34 on the view where you dont whant the touch events Sep 19 08:42:51 I have that already, just trying to figure out how to point out the scrollview, ah can I call the scroll view? Sep 19 08:42:52 ravilov, i get image from gallery, compress and display it Sep 19 08:42:53 blues-man, well don't ask me, I know nothing about gradle (except that I really dislike it), I meant intro questions are not appreciated here, just shoot Sep 19 08:43:01 meadhikari, that is irrelevant Sep 19 08:43:06 dunno what you mean with "call" Sep 19 08:44:37 ravilov normally I'm all for guiding some1 to a learning path rather than absolute answer but….erm… meadhikari BitmapFactory.decodeFile(somePath) <--- gives you bitmap Sep 19 08:45:12 right, well now I shot :) Sep 19 08:46:46 StingRay_, this way he would have learned about resources too, and how they are very simple and not confusing at all... yeah just yet another one to overcomplicate things by thinking more of something than it really is, lol Sep 19 08:47:04 hi Sep 19 08:47:19 well since he's on the "learning" page, and just was confused at a single line Sep 19 08:48:54 StingRay_, thanks a lot. Its quite hard sometimes to convey that I really like to learn stuff not just want a ready made answer when your basic knowledge on the topic is very weak Sep 19 08:49:43 meadhikari tis called "the beginning" and everyone started there :) Sep 19 08:50:20 to prove you like learning, go look up the resources class and then tell us what it is :p Sep 19 08:50:49 I want to use sharedpreferences for the login page. Sep 19 08:50:52 nope that did not work dani_joo Sep 19 08:50:57 danijoo_ Sep 19 08:51:13 For first time installation of the app the login page should be shown. (prefs is clear) Sep 19 08:51:46 better I paste my long question in a pastebin Sep 19 08:51:54 http://pastebin.com/r62a51uu Sep 19 08:51:54 http://pastebin.com/1A49g2c2 that is my code, trying to figure out how to disable the touchevent for the view worldmap occuring when scrolling occurs Sep 19 08:52:12 holy balls, I just discovered resource qualifiers for MCC and MNC… not sure how or why anyone would use these…but never knew they existed Sep 19 08:53:12 imageView.setColorFilter(Color.BLACK) seem not to work on 2.3.3. I use shapeDrawable. Sep 19 08:53:22 it works on 4.1.2 and Android L Sep 19 08:54:14 hi guys, i have a listview that binds to a remoteviewsfactory, and when it is loading i want to display another view, not the listview, just like i can do with setEmptyView, implementing getLoadingView just gives me the same loading string for each item in the listview Sep 19 08:54:15 . any ideas? Sep 19 08:54:18 Hello. How can I apply this (http://i.imgur.com/ZFgIU0c.png) on Navigation Drawer? Im new to android. Sep 19 08:54:30 yoavst: just an idea but maybe you have to define a mode? Sep 19 08:54:38 StingRay_, might be useful for kewl theming... "T-Mobile USA" -> "h4xx0rz netwerk" :p Sep 19 08:54:46 if that's what you meant Sep 19 08:54:54 danijoo_: "Set a tinting option for the image. Assumes SRC_ATOP blending mode." Sep 19 08:55:03 oh okay. Sep 19 08:55:05 http://stackoverflow.com/questions/25930030/how-do-i-avoid-a-touch-event-when-the-image-is-being-scrolled Sep 19 08:55:11 This is my question on stack over flow Sep 19 08:56:21 danijoo_: I need it to create a grid to choose between 20 colors, and I don't want to create 20 diffrent drawables :/ Sep 19 08:56:53 setColorFilter(int) (so using the default mode) was introduced in api 8 (froyo), so should work on 2.3.3 Sep 19 08:57:34 it show transparent or nothing Sep 19 08:57:35 yoavst: you could also create 20 framelayouts and set background color :p Sep 19 08:57:53 danijoo_: still need for oval :P Sep 19 08:58:02 but im really wondering why color filter doesnt work like it should in 2.1 Sep 19 08:58:10 or new ColorDrawable(Color.RED) Sep 19 08:58:15 dont have enough experience with that api level :/ Sep 19 08:58:25 yoavst, does your imageview have the source? color tinting doesn't work on backgrounds Sep 19 08:58:32 * ravilov discovered that not so long ago Sep 19 08:58:42 it is src Sep 19 08:58:56 Sep 19 08:59:08 ok, thank you... Sep 19 08:59:33 Sep 19 08:59:37 that is the drawable Sep 19 08:59:38 not sure then, I have a 2.3 AVD and was playing with color tinting just a few days ago and it worked as expected Sep 19 08:59:49 I use genymotion Nexus one 2.3 emulator Sep 19 08:59:57 I'll test on regular AVD Sep 19 09:00:00 shouldn't matter, 2.3 is 2.3 Sep 19 09:01:15 did you try using the setColorFilter(int, PorterDuff.Mode) or the setColorFilter(ColorFilter) variants instead? Sep 19 09:02:23 anyone know what I am doing wrong here? Sep 19 09:03:07 http://stackoverflow.com/questions/25930030/how-do-i-avoid-a-touch-event-when-the-image-is-being-scrolled-android Sep 19 09:03:12 Lonesoldier728, pretty sure they would speak up by now if they did... Sep 19 09:03:30 Lonesoldier728 do you know when the scroll is in motion ? Sep 19 09:03:47 cause thats what you are really asking Sep 19 09:03:50 I just started googling that Sep 19 09:04:10 how to detect isScrolling() type thing Sep 19 09:04:20 I added gestures too as you can see but that is not doing anything Sep 19 09:05:22 thanks ravilov it looks to work Sep 19 09:05:53 problem might be a touch event is the basic starting point for all the other ones (scrolling, gestures), so not sure how to avoid it Sep 19 09:06:02 good morning everyone! i'm trying to debug my webview with chrome web-dev tools, but everytime i click on inspect my app crashes with sigterm 11. what to do? Sep 19 09:06:07 a touch event might or might not trigger a onclick, but the event itself kinda has to happen Sep 19 09:06:12 yoavst, np Sep 19 09:13:21 hey Lonesoldier728 Sep 19 09:13:33 hey napalm Sep 19 09:13:51 what are you trying to do exactly? Sep 19 09:13:51 you know how I can get the gesture detector working? Sep 19 09:14:01 yes, but what your doing seem's wrong Sep 19 09:14:10 basically when a user clicks on the image I want to popup an info modal Sep 19 09:14:17 lets try again, i have a listview that binds to a remoteviewsfactory, and when it is loading i want to display another view, not the listview, just like i can do with setEmptyView, implementing getLoadingView just gives me the same loading string for each item in the listview, any ideas? Sep 19 09:14:43 the image though is too big that I have to have it scroll left right/up down... and when scrolled I do not want to have anything pop up Sep 19 09:16:21 Lonesoldier728: gotcha, no you do know with this way of doing a scrolling image.. if the image is quite large.. you risk crashing the app Sep 19 09:16:48 what other alternatives do I have? Sep 19 09:16:57 and what is considered too big? Sep 19 09:17:19 it is a world map Sep 19 09:17:59 it should be fine Sep 19 09:18:02 one moment Sep 19 09:19:08 Lonesoldier728, can't look at your code now but it seems your approach is indeed wrong - you don't need to ignore any touch events, you just need to do the popup on click and not on touch Sep 19 09:19:42 I was using touch because I am trying to get the coordinates Sep 19 09:19:53 different coordinates need to show different countries Sep 19 09:20:15 you could use ontouch to store the last MotionEvent somewhere, but you should do the popup in onclick Sep 19 09:20:23 Lonesoldier728: how big is your world-map image? Sep 19 09:20:29 i mean in width and height Sep 19 09:20:57 Well that is the next thing I am going to figure out, currently it is 919 x 500 Sep 19 09:21:17 thats really low res Sep 19 09:21:39 in any case, doing a popup in ontouch really seems like a bad idea, which is why I said it looks you have the wrong approach here Sep 19 09:21:51 Napalm, that's assuming it covers full screen, which it might not ;) Sep 19 09:22:08 Yeah I am using this as a test, I basically want to make a map that looks like google maps Sep 19 09:22:18 yea, this is not the way to do it Sep 19 09:22:34 why not just use the GoogleMaps view Sep 19 09:22:35 if gmaps did it this way, they would never get anywhere :p Sep 19 09:22:35 lol Sep 19 09:22:35 not sure how theres work, besides maybe they have different parts of the image load or something in pieces? Sep 19 09:22:54 I want it offline and not have to rely on the google maps api Sep 19 09:23:31 Lonesoldier728: whats your minSdkVersion for your app? Sep 19 09:23:44 4.0, api 14 Sep 19 09:24:34 what do you guys suggest then? Sep 19 09:25:23 one moment Sep 19 09:25:31 I just explained what you should do... Sep 19 09:25:39 Lonesoldier728: i assume you want zoom? Sep 19 09:25:40 perhaps you should read what's been said again Sep 19 09:26:02 yeah napalm Sep 19 09:27:00 ravilov on storing the ontouch kk, I like that, but if someone scrolls is it not considered a click? Sep 19 09:27:19 Also, in terms of the map size/res what should I be doing as well Sep 19 09:27:20 no? Sep 19 09:27:36 oh I don't know the best way to handle large zoomable pannable images Sep 19 09:27:40 but touch != click Sep 19 09:27:53 click event is actually a result of some pretty complex processing Sep 19 09:27:56 kk thanks ravilov I think that should work then Sep 19 09:28:06 while touch is a basic raw event Sep 19 09:37:34 Lonesoldier728: i gtg, but i started a little custom view.. i'll finish it off a little later. pm me contact info and i'll send it over Sep 19 09:39:37 is their any problem with Gradel. I m trying to create a new project, but it keeps on downloading libs. Sep 19 09:40:17 when i monitor in network, no send receive is happening Sep 19 09:40:24 can someone help? Sep 19 09:41:00 help! my webview crashes, when i try to debug it with chromes dev-tools. i happens, when i click on inspect. stacktrace: 09-19 11:39:26.159: A/libc(30705): Fatal signal 11 (SIGSEGV) at 0x00000038 (code=1), thread 30705 () Sep 19 09:44:04 SIGSEGV or "segmentation fault" is a low level signal that can happen for any number of reasons, it generally means someone somewhere tried to access some memory that is not theirs to access Sep 19 09:45:59 low level == system, the kernel is forcibly terminating a process because it was misbehaving Sep 19 09:46:05 ravilov: but how can this happen? the content is localized in the local storage of the package and i can see everything in the view. debugging is enabled, too Sep 19 09:46:34 well, the location looks to me like a null pointer dereference Sep 19 09:47:09 Ponsen, probably some JNI code somewhere crashed Sep 19 09:47:10 0x00000038 = appears to be a null pointer + offset 0x38, likely an offset in some data structure Sep 19 09:48:36 dafuq! i'm still a noob in android. any suggestions of how to fix this? Sep 19 09:49:23 Guys, how can i provide action bar functionality in master-detail pattern? For example if i want search button (in action bar) for usage in master fragment and in detail fragment at the same time? Don't know how it should look like. Maybe i need something like separate action bars in both fragments? Sep 19 09:53:34 olologin best thing to do is find a app with similar functionality Sep 19 09:53:50 and when you have searched for days and cant, ask yourself why :) Sep 19 09:55:28 I don't know how it might look according to guidelines, i'm doesn't asking about implementation Sep 19 09:56:01 well guidelines are not rules Sep 19 09:56:16 but what I think you are suggesting is a bit odd for a mobile platform Sep 19 09:56:30 how about you just look for a similar app in terms of functionality? once you find one it will also provide ideas on visual appearance Sep 19 09:57:06 ok, thanks guys, i'll try to search something similar Sep 19 09:59:13 I need your design advice. When network fails or not login use, I need to display network failure or login activity. However to make it nicer, without boilerplate code? I am using dagger btw. Sep 19 10:02:07 make it look like the paypal app with a message telling them all their money has successfully been transferred to recipient UNKNOWN Sep 19 10:02:11 :p Sep 19 10:15:48 ravilov: can u help me in with this http://stackoverflow.com/questions/25930161/shared-preferences-on-login-page Sep 19 10:17:42 niru I think thats just a really really basic logic problem Sep 19 10:18:05 StingRay_: yes Sep 19 10:18:10 do you have a specific question ? or some element that you are stuck with ? Sep 19 10:18:24 cause the solution to that semi statement is … yes…do that Sep 19 10:18:26 :) Sep 19 10:19:25 How to get the location where app settings are saved? on my phone it's /data/data Sep 19 10:19:43 it's always /data/data Sep 19 10:19:49 StingRay_: the code I pasted there is working fine with first install of the app. For every logout I am landing up in 2nd page which should not happen Sep 19 10:20:07 also, you shouldn't care about such basic system stuff, or else you're doing it wrong, check3r Sep 19 10:20:18 If logged out and closed the app. I should see the login page Sep 19 10:20:28 to enter username and password Sep 19 10:20:32 ravilov, thanks Sep 19 10:20:51 niru, just add a boolean to your shared prefs, logged_out=true Sep 19 10:20:59 then act on it the same way as if there are no prefs Sep 19 10:21:05 check3r: dont rely on /data/data Sep 19 10:21:11 use context.getFilesDir().getPath() Sep 19 10:24:10 danijoo_, thx thats what i was looking for Sep 19 10:24:17 yw Sep 19 10:28:30 I think I am a bit confused on the coordinates topic, if I am recording touch event on an imageview and the coordinates of it, what are the coordinates actually relating to? Sep 19 10:29:13 is a coordinate the same as a pixel of the image or is it relative to the phone meaning the same image on another phone (smaller screen) will have different coordinates? Sep 19 10:29:19 the view Sep 19 10:29:37 so would a different sized phone have different coordinates?> Sep 19 10:29:41 pixel Sep 19 10:29:53 relative to top left of the view Sep 19 10:30:10 Lonesoldier728, I told you already, ontouch is a basic raw event Sep 19 10:30:24 so yeah you get pixels and things will differ on a different device Sep 19 10:30:41 well may differ, if the size of the view differs ;) Sep 19 10:31:02 best to assume it will differ :p Sep 19 10:31:09 you can normalize it tough Sep 19 10:31:48 how do I normalize it, basically (on my world map) when someone clicks on africa despite the phone I want it to display africa not something else Sep 19 10:31:53 what's the confusion though? your underlying image is (supposedly) also in pixels, so that should work out seamlessly Sep 19 10:32:36 yeah, I thought image hit maps were like, soooo 1990's Sep 19 10:33:09 Lonesoldier728: coordinate/maxCoordinate = normalizedCoordinate Sep 19 10:33:34 normalized coord will be between 0 and 1 where where 0 is the most top point and 1 the most bottom point Sep 19 10:33:55 sooo... normalized = percentage really :) Sep 19 10:34:01 how do I figure out the exact coordinates is there an easy way to grab them somehow Sep 19 10:34:16 like a programmatic way Sep 19 10:34:28 it really feels you're overcomplicating this Sep 19 10:34:34 getX ? Sep 19 10:34:36 I guess it's the overcomplicate-stuff day Sep 19 10:34:36 I might be Sep 19 10:34:41 ravilov: if you want to see it that way ;) Sep 19 10:34:41 thats pretty exact to the pixel Sep 19 10:35:35 I want to wait until my process obtained root. but this blocks forever Runtime.getRuntime().exec("su").waitFor(); Sep 19 10:35:43 StingRay_ I understand that, the thing is I am seeing the exact coordinates by just using my finger to click on it and see what the Log outputs, but how do I figure it out exactly, is there a program or site or something that I can upload the image and see the coordinates more exact Sep 19 10:36:06 check3r, um duh, why wouldn't it block? you just started a new root shell Sep 19 10:36:17 the shell is waiting for a command, and you're waiting for... heck knows what Sep 19 10:36:32 Lonesoldier728 you mean like photoshop ? Sep 19 10:36:32 you seem to not quite understand how root acces on android works Sep 19 10:36:42 check3r: You have to check for an exit value. Sep 19 10:36:42 your app never actually obtains root, that is impossible Sep 19 10:36:54 ah ok so I only get a shell Sep 19 10:36:56 you only get to execute commands through a root shell Sep 19 10:37:05 okay thanks Sep 19 10:37:09 p = Runtime.getRuntime().exec("su") Sep 19 10:37:14 Lonesoldier728, Why don't you use the cursor location checker from the Developer tools in android? Sep 19 10:37:25 check3r, yes, what exactly did you think running "su" does? :p Sep 19 10:38:04 you must write to a shell . Sep 19 10:38:07 where do I find that exactly Nyoom Sep 19 10:38:09 see http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/ Sep 19 10:38:16 so no possibility to get root for my thread? Sep 19 10:38:24 absolutely not Sep 19 10:38:39 look up how root access on android works, might clear things up for you Sep 19 10:38:44 Ehm Sep 19 10:39:07 Lonesoldier728, I'm afraid you lost me now, no idea what you're trying to do and why is it so complicated Sep 19 10:39:25 http://www.androidcentral.com/how-enable-developer-settings-android-42 this? Sep 19 10:39:41 Nyoom, what about that? Sep 19 10:40:34 There is a tool for checking the exact cursor location which Lonesoldier728 was asking for. Sep 19 10:40:59 oh you mean debug touch coords? Sep 19 10:41:01 hm I guess Sep 19 10:41:51 Hi! Is it normal behavior in mobile browsers when uploading a photo for a popup window to appear asking whether to upload from disk or use the camera? I was always under the impression I had to design such a popup myself? Sep 19 10:41:54 Lonesoldier728 in the interest of saving a fk tonne of time, why do you want a visual way to see coords ? Sep 19 10:42:41 frank_o: its normal. Sep 19 10:43:02 frank_o, it's called completing the intent Sep 19 10:43:04 danijoo_: That's awesome man Sep 19 10:43:26 and if there is another application on the phone that registers for photo intents, this will show up as well Sep 19 10:43:44 :) Sep 19 10:43:58 Is there a way to disable it so I can present my own custom popup by any chance? Sep 19 10:44:09 hey so this is the pastebin of the issues http://pastebin.com/0VtLm3pj Sep 19 10:44:55 Lonesoldier728 see thats better, but 1st question is a bit pointless Sep 19 10:44:59 Incase one has his or her own unique visual style and would like this reflected across as much of ones app as possible Sep 19 10:45:10 pytag? Sep 19 10:45:36 frank_o, you can always make your own browser with uploads that wouldn't have this popup :p Sep 19 10:46:09 ravilov: hehe Sep 19 10:46:41 StingRay_ well for the second question how do get the grouping? Sep 19 10:47:28 you define your own boundaries? Sep 19 10:47:35 and then check your (x,y) against them Sep 19 10:47:54 Lonesoldier728 yeah like ravilov says, but enclosed shapes with basic collision detection Sep 19 10:48:37 Lonesoldier728 but if this were to be a professional app, I would look at sometihng a bit more dynamic than a bitmap Sep 19 10:48:47 Lonesoldier728, is it just me or are you doing stuff here while not really knowing what you're doing or knowing the platform that well? it's kind of like a car monkey trying to fix a car but not knowing what a screwdriver is for or how to use it, lol Sep 19 10:49:20 something* Sep 19 10:49:20 Off topic -- how did you guys celebrate the day you completed your first app? Sep 19 10:49:20 frank_o dunno, tell you when it happens Sep 19 10:49:37 you celebrate that? Sep 19 10:49:40 right but can I assume if the top left of africa x is 1 and right is 2, bottom y is 4, and top y is 5... do I have to do something like if x is greater than 1 or less than 2 and y is greater than 4 and less than 5 then it is africa? Sep 19 10:49:40 it's never completed, just gets to a point where you are willing to release, but then spend x time still improving it Sep 19 10:49:43 no one told me... Sep 19 10:50:07 Lonesoldier728, that's what checking against boundaries means... Sep 19 10:50:26 Lonesoldier728 no, enclosed shape intersection detection Sep 19 10:50:30 how else would you do it? Sep 19 10:50:31 frank_o: http://www.quickmeme.com/img/e3/e3d40954f6b0006057c79da04578c2e344afdb6a0fa844029c78f41108bd6df2.jpg Sep 19 10:50:58 Lonesoldier728 you can cheat though if you want a quick dirty way Sep 19 10:51:02 lol Sep 19 10:51:19 : > Sep 19 10:51:27 what is the enclosed shape way? and what can be used to be more dynamic Sep 19 10:51:46 Lonesoldier728 the way we used to do surface properties on things like ps2 was with another map, color coded …so you have 255 pallet to play with then you just get the hit color Sep 19 10:52:13 Lonesoldier728, vector graphics maybe? Sep 19 10:53:02 StingRay_, plus the designer/graphics guy can be the one to draw out boundaries, instead of the developer guy, right? :p Sep 19 10:53:06 StingRay_ another way I heard of doing it, if this is what you mean by it, is having an invisible map over it with different colors for each place, and when the place is clicked get the color of the image clicked on? Sep 19 10:53:22 lol Sep 19 10:53:28 ravilov there are topo maps you can grab that have it done for region display Sep 19 10:53:45 "you can do it this way" "yeah I've heard of this other way too... which is the exact same way you just described" Sep 19 10:53:50 Lonesoldier728 no, not invisible and not visible Sep 19 10:54:02 just there as a lookup Sep 19 10:54:13 Lonesoldier728 no offence but are you sure you are up to doing this ? Sep 19 10:54:37 I never worked with coordinates or touch events so that is why I been looking for direction to know what to look for exactly Sep 19 10:54:50 touch events in the sense of coordinates Sep 19 10:55:18 please help, i have been having problem push data from eclipse to Git. Sep 19 10:55:19 Is there something you can point me to, to read StingRay? Sep 19 10:55:20 Lonesoldier728 we are discussing logic and common sense atm in regards to programming, to which I'm not all that great Sep 19 10:55:26 Lonesoldier728, it's not even about just dealing with bitmaps and coordinates, you seem profoundly overwhelmed by all of this Sep 19 10:55:49 like you've never seen android before, lol Sep 19 10:56:16 hackable, how much time did you spend googling this and what did you find? Sep 19 10:56:50 Lonesoldier728 let me ask you some quick simple short questions, ready ? Sep 19 10:57:04 also begging and saying please won't make people any more or any less likely to help, hackable Sep 19 10:57:06 Lonesoldier728 can you get the raw x y of a touch event ? Sep 19 10:57:33 Lonesoldier728 can you lookup in an image what color a pixel is at those coords ? Sep 19 10:58:04 Lonesoldier728 can you reference that color to another datasource like a string map that….wait for it… has country names in it ? Sep 19 10:58:12 cause that really all you need to do Sep 19 10:58:32 * ravilov wonders when will StingRay_ quit making excuses and just admit he's a dev :p Sep 19 10:58:52 I understand that, but what is throwing me off with your whole thing is, if my map is all green (1 color) how does that work? Sep 19 10:59:18 Lonesoldier728 do you understand that a color coded image is not displayed Sep 19 10:59:30 it;s used as reference for …wait for it....color Sep 19 10:59:41 if your lookup image is all one single color... then there are no regions defined, aren't there? Sep 19 10:59:52 are there* Sep 19 11:00:03 right so I need a duplicate of my image with different colors correct? Sep 19 11:00:06 so you have a … region map…where all the countries are diff colors Sep 19 11:00:09 yes Sep 19 11:00:41 ok, so where do I store a color coded image? or how do I actually make use of it in Android? Sep 19 11:00:56 just like you would with any other image Sep 19 11:01:00 you load it into a Bitmap Sep 19 11:01:01 * StingRay_ closes eyes Sep 19 11:01:04 and... use it Sep 19 11:01:33 correct so it is still being loaded... Sep 19 11:01:38 I haven't understood, from android developers forum netiquette, if code could be posted within the message or if it should be linked outside Sep 19 11:01:45 Lonesoldier728, do you really want us here to write the app for you? you can do a google search on your own, y'know? Sep 19 11:02:23 blues-man, code is generally pastebin'd and links posted - common sense really, what's the point in spamming the channel? Sep 19 11:02:36 basically the image will be loaded twice, that is what was confusing me... Sep 19 11:02:53 there is apparently a crapload of stuff that is confusing you Sep 19 11:03:02 and people's resources for explaining and guiding are limited Sep 19 11:03:07 and you're exhausting them ;) Sep 19 11:03:18 Lonesoldier728 no …. no it wont Sep 19 11:03:29 now is a good time to start googling and doing your own research Sep 19 11:03:32 1. they are both different Sep 19 11:03:45 2. you can load a section of it for the color lookup Sep 19 11:03:49 you have been given plenty enough pointers and hints Sep 19 11:04:08 http://stackoverflow.com/questions/3961071/android-how-to-make-a-clickable-map-image-with-each-country-producing-a-differe Sep 19 11:04:20 Is that basically what you are referring to? Sep 19 11:04:52 Lonesoldier728 oh…yeah that….no….totally not what I just said Sep 19 11:05:05 you have the chat log Sep 19 11:05:11 ravilov, the WYSIWYG forum post editor is really confusing, I couldn't find the email address where to write to the forum as a mailing list so I could be sure to write HTML-off Sep 19 11:05:41 * ravilov is about to give up on Lonesoldier728 too Sep 19 11:05:46 blues-man, wait, what forum are you talking about? Sep 19 11:06:47 Android developers Google Groups / Forum Sep 19 11:06:52 https://groups.google.com/forum/?hl=en#!forum/android-developers Sep 19 11:07:03 oh, google groups Sep 19 11:07:07 that's not a forum Sep 19 11:07:21 also it has its own rules which have nothing to do with rules here Sep 19 11:07:30 html and posting (not too large) code is totally okay there Sep 19 11:07:45 not sure why you're asking here about stuff there, not like we're affiliated... Sep 19 11:09:53 ravilov, I meant posting code there in the google groups, and I was asking here just to know if someone over here was using it and because the channel is mentioned here http://developer.android.com/support.html so I supposed there were kind of "link" Sep 19 11:10:19 yeah you would think that... but there isn't really Sep 19 11:10:24 eheh Sep 19 11:10:31 ok :) Sep 19 11:15:58 ravilov thanks for the help but did not understand what I do with the second image that has the color coded on it? Sep 19 11:16:24 sigh Sep 19 11:17:45 in terms of the color I understand I can pull this - int color = bitmap.getPixel(x, y); but I just did not understand exactly what I did with the second image Sep 19 11:17:48 you print it out, tack it to your wall, then use it to manually look up x and y reported by your app and enter the country name by hand Sep 19 11:17:51 how about that? :p Sep 19 11:18:15 yeah... just read the logs again Sep 19 11:18:21 I really can't Sep 19 11:28:39 What about the size of the map, what is a good size so the res is good but it is not too big to affect memory Sep 19 11:30:59 the size can be whatever you want, as I'm sure you'll not be dumb enough to just flat out load it in memory as is but will scale it dynamically Sep 19 12:03:56 Hi guys, Anyone here ever dealt with a classcastexception with sensorevent... (object cannot be cast to sensor event) Sep 19 12:04:35 Looking at the logs, im thinking that its causing a crash cause higher level api has certain sensor features that when running on lower api versions causes this crash?? Sep 19 12:04:41 any help would be great Sep 19 12:05:26 what are you casting into what? Sep 19 12:07:52 logs are very vague but im assuming its the onSensorChange event Sep 19 12:08:19 dont you have code to that log :) Sep 19 12:09:27 well its a location library and i dont have access to the source Sep 19 12:09:57 its in the KLAccelerometerService Sep 19 12:09:59 so its a bug in the library and you cant fix it anyways Sep 19 12:10:10 so assuming its a AccelerometerService Sep 19 12:10:36 where is system image for API8 in SDK manager ? Sep 19 12:11:01 any place from where I can get that :( Sep 19 12:11:42 its there in the manager for me.. Sep 19 12:12:25 danijoo_: i have got a fresh installation. in manager its not there for SDK is there!!! Sep 19 12:12:30 Yep in the sdk manager for me too Sep 19 12:12:34 http://postimg.org/image/4c45cr4i5/ Sep 19 12:14:06 yap SDK platform is there. but no Atom System Image Sep 19 12:14:14 thats the issue Sep 19 12:14:25 you didnt say anything about atom before. Sep 19 12:14:36 how can i create an ADV for API8 !!! Sep 19 12:15:05 I dont think it exists btw Sep 19 12:15:29 maybe there weren't any intel deivces before api 10 Sep 19 12:15:56 humm what about ARM :P Sep 19 12:16:27 yes. use arm Sep 19 12:16:41 but ARM is not there too :P Sep 19 12:18:00 you dont need that to create an emulator, do you? Sep 19 12:18:48 i didnt use the emulator since there is genymotion ^^ Sep 19 12:19:54 There you have the answer: Sep 19 12:20:18 „up until Android 4.0 (or thereabouts), the ARM emulator image was not broken out into a separate download, and so you get that from the base "SDK Platform" download.“ Sep 19 12:20:51 genymotion! whats that. i dont know till now. Sep 19 12:21:29 try it ;) Sep 19 12:21:35 will make your life a lot easier.. Sep 19 12:21:50 its android emulator on LSD Sep 19 12:24:45 watching the video now Sep 19 12:36:08 I have an executable in my assets. Whats a good place to save it and to run int? Sep 19 12:36:10 * it Sep 19 12:39:41 check3r, nowhere really, such things are discouraged by the framework design Sep 19 12:52:03 Hey. Any tips on how to run multiple instances of the same app? Sep 19 12:52:23 By changing the apps package name or any other method. Sep 19 12:52:54 have multiple environments setup that change the package names when you build the app... Sep 19 12:53:09 you could also run custom build scripts Sep 19 12:53:27 I'm talking about already existing apps by the way Sep 19 12:53:29 that move the environment settings into the current settings which will change the package names Sep 19 12:53:48 check3r, but if you really need to, you can put it either in res/raw/ and deal with it like it's a resource, or in assets/ and deal with it like it's an asset. common place to put such things is /data/data/[PACKAGE]/files/ Sep 19 12:54:07 either way you'll have to copy files out of your APK to a real file before you can do anything Sep 19 12:54:12 littlegigs: how is that accomplished exactly? Sep 19 12:56:14 ravilov, ok thx Sep 19 12:56:42 well i currently do this through jenkins and before i execute a aint build i move settings files around... else you would need to check in your IDE where you can modify the build scripts Sep 19 12:56:50 aint = ant Sep 19 12:57:13 littlegigs: but that's if you already have the source I assume. Sep 19 12:57:42 What if you want to just edit the package name of Skype for example on your android? Sep 19 12:57:46 mv AppName/environments/Staging/settings.xml AppName/res/values/settings.xml Sep 19 12:58:11 yea... im not sure how you can run multiple instances without changing the package name. Sep 19 13:05:23 CheckDavid: try #android or #android-root - this channel is for app dev Sep 19 13:07:39 Guys, How would I change the textsize of the Menu text in the actionbar? Sep 19 13:15:08 Why exactly does using GCM requires android.permission.GET_ACCOUNTS? registration id? Sep 19 13:16:09 Thanks and sorry SimonVT Sep 19 13:16:58 git reset --hard Sep 19 13:17:08 wrong window.. Sep 19 13:28:15 is somebody familiar with this bug - fragment setRetainInstance(true) but when switching between activities it gets destroyed Sep 19 13:28:22 and this happens only on some devices Sep 19 13:28:43 while on others it behaves normally - fragment doesnt get destroyed Sep 19 13:29:06 I have a notification, that when clicked, openes an Activity. But I need to evaluate something before entering that Activity, because maybe the notification isn't valid anymore, and in that case the Activity should not be shown anyway (but just let the user be where she already is). How to do this? Sep 19 13:29:09 what do you mean with switching between activities? do you use the fragment on two activities and want it to be the same instance on both?? Sep 19 13:30:01 Zta77: maybe putting something on intent in notification and checking the extras in activity Sep 19 13:30:22 danijoo_: no, every activity has their own fragments Sep 19 13:30:41 by switching i mean startActivity, do something and finish that activity and return Sep 19 13:31:11 fragment's and activity's onDestroy is called before new activity is fully shown Sep 19 13:31:19 on some devices Sep 19 13:31:26 Ashiren: I have all the data available that I want to do the check on. My question is *where* to do the check. I don't want the Activity to momentarily show and then disappear if the notification evaluated as invalid. Isn't it too late to do this in Activity's onCreate() ? Sep 19 13:32:13 Ashiren: I think retainInstance() only prevents recreation on Activity recreation (like configurationchange), not for destroying of an activity Sep 19 13:32:22 Zta77: well, when i finish in onCreate it doesnt show anything, at leats for me Sep 19 13:32:25 Or is it fine to do it in onCreate() as long as I finish() before setContextView()? I'm unsure about Activity lifecycle at this level (please don't redirect me to the Activity life-cycle doc, unless you know the answer is written there) Sep 19 13:32:40 Ashiren: ah, great. I'll try it. Sep 19 13:34:16 danijoo_: too bad. also it depends on device :\ Sep 19 13:34:34 i use fragments to keep data on orientation change Sep 19 13:34:43 more complex objects than parcelables Sep 19 13:35:00 mh :/ Sep 19 13:35:11 singelton could be an option Sep 19 13:37:04 yay lets singleton everything Sep 19 13:37:16 yeah its ugly, i know :/ Sep 19 13:37:18 for now i subclass application Sep 19 13:37:27 thats a singelton then :) Sep 19 13:37:38 but not mine Sep 19 13:37:40 so im legit Sep 19 13:38:18 be sure to read up on singletons on android; they often may not act like you expect Sep 19 13:38:25 if you have a multiprocess application they definitely will not Sep 19 13:38:30 i knows Sep 19 13:45:45 hello, someone can tell me how do I fix a font type in all my app Sep 19 13:46:32 when you say fix Sep 19 13:46:41 maybe you could specify the problem Sep 19 13:46:44 or do you mean change? Sep 19 13:49:19 littlegigs: I mean a fixed type of font Sep 19 13:49:26 should almost never have a multiprocess app Sep 19 13:53:29 How to get navigation drawer on the top of actionbar? Is it possible with AppCompat? Sep 19 13:54:25 indeswerk: not possible Sep 19 13:54:35 anyone? Sep 19 13:55:08 PsciCOdeliXHAt: this is a question for google Sep 19 13:55:27 ok...If I find it, I'll post here. Sep 19 13:56:05 you can also just use it then :) Sep 19 13:56:46 hummm... date4j Sep 19 14:09:34 I'm using Ormlites CloseableIterator and have a crashlog where it tries to reopen the underlying cursor even though it is already closed. Is there a way I can check if the underlying cursor is already closed? Sep 19 14:10:14 cursor.isClosed() ? Sep 19 14:10:33 danijoo_, I have no access to the underlying cursor Sep 19 14:11:25 te you have to track it on your own. Sep 19 14:12:24 crap. why does this CloseableIterator not have a check if it's already closed and result in an exception if you try to access it afterwards -.- Sep 19 14:14:52 well shouldnt you as the programmer know if you did close it? Sep 19 14:19:24 I have a Scrollview that holds the UI elements for my activity. It has a static drawable background that stays in place as the user scrolls up and down. But when I expand a child in the scrollview that was previously hidden, the whole background redraws in a way that looks very disorientating. How can I keep the background static and in place while expanding a child in the Scrollview? Sep 19 14:20:09 d0de: show your xml please Sep 19 14:23:06 danijoo_ , like this: http://pastebin.com/X7iaV8pT Sep 19 14:23:08 hey guys - am I going crazy, or did there used to be a way to publish apps to google play unlisted? Sep 19 14:23:35 when I set the visibility of TimerContainer to VISIBLE, the background of the parent ScrollView redraws and resizes Sep 19 14:26:48 hmm Sep 19 14:27:56 I realize now that it's not actually the change in the child element that triggers the redraw Sep 19 14:28:12 that shoudnt happen.. :/ Sep 19 14:28:38 the problem is that the background redraws when the on-screen keyboard appears Sep 19 14:28:47 ah :) Sep 19 14:28:54 so its because scrollview resizes Sep 19 14:28:55 I got confused because the dialog that prompts the keyboard to appear also resizes a child element Sep 19 14:29:06 yep Sep 19 14:29:41 danijoo_, I probably should, but i didn't code this. it's inside of an adapter, all instances where it is closed seem reasonable Sep 19 14:30:06 How can I get Navigation Drawer on the top of ActionBar? Sep 19 14:30:12 Anyone? Sep 19 14:30:31 using AppCompat library Sep 19 14:30:36 d0de: android:configChanges="keyboard|keyboardHidden" add this to the activity in android manifest to prevent it from resizing when keyboard appears Sep 19 14:30:38 e.g. in onDestroy(), when loadList() is called any potential old adapter is closed while a new one is instantiated right afterwards Sep 19 14:31:21 lnoskhen: I already told you you cant do that with native drawer Sep 19 14:31:24 danijoo_, thanks! What does this actually do please? As in, what other effects will it have? Sep 19 14:32:15 d0de: everytime the configuration changes (which is if screen rotates, screen size changes), the activity recreates itself to match the new size Sep 19 14:32:57 keyboard hide/show changes size so your scrollview will then only takes is as big as the space above the keyboard which is why your background is scrambled Sep 19 14:33:11 danijoo_: oh. Thanks :) Sep 19 14:33:19 with this you tell it to NOT do it if its a sizechange caused by keyboard Sep 19 14:33:33 danijoo, great, thanks! Sep 19 14:33:39 or more precisly you say "i will handle changes with keyboard on my own", but do nothing Sep 19 14:34:04 lnoskhen: I think actiobarsherlock can do that, though Sep 19 14:35:46 danijoo_, someone else suggested using android:windowSoftInputMode="adjustPan" - what are your thoughts on that? better/worse? Sep 19 14:36:56 you can do that too Sep 19 14:37:05 same effekt Sep 19 14:38:06 danijoo_: :o I already migrated from Actionbarsherlock to AppCompat Sep 19 14:39:17 lnoskhen: unfortunatly the android-api does not allow to do that. Sep 19 14:46:37 why would you want nav drawer on top of actionbar... yuck Sep 19 14:47:19 very quick question, is it ok to unregister a sensor listener in its onsensorchanged event? Sep 19 14:47:33 i.e. if you only wanted a single reading, say Sep 19 14:47:47 sure why not Sep 19 14:49:52 good morning Sep 19 14:51:08 I am handling touch events in a view. I want to handle swipes, but I want to let clicks bubble up to the other views. Any ideas? Sep 19 14:51:58 In the OnTouchEvent I have to return true on the ACTION_DOWN, but that blocks the parent views from seeing the rest of the gesture Sep 19 14:53:39 pfn: Yeah right. But my client want it :D Sep 19 14:53:54 tell your client no Sep 19 14:55:53 danijoo_, thanks very much for your help Sep 19 15:00:57 I need to do an app wich print a file to a bluetooth mobile printer. Anyone did something like this? I need an advice for a printer Sep 19 15:02:26 question about RequestHandler in picasso… it doesn’t look like there’s a way to tell if your request can be handled ahead of time, and it throws an illegalstateexception asynchronously (that crashes the app) if a request can’t be handled. it should probably fail to load the image, right? Sep 19 15:02:39 rather than crashing? Sep 19 15:03:33 ie. if an applicabe requesthandler wasn’t found Sep 19 15:03:37 applicable* Sep 19 15:07:15 JacobTabak: How would you not know? Sep 19 15:09:04 JakeWharton: haven’t nailed down the issue yet, but our beta release is getting some crashes displaying mediastore thumbnails Sep 19 15:10:27 Oh, it's not that it can't be handled, it just fails to load. Sep 19 15:10:37 i quickly naively added a try/catch to the load() method and tried to log the details to crashlytics, but since it’s async it doesn’t get caught Sep 19 15:10:49 Fatal Exception: java.lang.IllegalStateException: Unrecognized type of request: Request{ resize(132,132) centerCrop} Sep 19 15:11:30 Wtf Sep 19 15:11:43 Is "" the URI? Sep 19 15:12:18 i’m trying to track it down still, but it’s probably the changes I made Sep 19 15:13:12 but i can’t reproduce the issue so :\ Sep 19 15:18:53 i don’t understand how would ever appear in Request.toString() Sep 19 15:19:36 Indeed Sep 19 15:21:01 it must be coming form the ‘data’ column in my mediastore query Sep 19 15:25:41 but to answer your question- in order to know whether or not it could handle my request i’d have to loop through all of the registered requesthandlers Sep 19 15:31:50 http://stackoverflow.com/questions/25937326/how-do-i-allow-clicks-to-bubble-up-in-ontouchevent Sep 19 15:31:50 which aren’t public Sep 19 15:31:50 which is fine, but if it’s going to crash if something goes wrong :| Sep 19 15:31:59 whats the benefit of using LocationClient over LocationManager ? Sep 19 15:31:59 anyone use the photoview library? Sep 19 15:32:27 JakeWharton or anyone who knows about Picasso, is there a way to get the pixel to grab the color from Picasso? Sep 19 15:32:27 Hi there, does anyone know of a resource to look up the screen size and density classifications for a given device? I'm having a very tough time searching for it. Sep 19 15:32:30 nelsk: https://play.google.com/store/apps/details?id=nl.qbus.sizemeup ? Sep 19 15:34:47 osxorgate: I don't actually have the hardware and I don't have the emulator specs Sep 19 15:35:04 huh Sep 19 15:35:11 googling tells you anyway Sep 19 15:35:22 Lonesoldier728, why would picasso do that, just inspect the bitmap Sep 19 15:35:38 after the image has loaded **** BEGIN LOGGING AT Fri Sep 19 15:42:01 2014 Sep 19 15:43:54 Getting this error with gradle: "Error:(21, 0) The filename, directory name or volume label syntax is incorrect." I'm running windows 8 x64, and my build.gradle is https://gist.github.com/rymate1234/7d3ae2cccc1af856b155 Sep 19 15:47:39 pfn how do I inspect the bitmap? Sep 19 15:48:32 rymate1234, try changing "C:\\Users\\Ryan\\keys" for "C:/Users/Ryan/keys"? Sep 19 15:48:35 by using an api to do it... Sep 19 15:49:25 (from a long-term point of view it's probably best not to hardcode that in your gradle file, using an environment variable or a configuration file would be more flexible. but for now it's fine) Sep 19 15:50:02 Abi_Buccaneer, yeah im just learning that now Sep 19 15:50:15 on my old pc it was at D:\\keys Sep 19 15:51:16 same error with "C:/Users/Ryan/keys" Sep 19 15:51:20 ._. Sep 19 15:51:25 rymate1234, try file://C:/Users/Ryan/keys ? Sep 19 15:52:06 YES THAT WORKED Sep 19 15:52:08 thanks Sep 19 15:52:19 see? guessing is fun :D Sep 19 15:52:29 do any of you happen to know of a native android library that's similar to d3.js? Sep 19 15:52:30 :D Sep 19 15:52:54 mostly in how animation is done by specifying values to tween Sep 19 15:53:43 also ideally something that allows you to map/remap a data structure to a set of elements without explicitly iterating over it Sep 19 16:14:21 Hello =) Sep 19 16:18:04 has anyone seen TaskBackStack give different behavior across devices on the same version? Sep 19 16:18:25 I'm getting reports that on certain phones opening an intent goes to the parent activity, not the one specified in the pending intent Sep 19 16:45:02 Hello, I added a maven repo to my gradle project, opened the project today and it was not there--do I have manually edit my build.gradle file? Sep 19 16:46:35 hello all Sep 19 16:48:12 whats the method in java that checks the checkbox? Sep 19 16:48:34 i mean, can i change the value of the checkbox through code? i assume i can, just dont know how Sep 19 16:50:27 Google that man... be resourceful Sep 19 16:50:40 thats too basic not to google search Sep 19 16:55:50 hi Sep 19 16:56:01 LighterFluid: you make a dialog box that tells the user to click it over and over Sep 19 16:56:22 when writing apps, compared to current android, how difficult is it to support older devices? before android 4? what if i wanted to have a really comprehensive support of old devices? Sep 19 16:56:39 lasserix: nvm, found it, should have mentioned Sep 19 16:56:53 cheater its not worth it Sep 19 16:57:15 lasserix: why do you say so? Sep 19 16:57:17 older apps: a) are slower b) probably bloated c) have deficient API hence it's a waste of time Sep 19 16:57:40 we should encourage their death, not their prolonged existence Sep 19 16:57:41 i'm a good programmer but know little about android dev Sep 19 16:57:54 what are the general major versions of stuff that exist? Sep 19 16:58:08 like, all of android 4 is pretty much the same, except for some minor changes between point versions, right? Sep 19 16:58:14 good dashboad Sep 19 16:58:17 *google Sep 19 16:58:29 huh? Sep 19 16:58:33 huh? Sep 19 16:58:46 huh? Sep 19 16:58:50 https://developer.android.com/about/dashboards/index.html Sep 19 16:58:58 does anyone know why this would lead to a nullpointer exception for the int color ----- Bitmap bitmapOfWorlMap = worldMap.getDrawingCache(); int color = bitmapOfWorlMap.getPixel(isX, isY); Sep 19 16:59:02 i know that android 2 is a "thing" Sep 19 16:59:11 2.3 and below comprises ~ 12% Sep 19 16:59:13 worldMap being an imageview Sep 19 16:59:28 hence it's a waste of your time to bend over backwards (whcih you will have to do) to support them Sep 19 16:59:41 Lonesoldier728: when you calling? Sep 19 16:59:50 but other than android 4 and 2 are there other major versions that one is looking at? Sep 19 16:59:51 oh Sep 19 16:59:51 that's a good link Sep 19 16:59:51 thanks Sep 19 17:00:32 http://pastebin.com/XwQa3viS Sep 19 17:00:36 do ALL android devices have opengl? Sep 19 17:00:37 lasserix that is the code Sep 19 17:00:43 at least gl es 2.0? Sep 19 17:02:18 has anyone else got comments on whether say android 2.2 is much more difficult than say 4.3 to develop for? Sep 19 17:02:48 Lonesoldier728: what is null have you determined? Sep 19 17:02:55 cheater: If you want to know how low you should go, you could compare with similar apps and see their minimum requirements, e.g.: https://play.google.com/store/apps/details?id=uk.amazon.mShop.android Sep 19 17:02:57 cheater: its not more difficult, its just more work. Sep 19 17:03:00 color Sep 19 17:03:10 cheater: yes… older devices etc Sep 19 17:03:10 color cannot be null Sep 19 17:03:12 its a primitive Sep 19 17:03:14 its just a given Sep 19 17:03:34 TheBunnyZOS: yeah sure, but uh... they're the same devices they were 5 years ago when they were new? Sep 19 17:03:46 it is pointing to this line int color = bitmapOfWorlMap.getPixel(isX, isY); Sep 19 17:03:52 Lonesoldier728: getDrawingCache() is returning null Sep 19 17:03:58 Zta: that's interesting Sep 19 17:03:58 presumably because there's no cache yet Sep 19 17:03:59 thanks Sep 19 17:04:03 Though I just discovered that not all publishers care to tell. Or rather google won't let us know, because I think all apps have a minSdkVersion? Sep 19 17:04:03 well they were hard to dev on 5 years ago :) Sep 19 17:04:11 why is that? Sep 19 17:04:13 Lonesoldier728: then the bitmap is null Sep 19 17:04:20 so the drawing cache probably hasn't been made yet Sep 19 17:04:35 you asked if it was harder. Sep 19 17:04:43 do I need a callback within it then Sep 19 17:05:33 say i want to build something simple. like an app that displays (nearly unformatted) text and images it gets from the web, and has access to the phone id for signing into my server, and does polling to get new content... if i wanted to do 2.2 and 4.3, then do i want to have one code base for both, or separate code bases? Sep 19 17:05:40 (not sure how that works really) Sep 19 17:09:06 anyone use the photoview library for some reason it keeps the photo so zoomed out that it is a third of the screen when it should be taking up the whole screen Sep 19 17:09:25 cheater again don't waste your time Sep 19 17:09:32 just concentrate on 4.0 Sep 19 17:09:46 people stuck with 2.3 probably don't have the disposible income to spend on your app anyways ;p Sep 19 17:10:16 Does anyone separate code bases or at least make MainOlderThanApi4Activity and MainNewerThanApi4Activity with accompanying layout xml? Sep 19 17:10:26 ^Wisdom of falcon Sep 19 17:11:04 cheater: At work we support API >= 7 Sep 19 17:12:19 which is a waste of time Sep 19 17:13:02 lasserix: Not if most customers still have phones around those low API. Sep 19 17:13:39 Ie. *my* customer base. Sep 19 17:14:40 what is API 7? Sep 19 17:14:47 is that a specific android version? Sep 19 17:14:52 I think Facebook, Amazon, Twitter etc. would have a problem if they suddenly required API ... whatever Android 4.0 is. Sep 19 17:15:25 cheater: Exactly... converting between Android version and SDK version is annoying. Sep 19 17:15:35 I think 7 translates to Android 2.3 or something Sep 19 17:15:39 well it's something you can learn Sep 19 17:15:40 ok Sep 19 17:15:42 again older apis just introduce techinical debt into your code base Sep 19 17:15:50 no 7 is like 2.0 Sep 19 17:16:08 cheater if you are just starting your own project, forget less than 4.0 Sep 19 17:16:12 it's really not worth your time Sep 19 17:16:14 yeah uh talking about technical debt Sep 19 17:16:19 it comprises ~12% of the market Sep 19 17:16:27 how does a "TranslateAnimation" move a view ? cause I got an imageview I move with fixing left and right marin, and i think translate animation mess it up Sep 19 17:16:45 and you will have to bend over backwards to make a consistent UI since a lot of the api of 4.0 is not available in 2.x Sep 19 17:16:46 Zta: how much of the code base would you say is required to support 2.0 vs say 4.3? Sep 19 17:16:49 as in Sep 19 17:17:01 this is my life https://mnky.es/f/bOE-9RUwkTeLEM0LFrKsHA/Screen%20Shot%202014-09-19%20at%2011.09.07%20AM.png Sep 19 17:17:02 there's probably code which is only for the 2.0 path, what percentage of your code base is it? Sep 19 17:17:05 is it very visible? Sep 19 17:17:12 But yes, supporting older devices does introduce some annoying work-around. Sep 19 17:17:41 cheater: It takes less code to only support say 4.3 Sep 19 17:17:44 lasserix, hey now, not everybody is *stuck* on 2.3, I'm on it because I prefer it ;) Sep 19 17:17:59 (yes we all know I'm weird) Sep 19 17:18:11 im beginning to see a pattern raviolli... first eclipse, now 2.3 Sep 19 17:18:13 ;p Sep 19 17:18:23 yeah i understand Sep 19 17:18:28 oh did I mention I'm running all that in MS-DOS? ;) Sep 19 17:18:32 but how much more do you have to support down to 2.0? Sep 19 17:18:51 and how much more effort is that to support? Sep 19 17:19:06 The thing is some methods from older APIs are deprecated in newer APIs. And the same with xml style elements and attributes. So you end up staring at a nice API that you cannot use, but have to use old ugly syntax. Sep 19 17:19:35 lahwran, your life seems to be a lone "X" in the sea of android research Sep 19 17:19:40 cheater it all depends on what type of UI you want, a lot of difference comes from UI but some comes from deeper things Sep 19 17:19:49 Perhaps MainActivity43 and MainActivity20 would be a doable approach Sep 19 17:19:50 you and grr martin Sep 19 17:20:00 i only want a fairly simple user interface Sep 19 17:20:38 Zta: not sure what you mean about MainActivity... Sep 19 17:20:57 hi guys Sep 19 17:21:00 he means have separate activities for pre-4.0 and post-4.0 Sep 19 17:21:06 cheater: it's not about how simple or complex the interface should be, it's about what it should look like, and what it should do without you having to implement it. Sep 19 17:21:16 cheater: Right.. =) Perhaps you should just get started on your 4.3 stuff and then later, when you have something working, lower your API requirements in your app. See what happens. Sep 19 17:21:26 in a list view fragment: where should I put the code to select the first item of the list on application start? Sep 19 17:21:38 in the onPause()? Sep 19 17:21:51 ^^ zta Sep 19 17:22:00 onpause? lol, hardly Sep 19 17:22:04 h4k1m: Did you read the documentation for what onPause() does? Sep 19 17:22:14 Zta: actually i'm currently doing research into how difficult it is to support different kinds of platforms Sep 19 17:22:15 Thorbear: yep Sep 19 17:22:20 h4k1m, are you sure? Sep 19 17:22:23 h4k1m: I don't believe you Sep 19 17:23:06 ravilov: Thorbear onStart is Called when the activity is becoming visible to the user. Sep 19 17:23:13 ... Sep 19 17:23:23 lasserix ? Sep 19 17:23:27 ok, now read what you said, h4k1m Sep 19 17:23:31 fuck ##java is fucking a joke Sep 19 17:23:41 Zta: oh just saying good advice Sep 19 17:23:50 I meant onResume sorry Sep 19 17:23:52 lasserix: ah, right =) Why's ##java a joke? Sep 19 17:24:40 they're just crotchety coders who are totally unhelpful Sep 19 17:24:42 h4k1m: onStart() is not onPause(). Also, to answer your question, where you put the selection depends on when the data that goes into the list is loaded. Sep 19 17:24:49 rarely you get an answer, most of the time its just "google it" Sep 19 17:25:00 lasserix, maybe they're all bots Sep 19 17:25:15 Thorbear: data is loaded (adapter) inside the fragment in its onCreateView Sep 19 17:25:30 nah they're just up-tight neckbeards with boring lives who get off on acting high and mighty Sep 19 17:26:00 it's not working with onStart anyway even if in the doc they say that the app should become visible after the onStart Sep 19 17:26:08 oh I thought you *are* high and mighty as soon as you use any variant of java Sep 19 17:26:11 :p Sep 19 17:26:22 heh Sep 19 17:26:36 h4k1m: how is the data loaded? Sep 19 17:26:54 h4k1m: you probably want to use onResume Sep 19 17:27:01 Thorbear: just a simple ArrayAdapter Sep 19 17:27:10 h4k1m, I guess "app visible" doesn't mean all fragments created and layed out Sep 19 17:27:22 h4k1m: then onResume is a good place to start Sep 19 17:27:26 ravilov: sure.. the app have to be interactive Sep 19 17:27:33 *i believe onPostResume is supposed to guarentee everythings laid out, tho i could be wrong Sep 19 17:27:52 thanks guys! I'll test it inside the onResume Sep 19 17:29:58 lasserix: "google it" is usually arrogant advise. Sep 19 17:30:19 well i asked a yes or no question and they refered me to some huge ass back on concurrency Sep 19 17:30:23 is it even possible to have different APKs for different android versions? Sep 19 17:30:30 classic Sep 19 17:30:32 and then they proceeded to talk about how i was ungrateful etc etc Sep 19 17:31:14 wrong way to waste their energy. But then again, being complaining or generally being a jerk takes far less energy than being constructive and helpful. Sep 19 17:31:46 Zta, "google it" often times turns out to be a necessary advice, too often people just flat out refuse to search on their own before asking trivial questions; but it should definitely not be overdone, and can easily be skipped for simple yes/no questions Sep 19 17:31:58 true Sep 19 17:32:10 ravilov: not my question ;p Sep 19 17:32:33 lasserix, yes Sep 19 17:32:35 or no Sep 19 17:32:38 or perhaps maybe Sep 19 17:32:39 :p Sep 19 17:33:27 I just asked whether it is possible to pass around an object to use as a wait/notify lock... which is bad in principle, but since usually you are supposed to declare it as final so there is no trip-up i was just wondering Sep 19 17:33:47 i think the right kind of question for chat rooms Sep 19 17:33:49 maybe i am wrong tho Sep 19 17:33:58 you could've asked that right in here Sep 19 17:34:07 I'd say it should definitely be possible with final Sep 19 17:34:13 s/be possible/work/ Sep 19 17:34:15 yeah i try to ask purely java questions in java Sep 19 17:34:27 well now hopefully you know better :p Sep 19 17:34:42 yea i decided against it, i'll just use an interface to pass the things needing to be waited on to the class with the lock Sep 19 17:35:39 \o/ fixed a bug Sep 19 17:35:55 while introducing how many new ones? :p Sep 19 17:43:17 I made a peculiar little interface a few weeks ago. Not I use it almost every where: public interface OnAsyncRequestListener { void onSuccess ( T response ); void onError (); } The idea is that some AsyncTask, e.g. DownloadMailAsyncTask, is created and given an OnAsyncRequestListener. When the task has completed, it will invoke either onSuccess(mail) on success or onError() if it failed. Sep 19 17:43:43 I don't know of this is a bad pattern, but it sure seems easy to use. Sep 19 17:43:51 btw, if i want to dev for android and am on ubuntu, is my best bet to get this stuff? http://developer.android.com/sdk/index.html Sep 19 17:44:46 cheater: I'd downloade the latest version of Eclispe and the ADT plugin. Maybe even an Eclipse distribution bundled with ADT. Sep 19 17:45:00 that's... what this link has Sep 19 17:45:03 Zta no its good tho you may want to pass the error Sep 19 17:45:12 cheater use intellij Sep 19 17:45:39 lasserix: passing an error back could be useful, but I haven't had the use for it so far. Sep 19 17:45:48 eclipse is like highschool football star in his 50's trying to relieve his dream: he can still run and play, but he is slow and a little demented Sep 19 17:45:51 Android Studio looks fugly on Ubuntu. Sep 19 17:45:57 With a single download, the Eclipse ADT bundle includes everything you need to begin developing apps: Eclipse + ADT plugin; Android SDK Tools; Android Platform-tools; A version of the Android platform; A version of the Android system image for the emulator Sep 19 17:46:02 Zta: you can customize the look Sep 19 17:46:39 lasserix: I've tried. Still looks fugly. Sep 19 17:46:42 really. Sep 19 17:46:50 cheater: all you have to do is download the sdk, and then set one variable for android path (which you will have to do anyways) and it works Sep 19 17:47:11 * ravilov didn't set any env vars, just planted a bunch of symlinks :p Sep 19 17:47:40 ln -s /opt/android-sdk/tools/adb /usr/bin/adb Sep 19 17:47:42 and such Sep 19 17:47:43 I'm familiar with Eclipse, so it's the natural choice for me. I've tried AS a little, but .. it even feels ugly. Sep 19 17:48:01 Zta, welcome to my party Sep 19 17:48:30 hmm I should probably change my nick to include eclipse somehow :) Sep 19 17:48:41 cheater and ravilov: Put these in your ~/.bashrc: export ANDROID_SDK=$HOME/opt/android-sdk Sep 19 17:48:41 cheater and ravilov: Put these in your ~/.bashrc: export PATH=$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools:$PATH Sep 19 17:49:07 Zta, oh I know what to do and how, I just didn't feel like it ;) Sep 19 17:49:09 Oh, and install under ~/opt/ instead of ~/opt ;) Sep 19 17:49:19 uh.. Sep 19 17:49:24 /opt Sep 19 17:49:30 lol Sep 19 17:49:48 i pretty much hate all IDEs Sep 19 17:49:54 but i'm gonna give the official thing a try first Sep 19 17:50:00 stick to ant and aapt then :p Sep 19 17:50:13 ravilov: Of course. I actually installed this load into my ~/opt for the first time. I usually use /opt. But I figured it's just easier this way. Sep 19 17:51:01 I prefer to have only personal stuff in /home, I felt stock android sdk belongs in a system-wide place Sep 19 17:51:03 I think most bad-mouthing about Eclipse comes from Windows users. For some reason, Eclipse runs close to unusable on Windows. Sep 19 17:51:41 ravilov: but you need user permissions to upgrade ADT and install new APIs etc. It's an unclean cut no matter how you lay it. Sep 19 17:51:49 yeah nobody here believes me when I say my eclipse runs smooth as silk, fast as teenage sex, and stable as rock made of rock Sep 19 17:52:01 I do. Sep 19 17:52:05 Zta, doesn't bother me, I don't upgrade :p Sep 19 17:52:48 but yeah, if you want to do that, the alternative would be to put it in a system-wide place but owned by a normal user Sep 19 17:52:57 still unclean but eh Sep 19 17:53:05 do i need to root my device to develop apps? Sep 19 17:53:10 n Sep 19 17:53:10 no Sep 19 17:53:14 no but its helpful Sep 19 17:53:25 how is it helpful? Sep 19 17:53:31 for starters, you don't need a real device at all Sep 19 17:54:04 Zta, it certainly has its advantages, having root saved me loads of headaches countless times Sep 19 17:54:10 but necessary? no Sep 19 17:54:20 still, how is it helpful? Sep 19 17:55:00 you can kill processes you can look at system folders / app folders (ie read database files) Sep 19 17:55:12 while debugging on a real device, when the app starts misbehaving in weird ways, it is very handy to be able to poke around the system freely Sep 19 17:55:19 ^^ Sep 19 17:56:05 I think it's one of those things - if you've used it, you know why it's useful and you need no explanations; if you haven't, you don't know what you're missing and you cannot be (easily) explained ;) Sep 19 17:56:07 hmm Sep 19 17:56:17 kinda of like sex ;p Sep 19 17:56:24 lol Sep 19 17:56:25 pahaha =) Sep 19 17:56:54 * ravilov doesn't usually "use" sex, but other than that the analogy seems to work :p Sep 19 17:57:28 well i could say for instance mj but that's probably too controversial Sep 19 17:58:37 Does anyone know if the mini_thumb_magic works to retrieve thumbnails of images from mediastroe? Sep 19 17:59:54 so guys Sep 19 17:59:56 eh, I don't think mj is that controversial really, but then I'd be on the side of "never used it, can't understand it" ;) Sep 19 18:00:11 i heard there's a lot of phones that have flash installed Sep 19 18:00:17 and it's some sort of platform or somewhat Sep 19 18:00:20 i'd never seen any Sep 19 18:00:28 i'm assuming it's big in asia or something Sep 19 18:00:35 flash? as in adobe flash? Sep 19 18:00:38 yes Sep 19 18:00:45 I have flash installed Sep 19 18:00:51 s/have/had/ Sep 19 18:00:55 never did me any good really Sep 19 18:01:24 and yeah of course you've never seen any if you're only now getting into android and have skipped the whole 2.x era ;) Sep 19 18:01:53 (adobe stopped supporting flash on android long time ago) Sep 19 18:02:10 anyone have experience with maps in android? Sep 19 18:02:34 I think I am doing a lot of work that is probably unnecessary Sep 19 18:02:52 ravilov: i believe they said flash was not only on android but on many other things as well? Sep 19 18:03:06 like uh Sep 19 18:03:07 well yeah, it's on your computer too Sep 19 18:03:20 (Basically building my own map from scratch of the world) which maybe I can make use of some API Sep 19 18:03:25 yea but what i mean is... are there phones/tablets that ONLY have flash apps? Sep 19 18:03:38 *only*? dunno, never heard of such a thing Sep 19 18:03:47 don't really see a point tbh Sep 19 18:04:02 Lonesoldier728, still on this? lol :) Sep 19 18:04:18 no one does, but i saw someone say in a report that there's 1.4 billion mobile devices with flash on em. Sep 19 18:04:40 cheater, often times context is everything, and there is none here Sep 19 18:05:01 Lonesoldier728, what's your motivation for making your own map engine? if it's just that you want offline maps... well, google maps actually has support for that AFAIK Sep 19 18:05:03 haha ravilov I actually got pretty much everything working... the only thing is now I just feel like I am doing all this work when I can use some map api after reading more into it... Sep 19 18:05:06 http://gis.stackexchange.com/questions/44426/is-there-an-comparison-of-the-various-mapping-libraries-for-android Sep 19 18:05:22 http://stackoverflow.com/a/4698134 Sep 19 18:05:24 ravilov: ^ Sep 19 18:06:33 I am trying to figure that out now actually, I also, did not want there to be an issue with making api calls since all I need is the countries and cities (no streets or anything) Sep 19 18:07:08 cheater, is this about mobile devices only? Sep 19 18:07:33 Lonesoldier728, are you making your own ingress spinoff? :p Sep 19 18:07:57 what is ingress Sep 19 18:08:06 cheater, yeah I don't know what to make of this, not sure where the numbers are coming from or what exactly they mean Sep 19 18:08:07 is it a game? Sep 19 18:08:15 you should google it Sep 19 18:08:27 https://www.ingress.com/ Sep 19 18:08:47 haha yeah I am not trying to make a game like that Sep 19 18:11:53 Hello, everyone! I'm wondering if it's appropriate to ask ya'll for help with a seemingly silly android dev question? Described in this SO post: http://stackoverflow.com/questions/25880866/cannot-import-request-and-response-classes-from-okhttp Sep 19 18:12:36 help would be much appreciated, it's a bit of a head scratcher :/ Sep 19 18:16:09 JakeWharton would be able to answer this Sep 19 18:16:24 42 Sep 19 18:16:34 there Sep 19 18:17:00 and fortunately, i already know the question? :) Sep 19 18:17:13 grigri, looks like you might need to have the code that interfaces with okhttp in the same package, example: https://raw.githubusercontent.com/square/okhttp/master/samples/guide/src/main/java/com/squareup/okhttp/guide/GetExample.java Sep 19 18:17:35 That's not in the same package Sep 19 18:17:42 hmm yeah I just noticed Sep 19 18:17:45 well dunno then Sep 19 18:18:39 Yeah dunno. They're public. Are you on the latest JDK 8? If you expand the jar in Android Studio/IntelliJ are the classes listed as public? Sep 19 18:18:56 Boarding a plane. Bye. Sep 19 18:19:40 latest jdk, i've tried perusing the jar but didn't try doing so with an IDE. let's see Sep 19 18:25:56 yup, everything's listed as "public final" Sep 19 18:27:28 not sure. countless people are using this lib with no problems. I haven't used it yet so I know next to nothing about it really Sep 19 18:32:23 ravilov yeah, i couldn't find anyone else with a similar issue with this lib :/ Sep 19 18:32:38 so i'm thinking it's nothing to do with the library itself Sep 19 18:39:43 ravilov JackWharton but this looks weird to me: http://i.imgur.com/5YnACTS.png private constructor? Sep 19 18:44:15 nothing strange about that, just means you're not suppose to instantiate it directly Sep 19 18:44:22 supposed* Sep 19 18:44:35 also that's a really ginormous font Sep 19 18:50:09 ha, it's actually not that ginormous... maybe "retina" screen had something to do with how it turned out? Sep 19 18:50:27 also, seems like i'd need to use okhttp's Response.Builder as a factory Sep 19 18:51:46 yeah probably Sep 19 18:51:52 to both Sep 19 18:54:21 i need some help. I'm using leftMargin to move some view. And now, I want to add some animation, so I use "translateanimation", but I observe that it's messing up with mergin Sep 19 18:54:32 i think animation doesn't use margin to make view's moving Sep 19 18:54:40 is it possible to force it to do so ? Sep 19 18:55:59 ravilov - noo wait, i'm using it in that way already. i think i'll go back to bed if this persists Sep 19 18:56:43 well today I solved a bug that solved another bug I'd known about for some time and didn't fix Sep 19 18:56:48 kung fu shit Sep 19 18:56:52 lel Sep 19 18:57:17 lal Sep 19 18:58:19 I was so scared of having it discovered later Sep 19 18:58:24 such a noob.... :\ Sep 19 18:59:01 lord forbid my app should have any *gasp* BUGS!!! Sep 19 18:59:02 lol Sep 19 18:59:12 yea man, unacceptable! Sep 19 18:59:34 why would it Sep 19 18:59:42 I test a billion scenarios Sep 19 18:59:59 but I don't use a testing framework or write any tests :P Sep 19 19:00:57 sooo... you make it significantly harder on yourself while still not covering all cases :p Sep 19 19:01:06 y...yea Sep 19 19:01:11 I cover all obvious cases Sep 19 19:01:47 I don't know or understand what tests are for, it's engrained in my mind that tests are for functions to see whether they still return what I want them to return Sep 19 19:01:50 given whatever Sep 19 19:02:00 all tests tutorials begin with that example, that's why Sep 19 19:02:22 yeah well try to move beyond the obvious and trivial examples Sep 19 19:02:54 next step: compile your app, make sure it doesn't crash on startup, and leave any testing to your users - if there are any bugs, you'll hear about them soon enough :p Sep 19 19:03:04 haha Sep 19 19:03:09 yea my guy would kill me Sep 19 19:03:13 wow, he would KILL me Sep 19 19:03:42 there are many kinds of testing; unit testing, what you described, is one of them Sep 19 19:03:58 guys i need some help... i have an actionbar with 2 ListFragments tabs, and each fragment require its own object to load UI, this object will be retrieved using retrofit. BUT everytime i switch between tabs the content will load from the web again... so i need a way to keep this object to reload UI without calling retrofit task. any help/suggestion? Sep 19 19:04:06 well then how do you "test" something like a sequence of steps that a user takes Sep 19 19:04:12 there's also integration testing, where you see if the system works end to end, e.g. if you were a user and you were actually using the app, you'd simulate what you'd do and what you'd expect to see Sep 19 19:04:42 typically with some kind of UI automation and GUI reader...in the past people have used screenshots, even Sep 19 19:04:45 toggling a switch, having a list view change its contents according to that switch, then pressing one of the list items and toggling back while the process that was triggered from the list item is still running? Sep 19 19:04:51 can you test things like that? Sep 19 19:04:54 sure Sep 19 19:04:59 how.. Sep 19 19:05:02 Sicp, you can always use the monkey runner ;) Sep 19 19:05:07 (google it if needed) Sep 19 19:05:07 monkey is stupid man Sep 19 19:05:14 ergo the name, heh Sep 19 19:05:20 lol, right Sep 19 19:05:37 and plus, is there a sequence log I can check if it does in fact come up with a crash? Sep 19 19:05:44 how did it go about pressing to achieve the crash Sep 19 19:05:46 Oh, the fools! If only they'd build it with 6,001 hulls! When will they learn? ( s/hulls/tests/ ) Sep 19 19:06:02 Sicp: i thought this was kind of cool if you're getting into UI testing: https://github.com/square/assertj-android Sep 19 19:06:14 what other testing is there, for an app Sep 19 19:06:21 logic? Sep 19 19:06:24 unit and integration are the main ones Sep 19 19:06:26 yea, THAT Sep 19 19:06:35 data validity? Sep 19 19:06:39 oh Sep 19 19:06:44 there are quite a lot of tests you can perform Sep 19 19:06:47 no right now if I get response like I want, thats it Sep 19 19:07:10 for example..some time ago I had a bug report, saying Double value (44,1) is not valid Sep 19 19:07:18 turns out the guy had his locale to French, uses commas Sep 19 19:07:20 if you want to get really hardcore, you could also do accessibility testing Sep 19 19:07:33 like, are the buttons wide and high enough for comfortable touch usage Sep 19 19:08:17 man I still got flaws like depending on Don't Keep Activities to be turned off for one of the apps Ive made to function in certain parts of it Sep 19 19:08:19 Sicp, see, you would've easily caught the comma thing with a simple test :p Sep 19 19:08:29 so there are still basics that are not down in stone Sep 19 19:09:05 like with the side drawer, I don't use fragments to do it like Google's example with the planets Sep 19 19:09:19 I use the drawer but send broadcasts to the parent activity when things happen inside it Sep 19 19:09:20 imagine Sep 19 19:09:33 local brodacasts I'd hope Sep 19 19:09:39 yea Sep 19 19:09:42 k Sep 19 19:09:51 but its just like too hacker Sep 19 19:10:02 sounds like you could make use of eventbus Sep 19 19:10:19 to get into the formal sense of software engineering or like I read Spolsky talking about, so many things have to change Sep 19 19:10:52 be a man, wipe everything and start from scratch :p Sep 19 19:11:02 I did with one of my own apps Sep 19 19:11:16 with this one at work, it's really gigantic, i think a lot before writing something new Sep 19 19:11:18 nah, be a man with someone else's app :p Sep 19 19:11:26 haha YEA! Sep 19 19:11:27 haha Sep 19 19:11:32 not man at home Sep 19 19:12:03 good thing is, the other guy is a seasoned iOS guy, I ask him about how he approached XYZ, sometimes he even misses things I did Sep 19 19:12:12 and most of the time he goes through the workaround I did Sep 19 19:12:17 so it isn't that bad Sep 19 19:12:30 it might not be that bad in the ios context, that doesn't mean much :p Sep 19 19:12:44 their animations are fucked, out of the box, he has to go through so much to get the result I got from a simple object animator on 'x' Sep 19 19:13:13 not to worry, two years from now ios should have more or less the same stuff Sep 19 19:13:21 but their db experience is so smooth, he just does tablename.getStudents Sep 19 19:13:26 he doesn't write sql Sep 19 19:13:41 meh, I don't like such approach Sep 19 19:13:48 it still does SQL somewhere, just hides it from you Sep 19 19:13:52 I don't want it hidden Sep 19 19:14:15 with me, I sometimes don't close cursors because I get an exception about opening a new one while one is still open. because of the getReadable/Writable call VS passing the DB to the function Sep 19 19:14:16 I'm used to dealing with huge complicated SQL so I don't mind, in fact I want it Sep 19 19:14:17 good ORM is good :) Sep 19 19:14:38 good ORMs don't exist :p Sep 19 19:14:45 there's greenDAO Sep 19 19:14:50 I've tried it in the past, it's pretty good Sep 19 19:15:01 well, it does what it advertises at least Sep 19 19:15:13 * ravilov tends to steer away from any such crap, raw SQL ftw :p Sep 19 19:15:43 even with "(" + parameter + ") FROM " + .... ? Sep 19 19:15:57 I usually deal with that using String.format() Sep 19 19:16:16 "SELECT %s FROM %s WHERE %s = %s" Sep 19 19:16:28 or, even better, %1$s, %2$s etc Sep 19 19:16:34 Android offers a lot of ready made functions for that, but the parameters i never understood Sep 19 19:16:46 yeah you will Sep 19 19:16:47 maybe Sep 19 19:16:48 one day Sep 19 19:16:48 well I never really read what they're about exactly, but it wasn't so obvious as to just SO and use it Sep 19 19:17:01 ravilov, next thing you know, we'll be advocating starting with relational algebra instead. symbolic brevity ftw! Sep 19 19:17:21 lol Sep 19 19:17:28 Sicp, parameters are immensely useful Sep 19 19:18:10 I'm sure, it's just with the mentality you have when going into a "select ID from there" query, you arent convinced that you want to spend time learning this ready made function from Android to achieve it from high level Sep 19 19:18:22 you just "fuck it, executeSQL("SELECT ID..." Sep 19 19:18:37 http://xkcd.com/327/ ... but do SQL with care Sep 19 19:18:39 cause its like, too easy Sep 19 19:18:50 and then you hit vast SQL injections Sep 19 19:18:57 and then you think there must be a better way Sep 19 19:19:01 and then you realize... yeah, parameters Sep 19 19:19:10 I do parameterize Sep 19 19:19:16 SuD, the classic :p Sep 19 19:19:26 man that page has had more hits than Google.com Sep 19 19:19:57 lel t Sep 19 19:20:00 hat comic* Sep 19 19:20:10 not sure what you mean by you do parametrize, but if you're not using SQL parameters and placeholders, then you don't parametrize :p Sep 19 19:20:25 the question marks thing Sep 19 19:20:32 you do use them? good Sep 19 19:20:34 yea Sep 19 19:20:42 those are called placeholders btw Sep 19 19:20:48 yea Sep 19 19:20:51 got hit with that comic early on Sep 19 19:20:58 some years ago, lol Sep 19 19:21:16 * ravilov has known (and was hit by) SQL injections way before that comic was concieved :) Sep 19 19:21:31 what kind of apps have you guys worked on? Sep 19 19:21:34 just to see Sep 19 19:22:16 I think there should be a page for this channel, where apps made by users here would be displayed Sep 19 19:22:43 then someone would offer to pay a certain user for lessons Sep 19 19:22:45 money Sep 19 19:22:55 many of them are on gplay, and then others are private in-house ones, and then others still are permanently "in the making" :) Sep 19 19:23:29 Sicp, as for that, see topic please ;) Sep 19 19:23:41 lol yea I know Sep 19 19:23:50 pm a link of one of them, I'm interested to see Sep 19 19:23:56 if you're interested in showing Sep 19 19:24:21 oh I have none to show, most of mine are pretty much private, made for me or my family and friends Sep 19 19:24:25 quite specific usage and stuff Sep 19 19:24:47 anyone else? Sep 19 19:25:22 I know one indian guy who used to come here often, he was working on a news app which was really really cool looking Sep 19 19:27:24 nice grigri, looks really polished Sep 19 19:27:48 so that's a view pager in a tab host? Sep 19 19:28:28 via stripe Sep 19 19:28:30 noice Sep 19 19:28:32 all you? Sep 19 19:28:34 Sicp it's an html/css/js app ;) Sep 19 19:28:44 yeah Sep 19 19:28:45 wat! Sep 19 19:28:48 (me) Sep 19 19:28:54 preposterous! Sep 19 19:29:06 I used to be cross platform, but then I took an arrow in the knee Sep 19 19:29:10 I used to use Titanium Sep 19 19:29:12 lelzer Sep 19 19:29:24 haha why do you think i'm asking stupid questions here :D haven't touched java stuff in yearrsssss Sep 19 19:29:46 that's with phonegag? Sep 19 19:30:47 yesterday I decided to make the jump (at least starting at home) to AS Sep 19 19:30:53 and I gotta tell ya..... LOL. Sep 19 19:31:04 couldn't get past Import Project Sep 19 19:32:11 yeah phonegap. well, cordova. same thing. cordova bit is just a tiny wrapper, the rest is custom stack (knockout/requirejs/bootstrap/etc) Sep 19 19:32:38 AS? Sep 19 19:32:41 couldn't get that stuff, my friend was determined to work on a project using cordova, couldn't even set it up without pulling teeth Sep 19 19:32:48 android studio Sep 19 19:33:19 android studio i like it.:) Sep 19 19:33:21 oh? idk, it's easy. just a webview to run your stuff in with some native APIs exposed Sep 19 19:33:30 ohhhh right Sep 19 19:33:41 idk, haven't tried using it really. Sep 19 19:33:50 ant! Sep 19 19:34:01 Is it true android L come out in oct? Sep 19 19:34:19 Maybe it just talk. Sep 19 19:34:31 you really gonna jump on it for your next project? :P Sep 19 19:47:54 ok Sep 19 19:50:33 hi Sep 19 19:50:43 i have the android dev kit downloaded and eclipse is running Sep 19 19:51:17 wonderful Sep 19 19:51:20 guys i need some help... i have an actionbar with 2 ListFragments tabs, and each fragment require its own object to load UI, this object will be retrieved using retrofit. BUT everytime i switch between tabs the content will load from the web again... so i need a way to keep this object to reload UI without calling retrofit task. any help/suggestion? Sep 19 19:51:54 i am presented with an empty screen. i am standing at the end of a road before a small brick building. around me is a forest. a small stream flows out of the building and down a gully. Sep 19 19:51:55 i know some possibility creating a 3rd fragment without UI to store objects from both ListFragments Sep 19 19:52:12 haha Sep 19 19:52:15 so what do i do to build the absolutely simplest android hello world? Sep 19 19:52:15 go on Sep 19 19:52:24 cliffreich, use static class fields? Sep 19 19:52:35 File > New > Android Application Project Sep 19 19:52:58 cheater, load up google's own tutorials and copy-paste Sep 19 19:53:14 ravilov you mean a static class field from ListFragments to set/get fragment object from main activity or from where Sep 19 19:53:18 Sicp,What project is that you talking about. Sep 19 19:53:25 cheater: try not cheating and guessing how it's done Sep 19 19:53:25 like just something that gives me an emulator running and saying hello world Sep 19 19:53:27 I'm talking to cheater Sep 19 19:53:29 sicp doing Sep 19 19:53:32 ok Sep 19 19:53:41 cliffreich, something like that Sep 19 19:53:42 i'll set all sdk versions to 4.0 ok? Sep 19 19:53:52 it's not a one button, cheater. go through the tutorials please, there's tons out there Sep 19 19:53:58 cheater, you don't need to consult anybody on this, just follow the tutorials Sep 19 19:54:07 and they will explain what version, SDK, etc... are Sep 19 19:54:19 this channel is not here to hold a hand for noobs, sorry Sep 19 19:54:26 i know what sdk versions mean roughly Sep 19 19:54:37 i was just wondering if someone could suggest a good, simple, quick tutorial Sep 19 19:54:41 Anyone working on android project for android L?Not sure if i should start work on it or wait to it out. Sep 19 19:54:44 no! Sep 19 19:54:48 Google! Sep 19 19:54:52 cheater, google, seriously Sep 19 19:54:55 feeeed meeeee Sep 19 19:54:55 :( Sep 19 19:54:58 never Sep 19 19:54:59 ok i'll google Sep 19 19:55:09 TROLLS BE NO FOOD Sep 19 19:55:19 (not saying you're a troll) Sep 19 19:55:21 cheater 10 PRINT "HELLO WORLD" Sep 19 19:55:23 (not saying you aren't either) Sep 19 19:55:28 not that there's anything wrong with that Sep 19 19:55:31 shmooz, 20 GOTO 10 Sep 19 19:55:43 well, good night Sep 19 19:55:53 wow, that GOTO sure did him in Sep 19 19:56:38 I remember doing games in basic on my c128 Sep 19 19:56:40 good times Sep 19 19:56:43 <3 Sep 19 19:56:50 LOAD "HELLO WORLD",8,1 Sep 19 19:57:15 there's a project for you, cheater - make a BASIC interpreter for android Sep 19 19:58:06 and then it would say , PLEASE PRESS PLAY ON YOUR ANTIQUATED CASETTE PLAYER... Sep 19 19:58:19 ravilov: and get sued by microsoft? :(((((( Sep 19 19:58:23 i have visual basic so much Sep 19 19:58:26 what? Sep 19 19:58:34 microsoft owns no rights to basic Sep 19 19:58:45 maybe QBasic Sep 19 19:58:52 hate* Sep 19 19:58:53 http://upload.wikimedia.org/wikipedia/de/5/53/C128-animated.gif Sep 19 19:58:54 lol Sep 19 19:59:01 read this very carefully. Sep 19 19:59:05 heck, if you're lucky they might buy out both you and your basic Sep 19 19:59:07 and your company maybe Sep 19 19:59:18 haha. Sep 19 19:59:30 you have to hire actors that make them think you are going viral Sep 19 19:59:52 cliffreich, who's to say this isn't shopped? Sep 19 20:00:29 cheater: https://developer.android.com/training/basics/firstapp/index.html Sep 19 20:00:56 whats shopped Sep 19 20:01:25 thanks Sep 19 20:01:38 i'd been following this so far Sep 19 20:01:39 http://www.mkyong.com/android/android-hello-world-example/ Sep 19 20:01:58 cheater, I would stick to google's tutorials btw Sep 19 20:02:00 oh well seems like the only way is to store objects in main activity and then pass them as parcelable through tablistener Sep 19 20:02:09 not search for some random tuts on random sites Sep 19 20:02:19 also give up on the whole "quick and easy" idea Sep 19 20:03:16 some good android anwers are hard to find. i can solve it myself but not very clean code heh Sep 19 20:03:47 cliffreich, what's wrong with a static field? Sep 19 20:03:56 everything Sep 19 20:04:10 uhhuhh Sep 19 20:05:28 well the issues is too much fragment and activity interaction to get objects using static, i dont know. i will try it too Sep 19 20:05:40 risk of injury if it's a static electric field Sep 19 20:05:56 o too many fragment -fragment through activity communication Sep 19 20:06:00 if you're using a static field, you're not passing data explicitly but instead through global state Sep 19 20:06:27 it smacks of shenanigans Sep 19 20:10:14 he, what a bunch of idiotic questions http://www.toptal.com/android/interview-questions Sep 19 20:11:29 Hi everyone. Does anyone know how I can use string.contains(“\\(“) ? Sep 19 20:11:34 do any of you use vim to do android development? Sep 19 20:11:59 i want to find a parenthesis Sep 19 20:12:17 strign.contains(“(“) does not work Sep 19 20:12:31 nor “\\(“ Sep 19 20:12:35 not “\(" Sep 19 20:13:07 g00s agree. i would flat-out fail #1 and i know a few things about Android, #'s 2 and 5 are flat-out dick questions, and #4 is answerable by 5 seconds with an IDE Sep 19 20:13:17 3 and 6 are the only ones with any semblance of actual conceptual knowledge behind them Sep 19 20:14:08 petition about Play changes https://www.change.org/p/google-inc-reverse-your-decision-to-require-android-developers-who-sell-apps-on-google-play-to-publicly-disclose-their-physical-address Sep 19 20:14:53 sounds like we are not allowed to use PO boxes for our physical addresses Sep 19 20:14:54 tricknology: System.out.println("abc(d".contains("(")); --> return "true" for me Sep 19 20:15:15 tricknology: it looks like your parens are weird unicode parens. not normal ones. Sep 19 20:16:32 tricknology: do you want to find it, or just see if it exists? if you need location use indexOf Sep 19 20:16:42 yeah I’m getting them from here: https://support.google.com/googleplay/answer/1727131 Sep 19 20:16:48 im parsing this list of devices Sep 19 20:16:51 there are parens in there Sep 19 20:16:57 see the source Sep 19 20:17:13 I want to see if it exists then split on it Sep 19 20:17:53 are you 101% sure the string you get is correct? Sep 19 20:19:26 ha yeah Sep 19 20:19:34 No modelValue: ZTE-U V857 (zte_v857/ZTE-U V857) Sep 19 20:19:39 there is a paren in there Sep 19 20:19:53 but it falls through the statement: if (split.contains(“[\\(]”)){…} Sep 19 20:21:12 right, because it doesn't contain that string Sep 19 20:21:26 the contains argument isn't a regex.. it's a literal string to find Sep 19 20:21:46 btu I’ve tried \\( Sep 19 20:21:51 same result Sep 19 20:21:57 no \\ Sep 19 20:22:24 you're not looking for \( Sep 19 20:22:27 you're looking for ( Sep 19 20:22:53 boss Sep 19 20:22:58 it works.. Sep 19 20:23:08 so i couldnt split on “(" Sep 19 20:23:36 split *is* a regex though Sep 19 20:23:40 so I changed the split to “\\(“ and changed the contians to “\\(“ Sep 19 20:23:41 contains is not Sep 19 20:23:47 i understand now.. thanks :) Sep 19 20:30:23 everyone needs this http://www.gizmag.com/hamster-wheel-standing-desk/33892/ Sep 19 20:30:28 you too JesusFreke Sep 19 20:31:12 I recommend deadlifts Sep 19 20:31:33 um Sep 19 20:31:35 g00s: hahaha. I want one Sep 19 20:31:42 shipit wuth what, your coworker ? Sep 19 20:31:43 deadlifts are the most injury prone exercise you can figure out Sep 19 20:32:21 g00s that's level: Arnold Sep 19 20:32:49 yeah, anatomically if your leg/torso length ratio is high deadlifts are tough Sep 19 20:32:49 g00s: I want one, if only so I can try riding my unicycle inside of it Sep 19 20:32:52 cheater or lat pulldowns, hip adductors Sep 19 20:33:02 JesusFreke i thought so :D Sep 19 20:33:57 cheater I'd say squats Sep 19 20:34:41 nope Sep 19 20:34:46 deadlifts, definitely. Sep 19 20:35:39 well, if there was only one single exercise you could ever do , it would be deadlifts or squats because they involve every muscle in your body ... but yeah, proper form is essential Sep 19 20:36:02 g00s esp as you start lifting more Sep 19 20:36:15 clean and jerk is dangerous too :D Sep 19 20:36:31 I'm working towards that :) Sep 19 20:37:25 neither Sep 19 20:37:44 * cliffreich scholiosis Sep 19 20:37:49 have you guys tried standing desks? as a milder alternative to that crazy wheel thing Sep 19 20:38:39 grigri I didn't like standing desks Sep 19 20:38:42 I'm too attached to my slouching in a chair :) Sep 19 20:38:56 I simply walk to get water every 40-45 mins Sep 19 20:39:17 this was also interesting http://www.gizmag.com/compactix-glyder/33854/ Sep 19 20:40:44 man if I could multitask like that, I'd not be adding semi-colons to my resource XMLs :) Sep 19 20:44:38 shipit i did find that i felt better at the end of the day - drive home was sure more pleasant - but it took some time getting used to standing all day... unfortunately i'm back to a slouching chair now Sep 19 20:45:39 JesusFreke, I'm looking at your Penrose code Sep 19 20:45:46 end of the day felt like i haven't really spent all day in the office, just feeling somewhat physically tired but not overall exhausted like i usually feel Sep 19 20:45:51 Ologn: heh Sep 19 20:46:04 Ologn: trying to make an opengl wallpaper? Sep 19 20:46:13 grigri I can definitely compute the calorie burn there Sep 19 20:46:30 i've done the standing thing Sep 19 20:46:34 JesusFreke, yes, I ported some of the Really Slick Screensavers with your code Sep 19 20:46:41 nice :) Sep 19 20:47:00 liked it but you need actual shoes, my typical flip-flops quickly began to show their failings as proper footwear Sep 19 20:47:18 that was a fun project. it was surprisingly challenging to figure out how to generate the penrose tilings in such a way that I could dynamically extend it in any direction Sep 19 20:47:59 I just have to add something to change settings... Sep 19 20:48:19 oh god deadlifts... Sep 19 20:50:07 i dont think standing or sitting matters; you just have to move Sep 19 20:50:17 standing you just wind up with more vericose veins Sep 19 20:50:23 hard to move too much while sitting all the time though Sep 19 20:50:28 snatch cleans and hand cleans are better than deadlift Sep 19 20:50:30 g00s yup -- don't build up stress on vertebrae Sep 19 20:50:31 hang Sep 19 20:50:45 deadlifts are a good way to slip a disc Sep 19 20:50:50 tricknology y, gotta be careful w deadlifts Sep 19 20:50:52 maybe do a few jumping jacks every 30 minutes? :) Sep 19 20:51:05 i have seen chairs that are kinda between standing up and sitting - you more or less lean against them. Sep 19 20:51:14 not the kneeling ones either Sep 19 20:51:18 JesusFreke, yes, I have the service accessing the sharedpreferences via an Application like in your app...now I just have to get it over to my renderer Sep 19 20:51:37 so your hip is probably at a 45' angle intead of 90-ish sitting Sep 19 20:51:49 How to get the real path of a path? e.g.: /data/data/com.example/../ -> /data/data Sep 19 20:51:56 If you're slouching right, you're already at 45' angle :D Sep 19 20:54:48 check3r, File.getCanonicalPath() Sep 19 20:55:16 but see caveats on http://developer.android.com/reference/java/io/File.html#getCanonicalPath%28%29 Sep 19 20:57:29 ravilov, thx again :-) Sep 19 20:59:03 JesusFreke, prett sure the idea is that you can get back to 90 some point, which might be a problem if you're slouching :p Sep 19 20:59:19 at some point* Sep 19 21:01:12 hi Sep 19 21:01:17 does anyone know if in-app billing v3 is backwards compatible with v2? Sep 19 21:01:18 so i created an AVD in eclipse... Sep 19 21:01:26 and the manager says it "failed" Sep 19 21:01:34 when i click on details i get "error: unknown target 'android-l'" Sep 19 21:01:40 X| Sep 19 21:01:52 what do i do with this? :\ i googled around but couldn't find anything... Sep 19 21:03:01 maybe you could try with a more stable and less previewy api :p Sep 19 21:03:17 :( Sep 19 21:03:20 ok :( Sep 19 21:03:36 i dunno i just installed what was preselected in the sdk manager :\ Sep 19 21:04:03 are you following a tutorial? if not, you should Sep 19 21:06:09 yeah ravilov Sep 19 21:06:16 but the tutorial didn't seem to mention that part Sep 19 21:06:33 ok guys, i'll see you in the near future, thanks for the help Sep 19 21:06:34 take care Sep 19 21:18:53 so it seems like cordova includes an old version of okhttp in it (1.3). if i wanted to use the newest okhttp, i can download the jar and include it in my project, but how do i force it to be the one that'll be used when i try accessing okhttp stuff? Sep 19 21:28:26 i think i created the less clean/elegant solution to my problem Sep 19 21:28:26 heh Sep 19 21:29:15 make it work then make it better :) Sep 19 21:30:22 how much would it cost me to find someone to integrate google maps on an existing project? Sep 19 21:30:34 i got the simplest possible app made with SQLite Sep 19 21:30:52 and now for my entries in the database, i need to add geographical location Sep 19 21:30:59 and to enable searching by radius Sep 19 21:31:12 how much would an average developer charge for this? Sep 19 21:34:36 you would get a very cheap service on freelancer or alikes Sep 19 21:34:46 cheap like what? Sep 19 21:34:52 i really have no idea how much this would cost Sep 19 21:35:01 10$, 100$? Sep 19 21:36:37 if its something really simple set your project for 100-200 and theyll fight to offer cheaper services for freelancer points. Sep 19 21:36:53 thats why i avoid freelancer, no points heh Sep 19 21:37:12 so how much am i likely to pay? Sep 19 21:37:29 i dont feel like paying 100$ for something that simple Sep 19 21:38:01 just offer whatever you want/can and people will offer Sep 19 21:38:10 yeah, I'd charge like 1500EUR Sep 19 21:38:17 some people more, some people less Sep 19 21:38:31 hint: make sure your specification is very clear Sep 19 21:39:03 I have a folder "utils" in my project for helpful classes. I want to make sure that noone accidentally makes a change to any of the files under "utils" such that it includes a file from another folder in the project. So that the utils folder also remains standalone without dependencies into other parts of the project Sep 19 21:39:07 LighterFluid: your problem is simple, you can do it yourself - 10 hrs max http://stackoverflow.com/questions/574691/mysql-great-circle-distance-haversine-formula Sep 19 21:39:10 is this at all doable? Sep 19 21:39:44 johnflux__, make a library project, publish it as aar to internal maven repo and then include it in other projects Sep 19 21:39:50 that's the "proper" way to do it Sep 19 21:39:59 johnflux__ what Mavrik said Sep 19 21:40:01 shipit: i cant deal with it, whatever i seem to try, i get tons of errors Sep 19 21:40:16 or just make a Git (are you using it?) submodule to a read-only repository that only includes "utils" Sep 19 21:40:18 LighterFluid with map or search? Sep 19 21:40:26 for a quick-and-dirty solution Sep 19 21:40:37 shipit yeah, google maps integrated Sep 19 21:40:46 Mavrik: I still want to easily modify utils Sep 19 21:40:56 LighterFluid what errors are you seeing? Sep 19 21:41:01 johnflux__, um, you said it yourself Sep 19 21:41:06 johnflux__, you don't WANT it to be modified Sep 19 21:41:09 which is it now?! Sep 19 21:41:24 shipit whole day yesterday i tried to enable google maps and didnt succeed so i just gave up Sep 19 21:41:31 simply cant do it Sep 19 21:41:54 LighterFluid the instructions can be complex, go over all the steps carefully Sep 19 21:42:10 make sure you got the maps api key part right Sep 19 21:42:18 shipit thanks, but i'd rather pay some indian guy 20$ and save myself the trouble :) Sep 19 21:42:21 yeah, got all that right Sep 19 21:42:29 in the end, the problem was with google services on the emulator Sep 19 21:42:41 i managed to install it by downloading the stuff and dragging it into it Sep 19 21:42:44 but then it needed an update Sep 19 21:42:47 Mavrik: I want to modify it, I just don't want it to import classes from other parts of the project Sep 19 21:42:52 Mavrik: make sense? Sep 19 21:42:53 and trying to update gave me an error Sep 19 21:42:57 so i just said fuck it Sep 19 21:43:07 ie using the keytool to get the SHA1 from your debug keystore and get the correct key from google api console Sep 19 21:43:21 johnflux__, hmm, yeah Sep 19 21:43:29 LighterFluid could you get the sample project to work? Sep 19 21:43:30 johnflux__: Then put it in its own module Sep 19 21:43:43 johnflux__, put it in a module / library project Sep 19 21:43:46 shipit i cant, thats the thing Sep 19 21:43:51 and make sure it doesn't cite your main as a dependency Sep 19 21:43:53 it needs google services installed on a virtual machine Sep 19 21:44:00 thats where i got stuck Sep 19 21:44:05 and just gave up afterwards Sep 19 21:44:06 but that's about the best you can do, after that it to make sure your devs know about the separation :) Sep 19 21:44:24 Mavrik: SimonVT: Module or library? Sep 19 21:44:42 LighterFluid yeah, working w/ emulator is not the best way, get yourself an android device, cheaper that hiring a developer over the Internet :) Sep 19 21:45:06 i just posted a project on freelancer, got a 20$ offer Sep 19 21:45:19 and i have an iphone :P Sep 19 21:45:19 LighterFluid great! Sep 19 21:45:28 johnflux__, both ;) Sep 19 21:45:48 johnflux__: are you using Eclipse or Android Studio? Sep 19 21:46:06 shipit: android studio Sep 19 21:46:44 johnflux__: like Mavrik said, create a library project, push it to git, import it as module in your app project Sep 19 21:46:59 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup Sep 19 21:47:03 Assuming you use gradle Sep 19 21:48:04 shipit: thanks :) Sep 19 21:57:11 how do I tell if a Set keySet contains the String “string”? Sep 19 21:57:35 keySet.contains(“string”) is not finding they key though it exists Sep 19 21:57:45 I think it is comparing the object, not the string value Sep 19 21:57:54 do I have to Iterate through all entries? Sep 19 21:58:29 tricknology: are you Set set = TreeSet(); Sep 19 21:58:54 Set keys = brandMap.keySet(); Sep 19 21:58:59 so it is a Set Sep 19 21:59:07 brandMap is a HashMap Sep 19 21:59:16 its keys are String Sep 19 21:59:37 you want to make sure your set uses a comparator Sep 19 22:00:27 JVM spec says that String objects are internalize and therefore their hashCode() and equals() should technically comply Sep 19 22:00:45 ie should work for HashSet Sep 19 22:01:13 you kinda lost me Sep 19 22:01:37 how do you think HashMap or HashSet works? Sep 19 22:01:42 vs TreeSet? Sep 19 22:01:45 I think teh .contains() is looking at my String as an Object instead of a string value.. something like “@AL234FH" Sep 19 22:02:04 y, that's the object reference Sep 19 22:02:30 hm, I'm curious now Sep 19 22:02:37 I know that HashSet is much faster and order is guaranteed in TreeSet Sep 19 22:02:53 I don’t care about order really Sep 19 22:03:01 I've always used TreeSet -- it should work for you Sep 19 22:03:07 http://pastebin.com/dh6f5Qaa Sep 19 22:03:12 jsut want to know if the key that I’m about to put into the HashMap already exists Sep 19 22:03:15 basically wrap your keySet in a TreeSet Sep 19 22:03:22 okie dokey Sep 19 22:03:30 when i'm performing a view.setanimation(...) of this Sep 19 22:03:36 i'm getting a nullpointerexception Sep 19 22:03:44 can someone help me ? :( Sep 19 22:03:46 view is null? Sep 19 22:03:56 or one of your params is.. check it Sep 19 22:04:16 if(view == null) Log.d(TAG, “VIEW IS NULL!!!”) Sep 19 22:04:22 tricknology paste code.. Sets are defined to use .equals which should match your strings Sep 19 22:04:22 right before you do that Sep 19 22:04:30 android studio shows wrong lines during debugging. any ideas? Sep 19 22:04:46 sqrrl means the code you're looking at is not the same code that's running on the device Sep 19 22:05:02 how can it be? Sep 19 22:05:05 its literally a few lines but ok Sep 19 22:05:06 http://pastebin.com/BWZweT6K Sep 19 22:05:21 and brandMap.. Sep 19 22:05:21 HashMap> brandMap = Sep 19 22:05:22 new HashMap>(); Sep 19 22:05:31 sqrrl autogenerated code often has that problem, or perhaps you've just made changes and not pushed them to device Sep 19 22:05:41 sait's a library file Sep 19 22:05:45 sarbs:* Sep 19 22:05:57 what can i do ._. Sep 19 22:06:11 what do you mean it's a library - do you have source for it? Sep 19 22:06:35 it fails when it gets to sdk/sources/android-20/android/app/Notification.java Sep 19 22:06:37 or rather, did you build it from source? if you downloaded source alongside a .jar, apparently that source is not exactly what was used to build the jar Sep 19 22:06:49 ah. yeah, that source is definitely not what was used to build the jar Sep 19 22:07:29 sarbs: code is there Sep 19 22:07:35 but it it runs fine for NotificationCompat and NotificationCompatJellybean.. Sep 19 22:07:40 it's just this one file Sep 19 22:08:09 tricknology why do you recreate brandmap on line 6? Sep 19 22:08:18 that would certainly cause the contains lookup to fail in the future Sep 19 22:08:31 because it is done finding brands Sep 19 22:08:36 i’ll jsut post the whole clas Sep 19 22:08:37 lol Sep 19 22:08:46 alternatively, anyone knows how to get rid of the divider line in InboxStyle notifications? Sep 19 22:08:59 the R.id.action_divider thing Sep 19 22:09:32 http://pastebin.com/K2R93Hga Sep 19 22:09:37 there's zero text under it but it keeps showing Sep 19 22:09:37 sarbs: Sep 19 22:09:57 that object is finished.. I need to refresh it so that I can make a fresh list Sep 19 22:10:42 ooooh snap Sep 19 22:12:02 was that "oooh snap" the sudden realization that you're replacing brandMap with a new, empty, HashMap every time you add a brand to it? Sep 19 22:12:23 yes... Sep 19 22:12:25 so stupid.. Sep 19 22:12:28 ;) Sep 19 22:12:36 I’ve been building this thing for about the last 6 hours Sep 19 22:12:46 if anyone wants it though I’ll gitHub it later Sep 19 22:13:01 it reads this website and compiles a list of all the devices Sep 19 22:13:10 https://support.google.com/googleplay/answer/1727131 Sep 19 22:13:18 github all the things Sep 19 22:13:19 should create some custom objects, instead of so many maps of maps of maps Sep 19 22:13:33 +1 canvs2321 Sep 19 22:13:41 Yeah I know I should, but I want to experiment with speed Sep 19 22:13:44 first is this way Sep 19 22:13:50 second is creating custom objects Sep 19 22:13:59 with 18K + phones out there that’s a lot of objects Sep 19 22:14:03 loooots of operations Sep 19 22:14:04 maps will be at least an order of magnitude slower Sep 19 22:14:11 if not several orders Sep 19 22:14:13 xln(x) Sep 19 22:14:16 oh good to know Sep 19 22:14:29 time to restructure… lol Sep 19 22:14:47 yeah I’ll gitHub it after though, could be useful Sep 19 22:15:10 the reason why I’m doing this is because I want ot maintain a record of all the types of phones my users have Sep 19 22:15:30 it returns only SPH710 for Sprint Samsing Galaxy S3 Sep 19 22:15:44 so I need this list to compare against and get readable device name Sep 19 22:16:00 “Samsung Galazy S3” instead of SPH710 Sep 19 22:16:15 but I need to be able to look up SPH710 Sep 19 22:16:27 So sorting through all these objects is a lof of operations… Sep 19 22:16:31 it's helpful to understand the underlying memory concepts - with a map and a key, even with a constant-lookup-time HashMap, the cpu has to 1) calculate the hash of the key 2) find the bucket in memory that hash corresponds to 3) traverse a list of entries in that bucket performing equals() on the specified key 4) retrieve from memory the object pointed to by the matching entry Sep 19 22:16:34 I should just uuse a databse… Sep 19 22:17:09 liek redis.. Sep 19 22:17:15 or SQLite Sep 19 22:17:17 with a custom object, the cpu has to 1) add a predefined-by-compiler field offset to the address of the custom object in order to find the address of the value desired, and return that Sep 19 22:17:36 how about a database? especially for retrieval of the information Sep 19 22:18:04 if i have to retrieve the SPH710 be name and get the common name Galaxy S3 it’s going to be a rough time looking though all those objects Sep 19 22:18:30 well, database lookups are thousands of times slower than RAM lookups, even with shitty algorithms Sep 19 22:18:45 but RAM lookups come with the disadvantage that.. they're in RAM. they go away when the process does. Sep 19 22:19:01 database lookups are thousands of times *faster* than network lookups Sep 19 22:19:28 and that looks to be what you're really doing: loading an HTML page over the network, scraping it and building a database in RAM, then querying that Sep 19 22:19:46 just preload a sqlite db and ship it with app, if that's what you're after Sep 19 22:28:27 No this is going in the backend Sep 19 22:28:44 I’m sending phone make + model + carrier to the backend DB Sep 19 22:29:03 when I want to pull a report for statistics then I run this code Sep 19 22:29:10 oh Sep 19 22:29:26 well then yeah maintain a sql database that matches SPH710 to whatever info you want Sep 19 22:29:52 But if the content of the HTML changes I have to reload the databse Sep 19 22:30:12 why? do you think SPH710 is going to suddenly start meaning Nexus 5? Sep 19 22:33:35 ok, i need the ressource ID of a view a created with java, is it possible to perform that ? Sep 19 22:33:57 blusky it doesn't have one until you assign it Sep 19 22:34:04 how to ? Sep 19 22:34:04 no, like when the Note 4 comes out, they add a lines to their webpage, i rescrape the database and check every entry, if not exists put Sep 19 22:34:23 can I assign ressource ID with java ? Sep 19 22:34:30 view.getID() Sep 19 22:34:35 getId Sep 19 22:34:38 ok, thx :) Sep 19 22:34:51 nice ! Sep 19 22:34:52 setId() Sep 19 22:34:52 thx !!! Sep 19 22:34:53 setId() is actually what you'll be wanting Sep 19 22:34:57 yeah :) Sep 19 22:35:00 :) Sep 19 22:35:12 will getId be working if i didn't set one ? Sep 19 22:35:28 blusky no you have to setId first, if you created it yourself Sep 19 22:35:44 well usually you set it using findViewById(R.id.something).. Sep 19 22:36:02 blusky if you create the view programmatically and don't set an id, its id will be https://developer.android.com/reference/android/view/View.html#NO_ID Sep 19 22:36:05 but if you created it yourself then like sarbs said Sep 19 22:36:19 you can also give it a Tag Sep 19 22:36:27 how to set one without risking anything ? Sep 19 22:36:46 tricknology what you're describing isn't very difficult but it's not really in the scope of android development, it's more of "how can i scrape a website into a database and ensure data integrity" Sep 19 22:36:52 which is a fairly common topic on the intarwebs Sep 19 22:36:55 keep an ArrayList of viewId’s and check it when you add another one Sep 19 22:37:09 blusky IDs do not have to be unique Sep 19 22:37:16 ^ did not know that sarbs Sep 19 22:37:29 the unique ids Sep 19 22:37:56 agh im too lazy to create a database.. and helper… Sep 19 22:38:02 and wrapper.. Sep 19 22:38:15 is possible to have a progressbar using retrofit? i had asynctask but switched and no idea Sep 19 22:38:40 and retrofit inside asynctask + while sounds kinda ugly Sep 19 22:40:06 tricknology findViewById() performs a DFS traversal of the view hierarchy and returns the first match Sep 19 22:40:47 sarbs: but in XML the compiler wont let me name two views the same, no? Sep 19 22:41:06 not sure if it'll yell at you Sep 19 22:41:11 it shouldn't error.. it might warn Sep 19 22:41:44 i think ill just use a gif with visibility changes Sep 19 22:41:45 heh Sep 19 22:42:43 i'm the nightmare of every android nerd Sep 19 22:43:33 lol Sep 19 22:43:37 you’re the devil Sep 19 22:43:39 but I have one too. Sep 19 22:43:41 it’s not bad Sep 19 22:43:48 dont leak your view... Sep 19 22:44:44 you can break; out of a for loop without affecting the outer while loop, no? Sep 19 22:45:39 dont answer that.. Sep 19 22:45:46 ^ long day Sep 19 22:47:07 tricknology you want some fun, try running this: Sep 19 22:47:26 There are 40 phone manufacturers Sep 19 22:47:41 well.. android Sep 19 22:47:46 and I should say Device Sep 19 22:47:50 outerloop: while(true) { for (int i = 0; i < 10; i++) { Log.d("test", "Foo"); if (i == 3) break outerloop; } } Sep 19 22:49:18 bestbuy has some waht is outerloop? Sep 19 22:49:21 lol Sep 19 22:49:26 forgot to finish my sentence.. Sep 19 22:50:44 it's http://www.reactiongifs.com/r/mgc.gif Sep 19 22:51:02 nice infinite loop Sep 19 22:51:30 safe for work? Sep 19 22:52:54 si, sfw Sep 19 22:53:00 and shouldn't be an inf loop unless i typo'ed Sep 19 22:54:10 yup. works. Sep 19 22:54:32 waht is the outerloop? Sep 19 22:54:39 break; outerloop Sep 19 22:54:47 break outerloop; Sep 19 22:55:25 that’s pretty sick Sep 19 22:55:31 never seen that before Sep 19 22:55:58 outerloop is a label, which java technically supports Sep 19 22:56:01 I took out the outerloop stuff Sep 19 22:56:04 and proguard makes extensive use of Sep 19 22:56:11 so… Sep 19 22:56:14 can i use GOTO? Sep 19 22:56:22 instead of recursion? Sep 19 22:56:39 if (condition) GOTO label Sep 19 22:56:56 I really am a Basic bitch Sep 19 22:57:06 no, goto is a reserved word but it's not used Sep 19 22:57:44 labels are pretty much purely for multi-loop breaking Sep 19 22:57:49 ok beautiful Sep 19 22:57:56 http://stackoverflow.com/a/2545155/518159 Sep 19 22:57:59 I could see where this would come in handy Sep 19 23:00:15 sarbs, had to do this and it works but it’s ugly.. and kinda wasteful. Sep 19 23:00:16 http://pastebin.com/4BVzjdyK Sep 19 23:00:32 or should I cast to TreeSet and use .contains? Sep 19 23:01:32 nvm, cannot cast to TreeSet Sep 19 23:01:53 side note: does Android support Java 7 (Switch on String)? Sep 19 23:01:58 i don't think you fully understand the Map and Set concepts Sep 19 23:02:05 I don’t think I do either :/ Sep 19 23:02:36 that code says "if brandMap is empty, put brand into it. otherwise, iterate through each key in brandmap, and then for each key, if brand is not that key, put brand into brandmap" Sep 19 23:02:53 then break Sep 19 23:03:04 yeah, then break Sep 19 23:03:30 so if you have 100 brands, the one you're looking for is 47th in the iteration order, you're going to insert it 47 times Sep 19 23:04:07 second, on a larger level - you're iterating through the map in order to find a key. maps already have a containsKey method, that's constant time (instead of linear time, like your lookup) Sep 19 23:04:07 yeah I meant == Sep 19 23:04:10 not != Sep 19 23:04:18 !!! that’s waht I wanted.. Sep 19 23:04:53 sets also all have a contains() method, which is almost always faster than linear iteration Sep 19 23:05:33 is now just http://pastebin.com/6j79Z8cM Sep 19 23:06:10 that makes much more sense. keys is unused in this snippet, but i'm sure your ide has already told you that Sep 19 23:06:13 thanks a million Sep 19 23:06:25 http://docs.oracle.com/javase/tutorial/collections/ Sep 19 23:06:29 it is telling me this Sep 19 23:06:39 I’m not listening Sep 19 23:07:12 I use this nice little colelction matrix sometimes Sep 19 23:07:12 http://www.janeve.me/articles/which-java-collection-to-use Sep 19 23:07:39 mm Sep 19 23:07:52 i wouldn't rely on a cheat sheet.. go learn the basic collections and use the common ones Sep 19 23:08:10 don't ever use Vector or Hashtable.. those are.. just.. why Sep 19 23:08:38 yay! http://pastebin.com/VuveevNT Sep 19 23:08:46 I hate vectors.. Sep 19 23:08:49 from C++ Sep 19 23:09:19 except I have a problem on the CoolPad Sep 19 23:10:09 oh no I don't Sep 19 23:10:50 there are just that many coolpads/.. https://support.google.com/googleplay/answer/1727131#C Sep 19 23:15:08 Thanks for all your guys help.. I’m outie.. I’ll clean up this crappy source and post to GitHub Sep 19 23:16:59 https://github.com/znwabudike Sep 19 23:24:07 I want my listview to not show the last partially-shown item... how can I do this? :) Sep 19 23:24:19 it's because my listview isn't going to be scrolled Sep 19 23:33:18 are there any limitations/oddities i should be aware of when trying to run multiple foreground services? Sep 20 00:26:49 when I perform myLayou.removeView(myView), myLayout.getChildCount() doesn't change Sep 20 00:27:15 doesn't that mean I will have a memory leak if i perform addvew / removeview ? Sep 20 00:30:19 what buttons on my mac is this pic referring to? trying to access error options in android studio... Sep 20 00:30:19 http://www.picresize.com/popup.html?images/rsz_screen_shot_2014-09-19_at_51439_pm.png Sep 20 00:42:05 It's been a looong while since I did anything with Android in the normal SDK. But I think I recall there being a way to seperate R.id values. Is there one in defining ids, or is it just limited to naming conventions Sep 20 01:03:47 so, for those of you playing at home, I've found the solution to my problem. http://stackoverflow.com/questions/25937326/how-do-i-allow-clicks-to-bubble-up-in-ontouchevent Sep 20 01:04:14 I'm a happy camper :) Sep 20 01:10:49 does anyone know if in-app billing v3 is backwards compatible with v2? Sep 20 01:14:58 what do you do that's not in the "normal" sdk Sep 20 01:16:23 hello all Sep 20 01:16:52 when you hook an Android Studio project into subversion, why wont it let you delete any files from the project? Sep 20 01:17:43 pfn stuff like Qt Xamarin and Unity3d Sep 20 01:18:06 people still use svn? Sep 20 01:18:30 although Xamarin has this problem too Sep 20 01:18:52 also no idea what you're asking, it makes no sense Sep 20 01:19:15 pfn: good point Sep 20 01:20:08 what makes no sense (I there's some weird irc cross-talk going on) Sep 20 01:20:12 re Rid Sep 20 01:23:59 R.id has all the ids of every element in the project. So typing R.id autocompletes with every single id availble. I think I recall there was a way to group them other than naming them with prefixes (e.g. R.id.someActivity_okButton) Sep 20 01:30:12 Beardless_One group them ? Sep 20 01:33:51 StingRay, something like R.id.someActivity.okButton or R.someActivity.okButton Sep 20 01:40:20 Hi everyone Sep 20 01:40:54 I have few questions about "Login" system for android with mysql Sep 20 01:41:19 Beardless_One not sure something like that exists Sep 20 01:41:39 well not though the xml resources anyways Sep 20 01:41:41 is POST requests and JSON is the correct way to work with mysql? Sep 20 01:42:04 bha it's not wrong and it's 1 way Sep 20 01:42:38 2. what is the way to save loggin token? Sep 20 01:43:07 so I can know user is logged in and can be transfered to the main page Sep 20 01:43:11 bha any way you want Sep 20 01:43:17 and not login everytime Sep 20 01:43:27 bha these are all explained in the docs Sep 20 01:43:30 how to do it correct? Sep 20 01:43:42 which docs? Sep 20 01:43:45 anyway you want!!!! that is fit for purpose Sep 20 01:43:48 the android docs Sep 20 01:43:49 like http://developer.android.com/guide/topics/data/data-storage.html Sep 20 01:44:17 i didn't quite get why to use sqlite if i got mysql db Sep 20 01:44:31 all the tutorials point me to use sqlite Sep 20 01:44:42 bha your comments make no sense Sep 20 01:44:52 bha: have you considered connectivity? Sep 20 01:44:55 it's a database .. Sep 20 01:45:11 the only difference is the way you connect based on where it is Sep 20 01:45:12 SQLite will be local to the device, not require talking over network Sep 20 01:45:13 sqlite is on mobile or on the server? Sep 20 01:45:19 bha: on the device Sep 20 01:45:27 that's why the tutorials talk about it Sep 20 01:45:29 oh but i make facebook like app Sep 20 01:45:37 so i must have internet connection Sep 20 01:45:49 is it necessary using sqlite as well? Sep 20 01:45:59 bha: even then, local store is useful. Mobile internet *SUCKS* and will give you horrible UX Sep 20 01:46:02 even LTE-A Sep 20 01:46:15 any claims otherwise are marketing spiel :> Sep 20 01:46:21 (or luck)_ Sep 20 01:46:42 p_l - local storage for user information? Sep 20 01:46:51 bha: or cached information Sep 20 01:47:02 instead of querying server all the time, query it for *new* data Sep 20 01:47:03 i don't get it how is this working with the server it cannot be local Sep 20 01:47:09 ohhhh Sep 20 01:47:15 make sense Sep 20 01:47:47 right now, i ping the server for login, then i ping for user information Sep 20 01:48:06 how can I know if info is changed on the sever? Sep 20 01:48:16 to sync between local and server? Sep 20 01:48:39 for example if you have a monotonic counter for posts, you can use that for checking what data to sent to the device - device can ask for new data saying "last post I have has counter X, give me posts with counter>X" Sep 20 01:48:50 and keep last N posts locally Sep 20 01:49:01 oh Sep 20 01:49:05 similarly for different categories of data Sep 20 01:49:33 then should i make every db i have the same on the device? Sep 20 01:49:35 if it's not time-based difference, you can provide a hash of information (for example for information about another user of your app) Sep 20 01:49:55 and ask "I have data for this user with hash X, did it change?" Sep 20 01:50:03 (this is the same trick as with ETags in HTTP) Sep 20 01:50:12 oh Sep 20 01:50:32 bha: read about distributed programming and synchronizing/distributing data Sep 20 01:50:37 and caching Sep 20 01:50:55 choices of database mean less than the interaction between device and server Sep 20 01:51:00 and how do i make session so user dont have to login each time? and every activity will know some global user id? Sep 20 01:51:13 OAuth? Sep 20 01:51:24 ok i'll google it Sep 20 01:51:27 acquire some kind of cookie that identifies a session Sep 20 01:51:38 yeah i mean cookie Sep 20 01:51:47 how does it call in android Sep 20 01:51:55 i'm coming for web dev Sep 20 01:51:59 from* Sep 20 01:52:11 is there cookies in android? Sep 20 01:52:35 bha: it would be part of whatever protocol you decide upon between device and server Sep 20 01:53:11 i use POST requests and parasing JSON response from the php server Sep 20 01:53:16 (not HTTP Cookie, "cookie" as in "some value we can provide for each request to identify the session") Sep 20 01:53:50 by the way I make kickass UI if someone needs help Sep 20 01:54:20 bha examples ? Sep 20 01:55:01 ummm i can printscreen my phone Sep 20 01:55:09 gimme mail to send Sep 20 01:55:47 http://tinypic.com/ Sep 20 01:55:53 just push it to imgur or similar Sep 20 01:56:01 i'll send later cuz i got tons of work with my app Sep 20 01:56:26 so gimme mail Sep 20 01:58:45 what you think about sharedpreferences for login session? Sep 20 02:03:34 what you think about sharedpreferences for login session? Sep 20 02:12:41 i designed an app which clicks image from the phone's camera and sets it as wallpaper of the phone,the image is of nice quality as can be seen from the gallery but upon setting it as wallpaper using the app,it gets blurred.....can anyone please help me out? Sep 20 02:15:49 hello all Sep 20 02:15:57 hello Sep 20 02:16:00 can someone take a peek and see if I'm missing something obvious: http://hastebin.com/eramoqevak.xml Sep 20 02:16:04 not sure why that is NPE Sep 20 02:16:48 maybe getPreferenceScreen() returns null ? Sep 20 02:18:14 hmm could be but no clue why Sep 20 02:18:20 or rather, since it's the only methods called on an object, it "does" return null Sep 20 02:18:39 you should really learn what null is Sep 20 02:28:19 Heh its funny, I can remember debating what null is, what it should be, the trouble started with Visual Basic iirc. Sep 20 02:28:44 please check up the issue with the code which causes the set wallpaper to blurr... http://hastebin.com/nitipoxuma.avrasm Sep 20 02:31:59 can anyone help me out on a small app issue please? Sep 20 02:34:51 anyone out there? Sep 20 02:35:08 whats the problem? Sep 20 02:35:22 just looks like some code to me Sep 20 02:35:51 tho I am not one of those people like you see on TV that can just glance at code and go..."oh ya, its..." ;) Sep 20 02:36:01 oh sh*t Sep 20 02:36:20 is it bad that I kinda looked at it and maybe know what he's going on about ? Sep 20 02:36:43 heh, no it means your brilliant! ;) Sep 20 02:36:48 or I am lasy Sep 20 02:36:51 or both Sep 20 02:36:59 I always claim not to be a programmer though Sep 20 02:37:17 heh, I could be wrong about what I think it is though Sep 20 02:37:28 xtreme_ you mean the image is very poor ? Sep 20 02:37:45 I don't like identifying with being a programmer either. Sep 20 02:37:48 extras.get("data") returns thumnail data, due to the limitation os a Intent's bundle Sep 20 02:37:58 StingRay : yes Sep 20 02:38:10 if you want anything bigger better you have to pass a path for it to save to Sep 20 02:38:13 how can I improve the quality? Sep 20 02:38:18 then get that path and load the full image Sep 20 02:38:37 sure this is in the docs as a tutorial …if you look on d.android.com Sep 20 02:39:06 It automatically gets saved in the gallery,so what path do I need? Sep 20 02:39:55 well you would have to query the mediastore content provider for it I think Sep 20 02:40:04 or like I say, just pass in your own path Sep 20 02:40:09 this may be out of the scope of this channel but im going to try as its 4am and im deseperate... My HTC One crashed, upon reboot, it hung. Tried to launch recovery (twrp) and it just shows me splash screen then reboots. Tried reflashing twrp, flashed but still cant get into it. Its like the crash has borked something and it needs clearing down... Sep 20 02:40:27 StingRay : mind giving me a direct link? Sep 20 02:40:33 oh and it doesn't save to the gallery, the gallery scrapes the file to catalog it … the gallery is just an app Sep 20 02:41:11 xtreme_ well get a file uri and add it to the request intent like … intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); Sep 20 02:41:25 then you know exactly where the file will be ;) Sep 20 02:41:49 you dont care about any returned data then, only the OK state to say it completed Sep 20 02:42:23 Okay,let me try it out Sep 20 02:42:39 will get back to you guys soon Sep 20 02:42:46 and thanxx Sep 20 02:42:48 That was a great answer StingRay_, I am going to remember it Sep 20 02:42:56 Piercy not the right channel, this is app dev… but try #android #xda-devs etc Sep 20 02:43:12 thanks :) Sep 20 02:44:55 xtreme_ I was correct, 1st search result in google takes you to official docs and this http://developer.android.com/training/camera/photobasics.html Sep 20 02:45:37 xtreme_: so the picture is blurry as wallpaper because it was scaling a thumbnail instead of the real pic ? Sep 20 02:45:48 shmooz nothing to do with scaling it Sep 20 02:45:58 he was just using the thumbnail Sep 20 02:46:10 oh Sep 20 02:46:33 sorry to be pedantic but scale and pixel binning are 2 diff things ;) Sep 20 02:46:39 <-- artist Sep 20 02:47:14 StingRay : Thanxx a lott :) Sep 20 02:47:19 huh, although it could use scaling to get the thumbnail rather than pixel binning, but that would be silly I think Sep 20 02:48:31 hellloooo Sep 20 02:48:59 helllloooo zeeba neyba Sep 20 02:49:41 if I have somethign like if(rs.next() && !rs.isAfterLast()){..} will it first preform next() then isAFterLast()? Sep 20 02:50:18 ;-) Sep 20 02:50:22 i see waht you did there Sep 20 02:51:09 first clause first yes Sep 20 02:51:39 Tricknology: it will stop being true Sep 20 02:52:05 yee, something i've always thought intuitively but never actually tested to confirm Sep 20 02:52:25 not if !isAfterLast() Sep 20 02:53:30 for && to be true, it requires both sides of it to be true Sep 20 02:53:56 Is it a smart idea to use open source GPL software in your app, if you intend to sell it to a bigger company down the line? Sep 20 02:54:43 i'm im not mistaken.. at least with the Apache License.. you can sell software that has the Commons License in it.. no? Sep 20 02:55:01 if Sep 20 02:56:34 why not just make your own method though pifon? Sep 20 02:56:34 I just open sourced my port of the "Really Slick" live wallpapers - http://goo.gl/Umujgk Sep 20 02:56:59 I believe Open Source means just that. Free to use however, whenever, by whomever Sep 20 02:57:06 but I am for damn sure not a lawyer Sep 20 02:58:10 Can I sell Open Source programs? Even if I haven't written it? Sep 20 02:58:10 Yes, you can. But depending on the license, you probably can't stop your customers from selling it in the same manner as you. See the commercial use for more details. Sep 20 02:58:18 http://opensource.org/faq#selling Sep 20 02:58:25 pifon Sep 20 02:58:38 depends on the license. consuly lawyer **** ENDING LOGGING AT Sat Sep 20 03:00:00 2014