**** BEGIN LOGGING AT Sun May 04 02:59:59 2014 May 04 04:11:08 hi May 04 04:11:55 how hi? May 04 04:12:05 i'm trying to setup AndroidManifest.xml, but somehow the activity name can't be resolved in the specification. I've already defined 'package' in the manifest tag though May 04 04:12:10 does anyone know how this can be fixed? May 04 04:12:24 post your manifest May 04 04:13:58 canvs2321, here it is: http://pastebin.com/hgBQnP15 May 04 04:14:14 it's line 20 that I'm having troubles with May 04 04:15:07 is your package name really com.t.mobile.android? May 04 04:15:57 canvs2321, yes i believe so. in HomeActivity.java, it is specifically so May 04 04:16:10 'package com.t.mobile.android;' May 04 04:16:31 show your error May 04 04:18:15 canvs2321, it's an error in the IDE: "Cannot resolve error HomeActivity" May 04 04:18:56 hello all May 04 04:20:55 show a screenshot then May 04 04:21:17 where is HomeActivity in src? May 04 04:22:43 canvs2321, it's under 'app/src/com/t/mobile/android' May 04 04:24:04 canvs2321, well the IDE just doesn't like '.HomeActivity' May 04 04:25:08 probably have a compile error on home activity May 04 04:27:12 pfn, but this is before compilation. the IDE doesn't like it even before compiling though. May 04 04:27:39 could it be that i've setup the dependencies wrong? May 04 04:28:05 should i have 'app' as the module or 'app/src/com/t/mobile/android' or something else? May 04 04:28:54 show a screen shot of your ide with project files, any other errors? you have any other activities that you can just place instead of .HomeActivity and see if it works? just pretty vague error right now May 04 04:29:26 canvs2321, well almost all activities don't work. May 04 04:32:00 android studio or eclipse? May 04 04:36:15 canvs2321, it's android studio (intellij) May 04 04:36:38 canvs2321, i could take a screenshot, but i'm not sure how useful it is as it complains only about activities May 04 04:36:52 it just start, or has not worked from get go? May 04 04:37:37 http://stackoverflow.com/a/20682308 one thing to try if just started happening May 04 04:39:35 canvs2321, oh i think i've fixed it now May 04 04:40:20 how so May 04 04:40:45 canvs2321, i've just reimported the module from source May 04 04:41:06 canvs2321, and i've imported from one level higher this time May 04 04:41:48 canvs2321, thanks for the help May 04 04:42:08 thats good May 04 06:07:44 Leeds how is your picasso conversion going :P May 04 06:08:34 Leeds, you live in leeds? May 04 06:40:16 g00s: haven't started yet, planning to have a quick go this afternoon May 04 06:40:24 Omnipotent: not any more, but I did... May 04 06:40:48 so you just named yourself after the city :D May 04 06:41:47 sort of... when I started IRCing, back in the late 90s, I was at university in Liverpool, and I used Liverpool as my nick... when I went home in the holidays, I changed to Leeds, and one time the wind changed and it stuck May 04 06:44:48 xD May 04 06:46:59 If someone could take a look at this https://forums.libsdl.org/viewtopic.php?t=10302 it would really help me out, I feel like I'm just chasing my tail May 04 06:50:59 Entelin: don't take it personally, but a) what you're asking is somewhat non-mainstream, and b) you're not asking it at a good time of week... May 04 06:52:38 no i understand that May 04 06:54:26 i dont quite understand what the problem is when the lower end phone hits home and comes back May 04 06:54:59 well thats the thing I personally can't create any kind of issue. May 04 06:55:58 so maybe it's true that on opengl you dont have to worry about redoing the context or reloading textures etc. However other documentation says otherwise May 04 07:08:55 I'm building a sync provider that adds people's PGP keys to their contact info May 04 07:10:03 now I have certain extra information, like "please ignore this key" that I'd like to have backed up with the rest of the contact info May 04 07:11:12 as far as I've understood, the extra info I've added is in fact a separate contact that is just linked with the existing one, isn't it? May 04 07:12:58 or can I append info to the existing account (Google Sync or local)? May 04 07:37:43 hi May 04 07:37:50 can someone help me with this http://stackoverflow.com/questions/23358096/alwaysnever-killed-visible-icon-over-screen-in-android May 04 07:45:17 can some one help me with this: i have lots of official personnel pictures, i want create png from this image that only contain head with no background , most backgrounds are white May 04 07:45:24 i want extract head and face and remove bac May 04 07:45:33 background May 04 07:45:48 where should i ask this, i want do this programic May 04 07:45:56 seems user take pic using mobile and it remove background and return head only with transparent background May 04 07:49:54 Hello, it's an iOS developer here, i want to learn Android, what is the best book? i don't know any java. May 04 07:51:30 octo8: I'd honestly suggest getting to know java first - you don't need any of the GUI stuff, but basics of language and runtime library will help you a lot May 04 07:51:51 after that... dunno if the new editions are good, but iirc Unlocking Android was pretty nice with explanations May 04 07:51:55 p_l: what is the appropriate book for that ? May 04 07:52:07 basic jaa May 04 07:52:09 java May 04 07:52:11 octo8: I'm not apropriate person to ask about book on learning Java, unfortunately May 04 07:52:26 * p_l can't say he used *any* book for that, so.... May 04 07:59:18 Hi, What is the best way to save a Arraylist of custom object in shared preference, please help May 04 08:03:08 Unlocking Android is really, really old May 04 08:03:42 those authors went on to do Android In Action, kinda meh book May 04 08:03:53 octo8 look at big nerd ranch one May 04 08:04:53 meadhikari you are probably better off serializing / deserializing that array list of custom objects to json, using jackson / gson May 04 08:04:55 be sure and pick up a grain of salt as well May 04 08:06:37 g00s, i am trying that, is there a way with converting to bytes and back to objects? May 04 08:07:27 g00s: I liked Unlocking Android because it described Intents, Activities and Services well, which are big stumbling blocks for some May 04 08:07:38 p_l yeah but its like cupcake era May 04 08:07:46 Donut May 04 08:08:49 meadhikari converting bytes back to objects? you serialize your object to json and stuff it in a file May 04 08:09:39 i have custom object of RSS feed, how do i work with it, need some help May 04 08:11:43 i tried using ObjectSerializer but it returns Deserialization error May 04 08:13:02 can someone explain to me what setTag() does in viewHolder pattern? May 04 08:14:59 omid8bimo setTag is for associating some arbitrary blob (in this case the holder) with the convertView. May 04 08:15:36 if the convertView isn't null, then it must have a tag, so its retrieved. the blob is the holder which already has the pointers to the child views May 04 08:19:50 g00s: ok, so what's the purpose of setTag's like "viewHolder.mPicFrame.setTag(position);" outside of convertView if/else? May 04 08:20:30 "position" is one of getView's parameters. May 04 08:20:42 i dont use it much (setTag) May 04 08:22:03 its just for associating some piece of data with a view, for convenience May 04 08:23:15 g00s: so not actually puting any data in the views? May 04 08:23:21 omid8bimo it is May 04 08:23:32 omid8bimo look at the source code :) May 04 08:24:39 g00s: could you please gimme a link regarding source code? May 04 08:26:24 g00s, thanks a lot for the suggestion, went with gson got it working May 04 09:09:11 g00s: shocking easy so far May 04 09:10:37 Leeds … are you still using vim :P May 04 09:10:42 (for android) May 04 09:10:57 duh :) May 04 09:11:03 oh maan May 04 09:22:17 g00s: unless I've missed something, I've pretty much just dropped Picasso into place instead of volley's NetworkImageView, and it's worked immediately May 04 09:22:29 that's the idea May 04 09:27:31 hm, i'm debating whether i should have an option for light / dark theme. the app is designed to be used outdoors, in bright sunlight (light theme) or total darkness (dark theme) May 04 09:27:52 i think setTheme and activity.recreate() should handle most of it May 04 09:28:34 JakeWharton: thanks :) May 04 09:30:50 Leeds on your phone do you find it harder to read dark theme stuff in direct sunlight ? May 04 09:31:27 not keeping up with the kinds of displays in use atm May 04 09:31:34 nope, but I think the screen on my phone is unusually good in bright sunlight May 04 09:31:55 Leeds do you know what type it is? oled, ips, etc May 04 09:32:37 "Super LCD", apparently May 04 09:32:56 well, of course then :) May 04 09:33:04 super oled maybe May 04 09:33:38 no, it's not oled May 04 09:53:36 How could you do something like this: http://i.gyazo.com/67118008b9257cf155584ae622398f8e.png ? Custom spinner? May 04 09:57:12 an adapter with the header entries disabled May 04 10:05:36 hi. can I run the gps in side a Service instead of an Activity? May 04 10:05:48 like a hidden way. May 04 10:06:32 JakeWharton, I don't understand. SpinnerAdapters don't have any headers, or at least I can't see it on the JavaDoc May 04 10:07:35 no but you can disable items in the adapter May 04 10:08:00 return 2 from getViewTypeCount May 04 10:08:17 adjust your getCount() return value to include the header count May 04 10:08:48 put logic in getItemViewType which returns 1 or 2 depending on whether that position is a row or header May 04 10:09:05 query that logic in getDropDownView to bind a row or a header May 04 10:09:23 make isEnabled return getItemViewType(position) == 1 May 04 10:09:53 Oh, nice. Thanks! May 04 10:11:44 I saw a video by Donn Felker yesterday and I'm trying to do all he says, such as version control and continuous integration even if I'm the only dev. I started this project with a Photoshop mockup, now I "just" have to transform it into Android code May 04 10:15:01 I also don't see any reason to use unit testing or dependency injection. Why and where should I use them? May 04 10:19:08 unit testing means you don't have to manually test May 04 10:19:44 it guarantees that you cannot cause a regression in logic May 04 10:20:08 dependency injection is a pattern that you already are using whether you realize it or not May 04 10:20:42 it promotes good abstraction, testability, and class isolation May 04 10:21:14 dependency injection libraries just cut down on tediousness of managing a large number of dependencies May 04 10:21:28 regardless of whether you use one, use the pattern as much as possible May 04 10:21:52 your question is also extremely vague May 04 11:29:05 anyone ever played a bit with reverse engeneering google play client? May 04 12:05:55 hey May 04 12:17:51 hi guys, how do you handle ActivityOnResult for nested fragment? May 04 12:23:17 http://www.plantronics.com/us/product/m100 - this is the hardware which is now connected to Android Smart phone but i cant hear music on it. How to fix it so that Music can be listen by the Bluetooth? May 04 12:24:11 I have tried with Android smartphone, Tablet all same, only phone calls i can use Bluetooth but cant listen music. May 04 12:24:34 IamTrying: Please use #android for general android questions May 04 12:25:01 SimonVT, tried to join #android but it keeps saying: Cannot join #android (You are banned). May 04 12:25:12 Tough luck May 04 12:25:20 This channel is for app development questions May 04 12:26:02 SimonVT, YES - my question is also for App development with Bluetooth once it first work May 04 12:26:10 maybe you need to register with freenode first May 04 12:26:25 i am registered ktwo May 04 12:30:15 If you have app dev questions, feel free to ask them. If you have trouble getting hardware to work with your phone, this is not the channel May 04 12:31:13 play service location provider is too much accureted May 04 12:31:19 SimonVT, here is the follow up chronologically: i have trouble getting the hardware to work with Phone, once that works, then i have dev questions related to bluetooth and mutimedia. May 04 12:32:12 And why they blocked me more then 2/3 years? is it unlimited or there is a limit? Cannot join #android (You are banned). May 04 12:32:37 There should be email no how long i am banned ? how would i know where to contact? May 04 12:33:42 IamTrying: http://freenode.net/faq.shtml May 04 12:33:54 IamTrying: search for... "How do I get unbanned/unquieted in a channel?" May 04 12:34:22 register new nickname May 04 12:34:34 Thank you alexfu May 04 12:34:58 gdrc: bans are usually by IP, so a new nick probably wont help. May 04 12:35:40 *!*IamTrying@*.access.telenet.be su Thu Dec 26 14:19:10 2013 da kornbluth.freenode.net May 04 12:35:41 NO - i do not want to spam gdrc, i am correct person, maybe they misunderstood i want them to unblock my nick from ban else i want to contact Android official contacts for support cause i buy officially all hardwares/run there hardware commercial products and blocking me like this for ages is to me not fair. May 04 12:36:37 just change the username May 04 12:37:11 OK - but then i am still the same person gdrc , its like spamming no? May 04 12:37:49 i'm just suggesting you an hack May 04 12:37:55 do what you want May 04 12:39:49 If you've been banned for 2 years then I'm sure you can just enter with a new name and ask them nicely to unban you. May 04 12:40:12 he'll be quickly banned again... May 04 12:40:29 what for? May 04 12:40:34 coz he's a dick May 04 12:41:02 this isn't his first appearance in this channel May 04 12:42:05 Then he'll be banned again for being a dick, unless he stops being a dick May 04 12:42:26 bankai_au, Taking away water, and then asking "are you alive?" . they ban me i have no email record from them what is the reason, how long it will take and then i am also not allowed to join other room to request for it. May 04 12:42:42 WE ARE OFFTOPIC PLEASE STOP May 04 12:44:13 OK - Thank you i will do that first http://freenode.net/faq.shtml#unban May 04 12:47:44 hey hey May 04 12:47:59 alexfu, i have a list of +o, now i can just MSG them or NOTICE them with request letter? what would be the polite/friendly way to send my request please? May 04 12:48:23 command /msg or /notice only? alexfu May 04 12:49:02 I'm trying to set a theme from a fragment using ContextThemeWrapper, but it has zero effect. It just takes whatever theme is defined in the activity. any thoughts? May 04 12:51:07 IamTrying: can't help you there May 04 12:51:34 OK - no problem thanks a lot May 04 13:03:29 i have a stream of posts in my listview and i used viewHolder pattern; now the problem is, when i scroll down the listview, more & more by loading new posts, the heap size/memory usage of the app increases. why is that? May 04 13:03:52 with several scroll downs suddently memory usage is at 90 MB! May 04 13:07:38 how large is one post? May 04 13:07:43 How many posts are you loading? May 04 13:08:51 like each row has 5 textviews and 2 imageviews (one for profile id and one for posted image which some rows has it, some dont). and so start my offset to fetch is 20 posts May 04 13:09:59 so, 100 textviews and 40 images May 04 13:10:08 that has to be backed by some data May 04 13:10:26 that data lives in memory, and I suppose you don't remove the underlying data once they are no longer on screen May 04 13:11:36 so this memory consumption is normal? May 04 13:12:02 is recycling has any part do it here? May 04 13:12:26 the recycling is only of the View itself. Unless you're also recycling the underlying data, you're going to need a lot of memory May 04 13:12:41 I assume there's some kind of List underlying? May 04 13:14:19 well, i dunno what you mean by List but the listview data is populated via a json returned by server which handled inside adapter May 04 13:16:09 hey, did anyone work with roboguice2? May 04 13:28:07 Have anyone here had trouble working with ContextThemeWrapper? May 04 13:51:04 So a project in Eclipse is different from a project in IntelliJ/AS and I prefer the way Eclipse handles projects but prefer AS/IntelliJ in general. So this leaves me confused in the area of AS. I don't really know how to setup your environment with AS. What is the best way of going at it? May 04 13:51:28 I made some apps, but the env is always bad imo. May 04 13:52:19 dont worry. team merica will save ukraine! May 04 13:52:33 just like they saved iran and iraq May 04 13:52:45 njcomsec, I hope that's a joke. May 04 13:54:20 obviously May 04 13:55:29 related: http://narf-archive.com/pix/205630eadf5d7ddc011fc085d9d4453ab1c0faf9.jpeg May 04 13:57:15 So does anyone know a good article about setting up a project with Gradle support in AS or can give advise? I don't know what the best way is to approach it. Mulitple apps in one project as a module for example? May 04 13:58:20 i think you could do modules May 04 14:05:06 Muchoz, but if you have all your apps in one project this can be nasty when refactoring May 04 14:05:19 mrhanky, that's exactly the problem. May 04 14:05:37 mrhanky, and it's not for clean either. So it's best to go for one project / app? May 04 14:06:29 i think so May 04 14:12:32 Would it be possible to do a realtime physics intensive 2d game for 2 players over internet ir to slow?. I May 04 14:17:16 i think it would be limited......my nexus 5 isnt even that fast at opening webpages May 04 14:19:47 Hello, anybody willing to help me? May 04 14:20:09 When I change the tabs, the app loads the beginning form of the Tab? May 04 14:20:11 How to I save it? May 04 14:21:49 nobody out there? May 04 14:25:31 please? May 04 14:29:16 pastebin your code or something while you wait for someone who can help May 04 14:30:00 http://pastebin.com/R66j608e May 04 14:30:35 there is 1 Button in Fragment 1, if you click on it the Text changes to "whatever", then after you go to Fragment 2 and back, the text isn't "whatever" anymore May 04 14:37:14 please, I am sure there is a simle solution for this. But I don't know what to search for on google May 04 14:39:54 hey, did anyone work with roboguice2? May 04 14:59:04 Hi May 04 14:59:19 Im really confused about how app-designing works.. I would love it if anybody could guide me in the right direction. May 04 14:59:33 I've tried various things, but can't make the app look how I want it to. May 04 14:59:37 Is there some secret to this? May 04 14:59:44 I have some app which keeps data in sqlite db May 04 14:59:55 so far I used sql to handle all queries May 04 15:00:02 supay: super-vague question there... May 04 15:00:17 but I'd like to add some orm library to my project May 04 15:00:46 Leeds: how would I make an app look exactly how I designed it on Photoshop? May 04 15:00:51 Does that make the question better..? May 04 15:00:57 the answer is that you don't May 04 15:01:06 but how to implement this and keep old data in sqlite db? May 04 15:01:44 Leeds: Im not sure I follow.. May 04 15:02:15 supay: trying to reproduce a photoshop image is not a good way to design an app May 04 15:02:34 can You share any url with such example? May 04 15:03:18 Leeds: then how does one design an app? May 04 15:03:37 the app interface needs to be responsive, but it can look like your concept design sure May 04 15:03:46 supay: you start at http://developer.android.com/design/index.html May 04 15:04:16 njcomsec: How would I do that? May 04 15:04:21 it just needs to adapt to different screen sizes and orientations etc May 04 15:04:43 learn how to create layouts in android in xml and java? May 04 15:05:03 I dont understnad exactly where you are getting stuck May 04 15:05:09 supay: what you're asking is pretty much "how do I make an app?" - have you read the docs, have you run through the tutorials? are you working on something which makes sense to have a custom UI, or will you be using the native widgets? May 04 15:05:18 phone, tablet, other UIs? May 04 15:05:31 Leeds: Im talking about making an app like Zomato. May 04 15:05:34 Such beautiful UI May 04 15:05:51 njcomsec: I understand that, and yes Leeds, I have gone through the tutorials on d.android.com May 04 15:06:38 if you have root access, you can try to decompile zomato and see its layout designs May 04 15:06:46 god, don't do that May 04 15:06:56 ananth123: that may not be a good idea. May 04 15:06:57 haha May 04 15:06:59 but this should be the last resort May 04 15:07:09 when you are really desperate :) May 04 15:07:09 it wouldn't give me their exact code, but rather an approximation May 04 15:07:18 the answer is, you get to know how Android UIs work, you learn, you make mistakes, you get better May 04 15:07:23 and reverse engineering is a weird way to learn to develop apps.. May 04 15:07:23 like... pretty much anything May 04 15:07:23 :P May 04 15:07:29 but I still love reverse engineering. May 04 15:07:30 that should give you hints... good enuff for some May 04 15:07:47 Leeds: I have a time-constraint.. Im working on the prototype for my startup! :( May 04 15:07:55 if you're starting from zero, you *don't* start by trying to make a 'beautiful UI' May 04 15:07:55 I understand there are no shortcuts etc May 04 15:08:08 either you're going to learn fast, or pay someone... May 04 15:08:09 Leeds: thats the thing.. im not starting from 0 May 04 15:08:19 the way you're talking, it sounds like you are May 04 15:08:21 I choose to learn fast. May 04 15:08:26 hi May 04 15:08:28 lol May 04 15:08:30 lol May 04 15:09:00 Look, I understand that these questions sound lame and dumb to you guys.. May 04 15:09:11 but cmon. I've gone through the apps. Been there, done that.. May 04 15:09:20 it's not that they're dumb.. it's that you're asking the wrong question May 04 15:09:20 I've messed around with the sample apps as well May 04 15:09:25 hm May 04 15:09:26 anyone can help me with this ? http://stackoverflow.com/questions/22429319/viewpager-bring-current-view-to-top May 04 15:09:32 how would I better phrase this? May 04 15:09:38 Leeds: Do you use Zomato? May 04 15:09:48 no, I do not use Zomato May 04 15:09:50 android-newbie: what exactly is your problem with your current ui ?? May 04 15:09:58 Setting up Jenkins and git for the first time is a nightmare May 04 15:10:00 dang! May 04 15:10:07 ananth123: I suspect "it exists as a photoshop image" May 04 15:10:11 ananth123: Its looks weird. Sizes of elements are bogus. May 04 15:10:18 Can't seem to position them. May 04 15:10:28 And Eclipse sucks, tbh. May 04 15:10:35 use android studio May 04 15:10:42 android-newbie: please tell us you're not an iOS refugee? May 04 15:11:03 Leeds: i'll have to disappoint you here! :P Im on a Mac, and use an IPhone. May 04 15:11:03 android-newbie: have any screenshot ? May 04 15:11:15 fix the code until it works.... thats what programming is May 04 15:11:16 android-newbie: that's not what I asked May 04 15:11:18 Does anyone have any guide or something laying around about Jenkins + Git + IDEA with Android? May 04 15:11:28 ananth123: sure, will upload and link you in some time.. May 04 15:11:30 of the bogus size elements May 04 15:11:45 Leeds: if you're asking whether Im more used to developing iOS apps, no. May 04 15:11:57 what *are* you used to developing then? May 04 15:12:05 Java desktop applications. May 04 15:12:21 oh May 04 15:12:27 Look, i'll be honest here. Im a pentester. Not much experience with Android app dev. May 04 15:12:50 well, yeah - I think we got that May 04 15:13:06 But these darn investors say they would like a basic prototype before investing in my idea. And that does make sense. So I want to create the prototype. May 04 15:13:12 lol May 04 15:14:24 how would ur app be better than zomato, for eg ? May 04 15:14:37 ok, my main advice to you would be to ask more concrete questions - not "how do I design an app?", but "how do I get a textview and an image to share horizontal space 70/30?" May 04 15:14:38 I'm not creating something like zomato! :) May 04 15:14:52 ah ok :) May 04 15:15:16 Leeds: okay. got it. Will delete shit i've got and come back with concrete questions May 04 15:15:26 ananth123: you're from India aren't you? :) May 04 15:15:30 but also, show a screenshot, and code if you can May 04 15:15:34 code/xml May 04 15:16:00 okay, sure! May 04 15:16:01 is android studio any better than eclipse? May 04 15:16:04 your personal opinion? May 04 15:16:23 I don't use either, but I'm... an outlier :) May 04 15:16:33 Okay.. :? May 04 15:16:38 You code on notepad? May 04 15:16:40 vim FTW May 04 15:16:41 :P May 04 15:16:43 :C May 04 15:16:45 WOW May 04 15:16:53 Kudos to you.. May 04 15:19:23 android studio is way better than eclipse May 04 15:20:39 yer i thought it was too May 04 15:20:53 but is android studio ready yet May 04 15:20:57 is it finished May 04 15:21:26 i haven't used it in a long time May 04 15:22:50 nope May 04 15:23:01 its isn't fully ready May 04 15:23:15 its been in beta for quite some time May 04 15:23:42 only since I/O last year, isn't it? May 04 15:23:48 yes May 04 15:24:14 gmail was in beta for 5 years :) May 04 15:24:36 it changes the build system though... uses gradle etc... and uses a lot more mem resources May 04 15:24:45 at least, it feels slower than eclipse on my machine May 04 15:25:17 both are good imo :) May 04 15:36:47 "Document info" in Quickoffice comes in from the right. Is this a normal fragment with a fragment transaction animation, or is this some kind of special fragment or something? May 04 15:43:56 Does anyone have any guide or something laying around about Jenkins + Git + IDEA with Android? May 04 15:46:08 Is there any open source Android app that shows best practices? May 04 15:46:16 So I can look at some really really good high quality code May 04 15:46:30 preferably something that targets later Android versions May 04 15:48:01 smallfoot-: you can find some open source apps at f-driod.org May 04 15:48:20 f-droid.org May 04 15:53:30 I see May 04 15:53:38 anyone known to be modern and high quality? May 04 16:22:05 The feeling of finishing your dissertation. May 04 16:22:31 The feeling of opening your dissertation in the morning and seeing Word say "Cannot open file - unreadable content." May 04 16:22:40 The feeling of the recover button then working... hahahaha May 04 16:23:04 the feeling of knowing you've got a proper backup... May 04 16:23:13 The feeling of having 5. May 04 16:23:21 :-) May 04 16:23:27 and a printout :) May 04 16:23:39 Print out comes next. May 04 16:24:12 my final year project was the last significant thing I did in Word - and the last significant thing I did on Windows May 04 16:24:29 The feeling of having a printout stored in 5 different countries. May 04 16:24:38 1998 May 04 16:24:39 Its pretty much going to be that way with me. May 04 16:24:42 My PhD is on Linux. May 04 16:25:09 sighs.... i still need Word... libreoffice/open office still doesnt match word :( May 04 16:25:10 Leeds: unfortuneately I AM doing significant amounts of work in word in my job. medtech is interesting but it comes with a hefty dose of documentation May 04 16:25:17 Well, not necessarily, but I will be using a piece of software that is only available on Linux. May 04 16:25:50 I should say the project itself was all done on HP/UX May 04 16:25:51 Anthaas: What is your PhD about? May 04 16:25:56 I enjoy using LibreOffice, but agreed, Word, or even the Office package in general, is much more superior. May 04 16:26:20 outinputput: Artificial Intelligence. Preferences in Semantic Web. Reasoning. May 04 16:27:08 I taught a computer to be racist and sexist :) May 04 16:27:21 Hahaha, brilliant. May 04 16:27:23 hehe May 04 16:27:32 So it is not about Linux, you run it on Linux. Anyway, interesting topic. May 04 16:27:37 Our machine learning aspect was an extension of the Angry Birds competition. May 04 16:27:57 outinputput: Yes, exactly. I will be using a piece of software that has only been developed for Linux. May 04 16:41:08 I wish I had time to muck around with AI more May 04 16:41:52 Yeah, its fun. Prolog and ASP are fun languages to use too. May 04 16:42:38 I don't know Scheme well and tried to do my first AI assignment in it, which wasted a week May 04 16:43:14 I wound up doing writing a decision tree learner in Java May 04 16:44:04 Why the heck not. My first AI assignment was defining a problem, and then solving it using PDDL and Prolog. May 04 16:44:22 I found a (at the time) recently open-sourced backprop NN library, which worked as a C pre-processor, ported it to HP/UX, and fed it a training set consisting almost entirely of white males... then I showed it a non-white face and it got all confused May 04 16:44:54 Hahaha ouch. May 04 16:45:09 I've seen Facebooks facial recognition miss a black person but pick up a dog. May 04 16:45:55 actually, the first time I ran the training *I* got a bit confused, defined the set badly, and it identified me with weak confidence as being a formula 1 car... I redefined my training set after that :) May 04 16:48:20 Haha, not entirely sure what that says about your looks ;-) I know the pain in the ass of using a bad training set though. May 04 16:50:53 anyone know how to make the new notification styles always show the action buttons? May 04 16:51:26 Napalm: I was waiting for you to come back! May 04 16:51:44 Napalm: Im almost at the point where I can begin developing! I've just cleared my dissertation off my desk today! May 04 16:52:28 Can anyone help with continous integration, IntelliJ IDEA, git and gradle? May 04 16:52:42 help setting up * May 04 16:57:22 "Document info" in Quickoffice comes in from the right. Is this a normal fragment with a fragment transaction animation, or is this some kind of special fragment or something? May 04 17:08:17 Napalm, I don't think you can force it big size May 04 17:08:37 just figured out a way :D May 04 17:08:57 .setPriority(NotificationCompat.PRIORITY_HIGH) May 04 17:09:12 "The UI may choose to show these items larger, or " May 04 17:09:16 the best i can get May 04 17:09:22 its either that or do custom layout May 04 17:09:27 which is kinda sucky May 04 17:11:37 What are the advantages of @InjectView(R.id.et_name) private EditText etName; over etName = (EditText) findViewById(R.id.et_name); ? May 04 17:12:41 Napalm, I don't think you can force it large with a custom layout in content view May 04 17:13:04 yeah, you can try high priority, but it can get collapsed later May 04 17:13:21 Actually, I need to set that for qicr May 04 17:17:08 autrilla, if you have to ask... May 04 17:17:43 pfn, I do. Is there any other than the @InjectView annotation being more elegant? May 04 17:18:01 nope May 04 17:18:38 Alright then May 04 17:18:45 I should have learned to use and set up git before. May 04 17:18:49 learnt* May 04 17:19:22 * pfn prefers lazy val etName = findView(TR.et_name) May 04 17:19:53 "Document info" in Quickoffice comes in from the right. Is this a normal fragment with a fragment transaction animation, or is this some kind of special fragment or something? May 04 17:20:24 does it matter May 04 17:20:25 Wait, I can do @InjectView(R.id.myView) EditText myView; ? May 04 17:20:33 That is MUCH more elegant. May 04 17:20:39 with dagger May 04 17:20:43 Anthaas: not out of the box May 04 17:20:45 pfn: grr.. your right.. no big view for me May 04 17:20:47 Anthaas, Dagger, Android Annotations... May 04 17:20:48 Ahhh May 04 17:20:56 I saw AndroidAnnotations. May 04 17:21:03 Was literally just looking at that, sounds so cool May 04 17:23:20 It also has some neat annotations such as @Background May 04 17:28:54 Hmm, just thinking would I prefer that or just to stick to conventional java... May 04 17:32:35 I need to look into how to set up a RESTful web service, rather than just posting values to a PHP script and parsing an XML return. May 04 17:37:06 do yourself a favor and use JSON, not XML. XML on android is pain May 04 17:37:22 How so? May 04 17:37:50 You can't use any of the GOOD xml APIs because they make use of javax.xml.* classes, that you can't use on android without majorly modifying the jars that contain them May 04 17:38:12 JSON parsing is also faster May 04 17:38:17 Hmm, ok. What is GSON compared to JSON? May 04 17:38:23 GSON is a JSON parser May 04 17:38:41 I would recommend Jackson, though. May 04 17:39:25 and another advantage of JSON is that it requires less bandwidth in almost all cases May 04 17:40:07 Hmm, interesting. Why Jackson over GSON? May 04 17:42:33 Jackson seems to be catered towards higher performance in comparison. May 04 17:43:01 I guess this would be an ideal time for me to start learning Android Studio and Gradle too. May 04 17:43:04 Exciting times. May 04 17:43:11 I also like the API a lot better. I haven't used GSON in a while, but I think I remember that deserializing into generic types like List wasn't as great as it is in Jackson May 04 17:44:19 gson handles List just fine May 04 17:45:03 Whilst I am listening, can I just point out that I laughed at how sonOfRa said and SimonVT said - its the small things, I guess.... May 04 17:45:38 ^_^ I'm glad it wasn't lost on all May 04 17:45:57 Nice catch May 04 17:47:38 Ah. Generics is good to hear. Another feature that gson didn't have the last time I had to decide between gson and Jackson was support for cyclic references, which can be extremely useful depending on your datastructure May 04 17:48:17 But I'd be glad to hear that gson supports this as well :) May 04 17:49:23 https://lh6.googleusercontent.com/--Bkj963Wp0Y/U2ZqJE01ppI/AAAAAAAAEH8/ZvDZlP2U_Ls/w648-h364-no/2014-05-04 May 04 17:49:38 anyone help me with this ? http://stackoverflow.com/questions/20183030/android-viewpager-how-to-bring-current-page-to-the-top May 04 17:50:40 gson is simpler than Jackson, imo May 04 17:51:12 I wonder how many people use protobufs May 04 17:51:14 Jackson is very easy, pfn May 04 17:51:18 inb4 me! May 04 17:51:25 ? May 04 17:51:41 with this you can generate java class with jackson properties http://www.jsonschema2pojo.org/ May 04 17:51:51 There is no Jake in here. May 04 17:52:16 I don't want to highlight him. May 04 17:52:33 Well.. May 04 17:53:05 You could you know, say his real nick name with some twist. May 04 17:53:07 Chances are you already have notified him though. May 04 17:53:13 ;_; May 04 17:53:29 as in for me, you would, 0mnipotent May 04 17:53:30 :P May 04 17:58:17 Or Lord, or God. Whatever you prefer... May 04 18:01:23 Anyone knows ? ^^ May 04 18:09:05 using retrofit, how can i be sure it uses okhttp? all i did was add a line in build.gradle for okhttp May 04 18:10:09 osxorgate: https://github.com/square/retrofit/blob/f181d1c2b923ed04683bc4b91baf15cdb310a928/retrofit/src/main/java/retrofit/Platform.java#L170-L177 May 04 18:10:19 + https://github.com/square/retrofit/blob/f181d1c2b923ed04683bc4b91baf15cdb310a928/retrofit/src/main/java/retrofit/Platform.java#L76-L80 May 04 18:10:33 It looks on the classpath and uses it, if available. May 04 18:13:23 ok, so i dont need to .setClient(new OkClient()) myself even? May 04 18:13:31 I really need ideas for an app name haha May 04 18:13:35 because that's a retrofit thing, not an okhttp thing May 04 18:14:08 ah yes ok default client May 04 18:14:10 ok thanks May 04 18:19:24 Guys, does anyone use NDK ? App crashes right after start with this error: May 04 18:19:32 libc Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1), thread 29371 (SDLThread) May 04 18:19:49 Can't even figure out what exactly crashes it, which function. May 04 18:20:15 I see this info on LogCat. Any suggestions ? How to see what exactly crashes the app ? May 04 18:21:54 Hi. Do you guys follow the "Guidelines" as "Rules" or some things can be skipped? For eg instead of an ActionBar and Navigation Drawer I want to include a sidebar with icons. Eg: http://media-cache-ak0.pinimg.com/736x/57/54/4a/57544a1d4013a63ebbcccbcae2c35b31.jpg May 04 18:22:38 I use them as guidelines May 04 18:23:11 not as a rule. So you CAN skip things that the website mentions May 04 18:23:50 Is it really necessary to use an ActionBar or Nav Drawer, if providing something else would make it more efficient and faster? May 04 18:25:07 You should strive to follow them so your app at least looks like an android app, but they aren't rules May 04 18:26:07 Did you take a look at the image I linked above? May 04 18:26:24 Yes, it's an iPad app May 04 18:26:29 I aim to implement a sidebar like this but the content is totally different May 04 18:26:51 Ya It is, but this implementation is working good. May 04 18:27:38 "Document info" in Quickoffice comes in from the right. Is this a normal fragment with a fragment transaction animation, or is this some kind of special fragment or something? May 04 18:27:39 My aim is to get the user to click as less as possible while providing content as soon as possible May 04 18:27:44 The one "rule" I believe should be followed is that iOS apps look like iOS apps, Android apps look like Android apps, and Windows Phone apps look like Windows Phone apps. Never should an Android app look like an iOS app. It looks awful. May 04 18:28:55 Thats true but there is a very thin line at some places. May 04 18:30:05 My navigation is almost 2.5 tiers, and using a navDrawer + actionBar combo is making the user click 4 clicks and using the sidebar concept makes it 2-3 clicks May 04 18:32:04 But on your Android app you are catering to Android users. I'd say familiarity is key. May 04 18:32:19 I know how to interact with ActionBars and Nav Drawers. I dont know how to interact with your sidebar. May 04 18:33:34 If a simple screen with ~6 icons at the side are given, it is something like Nav Drawer which is permanently in view. May 04 18:34:44 I can easily say that I got the idea from the "HeadsUp" feature from Cal calendar app. May 04 18:34:55 The sidebar is fine May 04 18:37:30 I'm trying to compile/run a basic google glass app and I'm getting errors from other unrelated android projects. any idea how to fix this? May 04 18:41:04 klyde: if they're unrelated, close them May 04 18:43:13 SimonVT Anthaas see this. a very rough sketch in paint http://i.imgur.com/rXHpEgf.png May 04 18:43:58 On the left are some categories which otherwise I would have to include in either NavDrawer or ActionBar. May 04 18:45:34 If the user switched between them very often, sure. May 04 18:45:55 I find myself rarely using the navigation drawer in apps. Usually, well, when navigating. May 04 18:46:08 But I stick in one category a lot May 04 18:47:24 this is one possibility, but as a content app with ~5 categories, people may switch freqquently May 04 18:48:27 Do usuability test or collect statistics. If they don't switch very often, it's not worth wasting screen estate to a permanent menu. May 04 18:49:08 Thanks for the suggestion. May 04 18:57:41 "Document info" in Quickoffice comes in from the right. Is this a normal fragment with a fragment transaction animation, or is this some kind of special fragment or something? May 04 18:58:25 smallfoot-: Nobody will respond if you keep repeating yourself. May 04 18:58:31 Oh May 04 18:58:48 but someone must know this May 04 18:59:08 It cant be that im the most experienced Android programmer in here, i'm a noob May 04 18:59:08 If they did and they were here, they'd probably have answered you. I don't use QuickOffice so don't know what you are on about. May 04 18:59:20 Nope, but people are also busy. May 04 18:59:34 but you have Quickoffice installed, haven't you? It's on all Nexus devices May 04 18:59:46 Probably, I dont use it though and am also busy at the moment. May 04 19:00:01 ah, I see May 04 19:00:10 smallfoot-: why dont you ask in forums like google groups or stackexchange etc ? May 04 19:00:29 because Stack Exchange would say its a stupid question and close it May 04 19:04:41 I have created a git repo on my server. What should I do on Android Studio to push my project to that repo? May 04 19:08:02 i keep getting this in logcat: error opening trace file: No such file or directory (2) May 04 19:08:11 iv searched google but cant find an answer on what ie means May 04 19:08:14 it* May 04 19:09:03 yeah, my logcat is full of spams, and OpenGL errors May 04 19:11:18 ok May 04 19:12:31 is it no longer necessary to specify the target sdk settings in the manifesl xml? May 04 19:12:41 it seems android studio put it all in build.gradle instead May 04 19:13:07 right May 04 19:19:11 Quick and easy gulli question. Have a splash screen that has my logo in the middle. It fades out in a 2 seconds to a new activity that has the logo at the same spot, but buttons and textviews beneath it (activity 2). What happens in activity 2 though, is that the stuff under the logo pushes it up from the middle. May 04 19:19:18 My code is here: May 04 19:19:19 http://pastebin.com/8pn0RUQG May 04 19:19:47 How can I prevent this from happebning May 04 19:20:05 that is, have the logo still stay in the middle even though I start putting stuff beneath it May 04 19:22:50 from the command line, how do I install an app? May 04 19:23:18 or how do I get a list of apps that are waiting for install? May 04 19:24:00 I am usnig 3cx to deploy... but the end user still needs to accept the install or update... and I want to do it more the command line May 04 19:33:06 what is 3cx? May 04 19:40:09 smallfoot-: http://www.3cx.com May 04 19:40:58 I think I found my answer in their forum... there is no way to install, update or delete an apk with out user user participation May 04 19:41:30 I was looking for a way to manage APK's remotely. I guess there is no option for htis? May 04 19:42:19 Of course not, can you imagine the security risk? May 04 19:42:36 Excuse me whilst I remotely install whatever the hell I want onto your device. May 04 19:43:10 yea... I understand the security issues... but I have seen this capability on military android phones. May 04 19:44:15 and these apk's are for our company only.. they are going out to truck drivers who are not very clever,... it's such a problem to explain to them how to do an update... May 04 19:48:43 maybe the military uses a propriatary version of android with different security May 04 19:49:57 njcomsec: they do... even the phones are different... at least the ones that I saw. bigger, milspec, kind of like small bricks. May 04 19:50:19 but it is android os.. just their flavor of it. May 04 19:52:56 we are talking US military? May 04 19:53:02 yes May 04 19:53:31 what do russians use? May 04 19:53:40 Cup and string. May 04 19:53:52 good reliable old skool tech May 04 19:53:55 smart May 04 19:54:06 if they told you they'd have to kill ya May 04 19:54:16 Or invade a small part of your country. May 04 19:56:00 or cut off your oil&gas nationalize your investments, which is apparently the worst thing to happen to some ;) May 04 19:56:01 I do mostly iPHONE stuff... so forgive stupid question... but I was looking for a multiline textField... with a scroll bar. We have one for iPHONE, but I do not see naything for android. May 04 19:56:13 am I missing something? May 04 19:56:27 p_l: What gets me is how a country with a failing economy can afford to do that...? May 04 19:56:58 IrishGringo: you can do that with a normal textview May 04 19:57:06 by setting number of lines May 04 19:57:21 edittext* May 04 19:57:36 Anthaas: A significant amount of economic metrics are only "real" as long as everyone plays by the same broken bullshit rules May 04 19:57:42 danijoo: yea... I did that... with a label, and no joy. and I tried with edittext, but turned edit off May 04 19:57:54 Anthaas: Russia has everything to *NOT* play by them if they really got determined May 04 19:58:26 in miami, all russians strike me a criminals... scarry people May 04 19:58:30 in your xml you can use android:minLines="5" if you want 5 lines for example May 04 19:58:48 even the hot russian chicks strike me as players. May 04 19:58:56 Anthaas: plus TBH, the "west" had proven to be weak and only looking at "economy" (i.e. their wallets) May 04 19:59:36 danijoo: I have a lot of text... about 500 words, so I need a scroll bar. May 04 20:00:04 I dont think the US are the people that can cripple Russia. I think the ex-Baltic states / Eastern Europe are. Granted the US etc can back them up, but the real actions need to start there. May 04 20:01:28 I was in turkey last year... and the place was crawling with russians... all driving very expensive cars... to go into bars and resturants, there was a full electronic and physical pat down... May 04 20:01:46 and they all looked like gangsters May 04 20:02:39 in Prague, the local's do not even speak russian, and understand english better than russian. May 04 20:04:55 IrishGringo: Because many didn't take learning russian seriously in the past, and younger people probably took up english. May 04 20:05:19 any russians or euros here? May 04 20:05:32 a lot of ukranian and polish speak russian, also lithuanian May 04 20:05:37 not many czech May 04 20:06:10 my bulgarian friends seem to understand russian... but they were kind of shaddy as well May 04 20:06:13 lots of russians in london. all the ones iv met are pretty nice May 04 20:06:30 they are not a shady people, any more than any other nationality May 04 20:06:41 njcomsec: Russian used to be foireign language taught in primary and high school May 04 20:07:38 iv started learning a bit of russian, very basic stuff.... the pronunciation is really difficult for english people May 04 20:07:41 njcomsec: and Lithuania had the misfortune of ending up as part of soviet union May 04 20:08:19 In my manifest I have: and android:configChanges="keyboardHidden|orientation" however as is, an orientation change shuts down the application. I suspect that is because api13 added May 04 20:08:20 er May 04 20:08:33 the screenSize field May 04 20:08:52 I don't mean to generalize. I know lots of nice russians. But I as I said... miami is full of russians, and they all seem to be gangsters... and turkey was rediculous May 04 20:09:15 how do i refer to my inflated fragment view in onActivityCreated ? May 04 20:09:17 so if I try setting target to 10, that fixes that issue, but creates some others on higher api devices, like blank black bars, etc May 04 20:10:16 is there a way to like #if api>12 do stuff #else in the manifest? May 04 20:10:32 there's an api override May 04 20:10:42 and you can always check for the api version May 04 20:10:55 not sure if you can do it in the manifest though May 04 20:31:11 how do i refer to my inflated fragment view in onActivityCreated ? May 04 20:34:29 http://stackoverflow.com/questions/7245758/android-activity-how-to-override-manifests-androidconfigchanges-with-java-cod May 04 20:35:16 so apparently you cannot change the configchanges from java according to that May 04 20:35:45 how do people get around this screensize thing? May 04 20:36:22 i mean every game that targets <=12 has to have faced this, but I'm just not finding anything May 04 20:37:25 if I set the targetapi to 10 May 04 20:38:04 how to make a text view scrollable. I see scrollable options in Android Studio, but not working on phone May 04 20:38:23 the orientation works, however on my 4.4 device I get a black bar May 04 20:47:49 Do you usually start your apps with a Photoshop mockup? May 04 20:48:24 i'll sometimes do things like that, if you think it would help you do it May 04 20:48:37 pen and paper works great as well May 04 20:51:31 David Mitchell's SoapBox is hilarious. May 04 20:52:13 hmm so apparently directives in the manifest are ignored if not understood, so apparently you are supposed to just include screensize regardless. However if I do that ant complains about it being there. Another post I read seems to suggest that you could set your project api target, higher than your min api.... thoughts? May 04 20:53:12 im making an app that makes charts/graphs and will store the chart data in sqlite..... so should the new chart activity class contain the logic only? and act as the controller, and then have seperate classes for the layout and data....... my first thought was to have it be the layout and then get the data from there but this doesnt seem very MVC like? May 04 20:54:06 im not very familiar with design patterns i tend to just hack code together until it works but i want to plan this one better May 04 20:56:53 it seems implementing MVC in android is not the best way of thinking maybe since it alll revolves around activities May 04 20:57:40 So you want the serialisations of your data to be the Models, your view and view logic goes in the activity, and the controller which handles all of your models, and getting from the database, and retrieving values for the View (activity) goes in a controller. May 04 21:01:18 yes that sort of makes sense May 04 21:01:35 so the controller class will be the one which extends the sqlitehelper class? May 04 21:06:07 I am working on an Android project in Eclipse. I moved the directory of the appcompat_v7 folder and re-imported it into Eclipse. Now I am getting an error telling me 'R cannot be resolved to a variable' any ideas? May 04 21:06:25 try cleaning your project May 04 21:07:13 bankai_au: I tried this and it didn't work May 04 21:09:24 delete your gen folder and clea May 04 21:11:12 gdrc: I tried deleting the gen folder for my program and cleaning and that did not work. I then tried deleting the gen folder from appcompat_v7 and it was re-generated automatically. May 04 21:14:47 I was able to fix it by going to Project -> Properties -> Android and adding the appcompat library. Thanks everyone. May 04 21:33:27 when you create text files or sqlite db in android where do the files go> May 04 21:33:34 i would like to create a sqlite db May 04 21:33:38 than see whats in it May 04 21:33:53 If you create an SQLite DB and store it in the app, it goes in the "assets" folder, but will be read only. May 04 21:34:15 If you create the database within the app using SQLiteOpenHandler it will be read and writeable but will need to be created and filled programmatically May 04 21:34:23 db goes to /data/data//databases or something close to that May 04 21:34:27 Anthaas: so you could save it on external storage or internal.. but I should go with internal May 04 21:34:33 and it should be in the assets folder> May 04 21:34:51 Hi. I have a BroadcastReceiver which does some GPS checks perodically. When some conditions are true, I want to increment a counter in my MainActivity May 04 21:34:56 than it goes away when I close the app May 04 21:34:56 assets folder within your project. May 04 21:35:10 How can I do this? Or how can I get the context to the current MainAcitivy from the onReceive() ? May 04 21:35:16 really though - you'd be better of creating it programmatically, possibly within its own thread. May 04 21:38:38 where can i find the source code for an android app that uses text files or sqlite files May 04 21:40:31 Any hints how I can do this ? May 04 21:55:20 im trying to find the source for a db application on android May 04 21:57:09 Howdy! where is the best place to setup a custom alarm? the docs suggest BOOT_COMPLETED, but I am not able to receive that intent since it is broadcasted before the external storage is mounted to the device May 04 22:15:09 ia9371, in the android samples that you can get with the android sdk May 04 22:15:31 ologn how do i get to those agian? May 04 22:19:09 ia9371, run the android sdk manager and download samples for the latest (or whichever) api May 04 22:20:49 if I have a custom graphic that I want to use in my imagebutton, where in my project do I put custom images? May 04 22:21:36 IrishGringo: http://developer.android.com/guide/practices/screens_support.html May 04 22:21:47 ia9371, it has apps like this - http://developer.android.com/samples/BasicSyncAdapter/index.html May 04 22:22:29 thanks May 04 22:23:58 hernantz: should be able to mark your app to make it not be movable to sdcard.. May 04 22:27:08 zinx, ok, and that alarm would not be setup until the next boot, would it? because it is not the boot event i'm interested in, i just want to schedule an alarm only once May 04 22:27:37 hernantz: set it up when your app is run, perhaps :x May 04 22:29:04 zinx, yup, should i store a flag somewhere to know if the alarm is already setup? May 04 22:29:25 why do you need to wait for external storage May 04 22:29:47 and isn't there a broadcast saying that it mounted? May 04 22:31:49 hernantz: if you want it to be set up again when the phone reboots, probably so. May 04 22:31:51 pfn, yes, probably ACTION_EXTERNAL_APPLICATIONS_AVAILABLE May 04 22:32:11 then use that... May 04 22:32:26 and do people really install apps to SD... May 04 22:33:06 I'm getting this error when I try to drop a GridLayout into an activity: RelativeLayoutRule.onDropped() failed: java.lang.NullPointerException May 04 22:34:47 Mike9863; look for a non closed statement May 04 22:35:05 or non initialize one May 04 22:36:09 i read the code samples on androids website May 04 22:36:14 it looks like its written by clowns May 04 22:36:21 cant even get their indentions right May 04 22:37:00 zinx, pfn I decided i will schedule the alarm when the app is run, and set a ALARM_SETUP flag in the db to check later May 04 22:37:41 smallfoot-; not everyone learned clean or solid code May 04 22:38:36 Corey84: I'm not sure what you mean by that May 04 22:39:45 Corey84, I know, but I thought the guys employed at Google would May 04 22:40:12 Its not only that, but Google may have its own in-house standard. May 04 22:40:32 I know that sounds ridiculous, but what I mean is different depts. etc. May 04 22:40:43 nullpointer is a deadend or blackhole its error -ing because it is going 1) nowhere 2) has a non starter point 3) its not aware where to go May 04 22:41:09 Anthaas, on the code I read, it didn't look like they followed any standard. May 04 22:41:14 Also, chances are the people who wrote the Android source code are far better developers than you or I so to say they are clowns is laughable. May 04 22:41:30 I have never had an issue with any of the code I have read. May 04 22:41:34 smallfoot-; you read some of the java intro books lately that is like klingon kindergarten chicken shit May 04 22:45:13 I am now getting a new error message with GridLayout: android.support.v7.widget.GridLayout failed to instantiate. May 04 22:45:20 Anthaas; any good books fo scala May 04 22:45:30 Dont use it. May 04 22:45:32 I dont* May 04 22:45:33 Stack trace: http://pastebin.com/FAR1MYbV May 04 22:46:15 Mike9863: aww buddy ... did you read the first line ? May 04 22:47:35 Yes but I don't really get it. I'm just trying to drag a GridLayout into an Activity May 04 22:51:40 on the gmail app, for the master detail screen, do you think they have one activity and two fragments? how do you think they inject the fragments into the UI, dynamically? May 05 00:17:45 any GLES/GLSL guru's in the house? May 05 00:21:09 anyone here work on apps meant for use outdoors day & night? any advice on whether to add both light & dark color schemes ? May 05 00:22:51 seems like iOS has a built in high contrast mode like os-x which is kinda cool May 05 00:25:12 i dunno, you've already got the back light, what do you hope to achieve by having a light/dark colour scheme ? May 05 00:26:04 i think its easier reading black text on white during the day May 05 00:26:11 my theme atm is light May 05 00:26:34 but during night, i think its hard to read, too bright, even with screen turned all the way down May 05 00:26:40 especiallyfor night adapted vision May 05 00:26:53 sounds like you've answered your own question May 05 00:26:58 just wondering if anyone else, maybe who has done GPS / map style app has thought this through May 05 00:27:22 bankai_au its gonna be a lot of work :| want to make sure its worth it May 05 00:27:41 If you've found it hard to read at night, chances are other people have too. May 05 00:28:06 well, then i guess the other part is, should i just go dark theme. May 05 00:28:25 i find it harder to read in daylight, but if the fonts are cranked up enough, it seems doable May 05 00:29:04 this is when i wish i could get a hold of some users :( May 05 00:31:32 i'll do it and measure with analytics May 05 00:36:30 kinda funny seeing the Honeycomb gallery sample in 'legacy" :) May 05 00:37:11 bankai_au what are you up to? May 05 00:38:12 iOSing, can't wait to finish this project and move back to android/java ;) May 05 00:38:27 heh May 05 00:39:01 next project is rxjava, robovm, dagger May 05 00:40:46 robovm hmmm May 05 00:45:20 http://www.fiercedeveloper.com/story/report-60-app-users-who-dont-come-back-within-week-never-will/2014-04-28 May 05 01:04:51 sounds about right May 05 01:49:10 in attrs.xml , iosched has but I don't see BaseTheme anywhere else (like themes.xml) … is there something magical going on here, or maybe they just forgot to delete it ? May 05 02:01:24 iirc BaseTheme is built into android, tho I have seen it redefined, I am a bit vague on that to be honest. May 05 02:01:43 in AS, I am getting "Error: Execution failed for task ':MyApp:preBuild'. > Build Tools Revision 19.0.0+ is required." How do I fix? May 05 02:02:20 Hmm never mind. May 05 02:02:29 I was certain I updated this several times already... May 05 02:02:41 g00s: any good with GLSL? May 05 02:03:10 Napalm not at all May 05 02:03:16 :'( May 05 02:03:25 http://pastebin.com/ya7eFmTD May 05 02:03:28 why doesn't it work May 05 02:03:32 it makes no sense May 05 02:03:40 * Napalm cries inside May 05 02:04:59 Whats the error? May 05 02:05:06 Carbonflux hmm, didn't find BaseTheme anywhere May 05 02:05:16 The only think I don't understand is where samplerExternalOES is coming from May 05 02:05:27 thing* May 05 02:05:53 g00s, I think its built into android, but I admit I am half guessing. May 05 02:06:06 I have an image... its kind of big for the android device. Is there a way I can automatically make it resize to something proportional with the screen? May 05 02:06:33 Carbonflux: its an external texture target in graphics memory that is memorymapped to the SoC and can be used for video decoding amongst other things May 05 02:07:15 Napalm, what do you mean by does not work? is it erroring on get uniformlocation or just not working? May 05 02:07:47 Right, I definitely have Build Tools > 19.0.0 installed, but Im getting the same message May 05 02:07:49 g00s: whats the problem with a styleable called BaseTheme it doess'nt mean it requires a theme May 05 02:07:50 Heh, debugging shaders is a PITA May 05 02:07:50 in AS, I am getting "Error: Execution failed for task ':MyApp:preBuild'. > Build Tools Revision 19.0.0+ is required." How do I fix? May 05 02:08:10 Carbonflux: you said it May 05 02:08:24 Carbonflux: its more to do with the fact it compiles fine, but just doesnt run May 05 02:08:41 its all about the Out-of-order execution path or some nonsense May 05 02:09:26 Napalm, my only advice is "old style" commenting things out until it does work and then bringing them back in one at a time to isolate the problem May 05 02:09:41 i know what it is May 05 02:09:48 they are not that complex May 05 02:10:02 its just how the fff do you simply swap out one texture for another May 05 02:10:25 i think im going to have to go and load 2 more shaders and a program just to draw a different texture May 05 02:10:29 which is crazy May 05 02:10:35 you need to give them different IDs May 05 02:10:58 i have some buttons that are added programmatically to a gridView. I'd like for the buttons to be placed in two columns, and fill the vertical space. Can someone point me in the right direction for stretching the buttons to fill up the space? May 05 02:10:59 and set the ID etc May 05 02:11:07 in relation to the loading flag May 05 02:13:10 Carbonflux: its not that, take a look at the shaders.. swap the lines that choose from each texture.. they both work.. its just when you try to combine them and simply execute a different piece of code based on a boolean it fails to execute May 05 02:13:46 Does anyone know why I am getting "Error: Execution failed for task ':MyApp:preBuild'. > Build Tools Revision 19.0.0+ is required." I checked the SDK manager and I have Build Tools 19.0.3 installed. This is in Android Studio. May 05 02:14:33 Napalm in the dev settings there is an option to destroy activities immediately, is there any way to get that behavior on a regular phone ? for example, if someone changes the theme for the app, i would need to do recreate() on all the activities on the backstack; wondering the best way to do that May 05 02:14:59 Anthaas: check AS settings you probably have to add that version of the API or its a Java7 thing May 05 02:15:23 g00s: interesting May 05 02:15:31 Thanks, where abouts am I looking in Settings? May 05 02:15:37 Sorry, Im completely new to AS haha May 05 02:15:38 g00s: well you can to a clear and reset of the task May 05 02:16:01 Anthaas: i can't remember myself. you'll have to go look May 05 02:16:09 Ok cheers May 05 02:17:25 I can't see what you are doing on the host side so I am not sure, you need to give those locations different texture IDs tho is all I am saying :) May 05 02:17:51 ie... May 05 02:17:52 int mSamplerLoc = GLES20.glGetUniformLocation (mProgram, "sTexture" ); May 05 02:17:52 May 05 02:17:53 GLES20.glUniform1i ( mSamplerLoc, 0 ); May 05 02:18:04 where 0 is the ID in this case May 05 02:18:19 yes thats not the problem May 05 02:18:22 its rendering them fine May 05 02:18:25 thats after doing all the other stuff, allocating ID's and setting the textures etc. May 05 02:18:26 Ahh my build.gradle file was off May 05 02:18:27 its the shader May 05 02:18:35 I don't understand your error then Napalm May 05 02:18:44 did you see the pastebin? May 05 02:18:49 yes May 05 02:19:00 http://pastebin.com/ya7eFmTD May 05 02:19:07 I am looking at it right now and it seems like the old reason that would not work is the IDs are wrong May 05 02:19:08 gl_FragColor = texture2D(sTexVideo, vTexCoord); // works fine May 05 02:19:13 only* May 05 02:19:14 gl_FragColor = texture2D(sTexLoading, vTexCoord); // works fine May 05 02:19:39 if(uTextLoading){ gl_FragColor = texture2D(sTexLoading, vTexCoord); }else{ gl_FragColor = texture2D(sTexVideo, vTexCoord); } // does not May 05 02:19:53 Yes yes, I saw all that May 05 02:20:11 the error is outside the shader then May 05 02:20:19 what? May 05 02:20:21 in how you are setting those IDs May 05 02:20:27 Napalm hmm, but that would mess up history / back behavior right ? May 05 02:20:31 you have to set those IDs. May 05 02:20:52 Carbonflux: how'd you figure its outside the shader... when i just said.. it all works independently May 05 02:21:10 I guess I don't understand what the problem is May 05 02:21:12 g00s: it would land you at the initial activity of the task. May 05 02:21:19 you say it does not work and it does work. May 05 02:21:43 Carbonflux: if you try to add the two things together with an "IF" statement May 05 02:21:45 it stops works May 05 02:21:48 working May 05 02:21:53 which as i said.. is CRAZY! May 05 02:21:55 :D May 05 02:21:57 so there is an ID conflict May 05 02:22:01 no May 05 02:22:07 they are different samplers May 05 02:22:14 are you giving them different IDs? May 05 02:22:21 arg May 05 02:22:24 yes May 05 02:22:28 or are they both set to zero? May 05 02:23:09 anyway, sorry if I am not being helpful, I don't think I understand the issue :) May 05 02:23:33 its probably me.. its just highly stressing me out May 05 02:24:29 I can understand that May 05 02:25:16 if it was me with this issue, I would look outside the shader and review how I was allocating and setting the texture IDs is all I mean :) May 05 02:25:22 Carbonflux: right, just checked.. one is a OES anyway.. so it doesnt have an id May 05 02:25:34 or do you mean the textName? May 05 02:25:37 texName May 05 02:25:45 thank god I never do anything with gl May 05 02:25:50 heh May 05 02:25:54 hey pfn May 05 02:25:56 it seems so much the opposite of fun May 05 02:25:57 save me please :D May 05 02:26:04 opengl ES even more so May 05 02:26:04 it started off as fun May 05 02:26:17 now i want to scratch my eyes out May 05 02:26:22 sorry kimosabe, no can do May 05 02:26:31 ;'( May 05 02:26:40 I don't know anything about OES so that might be my issue May 05 02:26:41 Napalm i think you are right though, i will just nuke the task stack May 05 02:26:47 thats easiest :) May 05 02:27:13 g00s: you can then easily restart the last activity or whatever you need to do May 05 02:27:15 just direct the user to restart the app on theme switch May 05 02:27:33 normally if you were doing something like that you would allocate 2 ID, set the IDs, load the bitmaps, and then set them again during render frame based on the boolean May 05 02:27:45 so you would not need to conditional in the shader etc May 05 02:27:49 g00s: when you disable components theres an option to force the app to restart i think May 05 02:27:56 or, in your case, notify that it is getting nuked May 05 02:28:01 g00s: you could try and play that trick May 05 02:28:12 Napalm disable components ? May 05 02:28:45 yes i need a mushroom cloud splash screen to go with this May 05 02:28:57 Carbonflux: correct. but there are both not GL_TEXTURE_2D. one is GL_TEXTURE_EXTERNAL_OES which is a completely different sampler May 05 02:29:20 Carbonflux: i think 2 shaders is the only way to go May 05 02:29:25 meh, it could be worse May 05 02:29:36 hmm.. can i choose an active shader May 05 02:29:39 that might work May 05 02:29:44 2 diffefent fragment shaders May 05 02:29:46 hmmmmmmmm May 05 02:30:09 Napalm, so you would reload the shader based on the bool? May 05 02:30:21 if they are precompiled it should be fairly quick May 05 02:30:27 yea, they are ofc May 05 02:30:38 g00s: you know using the PackageManager May 05 02:30:46 so just two different program IDs. May 05 02:32:39 guys' btw, have you seen the amount of awesome rendering code just happens to be stuck in the android repo... https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/tests/Camera2Tests/SmartCamera May 05 02:32:54 some how its squeezed in there May 05 02:33:02 https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw May 05 02:33:05 check it out May 05 02:33:09 awesomeness May 05 02:33:24 thanks :) May 05 02:33:56 really well written all GL'goodness May 05 02:34:07 are they 2.0? May 05 02:34:15 yes May 05 02:34:22 its like plug and play May 05 02:34:30 although i can use them on this project May 05 02:34:42 i might look at the license on that code for another project May 05 02:34:46 nice, most of the sample that come with ADT are fixed function pipeline May 05 02:35:40 yea, this is mega awesome May 05 02:35:42 read the README May 05 02:35:56 he does image processing to detect "nice pictures" from the camera May 05 02:36:00 its an interesting idea May 05 02:37:20 hm, agreed, though the assumption is there is no general case for that its nice to see someone try ;) May 05 02:38:12 I have no idea why my computer is so bloody slow with Android Studio - Eclipse is just fine... May 05 02:39:13 Anthaas yeah, my 2009 MBP is much slower with AS May 05 02:39:32 2009 MBP? May 05 02:39:34 couple of reasons - it takes more memory, gradle is slow May 05 02:39:40 mackbook May 05 02:39:54 its an old computer so its very noticeable when things are bloated May 05 02:39:54 Ahh cheers, no way to speed it up a tad? May 05 02:39:58 no May 05 02:40:06 Mines old, but not that old, still quite well speced. May 05 02:40:11 I say old, Im talking 2 years old max. May 05 02:40:18 oh heh thats new May 05 02:41:22 Hmm to be honest there is a load of crap I could do with cleaning off of it. I think I just found out what Im doing tomorrow haha May 05 02:41:23 No ssd? May 05 02:41:35 No SSD on this machine. May 05 02:41:56 Napalm, have you ever run into any source code for the Google+ app in your travels? There are some annoying bugs in it I would like to fix. May 05 02:42:30 I can't seem to find the source even tho the license claims it is OS. May 05 02:45:47 Google+ app is Open Source? May 05 02:45:54 f.. off May 05 02:45:54 lol May 05 02:46:13 Carbonflux: in answer to your Question....... . . . . nope May 05 02:46:19 heh, thanks :) May 05 02:46:44 It keeps jumping to the top of the stream, almost at random May 05 02:46:58 I think there is some problem with the touch to see new posts "feature." May 05 02:47:00 Napalm whats google+ :P May 05 02:47:06 haha May 05 02:47:23 I like to post my photos there May 05 02:47:39 i never saw / used the last iosched app because they required google+ May 05 02:47:50 g00s: think of it as irc- May 05 02:47:55 lol May 05 02:48:09 they went in the direction of trying to integrate it with everything, they might be reversing that now tho May 05 02:48:16 there was a change in leadership May 05 02:48:24 yeah, he lft :P May 05 02:48:27 *left May 05 02:48:30 also they have been moving people around May 05 02:48:39 to be honest.. i like google single sign-on May 05 02:48:40 so you think it was his choice? May 05 02:48:52 ya May 05 02:48:55 honestly don't know. vic was pretty savvy May 05 02:49:25 I think G+ is some kind of social experiment to be honest May 05 02:49:36 not a real social networking platform May 05 02:49:42 ok guys.. coding challenge May 05 02:49:43 but a place for them to play with people May 05 02:49:56 i think they are changing their thinking from platform -> feature of all services May 05 02:50:17 hm, interesting. May 05 02:50:49 of course, i still don't care what my friends browsed when we search for the same things May 05 02:51:56 http://pastebin.com/r6vU53Nh how to make this shorter May 05 02:51:59 and none of these companies really understand social psychology / group dynamics; even though people have been posting updates on the wall for millennia May 05 02:52:00 and simplar May 05 02:52:03 simple May 05 02:52:04 lol May 05 02:52:40 Eyes are stinging like mad haha May 05 02:52:52 Zoomed right in on a graphic touching it up haha May 05 02:53:03 tea time May 05 02:54:25 I think you could get the heights and widths only in onSurfaceChanged or something May 05 02:54:43 move them out of the function body etc May 05 02:58:38 doesnt really help.. at the moment its like this because it has to be.. to resolve a race condition with a service binding May 05 02:58:42 lucky me May 05 02:59:14 I don't see how you could make it smaller then. Does it need to be smaller? May 05 02:59:59 no, but it feels overly complex. there must be a better way to calculate this crao **** ENDING LOGGING AT Mon May 05 03:00:00 2014