**** BEGIN LOGGING AT Wed Dec 25 02:59:59 2013 Dec 25 03:21:34 ugh, i have xmas tree syndrome Dec 25 03:22:04 Is it possible to read directions from Google Navigation? I want to read the direction arrows (and possibly directions) Dec 25 03:22:15 *with the streets and stuff Dec 25 04:28:07 jni/file.c:7:35: fatal error: android/asset_manager.h: No such file or directory <--- dafq? Dec 25 04:48:30 can anyone tell me why i cannot ndk-build due to file not found? Dec 25 04:48:56 because it can't find Dec 25 04:49:04 no shit fuckhead Dec 25 04:49:22 if you have a fucking answer that is helpful go ahead knoc yourself out Dec 25 04:49:23 fuck Dec 25 04:49:33 can anyone tell me WHY? Dec 25 04:49:40 what is up with the potty mouth Dec 25 04:49:42 i already fucking know whayt Dec 25 04:49:43 what Dec 25 04:49:57 shmooz, im getting pissed off with smart ass bullshit answers Dec 25 04:50:16 "why cant it find this file" answer "because it cant find the file" Dec 25 04:50:25 doesnt FUCKING help anyone Dec 25 04:51:11 fatal error: android/asset_managefatal error: android/asset_manager_jni.h: No such file or directoryr_jni.h: No such file or directory Dec 25 04:51:49 err that paste got screwed up Dec 25 04:51:57 fatal error: android/asset_manager_jni.h: No such file or directory Dec 25 04:52:16 and with androiud/asset_manager.h Dec 25 04:59:40 includes just fine. does not Dec 25 04:59:43 wtf over? Dec 25 05:11:34 how do i tell ndk-build which platform im building against Dec 25 05:21:31 can anyone tell me why ^c and ^v and ^f suddenly STOP working in intellij idea. ive see this happen when capslock is enabled but capslock is not enabled right now Dec 25 05:48:30 internet connected .... egg minder ??? Oh my dear lord Dec 25 05:48:31 http://www.amazon.com/Quirky-Eggminder-Internet-Connected-Tray/dp/B00GN92KQ4 Dec 25 05:52:32 capella i'm sure teh NSA guys are right on it Dec 25 05:52:44 storing egg metadata Dec 25 05:54:44 everyone that shared the same carton as the egg they suspect, and anyone packed in the same box Dec 25 05:55:26 you're bad! and you! and you! and you and you and Dec 25 06:13:32 capella FF 26 on mac has been beach balling on me a lot Dec 25 06:17:19 can anyone show me any example code for reading assets from C using the NDK? i have found many such examples but 58258724 lines of uncommented, unexplained TLDR C code does not tell me how to go about doing it Dec 25 06:18:01 i dont want to have to copy the assets out to /data but need to be able to seek into and read different files Dec 25 06:18:11 58258724 is a lot of lines Dec 25 06:18:13 g00s: haven't heard ... like when doing what? Dec 25 06:18:35 capella nothing at all, working in another app and then switching to FF, can beachball for like 30 seconds Dec 25 06:18:41 not low on ram Dec 25 06:18:41 and the ndk examples are UTTERLY freeking useless for anyone other than ubber "i already know this" gurus who just need a reminder Dec 25 06:18:42 Mavrik: yo Dec 25 06:18:50 Mavrik: turns out it was this http://stackoverflow.com/questions/19235477/google-glass-preview-image-scrambled-with-new-xe10-release Dec 25 06:19:29 i need to be able to open a specified file and KEEP it open but seek/read that file on demand Dec 25 06:20:22 and every example ive seen to do this is eithr incomplete or expects you to load the file into memory first Dec 25 06:22:45 I440r there are a few books on NDK Dec 25 06:23:13 im unemployed Dec 25 06:23:16 i have no money Dec 25 06:23:38 heh - relates ;) Dec 25 06:24:01 I depend on my winning personality Dec 25 06:24:44 love the way google gives you 2o47865654864259 lines of example C code to show you one iddy biddy android concept thus TOTALLY FUCKING BURYING the entire fucking useful part of the example in totally unrealted shit Dec 25 06:25:08 way to totally obfuscate everything Dec 25 06:25:12 g00s: I asked the one mac user I know at moco and he's not heard of beachballing issues Dec 25 06:25:16 I440r also, you're dealing with JNI - which is kinda icky Dec 25 06:25:30 capella huh :( thanks for asking :) Dec 25 06:25:43 g00s i have no choice because google has fucked me over for executing any native binaries from my apk Dec 25 06:25:47 "killed" instantly Dec 25 06:26:03 I440r i think thats for security reasons Dec 25 06:26:11 riiiight Dec 25 06:26:30 can you run-as ? Dec 25 06:26:37 no Dec 25 06:26:40 killed. Dec 25 06:26:48 yeah, all hope is lost then Dec 25 06:27:24 and google has a fucking example of "how to run native binaries from your java" Dec 25 06:27:30 I440r so, i dont tknow anything about forth, but have you considered investigating the patterns and techniques various lua project use to embed - even on android ? Dec 25 06:27:53 since lua is almost always embedded from what i gather Dec 25 06:28:11 g00s no. Dec 25 06:28:24 g00s lua does not append the code it compiles ONTO ITSELF Dec 25 06:28:30 Why is it the Amazon Android emulator loads in seconds, but the one included with Android Dev takes 5+ minutes? Dec 25 06:28:30 big money day tomorrow Dec 25 06:28:32 hopefully Dec 25 06:28:33 it compiles it into a totally separate buffer Dec 25 06:28:49 g00s: v26 is general release, you can get beta and even aurora I think download or go bleeding edge with our nightly :) Dec 25 06:29:03 Merry Christmas everyone...and it probably will be a merry Christmas as millions get tablets as gifts and download our apps Dec 25 06:29:17 Ologn iPads ? :) Dec 25 06:29:38 g00s: well I'm doing the C++ OpenGL ES thing now, so I'm down with that Dec 25 06:29:55 :D Dec 25 06:30:10 capella thanks, haven't been brave enough to try betas Dec 25 06:30:29 does anyone here use intellij idea community? Dec 25 06:30:38 what what what ?? Yah I run nighlty, keep a local repo with my favorite personal hacks :D Dec 25 06:30:42 my control key has stopped working inside intellij idea Dec 25 06:30:50 i cant ^c ^v cut/paste Dec 25 06:30:55 but i can use the menus to do it... Dec 25 06:30:59 I440r here is an idea, have you considered writing your forth thing as a jvm friendly interpreter :) Dec 25 06:30:59 i also cannot ^f to search Dec 25 06:31:14 g00s no. its NOT an interpreter Dec 25 06:31:17 its a COMPILER Dec 25 06:31:23 i know its not a compiler Dec 25 06:31:27 uh, interpreter Dec 25 06:31:28 I actually use Emacs to develop Android, but to each his own... Dec 25 06:31:31 compilers are boring Dec 25 06:31:40 write an interpreter with good JIT Dec 25 06:32:04 Ologn really? thats awesome ! Dec 25 06:32:11 I remember the early days of Java app servers, when they were slow as hell Dec 25 06:32:12 Ologn what java tools are you using ? Dec 25 06:32:21 [forth kernel][forth extensions][forth application code] <--- this is the forth process space. the kernel compiles the extensions and EXTENDS itself with them. the extended kernel compiles the application and EXTENDS itself with the applicaiton space Dec 25 06:32:23 for emacs Dec 25 06:32:28 g00s, for Emacs? I use JDE. Dec 25 06:32:33 hm Dec 25 06:32:40 i.e. the forth executables application space needs to be readable, writable and executable Dec 25 06:33:00 so i need to be able to write new code onto the end of the forth compiler application and EXECUTE it Dec 25 06:33:03 not allowed Dec 25 06:33:06 Control-C Control-V Control-Z actually auto-imports stuff like the TextView imports Dec 25 06:33:25 the control key has totally stopped working within intellij idea Dec 25 06:33:25 If you point to the API jar for the Android version # Dec 25 06:33:31 it works perfectly everywhere else Dec 25 06:33:44 I can probably hack it some more so it works even better if I had time Dec 25 06:33:59 Ologn i should try it; kjeldahl uses emacs for android dev. AS builds are SO FUCKING SLOW (30s - 2 min) Dec 25 06:34:05 google has stopped blocking your app, and now they're blocking your IDE ... ? First they remove the ^C ^V ^Z, next you lose the file save operation XD Dec 25 06:35:26 Yaa I never launch AS or Eclipse. It is all emacs or command line (ant, android, monitor/ddms etc.) for me now. Dec 25 06:36:06 why does reading files in assets have to be so fucking difficult to find examples for grrrr Dec 25 06:36:21 Although if you bulk up on Emacs scripts like JDE too much even that can get slow, but still way faster than Eclipse or AS Dec 25 06:39:18 this is actually kind of cool https://gnunet.org/gnunet0-10-0 Dec 25 06:39:51 Hi again Dec 25 06:39:57 I440r sorry man, i bet there is a way - but thats where i look at a platform and decide whats the best fit. maybe WP or iOS would be easier. on ubuntu touch Dec 25 06:40:10 *or Dec 25 06:40:39 Can anyone tell me why I would set my onClick event in the UI designer over using implements onClickListener? Dec 25 06:40:43 i know theres a way, ive seen example code thats soooooo freeeking complicated and has gobs and gobs and GOBS of CRAP in there that obfuscates the process and makes the example utterly fucking useless to me Dec 25 06:40:52 gnunet seems like its become more than p2p files; its become a few services like DNS and chat. coool Dec 25 06:41:05 i dont want a "ill take his code" answer, i want to understand how to create what i need myself from scratch Dec 25 06:41:12 i never use other peoples code, it always sucks Dec 25 06:41:35 I440r i think you live a painful existence Dec 25 06:41:40 did you write emerge ? Dec 25 06:41:43 dont fuckinguse it ! Dec 25 06:41:46 only because of C/javal Dec 25 06:42:01 im not CODING ebuilds Dec 25 06:46:13 time for some kale; gotta cancel out all the xmas cookies Dec 25 06:47:07 Ologn kinda bummed there is still no good decent up to date book on emacs as a tutorial; i could never really get into the fsf docs Dec 25 06:48:23 the only books i see on the ndk are a beginners guide (which is going to be sans 99% of what i would want to know) and one thats specific to c++ which is about as useful to me as one that specific to visual basic Dec 25 06:48:58 g00s, well I'm not a wizard like some people are. It's very extensible so people keep inventing new things for it, I'm sure there are a ton of cool things I could be doing I don't even know of. Dec 25 06:49:13 I440r time to write a book on porting froth to android with ndk; gotta cover the whole spectrum :) Dec 25 06:49:19 *forth Dec 25 06:49:32 It's one of the reasons docs are hard - it's a patchwork of people' Dec 25 06:49:44 s personal elisp scripts etc. Dec 25 06:50:03 yea Dec 25 06:50:32 I440r what you're trying to do is pretty different; you gotta go into it expecting to blaze a trail :) Dec 25 06:51:18 One of the most useful things for me is Control-X 1/2/3 . You edit a script, hit control x - 2, the screen splits, you stay in the code in the left hand window and move to another method in the right window, finish that up, control x 1 and back to one window again Dec 25 06:51:34 yea nobody uses the ndk Dec 25 06:51:35 Plus the Java JDE functions if you load those scripts Dec 25 06:51:40 I use the ndk Dec 25 06:51:42 ive abandoned forth for android Dec 25 06:51:52 its been fucked up the ass by goole Dec 25 06:52:30 I might take a stab at porting OpenGL C++ apps to Android Dec 25 06:52:46 I'll have to see how it goes...if people rely on GLUT and GLU or whatever Dec 25 06:54:07 Ologn if eclipse could run headless with a low memory footprint i'd try the eclim for emacs Dec 25 06:54:24 my machine is constantly running out of memory (old mbp) Dec 25 06:55:39 g00s just use sublime text with the android plugin and rm -rf eclipse Dec 25 06:55:42 you wont regret it Dec 25 06:55:57 sublime has an android plugin? Dec 25 06:56:26 yes Dec 25 07:07:41 Can anyone tell me why I would set my onClick event in the UI designer over using implements onClickListener? Dec 25 07:15:52 this is just fucking creepy. i hope it dies in a fire http://www.slashgear.com/google-glass-real-time-facial-recognition-arrives-with-nametag-19309472/ Dec 25 07:30:10 hi Dec 25 07:31:34 anyone from malaysia? Dec 25 07:31:38 or Iran? Dec 25 07:43:46 SouthPark .... bigger, longer, uncut ... I never get tired !! :D Dec 25 07:44:31 huh? Dec 25 07:44:36 Amirh: My girlfriend is from Iran Dec 25 07:45:09 good for you hwrd|work Dec 25 07:45:11 Needless to say, I haven't met her parents Dec 25 07:45:17 Amirh: Probably not so good for me haha Dec 25 07:45:53 I mostly look to find my future coworkers Dec 25 07:47:52 hwrd|work: you're focused on android development? Dec 25 07:48:03 Amirh: Yes, that would be correct. Dec 25 08:12:20 how can i get returned String output of a method in class B inside class A? Dec 25 08:13:03 classA.classB.getString? Dec 25 08:13:54 omid8bimo: are you iranian? Dec 25 08:14:52 Amirh: yeah Dec 25 08:15:33 omid8bimo: tehran? Dec 25 08:16:20 Amirh: yup Dec 25 08:17:28 omid8bimo: sorry If I ask, you code android for fun? or you have an android job? Dec 25 08:18:05 Amirh: msg! Dec 25 08:27:21 guys, I am implemeting SSL in my app Dec 25 08:27:51 I am shipping a BKS file with my app inside the raw folder. Dec 25 08:28:12 my question is, if someone got the apk and took the BKS file, can he decrypt the https content ? Dec 25 08:34:15 tonySoprano9099 i'm new to ssl but recommend reading the papers at android-ssl.org Dec 25 08:34:28 there are 2, in a specific order Dec 25 08:35:09 ok g00s lemme head there Dec 25 08:35:33 thnx Dec 25 08:38:08 tonySoprano9099 another good read is "The Most Dangerous Code in the World: Validating SSL Certificates in Non-Browser Software" Dec 25 08:40:00 g00s, okay. have u ever worked with ssl on android b4 ? Dec 25 08:40:26 tonySoprano9099 just starting. i am using spongy castle and reading about TLS (and how not to mess up) Dec 25 08:47:16 g00s, i did some research about it the last day and I am now using self signed BKS in my app Dec 25 08:47:25 my only concern is the question I asked above.. Dec 25 08:47:32 and seems I cant get an answer on the web.. Dec 25 08:47:49 I guess being christmas isnt helping either, as all is asleep Dec 25 08:48:47 tonySoprano9099 does this help ? http://stackoverflow.com/questions/14034508/dh-vs-dhe-and-ecdhe-and-perfect-forward-secrecy Dec 25 08:55:52 nice blurb Dec 25 09:01:25 It sounds stupid, but I could not find a description how to actually implement a really simple thing , I have x number of fragments (let's say 3) which is basically a big form, how to build a page like switching between the fragments? Dec 25 09:03:02 heh, i was faced with the same scenario the other day; i decided it was easiest to put them all in one activity ;) Dec 25 09:05:29 vmusr use ationbar tabs Dec 25 09:05:43 capella any experiance with ssl ? Dec 25 09:05:47 g00s, it will be ugly long to scroll Dec 25 09:06:16 no experience there yet ... haven't had a need :) Dec 25 09:06:45 vmusr when the user submits the form, how do you show validation errors on fragments not the current ? Dec 25 09:06:49 I just overview the security related stuff and the lower level network calls Dec 25 09:07:03 more an applications kinda guy Dec 25 09:08:29 g00s, it's user input on fixed controls, so there isn't any validation on his input Dec 25 09:09:32 tonySoprano9099, nice, but do I have to use a support library? My App is API16 and I don't want the extra shit in support libraries Dec 25 09:10:24 vmusr ofcourse not. Dec 25 09:10:36 should work straight out of box starting android 3.0 Dec 25 09:12:31 tonySoprano9099, yea but it needs Viewpager Dec 25 09:12:52 well, for viewpager you still need to use the support libs Dec 25 09:14:01 tonySoprano9099, sucks but guess no choice Dec 25 09:15:21 vmusr, well, the libs are there to help you. no reason not to use them. Dec 25 09:15:42 are u concered about your apk size ? Dec 25 09:15:54 they do slow down building; but i figure they will continue to grow and get goodies Dec 25 09:17:38 g00s, the slowing down is assymtotic I guess,, Dec 25 09:18:02 any idea when viewpager will be integrated into an sdk ? Dec 25 09:18:09 or has it onto 4.3 ? unsure Dec 25 09:18:22 why? Dec 25 09:19:07 CaptainFarrell why what ? Dec 25 09:19:48 I mean, what differene does it make if it's in sdk on support lib? Dec 25 09:20:15 CaptainFarrell, doesnt make a diff to me. Dec 25 09:20:31 but some claimed it slows down builds Dec 25 09:20:46 I reckon we have to use support lib anyway Dec 25 09:20:56 for other things Dec 25 09:21:10 true Dec 25 09:25:02 woke up in a cold sweat thinking about the twitter api Dec 25 09:26:45 storkme: time to go on holiday Dec 25 09:26:59 deadlines deadlines deadlines. Dec 25 09:28:01 Hello Dec 25 09:28:58 I'm sorry, I've just been mulling over it for a while and I still haven't decided on the best way to implement it. I guess I'll just go with twitter4j and maybe otto for passing the messages back to my UI components... Dec 25 09:29:04 so would something like this workout? http://pastebin.com/L9yZVU60 Dec 25 09:29:28 Could anyone please help me with this. Why is my application crashing when I'm trying to remove fragment from view. It does't show any errors just a long list with custom components in fragment that looks something like this : Dec 25 09:29:31 D/FragmentManager( 3205): net.ooleg.ttel.Views.CustomImageView{4eac791c V.ED..C. ... 16,0-57,41 #7f080041 Dec 25 09:29:41 What is this ? Dec 25 09:30:30 after dumping 20-30 lines of this it will exit, without any errors Dec 25 09:31:51 how are you "trying to remove the fragment from view" might be relevant, or you're missing something in the logcat Dec 25 09:32:36 did you try debugging? Dec 25 09:32:44 like, I could remove my app from view by calling finish() ;) Dec 25 09:33:03 to find out where exactly it crashes Dec 25 09:49:20 How would you do to relate an image to an Object for usage in an ImageView? Dec 25 09:54:22 autrilla: what's wrong with a Bitmap? Dec 25 09:54:50 thepoosh, is it a good way of loading a drawable? Dec 25 09:55:15 there are about three different methods for setting an image in the ImageView Dec 25 09:55:23 you should read the documentation Dec 25 10:54:33 Hi all, I'm trying to implement filtering for the listview which is backed up by sqlite db Dec 25 10:55:27 now, I've found setFilterQueryProvider method which accepts FilterQueryProvider interface. I'm supposed to implement runQuery method Dec 25 10:56:28 I can't understand, how am I supposed to implement the method above to make it work in worker thread? Dec 25 10:57:06 I can't use AsyncTask, for example, because runQuery returns Cursor Dec 25 10:59:22 CaptainFarrell, runQuery will be called on background thread Dec 25 10:59:31 automatically? Dec 25 10:59:40 if you execute filtering via runQueryOnBackgroundThread method on the CursorAdapter Dec 25 11:00:04 I use SimpleCursorAdapter Dec 25 11:00:25 thanks heaps. I'll research further Dec 25 11:00:48 basically you set filter query provider that builds the query Dec 25 11:01:34 I'll have a look in SimpleCursorAdapter's source Dec 25 11:01:35 and you should get runQuery called in BG thread automatically Dec 25 11:10:57 Mavrik thanks again. the source code of SimpleCursorAdapter proved that it indeed would run on background thread Dec 25 12:07:34 clear Dec 25 12:14:20 Hello world! Dec 25 12:20:47 should setLayoutParams on a view cause it to call onLayout? Dec 25 13:19:17 Hello Dec 25 13:19:35 Has anyoe messed with Qt framework for developing Android apps? Dec 25 14:00:25 Hello all, can you please recommend which class is best to be used to get resources from a rest web service Dec 25 14:04:04 Hello all, can you please recommend which class is best to be used to get resources from a rest web service Dec 25 14:18:03 Hey guys, can I have some advice? Which of the two is the better programming practice, QrScanner mk. 1 or QrScanner mk. 2? QrScanner mk. 1 = http://pastebin.com/KD6kRzBE, QrScanner mk. 2 = http://pastebin.com/Z4zW3Z6v. The main difference: QrScanner mk. 2 is an Activity. We can't do anything after we called scanQR, we need the result of the scan before we can do progress through our program. Dec 25 14:49:19 I'm trying to get a View to use up 61.8% of its parent's width, but use up all the available width until it's 500sp wide. Dec 25 14:50:43 Naturally I tried to use LinearLayout with weightSum="1.6108", setting weight="1" and minWidth="500sp" on the view, but minWidth appears to be ignored when weight is present. Dec 25 14:51:27 You mean dp? Dec 25 14:52:03 No, the view contains text, but it doesn't really change the question. Dec 25 14:52:09 Not sure how I'd solve it, probably with a custom View class if it cannot be done via XML. Dec 25 14:52:46 It seems like such a common use case. :/ Dec 25 14:53:43 Haven't heard of such a use case so far, doesn't make it less valid, tho. Even if 61.8% seems odd. Dec 25 14:54:28 kakazza: http://en.wikipedia.org/wiki/Golden_ratio ;) Dec 25 14:55:37 Using the golden ratio without thinking isn't going to make things suddenly awesome ;p Dec 25 14:56:04 I'm only using it where it makes sense. Dec 25 14:56:18 That's for tablet? Because I don't have a screen with 500sp/dp width. Dec 25 14:56:42 You realize that sp will be scaled depending on the users preferences on font size, right? Dec 25 14:57:14 There won't be any space to the left/right of the view then (except for margin/padding) unless you're on a tablet. Dec 25 14:57:21 might it be easier to set it to use 100% of the width on regular devices, then in xlarge get it to use only 500sp? Dec 25 14:57:28 Yes, as it's supposed to, since otherwise it would display less text. Dec 25 14:57:42 Isn't minWidth the wrong setting here? You want it to take 100% of the width, until it's 500sp, then have it resize to 61.8%? Dec 25 14:57:50 storkme: probably, but that's just hackish imo Dec 25 14:58:25 from my perspective the whole thing seems a bit hackish (I still don't really understand why what you're trying to do makes sense) Dec 25 14:58:51 kakazza: "Defines the minimum width of the view. It is not guaranteed the view will be able to achieve this minimum width (for example, if its parent layout constrains it with less available width). " Dec 25 14:59:03 Yeah, I just re-read what you want, but I'm not sure if I understand you correctly. Dec 25 14:59:55 You want it to take up 61.8% of the width of its parent. Unless it's less than 500sp wide, then it should take 100%. If it's 501sp, it should use up 61.8%? Dec 25 15:01:10 Directions unclear, got sick stuck in fan. Dec 25 15:01:22 Typo... might be for the best. Dec 25 15:01:27 kakazza: No, what I want is 0.618 * parentWidth > 500sp ? 0.618 * parentWidth : min(parentWidth, 500sp) Dec 25 15:04:51 kakazza: The reason being, this view has some EditTexts and I have an expectation of how much text should be entered, but don't want the view to be too thin on larger screens so as not to look out of place. Dec 25 15:05:42 kbwt: just max width it on 10" Dec 25 15:06:01 Especially on a tablet in landscape mode. Dec 25 15:06:33 So use a different layout for these screens. Dec 25 15:06:44 Are you trying to cram logic into a single layout xml for all screens? Dec 25 15:06:45 ain't no hard Dec 25 15:06:55 if you're doing it all in a single xml file then you're doing it wrong Dec 25 15:07:16 you can have the same layout file and define dimens in other files Dec 25 15:07:22 unfortunately we can't treat android layouts like css. Dec 25 15:07:24 That seems exactly like a case for which there is layout-large, xlarge, swp720dp etc. Dec 25 15:07:41 storkme: Even CSS has media queries. Dec 25 15:07:50 It's their "layout-" Dec 25 15:07:51 this is true Dec 25 15:08:27 i like android layouts Dec 25 15:08:30 though i'm not sure android value qualifiers would work for his case (can you specify -Xsp as a qualifier?) Dec 25 15:08:31 it's so definesd Dec 25 15:09:17 Still, it seems like there should be a way to specify something as simple as "take x% of parent, but be at least y{dp,sp,whatever} wide" Dec 25 15:10:07 oh and I don't want my layout reloaded on orientation changes Dec 25 15:10:25 percentage widths aren't very common in android Dec 25 15:10:34 kbwt: sure htere is, Dec 25 15:10:37 handle rotation change yourself Dec 25 15:11:07 CSS is nice but the combinmation of html, js, and css means you get slow things on mobile Dec 25 15:11:20 in a few years when our phones are faster than the new mac pro that might be okay Dec 25 15:11:29 but for now we gots to do weird things Dec 25 15:12:22 funkbox: to be honest, I've been having a lot of performance issues with the android framework in silly places Dec 25 15:12:45 like TextViews with about 500 lines, when you delete the first lines Dec 25 15:12:49 kbwt: sure, but you can code around that Dec 25 15:12:56 it freezes up the device to GC for up to 100ms Dec 25 15:13:27 just use a better data structure Dec 25 15:13:30 not a string Dec 25 15:13:43 like a rope Dec 25 15:13:43 can you even fit 500 lines on one screen? Dec 25 15:13:46 every single time, because the TextView internally allocates O(n^2) TextWatchers in the number of spans... Dec 25 15:14:01 storkme: No, it's a scrolling text view. Dec 25 15:14:14 kbwt: are you passing around a string? Dec 25 15:14:40 what about splitting it up and using a ListView? (split it up by paragraph or whatever) Dec 25 15:14:45 I can hardly change the Android TextView to internally use ropes. Dec 25 15:15:20 yeah my bad, i thought that the actual string manipulation was iffy Dec 25 15:15:24 storkme: That's what I ended up doing, but it's still incredible what kind of issues exist in the core classes of the Android framework. Dec 25 15:15:29 write your own textview! :) Dec 25 15:15:39 i'm almost at that point with the ListView Dec 25 15:16:00 funkbox: Have you ever looked at the TextView implementation? They use all sort of hidden interfaces to do graphics acceleration. Dec 25 15:16:14 very briefly Dec 25 15:16:16 hidden = you can't access them unless you're compiling your own Android to ship a device Dec 25 15:16:17 but not in detail Dec 25 15:16:20 kbwt: I think when they designed it, they didn't imagine somebody would be deleting single lines out of really long TextViews. Dec 25 15:16:35 i guess it's one of those "optiize for 99%" Dec 25 15:16:50 The TextView implementation is like 10000 lines long last time I checked. Dec 25 15:16:50 you probably could do better with a ListView of textviews Dec 25 15:17:03 kakazza: It's a pretty basic use case actually, you could say I'm displaying a log, and don't want it to grow infinitely. Dec 25 15:17:15 A circular buffer of 500 lines seems reasonable enough. Dec 25 15:17:40 funkbox: Yeah, as I told storkme, that's what I have now. Dec 25 15:17:49 logs are a listview, clearly. You want to add lines and not append to a 9000 char string. Dec 25 15:17:53 funkbox: After spending way too much time digging into the TextView source code. Dec 25 15:18:35 kakazza: Kind of silly that the TextView has scrollbars then and supports using an Editable that has efficient append. Dec 25 15:18:55 i think it's meant for smallish text Dec 25 15:19:16 Seriously, who'd use a single TextView for logs. Dec 25 15:19:17 Yeah, because it's horribly broken for larger text. Dec 25 15:19:32 someone is going to use anything for anything Dec 25 15:20:08 There is a single line in the TextView source code that you can pull out of its function and cache it anytime the text changes, which results in the O(n^2) number of allocations decreasing to O(n) Dec 25 15:20:26 Link? Dec 25 15:20:36 Should be easy to link the particular line via the github repo. Dec 25 15:20:48 Also, submit a patch :) Dec 25 15:21:00 Is there a way to force/trigger OnShake in the emulator? Dec 25 15:21:42 kakazza: sec, finding it Dec 25 15:23:28 If your change would be an optimization without disadvantages for the other 99%, I'm sure they'd gladly discuss a patch with you. Dec 25 15:25:21 kakazza: https://github.com/android/platform_frameworks_base/blob/dbccd44a638ae8705a5b14bff8b2dd74abc26045/core/java/android/text/SpannableStringBuilder.java#L995 This is the line Dec 25 15:25:39 And your change would be? Dec 25 15:26:19 To get the SpanWatchers once, either in sendToSpanWatchers or even only when the text/spans are changed. Dec 25 15:26:42 Because as is now, this is called in an inner loop that iterates over all the spans. Dec 25 15:27:42 It may not seem like much, but this does truly lock up my device with the GC running constantly. Dec 25 15:28:33 Patch it, seriously. I'm not being sarcastic. Dec 25 15:29:08 They'll either decline it because of other implications or gladly accept it and you'll have it in Android 6 and can use it in 3-4 years ;p Dec 25 15:29:15 (Now I'm being sarcastic) Dec 25 15:29:59 Yeah, I already accepted that I won't ever be able to rely on fixes with the number of legacy devices out there. Dec 25 15:30:15 Even my Galaxy Nexus doesn't get updates anymore. Dec 25 15:31:31 I guess I'll whip up a patch later on. Dec 25 15:33:19 on a shitty laptop right now so I can't easily build/test Android itself Dec 25 15:41:51 Also how is this bug only "medium"? http://code.google.com/p/android/issues/detail?id=43819 You effictively can't target Android 2.2 or lower with the NDK unless you use GCC 4.6 or a custom stdlib. Dec 25 15:43:20 and it's totally intuitive to debug because adb logcat shows no errors at all, the call to System.loadLibrary simply never returns. Dec 25 15:44:04 I wonder how many people encountered the same issue and never found that bug entry. Dec 25 15:45:03 Broken for Android 2.2 or lower: GCC 4.7, 4.8, Clang (all versions) Dec 25 15:50:49 All versions of Clang? Damn Dec 25 15:51:14 Hello all, can you please advise me which lib is best to be used to get resources from a restful web service Dec 25 15:51:24 i have a fragment which is being initiated by an activity as it should. This fragment has its own layout and it has a method which sets text in its textviews. The problem is when i try to call this method from the activity i get a nullpointer exception. My guess is that the layout from the fragment has been instatiated yet. Have you any suggestions? Dec 25 15:52:13 i mean hasn't Dec 25 16:17:08 what is the gray semi-transparent color style in android? I would like to apply it to text view? Dec 25 16:19:53 like the color of unselected date in datepicker dialog Dec 25 18:16:04 Hm, can you enable Developer options from the terminal? Tapping the "Build number" option 7x in my 4.2.2 device seems not to work. :< Dec 25 18:16:30 Or just turn the USB debugging on? Dec 25 18:18:12 Hi, I have an activity with action bar tabs with viewpager, 3 tabs each of them load a different fragment. In one of them I want to have a sort of reaction game, where dots are drawn on screen and the user has to touchclick them. Can I do that in that fragment or do I need to load an actoivity in that tab? Dec 25 19:11:07 hello, I'm trying to load android sdk manager but I keep getting "Error: Missing platform-tools" when trying tools/android sdk from the command line Dec 25 19:11:13 I'm new to android development Dec 25 19:15:29 Hello everyone. Merry christmas ! I'm stuck with a problem I described on stackoverflow : http://stackoverflow.com/questions/20764214/android-speak-failed-tts-engine-connection-not-fully-set-up if someone can help me, it will be very very nice :) Dec 25 19:18:56 I would like to do some image data manipulation. But all sorts of non-linear algorithms, i.e. not somply applying filter kernels. I want to use some byte-buffers to store various pixel information and preferably even do some bit-flipping magic etc. on them. Just doing some fun with arrays and displaying the result. I guess using BitmapFactory.decodeByteArray all the time is not the most efficient way. Dec 25 19:20:03 Can anyone recommend a strategy/framework etc. for doing this efficiently? Dec 25 19:22:08 Being an old-fahioned programmer, I would somewhat like to just define e.g. a bitmap in a fixed color depth and have direct access to the image data array, flipping it between buffers or copying my array over to it while fiddling with another thread on some other buffer. But I have done little image-processing on Android so far. Dec 25 19:25:33 Hello. I'm using ViewPager to swipe between tabs. On tab 1 I have a button. After I clicked a button I would like to replace current fragment with new one. I tried with fragment transaction (http://bpaste.ne/show/Z06E7u8BNyDDYQjb88bx/). This is working but probelm is that I can see both fragments. The new one overlaping the old one. I alos don't know how to add curent fragment on backstak, that I can navigate back if I will click back button. Can so Dec 25 19:26:02 hello Dec 25 19:26:06 android:padding on a RelativeLayout, for example, defines padding on the inside, right? Dec 25 19:26:21 how to change front camera device in android.. to /dev/video0 ?? Dec 25 19:26:42 it possible? Dec 25 19:31:16 I'm trying to do this: relativeFrag = Fragment.instantiate(context, MasterFrag.class.getName()); but also pass some variables to the constructor. How can I do that? Dec 25 19:34:03 Also, Merry Christmas! Dec 25 19:35:03 sorry, got disconnected Dec 25 19:35:40 please help me Dec 25 19:36:14 Hello everyone. Merry christmas ! I'm stuck with a problem I described on stackoverflow : http://stackoverflow.com/questions/20764214/android-speak-failed-tts-engine-connection-not-fully-set-up if someone can help me, it will be very very nice :) Dec 25 19:36:43 se_busca_ayuda: make your instantiate method have additional args, pass those args to the fragments constructor? Dec 25 19:44:27 aha, fixed the problem - needed to say --no-ui the first time Dec 25 19:49:02 Can I rely on the position of the views in the list view for the next action that I'm about to do? I'm using an array adapter. Dec 25 19:52:35 I want to handle all the views in my list view with a single activity which I invoke with an intent passing the position. I'll do the work based on the item's position which has to be hard-coded somewhere. Is this a good approach? Dec 25 19:55:50 anon: You mean you'll take the intent passed position, use it to get an object out of a list and do work based on that? Dec 25 19:56:40 or using the position for things like getview on an adapter Dec 25 19:56:50 desmin88, I'll use it to do some work, yeah. I just need to know somehow what view has been clicked. Dec 25 19:57:06 hm Dec 25 19:57:27 Why not just pass the item through the intent? Dec 25 19:57:30 the list item, that is. Dec 25 20:01:08 anon: also, the position of the view is not the same as the position of the data the view is displaying. Dec 25 20:02:16 desmin88, I'm using an array list and it appears the system inflates them in order. Dec 25 20:03:04 I was afraid that after I'd scroll the position of the elements might change but it doesn't. Dec 25 20:03:41 anon: I'm saying that the index of the view is not the same of the list item index that view might be displaying Dec 25 20:03:51 also, you cannot gaurentee anything about the order a listview is inflated. Dec 25 20:04:56 Then I'll need to create about 20 activities to handle them all Dec 25 20:05:03 Doesn't feel right Dec 25 20:05:10 ? Dec 25 20:05:26 do you understand what I'm trying to do? :) Dec 25 20:05:32 lol Dec 25 20:05:34 okay Dec 25 20:05:40 sorry i tried to give you some info Dec 25 20:11:58 anon: It's pretty simple, pass the position or the list view item in the intent. Dec 25 20:12:14 lol Dec 25 20:15:10 man i dont understand why people get passive aggressive when theyre the ones asking for help. Dec 25 20:15:19 sorry i tried Dec 25 20:19:46 nice, every time I try to install anomaly 2 my phone reboots Dec 25 20:22:49 Not sure if I should keep the evo that I brought or return and get the galaxy nexus Dec 25 20:22:52 for $10 more Dec 25 20:22:54 *evo 4g Dec 25 20:22:57 its a hassle to return Dec 25 20:37:12 Hello everyone. Merry christmas ! I'm stuck with a problem I described on stackoverflow : http://stackoverflow.com/questions/20764214/android-speak-failed-tts-engine-connection-not-fully-set-up if someone can help me, it will be very very nice :) Dec 25 20:42:28 I'm wondering what would be the fastest method of replacing like +-2 question marks in a String. Should I use regex or the .replaceAll function? Dec 25 20:43:01 I've never really worked with replacing those efficiently in Java, only in PHP, Python and JS. Dec 25 20:47:04 Well I'm gonna use replaceFirst so I'll need regex. Dec 25 20:55:28 replaceAll uses regex Dec 25 21:03:42 Hello everyone. Merry christmas ! I'm stuck with a problem I described on stackoverflow : http://stackoverflow.com/questions/20764214/android-speak-failed-tts-engine-connection-not-fully-set-up if someone can help me, it will be very very nice :) Dec 25 21:09:37 hey! I've been trying to migrate a project from Eclipse to Android Studio Dec 25 21:09:49 Seraf: Pasting your question every ~30 minutes won't really help, just wait for an answer and be more patient Dec 25 21:10:01 everything seems to work, but I'd like to use maven dependencies where possible Dec 25 21:10:28 does anyone know whether jfeinstein's slidingmenu library is available in maven central? Dec 25 21:10:38 desmin88, as I have no answer, I hope the new person who joined the chan will be able to help me but ok, I will stop to repeat :( Dec 25 21:10:47 I can't seem to find it, but there are some tickets about it which are 8 months old Dec 25 21:10:56 so I might just be overlooking it Dec 25 21:11:08 MDijkstra: You can search the maven repo and see if its on there Dec 25 21:11:14 otherwise you can use a jar Dec 25 21:11:19 or import it as a module Dec 25 21:11:29 http://www.javascriptlint.com/online_lint.php Dec 25 21:12:46 desmin88: yeah, I'll do that Dec 25 21:12:49 thanks Dec 25 21:13:09 yw Dec 25 21:13:16 ccork, sorry but I don't understand, what am I supposed to do with ? Dec 25 21:13:25 MDijkstra, it's not, but why not switch to drawer layout Dec 25 21:14:20 Seraf: Paste your code in the textbox you'll see on the site at the link. Then hit the 'Lint' button. It will run your script and highlight errors for you. Dec 25 21:14:24 pfn: I'll have a look at that Dec 25 21:14:42 MDijkstra, it's already in support-v4 Dec 25 21:14:50 ah, yeah Dec 25 21:14:57 I'm also still using ABS in this project Dec 25 21:15:38 might be worth it to modernize things a bit if I'm migrating anyway Dec 25 21:15:46 minSdkVerison="14" Dec 25 21:16:27 JakeWharton: you and square come up with the best names for libraries and things Dec 25 21:17:00 it's important to have something memorable Dec 25 21:17:05 otto. Dec 25 21:17:13 madge Dec 25 21:17:46 * storkme just pondering putting Otto in his app. Dec 25 21:17:54 otto is good Dec 25 21:18:01 no reason not to use it Dec 25 21:18:15 not sure if I'm using it for the right reasons. Dec 25 21:18:20 I don't use it, but that's because I have a better abstraction Dec 25 21:18:37 it replaces all need for a local broadcast Dec 25 21:18:50 with less boiler plate Dec 25 21:18:54 I use it because i seriously hate intents and listener interfaces permeating everypart of my app Dec 25 21:18:59 what right reasons do you need Dec 25 21:19:51 just plugging twitter4j into my app, can I be bothered to write a bunch of callback interfaces and register/unregister listeners, or do I just use an event bus...... Dec 25 21:20:25 listeners and callback interfaces are why i use otto Dec 25 21:20:35 If I have more than one custom listener type, I will switch to using a bus Dec 25 21:20:47 and if the listeners are of a broadcast type Dec 25 21:22:16 for that matter, all of my apps use an event bus, no matter how trivial Dec 25 21:44:27 I want a fragment to tell its activity to load a different fragment in its place. How do I do that? Dec 25 21:47:10 call a method on your activity Dec 25 21:47:22 or just do it directly through the fragment manager Dec 25 21:48:42 Flaiker: what pfn said, a common pattern is to have an inner interface in your Fragment class Dec 25 21:48:55 OnStuffHappenedListener Dec 25 21:49:14 then have your activities containing the fragment implement this Dec 25 21:49:47 and in your fragment have private OnStuffHappenedListener mListener; which you set in onAttach() Dec 25 21:51:20 i am using my fragments with an actionbar with tabs and viewpager Dec 25 21:51:25 does that make a difference? Dec 25 21:51:41 shouldn't, no Dec 25 21:51:48 okay thanks Dec 25 21:51:57 ill try around a bit Dec 25 21:52:06 just starting with the concept of fragments :) Dec 25 21:52:51 but imo you should always try to delegate changing the fragments of an activity to that activity Dec 25 21:53:42 (since you might want to do different things depending on which activity is containing the fragment) Dec 25 21:55:06 Ok. I have a mainactivity with 3 tabs. One of these has like 5 buttons on it. Before they are displayed I want a text and 1 ok button or sth after which the 5 buttons come up. I thought of doing in with 2 fragments. Does that make sense? Dec 25 21:56:20 I am getting the following error in Android Studio after I re imported my project, using gradle 1.9: A problem occurred evaluating project ':MDApp123123'. > Gradle version 1.9 is required. Current version is 1.8. If using the gradle wrapper, try editing the distributionUrl in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio\gradle\wrapper\gradle-wrapper.properties to gradle-1.9-all.zip Dec 25 21:56:35 Oh no, sorry Dec 25 21:56:42 sure, if it's simple enough you could also do one fragment with a FragmentLayout Dec 25 21:56:42 it actually is Library 'ComAndroidSupportAppcompatV1900.aar': invatid classes roots Dec 25 21:57:18 and then just have an overlay view which you set to visibility GONE once the user presses the okay button Dec 25 21:57:53 a Fragment would be okay too, but if it's just some 'press okay to continue' view this might be easier Dec 25 21:58:15 yeah, should be, but I also want to learn using fragments :) Dec 25 21:59:39 tried reimporting using auto import Dec 25 22:00:57 stil nothing Dec 25 22:02:23 I have another problem though. I wrote switchFragment() in MainActivity, but I cannot find it in my fragment using getActivity().switchFragment() Dec 25 22:06:26 nvm got it Dec 25 22:11:55 merry christmas all :) Dec 25 22:13:15 with android.opengl.Matrix.multiplyMM() is it safe for "result" argument to be the same as "lhs" or "rhs" arguments? Dec 25 22:13:50 or, put more correctly: is it safe for the first two arguments to match either the third and fourth, or the fifth and sixth arguments? Dec 25 22:14:56 oh nvm, i found it in the documentation of all places Dec 25 22:19:34 hdon: lol, why would the documentation have any answers you need? Dec 25 22:19:37 that'd be absurd Dec 25 22:19:44 :P Dec 25 22:19:55 o Dec 25 22:19:59 whoops Dec 25 22:20:00 The documentation isn't all that great Dec 25 22:20:04 i'm just not used to the doc layout yet Dec 25 22:20:17 Android is open source. Digg through the code, if you want the real answers Dec 25 22:20:20 so sometimes i forget to scroll down and find the more thorough doc for a method Dec 25 22:20:25 Ahmad96, amen brother Dec 25 22:25:48 YoShould I get Photoshop CC for $10 a monthfor a yearorshould I get CS5 one timeDVDgenuineHe will transfer he license for about $80 for life Dec 25 22:27:03 Is there a way to change the color of the dropdown text views in a spinner without creating a custom adapter and overwriting getView? I'm already using a custom xml textview but it only changes the color of the selected item. Dec 25 22:28:18 They're all white and the theme is holo light. Dec 25 22:45:14 anon, you can just create a custom adapter Dec 25 22:50:40 just specify a different layout to your adapter Dec 25 22:50:48 one with the colors you want Dec 25 22:51:03 hi again all Dec 25 22:51:14 using android.opengl.Matrix: http://pastebin.mozilla.org/3862635 Dec 25 22:51:32 the values in my matrix after this call to setLookAtM() method are: Dec 25 22:52:00 http://pastebin.mozilla.org/3862647 Dec 25 22:52:05 (put both in the same paste now) Dec 25 22:52:26 i'm trying to translate the "camera" to the position 0,0,10 Dec 25 22:52:30 and looking at the origin Dec 25 22:52:38 but in that matrix, i see no translation component Dec 25 22:52:45 what did i do wrong? Dec 25 22:54:23 oh i got some of the arguments wrong Dec 25 22:56:30 i should probably not even depend on this function Dec 25 23:07:25 Hello. I'm using ViewPager to swipe between tabs. On tab 1 I have a button. After I clicked a button I would like to replace current fragment with new one. I tried with fragment transaction (http://bpaste.ne/show/Z06E7u8BNyDDYQjb88bx/). This is working but probelm is that I can see both fragments. The new one overlaping the old one. I alos don't know how to add curent fragment on backstak, that I can navigate back if I will click back button. Can so Dec 25 23:07:55 http://www.bpaste.net/show/Z06E7u8BNyDDYQjb88bx/ Dec 25 23:08:48 slani: Did you google your question? Dec 25 23:12:40 desmin88: yes. there is a lot of similar problem on stackoverflow but nothing realy works for me. I find the same question. but no naswer. http://stackoverflow.com/questions/16508008/replace-fragment-in-tab Dec 25 23:13:20 slani: http://stackoverflow.com/questions/7723964/replace-fragment-inside-a-viewpager Dec 25 23:13:47 hey guys, it looks like the Android support library wasn't added to the project, for some reason. I use android studio, what should I do? Dec 25 23:14:09 add it as a dependency Dec 25 23:14:15 in your build.gradle Dec 25 23:14:33 ok Dec 25 23:16:45 I tried adding it using the toutorial here: http://stackoverflow.com/questions/16580586/add-support-library-to-android-studio-project Dec 25 23:17:42 but, when I click the plus sign, I need to select the type of dependency and enter the path Dec 25 23:18:22 add it as a dependency in your build.gradle Dec 25 23:19:39 how? Dec 25 23:20:02 https://developer.android.com/tools/support-library/setup.html Dec 25 23:20:08 ok Dec 25 23:31:42 Is it possible to use the getString method on a Cursor when the requested row is an integer for example? Will it throw an error or will it return a String with the integer? Dec 25 23:32:54 I would expect it to throw an error, try it and see Dec 25 23:33:52 Found the answer on StackOverflow, the guy says that it will return "INTEGER_VALUE" Dec 25 23:34:05 and for every other method as long as it makes sense Dec 25 23:34:17 God thank for that Dec 25 23:34:39 I just love optimizing my code Dec 25 23:35:39 can be fun Dec 25 23:35:53 i don't have the brain to do code today. working on routing a pcb; it's calming. Dec 25 23:36:24 and doesn't take much real brain Dec 25 23:36:29 I stopped doing hardware, it's just not giving me the satisfaction I wanted it to. Dec 25 23:36:51 I don't think it's as fun as software, I'd much rather be on the computer. Dec 25 23:36:53 depends what you're doing with it i guess Dec 25 23:37:10 the HW i do is generally "i need tool X and it doesn't exist / isn't affordable. well dammit." Dec 25 23:37:11 Well nothing special, Arduino training for beginners Dec 25 23:37:23 Well I'm just not at that stage Dec 25 23:37:28 http://durandal.kismetwireless.net/~dragorn/images/vqfn2.png Dec 25 23:37:35 I'll make an app for it, which I'm doing right now Dec 25 23:38:00 That is already way too complicated for me Dec 25 23:38:08 I'll sell my hardware stuff sometime Dec 25 23:38:54 desmin88: I now get the following error: A problem occurred evaluating root project 'workspace'. > No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.compile() is applicable for argument types: (java.lang.String) values: [com.android.support:appcompat-v7:18.0.+] Possible solutions: module(java.lang.Object) Dec 25 23:39:12 Code and stacktrace please Dec 25 23:39:28 me? Dec 25 23:39:32 Yes Dec 25 23:39:45 I don't have any Dec 25 23:39:54 It is not code-related Dec 25 23:39:57 Ah Dec 25 23:40:04 My bad Dec 25 23:40:12 it is a problem with the project/IDE itself Dec 25 23:40:31 dragorn, I'm currently working on some kind of notification app which I'm in need off. Dec 25 23:40:47 of* Dec 25 23:41:24 MDTech-us_MAN: usually clearing cache and restarting is your best bet Dec 25 23:41:32 MDTech-us_MAN: I don't know that particular error Dec 25 23:41:52 how do I clear the cache Dec 25 23:44:39 file Dec 25 23:44:55 it's not running right now so i forget beyond that; it's an option under the file menu as i recall Dec 25 23:45:03 assuming you're talking about a problem with AS Dec 25 23:45:09 When designing UIs, don't you usually want to set a "target" percentage of the parent's width/height to be taken up by a view, rather than a target percentage of the leftover width/height? Dec 25 23:45:12 yea Dec 25 23:46:38 e.g. when you have an ImageView or some other view with a logical "minimum size", it's absurd to set its size to 0dp and set layout_width to make it swallow up extra space, but be scaled down to (worst case) 0dp if there is no "leftover space" Dec 25 23:46:55 dragorn: http://pasteboard.co/2h6SOKXJ.png (Just testing out this new website I found) Dec 25 23:47:14 dragorn, well for image upload. But that's a screenshot of the app I'm working on. Dec 25 23:47:21 It's also nonsensical to give it its minimum size as layout_width/height and then make it grow by a set percentage of the leftover space. Dec 25 23:48:15 How do you specify that you want it to take up 20% of the height but also not be scaled below its intrinsic size? You can't, unless you know its dimensions and the dimensions of the parent view. Dec 25 23:50:24 nope still didn't fix the initial problem. Dec 25 23:50:37 hey guys, it looks like the Android support library wasn't added to the project, for some reason. I use android studio, what should I do? Dec 25 23:51:17 have you followed the link i sent you? Dec 25 23:51:32 What do you mean? You should add libraries yourself. Dec 25 23:51:52 desmin88: yea Dec 25 23:52:13 I added the dependency in the root build.gradle Dec 25 23:52:22 You downloaded the libraries in thr sdk manager, and added it to the build.gradle? Dec 25 23:53:33 we are talking about a project I imported from Eclipse. It worked for quite some time already. Today it gave the following error: Dec 25 23:53:58 A problem occurred evaluating project ':MDApp123123'. > Gradle version 1.9 is required. Current version is 1.8. If using the gradle wrapper, try editing the distributionUrl in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Android Studio\gradle\wrapper\gradle-wrapper.properties to gradle-1.9-all.zip Dec 25 23:54:51 so did you do what it says to do? Dec 25 23:57:51 So, since I was using a custom Gradle distribution, I needed to re-import the whole project. after I had done so, I started getting stupid errors like "Cannot resolve symbol 'TextView', and basic Android classes stopped working. Dec 26 00:01:54 MDTech-us_MAN: I had similar issues when I hip-fired my porting from Maven -> Gradle 1.9 :) Dec 26 00:02:20 n20: what did you do? Dec 26 00:03:15 MDTech-us_MAN: I managed to set up the project *correctly*, because while I thought that I had modules, I really didn't have modules (in that fashion). Dec 26 00:03:32 However, I do believe the most important part was adding the support library to build.gradle (in the correct way) Dec 26 00:04:13 compile 'com.android.support:support-v4:13.0.0' is what I have at the moment :) Dec 26 00:04:16 n20: ••• Dec 26 00:04:22 ok Dec 26 00:04:31 I will use that Dec 26 00:04:40 It's up to 19 now Dec 26 00:04:48 Oh. Lol. I'm so behind. :) Dec 26 00:04:51 Hi SimonVT! Dec 26 00:04:58 Hello :) Dec 26 00:05:18 This irc thing works far better when I'm on my laptop, feels a bit more natural. Dec 26 00:07:09 Community poll: what's your take on the "pull to refresh" pattern? Dec 26 00:07:13 nope, still get the same "A problem occurred evaluating root project 'workspace'. > No signature of method: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.compile() is applicable for argument types: (java.lang.String) values: [com.android.support:support-v4:13.0.0] Possible solutions: module(java.lang.Object)" Dec 26 00:08:31 Would you be able to gist your build.gradle? Dec 26 00:09:43 https://gist.github.com/anonymous/49167596353ae0edbda7 Dec 26 00:11:24 App dependencies don't go in buildscript Dec 26 00:11:53 Exactly my thought SimonVT Dec 26 00:11:59 http://stackoverflow.com/questions/19279964/gradle-compile-error-no-signature-of-method <-- MDTech-us_MAN Dec 26 00:12:00 :) Dec 26 00:13:57 Purr kittykat jaguar_cat Guest62682 Donskoy Dec 26 00:14:18 This place is quiet, where is everyone? Dec 26 00:14:40 <:D Dec 26 00:16:26 ok, I removed the compile line from gradle.build Dec 26 00:16:40 I just ran gradlew build from the cmd Dec 26 00:16:52 Any luck? Dec 26 00:17:37 https://gist.github.com/anonymous/1f3d4d04e2ffd1c1567d Dec 26 00:18:18 Run with the --stacktrace Dec 26 00:21:27 one sec, there was so much output, that I need to make the screen buffer bigger Dec 26 00:22:27 Heh, I used to have that problem at work all the time. Dec 26 00:23:13 Then my colleague did some magic (like, you know, fixing my profile) and BAM - I have a never-ending buffer! Dec 26 00:23:34 The previous build.gradle doesn't seem to be complete either Dec 26 00:23:41 Or some subprojects has one as well that might be the issue Dec 26 00:23:51 hey all Dec 26 00:24:04 how can I use jackson + annotation to upload a file? Dec 26 00:24:16 How would you make this UI less ugly? http://gyazo.com/fd70a1cd4d0fde5764698c668987e009.png Dec 26 00:24:23 https://gist.github.com/anonymous/228abc0644598e18055b Dec 26 00:26:41 autrilla: Are you using some lib for the cards? Dec 26 00:26:47 n20, no Dec 26 00:26:52 A simple drawable Dec 26 00:27:11 autrilla: I should fix that shadowing for mines as well. :) Dec 26 00:27:43 Wow, my English is... :-)... today. Dec 26 00:28:38 autrilla: I might've gone for android:gravity="center_horitzontal" (or eq for the layout type you're using) on the text, but that's just my two cents. Dec 26 00:29:24 anyone? Dec 26 00:29:29 if title and image are all you want, I'd have the image take up the entire width and have the title in the bottom left of the card, white text, with a gradient background in case of light images, autrilla Dec 26 00:30:09 leslie, text over the image? Dec 26 00:30:13 yep Dec 26 00:30:43 MDTech-us_MAN: If you fire up Android Studio right now, does it show any errors of some sort? Dec 26 00:30:45 if you've used the Google Play Music app, similar to that, autrilla Dec 26 00:31:32 Hi guys Dec 26 00:31:37 leslie, Google Play Music is Image and then text below it Dec 26 00:31:57 oh, hmm. well what I described is still how I'd do it Dec 26 00:31:58 The thing is Google Play Music has more stuff to show than just a sport name Dec 26 00:32:34 I think it's pretty dull just showing that... I'll see what else I can show Dec 26 00:32:58 I have got a problem with customizing my ActionBar Dec 26 00:34:02 SimonVT: Would you consider it ugly to stash JSON in the SQLITE, instead of creating tables for x,y,z and t? Dec 26 00:34:10 Error states that "Error Retrieving parent for item:No resource found that matches the given name Theme.Holo.Light.DarkActionBar" Dec 26 00:34:53 What line of code is causing the error k1p1Black+ Dec 26 00:35:06 MDTech-us_MAN: Either you have more build.gradle files you haven't shown, or your previous build.gradle is incomplete Dec 26 00:35:20 n20: Yes, that's ugly Dec 26 00:35:25 If you just need to save the json, use files Dec 26 00:37:34 SimonVT: The API I'm getting my JSON from actually contains JSON in string form, instead of an actual JSON object (ie foo:'{\'bar\':123}') (yay) Dec 26 00:40:12 I get "cannot resolve 'setContentView'" and other errors like "cannot resolve symbol 'activity_'" Dec 26 00:40:43 SimonVT: yes I have build.gradle files in both of the project folders Dec 26 00:42:48 see this "double gist": https://gist.github.com/anonymous/d46675bec58e190bb54c Dec 26 00:48:46 Yeah, no idea Dec 26 00:49:05 Hard to guess when gradle doesn't tell you more than it failed Dec 26 00:49:18 yea Dec 26 00:49:50 You're compiling with ./gradlew clean assembleDebug ? Dec 26 00:50:32 I use gradlew build --info --debug --stacktrace Dec 26 00:50:39 (windows Dec 26 00:50:41 ) Dec 26 00:59:14 SimonVT: ••••• Dec 26 01:02:42 MDTech-us_MAN: You can try invalidating caches, syncing gradle project, and synchronizing Dec 26 01:02:46 or just try reimporting Dec 26 01:03:26 I don't know, the build file looks fine to me Dec 26 01:03:31 ok, I will re import, once again Dec 26 01:03:34 :( Dec 26 01:03:40 ••• Dec 26 01:03:46 Except the jar file dependency, would never use that Dec 26 01:04:11 Also just try clean before build, maybe the incremental builder is broken Dec 26 01:04:30 Use auto import or no Dec 26 01:04:35 Also, this has nothing to do with AS.. It's a command line build, pointless to try the issue is there Dec 26 01:04:52 oh,ok Dec 26 01:05:20 The last part made no sense, but when you build from the command line AS isn't involved.. So AS is not the issue Dec 26 01:07:09 build successful Dec 26 01:07:31 WTF Dec 26 01:08:01 ok, I will now try to open AS Dec 26 01:12:00 SimonVT: Now, the error is "Cannot resolve sympol 'R'" Dec 26 01:12:45 and a couple of other errors Dec 26 01:13:06 Did you tell AS to use gradlew when importing? Dec 26 01:13:36 SimonVT: please be more specific, what do you mean Dec 26 01:15:15 When importing your project, did you tell AS to use gradlew when building? Dec 26 01:15:58 SimonVT: how do I tell AS this? Dec 26 01:16:09 When importing Dec 26 01:17:14 well, I pressed import, selected the build.gradle file and then pressed ok on the next screen that asks what gradle to use Dec 26 01:18:06 Import it again, make sure you select gradlew Dec 26 01:18:11 Delete .idea folders and .iml files Dec 26 01:18:18 And import Dec 26 01:18:58 ok, so i select te gradlew file instead of the build.gradle, right Dec 26 01:19:17 No Dec 26 01:19:29 You select build.gradle when importing Dec 26 01:19:37 Then you get a popup Dec 26 01:19:42 And you select gradlew Dec 26 01:21:38 SimonVT: is this correct? http://imgur.com/ADqjW0S Dec 26 01:22:00 perhaps eclipse is best for you ;) Dec 26 01:22:09 Yep Dec 26 01:25:05 same "Cannot resolve method 'setContentView'" Dec 26 01:25:10 error Dec 26 01:25:25 how do I roll back to eclipse? Dec 26 01:26:32 You mean you don't have backups of your project before you tried to import it into as? Dec 26 01:26:50 nope Dec 26 01:26:53 lol Dec 26 01:26:59 why not? Dec 26 01:27:08 I amready made soo much progerss in AS Dec 26 01:28:01 This sort of thing is why it pays to use a build system not dependent on the IDE working Dec 26 01:28:21 its user error Dec 26 01:28:23 the ide is fine Dec 26 01:28:24 And why you should use version control (which would probably contain the eclipse files) Dec 26 01:28:49 ^ Dec 26 01:29:22 I have an older git commit, but I already made sooo much progress after that Dec 26 01:29:58 If it works at command line it should work in AS Dec 26 01:30:04 Are you using the latest version? Dec 26 01:30:23 of... Dec 26 01:30:35 AS? Dec 26 01:30:44 ... Dec 26 01:31:44 yes Dec 26 01:32:09 can I try reinstalling it? Dec 26 01:32:59 If you want.. You could also just check that you're using v0.4 Dec 26 01:33:09 Alright, good night fellas. :) Dec 26 01:33:22 Until next time, SimonVT :)) Dec 26 01:33:23 n20: good night Dec 26 01:33:42 (I usually always ping SimonVT when I show up here on #android-dev, lol) Dec 26 01:34:50 SimonVT: I have version 0.4.0 Dec 26 01:37:03 I don't know then Dec 26 01:37:28 Haven't had any issues Dec 26 01:40:18 ok, time to roll back to eclipse the good ol' way. (new project) Dec 26 01:43:28 hi, i'm having an issue with my apk, which crashes when i run it with: `Caused by: java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for com/badlogic/gdx/utils/arial-15.png' -- but when i run `jarsigner -verify android/target/aligned.apk -keystore ~/.android/debug.keystore -verbose' i get the following on that line: `smk 21814 Thu Dec 26 01:33:52 GMT 2013 com/badlogic/gdx/utils/arial-15.png' -- am i missing something glaringly obviou Dec 26 01:51:30 ahri, i see what you're missing Dec 26 01:55:09 can't you just create a new project from existing sources in Eclipse, MDTech-us_MAN ? Dec 26 02:07:18 desmin88: sorry, having some network issues at the moment, too :\ what am i missing? Dec 26 02:14:25 ahri: "am i missing something glaringly obvio" you're missing the 'us' Dec 26 02:14:27 lol... Dec 26 02:16:14 hm, well observed Dec 26 02:16:31 and as for my apk issue? Dec 26 02:22:53 cant say i know why you have that issue Dec 26 02:57:12 yo guys Dec 26 02:57:27 what are your favorite in app ad providers? Dec 26 02:57:36 in app? Dec 26 02:57:44 i remember seeing about a service that pulls multiple ad providers and shows the highest paying one Dec 26 02:57:48 Ologn, yes in app Dec 26 02:58:09 On Admob I can set different eCPMs Dec 26 02:58:14 for different countries Dec 26 02:58:31 So one goes to Admob, ones goes to Millennial Media etc. Admob mediation Dec 26 02:58:57 http://www.appbrain.com/stats/libraries/ad Dec 26 02:59:02 That is a good web page Dec 26 02:59:15 Because it shows ad APIs by # of installs Dec 26 02:59:21 Hello Dec 26 02:59:40 And you can assume the top ones are decent about paying your money, fill rates etc. **** ENDING LOGGING AT Thu Dec 26 02:59:59 2013