**** BEGIN LOGGING AT Mon Dec 30 02:59:58 2013 Dec 30 03:16:40 Does the Google IME actually call SpellCheckService to get suggestions, or does that require creating my own IME? Right now as I type, the suggestions and autocorrect is being done via Google's app, but the spell checking (underling, etc) is being routed through mine, even though I'm returning suggestions through onGetSuggestions() and onGetSuggestionsMultiple(). It's rather odd. Dec 30 03:31:58 Oh god, I'm getting that urge to write a GUI library again Dec 30 03:32:33 Nilium: do it Dec 30 03:32:38 make us all lazy Dec 30 03:32:40 with your gui Dec 30 03:32:58 * p_l instead got an urge to use genetic algorithms to design malware Dec 30 03:33:23 Why? For the Glory of Satan, of course! >_> Dec 30 03:33:27 Well, it probably wouldn't be an Android GUI Dec 30 03:33:46 Nilium: if your gui dont have "get $100" button I wont be using it. ;) Dec 30 03:34:02 I've just been wanting to experiment with writing a GUI library that uses reactive stuff. Dec 30 03:34:03 I thought about adapting the Android UI classes for it but there are some complications there Dec 30 03:34:35 Namely with how motion events are handled — the touch event method on views requires you to return whether the event was consumed Dec 30 03:35:10 Determining whether it was consumed by a reaction is the hard part. Dec 30 03:35:31 sounds like something worth experimenting and blogging about Dec 30 03:35:43 Might be easier if there was a flag you could set on the event that said it was consumed, but then you'd be modifying the event and that's just bad Dec 30 03:36:18 I'm not a big fan of blogging about my experiments due to fear of sounding of stupid Dec 30 03:36:18 Since I'm extremely inexperienced when it comes to this Dec 30 03:36:30 Nah, lol, that's actually how I got my first gig Dec 30 03:36:50 the naiveness is nothing by itself, but the fact you attempt to learn and gain experience on your own is invaluable Dec 30 03:36:50 Also I have a problem with rambling, as illustrated by my last blog post Dec 30 03:36:57 * Nilium goes to see how many words it was again Dec 30 03:36:58 seriously, it's a trait many devs today lack Dec 30 03:37:24 About 5,000 words. Dec 30 03:37:32 HMMM Dec 30 03:37:34 lol Dec 30 03:37:38 maybe split it into parts Dec 30 03:37:50 first times aren't always great Dec 30 03:37:56 but the fact you began is more than nothing Dec 30 03:37:57 Bit late for that since I posted it a couple months ago. Dec 30 03:38:32 I remember years ago when I first started doing the whole blog thing, I was really good about writing often Dec 30 03:38:39 Now I just don't post anything even if I write it Dec 30 03:42:44 I just find I can't be bothered to write Dec 30 03:42:53 if I were paid to blog... Dec 30 03:43:28 The other problem is just that I keep a lot of my writing so I can submit it to literary journals Dec 30 03:44:02 Which is sort of what I'm supposed to do since I have a degree in English and don't want to waste my first publication rights on my own unread blog Dec 30 03:47:37 Does anyone here uses otto event bus? Dec 30 03:48:34 nobody? Dec 30 03:48:38 anybody? Dec 30 03:48:41 nobody Dec 30 03:48:56 EventBus? Dec 30 03:50:36 use more words with question marks, you'll surely get a response Dec 30 03:59:30 I'm developing an android app that has a menu drawer and a list view for displaying cards, I'm using otto event bus (publisher/subscriber) for triggering events and notifying components. I also have a Service in the background that hosts AsyncTasks classes for webservice calls. The event bus and thus events are the glue between activities and the Service's AsyncTasks. Does any one here have a similar architecture? Dec 30 04:02:17 bankai_: well then, that escalated quickly Dec 30 04:06:27 fgsantoyo, sure why not Dec 30 04:07:22 Hey, so I need to get weather from a certain city in my app. Does anyone know any website that I can get access to weather? Like... does google let you get weather from them. Dec 30 04:10:46 EGHDK: Yahoo has a pretty decent weather API, IIRC Dec 30 04:11:18 i'm pretty sure can give you that information Dec 30 04:11:58 yahoo's feeds are "free of charge for use by individuals and non-profit organizations for personal, non-commercial uses" Dec 30 04:12:02 pfn, The issue I've encountered with the event bus is the use of the @Produce annotation. And how to properly use it. Do you happen to have any experience with it? Dec 30 04:14:58 nope Dec 30 04:39:32 I have a samsung nexus galaxy. Everytime I try to connect it to my MAC BP with the usb cable... I get intermitten connections. I have to wiggle the cable to get a connection. whats up with this? Dec 30 04:39:57 ask samsung ... Dec 30 04:47:25 IrishGringo: chill with the cross posting Dec 30 04:48:06 jalcine: normally I do... but very little chatter this evening Dec 30 04:48:25 it's that time of year Dec 30 04:48:31 fighting for alcohol and cake Dec 30 04:51:49 mmm alcoholic cake Dec 30 04:53:54 bankai_: best kind Dec 30 06:10:26 is it possible to run dex2oat manually on specific APKs ? Dec 30 06:12:20 kjeldahl oh oh, emacs 24.4 is almost out ! Dec 30 06:16:08 almost out :-P Dec 30 06:17:53 g00s: you say some crazy things sometimes ... Dec 30 06:22:39 when importing a gradle project, is it appropriate to select the build.gradle file that is at the same level with the project folders, gradlew and gradle folder, or the build.gradle within a project folder (sibling of src) Dec 30 06:22:58 or should i use settings.gradle (sibling of project folders Dec 30 06:26:01 i think setting.gradle should be fine Dec 30 06:26:14 that would include the others Dec 30 06:34:53 Hello channel, never been in here before! I have a question about importing zxing gradle build into my project and it not working. I've added compile 'com.google.zxing:core:2.2' to my gradle build file in Android Studio, but whenever I try to import com.google.zxing I get an error that google is an unknown symbol. Any ideas? Dec 30 06:35:11 is there an easy way to fill view layouts with mock text data to see in the layout preview window? seems like there should be... Dec 30 06:38:54 g00s: ok, that imports the project as the top level folder, which i have named "android", and has my project as a sub-folder. this is ok? Dec 30 06:40:40 storkme: for a textview or something ? Dec 30 06:41:42 yeah Dec 30 06:42:23 just use setText or whatever Dec 30 06:42:42 android:text sorry Dec 30 06:44:28 well it's for a list view layout, so all of the data is populated dynamically Dec 30 06:46:07 uiautomator and monkeyrunner ;) Dec 30 07:01:05 i need a little win here. i just tried to create a new project (fragment -> master/detail), and immediately i get about a dozen errors. the first one is android.support.v4.app does not exist. it seems unlikely that a default new project would have non-standard stuff, and i've installed everything with default options. what am i doing wrong? Dec 30 07:02:28 did you include v4 support ? Dec 30 07:03:28 bankai_: i haven't done anything but check the boxes to create the new project. do i need to do "other stuff" to get started? if so, where is a list of all of these things (I have severall unfound variables, classes, methods, etc) Dec 30 07:06:26 i don't see anything that says v4 in the sdk, do they mean API 4 ? Dec 30 07:06:47 it's under extras i think Dec 30 07:08:05 should i jsut be looking for something called support (there is Android Support Repository and Android Support Library), or something that says v4? I have nothing showing v4 Dec 30 07:08:50 Android Support Library Dec 30 07:09:32 bankai_: ok. now is that something you just knew, or is the information mapping missing classes to the SDK manager names somewhere i can't find? Dec 30 07:10:34 or maybe standard practice is to just download everything so you don't have to mess with missing stuff? Dec 30 07:10:57 i don't really understand what you're asking, but you're using v4 fragments, so you need to include the library Dec 30 07:12:40 bankai_: i want to know how i should have arrived at that answer, without you spoon feeding it to me. Dec 30 07:21:13 google? Dec 30 07:42:04 capella find a project to work on ? Dec 30 07:43:20 :) Not yet - spent the day re-educating my dad onto his Win7 box and off his XP Dec 30 07:43:50 bitch bitch bitch bitch Dec 30 07:44:43 get him an iPad :) Dec 30 07:45:19 I'd started letting him use my spare N7 ... he was taking to it nicely! :D Dec 30 07:45:30 but, screen size @80 Dec 30 07:45:48 :( Dec 30 07:46:11 g00s: found this today - security related cool kinda android related Dec 30 07:46:13 http://www.bunniestudios.com/blog/?p=3554 Dec 30 07:46:31 Hi guys Dec 30 07:47:27 weird issue: I've got two fragments that whose views are placed on top of the other. When one of the edit text's of the second fragment gets focus the previous fragment's view is shown. Any ideas? Dec 30 07:47:48 capella probably in that NSA catalog i was reading about today :D Dec 30 07:48:15 maybe saw it on ars or more likely hackernews Dec 30 07:53:50 capella did you read today nsa was intercepting shipped laptops to load goodies on them ? Dec 30 07:54:44 yah - peckers Dec 30 07:55:03 congress is going to stomp on that thing after the pres does Dec 30 07:56:56 sometimes i feel like american culture is a really clever parody of itself Dec 30 07:58:00 we like to laugh Dec 30 07:58:13 hehehe :P Dec 30 08:09:08 Hi all, I need to replace a ";" with a "»", but the result is an underscorred "a". I'm using this: .replace(";", " \u00BB "); how can I fix this? Dec 30 08:20:59 when i do canvas.drawBitmap( myBitmap, left , top, null); in a for loop and change the bitmap each time in SDK 10 it works, but in SDK 18 it updates all the drawn bitmaps to the latest one, what am i doing wrong? Dec 30 08:29:06 is there a way to do canvas.drawBitmap that uses a "by value" data from a bitmap instead of "by reference" ? Dec 30 08:30:26 Does anyone know if android ndk is supported using the latest version of gradle? I need to be able to build separate libraries as well as mark them as static or dynamic libraries Dec 30 08:31:11 I've found some trivial examples in gradle-samples-0.7.3 but there seems to be no documentation out there Dec 30 08:52:29 Im wondering how its possible to make slightly more advanced layouts. Layouts, with "overlapping" elements that does not seem as rigid as filling up a linearlayout with elements. Something like this, perhaps: https://docs.google.com/drawings/d/18UwsDG6cssdiIHOBYGxdhD4xImD6a_OB4cwSqrCaAyk Dec 30 08:54:54 Ideally the green part in the bottom should be a single element, but i dont think thats possible? Dec 30 08:55:26 Would probably have to use a GridLayout, and break the green part into 3 pieces, no? Dec 30 08:56:56 (The green segment is a fragment, which is why i'd like to avoid splitting it into multiple elements) Dec 30 08:59:55 RelativeLayout could do that. Dec 30 09:01:03 Can you elaborate? Im not sure i see how Dec 30 09:03:11 first component will be alignParentBottom with match_parent on the width, second component will be alignParentBottom with wrap_content on the width Dec 30 09:05:31 Thank you, i will give it a try Dec 30 09:12:27 That looks like a really good start, thanks. It seems like i have to use padding instead of specifying the height for the second component, i wonder if this will become a problem later on. Probably not Dec 30 09:38:48 i'm getting a Rendering Problems in Android Studio 0.4.0, it can't seem to resolve string names, even though if i build and run, they are properly resolved. i tried clean (which i found as a solution on SO), but that doesn't work. Dec 30 09:38:53 what else could it be? Dec 30 09:39:37 "Couldn't resolve resource @string/settings (3 similar errors not shown)" Dec 30 09:40:56 also tried restarting the program Dec 30 09:51:47 make sure you are not importing android.r Dec 30 10:13:30 how to Uploading a jpg image to server? Dec 30 10:39:22 hi, I am having issues updating patches from gerrit using repo, I am a repo newbe, anyone a clue on what would be a good workflow (I can download or checkout the patch from gerrit and I can change it locally but repo status will say there is no change Dec 30 10:39:32 guess I am missing something trivial in the flow Dec 30 10:59:56 anyone has experience in uploading an image to server Dec 30 11:25:23 http://imgur.com/gallery/ZfQqgQ9 Dec 30 11:27:02 storkme: :D **** BEGIN LOGGING AT Mon Dec 30 12:01:50 2013 Dec 30 12:33:05 when will you get the following message: I/ActivityManager( 1749): Killing 2060:com.android.externalstorage/u0a6 (adj 15): empty #17 Dec 30 12:52:51 Hello! Question of the day - is the recommended way of working to do JSON parsing off the UI threaD? Dec 30 12:53:12 I'm thinking yes, to avoid the frame skips and whatnot that just kills the experience. Dec 30 12:55:32 n20: yep, usually you'd do it in the AsyncTask (or whatnot) directly after loading it Dec 30 12:55:46 MDijkstra: THat's how I used to do it with my AsyncTasks Dec 30 12:56:10 We've recently moved over to Loaders in the rewrite we're doing, but it's currently just getting the data in the "loadInBackground()" Dec 30 12:56:59 and doing all the parsing and sorting on the UI thread. I think we need to address that :) Dec 30 12:57:09 Noticing the UI skipping frames is horrible Dec 30 12:57:29 and that's on the Nexus 5. I wonder how it performs on lower-end devices. :-) Dec 30 12:57:51 ah, I've wondered, are loaders supported by the support library? Dec 30 12:58:09 apparently they are Dec 30 12:58:17 Yup! Dec 30 12:59:36 can't you just do the json parsing in loadInBackground as well? Dec 30 13:02:25 http://porcupineprogrammer.blogspot.co.uk/2013/03/android-ui-struggles-making-button-with.html this is annoying. Dec 30 14:07:48 I'm looking for specific examples of fragmentation problems on android. Does anyone have any recent examples? Dec 30 14:12:47 I tried an app and accidentally travelled in time to 2011 Dec 30 14:15:34 anyone have experience with ormlite/ greedao Dec 30 14:15:40 Zaba, I knew android could be magical but not that magical Dec 30 14:24:34 I'm not sure I understand the question re: fragmentatiojn Dec 30 14:36:10 I'm looking for specific examples of fragmentation problems on android. Does anyone have any recent examples? I've recently encountered the problem with PendingIntent.getActivity calls with a 0 for the request code param on 4.3 devices. Dec 30 14:40:45 do you mean like, bugs existing only on specific versions? Dec 30 14:43:32 storkme, Sure, that seems like it's an example. Basically, I think of fragmentation as "I've tested my app on 3 devices, and on the 4th it behaves completely differently." Maybe that's a naive understanding. Dec 30 14:44:57 I recall there was once a bug with Listviews on the Droid Razer or something like that, where the fill parent in the xml layout for height didn't actually fill the parent and you had to do a hacky solution in the code to make it fill up all available space. I'm more looking for stuff like that I think. Dec 30 14:56:55 I am interested to to create a custom keyboard for android, so that I can use it in my existing apps. what topics I should go in depth ? Dec 30 14:57:25 pranav, search for "custom IME" Dec 30 14:58:03 pranav, documentation here: http://developer.android.com/guide/topics/text/creating-input-method.html Dec 30 15:00:54 custom ime, mmmm Dec 30 15:01:08 but if it's just for your own app, don't do a custom ime, that's overkill Dec 30 15:01:12 because IMEs are global Dec 30 15:10:34 farkerhaiku: pfn: Thank You guys :) Dec 30 15:11:14 and switching IMEs is somewhat of a painful UX Dec 30 15:11:41 pfn, I'm curious, if not with an IME, how would you do it? Dec 30 15:11:50 just a custom view Dec 30 15:11:59 why would you need an IME Dec 30 15:13:33 how about an EditText specifically for IP Addresses? I've specifically run into the problem where using my app on a specific phone was awkward (the '.' key wasn't on the numeric keypad Dec 30 15:14:04 Writing an IME with all of the acceptable inputs makes for a better user experience Dec 30 15:14:11 you don't need an IME for that Dec 30 15:14:17 you just create a custom view that has 0-9 and . Dec 30 15:14:45 and you just tie onClick listeners to the buttons to put the appropriate values into the edittext Dec 30 15:14:54 k Dec 30 15:14:58 so, you have the user switch IMEs when they have to enter an IP? Dec 30 15:15:27 and you have to have the user enable the IME prior to entering an IP? it's pretty painful Dec 30 15:20:57 Hmm, whenever I enter my PreferenceActivity (or display my PreferenceFragment), it's removing 80% of my values... :-) Dec 30 15:21:06 I smell a bug somewhere. Dec 30 15:42:17 on the topic of preferences, is it possible to set up a preference that clears other preference values when you use select it? (Basically I want a butter that removes the users oauth credentials from my app.) Dec 30 15:43:24 just make your button onclick handler make a prefs editor and remove or zero out the prefs you don't want. Or do it in your preferences activity. Dec 30 15:43:35 There is no zero-code solution as far as i know but it's certainly doable Dec 30 15:44:10 yeah, I'm trying to work out how best to do it in my preference activity. Dec 30 15:45:11 ah, apparently a top level Preference will do the trick. Dec 30 15:47:50 https://play.google.com/store/apps/details?id=com.kokoko.avgarguement Dec 30 15:48:27 1 star granted Dec 30 15:50:31 (please don't just join and advertise your app) Dec 30 15:50:55 (or if you're gonna do that, at least make sure it's really good) Dec 30 15:51:27 logging that your wife/girlfriend is consistently wrong in an app seems like impending doom Dec 30 15:52:34 yeah that kind of falls into "you can be right or you can be happy" Dec 30 15:55:28 "babe, look how many times you were wrong!" Dec 30 15:55:32 what could possibly go wrong Dec 30 15:56:30 30% of my apps users are still on 2.3 Dec 30 15:57:23 guess I'm sticking with the PreferenceActivity, then.. Dec 30 16:03:19 any one knows for motorola atrix how to get bricked phone to charge ? The phone is stuck after flash at the boot loader. Dec 30 16:07:04 turn it off and charge it Dec 30 16:07:13 30%? fuck them :p Dec 30 16:07:59 glad to give you guys a debate today lol Dec 30 16:08:43 my irc client is a small, non-representative sample size, but it's 14% on 2.2-2.3 Dec 30 16:08:46 so tempted. Dec 30 16:09:13 to be fair I think my app doesn't work properly on like most 4.0+ devices Dec 30 16:09:18 so my sample size is probably skewed Dec 30 16:09:21 that is another problem, yeah Dec 30 16:10:04 my only app that has a high representation in 2.3 distribution is like 3 years old Dec 30 16:10:09 (hasn't been updated in 3 years) Dec 30 16:10:13 and it's only 30% 2.3! Dec 30 16:10:34 last time I updated it was 2010/2/27 Dec 30 16:11:07 the rest is 3.0 and up Dec 30 16:11:32 I should update that app, and run it myself Dec 30 16:11:42 it's so annoying how my motox keeps turning the headset volume down after I reboot Dec 30 16:11:50 and it prompts me about hearing damage every time I turn it up Dec 30 16:12:13 hate that. Dec 30 16:12:44 my https://play.google.com/store/apps/details?id=com.hanhuy.android.a2dp.volume Dec 30 16:12:47 that probably works around it Dec 30 16:12:48 pfn: I think that warning is it's own app; i recall seeing it in the list of stuff you can disable under settings->apps Dec 30 16:12:51 but I haven't run it in forever Dec 30 16:12:54 dragorn, is that so Dec 30 16:13:01 it's been a bit since i had a moto running moto fw Dec 30 16:13:05 dragorn, I'll have to check that out Dec 30 16:13:07 but that's my recollection Dec 30 16:13:25 any one knows for motorola atrix how to get bricked phone to charge ? The phone is stuck after flash at the boot loader. Dec 30 16:13:47 does any one understand the options that are in boot loader screen which I can use ? Dec 30 16:13:50 My app is 80% on kitkat! But it's 4.2+ and I only have like 30 users Dec 30 16:14:22 1.5 up pfn Dec 30 16:14:37 mms_: Try #android or #android-root Dec 30 16:14:40 that is wicked sick ;-) Dec 30 16:14:47 ok Dec 30 16:14:55 Looney, last update was >3 years ago Dec 30 16:14:57 Lol does anyone has anything to say now? Dec 30 16:15:08 of course, back then it still ran on 1.5 and up, heh Dec 30 16:15:18 and, surprisingly, it still works on 4.4 Dec 30 16:15:49 ok, but you do have decent downloads Dec 30 16:17:06 my downloads are not matching what google says i know they update @ 12 PST seems like its not updating at all Dec 30 16:17:15 I want to customize in a word in the font size so that it stretches across the entire length, ie the screen-width adapts, how is that possible? Dec 30 16:18:11 Almost all my stuff is 4+ due to hw limitations Dec 30 16:18:19 the rest is 4+ due to "give a fuck" limitations Dec 30 16:18:49 wow Dec 30 16:19:16 so bad-ass dragorn :-P Dec 30 16:19:32 well, I need to tell people to get my app Dec 30 16:19:47 gave bit.ly link to my friend friend Dec 30 16:19:58 so he can share with people on Facebook Dec 30 16:20:07 and people can get the app started Dec 30 16:20:09 Looney: eh. It came down to there being a fairly small audience, and there isn't really a return on the time investment Dec 30 16:20:48 Looney: so while 2.3 is about 20% of the category, it's not worth chasing - it's going to be decreasing, they probably aren't using weird tools Dec 30 16:20:53 thats, why you should have targeted at least GB + Dec 30 16:21:10 yay, 20% only Dec 30 16:21:17 that is a breath of fresh air Dec 30 16:21:40 I want to customize in a word in the font size so that it stretches across the entire length, ie the screen-width adapts, how is that possible? Dec 30 16:21:48 of my 4+ users, i'm 22% 4.4 already Dec 30 16:22:05 and 37% 4.3 Dec 30 16:22:26 which would imply for the most part that I'm getting nexus and cyanogen stuff Dec 30 16:22:56 and 1% on 4.03/4 which is probably only some china devices now Dec 30 16:25:33 Looney: anyhow, comes down to, no-one has asked me for 2.x support, a bigger question is tablet support, but since my code needs telephony, that's fairly limited too. Dec 30 16:26:02 you lucky fella ;-) Dec 30 16:28:04 Is there a glass specific channel or is it discussed here? Dec 30 16:28:54 Don't know if there's a glass specific channel, but it's practically never discussed here Dec 30 16:29:14 is this about the GDK or the Mirror API? Dec 30 16:34:16 fdk Dec 30 16:34:27 *gdk, sorry Dec 30 16:36:18 check this out... i wonder why the spike this month? http://www.appbrain.com/stats/number-of-android-apps Dec 30 16:36:45 gotta get those christmass apps out Dec 30 16:37:18 ....yea maybe Dec 30 16:37:44 I'm surprised the low quality number isn't higher Dec 30 16:37:51 i'd bet they're all shitty soundboard craps Dec 30 16:39:36 yea.... maybe if the high quality was lower.. might just be a comparing thing Dec 30 16:39:51 I want to customize in a word in the font size so that it stretches across the entire length, ie the screen-width adapts, how is that possible? Dec 30 16:41:19 also, I wouldn't say those stats are necessarily 100% reliable Dec 30 16:42:01 I wonder where is apple then Dec 30 16:42:39 cupertino, usually Dec 30 16:49:39 usually? Dec 30 17:03:31 has anyone run into an issue where the lenovo yoga pad does not display the actionbar home icon? Dec 30 17:17:14 I am opening up a new android Intent. I have some TextViews that I setVisibility(view.INVISIBLE). I am getting error... cannot find symbol variable view... Dec 30 17:17:21 how do I resolve that in Android Studio? Dec 30 17:17:30 because it's View Dec 30 17:17:33 .. Dec 30 17:19:03 thanks... Dec 30 17:19:50 Hi, folks. How I can compile native code to support floating point? It is said that armv7a should do it by default, but FIXED_POINT is defined whenever I do. Dec 30 17:34:18 are underscores in @id a problem... like this... android:id="@id/btnNext_V01_s02" Dec 30 17:34:43 IrishGringo: Nope, but uppercase letters are AFAIK Dec 30 17:35:03 Or maybe not - I think I got an error for that once. Dec 30 17:35:03 :) Dec 30 17:35:16 Let me check. Dec 30 17:35:42 I get lots of wierdness from these on occassion... like right now Dec 30 17:36:57 I am also getting "Manifeast file does not end with final new line... quite often... but there seems to be a new line in it. Dec 30 17:37:02 Android Studio... Dec 30 17:37:20 IrishGringo: Are you defining oyur ID anywhere else by the way? Dec 30 17:37:40 I reckon you'd need to write it as android:id="@+id/btnNext_V01_s02" (note the +) Dec 30 17:38:17 It is very possible that I am duplicating the key... I will double check Dec 30 18:07:12 do we know that LG Optimus 4X HD has a bootloader which is pain in (you know where) to unlock Dec 30 18:08:58 Does anyone know how to make ADB not show system logs? Dec 30 18:10:01 hey guys! Dec 30 18:12:25 hi osmij_ Dec 30 18:12:27 I solved ALL my problems with screen rotation with a android:configChanges="orientation|screenSize"... But what is the correct way to save objects like VideView+MediaPlayer when rotating a Fragment? Dec 30 18:12:40 probably that Dec 30 18:12:47 or use a service? Dec 30 18:12:56 mediaplayers should certainly be in a service Dec 30 18:13:05 for audio at least. Dec 30 18:13:13 I don't think a user would need a service, since the video has no sound... Dec 30 18:13:18 for video you're probably alright with the screen rotation change. Dec 30 18:13:24 check out how mobo player does whatever they do Dec 30 18:13:25 osmij_: you probably want to call setRetainInstanceState(true) on your fragment Dec 30 18:13:57 Does anyone know of a random calendar event generator? Dec 30 18:14:23 TRomeo: setRetainInstanceState(true) didn't work for me. onCreate wasn't called, but video still re-started... Dec 30 18:15:26 is the videoView in your fragment's layout? or in the activity? Dec 30 18:16:53 TRomeo: VideoView is in separate Activity at the moment. In future there will be also a fragment for tablets. Though activity will be called for full screen Dec 30 18:17:41 osmij_: you'll want it in a fragment either way, and just have the fragment stae up the whole screen on phones Dec 30 18:17:52 I just wonder, how other people handle screen rotation? Maybe with Parcelable and onSaveInstanceState()?.. Dec 30 18:18:51 if it's just a videoView on the screen, you won't want to recreate the activity/fragment on rotation, so onSaveInstanceState wont get called Dec 30 18:19:00 TRomeo: oh, perhaps you're right... If I will open activity for full screen video will re-start... I guess I will move VideoView to fragment sooner than I thought... Dec 30 18:19:40 Does anyone know how expensive an SQLite Connection is? I am thinking of having multiple connections but I'm not sure how expensive it is to keep persistent connections to multiple sqlite files Dec 30 18:20:14 *sorry for my bad grammar* Dec 30 18:21:50 osmij_ fragments aren't that hard once you get used to them :) and they are really useful too Dec 30 18:21:54 hmm google play services (your device is not compatible with this version) Dec 30 18:22:04 i have only old htc desire to try my android stuff out Dec 30 18:22:19 is there a way how to get google play services on it even if google play states this? Dec 30 18:22:35 I need more practice.. Dec 30 18:25:13 I get this problem all the time in Android Studio... AS keeps changing my R class into.... android.R I have tried rebuilding project, but that never seems to work. Dec 30 18:25:17 any sugestions? Dec 30 18:26:52 for example... setContentView(R.layout.activity_zzf__v01__s00); converts to setContentView(android.R.layout.activity_zzf__v01__s00); and screws everything up Dec 30 18:28:30 I doubt it just randomly decides to change it to android.R Dec 30 18:30:10 IrishGringo: are you doing "import your.package.name.R" at the top of your classes? Dec 30 18:30:20 You're probably pressing some keyboard shortcut that fixes imports or something Dec 30 18:31:14 I try not to hit short cuts... Dec 30 18:31:28 but no... I have no android.R anywhere in my classes... Dec 30 18:34:01 I do have this.. package com.techlatin.logh; Dec 30 18:35:17 wow Dec 30 18:35:18 https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en Dec 30 18:35:28 how can android phone be not compatible with device Dec 30 18:36:33 TRomeo: what should I use for your.package.name sorry for dumb question Dec 30 18:37:09 IrishGringo: whatever you have set as your package name in your AndroidManifest.xml Dec 30 18:41:48 what's the best tutorial on animation Dec 30 18:50:46 ok, question time people Dec 30 18:50:52 how safe is android.os.Environment.getExternalStorageDirectory(); Dec 30 18:51:04 for devices with only phone memory Dec 30 18:52:03 Looney: it's fine. Devices without an sdcard will have a virtual /sdcard directory still Dec 30 18:52:46 yeah android requires sdcard Dec 30 18:52:50 Looney: you can also query if there is external storage and if it's available Dec 30 18:52:56 Looney: should be in the docs in the same general area Dec 30 18:52:57 so devices without emn always has virtual sdcard Dec 30 18:53:04 hello all , do you know if the contextWrapper is broken for wrappe startActivity() ? i need to wrappe this for my unit-Test . all wrapper function work fine except this :/ Dec 30 18:53:32 but yeah, anything w/out a real card should provide equivalent, and anything > 4.0 can't unmount it. You need to monitor status on < 4.0 since it could be exported as mass storage Dec 30 18:54:23 so, virtual sdcard directory saves the day Dec 30 18:55:00 I needed to make sure that I get past the path fixing/setting phase without triggering any exception Dec 30 18:55:32 yup, need to see if sdcard is mounted properly or otherwise Dec 30 18:57:38 would java people be OK, if I use _ with variable names in constructors Dec 30 18:59:12 probably. Dec 30 18:59:13 Looney: I wouldn't. Dec 30 18:59:47 so, how would Java people do it TRomeo Dec 30 19:00:17 Looney: camal case for all variable names Dec 30 19:00:24 I think they code with thesarus in hand to avoid using underscore in variable name :-) Dec 30 19:00:30 some people use mVariableName for member variables Dec 30 19:01:03 I asked only for case of passing it as parameter to constructor Dec 30 19:01:43 I'm not sure if I understand what you're asking... Dec 30 19:02:20 in my public class Fetcher extends Thread Dec 30 19:02:51 I have constructor public Fetcher(String _url , String _name) Dec 30 19:03:13 name and link are variables of my own class Dec 30 19:03:35 ah I see Dec 30 19:03:41 get the picture Dec 30 19:03:44 oh, good Dec 30 19:03:49 name the params the same thing as your member variables Dec 30 19:04:01 then in your constructor do this.url = url; Dec 30 19:04:05 this.name = name; Dec 30 19:05:44 I hate this :-P Dec 30 19:05:58 and to avoid this I use _ in variable names :-P Dec 30 19:06:47 I mean, you can do that and it will work Dec 30 19:06:53 but java peopel will get mad haha :P Dec 30 19:07:11 hi, i am trying to do some opengl stuff and downloaded a sample from developer.android.com ( http://developer.android.com/training/graphics/opengl/shapes.html ). But I dont understand the positioning of objects. For the square if I change squareCoords[] it does not behave as I expect at all... Dec 30 19:08:13 the position for top left changes top right and also the lower the value the more to the right it is drawn Dec 30 19:08:19 is this normal? o0 Dec 30 19:08:53 well I know that it has to work Dec 30 19:09:17 only wanted to know how much will I piss them :-P Dec 30 19:24:32 view tv = findViewById(R.id.tileView); Drawable d = tv.getBackground(); <-- the getBackground() is throwing null pointer. any ideas why this would be happening? Dec 30 19:24:58 tv is null, is it in your activities layout? Dec 30 19:25:24 I440r: or maybe you haven't called setContentView on your activity yet? Dec 30 19:25:32 tv isnt in my layout, im declaring it right there Dec 30 19:25:42 that's not how you declare it Dec 30 19:25:55 erm i thought i had.. i WAS doing before, let me see if i am still it might have gottend eleted! Dec 30 19:26:36 I440r if you don't have an elemetn with an id of "tileView" in your layout, that's your problem Dec 30 19:27:24 setContentView is in my oncreate Dec 30 19:27:37 i do have an element called tilevirew in my layout Dec 30 19:28:15 <|Agent_> Does Android offer any convenient input-stream-to-string utility class, or do I have to do the line-by-line StringBuilder thing? Dec 30 19:28:33 omg no i dont. my layouts are GONE! Dec 30 19:28:34 wtf Dec 30 19:28:49 I440r there you go Dec 30 19:28:56 no only my vertical layout is gone, my horizontal layout is still there Dec 30 19:28:59 <|Agent_> "I accidentally all my layouts!" Dec 30 19:29:01 wtf over lol. ty :) Dec 30 19:29:11 it wasnt me! it was YOU!!!!!!! Dec 30 19:29:23 iswydt Dec 30 19:32:12 yea. that sorta fixed it lol ty Dec 30 19:34:42 time to hit the bed Dec 30 19:35:10 will start thinking whether to write my handler as a stand-alone class Dec 30 19:35:18 orr implemet it in my activity Dec 30 19:35:54 runnable is the only class in the file at the moment Dec 30 19:37:45 how can i extract an apk? Dec 30 19:38:23 <|Agent_> Define "extract" Dec 30 19:38:32 extract everything from within it Dec 30 19:38:43 the apk has my deleted layout.xml in it Dec 30 19:38:45 <|Agent_> I think it is just a zip file Dec 30 19:38:48 well. in a compiled format i think Dec 30 19:38:54 no file blah.apk says its a jar file Dec 30 19:39:16 <|Agent_> A jar file is also a zip file :) Dec 30 19:39:43 oh Dec 30 19:39:49 then why wont unzip unzip it Dec 30 19:39:58 how good it bitbucket tracker Dec 30 19:40:14 ok it did Dec 30 19:40:26 <|Agent_> If it does compile the layout (and I expect it would), it may only have compiled it to a binary xml file of some kind for which you can get an unpacker. Dec 30 19:40:28 so how do i decompile my main.xml to get the original xml back? Dec 30 19:41:09 <|Agent_> check this: http://stackoverflow.com/questions/16777049/encode-decode-androidmanifest-xml-inside-apk Dec 30 19:41:30 <|Agent_> or this: http://stackoverflow.com/questions/4191762/how-to-view-androidmanifest-xml-from-apk-file Dec 30 19:41:41 err is that a tool that runs on the android because i dont seem to have it as part of my android dev tools Dec 30 19:41:55 a tool that runs ON the phone would be a nightmare to use. too klunky Dec 30 19:42:30 <|Agent_> the second link? A third-party tool Dec 30 19:42:57 aha yes i see a thread posting showing how to use ut Dec 30 19:42:58 <|Agent_> both links, actually, I guess they refer to the same tool Dec 30 19:42:58 it Dec 30 19:43:12 its actually a JAR and you run java -blah -blah -blah Dec 30 19:43:20 which should work for me :) Dec 30 19:44:07 over and out peeps ;-) Dec 30 19:57:11 when i install an app of my own, where in the android file system is the apk placed? Dec 30 19:59:39 I440r they're under /data/app … but you shouldn't need to worry about that if you're just developing apps Dec 30 20:02:44 TRomeo, im trying to recover a lost Main.xml Dec 30 20:03:34 I440r ah I see. Well you won't be able to get into the /data/app directory unless you have root :/ Dec 30 20:03:42 i do Dec 30 20:05:08 So I have a progressBar and just want to having it show the same kind of indeterminate progress as shown here Dec 30 20:05:08 http://developer.android.com/design/media/progress_activity.png Dec 30 20:05:17 but I cant seem to figure out how.. Im guessing its fairly simple :) Dec 30 20:05:34 rescued lol. tyvm :P~ Dec 30 20:07:32 Untouchab1e: http://developer.android.com/reference/android/widget/ProgressBar.html#setIndeterminate%28boolean%29 Dec 30 20:08:43 lov thanks Dec 30 20:19:18 I have an activity where I would like to display an image in either an ImageView or a WebView, is this posible or to I need to make two activities? One with ImageView and one with WebView? Dec 30 20:20:40 outlaw84: have both views in a FrameLayout, then set one as visibility="GONE" and one as visibility="VISIBLE" depending on what you need Dec 30 20:20:48 Does anyone have a good tutorial on how to implement Grid Lists? http://developer.android.com/design/building-blocks/grid-lists.html Dec 30 20:21:06 TRomeo: Thanks, I'll try that Dec 30 20:21:48 Untouchab1e: http://developer.android.com/guide/topics/ui/layout/gridview.html Dec 30 20:24:31 TRomeo right, but whats the difference between a gridView and gridList? Dec 30 20:25:15 Untouchab1e: designers call them grid lists, but the class that android uses to implement that pattern is the GridView Dec 30 20:25:36 so they are the same thing, just different names Dec 30 20:25:40 depending on the audience Dec 30 20:26:18 TRomeo, the T doesnt stand for "Tango" does it ? :) Dec 30 20:26:31 has anyone worked with providing dependencies for just a specific build type? debugCompile or releaseCompile work fine for me, but not with a custom build type. This is what my build.gradle looks like http://pastebin.com/tfG11pFX Dec 30 20:26:34 I440r: it does not Dec 30 20:26:38 :) Dec 30 20:27:12 is there anything better then commonsware book to learn android? Dec 30 20:27:20 internet. Dec 30 20:27:33 storkme, way too wast Dec 30 20:29:03 the commonsbook kind of sucks, its like 99% of all android tutorials/examples, it either BURIES shit inside 540 gigs of CRUD making it impossible to understand or else it shows incomplete examples Dec 30 20:29:11 unless you're starting from scratch learning java imo it's better to just learn from developer.android.com Dec 30 20:29:16 learning android is like swimming backwrds through mud Dec 30 20:29:32 also because android is still evolving Dec 30 20:29:39 still? Dec 30 20:29:51 well, it always will of course Dec 30 20:30:02 but the pace has slowed somewhat in recent years Dec 30 20:30:11 the thing I find annoying about the books they are quite outdated even the commonsware one Dec 30 20:30:22 or go in detail about legacy stuff Dec 30 20:30:37 this thing was introduced in 1.6 android, I don't care, I'm not interested in history much Dec 30 20:31:14 but history is good no? :P Dec 30 20:31:26 jalcine, maybe if you have the time for that Dec 30 20:31:32 I've learned most of what I know from d.a.com and the rest from breaking shit Dec 30 20:32:12 that is one way to go about, I made the mistake to start learning android with android studio Dec 30 20:32:38 that thing has the potential, but is slow and broken Dec 30 20:32:59 the only thing I like about is the "real-time" layout editor Dec 30 20:33:12 for some crazy reason I thought, hey IntelliJ that should be awesome no more Eclipse Dec 30 20:33:13 but I've gotten so used to writing out layouts and just testing on my phone Dec 30 20:33:39 jalcine, but the intel emulator with gpu acceleration is faster than testing on phone? Dec 30 20:34:01 call me cuckoo, but having it in my hand felt better Dec 30 20:34:06 I did emulate often though Dec 30 20:34:42 hm, interesting Dec 30 20:34:54 what's wrong with Android Studio exactly? Dec 30 20:35:03 anyone want to do my compsci homework? Dec 30 20:35:06 I think it's a giant improvement over Eclipse Dec 30 20:35:11 MDijkstra: I like it Dec 30 20:35:17 likewise, I'm a huge fanboy. Dec 30 20:35:22 it fits better on my KDE/Linux desktop than Eclipse Dec 30 20:35:23 even though it's still a bit buggy, but so is Eclipse Dec 30 20:35:24 jk I'm wondering the best way to track down what's killing my activity in this fragment Dec 30 20:35:27 took me ~10 hours to port everything over, but I have no regrets. Dec 30 20:35:27 MDijkstra, first if you don't know android it takes some time to figure out where everything is Dec 30 20:35:32 I like intellij a lot as well Dec 30 20:35:35 MDijkstra, gradle is freakishly slow Dec 30 20:35:51 ideavim, sbt, and scala support make it a huge win over eclipse Dec 30 20:35:57 MDijkstra, most books and tutorials don't give you instructions for android studio Dec 30 20:36:02 Protip: Disable the android designer plugin.. You still get preview, just no drag'n'drop Dec 30 20:36:07 right, sure, most of Google's stuff does Dec 30 20:36:08 not to mention, intellij is considerably faster than eclipse Dec 30 20:36:12 though Dec 30 20:36:19 the interface itself is much faster Dec 30 20:36:24 but the building process is kind of slow Dec 30 20:36:31 pfn, intelij yes, but not android studio Dec 30 20:36:40 I also LOVE Intellij but not android studio Dec 30 20:36:44 if you need ide specific instructions, you are completely hopeless Dec 30 20:36:45 it's still 0.4 though Dec 30 20:37:01 what's not to like in android studio Dec 30 20:37:02 pfn, I'm just starting out Dec 30 20:37:03 I also am able to understand the Gradle stuff Dec 30 20:37:05 gotta learn from trial and error Dec 30 20:37:11 whereas Eclipse is just one giant black box Dec 30 20:37:15 it's intellij with shit stripped out Dec 30 20:37:16 I'm like against Gradle lol Dec 30 20:37:25 MindfulMonk: Android Studio and IntelliJ are exactly the same thing Dec 30 20:37:26 unless you've studied Eclipse for 15 years Dec 30 20:37:32 SimonVT: sweet, thanks. Dec 30 20:37:39 JakeWharton, nope Dec 30 20:37:52 yep Dec 30 20:37:58 * jalcine watches Dec 30 20:37:58 MindfulMonk, they are the same thing Dec 30 20:38:02 TRomeo: It worked out quite well I might add :) Dec 30 20:38:06 MindfulMonk: they are the same thing Dec 30 20:38:08 JakeWharton, android studio is build on Idea Dec 30 20:38:22 outlaw84: glad I coudl help :D Dec 30 20:38:22 its like there is eclipse and then there is ADT Dec 30 20:38:25 isn't it just a bunch of IDEA plugins Dec 30 20:38:31 ... Dec 30 20:38:37 android studio and intellij 13 are practically the same thing Dec 30 20:38:47 kinda like how ADT is just a bunch of plugins for eclipse..? Dec 30 20:38:47 yeah, but isn't the new release of IntelliJ just basically Android Studio + extra stuff? Dec 30 20:38:54 (such as an sqlite editor) Dec 30 20:38:57 storkme: haha. i think he just won my argument for me Dec 30 20:39:02 TRomeo: Thanks again. but is the android:visibility="gone" limited to just working with FrameLayout or cant i be used with other combintations as well? Dec 30 20:39:21 outlaw84: no, it works everywhere Dec 30 20:39:24 well just a bunch of plugins Dec 30 20:39:28 if you wish Dec 30 20:39:58 both Google and JetBrains are working on the Gradle plugin, Android plugin, and the IDE. They merge each others changes periodically. Dec 30 20:40:00 honestly I would love to have a proper vim setup for android Dec 30 20:40:10 what's stopping you..? Dec 30 20:40:21 TRomeo: so android:visibility="gone" is the general way to go if you wanna have widgets in an activity that you wanna be able to hide and show on demand? Dec 30 20:40:32 storkme, the long long process of setting it all up Dec 30 20:40:47 when I just want to create a simple comic book library Dec 30 20:40:51 I thought vim people enjoyed that sort of thing Dec 30 20:40:53 tbh using anything less than an IDE is going to make me so much less productive Dec 30 20:41:02 outlaw84: generally yes. But be careful because it's going to have to re-draw everything each time you change the visibility Dec 30 20:41:05 I mean, using a programming editor for python is fine Dec 30 20:41:07 MindfulMonk: me too Dec 30 20:41:11 but android is just going to be a nightmare Dec 30 20:41:18 storkme, oh I enjoy it, but as I said time constrains :) Dec 30 20:41:19 storkme: lololololol Dec 30 20:41:51 MindfulMonk: http://plugins.jetbrains.com/plugin/164 Dec 30 20:41:57 TRomeo, no Dec 30 20:42:06 I know thats IDEAVim? Dec 30 20:42:07 but while Android Studio is still missing some stuff, Eclipse is also pretty broken Dec 30 20:42:19 MDijkstra, true, but less broken Dec 30 20:42:20 I still have to export to apk 4-5x before it works Dec 30 20:42:26 TRomeo: Yea, I'll be building up the gui in OnStart with AsyncTask so I'll stay away for changeing the layout once it is done Dec 30 20:42:36 yeah it's IDEAVim. one of my cowkers uses it and he loves it Dec 30 20:42:54 I think the problem with the old setup is eclipse is actually just not very good so it isn't gonna get much better by working on ADT.. whereas Intellij is pretty great and it's only going to get better. Dec 30 20:43:07 outlaw84: don't change the visibility in an asynctask, you want to make these changes on the UI thread Dec 30 20:43:28 storkme, yeah, but I can't follow a single tutorial without wasting time on learning the IDE instead of learning Android Dec 30 20:43:44 TRomeo: not even in onPostExecute? Dec 30 20:43:45 outlaw84 I only meant, don't hide and show dozens of views just because you can :) Dec 30 20:43:47 it'll take you a few days to learn the ropes, but it'll be worth it. Dec 30 20:43:51 Is it possible to put a timer for a Spinner so it spins for a set time then closes? Dec 30 20:43:54 what does it mean to learn Android? lol Dec 30 20:44:00 storkme, I have 8 days till deadline :D Dec 30 20:44:01 the APIs? Dec 30 20:44:02 MindfulMonk: it's all part of the process. Once you learn the IDE you won't have to re-learn it presumably Dec 30 20:44:15 then for the love of god don't switch to android studio yet :p Dec 30 20:44:29 (I made that mistake ~2 days before a deadline) Dec 30 20:44:30 Since all the tutorials expect you to use the IDE, you can either try to become an expert and do things manually, or just get through it Dec 30 20:44:36 dragorn, that is why I use Vim for most of my stuff, never going to relearn something :) Dec 30 20:45:11 MindfulMonk: you're going to have a lot harder time of things trying to do android in vim than just doing it with eclipse. Dec 30 20:45:22 Is it possible to put a timer for a Spinner so it spins for a set time then closes? Dec 30 20:45:40 started off on AS, and glad i bit the bullet early Dec 30 20:46:07 AS seems to generate less hate for me than eclipse, but it still randomly screws me on an update Dec 30 20:46:28 I will probably ask more productive questions. I have a sqlite db of 100k entries(comics) where and how should I store that? Dec 30 20:46:55 definately not on the phone Dec 30 20:47:21 the user can search the db and select which comics he likes Dec 30 20:47:21 has screwed me without fail every update lol Dec 30 20:47:43 most of the 'your project is now broken' requires 5s to fix though Dec 30 20:47:50 yep Dec 30 20:47:52 then that get saved to the phone(would be great if I could save that to the cloud somewhere too) Dec 30 20:48:00 i've had some nasty bugs though too Dec 30 20:48:02 they should provide a way to quickly upgrade the gradle version though Dec 30 20:48:13 yes Dec 30 20:48:15 seriously Dec 30 20:48:49 Like changing a single number in gradlew? Dec 30 20:49:02 yeah, I know Dec 30 20:49:44 100k isn't necessarily too much to put on a phone. otherwise, time to buy a server and write a rest interface Dec 30 20:50:04 I'm assuming the gradle version used will eventually stabilize as well so this shouldn't be updated every release Dec 30 20:50:05 dragorn, no SaaS or google play cloud solution? Dec 30 20:50:06 Wow, putting the GSON parsing in the doInBackground() removed the frame skip completely LOL Dec 30 20:50:07 :-) Dec 30 20:50:17 \o/ Dec 30 20:50:51 Which is quite nice if you ask me Dec 30 20:50:53 you could probably put it on something on amazon and write a rest interface, yes Dec 30 20:50:55 MDijkstra: I'm assuming that once it hits release they'll start accounting for compatibility Dec 30 20:51:12 MindfulMonk: parse.com has a decent cloud based solution Dec 30 20:51:18 TRomeo, thanks Dec 30 20:53:13 for some reason I thought google would offer something like parse.com Dec 30 20:55:56 what is your opinion on ActionBarSherlock? Should we still try to support the pre 4.0 devices? Dec 30 20:56:05 or it isn't worth the effort? Dec 30 20:56:06 no Dec 30 20:56:13 especially for someone starting out? Dec 30 20:56:13 it's not worth the effort Dec 30 20:56:24 absolutely for something new Dec 30 20:56:31 depends on your userbase, 30% of my users are still on 2.3.. Dec 30 20:56:31 MindfulMonk: depends on your target audience, imo Dec 30 20:56:47 developer productivity and app quality go up by a massive factor when you drop pre-ICS Dec 30 20:56:52 I'm seeing around 5% on 2.2 and 2.3 Dec 30 20:56:54 MDijkstra, userbase? One Nexus 4 Dec 30 20:57:12 for most of my apps Dec 30 20:57:37 probably going to drop 2.x support as well next release Dec 30 20:57:49 JakeWharton, from the commonsware book I got the impression you just add ActionBarSherlock and append Support to each class and it would all just work? Dec 30 20:58:00 mostly. there's some other tiny tweaks Dec 30 20:58:22 so what is that about the massive factor? Dec 30 20:58:25 different base activity, change imports to ABS, change theme to Theme.Sherlock, use getSupportActionBar() Dec 30 20:58:45 that doesn't account for all the other mountains of bullshit you have to deal with when you support froyo+ Dec 30 20:58:46 or did you mean you won't have to reimplement a lot of classes aka boilerplate? Dec 30 20:59:08 like themes and getSupportNonsense() and bugs and missing new APIs and ... Dec 30 20:59:50 it's going to be more of a pain if you start getting into stuff such as the new animation API's Dec 30 20:59:59 or the download manager Dec 30 21:00:55 it's probably not worth it, especially if you're not breaking the app for legacy users Dec 30 21:04:29 for sure Dec 30 21:08:53 i have a class file thats getting a bit bloated, i would like to factor some of the sources of this class file into a separate file but NOT create a new class Dec 30 21:09:03 is it possible to make this new file part of the old class? Dec 30 21:09:32 no Dec 30 21:09:56 damn. that kind of sucks. thats like enforcing BLOAT Dec 30 21:11:19 sounds like you should just delegate the responsibilities of your mega-class to other classes Dec 30 21:11:28 the words you're writing are making me hurt Dec 30 21:11:32 would it be bad to have a default empty constructor and make all the methods static? Dec 30 21:11:38 I440r, if a class is that big it probably does too many things Dec 30 21:11:58 I am using Picasso right now to manage images in my app, and I am having issues deciding how I should go about creating a custom ImageView with pinch zoom capabilities when Picasso dumps the image straight an ImageView, whereas all of the custom pinch zoom enabled ImageViews I see (such as in http://stackoverflow.com/questions/6650398/android-imageview-zoom-in-and-zoom-out) require me to set a BitMap manually after creating the CustomImageVie Dec 30 21:11:58 w object Dec 30 21:12:35 it just looks to me like this one section of code belongs in a separate file but its part of this class Dec 30 21:12:35 yiati: look into https://github.com/chrisbanes/PhotoView Dec 30 21:12:43 +1 to PhotoView Dec 30 21:13:09 btw is there like a single place to learn about the most used libs? Dec 30 21:13:17 like you showed now PhotoView Dec 30 21:13:41 I just google :) and read through here. I seem to find quite a few doing that Dec 30 21:14:58 Thanks jaynewstrom, I will try implementing it Dec 30 21:15:31 it's not to bad. I use it with Picasso right now. Dec 30 21:15:39 works nicely Dec 30 21:16:04 anyone able to help with a web dev issue occurring on Android? Dec 30 21:16:59 ask the question blufenderstrat07 and you will see Dec 30 21:17:27 Why do I always seem to mess up my 9patch? :D Dec 30 21:18:32 If I have a shadow bit on my 9patch that I want to remain EXACTLY the same, ie not stretch, just allow a "horizontal tiling behavior". Dec 30 21:18:41 A web application I develop has an "Export to .XLS" option. The XLS file itself is generated via PHP and then output to the browser as an attachment with the MIME type "application/vnd.ms-excel". This works great on a desktop browser and other mobile devices. However, on Android devices, it attempts to start a download, and then simply displays the message "Download Unsuccessful.". According to the web server logs, th Dec 30 21:21:09 Guys mind if I ask stupid questions with meaning? of course ot Dec 30 21:21:10 *not Dec 30 21:21:26 What's a recommended/proven means of a consuming REST apis for Android? Dec 30 21:22:19 when you define an int for startActivityForResult(intent, int); are there any guidlines for which numbers you should or should not use? Dec 30 21:22:36 jalcine: a lot of people here use Retrofit. I haven't used it yet though Dec 30 21:22:52 jalcine: you probably want a combination of GSON, OKHttp, an IntentService, and an Event buss like Otto Dec 30 21:22:56 but really it depends on your needs Dec 30 21:23:41 jaynewstrom, JakeWharton: PhotoView is in a maven repo right, so I should be able to just add it to my gradle file with "compile 'com.github.chrisbanes.photoview:1.2.2'" ? Dec 30 21:23:49 yep Dec 30 21:24:19 thanks, I'll play with them all Dec 30 21:24:22 well, not exactly like that Dec 30 21:24:31 it's only the second to last day of the year lol Dec 30 21:24:50 you need a ":library" in there between the groupId and version Dec 30 21:25:20 MindfulMonk, anyway, if you want vim, just use ideavim Dec 30 21:25:27 at least the ergonomics are there Dec 30 21:25:36 I'm trying to use android studio on a gradle project, and it's stuck on "Refreshing project…" forever Dec 30 21:25:38 is this normal? Dec 30 21:26:08 durka42, probably not Dec 30 21:26:16 you can click the text Dec 30 21:26:30 think is shows what it's loading/hanging on Dec 30 21:26:53 s/is/it Dec 30 21:27:14 http://www.seas.upenn.edu/~aburka/tmp/Screen%20Shot%202013-12-30%20at%204.27.23%20PM.png Dec 30 21:27:17 not very informative :/ Dec 30 21:27:35 durka42 see if you can open the gradle console Dec 30 21:27:59 I opened it, but it's empty Dec 30 21:28:01 if not, shut it down and do gradle clean from the command line to see if its having trouble resolving deps or something Dec 30 21:28:07 I did that, actually Dec 30 21:28:14 i notice my gradle console is empty if its NOT 'in process' compile Dec 30 21:28:37 oh wells, try from command line then :) Dec 30 21:28:59 also maybe make sure you are using latest gradle 0.7.3 Dec 30 21:29:04 ? Dec 30 21:29:06 gradle 1.9 Dec 30 21:29:14 since android doesn't work with gradle 1.10 Dec 30 21:29:20 plugin 0.7.3 Dec 30 21:29:26 uses gradle 1.9, yeah Dec 30 21:29:47 pretty sure I am, since I upgraded the plugin today Dec 30 21:30:11 wait, there are wrong values in the .idea directory Dec 30 21:30:16 paths on someone else's computer Dec 30 21:30:21 get rid of it and iml files Dec 30 21:30:21 can I delete that directory maybe? Dec 30 21:30:25 and build Dec 30 21:30:27 dir Dec 30 21:30:31 I'm having some difficulty implementing Gson for deserializing a very complicated JSON object… I thought of using RuntimeTypeAdapter, but there are no relevant type fields to assist in deserialization. Does anyone have a good example of deserializing an object comprising multiple arrays of different-typed objects? I'm trying to use a TypeAdapterFactory. Does that sound like the best path to success? Dec 30 21:30:51 any ideas on how to make an .xls attachment in a website work with the Android browser? All I get is "download unsuccessful". Dec 30 21:30:52 make sure you're backed up just in case though :P Dec 30 21:31:11 :P I keep getting "Could not find com.github.chrisbanes.photoview:1.2.2:." while trying to import Photoview Dec 30 21:31:28 Eeeeeee: yeah it's just a git checkout, I haven't been able to do any work yet :) Dec 30 21:31:39 now AS won't open the project, since I deleted .idea :p Dec 30 21:31:42 I guess I need to import it? Dec 30 21:31:45 YA Dec 30 21:31:51 er caps.. Dec 30 21:31:54 yiati: Your syntax is wrong in the build.gradle, as Jake pointed out Dec 30 21:32:15 Oh okay I see that now Dec 30 21:32:35 okay… I'll choose option B, "fuck you android studio" Dec 30 21:32:41 (which is what happened last time I tried to use it) Dec 30 21:32:51 what's the problem now Dec 30 21:32:59 Eeeeeee: when I try to import the project, it hangs on "Building TestInput project info" Dec 30 21:33:20 did you open gradle/ and change properties? Dec 30 21:33:24 within the project itself Dec 30 21:33:36 no, but I think AS changed the sdk dir for me Dec 30 21:33:39 you have to update that version number in there Dec 30 21:33:44 trust me Dec 30 21:34:17 if you didn't do it, it's not done. might not be your problem, but it eliminates one potential cause Dec 30 21:34:25 okay Dec 30 21:34:26 let's try that Dec 30 21:34:53 Eeeeeee: there is gradle/wrapper... Dec 30 21:35:08 yeah then properties Dec 30 21:35:33 gradle/wrapper/gradle-wrapper.properties? Dec 30 21:35:34 delete other hidden .gradle folder too if you didn't Dec 30 21:35:47 yes sir Dec 30 21:36:02 http://pastebin.com/QqiCkTeu Dec 30 21:38:44 did you delete other hidden .gradle/ folder earlier? Dec 30 21:39:19 Eeeeeee: yes Dec 30 21:39:32 but it reappears when I run "gradle clean" Dec 30 21:40:28 from console? Dec 30 21:41:45 yeah Dec 30 21:45:36 previously an eclipse project? Dec 30 21:46:39 Eeeeeee: I don't think so. I can ask the dev what he's using. All I see in the git repo are the gradle files Dec 30 21:46:50 my responses slowed down because I found this http://stackoverflow.com/questions/17326162/can-you-deploy-to-a-device-via-gradle-from-the-command-line-in-android-studio Dec 30 21:47:11 i would try building it using command line Dec 30 21:48:10 yeah, it works on the command line Dec 30 21:48:13 maybe even copy to new folder, and redelete same junk, then build it using --stacktrace Dec 30 21:48:38 well it doesn't crash on the command line anymore, since I downgraded to gradle 1.9 Dec 30 21:48:44 do you have old one linked on environment variable? Dec 30 21:49:36 the only android-related environment variable is ANDROID_HOME=/usr/local/opt/android-sdk Dec 30 21:51:18 if it's building without error just push it to device with adb Dec 30 21:52:26 yep that's what I'm doing :p Dec 30 21:52:43 maybe I can import the project to eclipse which is what I use for my other android projects now Dec 30 21:52:46 shouldn Dec 30 21:52:51 t be a problem. Dec 30 21:54:03 durka42 import the gradle project into eclipse? good luck ;) Dec 30 21:54:11 Hello guys Dec 30 21:54:20 why not just ask your fellow dev, wtf is going on :) Dec 30 21:54:23 g00s: yeah I've tried that before with a different project… didn't go so well Dec 30 21:54:25 yes I will ask him Dec 30 21:54:41 Android Studio is pretty and I'm glad google is pushing it s the future… I just wish it worked Dec 30 21:54:48 what video tutorial would you recommend for a person who already knows java? Dec 30 21:54:52 it's user error Dec 30 21:55:11 Wixy video turorial on general android ? Dec 30 21:55:20 yep Dec 30 21:55:37 I'm expecting it to cover the most commond/used modules Dec 30 21:55:38 Eeeeeee: user error so bad that extensive debugging from an expert such as yourself turns up zilch? Dec 30 21:55:45 lol Dec 30 21:55:46 common* Dec 30 21:55:50 you know i'm new Dec 30 21:56:08 i'm just speaking from all my build errors with gradle Dec 30 21:56:09 and part of "I wish it worked" is "I wish google provided documentation so user error is avoidable" Dec 30 21:56:17 :) Dec 30 21:56:40 g00s, you know any? Dec 30 21:57:39 Wixy i thought there was a coursera class Dec 30 21:57:49 yep, I found this one Dec 30 21:57:55 you think it's good? Dec 30 21:57:57 https://www.coursera.org/course/android Dec 30 21:58:28 i haven't tried it, honestly Dec 30 21:58:46 you could try to piece together curriculum from I/O videos dating back from 2009 Dec 30 21:58:59 i think oreilly and informit also have video series ($$$) Dec 30 21:59:14 they had big sales before xmas, not sure about now Dec 30 21:59:37 i dont learn very well from video; not enough patience :) Dec 30 21:59:53 prefer to read a good book Dec 30 22:00:26 the problem with coursera's course is that it starts in 20 days Dec 30 22:00:36 I can't watch all the videos now Dec 30 22:01:17 anyone familiar with webapp development for Android? Dec 30 22:01:35 specifically, any of the quirks when dealing with the default Android browser? Dec 30 22:02:01 durka42 yeah, google's like, it says preview bitches, it doesn't have to work. When it gets bad, only luck I've had is wiping completely, then test importing until I fix any random update bugs Dec 30 22:02:27 :) Dec 30 22:02:36 I guess since "beta" now means "stable", they have to say "preview" :p Dec 30 22:02:47 hahaha Dec 30 22:02:51 seriously Dec 30 22:03:00 admittedly the last time I tried to use AS was during a hackathon and we didn't really have any time to debug Dec 30 22:03:16 we ended up with the backend (me) in eclipse with others designing the activities in android studio Dec 30 22:03:18 what a mess Dec 30 22:04:42 stupid question - is there a way to debug HTTP requests on an android device? If so, can someone point me in the right direction? Dec 30 22:05:48 stupid answer - if you're worried about the requests and not necessarily the android part, you can just run the requests on a computer with curl Dec 30 22:05:51 blufenderstrat07: what do you mean by that? Dec 30 22:06:03 http://www.androidpit.com/200-Free-Tutorial-Videos-On-How-To-Develop-Android-Apps Dec 30 22:06:07 this is scary! Dec 30 22:06:10 200 free tutorials? Dec 30 22:06:17 come on! which one is the ultimate tutorial? :P Dec 30 22:06:23 free?! what's the catch?? Dec 30 22:06:26 actually, I am worried about the android part lol. The request works fine on other platforms, only Android seems to be the issue. Just not sure where I'm going wrong with my code. Dec 30 22:06:40 Wixy: I can give you the ultimate tutorial but it'll cost you $399.95 and have 200 steps Dec 30 22:06:46 but thankfully each step is a video Dec 30 22:07:15 evanc, which one is it? Dec 30 22:07:30 Wixy: $399.95, please Dec 30 22:07:48 link or something? Dec 30 22:07:53 http://www.androidpit.com/200-Free-Tutorial-Videos-On-How-To-Develop-Android-Apps Dec 30 22:08:06 lol Dec 30 22:08:16 <_Auron_> heh Dec 30 22:08:29 hmm, do you have a payment plan on that or something Dec 30 22:08:32 $399.95 seems a little steep Dec 30 22:08:50 I wanna play some normals, wtf :( Dec 30 22:08:52 durka42: 12 easy monthly payments of $99.95 Dec 30 22:08:55 durka42: only $399.90 per month for 3 months Dec 30 22:09:01 oops, wrong channel Dec 30 22:09:03 evanc: I'm having an issue with my webapp on Android devices, and want to be able to try to debug the requests made by the device during the cource of requesting the non-working file Dec 30 22:09:21 durka42 if you get absolutely stuck with nowhere else to turn send me the project and I'll fix. As long as it's a simple gradle implementation Dec 30 22:09:39 durka42: is there a way to see the requests in addition to how the device is handling them? Dec 30 22:09:41 thanks, let me ping the repo owner first :) Dec 30 22:10:12 blufenderstrat07: I don't really know, but maybe this? https://developers.google.com/chrome-developer-tools/docs/remote-debugging Dec 30 22:12:34 durka42: thanks, that might work. It's my best bet so far, since the webapp compatibility docs really suck. Dec 30 22:12:35 hello :D Dec 30 22:15:35 blufenderstrat07 access logs on the server, debug tools + http://developer.android.com/tools/debugging/debugging-log.html should fix you up right. I'm rockin a blue strat as well ;) highway 1 model though lol Dec 30 22:18:25 Eeeeeee: thanks! access logs aren't doing me any good, since even though the device shows "download unsuccessful", the server shows that the request completed successfully with a 200 status. Any my blue strat is a Mexican strat, but a strat all the same lol Dec 30 22:22:16 yeah highway 1 is the nice way of saying mexican lol Dec 30 22:23:06 why might this be the case?: this works perfectly every time: bottomTray.setVisibility(View.GONE); but this only sometimes works, often requiring you to click on the spot where the bottomTray is supposed to be in order for it to appear on the screen: bottomTray.setVisibility(View.VISIBLE); Dec 30 22:23:32 Eeeeeee: ah. Mine's Mexican, but doesn't have the highway 1 moniker. Sounds like all highway 1s are Mexican made though Dec 30 22:24:58 Eeeeeee: so the server shows the request complete's successfully. Nothing looks abnormal about the request the Android device is sending. However, the download still fails. ever dealt with HTML attachments on an Android device? Dec 30 22:25:09 *completes Dec 30 22:29:11 what should i use to redraw either a specific object on the screen or the entire screen? Dec 30 22:29:47 bottomTray.refreshDrawableState(); feels right, but it doesn't seem to solve this problem Dec 30 22:30:27 can an activity have more than one intent-filter? Dec 30 22:32:12 yes Dec 30 22:33:12 mmm can an intent-filter have more than one data? Dec 30 22:33:25 Trying to figure out why my app is bombing on intercepting urls Dec 30 22:33:42 prgmmax: you can have multiple intent-filters Dec 30 22:34:25 prgmmax: all of rules have to match Dec 30 22:34:30 http://developer.android.com/guide/topics/manifest/data-element.html Dec 30 22:34:38 (I think?) Dec 30 22:36:08 ohhh interesting Dec 30 22:36:21 so if I want to handle both http and https Dec 30 22:36:34 or both www.mysite.com and mysite.com and ca.mysite.com Dec 30 22:36:50 they get combined into one intent-filter Dec 30 22:36:58 so maybe I need to put them in separate intent filters Dec 30 22:37:42 or maybe they combine, like "We can handle either http or https" Dec 30 22:38:02 so I've got a TextView with some custom ClickableSpans on it inside a ListView and I'm trying to get it to work so that a click to the ClickableSpan fires off the click event, but a click to any other non-clickable part of the TextView triggers a call to listview.onListItemClick but so far I'm having no luck - the spans are clickable fine but the rest of the textview seems to swallow the click events. Dec 30 22:46:18 mmm crap. I tried to comment out all the other activity's data so they wouldn't potentially be interfering Dec 30 22:46:45 just have one data (but two intent-filters) on my main activity: http://www.mysite.com/android Dec 30 22:46:59 opening the browser and going there, my app doesn't show up on the list of apps to handle it Dec 30 22:47:12 interestingly - the custom ClickableSpan doesn't seem to make a difference.. even just using autoLink="web" also seems to swallow the click events Dec 30 22:47:16 there are 3: the default browser, chrome, and an unofficial app Dec 30 22:49:35 Hello! I need help understanding the NDK things. There is this library: https://github.com/google/liquidfun . I would like to use it in my app. I don't want to write my whole app in C++, though, so I was wondering whether that library can be referenced from within a regular 'S'DK project. Dec 30 22:50:50 When using gradle, the directory structure seems to be: appname/src/main/java/com/whatever/pkgname/SomeActivity.java, and appname/src/main/res/layout/etc ... this is an absurd number of directories. Is it common? I'd like to have be like src/com/whatever/pkgname, and src/res/layout/whatever. Dec 30 22:50:52 can i manually request that the activity be redrawn? Dec 30 22:52:02 I think this is so that you can also have /src/test/java or /src/main/scala for example. Dec 30 22:52:54 marrrk: hm, that makes sense Dec 30 22:53:06 marrrk: I guess what I'm really looking for is how to tell gradle where to look, but I can google for that Dec 30 22:53:30 I don't know, I'm not using gradle for building. I thought it expected this directory structure, though. Dec 30 22:53:55 calebsch: https://developer.android.com/reference/android/view/View.html#invalidate() ? Dec 30 22:54:04 marrrk: By default, but it can be overridden http://www.gradle.org/docs/current/userguide/java_plugin.html Dec 30 22:54:07 bricker`work: you can change that, but adhering to the standard is recommended Dec 30 22:54:28 JakeWharton: Thank you, I will do so. Dec 30 22:54:31 plus if you're using an IDE all that shit gets collapsed together into only like 3 levels Dec 30 22:55:25 Yes, to be fair even src/com/something/somethingelse/packageX is already very annoying without an IDE Dec 30 22:55:36 good ol' Sublime Text and bash for me (for now) Dec 30 22:56:06 You can't fully appreciate an IDE until you've suffered the alternative, eh? Dec 30 22:56:25 Or any tool for that matter. Dec 30 22:56:45 It is impossible to write Java code without an IDE. Dec 30 22:57:21 So I have Picasso and PhotoView both working now, but whenever the actual image loads into the imageview rather than the placeholder the image does not fit screen, and I think it's because I need to call attacher.update(); for PhotoView, but I don't can't find anything in Picasso that has a callback when it changes the image in the imageview Dec 30 22:58:04 marrrk: seems to be going okay for me. Just a little tedious, I'll open back up Intelli J one of these days Dec 30 22:59:30 do you people test your apps on the emulator? Dec 30 23:00:02 device and Genymotion Dec 30 23:00:23 same Dec 30 23:00:26 I use bluestacks Dec 30 23:00:34 its so much better then the normal emulator Dec 30 23:00:42 Android Studio question... is if possible to put Classes in separate SubDirs... just to organize the project a bit... I have so many Intents and Frags... getting confused Dec 30 23:00:52 http://blog.jetbrains.com/idea/2013/10/rearrange-attributes-in-android-xml-files-with-intellij-idea-13/ neat Dec 30 23:00:57 genymotion is virtualbox solution I think? Dec 30 23:01:03 yes Dec 30 23:01:13 oke Dec 30 23:01:19 Rob_uknow: Try genymotion. So much better than anything else,, Dec 30 23:01:32 I will try it ahmad96 Dec 30 23:01:49 and see if its better then bluestacks Dec 30 23:01:57 Ok in general nobody knows if it's possible to reference liquid fun or any other C++ stuff from a normal project? Dec 30 23:02:17 has anyone ever got ocr working on android? Dec 30 23:02:35 i tried tesseract, but found it too complicated Dec 30 23:05:16 this is the actual case in which setVisibility is only letting me hide and SOMETIMES show bottomTray: http://pastebin.com/c0TgruPZ Dec 30 23:05:44 neither findViewById(android.R.id.content).invalidate(); nor bottomTray.invalidate(); worked when placed right after bottomTray.setVisibility(View.VISIBLE); Dec 30 23:06:34 hmm, why View.GONE instead of View.INVISIBLE Dec 30 23:06:37 does that matter? Dec 30 23:07:05 yeah. i'd prefer the space to be taken up by other things. doesn't impact this error, though Dec 30 23:09:18 actually it does, but only in this way: if i use View.INVISIBLE instead of View.GONE then even though i can't see the bottomTray on the screen, if i click where it ought to be, it works, and then it shows up Dec 30 23:09:44 weird... Dec 30 23:10:09 yup. not sure what to do there Dec 30 23:10:28 You need to call it from the main thread Dec 30 23:12:20 ok, i'll give that a go Dec 30 23:15:29 if it has access to delete it has access to grab, no? Dec 30 23:15:33 wrong window Dec 30 23:16:56 oh, there's another element to this. the FIRST time i do bottomTray.setVisibility(View.VISIBLE); it works perfectly. no invalidate() needed. but subsequent calls don't work properly Dec 30 23:17:30 Is there anyway with the PhotoView libarary project to say no thanks to the onclicklistener for single and double tap zoom so that I can use my own single tap listener. All I really want out of the PhotoView library is the pinch zooming, and panning. Dec 30 23:19:07 putting all of this into a function inside of MainActivity didn't fix it Dec 30 23:20:10 Of course not.. Just because a method is in a class called MainActivity doesn't mean it's called on the main thread Dec 30 23:20:55 http://stackoverflow.com/questions/4388415/call-main-thread-from-secondry-thread-in-java-android Dec 30 23:20:57 Here's a few ways Dec 30 23:21:20 i apologize. i'm not sure of the meaning of this Dec 30 23:22:54 Well, considering the annotations I assume those methods are called from javascript in a webview Dec 30 23:23:02 It calls your methods from a background thread Dec 30 23:23:11 All UI interaction must happen on the main thread Dec 30 23:23:33 If you touch the ui from a background thread it might not work as expected Dec 30 23:27:02 Hello, can anyone explain to my why RawContacts contains multiple rows with the same contact id, ie, how can one contact id have multiple primary display names? Dec 30 23:30:01 or is the _ID from ContactsContract.Contacts the contact_id reference in RawContacts? Dec 30 23:30:09 should this be right? http://pastebin.com/mcfPBh2B Dec 30 23:30:59 Looks right Dec 30 23:31:24 it's running with no catastrophic error that i see, but even that first instance of setting it to be visible isn't working in this case Dec 30 23:32:16 How can I pull Images from 9gag? There's no API for the Website! Dec 30 23:32:35 9gag? Dec 30 23:32:43 what's that have to do with android Dec 30 23:32:53 progranming Dec 30 23:33:23 Ya im trying to build an app for reading 9gag as part of my training Dec 30 23:33:54 http://lmgtfy.com/?q=9gag+api Dec 30 23:34:18 No its not that easy Dec 30 23:35:12 Ok how do Pull images from a website? Dec 30 23:36:59 is it possible that there's just something wrong with invisibility being set? it only seemed to have a problem setting bottomTray.setVisibility(View.VISIBLE); after bottomTray.setVisibility(View.INVISIBLE); had previously occurred Dec 30 23:40:59 Is there a way to programmatically create a solid quire as a drawableLeft of a textview? Dec 30 23:41:46 solid ... quire? Dec 30 23:44:24 sorry, solid suare Dec 30 23:44:29 square Dec 30 23:44:48 I need to create a legend for a chart Dec 30 23:44:54 ColorDrawable + setBounds Dec 30 23:45:26 do I need to set the size of this? Dec 30 23:45:50 isn't colorDrawable only used for background? Dec 30 23:46:03 <|0xD34D|> it's a drawable Dec 30 23:46:07 <|0xD34D|> use it wherever you can use drawables Dec 30 23:46:44 ok Dec 30 23:46:58 <|0xD34D|> as for the size, that's where setBounds comes into play Dec 30 23:48:23 I imagined that, but still unsure on how to calculate size Dec 30 23:48:40 I'd want it to have the same size of the textview it's in Dec 30 23:49:12 Does anyone know how to map ContactsContract.Contacts id to ContactsContract.RawContacts contact id? Dec 30 23:49:15 if one exists Dec 30 23:51:04 What I don't understand is: why do I need to use coordinates for the rect instead of size? Dec 30 23:51:55 I ask this because I'll embed it into my textview so I should not calculate the coordinates. no? Dec 30 23:52:06 SimonVT: Got it! You were right. I just had to adapt my code a bit. Thank you. Dec 30 23:52:36 The Jag that's what you would do. if you are extending textview have a getcoorsfromrectsize method Dec 30 23:52:40 then you would do it Dec 30 23:52:58 but in this case Dec 30 23:53:05 all you have to do is use a compound drawable Dec 30 23:53:18 search compound drawable text view Dec 30 23:53:21 and you can avoid all this Dec 30 23:54:26 I'd use a compound drawable (the drawable left) Dec 30 23:56:05 but still there's the issue with the size of the drawable Dec 30 23:56:18 I have to set it somewhere Dec 31 00:00:23 i hope that is the least of your worries Dec 31 00:00:28 but ideally you'd put that in res/ dimen Dec 31 00:01:22 oh, I see Dec 31 00:01:50 I'll try, ty Dec 31 00:08:36 pfn: Was there a particular reason -dontobfuscate and -dontoptimize is hardcoded into the proguard config for the android SBT plugin? Dec 31 00:09:52 I am able to setText on the textview but not setCompoundDrawablesWithIntrinsicBounds Dec 31 00:10:09 it just doesn't display the drawable Dec 31 00:10:17 I'm assuming it's to prevent things in Scala that depend on reflection from exploding, but I couldn't spot anything when I did a blame on those lines, so I don't know. Dec 31 00:10:56 something is not right Dec 31 00:15:09 Can somebody take a look at this function: http://pastie.org/private/gpv4s1evoxgj6r7q6im8aa and let me know what im dong wrong? I can't seem to get the resultant JPG orientation to line up with my preview orientation... Dec 31 00:15:20 tw.setCompoundDrawablesWithIntrinsicBounds(new ColorDrawable(Color.RED), null, null, null); Dec 31 00:15:29 it simply does nothing Dec 31 00:15:45 do I miss something? Dec 31 00:19:05 The_Jag: don't you have to set a size on the Drawable? Dec 31 00:19:17 no Dec 31 00:19:33 how big would tw know to make it? Dec 31 00:19:36 with that method it takes the bounds of the textview Dec 31 00:19:43 hm Dec 31 00:20:12 maybe i'm missing something, I don't know Dec 31 00:20:46 I'm lost Dec 31 00:23:30 A ColorDrawable has no size Dec 31 00:24:02 The intrinsic size of a drawable is just the size of the drawable (e.g. the bitmap backing a BitmapDrawable) Dec 31 00:24:11 When it's a solid color it has no size Dec 31 00:25:00 so, should I revert to shapeDrawable? Dec 31 00:25:49 I just want a little rectangle being displayed on the left of my text Dec 31 00:26:21 little = I have no idea at which size I should set my rectangle btw Dec 31 00:26:37 I'm a bit new to this Dec 31 00:26:41 sorry Dec 31 00:26:50 Nilium, just makes it easier to debug Dec 31 00:26:58 ha! now my thumbnails are aligned correctly but the images are not... wtf Dec 31 00:27:24 Nilium, you can filter it out by doing proguardConfig in Android ~= { c => c filterNot { _ == "-dontobfuscate" } } Dec 31 00:27:34 Nilium, as for optimizing, well, optimizations tend to crash Dec 31 00:27:58 Yeah, I don't have a problem with -dontoptimize Dec 31 00:28:11 but yeah, generally, optimizing in proguard causes crashes, the -dontobfuscate is just to make it easier for debugging Dec 31 00:28:23 and obfuscating is generally unnecessary since there are no good scala decompilers Dec 31 00:31:33 plus the language itself is already obfuscated Dec 31 00:31:53 -_- Dec 31 00:33:03 so you say... Dec 31 00:35:49 :( Dec 31 00:37:09 even setting an xml shape rectangle didn't work Dec 31 00:42:05 * Leeds just read that as "there are no good scala developers" Dec 31 00:44:00 $ grep "scala" GoodDevsList.txt Dec 31 00:44:06 $ Dec 31 00:44:12 guess not. ;) Dec 31 00:45:00 oh wait Dec 31 00:45:09 $ grep -i "scala" GoodDevsList.txt Dec 31 00:45:16 $ Dec 31 00:46:22 XXCoder maybe your file is empty :P Dec 31 00:46:29 hmm Dec 31 00:47:28 $ du -a Dec 31 00:47:42 20191 GoodDevsList.txt Dec 31 00:47:43 $ Dec 31 00:48:21 oh minor error lol Dec 31 00:50:33 Hmm it looks like this error has to do with specific devices and exif data... so i guess i'll ask: Dec 31 00:51:04 Anybody here with a G4 know how to fix ths issue where an in-app camera implementation saves down wrongly oriented JPEGs? Dec 31 00:57:52 Can gradle's android plugin and application plugin not be used together? Dec 31 00:58:02 I get the error " The 'java' plugin has been applied, but it is not compatible with the Android plugins." when trying to build with gradle Dec 31 01:00:39 It's exactly like it says Dec 31 01:09:18 SimonVT: I understand what it's saying, what I'm asking is if that means the "android" and "application" plugins are incompatible? Dec 31 01:11:32 application plugin? Dec 31 01:12:38 g00s: http://www.gradle.org/docs/current/userguide/application_plugin.html Dec 31 01:13:08 oh Dec 31 01:13:35 well, the android plugins aren't really compatible with much; in the way the java plugin is Dec 31 01:13:51 hm Dec 31 01:13:57 okay Dec 31 01:33:10 so i'm new at this android dev thing and based on the docs, i get how one could use ant and build.xml and that all makes sense... but i'm finding a lot of projects that look like they have to be imported into the special android version of eclipse before they can be built... why is that and which one is 'standard'? Dec 31 01:36:26 maqr the ant builds work great from command line (reproducibility) but are legacy in favor of gradle now Dec 31 01:36:43 is gradle what eclipse is using? Dec 31 01:36:47 mmm Dec 31 01:36:57 i don't know if they added it to the ADT yet Dec 31 01:37:17 <|0xD34D|> I think eclipse is becoming legacy now :P Dec 31 01:37:25 :p Dec 31 01:38:27 i'm trying to learn how to build this: https://github.com/GravityBox/GravityBox/tree/kitkat Dec 31 01:38:27 lol Dec 31 01:38:58 it's going poorly :P Dec 31 01:39:34 i think that .project is indicating it's an eclipse project though Dec 31 01:39:39 yeah Dec 31 01:40:08 its lame to distribute a project like that ;) Dec 31 01:40:20 g00s: so this isn't the gradle thing? Dec 31 01:40:25 no Dec 31 01:40:29 <|0xD34D|> not even close Dec 31 01:40:34 <|0xD34D|> not enough sub dirs Dec 31 01:40:39 heh Dec 31 01:40:39 <|0xD34D|> :D Dec 31 01:41:12 <|0xD34D|> you use to be able to use the android command line tool to create or update a project for building with ant Dec 31 01:41:17 <|0xD34D|> not sure if it still supports that or not Dec 31 01:41:33 i tried that, but it relies on a .jar and it wasn't able to find that Dec 31 01:41:51 i guess i can use ADT, but is 'import' the correct thing to do? Dec 31 01:42:01 yes Dec 31 01:42:02 <|0xD34D|> import existing project should od it Dec 31 01:42:05 <|0xD34D|> *do it Dec 31 01:43:33 seems like that worked, but "Unable to resolve target 'android-17'"... i think i need to change it to android-19? weird that i'd be on the kitkat branch and it'd still say 17 though Dec 31 01:43:41 i get the sense that these developers may not be the best Dec 31 01:44:15 maqr yeah, probably not in XXCoder 's list Dec 31 01:44:17 <|0xD34D|> it's xposed so I have no comment Dec 31 01:44:25 lol Dec 31 01:44:42 is xposed considered bad? i just installed it on my device and it's been great for me, but i see room for improvement Dec 31 01:44:48 $ grep -i "maqr" GoodDevsList.txt Dec 31 01:44:51 $ Dec 31 01:44:52 aww Dec 31 01:44:57 i'm an iOS developer, what do you want from me :p Dec 31 01:45:05 :) Dec 31 01:45:09 <|0xD34D|> I get a lot of people bugging me to make some of my custom ROM features as xposed modules Dec 31 01:45:20 <|0xD34D|> I'm just sick of the PMs on XDA, Dec 31 01:45:29 <|0xD34D|> but it is XDA so I should not be surprised Dec 31 01:45:32 |0xD34D|: it really seems to make a lot of sense, as i didn't have to reflash and wipe all my data to get the few mods that i need Dec 31 01:45:58 it looks like there is 'CydiaSubstrate' for android, which might be a better framework? saurik's code is somewhat questionable too Dec 31 01:47:55 well, in any case, i think i got it building... though it tells me "re-installation failed due to different application signatures", so it wants it to uninstall and reinstall, but i'll go with it and see what happens Dec 31 01:48:25 <|0xD34D|> if you have it installed already from somewhere else then it is signed with different keys Dec 31 01:48:45 <|0xD34D|> so yeah you'll want to uninstall what you have now and reinstall it with what you build Dec 31 01:48:50 that impacts user data though? as in, settings for an app? Dec 31 01:49:07 <|0xD34D|> yeah, uninstalling wipes out the app data Dec 31 01:49:55 i guess i should have backed up just that part, i did an 'adb backup' for just that application though... i wonder if i can restore just the settings and keep the debug binary Dec 31 01:53:37 oh weird, it looks like it kept some of my settings Dec 31 01:54:09 err, maybe not Dec 31 01:55:54 it's crazy how much faster eclipse is than xcode Dec 31 01:57:41 man, xcode must be slower than molasses with that endorsement :p Dec 31 01:58:04 indeed Dec 31 01:58:45 hello. why andorid studio using 100% CPU all the time? where is the problem? Dec 31 01:59:41 oh no, my adb backup didn't work at all :( Dec 31 02:01:58 when my droid app crashes, eclipse isn't bringing up the debugging tools. the droid is just stalled out for about a minute then it reboots. how can that be fixed? Dec 31 02:09:29 make the app not crash Dec 31 02:09:33 look at logcat Dec 31 02:13:52 oh wow Dec 31 02:14:10 think I found out why my implicit intents weren't working Dec 31 02:14:24 okay...think we're going to get this finally :D Dec 31 02:14:46 next question: Say I have one main activity that wants to handle the implicit intent for http://www.mysite.com Dec 31 02:14:57 and a second activity to handle http://www.mysite.com/foo Dec 31 02:15:08 and a third to handle http://www.mysite.com/foo/bar Dec 31 02:15:17 will Android send the user to the right activity? Dec 31 02:15:47 if you set them in your manifest? Dec 31 02:15:48 Or should I have the main activity handle all events and then it will parse and explicitly open the activity that should handle it Dec 31 02:16:24 What I mean is...even when they are nested like that? It will find the most correct intent filter? Dec 31 02:16:29 intents have intent names, so... Dec 31 02:16:31 Because all 3 will match Dec 31 02:16:53 set the intent names? or if have just one, you need to have an activity to filter and adjust? Dec 31 02:16:55 mmm intent names? Not sure what you mean. You mean the VIEW stuff? Dec 31 02:19:41 i mean can't you just create any intent? if so why not set an intent for each object you are viewing? as long as someone is listening for it? Dec 31 02:19:58 I am the one listening for those links Dec 31 02:20:16 if someone is browsing around some website, nd they see a link to http://www.mysite.com/foo/bar Dec 31 02:20:27 I need to handle that separately from http://www.mysite.com/foo Dec 31 02:20:41 (which is handled by a different activity than http://www.mysite.com) Dec 31 02:21:52 but what is the intent that is sent? Dec 31 02:22:22 just a VIEW Dec 31 02:22:29 whatever the browser sends to your app Dec 31 02:22:30 from browser? Dec 31 02:22:42 I mean, there is some data with it Dec 31 02:22:46 I can see the url Dec 31 02:22:52 prgmmax: if you set the intent filters right the scheme you have in mind should work Dec 31 02:22:58 well if the intent is always the same, but data is different, then create a middleman and open what is necessary Dec 31 02:23:11 but my question is: Should my main activity handle all mysite.com intents or does the intent-filter know to prioritize somehow? Dec 31 02:23:23 keep in mind that the 'one activity for one screen' pattern is kind of outdated now that there are fragments Dec 31 02:23:27 MDijkstra cool thanks Dec 31 02:23:41 ohhh that's a good point Dec 31 02:23:45 intent filter will just filter based on the browsers intent.....but if if the intent is the same, then results are the same, you change based on data Dec 31 02:23:46 you could go the one activity route and load a different fragment into it based on the URL Dec 31 02:23:59 that sounds like a good idea Dec 31 02:25:41 awesome Dec 31 02:25:43 thanks for the help Dec 31 02:25:46 np Dec 31 02:25:46 really apprecitate it Dec 31 02:26:02 that'll b 2.30$USD Dec 31 02:26:06 plus tax of course Dec 31 02:26:10 Does anyone use eclipse with the ndk in here? Dec 31 02:26:34 SeanSill: if you have another ? just ask it Dec 31 02:26:48 someone will ignore you or give u advice Dec 31 02:27:14 Hehe, With the gstreamer tutorials ADT/eclipse is freezing when I try to add native support Dec 31 02:27:30 What would cause that and how can I test it? Dec 31 02:27:44 SeanSill: next step would be to pastebin code&possible stacktraces Dec 31 02:28:14 +give your eclipse version&all available data Dec 31 02:28:37 ADT gives me the option to 'attach source'... is that for if i download the android source code, it'll let me see the API implementation? Dec 31 02:28:48 prgmmax: oh, has an android:priority property that allows you to specify which activities should have higher priority Dec 31 02:29:05 I thought it would automatically pick the most specific Dec 31 02:29:33 I'm using latest adt bundle Dec 31 02:29:38 with the latest ndk Dec 31 02:29:41 ohhhhh nice Dec 31 02:29:45 maqr: yes Dec 31 02:29:55 still should probably just have one activity handle it though Dec 31 02:30:04 for the fragment thing Dec 31 02:30:23 out of curiosity....guess it doesn't have to be my main activity, either. It can basically be a dummy activity Dec 31 02:30:40 well that's awesome Dec 31 02:30:43 and the latest gstreamer tutorials here: http://docs.gstreamer.com/display/GstSDK/Android+tutorials Dec 31 02:30:46 yes :) Dec 31 02:30:57 prgmmax: like i said, if it is just a generic intent with data, yes handle it will a single entity&delegate accordingly Dec 31 02:31:33 handle it with* Dec 31 02:31:40 prgmmax: yeah, you could, don't know why you'd want to unless you want to do something substantially different if the user launches your app from a browser link Dec 31 02:32:06 I add the project to the workspace, and then right click on the project and click "Add Native Support" Dec 31 02:32:12 eclipse freezes Dec 31 02:32:23 NDK path is correct Dec 31 02:32:40 SeanSill: have you said the version of eclipse you are using? maybe a specific problem Dec 31 02:32:55 SeanSill: + have you tried other IDE's? Dec 31 02:32:59 JesusFreke: holy crap, it works... this is amazing Dec 31 02:33:02 Let me look what the adt bundle is using Dec 31 02:34:27 Eclipse 4.2.1 Dec 31 02:34:41 ADT v22 Dec 31 02:34:50 maqr: welcome to open source :) Dec 31 02:35:58 JesusFreke: this must be what it's like when people find jesus :P Dec 31 02:36:59 one more question Dec 31 02:37:14 I also want to handle things like cn.mysite.com and ca.mysite.com and fr.mysite.com and the such Dec 31 02:37:34 this intents system is a little confusing though Dec 31 02:37:50 presumably the host of a data is a string match and I can't do patterns like *.mysite.com Dec 31 02:38:00 prgmmax: you just need to read the intent given from browser, and filter the data Dec 31 02:38:07 maqr - I have to basically mimic the website's behavior Dec 31 02:38:28 canvs - Right, if I get the intent, which requires the intent filter Dec 31 02:38:38 www.mysite.com won't match fr.mysite.com Dec 31 02:38:46 and I think perhaps mysite.com won't match it either Dec 31 02:39:24 prgmmax: without much more detail, all i can say is you just need a simple filter on the string data, and do your work with how detailed you wanna be? Dec 31 02:39:40 mysite.com will default to whatever you want Dec 31 02:39:52 fr.mysite.com will default to french etc.... Dec 31 02:40:05 just do as much work as you want Dec 31 02:45:11 i've never done android dev before, and in about an hour i've got the SDK set up, source code checked out, and i'm pretty sure i can patch in the feature i want... it's small, but still, this is all very easy Dec 31 02:45:45 maqr: dev'ing is simple, it's UX that blows :P Dec 31 02:46:15 canvs2321: indeed, but coming from iOS, i'm pretty blown away by how easy this is Dec 31 02:46:25 then profit? Dec 31 02:47:15 well, first hack in the thing that i want that's missing from GravityBox... then i suppose learn real android development and profit :p Dec 31 02:47:31 canvs2321: or as the joke goes, nobody profits on android anyway? :) Dec 31 02:49:03 Nope, no joke, find a niche&profit while profits are being givin! :) don't waste time :) i've made maybe close to 20-30k off android. But UX kills me so i stopped :) Dec 31 02:49:56 canvs2321: i'm going to try out a few ideas on iOS first, because i know it already, but i hope to jump to android if i can be profitable on iOS Dec 31 02:50:32 magr: just remember to adhire to Android Design Specs, don't bring your iOS designs here :) Dec 31 02:51:02 heya Dec 31 02:51:07 canvs2321: indeed, i have much reading to do :) Dec 31 02:51:22 canvs2321: why bother, no one else does :( Dec 31 02:51:23 maqr: Gl&have fun Dec 31 02:51:37 bankai_: cause it makes sense? Dec 31 02:51:46 how do you guys find the motivation to code? Dec 31 02:51:57 im in the process of learning some code via codeacademy, i just cant find the drive to actually do it Dec 31 02:52:20 bankai_: most ppl are stuck in what they know, but to be a superstar comform for once? :) Dec 31 02:52:52 justdl: either drugs, or just a passion to bring to the table a solid app Dec 31 02:52:56 canvs2321: i've written many nasty comments/emails to companies about their awful port jobs... Dec 31 02:53:06 justdl: if you dont' want to do it, no one can make you want to... Dec 31 02:53:19 justdl: find something broken and fix it... i'm just jumping into android for the first time now, and i'm adding a feature to GravityBox, because i wanted it and it's not there yet Dec 31 02:53:51 bankai_: then f them, and out do them, if you need/want something that noone else can provide&u have the capacity to outperform, then.... do it urself :) like masturbation :P Dec 31 02:54:56 yeah Dec 31 02:54:57 well Dec 31 02:55:10 whats a good way to get started with code? Dec 31 02:55:17 i just figured code academy would be a good way to get my feet wet Dec 31 02:55:49 justdl: find something that intrigues(sp?) you Dec 31 02:56:38 I've set up a notification to popup at some point of time using an AlarmManager. It uses a Service to pop the notification. But now I want to give a snooze button to this Notification, so that it pops up again a minute later. How do I call this service again? Dec 31 02:57:27 The Service is getting data from calling activity and is building the notification **** ENDING LOGGING AT Tue Dec 31 02:59:58 2013