**** BEGIN LOGGING AT Tue Jun 24 02:59:59 2014 Jun 24 03:02:57 dw1: you can paste this -> ☺ Jun 24 03:03:18 yes but i cant display it on a page for others to copy Jun 24 03:03:21 at least not in 4.4 Jun 24 03:03:46 or this ☻ or ☹ Jun 24 03:04:12 going to test 4.3 in a moment Jun 24 03:06:33 yeah they're not graphics in 4.3 Jun 24 03:07:57 well they are but they're the 'ascii' graphics not the 'images' Jun 24 03:08:36 maybe they work the same, since i havent figured out how to copy text yet :P Jun 24 03:09:11 long press Jun 24 03:11:25 dw1: in textviews you'd press and hold until the copy dialog appears and selectors around the text which you can adjust Jun 24 03:11:28 Hi, does anyone here use fedora to develop and deploy on? Jun 24 03:11:50 shmooz: thx, that helped, and i found a page Jun 24 03:13:46 if it works on 4.4 then ill just put a disclaimer to copy the image Jun 24 03:13:51 4.3 is good Jun 24 03:16:28 yeah ok seems to work Jun 24 03:16:29 guess ill deal Jun 24 03:16:31 thanks alot Jun 24 03:21:01 time for ☕ Jun 24 03:25:22 Hello everyone Jun 24 03:25:53 Has anyone ever developed an app and try installing it in Xperia Z Ultra phablet? Jun 24 03:28:03 I'm using Nexus 5 which has different pixel density. If I install my app to Xperia, some components are not properly aligned. Jun 24 03:28:21 Very strange because if tested on other tablet, it's fine. Jun 24 03:28:26 just about every android device has a different density Jun 24 03:28:33 so, welcome to android dev :P Jun 24 03:29:02 your best bet is to tweak your layouts and try to be less dpi dependent. Jun 24 03:29:44 lol yeah. It actually is a hassle when coming to density layouts Jun 24 03:33:43 JakeWharton: ping Jun 24 03:33:49 PONG Jun 24 03:34:15 with picasso, if loading from a uri (filesystem) for an image taken with a camera Jun 24 03:34:24 is manual rotation necessary? Jun 24 03:34:30 shouldn't be Jun 24 03:34:53 ok, continuing to investigate Jun 24 03:47:24 wabz did you see "The camera driver may set orientation in the EXIF header without rotating the picture. Or the driver may rotate the picture and the EXIF thumbnail." Jun 24 03:52:55 in android studio, when i have the 'Project' tool window up (the file tree) there is a collapse all - but is there an expand all? I have the scope set to 'changed files' its kinda pain to manually click on everything (its collapsed by default) Jun 24 03:54:31 you mean the left Project tree ? Jun 24 03:54:36 1 Project tab ? Jun 24 03:54:42 gordon_ yeah http://www.jetbrains.com/idea/webhelp/project-tool-window.html Jun 24 03:54:59 "Click this button to collapse all nodes ." Jun 24 03:55:04 where is its opposite :| Jun 24 03:56:19 dont know if there's such thing Jun 24 03:57:52 the asymmetry seems strange Jun 24 04:00:29 yeah that might be what's going on here Jun 24 04:04:46 it's unclear to me whether context.getContentResolver().query(photoUri, orientationColumn, ... will always give a correct orientation Jun 24 04:06:12 i want proguard to remove only logs from my build Jun 24 04:06:23 but it's doing more than I specified in config Jun 24 04:06:27 easier said than done Jun 24 04:06:38 half the time you'll leak StringBuilders Jun 24 04:07:02 JakeWharton: you mean proguard thing? Jun 24 04:07:05 yes Jun 24 04:07:06 gordon_: I think this did it for me http://pastebin.com/ZWQrcYJA Jun 24 04:07:28 JakeWharton: I knew it wouldnt be as easy as it should be... Jun 24 04:07:28 e.g., using ^^^ will leak StringBuilders Jun 24 04:08:23 i used this: http://pastebin.com/6Wf3sfLg Jun 24 04:08:44 but it shows more errors like about android query of joda time Jun 24 04:08:53 and apache commons validator Jun 24 04:09:09 seems like it wants to do more than I want ;) Jun 24 04:12:23 well that's annoying: http://stackoverflow.com/questions/6009078/removing-unused-strings-during-proguard-optimisation Jun 24 04:14:43 the content resolver is returning an orientation of 0, but clearly the photo needs to be rotated Jun 24 04:14:46 gah Jun 24 04:14:58 barbs the android version of proguard, dexguard, does that Jun 24 04:15:14 also, you can use something like slf4j-android Jun 24 04:15:40 pretty common needing slf4j anyhow since lots of projects these days use it Jun 24 04:15:45 (outside android) Jun 24 04:16:18 gordon_ hmm, just jsr310 (threeten) work on android? curious, Joda had some issues starting up (performance) parsing some crazy amount of locale data Jun 24 04:16:38 bleh, just wish Android's Log class did it, since it seems to be standard... Jun 24 04:16:52 yeah, android's logging stuff is pretty lame Jun 24 04:16:52 barbs: thank you. my problem is I cannot compile code now because proguard wants to remove some apache commons and some aquery stuff Jun 24 04:17:13 g00s: joda time works AFAIK Jun 24 04:17:17 I uesd it and it worked Jun 24 04:17:38 yeah, i thought it took like 15 seconds the first time you used it while it parsed all the timezones Jun 24 04:17:50 hint: if someone tells you not to use use joda time but implement own solution - dont do that Jun 24 04:17:52 maybe they fixed that :) Jun 24 04:18:01 well, Joda is pretty much out Jun 24 04:18:10 that guy did jsr310 which is in Java 8 Jun 24 04:18:29 yes, it's merged in java 8 Jun 24 04:18:33 *java 8* Jun 24 04:18:36 *8* Jun 24 04:18:43 but jsr310, threeten, and joda are all slightly different Jun 24 04:18:46 I think there's an echo in here Jun 24 04:18:53 in here Jun 24 04:18:55 here Jun 24 04:19:09 Leeds: nah, that was just dramatic moment Jun 24 04:19:34 never heard of Joda, man, looks so much easier than stuffing around with Calendar/Time/Date classes... Jun 24 04:19:44 https://www.youtube.com/watch?v=a1Y73sPHKxw&feature=kp Jun 24 04:28:13 hi Jun 24 04:28:22 can someone help me with this Jun 24 04:28:29 http://stackoverflow.com/questions/24378314/android-canvas-get-user-head-in-bitmap-using-edges Jun 24 04:31:02 "Evans Data: Mobile developers now number 8.7 million worldwide" Jun 24 04:32:41 I have got to say everyone I am very very impressed with android studio! Jun 24 04:33:14 teh android tooling around ide / build system has come a long way in the past year ... Jun 24 04:33:34 … but they need to get cracking on the other stuff like memory analysis, etc Jun 24 04:33:44 (heap analysis) Jun 24 04:36:36 Hi. I have a question. I am trying to write an app, which will send an sms automatically when a phone is about to switch off. Jun 24 04:36:48 What should I be looking at ? Jun 24 04:36:54 in order to do so. ? Jun 24 04:42:36 Ram_: ACTION_SHUTDOWN intent? Jun 24 04:43:24 Ram_ what do you mean "switch off" Jun 24 04:52:31 anyone using android studio on linux having questions cannot get design view :( Jun 24 04:52:32 to work Jun 24 04:57:50 nvm got it, has to be from res/.xml file Jun 24 05:12:06 is there any reason a view would return 0 from getWidth() when it has no parent and I used setLayoutParams with a layout with width 720? Jun 24 05:12:28 because it hasn't been measured yet Jun 24 05:14:58 Leeds: g00s: switch off meaning, if a phone is manually shut down or if its switches off when it loses its juice Jun 24 05:16:51 Ram_ ok, leeds has the answer. http://stackoverflow.com/questions/14133077/android-action-shutdown-broadcast-not-working Jun 24 05:20:21 Thanks g00s Jun 24 05:20:36 Also is there a way to hide a "background service" ? Jun 24 05:20:48 meaning, running a service in a "stealth mode" ? Jun 24 05:21:06 I hope not Jun 24 05:21:12 :D Jun 24 05:27:47 also hope not :) Jun 24 05:27:50 hey g00s Jun 24 05:27:57 hey lemonxah long time no see Jun 24 05:28:08 yeah Jun 24 05:28:16 extremely busy :/ Jun 24 05:29:42 lemonxah going to I/O ? Jun 24 05:29:54 no dont have cash for that :( Jun 24 05:30:06 someone else that works here is in the states allready Jun 24 05:30:11 she is going to i/o Jun 24 05:30:12 me neither ;) Jun 24 05:30:14 also https://www.youtube.com/watch?v=Uywh_BBikY4 Jun 24 05:30:37 the like pre pre alpha new look version of the app i am working on Jun 24 05:30:40 what do you think? Jun 24 05:31:09 lemonxah looks nice, what tab widget did you use ? Jun 24 05:31:13 i/o is today or tomorrow ? Jun 24 05:32:42 g00s, https://github.com/astuetz/PagerSlidingTabStrip Jun 24 05:33:10 not a tab widget though its a viewpager Jun 24 05:33:33 yeah, nice thanks Jun 24 05:33:41 no worries Jun 24 05:33:41 we are using that Jun 24 05:33:55 cool Jun 24 05:34:03 so it's safe Jun 24 05:34:19 heh Jun 24 05:34:24 that was the purpouse of that thepoosh ;) Jun 24 05:34:42 sometimes something has a lot of stars Jun 24 05:34:48 but it's better not to use it Jun 24 05:35:07 Lisa Wray on devbytes did a video of SlidingTabs Jun 24 05:35:21 'SlidingTabLayout' seems pretty similar Jun 24 05:35:28 how's android's security when it comes to apps. Jun 24 05:35:28 oh ok Jun 24 05:35:31 JakeWharton: not really sure what's going on here, the exif data for it has a rotation of 90, but it doesn't come back rotated Jun 24 05:35:41 what version? Jun 24 05:35:59 I just tried with 2.3.2 Jun 24 05:36:06 gordon_: when we used a ViewPager we used the ViewPagerIndicator project Jun 24 05:36:23 wabz: is the image square? Jun 24 05:36:36 nope, 2448x3264 Jun 24 05:36:46 thepoosh: can you scroll tabs only ? Jun 24 05:36:55 hmmmm Jun 24 05:36:58 ask Jake Jun 24 05:37:04 slidingtab layout doesn't show more tabs does it? Jun 24 05:37:14 ab but actionbar sherlock Jun 24 05:37:16 like it shows the current one and one tot he left and one tot he right Jun 24 05:37:38 gordon_: you what awesome view I just found this week? Jun 24 05:37:45 wabz: maybe https://github.com/square/picasso/issues/539 Jun 24 05:37:55 fix is on master if you want to build your own jar and try 2.3.3-SNAPSHOT Jun 24 05:37:55 thepoosh: I'm always open to cool libs ;) Jun 24 05:38:00 http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html Jun 24 05:38:03 not a lib Jun 24 05:38:10 but saves you from using one Jun 24 05:38:10 I'll give it a go Jun 24 05:38:12 I know it Jun 24 05:38:23 I even tried it and blogged about that one ;) Jun 24 05:38:32 we used crappy and less crappy pull to refresh libs Jun 24 05:38:36 gordon_: link? Jun 24 05:38:55 it's good when you wanto swipe from the top and animate actionbar only Jun 24 05:38:59 I need to write a post about the handling of non 2xx response codes in Volley Jun 24 05:39:14 link to what ? Jun 24 05:39:16 to post ? Jun 24 05:39:17 blog Jun 24 05:39:20 yeah Jun 24 05:39:28 it's pretty bare bone but wait a sec Jun 24 05:39:47 i am also using that SwipeRefreshLayout it doesn't do the nice actionbar thing Jun 24 05:39:55 thepoosh: Jun 24 05:39:58 dammit Jun 24 05:40:00 thepoosh: http://nullpointerbay.com/2014/06/pull-to-refresh-on-android/ Jun 24 05:40:13 I love the domain name Jun 24 05:40:18 thanks Jun 24 05:40:30 hope one day you will love content too ;) Jun 24 05:40:36 it has like 2 weeks or something Jun 24 05:40:49 hmm, is there a straightforward way to get status bar height in android? Jun 24 05:41:09 looks nice Jun 24 05:41:26 stackoverflow seems to offer long solutions :/ Jun 24 05:41:46 shingshang: dont know but first thing I would ask - what actionbar? Jun 24 05:41:58 I mean appcompat, actionbarsherlock or native one Jun 24 05:42:25 gordon_: I have no idea what you're talking about. Also, I'm porting an NDK thing from linux/iOS, which explains my lack of android knowledge Jun 24 05:42:26 shingshang: the size of the status bar is fixed (I think) Jun 24 05:42:43 thepoosh: but the pixel between devices are different though Jun 24 05:42:51 so calculate that Jun 24 05:43:14 thepoosh: but I'd rather get a system provided value rather than hard-coding things Jun 24 05:43:50 shingshang: this seems pretty strait forward Jun 24 05:43:50 http://stackoverflow.com/a/14213035/1056359 Jun 24 05:44:04 shingshang: ActionBar bar = getSupportActionBar(); Jun 24 05:44:08 bar.getHeight() Jun 24 05:44:21 this doesnt work ? Jun 24 05:44:30 gordon_: action bar is the one at the top right? what do people call the thing at the bottom where the home button is? Jun 24 05:44:33 gordon_: he's looking for the system notification bar Jun 24 05:44:43 shingshang: aaa Jun 24 05:44:58 control buttons Jun 24 05:44:59 shingshang: there are 2 system bars, one on the top and the other on the bottom Jun 24 05:45:10 huh, so they're both called system bars Jun 24 05:45:20 the pixel size differs and is set dynamically by the calculations of dip to px Jun 24 05:45:29 why do you need to have that ? Jun 24 05:45:30 so this is not system determined Jun 24 05:45:52 gordon_: he's probably fragmenting stuff by designing them pixel perfect Jun 24 05:45:52 porting game to android / Jun 24 05:46:09 you can - hide those controls Jun 24 05:46:24 yeah, porting game, rather my c++/opengl codebase to android Jun 24 05:49:38 shingshang: games traditionally use the entire screen Jun 24 05:50:02 so using the swipetorefresh layout how do you get the text in the actionbar? Jun 24 05:50:33 thepoosh: screw you and your conservationist ideals! Jun 24 05:50:49 just kidding, but yeah, just wanted to know how to exactly get that status bar height when not on full screen Jun 24 05:51:15 shingshang: http://www.holycrapitslate.com/wp-content/uploads/2014/06/WAT-Bulb.jpg Jun 24 05:52:15 is there a way to change the color of the bottom system bar? the one with the home button etc Jun 24 05:52:27 or does it just become black all the time Jun 24 05:52:27 I think no.. Jun 24 05:52:39 but might be wrong Jun 24 05:56:23 shingshang: if I remember correctly, the system controls that, not the programmer Jun 24 05:57:05 shingshang: http://stackoverflow.com/q/5829309/1056359 Jun 24 05:57:43 You can make it transparent for high mem devices on 4.4 Jun 24 05:57:43 thepoosh: thanks Jun 24 05:57:48 no probs Jun 24 05:58:50 Lol Jun 24 05:58:56 Reading that made me laugh Jun 24 06:05:08 is there a concept of a view "hitTest" in android, like in iOS? Jun 24 06:05:27 e.g if there's a view in front of another view, the view in the front only accepts touch due to certain conditions Jun 24 06:05:36 so you can make overlays etc Jun 24 06:06:26 also, in iOS the UI is called UIKit, what is it exactly called in android? Jun 24 06:08:15 it's not called like that Jun 24 06:08:19 there are ui classes Jun 24 06:08:25 like view, activity, fragment etc. Jun 24 06:10:02 so, the guy in charge of the UI in android can't have a catchy title like the one at Apple then Jun 24 06:10:18 "Hi, I'm the head of UIKit, what about you" Jun 24 06:12:01 head of android UI/UX ? Jun 24 06:12:33 that seems to encompass more than just the programmatic side of things, like UIKit Jun 24 06:13:06 I'm sorry about that Jun 24 06:13:37 JakeWharton: the -sample application loads it from the gallery correctly Jun 24 06:13:46 maybe the ios guys made this in case of those people dont call themselves 'amazing' Jun 24 06:13:49 :> Jun 24 06:14:04 The title would be senior architect Jun 24 06:14:43 Chief UI Library Evangelist Producer Architect Jun 24 06:14:49 is my guess, based on google naming conventions Jun 24 06:15:08 isn't everyone at google meant to be evangelists Jun 24 06:15:16 get given free nexus phones etc Jun 24 06:15:21 frankdrey: you forgot to add 'evangelist' Jun 24 06:15:22 I had to shell $400 for mine :/ Jun 24 06:16:16 GOOGLE OWES ME A NEXUS FOR BEING SUCH A GOOD CUSTOMER OF THEIR FREE SERVICES Jun 24 06:16:26 shingshang: time to change the company ;P Jun 24 06:17:01 frankdrey: but they have access to my passwords, it's only natural! Jun 24 06:18:12 shingshang: encrypted Jun 24 06:18:18 with NSA flavour Jun 24 06:26:21 found on google+ - http://javafxports.org/page/home Jun 24 06:27:50 rather useless Jun 24 06:47:13 so now the rumors are saying there's going to be a HTC Nexus 9 tablet Jun 24 06:48:14 with a 64 bit CPU Jun 24 07:03:42 JakeWharton: found the problem, it's actually got nothing to do with the image Jun 24 07:04:06 cool. what was it? Jun 24 07:04:20 ACTION_GET_CONTENT vs ACTION_PICK Jun 24 07:04:26 hi Jun 24 07:04:30 http://stackoverflow.com/questions/20067508/get-real-path-from-uri-android-kitkat-new-storage-access-framework Jun 24 07:04:33 can someone help me with this Jun 24 07:04:34 http://stackoverflow.com/questions/24378314/android-canvas-get-user-head-in-bitmap-using-edges Jun 24 07:08:42 JakeWharton: http://pastebin.com/gwFiU09h reproduces Jun 24 07:08:49 I'm not really sure where the bug is ;) Jun 24 07:09:06 ha, file a bug? Jun 24 07:09:17 my partner in Picasso crime will have a look Jun 24 07:09:21 hehe ok Jun 24 07:23:25 thanks Jun 24 07:26:59 took me a while to get to that point :p Jun 24 07:27:09 debugging = fun Jun 24 07:27:57 gah, the format messed up my bug sorry Jun 24 07:30:11 some nice person fixed it for me :p Jun 24 07:33:00 on it like a hawk Jun 24 07:38:24 Does somebody know if it's possible to get a free webservice? My app needs to receive one integer value from a webservice, nothing more than that Jun 24 07:40:07 FrancescoV you could host it on google docs. its free Jun 24 07:40:50 there are some free php webspaces too but usually with ads / limited ofc. Jun 24 07:41:26 ktwo: ok, but how is it possible with google docs? just using the api and receive a document from it or how? Jun 24 07:43:32 GitHub pages Jun 24 07:44:22 Heroku has a free tier for a proper (or simple) webapp Jun 24 07:44:35 AppEngine probably does too Jun 24 07:49:36 JakeWharton: thanks! So it's possible to make this without costs with AppEngine? no request limit or something else? Jun 24 07:49:49 i'm sure there's limits Jun 24 07:50:55 I see: Auto scale to 7 billion requests per day, I think this limit isn't for free.. Jun 24 07:53:40 But it must be possible with a public Google Doc? I should prefer this because then I learn about the api too (not used yet) and the app can be top or flop (no risk) Jun 24 07:58:13 god both Silicon Valley and Halt and Catch Fire are horrible computer based tv series Jun 24 07:58:18 oh man i just got hit with a virus of some sort lol Jun 24 07:58:20 :\ Jun 24 07:58:37 shmooz: yup Jun 24 07:59:08 does anyone here prefer windows 8 as opposed to windows 7? Jun 24 07:59:15 haha just got done watching halt and catch fire Jun 24 07:59:26 that one's pretty bad, but silicon valley is sheer brilliance Jun 24 07:59:26 any good? i'm looking for a fun movie to watch Jun 24 08:00:11 nah silicon valley is corny, he should have stopped at Office Space Jun 24 08:00:47 therue: thanks to NoScript I haven't had a virus in a decade or so Jun 24 08:00:54 ya i use that too Jun 24 08:01:10 and eset smart security .. which contains nod32 .. one of t he best anti-virus software Jun 24 08:01:12 silicon valley captures the culture dead-on imho Jun 24 08:01:12 so then you must have double clicked some sketch .exe Jun 24 08:01:15 and antisuperspyware Jun 24 08:01:37 it's just that i just put this computer recently and have been pretty lazy about getting the anti-virus software lol Jun 24 08:01:41 i did have noscript though Jun 24 08:02:00 but i accidentally clicked on a link on youtube thinking it's safe 'cuz it has like 400 likes Jun 24 08:02:03 lol Jun 24 08:02:24 a link to a download file Jun 24 08:02:26 'cuz i needed it Jun 24 08:02:41 got fooled by the amount of likes :) but ya usually i'm on top of this stuff :) Jun 24 08:02:50 by the way shmooz, i installed intellij Jun 24 08:02:56 thanks for the recommendation Jun 24 08:03:09 it wasn't me Jun 24 08:03:27 you must be confusing me with g00s or thepoosh Jun 24 08:03:28 i got a free macbook from my brother, so i'll be using that for coding/developing.. while i use my main pc for other stuff. and for reading guides while i learn :) Jun 24 08:03:32 oh ya Jun 24 08:03:33 :) Jun 24 08:03:43 other people with two o's in their name Jun 24 08:03:49 wat? Jun 24 08:03:52 you two were answering alot of my questions earlier so i thought it was you lol :D Jun 24 08:03:59 there's two 0s in goose Jun 24 08:04:02 -top gun :D Jun 24 08:04:15 there's 3 in fact Jun 24 08:04:20 thep'oo'sh Jun 24 08:06:31 k be back later. need to reinstall windows :\ Jun 24 08:07:17 he better hope it's not a BIOS virus Jun 24 08:46:28 how to password protect sqlite Jun 24 08:52:14 Hey guys, so I'm following official android-dev tutorials and building my first app. But I got stuck on this step http://developer.android.com/training/basics/firstapp/starting-activity.html. Here is my code http://pastebin.com/eGU14KkQ (I added a lot of imports, and errors went from ~25 to ~18). I think I am doing something wrong Jun 24 09:26:10 can someone help me on this? i use an intent to start a shortcutactivity like this: "Mainactivity.getContext().startActivity((Intent) intent.getExtras().get(Intent.EXTRA_SHORTCUT_INTENT));" The intent has only extras, everything else is null (Action,Categories, Component,....). Jun 24 09:26:13 i need to convert this intent to string and from string to intent again for storing in sqlite. how can i do that? Jun 24 09:26:23 i tried soooooooooo much Jun 24 09:28:10 how to password protect sqlite ? Jun 24 09:28:21 db Jun 24 09:30:23 hey, i'm trying do regex but i have a colon : does it have any effect? Jun 24 09:31:25 I don't think a colon is anything special in regex Jun 24 09:32:54 http://theoatmeal.com/comics/semicolon (How to use a semicolon - The Oatmeal) — Jun 24 09:33:17 http://simple.wikipedia.org/wiki/Colon_(punctuation) (Colon (punctuation) Jun 24 09:33:24 OrientationEventListener only fires on physical rotation change, right? Jun 24 09:33:28 Is it a good idea to use LongSparseArray for a mapping of say 5 items? Jun 24 09:34:00 I read its only more memory efficient but slower than a HashMap Jun 24 09:34:09 CodePulsar: you can use it for that Jun 24 09:34:16 but it really makes no difference at all Jun 24 09:34:37 here is a comparision: http://www.javacodegeeks.com/2012/07/android-performance-tweaking-parsearray.html Jun 24 09:38:14 hmm, wasn't a hash table supposed to be faster for retrievel than a binary tree? O(1) vs O(log n) Jun 24 09:38:41 s/tree/search Jun 24 09:39:44 I'll stay with the HashMap Jun 24 11:07:29 does the compiler strip things like tools:ignore="UnusedAttribute" out of xmlfiles or ar they includes in the apk as they arey Jun 24 11:41:16 hi Jun 24 11:43:00 when using adb shell am start .... how do I get the process id of a process that just started? Jun 24 11:43:03 (to debug it ) Jun 24 12:09:16 hey guys Jun 24 12:09:22 when i format a date it gives the right string Jun 24 12:09:37 however when i getTime() it returns the wrong time Jun 24 12:09:47 is this normal behaviour? Jun 24 12:09:51 jvrodrigues: timezones ? Jun 24 12:10:13 hardly, the milisecond is returning year 1 Jun 24 12:10:23 if it was timezones would only be a couple of hour behind Jun 24 12:10:45 likely an overflow. try to do getTime()/1000 Jun 24 12:11:02 some classes use seconds for unix time instead of millisecs Jun 24 12:12:25 hmm i'm using it in the calendar instance Jun 24 12:12:31 setTimeinMillis Jun 24 12:12:48 java.util.calendar? Jun 24 12:13:08 ya Jun 24 12:13:28 cal.setTimeInMillis(date.getTime()) Jun 24 12:13:33 hell why Jun 24 12:13:44 theres cal.setTime(date), too... Jun 24 12:14:10 did not know that Jun 24 12:14:18 javadocs are your friend :) Jun 24 12:14:42 What are people looking forward to the most at Google I/O? Jun 24 12:15:15 well Jun 24 12:15:25 cal.setTime(date) also gives issues Jun 24 12:15:56 liefer: the freebie watch or tablet Jun 24 12:16:07 :P Jun 24 12:16:37 Easier and more profitable to attend an Oprah showing isnt it Jun 24 12:16:54 date.getTime = 1403910000000 cal.getTimeinMillis = -62130275110410 Jun 24 12:20:58 jvrodrigues: this is how it looks when i try it Jun 24 12:20:59 https://gist.github.com/danijoo/97a0304b4984043fff55 Jun 24 12:21:46 replace line 6 with Calendar.getInstance() though :) Jun 24 12:23:10 found out my problem Jun 24 12:23:13 turns out i'm retarded Jun 24 12:24:31 xD Jun 24 12:30:11 using strings i can define a string with the same name in /values and in /values-large, both pointing to other strings. How can i do the same with drawables? Jun 24 12:30:41 i want to have android determine which drawable to use, depending on screen size. Jun 24 12:34:38 hm, seems i can just have a @drawable/blah Jun 24 12:36:42 wow, stored alot of content on sqlite and only db size is 34kb :o Jun 24 12:50:13 Hello! Anyone here who tested google glasses? Is the OS in there a perfectly "normal" Android system? So should I expect to simply be able to run my apps from eclipse/adb and get similar behaviour? Jun 24 12:57:47 luc4: Glass can run android apps, sure. But of course the way the user interacts with glass is a lot different than a phone/tablet Jun 24 12:58:04 You'd have to rethink and redo your UI Jun 24 13:04:06 liefer: yes, of course, like from tablet to TV, TV to smartphone etc... but is the rest identical? Can I have also activities (or only cards?), can I have native shared libs? Are all the networking APIs exactly equal? Do I need some kind of helper app on a phone or can glasses run "standalone" applications? Jun 24 13:04:24 liefer: thanks for the info Jun 24 13:12:02 luc4: you can find many of the answers in the official glass docs. Since you can run android apps on glass, the answer to most of your question is "yes". You need a phone for GPS Jun 24 13:15:01 I'm a bit confused about AppCompat themes. Do i use them _just_ for API levels below 11? or do I use them for all API levels? My hope was to use Theme.Holo on api >= 11 and Theme.AppCompat Jun 24 13:15:14 for api levels below that Jun 24 13:16:17 d0de you could do that, just make a styles.xml in res/values, and a styles.xml in res/values-v11 Jun 24 13:16:54 theblang, that's what I've done, but I get errors whenever I try to run that on higher API levels. They say I need to use an AppCompat compatible theme Jun 24 13:17:01 it works fine for lower API levels Jun 24 13:26:44 Hi, can I ask a question regarding the google id token? I have an issue with it but I don't know if it is on the client- or server-side. Jun 24 13:28:16 testing Jun 24 13:31:18 when a device is rotated, the onCreate() of the activity is called, correct? Is anything else called? Jun 24 13:32:21 d0de, must use for all Jun 24 13:33:15 pfn, I'm sorry, I don't understand Jun 24 13:33:43 appcompat Jun 24 13:33:44 d0de, yes all is called there is no difference between a new activity displaying or a rotate Jun 24 13:34:06 only data in the savedInstanceState bundle if you have put stuff in it Jun 24 13:34:06 Is there a way I can use shared userIDs to use shared preferences (and similar) for a group of apps without haveing them tied to a single app? Jun 24 13:34:10 pfn, ah, thanks, yes. I got confused as to which question you were replying to Jun 24 13:34:11 that is how you should use it Jun 24 13:34:58 Syzygy, no Jun 24 13:35:46 any other idea how I could achieve something similar (except saving all my data in external storage) Jun 24 13:37:07 lemonxah, so when I rotate my device, the current activity calls onDestroy and then starts from scratch? Jun 24 13:39:55 ondestroy is not called but that is the only one Jun 24 13:40:00 if that nokia android x2 had Play i'd grab one right away; i'm thoroughly impressed with what nokia can do with a budget device Jun 24 13:40:31 it calls onStop() -> onCreate() Jun 24 13:40:37 lemonxah, huh, that seems weird. Currently my app crashes on rotate and I'm trying to figure out the cause Jun 24 13:40:40 and all other lifecycle below that Jun 24 13:41:47 http://developer.android.com/reference/android/app/Activity.html Jun 24 13:41:56 look at the lifecycle diagram Jun 24 13:42:29 rotate does onpause onstop oncreate Jun 24 13:42:58 lemonxah, thanks Jun 24 13:44:54 lemonxah, it's weird, in my testing onDestroy() is getting called Jun 24 13:45:00 when I rotate the device Jun 24 13:45:39 it's calling onStop, onDestroy then onCreate Jun 24 13:47:36 I'd expect destroy to be called, either way, shouldn't cause a crash Jun 24 13:47:54 fix your code so it doesn't Jun 24 13:48:17 thats kinda what i meant with treat a rotate like a new activity showing Jun 24 13:48:32 the old one gets killed off and the new one starts from scratch Jun 24 13:48:48 I've narrowed the problem - it only crashes when one of the seekbars has a non-zero value Jun 24 13:48:57 only difference you will see is if you saved data in the onSaveInstanceState(bundle) Jun 24 13:49:07 then in the onCreate you will have the state data Jun 24 13:49:08 lemonxah in the new mixit , did you guys still go with 1 activity for everything ? Jun 24 13:49:09 I must be misshandling things somewhere, I'm trying to find where Jun 24 13:49:17 no g00s :/ Jun 24 13:49:22 g00s, it still doesn't have a hardware keyboard ;) Jun 24 13:49:38 changing away from the nav drawer we now sit with 3 activities Jun 24 13:49:40 d0de, your stack explains all Jun 24 13:49:43 My app uses a dynamic list, i am thinking of splitting it to another module. How would I properly name all this? I currently have 2 modules app and list and app is in package com.app while list is in com.app.list is this right? Jun 24 13:49:45 Zharf i never cared about hardware keyboards (ok by me!) Jun 24 13:49:50 we have a generic activity that can display any fragment Jun 24 13:50:13 g00s, you wouldn't want to go back after using one! Jun 24 13:50:15 lemonxah oh so the tabs replaced the nav drawer ? Jun 24 13:50:17 pfn, know any good resources for like "stack tracing 101" or something? I know there's tons of info out there but I don't know where to begin Jun 24 13:50:20 I used to care about hardware keyboards, then they sucked Jun 24 13:50:25 I hate how they're not making any new ones with hardware keyboards :E Jun 24 13:50:26 for navigation yes g00s Jun 24 13:50:32 Zharf my droid-1 had a hw keyboard, it was terrible and made the phone fat Jun 24 13:50:39 d0de, that's basic Java and programming Jun 24 13:50:44 the navdrawer is maybe going to be used to display profile data Jun 24 13:50:53 my xperia mini pro is perfect but it's getting old :E Jun 24 13:50:55 I like hardware keys for games, your fingers don't cover up the tiny screen Jun 24 13:51:04 that makes sense Jun 24 13:51:10 but I won't get a new one until someone makes one with hw keyboard Jun 24 13:51:15 nevertheless Jun 24 13:51:37 still not sure what Nokia is trying to do though with an android device, seems kinda weird Jun 24 13:51:40 so profile will be in the navdrawer and also like quick status change and the likes but only your own profile info displayed no nav Jun 24 13:51:46 shmooz, get a bluetooth thing for that Jun 24 13:51:50 not sure what amazon is doing with a high margin android phone either Jun 24 13:51:56 world is getting weird ! Jun 24 13:51:57 pfn: I already did ;) Jun 24 13:51:58 g00s, we have the x1 or something like that Jun 24 13:52:03 the first nokia android device Jun 24 13:52:12 got it since before reveal Jun 24 13:52:18 x Jun 24 13:52:23 cause we embed on other nokias so they sent us one Jun 24 13:52:27 its a pain in the b hind Jun 24 13:52:30 hey g00s, shmooz :) Jun 24 13:52:43 oh oh therue is back Jun 24 13:52:54 therue read all your books already :D Jun 24 13:52:57 hi therue Jun 24 13:52:59 ya Jun 24 13:53:24 can't wait fo r my replacement Moto x to arrive Jun 24 13:53:25 and i downloaded intellij on my macbook which i just got from my brother... though i'm so uncomfortable using it lol 'cuz i'm so used to pc Jun 24 13:53:30 and deploying a new version of our android we have to release 1 to the playstore 1 to BB for BB10 and 1 for Nokia its a pain Jun 24 13:53:38 I hate my galaxy nexus so much Jun 24 13:53:48 getting old now? Jun 24 13:53:54 just got the lg g2 Jun 24 13:53:58 actually like it a lot Jun 24 13:54:33 I want the g3 Jun 24 13:55:05 but a google play edition while keeping the good parts Jun 24 13:55:08 hey what irc client do you guys use? i used to use xchat, but i hate that you can't put multiple channel windows in tiles mode (like one on top, one on bottom) Jun 24 13:55:19 i'm trying out KVirc right now Jun 24 13:55:36 therue textual Jun 24 13:55:46 it's practically as bad as my droid1,everytime I do something the previous app gets evicted from ram Jun 24 13:56:01 g00s, you on mac? Jun 24 13:56:05 therue ya Jun 24 13:56:06 I use hexchat Jun 24 13:56:18 therue you said you were on mac right ? Jun 24 13:56:19 still using xchat Jun 24 13:56:21 ya i wanna try hexchat, but somehow the download keeps failing Jun 24 13:56:42 well my main desktop is pc.. i just recently received the macbook air from my brother since he doesn't need it Jun 24 13:57:17 I wonder if the x+1 will be nice, the Moto x makes me want to stick with Motorola Jun 24 14:03:19 hm, fipronil is implicated in world bee collapse. thats the shit in frontline Jun 24 14:03:45 lemonxah do you have a screenshot of nav drawer + tabs ? Jun 24 14:04:05 i don't recall seeing it in the preview video Jun 24 14:04:43 therue hey trade the MBA for a Surface Pro 3 - i think MS is doing that ZDS Jun 24 14:04:49 s/ZDS/ XD Jun 24 14:05:10 clear Jun 24 14:05:39 I'm getting the error: No plugin found for prefix 'android' in the current project Jun 24 14:05:39 Google does not help very much... Jun 24 14:05:50 therue http://content.microsoftstore.com/en-us/offers/prudentialcenter#offer-surface-pro-3-trade-in Jun 24 14:06:02 when i try: mvn android:help for example Jun 24 14:06:26 looks pretty nice Jun 24 14:06:38 don't tell your bro XD Jun 24 14:06:46 i've never used mac... well the really really old ones back in the days Jun 24 14:07:01 but i must say, i do find this macbook air very sexy :D Jun 24 14:07:12 everything is so neat and pretty Jun 24 14:07:31 that describes all apple stuff :) Jun 24 14:09:00 is that why he called it apple, the forbidden fruit from the garden of eden Jun 24 14:09:17 which we now have stuck in our throats Jun 24 14:09:20 but ya i'll use this macbook for writing codes.. and i can haver my desktop screen to look at the pdfs i've found on java :) Jun 24 14:09:55 resist the temptation! Jun 24 14:11:54 anyone here have experience developing apps for iphone as well as android? Jun 24 14:13:18 bankai_au does Jun 24 14:13:30 therue: yup :) Jun 24 14:14:39 They tried to buy me a 13 inch mac book pro at work to start on ios dev. I told them no and eventually persuaded them into getting a mac mini with 8gb of ram Jun 24 14:15:07 jonc reasoning ? Jun 24 14:15:24 mac mini doesn't seem to get much love Jun 24 14:15:44 13 inch screen is about worthless for dev, and it is like $1400 for a 8GB mac book pro Jun 24 14:15:54 seems like they are getting harder and harder to take apart also Jun 24 14:16:06 whereas I can get a mac mini with 8GB of ram and 2 24 inch + monitors for like $1100 Jun 24 14:16:24 the new mac book pro's have soldered in ram Jun 24 14:16:33 lemonxah do you have a screenshot of nav drawer + tabs ? ---> no unfortunately i dont it was added after the preview of the app Jun 24 14:16:33 i hate that Jun 24 14:16:34 the mac mini does not (at least not the current version) Jun 24 14:16:54 jonc: that was a huge disappointment for me as a longtime mac user Jun 24 14:17:01 i will make a new preview vid a bit later Jun 24 14:17:06 lemonxah cool Jun 24 14:17:19 but you like the tab nav look that i did? Jun 24 14:17:38 lemonxah hard to say without using it - how many tabs are there ? Jun 24 14:17:56 whats the frequency one jumps from tab1 to tab (last) Jun 24 14:18:02 etc Jun 24 14:18:08 grep_awesome, yeah I never used mac's. I've always just built my own, but as soon as I learned they were going to start soldering in ram I decided there was no chance I would buy one Jun 24 14:18:19 lemonxah time for some a/b testing :) Jun 24 14:19:05 jonc: It's tough for me, but I've never been particularly attached to hardware. The allure of having a POSIX system with a ecosystem popular enough to have good tools is still to strong for me to switch away Jun 24 14:19:32 g00s, ab testing for sure but the frequency of tabs 1 - 3 is high Jun 24 14:19:56 1 is highest 2 higher 3 high , 4 + 5 is seldom Jun 24 14:20:05 hardware to me means more than the OS. I play a lot of games on my machine and some of the server stuff I write takes a lot of memory and cpu time (machine learning related things) Jun 24 14:20:29 lemonxah so only 5? i guess thats not bad Jun 24 14:20:38 I built a new pc last year with an i7 4770 and gtx 660 ti. Total cost was something like $900 Jun 24 14:21:09 i just built mine a month ago Jun 24 14:21:14 jonc: makes sense for what you do, for sure Jun 24 14:21:15 i7 4770 as well :) Jun 24 14:21:38 I also hate laptops in general Jun 24 14:21:50 i actually only wanted 3 but .. business (the guys with the money says they other 2 needs to be there) Jun 24 14:22:33 they are always underpowered compared to "equivalent" desktop hardware, cost more, and you can't upgrade as easily so the life of it is a lot less than a desktop typically Jun 24 14:25:27 anyone know how to compile binaries via AOSP without re-including everything? Jun 24 14:25:41 (every time you modify the source and run make) Jun 24 14:26:07 you can prevent your activity from being restarted just by adding android:configChanges="orientation|screenSize" ? Jun 24 14:26:57 d0de don't do that ;) Jun 24 14:27:06 g00s, why not? Jun 24 14:27:09 fix your code, understand the lifecycle Jun 24 14:27:50 I've fixed the code, but avoiding the restart gives lots of other improvements in my app Jun 24 14:28:14 except it doesn't work on landscape now Jun 24 14:28:32 and on a tablet, not working in landscape is lamesauce Jun 24 14:28:48 g00s, I've made sqlite db to hold all the content data :) Jun 24 14:28:59 DarkChaoz there you go :) Jun 24 14:29:00 I thought db would take hell alot of space Jun 24 14:29:07 DarkChaoz is the data constant / unchanging ? Jun 24 14:29:08 is ORMLite fairly good? Jun 24 14:29:10 but its like 33KB xD Jun 24 14:29:16 g00s, I don't understand, I'm testing on a tablet and it seems to work fine? Jun 24 14:29:44 so i just need to use the viewpager and layout and load data onto textview.. Jun 24 14:33:57 dang it google, where is my 4.4.4 update? rolling out security updates so slowly is unacceptable Jun 24 14:34:09 what device? Jun 24 14:34:18 2013 n7 Jun 24 14:34:29 gotcha Jun 24 14:34:45 they are nice tablets Jun 24 14:34:56 g00s: I'm waiting too, they said 2012 N7 got it Jun 24 14:34:58 we have a couple here at work. The smoothest android experience I've seen Jun 24 14:35:14 I have an acer a500, old and slow Jun 24 14:35:37 jonc yeah overall its pretty nice. mine has bad wifi in 5G band and loose usb; the screen is starting to make weird noises when i touch it in places Jun 24 14:36:23 in my room atm, every device gets my wifi at 5G except my n7 Jun 24 14:36:33 so its sitting on 2.4 Jun 24 14:37:16 shouldn't be too bad if everything else is on 5ghz Jun 24 14:37:30 but for the price - pretty hard to beat for a media consumption device Jun 24 14:37:45 yeah Jun 24 14:37:58 I traded a bunch of books in to get like $300 of amazon credit to get my tablet Jun 24 14:38:08 this was like 4 years ago or so Jun 24 14:38:28 jonc oh nice; i used amazon to sell lot of books Jun 24 14:38:32 the 9" HTC nexus is supposedly going to be pretty expensive Jun 24 14:39:01 yeah, that is what I saw Jun 24 14:39:09 they are going to price themselves out I think Jun 24 14:39:12 hi i am using maps in my app but some devices i have this error: java.lang.NoClassDefFoundError: android.security.MessageDigest. Anybody can help me? Jun 24 14:40:02 t0th_-, http://stackoverflow.com/questions/11137112/java-lang-noclassdeffounderror-android-security-messagedigest Jun 24 14:40:13 i see Jun 24 14:40:26 change the import from "android.security.MessageDigest" to "java.security.MessageDigest" Jun 24 14:40:43 but... i am not importing android.secutiry.messagedigest Jun 24 14:40:46 it is internally Jun 24 14:40:56 pastebin the stack trace Jun 24 14:41:25 http://pastebin.com/F3mn2YWv Jun 24 14:42:41 are you using the latest google play services? Jun 24 14:42:47 yes Jun 24 14:44:00 http://stackoverflow.com/questions/17749686/noclassdeffounderror-android-security-messagedigest Jun 24 14:44:03 has a work around Jun 24 14:44:04 i need google maps lib and play services? Jun 24 14:44:14 no Jun 24 14:44:24 I believe the latest play services kind of combines everything Jun 24 14:45:06 the second answer on that stack overflow has a work around if need be. Add a android.security package to your app and copy over the MessageDigest code (listed there) Jun 24 14:46:45 hi there ^^ Jun 24 14:47:16 thanks, jonc Jun 24 14:49:59 Hello Jun 24 14:50:14 I'm looking to robolectric. I want to mock my http responses so I can test a portion of my code that calls a restful like service. I don't know if there would be some problem when I'm using okhttp to make the requests. Jun 24 14:57:34 what is the best system to run android studio and the biggest factor in gradle build times? Jun 24 14:58:01 I suspect linux is the best platform to use, but is there a flavour that is favoured or used internally at google for development Jun 24 14:58:33 also does harddrive speed (ie the speed of your ssd) effect build time or is it more processor and ram based? Jun 24 14:58:54 I believe all the official stuff references ubuntu Jun 24 14:59:05 in general, that's your safest bet Jun 24 14:59:28 but I'm sure someone has gotten it working on just about anything. Jun 24 15:00:14 true but I'm running a pretty fast machine and I still have to wait some time to load android studio and build using gradlew. I understand my project is quite complex though Jun 24 15:00:16 Yup, you either go with a debian based distro, preferably ubuntu, or fedora if you have some experience with it. Other distros could be hard to get started quickly Jun 24 15:00:37 I'm on mint at the moment and it works pretty well. Jun 24 15:01:11 How is pretty fast? :) Jun 24 15:01:16 as for gradle build times, does disk access play much of a role? For example will any ssd do, or would it be benifical to raid them? Jun 24 15:01:35 I don't think you can get a better time Jun 24 15:01:39 if you have sufficient ram, disk becomes irrelevant Jun 24 15:01:41 a second perhaps? Jun 24 15:01:46 because linux does aggressive fs caching Jun 24 15:02:01 (irrelevant beyond the initial load, that is) Jun 24 15:02:15 it goes fine on my mac Jun 24 15:02:28 well, fine == a minute or less :P Jun 24 15:02:40 any OS does pretty aggressive ram caching now Jun 24 15:02:49 indeed Jun 24 15:04:10 8 gb of ram, i7 @ 3.40 x 4 and an ssd Jun 24 15:04:29 I have 4 Jun 24 15:04:35 but if I don't fill them, that doesn't matter Jun 24 15:04:57 I want to use different layout for landscape on tablets larger than 7 inches, what directory ("layout-xxx") should I use? Jun 24 15:05:17 need moar ram Jun 24 15:05:34 ClockworkAnt probably your gradlew is checking also for updates Jun 24 15:05:41 so will ram actually help with gradle, or is it just throwing memory at the problem Jun 24 15:05:48 gradle is slow Jun 24 15:05:55 use gradle --daemon to make it faster Jun 24 15:06:13 Adyrhan: it's great to see someone else keeps calling it gradleW by accident as well :P Jun 24 15:06:25 well, the script is gradlew... Jun 24 15:06:56 I'll try the daemon, with the updates, is that something that's required? Jun 24 15:07:08 I have a project with 54 modules and it takes an age to build from clean Jun 24 15:07:23 If I remember correcly there is some option somewhere, either in intellij or in the gradle config to avoid checking for updates. Also, what pfn says is important Jun 24 15:07:28 i think daemon only works with gradle from the command line; using AS it might be different. Jun 24 15:07:28 you should use the daemon mode Jun 24 15:07:37 no, its not Jun 24 15:07:57 well, from what i can tell gradle is being run in the AS process Jun 24 15:08:09 but you can change that Jun 24 15:08:46 but when i disabled 'run in process' and had daemon set, it was still slow ;) Jun 24 15:09:12 No, I was telling Clockwork. I certainly don't know if AS is using the daemon for calling gradle or is it creating a new process for itself Jun 24 15:10:09 updates are required Jun 24 15:10:28 in any case, to solve the updates problem, don't use + versions in your dependency specifications Jun 24 15:11:29 + versions pfn? Jun 24 15:11:39 don't specify + in your versions Jun 24 15:11:40 if you have any Jun 24 15:11:51 that dramatically slows update since it always has to check servers for new versions Jun 24 15:12:02 ohh I see, ok Jun 24 15:12:57 I need to vent for a second. It seems like there are a billion things I have to deal with when implementing a master detail screen that could have been abstracted. Has anyone else done a master / detail yet? Jun 24 15:13:13 no one has ever Jun 24 15:13:40 pnf, good plan I'll amend my build scripts and see if it helps Jun 24 15:13:45 pfn lol Jun 24 15:13:50 ha! Jun 24 15:13:51 sorry Jun 24 15:14:20 and Adyrhan I build from command line so the daemon may help thank you Jun 24 15:14:49 theblang check this out http://www.slideshare.net/commonsguy/mastering-the-master-detail Jun 24 15:15:36 g00s nice, I noticed that he had a master detail component on github Jun 24 15:16:37 I still have to buy a new laptop myself, I ditched AS as soon as.... it freezed xd Not so long ago I though of eclipse being a ram eater. If I compare it with AS, its super optimized xD Jun 24 15:17:22 AS uses a fraction of the ram eclipse does, on my stuff Jun 24 15:17:44 but AS + genymotion and stuff like that, kills my poor mini Jun 24 15:17:45 :P Jun 24 15:18:07 I use intellij idea for some small projects, it goes a little bit faster and seems to eat a little less. But still most of my projects are eclipse because of the laptop XD Jun 24 15:18:23 some people have said that the newest android studio is /fast/ faster than intellij Jun 24 15:18:37 I have a hard time believing it, but ymmv Jun 24 15:19:49 you really use eclipse over android studio?! Jun 24 15:19:57 If I use eclipse, I can use genymotion, if I use AS or intellij idea I cant :D Jun 24 15:20:10 there are no resources, period ^^ Jun 24 15:20:21 The last version of eclipse I used was helios and it was a nightmare Jun 24 15:20:23 but you just said intellij eats less Jun 24 15:20:31 wat Jun 24 15:20:32 less than AS Jun 24 15:20:36 I thought AS has a genymotion plugin Jun 24 15:20:36 not than eclipse Jun 24 15:20:46 the only reason I use an IDE now was because I found that intellij works nicely with my dev setup Jun 24 15:21:00 I chose to use vim instead of eclipse for the least 3 years working with android Jun 24 15:22:19 That's multiple people in shock pfn, that sounds like hard work! Jun 24 15:22:27 not really Jun 24 15:22:28 vim > * Jun 24 15:22:37 that plus over a decade of experience with java makes it easy Jun 24 15:22:44 the only vim command I know is :!q Jun 24 15:22:46 I guess that each one of us has its own workflow and prefered tools :) I also used vim when writing C/C++ Jun 24 15:22:54 don't need no stinkin' ide to know what apis to use Jun 24 15:23:25 do you have any code completion in vim? Jun 24 15:23:34 i have a ScrollView that does not show the bottom of its content, what could be wrong? all items inside are wrap_content so it should have a good idea of how high the content is Jun 24 15:24:31 pfn you like to memorize methods and classes I guess Jun 24 15:25:00 memorize? it comes naturally with use Jun 24 15:25:17 So, you never use newer apis? Jun 24 15:25:27 no, I keep reference documentation open at all times Jun 24 15:25:35 because if you don't know how to use reference documentation, you fail to begin with Jun 24 15:25:51 if you use the ide then you have ref doc inside your environment Jun 24 15:25:59 Can I create a module that displays data on my main activity (which is in another module) ? Jun 24 15:26:50 ClockworkAnt, that's pretty false Jun 24 15:26:59 yup, but then I don't see how you get a quick workflow with vim. vim autocompletion is not as good as other ides as far as I've seen. so you either use what you know well, or you switch a lot between windows Jun 24 15:27:02 you can't browse and understand how apis relate by looking in-ide Jun 24 15:27:13 don't use autocompletion Jun 24 15:27:20 that just teaches you to use the wrong apis all the time Jun 24 15:27:25 Hi all, I have a fragment which contains a map (osmdroid), when opening/closing the fragment multiple times I got an Out Of Memory Exception, how can I fix this? Somebody told me to set the MapView to null in ondestroy, good / bad / better solutions? Jun 24 15:27:29 And thats a thing I also try to reduce myself for things that are relatively new :) Jun 24 15:27:47 e.g. too many people use the wrong R class because of autocompletion Jun 24 15:27:53 (or autoimport, but same difference Jun 24 15:28:51 all too often, people use the wrong api because autocomplete gave them something that looked like it /might/ work Jun 24 15:29:32 And finally, disregard pfn's personal preferences and take advantage of all the autocomplete awesomeness Jun 24 15:30:07 and write incorrect code over and over until you actually understand what the apis do Jun 24 15:30:14 they're a convenience for not typing, not for api discovery Jun 24 15:30:21 pfn> you can't browse and understand how apis relate by looking in-ide. < the thing is, you can get portions of the doc and learn from the ide, its not too much, but sure it gets faster to navigate newer apis and look to the doc of it without necesarily programming blind Jun 24 15:30:37 of course if we only get in-ide just the method declarations, that doesn't work Jun 24 15:30:42 Adyrhan, you are programming blind by not seeing the full documentation for "new apis" you want to use Jun 24 15:30:59 well, only if its the very first time Jun 24 15:31:11 you can open the api doc, get a good grasp of how it works Jun 24 15:31:16 it's like the blind man feeling the elephant's tail and declaring that an elephant is an animal like a snake Jun 24 15:31:16 Sounds like you're advocating not using an ide rather than understanding what you're actually doing Jun 24 15:31:19 and jump through the doc then in-ide Jun 24 15:31:24 faster workflow :) Jun 24 15:31:26 SimonVT, I've never said that Jun 24 15:31:34 That's what it sounds like Jun 24 15:31:50 Maybe I missed some of the conversation :) Jun 24 15:32:05 I said, I've used vim instead of eclipse because eclipse sucks, and finding apis in documentation is better than autocomplete for me Jun 24 15:32:17 I said I've stopped using vim since I made intellij work for my dev process Jun 24 15:33:08 It's interesting to hear other peoples workflows, I still love IDE's though but if working in a VIM fashion without autocomplete makes you comfortable fair enough Jun 24 15:33:20 oh ok I though you were using vim for 3 years, not that you left it :) Jun 24 15:33:38 I did use vim for android for 3 years out of the ... 5 now I've been working with android Jun 24 15:34:27 like I said, only switched to intellij because it could be made to work with my process Jun 24 15:36:08 Hi guy's, I start a topic about Android http authentification, it's not working for me, did exist some fixes ? (the same code work in standard J2ME, but in android, the "authentificator" doesn't work .. google code is not good Jun 24 15:36:14 http://stackoverflow.com/questions/24390414/http-auth-authentification-not-working-on-android Jun 24 15:36:43 what is "AUTH" identification Jun 24 15:36:46 I assume you mean digest Jun 24 15:36:46 I find two issues on code.google.. where they speak about it, they speak about a fix but .. Jun 24 15:37:03 pfn, there is multiple HTTP authentifications Jun 24 15:37:18 there's no such thing as "auth" Jun 24 15:37:20 The more easy is "BASIC", (just in the http headers) Jun 24 15:37:35 in my case it's an "AUTH" Jun 24 15:37:49 there's no such thing as "AUTH" Jun 24 15:39:52 is there a way to call code when an orientation change occurs, without messing with configChanges Jun 24 15:40:07 WWW-Authenticate: Digest realm="TV-IP751WIC",qop="auth", nonce="609e82add9ff142e43ee354d2ebe1d96" Jun 24 15:40:16 cyber37, that's digest, you goofball Jun 24 15:40:19 That's why i call it a "auth" authentification Jun 24 15:40:28 it's not Jun 24 15:40:29 it's digest Jun 24 15:40:31 So digest doesn't work Jun 24 15:41:22 rfc2617#3 Jun 24 15:42:41 Any idea ? Jun 24 15:42:59 what version of android, older versions did not support digest Jun 24 15:44:24 does no android:configChanges == android:configChanges="orientation|screenSize" with an @Override onConfigurationChanged() {super.onConfigurationChanged()} Jun 24 15:44:43 theblang, no Jun 24 15:44:56 onConfigurationChanged is only called for the types you specify in android:configChanges Jun 24 15:45:01 to allow you to do resource loading yourself Jun 24 15:45:08 API 14 Jun 24 15:45:12 4.0 Jun 24 15:45:37 pfn ok, let me rephrase. if I call super, then will Android do all of its usual stuff? im needing to run something onconfigurationchanged, but I dont want to lose any default behavior Jun 24 15:46:04 theblang, there is no default stuff Jun 24 15:46:21 Either the activity is re-created with the new configuration, or you handle everything Jun 24 15:46:30 Take your pick Jun 24 15:47:05 SimonVT so then if I specify a config change, then call super, the activity won't be restarted like it usually is? Jun 24 15:47:18 No, that's the point of configChanges Jun 24 15:47:26 "I want to handle this" Jun 24 15:48:38 cyber37, anyway, looks like httpurlconnection doesn't support digest auth Jun 24 15:49:05 has anyone encountered the following error while building aosp on mainline?: build/core/java.mk:23: *** cts/apps/CtsVerifier: Invalid LOCAL_SDK_VERSION 'current' Choices are: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19. Stop. Jun 24 15:49:10 I'm watching about digestsheme Jun 24 15:49:29 where can I find the source code for "toolbox" which seems to be a busybox replacement? Jun 24 15:49:36 ELFrederich, in aosp Jun 24 15:49:39 system/tools Jun 24 15:49:43 pfn that is curious is : authenticator is implemented in google code Jun 24 15:49:49 pfn, okay... its not its own repo? Jun 24 15:49:58 If it don't work, why they don't remove it ? Jun 24 15:50:01 cyber37, of course, because java-se libraries do not provide an implementation Jun 24 15:50:05 remove what? Jun 24 15:50:07 it works fine for basic auth Jun 24 15:50:14 which is probably 90% of http auth used out there Jun 24 15:50:21 damn Jun 24 15:50:53 in standard j2me it work for digest too, so now i understand... thanks, i will see if i find better results Jun 24 15:51:03 ELFrederich, it's in platform/system/core Jun 24 15:51:05 which is its own repo Jun 24 15:51:11 I am watching for digestsheme, maybe it have something to do in that shit Jun 24 15:51:15 cyber37, easy, implement it yourself Jun 24 15:51:19 I come back latter Jun 24 15:51:21 and of course it has something to do with it... Jun 24 15:51:25 it's not supported :p Jun 24 15:51:38 Borring to self implement Jun 24 15:51:51 then use httpclient, it should be supported there Jun 24 15:51:59 you have to make md5 of some part, find some parts in the stream, add 1 to the count etc etc Jun 24 15:52:12 httpclient ? omg i will see so :D Jun 24 15:52:18 pfn, is this where I want to get it from? https://github.com/android/platform_system_core Jun 24 15:52:20 thanks, i afk i come back latter Jun 24 15:52:28 ELFrederich, that's not the canonical source Jun 24 15:52:32 but you can get it from there Jun 24 15:52:51 pfn, where would the canonical be? Jun 24 15:52:55 android.googlesource.com is the canonical location Jun 24 15:54:07 weird, I get a 407 from there Jun 24 15:56:15 I have a FooListActivity, that in landscape is master detail. When an item is selected, I replace the FrameLayout container with a new FooDetailFragment. If I rotate to portrait, then refresh the list such that there are no results, then swap back, my app crashes because the id of the item backing the FooDetailFragment that was previously created no longer exists. That is why I was trying to remove a fragment on configuration change earlier. A Jun 24 15:56:15 ny suggestions on how to handle this situation? Jun 24 15:57:07 detect that it doesn't exist and revert to the master detail Jun 24 15:57:08 pfn, thanks for your help... a couple more questions though. Is toolbox just a project that is included in Android... just copied into the source?... meaning, is there an "upstream" for toolbox somewhere else? Jun 24 15:57:21 ELFrederich, dunno, read commitlogs and see Jun 24 15:58:18 Author: The Android Open Source Project Jun 24 15:58:18 Date: Tue Oct 21 07:00:00 2008 -0700 Jun 24 15:58:43 pfn so in the FooDetail fragment check if the id is null, and if so then do a callback in my ListActivity? Jun 24 15:58:58 I guess, whatever way you have of doing it :p Jun 24 15:59:57 pfn well, I don't have a way of doing it at the moment hehe' Jun 24 16:00:04 make one :p Jun 24 16:00:17 98% of ram used, living to the limit.... e.e Jun 24 16:00:37 pfn let me ask this though, why is the FooDetail fragment still around. shouldn't the activity have been restarted on config change? Jun 24 16:00:50 theblang, fragmentmanager exists independently of activity Jun 24 16:01:23 perhaps you also setRetainInstance Jun 24 16:01:44 I'm trying to create a group of apps that share data (like the shared preferences or sql database) between them. The data should only be deleted once the last app is uninstalled. Does anyone have an idea how I could do that? Jun 24 16:01:50 Syzygy, NO Jun 24 16:01:56 pfn so that is why I was trying to call onConfigurationChanged earlier, because one solution is to onConfigurationChanged remove the detail fragment, then reinitialize in onCreate. but if I do that I interfere with default behavior. Jun 24 16:01:58 goddamn, why do you keep asking a dumbass question Jun 24 16:02:04 Syzygy, if you need a shared location, use /sdcard/ Jun 24 16:02:11 you've been answered like 10 times, or otherwise ignored Jun 24 16:02:17 because i need it and I want a second oppinion Jun 24 16:02:23 there is no second opinion Jun 24 16:02:23 you're the only one that ever answered Jun 24 16:02:31 that's because that's the only answer you'll ever get Jun 24 16:02:54 there's always someone that knows a hack to do it Jun 24 16:03:13 theblang, onConfigurationChange doesn't do anything for you Jun 24 16:04:01 pfn but if I delete the detail fragment onCOnfigurationChange, and the activity always reinitializes it in onCreate, wouldnt that solve the problem? Jun 24 16:04:19 theblang, maybe, depends on when your app is crashing as a result of this Jun 24 16:04:31 theblang, but if you onConfigurationChanged orientation, your app will never rotate Jun 24 16:04:35 Using external storage has to many issues because this would be data that shouldn't be shared outside of our controll. Jun 24 16:04:36 so no, it doesn't really solve your problem Jun 24 16:04:44 Syzygy, you must always have 1 central app Jun 24 16:04:56 otherwise, write some distributed app handling for it Jun 24 16:04:59 pfn: Hey, you wrote the android-sdk-plugin for sbt, right? Jun 24 16:05:07 huh, what's that? Jun 24 16:05:08 :p Jun 24 16:08:40 has anyone encountered the following error while building aosp on mainline?: build/core/java.mk:23: *** cts/apps/CtsVerifier: Invalid LOCAL_SDK_VERSION 'current' Choices are: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19. Stop. Jun 24 16:09:37 or is there a more appropriate forum for asking about aosp build issues? Jun 24 16:10:50 anyone used Cloudant libraries for Android? Jun 24 16:11:05 library* Jun 24 16:14:32 lol, never knew this had a name https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=hamburger%20icon Jun 24 16:16:25 hi Jun 24 16:16:51 i want get user head and put it on cartoon character Jun 24 16:17:01 how can i get it from camera Jun 24 16:17:44 any idea? Jun 24 16:18:32 molavy: Sure, but it's terribly complicated. :/ Jun 24 16:19:05 molavy: Recognizing a face requires recognizing facial features, which is hard by itself. Jun 24 16:19:07 i saw some implement that create overlay image over camera that force user to fit head inside head placement Jun 24 16:19:13 molavy: You probably want to use a library. Jun 24 16:19:42 molavy: Okay, that's easier. So, now? Jun 24 16:20:07 hmm Jun 24 16:20:07 i don't know how can i implement it , i can overlay image over camera Jun 24 16:20:37 but i don't know how can i get pixels inside placement as picture Jun 24 16:20:55 I've got an issue with my navigation drawer - it's based on the sdk sample, but it seems rather unresponsive. That is, I can draw it maybe once in three times Jun 24 16:21:11 are there any methods to adjust its sensitivity, etc? Jun 24 16:21:44 i can make a empty inside circle over camera, but how can i get picture inside this circle like Jun 24 16:21:56 flan3002: any idea? Jun 24 16:22:21 flan3002: I guess he doesn't care about recognizing anything :P Jun 24 16:22:25 molavy: Get the whole image and get the relevant part. Jun 24 16:22:36 Foxandxss: Which is fine. Jun 24 16:22:44 I agree Jun 24 16:25:29 rot27: android-building@ Jun 24 16:26:45 JakeWharton thanks Jun 24 16:28:48 flan3002: ok,i don't know how can i do it Jun 24 16:30:03 I have two list views, vertically aligned, both are scrollable by default, mostly the first one is displayed completely and the second one not, how can I make the whole layout scrollable as opposed to just the list view? Jun 24 16:30:13 Because you have to touch into the lower list view to make it scroll Jun 24 16:30:51 platzhirsch thats weird :| Jun 24 16:30:58 put it all in one listview and use multiple adapters :D Jun 24 16:31:15 flipping hate working on too many branches simultaneously Jun 24 16:31:20 meh Jun 24 16:31:25 g00s: save me from the merge Jun 24 16:31:31 Anyone happen to be around with solid SSL chops? Jun 24 16:31:46 thepoosh just do the 'git merge --mine' thinf :F Jun 24 16:32:08 When writing weird characters in XML strings, should I write the character like © or should I use Unicode escapes and do \u00A9? Both works Jun 24 16:32:11 not that, it was an issue from merging 3 branches in one day Jun 24 16:32:15 oh i guess its '-ours' and 'theirs' Jun 24 16:32:23 that were worked on over 3 months Jun 24 16:32:29 :S Jun 24 16:32:36 by 6 different people Jun 24 16:32:49 is this the first merge in 3 mos ? Jun 24 16:32:58 nope Jun 24 16:33:03 but something broke Jun 24 16:33:08 and my boss is abroad Jun 24 16:33:17 went to save his parents from the ukrain Jun 24 16:33:23 smallfoot- i had problems embedding directly Jun 24 16:33:37 wind up with some weird runtime error Jun 24 16:34:00 g00s: alias yolo='git commit -am "DEAL WITH IT" && git push -f origin master' Jun 24 16:34:30 smallfoot- use \u00A9? Jun 24 16:34:44 or &#xxxx; Jun 24 16:34:58 thepoosh, an alias with the same commit msg :/ damn Jun 24 16:36:05 g00s, both © and \u00A9 works, I don't know which to use, probably &#xxxx works too Jun 24 16:37:00 Hey guys, If say I am working with say a contentview , and the active view is like setContentView(R.layout.maincont); is there a way I can implement a if statement to say something like if(contentview == maincont) or something like that ?? Jun 24 16:37:30 flan3002: is there any guide for this , because it is not simple circle , it is head like container overlay camera , i want only what is inside placement Jun 24 16:37:33 Jared603, look if there is ay getContentView() Jun 24 16:38:11 Afzal: it's from the internets, I eould never such an ass Jun 24 16:38:39 the internets are a cruel place indeed Jun 24 16:38:54 }:) Jun 24 16:39:05 no there is not :( Jun 24 16:39:43 Jared603 what else would contentView be ? if you are setting it a bunch of times, thats bad Jun 24 16:40:35 What's the valid range of integers for http://developer.android.com/reference/android/widget/TextView.html#setTextColor(int) Jun 24 16:41:11 well since I am multi threading I just want to do a check between 2 different activities Jun 24 16:41:16 yiati: #aarrggbb Jun 24 16:41:26 Jared603 ugh wut O.o Jun 24 16:41:34 therefore its all the way up to 0xfffffff Jun 24 16:44:38 shit this is harder to explain than I could imagine Jun 24 16:45:13 anyone doing Android Wear stuff? do they have a separate channel ? Jun 24 16:46:01 my avd says connect your charger :| Jun 24 16:47:04 check this out please http://pastebin.com/eSwp7Xbq Jun 24 16:48:20 Jared603 don't do that ! Jun 24 16:48:38 that will be $5 Jun 24 16:48:51 -_-, then what should I do Jun 24 16:49:30 don't do that - get rid of the splash; then you're ok Jun 24 16:49:51 hmm, android keeps trashing my opengl context Jun 24 16:50:00 thepoosh were you the one who sent me that youtube a while back; was it sat night live with the counselor ? Jun 24 16:50:04 everytime I call requestLayout() :/ Jun 24 16:50:10 i think it was $5 for 10 minute block of advice Jun 24 16:50:33 lol Jun 24 16:50:45 g00s: what was in it? Jun 24 16:50:55 I don't remember doing it but I might have Jun 24 16:51:02 I tend to speard the wealth Jun 24 16:51:14 *spread Jun 24 16:51:22 just that lady getting help from the psychiatrist ; all he said was 'don't do that!' Jun 24 16:51:26 buttttt I want to split between 2 views, how..:\ Jun 24 16:55:18 you guys are actually really good helpers, because everytime you don't help, I get to figure it out on my own :D, like I run for help , but I know I dont actually need it Jun 24 16:56:04 you are like those spiritual enlightenment monks Jun 24 16:56:18 to code you must become the code Jun 24 16:56:25 Any of you hack on the lower level system code on Android? Jun 24 16:56:34 specifically binder Jun 24 16:58:42 Jared603: that is called rubber duck debugging Jun 24 16:58:47 where can i move my db to data/data//databases/ Jun 24 16:59:05 Moral_ you may have better luck asking in android-developers google group, hoping dianne sees it Jun 24 16:59:28 DarkChaoz, getApplicationContext.getDir("databases", Context.MODE_PRIVATE") ? Jun 24 16:59:47 g00s: roger that, was just curious, really im hacking on it and wanted to see if anyone else was. Jun 24 17:00:13 She probably won't see it this close to I/O :p ask tomorrow at one of the chats :p Jun 24 17:00:22 currently my database is in the assets folder. Jun 24 17:00:41 i remember at the last I/O fireside somebody asked her when the binder stuff was actually going to start working Jun 24 17:00:41 oh..umm, yeah, why? Jun 24 17:00:53 no idea really Jun 24 17:01:04 Rubber Duck Debugging ??? Jun 24 17:01:06 no no, I'm asking DarkChaoz why his db is in assets Jun 24 17:01:25 Jared603: yeah Jun 24 17:01:30 because Im trying to import db into the project Jun 24 17:01:35 g00s: lol. At least for intents its good. But the kernel implementation is pretty trashy IMO. They have one giant lock on the ioctl Jun 24 17:01:38 so that slows it down quite a bit Jun 24 17:01:41 I've put it there because not sure where to place it atm Jun 24 17:01:47 nope, never heard of that Jun 24 17:02:23 Moral_ interesting Jun 24 17:02:52 Jared603: basically what you did, talking out loud your problems and realizing your mistakes Jun 24 17:03:02 thats why i want to move the db to the proper location Jun 24 17:03:04 haha ah, I get it Jun 24 17:03:07 but not sure how to. Jun 24 17:03:12 My app is compatible with sdk 3 by design, but now I want to make it compatible with sdk 2.3.3. Does anyone have tips for going backwards here? Is there a list of api differennces between 3.0 and 2.3.3? Jun 24 17:03:26 Jared603 but it is best to have a rubber duck at your desk Jun 24 17:03:40 that way when you talk to it, your coworkers suspect some kind of personality disorder Jun 24 17:03:41 Or a g00se Jun 24 17:03:49 :) Jun 24 17:03:51 :D Jun 24 17:04:03 I actually do have a desk companion Jun 24 17:04:06 g00s: I'll buy one Jun 24 17:04:30 my goose product will quack 'dont do that' Jun 24 17:04:42 One of my co-worker took the "talking to a furby" to the next level Jun 24 17:04:49 he'd have one on its desk and Id randomly hear it go off Jun 24 17:04:56 and i'll have a strap on the goose so you can make it a wearable Jun 24 17:04:58 Scarriest shit on the planet. Jun 24 17:06:19 My desk companion is a potato :) Jun 24 17:06:41 spud ! Jun 24 17:06:50 I am using singleTop launchMode for my search result activity, but somehow the intent parameter 'query' does not get updated on the second run, havin still the previous value Jun 24 17:06:57 does that make sense, I am wondering why is that Jun 24 17:07:26 nevermind, used getIntent() instead of local intent parameter Jun 24 17:07:29 platzhirsch may have to use onNewIntent Jun 24 17:07:51 g00s: yeah and in that method I was still using getIntent(), sloppy :) thanks Jun 24 17:08:14 My app is compatible with sdk 3 by design, but now I want to make it compatible with sdk 2.3.3. Does anyone have tips for going backwards here? Is there a list of api differennces between 3.0 and 2.3.3? Jun 24 17:09:08 qkzoo1978 thats a pretty strange decision to make nowadays Jun 24 17:09:21 i'd say go from 3.0 to 4.0 Jun 24 17:09:23 lol drinking an espresso out of a giant mug, hopefully it kicks me like a horse once kicked my aunt to death Jun 24 17:09:40 that's not an espresso... Jun 24 17:10:12 yes it is... Jun 24 17:10:39 unless it's like 10 shots, a giant mug won't make a difference Jun 24 17:11:19 is the db sqlite can be either .sqlite or .db? Jun 24 17:11:24 or just .db? Jun 24 17:11:33 the extension doesn't matter Jun 24 17:11:50 I have an espresso machine but it has this tiny glass, but I made it a few times to fill my mug , its like an 1.5 liter mug haha Jun 24 17:13:32 I don't get it, in this case just start eating the beans Jun 24 17:15:47 g00s: remember my question regarding two list views? Apparently it's possible to forward touch events Jun 24 17:16:08 feels like a hack though Jun 24 17:17:35 Anyone have a favorite irc app for Android? I believe I remember someone in here built one of the main ones Jun 24 17:18:01 you mean holoirc? Jun 24 17:18:17 i like androirc Jun 24 17:18:40 I barely use irc on android, but I have qicr installed Jun 24 17:19:40 IRC works on Android? Jun 24 17:19:48 it does??? Jun 24 17:19:53 holy shit, my world has been turned upside down! Jun 24 17:20:20 mind = blown Jun 24 17:21:00 Are you guys keyed up for Google I/O? Jun 24 17:21:06 nope, fuck IO Jun 24 17:21:10 come on Jun 24 17:21:11 lol Jun 24 17:21:21 snubbed 3 years running, I ain't gonna give no shit about it Jun 24 17:21:28 Last year I haven't thought I would be an Android developer in 2014, now I need to get into this Jun 24 17:21:41 like, yeah... this is the conference Jun 24 17:23:27 "You should never use a ScrollView with a ListView, because ListView takes care of its own vertical scrolling. " Jun 24 17:23:29 this is annoying Jun 24 17:23:55 platzhirsch yeah, you can't use a container in another, when both use the same axis Jun 24 17:24:00 for scrolling Jun 24 17:24:19 I mean it's nice that list view is more efficient this way, rendering when needed etc. Jun 24 17:24:50 but I really don't know what the proper way to deal with this situation. because I am displaying a text view between both list views Jun 24 17:25:00 If your data set for the adapter is a substanstial size it's not just nice but necessary that it be efficient at recycling Jun 24 17:25:33 platzhirsch plenty of ways to handle that with one listview Jun 24 17:25:48 shit, refactoring Jun 24 17:25:54 I mean great.. any hint what to look for? Jun 24 17:26:01 i hate listview too though, such a fucking pita Jun 24 17:26:07 yep Jun 24 17:26:09 except for the simplest cases Jun 24 17:26:36 There are definitely workarounds, but they are just that. The general message from the Android dev team is "don't even" Jun 24 17:26:39 why would you need nested listviews... Jun 24 17:26:43 so first I add the items of the upper list into the adapter and how can I customize the view? Jun 24 17:26:54 they are not nested, just two lists, two kinds of search results Jun 24 17:26:59 there should be built in stuff like cwac-mergeadapter, but i think that suffers in that you can only set an adapter once on a listview Jun 24 17:27:05 getViewTypeCount Jun 24 17:27:06 they really should have done a better job there Jun 24 17:27:41 better job? Jun 24 17:27:45 ... Jun 24 17:27:57 i think even romain disliked listview Jun 24 17:28:21 a found a tutorial http://androidtrainningcenter.blogspot.in/2012/03/android-listview-with-section-header.html Jun 24 17:28:36 now I feel really bad for using two list views in the first place Jun 24 17:29:09 platzhirsch this is a good blog http://cyrilmottier.com/2011/07/05/listview-tips-tricks-2-section-your-listview/ Jun 24 17:29:25 g00s: that looks nice Jun 24 17:29:30 so a good blog to follow as well Jun 24 17:29:35 nice(r) Jun 24 17:29:59 * platzhirsch subscribes to Cyril Mottier Jun 24 17:30:51 cool this import database tut from asset folder works :O Jun 24 17:31:16 DarkChaoz why are you doing that :| Jun 24 17:31:25 i'll ask 1 more time, is your db read-only ? Jun 24 17:31:55 yeah Jun 24 17:32:06 maybe you can use the java version of cdb Jun 24 17:32:24 mhmm Jun 24 17:32:38 whats it called, i could look into it Jun 24 17:33:01 http://en.wikipedia.org/wiki/Cdb_(software) Jun 24 17:33:21 http://www.strangegizmo.com/products/sg-cdb/ Jun 24 17:35:17 mhm, might use it.. but depends upon if i want to do more with db. Jun 24 17:35:25 sure Jun 24 17:36:04 well thanks! bookmarked it :) Jun 24 17:46:32 g00s: figured it out Jun 24 17:46:44 fucking Comperator and long values Jun 24 17:46:58 Have I gotten this right? I need to use dp so that screens with the same sizes but different densities will look the same. Then I need to provide different layouts for screens with different sizes? Jun 24 17:47:38 so much swearing Jun 24 17:47:40 I love it Jun 24 17:49:39 it would be interesting to do a comparative study between #android-dev and #iphoendev, to see which channel has the most swearing (correlation to frustration) Jun 24 17:51:10 g00s: related: http://www.vidarholen.net/contents/wordcount/ Jun 24 17:51:24 researchers would have to cleanse the data and remove my comments though :) Jun 24 17:51:45 jjnye ha ! Jun 24 17:52:15 jjnye shit spiked around 2.6.33 :) Jun 24 17:54:13 I imagine ios has far more Jun 24 17:54:15 g00s: do you think they officially cracked down on it? the number of swears has flatlined and lots of new code is being without swears Jun 24 17:54:44 no idea jjnye ; i haven't followed kernel dev in a while. i was going to try my hand at that before android Jun 24 17:55:13 hey, that shit spike is around the time they were merging the android-specific stuff back into the mainline kernel tree Jun 24 17:55:22 XD Jun 24 17:55:32 If I am starting an IntentService, and in the onHandleIntent method I spawn a bunch of threads and then return, will those threads stay alive? Jun 24 17:55:37 pfn: anecdotally, i had a coworker that would call XCode a "big, giant piece of shit" a couple times a week Jun 24 17:55:45 The threads in this case are listening socket handlers Jun 24 17:55:48 jjnye, I hear that all the time Jun 24 17:55:59 jjnye the old 3.x Xcode was simply terrible Jun 24 17:56:05 4.0 was unstable for a long time Jun 24 17:56:43 Images until the service is stopped and the process is destroyed, yeah Jun 24 17:57:50 g00s: but IntentServices automatically stop themselves when they don't have any intents queued, right? Jun 24 17:57:53 g00s ook thanks - the documentation is a ltitle vague because it says "When this method returns, IntentService stops the service,a s appropriate" Jun 24 17:58:00 little* Jun 24 17:58:07 as* Jun 24 17:58:28 jjnye oh yeah, you are right Jun 24 17:58:44 Images you don't want to use intentservice for that Jun 24 17:59:01 and running threads are GC roots so they won't be cleaned up as long as they're running Jun 24 17:59:08 ah ok - what would you guys do? Interestingly, this code worked as is when I was launching the service from an activity, but I changed the activity to a fragment Jun 24 17:59:10 just make a service, have an intent like ACTION_LISTEN_TO_ALL_THE_THINGS, and when it gets that start your threads Jun 24 17:59:35 and now i get an exception NetworkOnMainThread Jun 24 17:59:46 well, you still need to use threads Jun 24 18:00:21 i can't explain why it worked when I was starting the service directly from an activity. Jun 24 18:00:22 just heads up; the right way to shut those down is to close the streams and then the socket ;) Jun 24 18:00:30 Have I gotten this right? I need to use dp so that screens with the same sizes but different densities will look the same. Then I need to provide different layouts for screens with different sizes? Jun 24 18:00:41 roth_philip thats mostly correct Jun 24 18:00:50 i'm going to use fuzzy logic today Jun 24 18:01:15 that statement's membership is in the correct set :) Jun 24 18:01:44 g00s: Yes, my threads are managing the socket correctly. When I had this working before, the service was just launching the threads in the onCreate() Jun 24 18:02:25 something triggered NetworkOnMainThread Jun 24 18:02:50 that is pretty reliable, so must be a logic error Jun 24 18:03:16 Right - after I changed the launching activity to a fragment, and then had to change the launches to getActivity().startService(...) Jun 24 18:03:18 Images: are you calling Thread.start() or Threat.run()? Jun 24 18:03:35 jjnye: .start() Jun 24 18:03:50 jjnye that was a nasty bug in froyo with the GC roots Jun 24 18:04:11 dvm wouldn't GC stuff for shit if it was allocated on another thread; even after that thread was done Jun 24 18:04:23 ah Jun 24 18:04:24 fixed in 2.3 :) Jun 24 18:04:37 well before my time then, this is my first attempt at doing anything Jun 24 18:05:45 Images there is an async networking i/o library if you prefer that … i haven't tried it Jun 24 18:06:26 I may look into that. The code is already written and working in one application. I am trying to merge this functionality into my app, so hopefully modifying as little as possible Jun 24 18:06:57 I really don't have to handle "multiple simulataneous requests" which I understand to mean multiple things trying to launch service at once Jun 24 18:07:10 but the single service creation does launch multiple threads Jun 24 18:07:11 i thought it was koush/ion … but the description now includes image loading; thats weird Jun 24 18:07:20 so I thought IntentService might be better Jun 24 18:08:31 oh its this https://github.com/koush/AndroidAsync Jun 24 18:08:46 Images intentservice is for doing batch work Jun 24 18:09:01 not these long lived daemon type of things like listening to a socket Jun 24 18:09:52 gotcha..thanks. I will check out that other lib too Jun 24 18:11:36 so if you use with an id in your XML, I am assuming that sets retainInstance to true? Jun 24 18:11:51 i don't thin so Jun 24 18:12:03 *think Jun 24 18:12:16 g00s: mostly correct? Jun 24 18:17:06 Can an activity implement ActionMode.Callback? Or does it have to be a member variable of the activity? I have my callbacks defined directly on my activity, and the action mode never starts. Anyone have any info? Jun 24 18:17:47 And by "never starts", I mean startActionMode(this) returns null. Jun 24 18:18:30 g00s well crap, if not then I don't know why this listview is remember it's selected item Jun 24 18:19:33 g00s if I dont give it an id it gives a lint message about specifying an id to preserve state across activity restarts Jun 24 18:22:16 what kind of dpi is needed for an image? is 72 or 300 enough? Jun 24 18:22:56 theblang oh, id needed for saveOnRetainInstance stuff i think Jun 24 18:23:41 but i dont think the whole fragment gets setRetainInstance Jun 24 18:23:53 theblang clarification; ID for VIEW Jun 24 18:24:16 g00s im about to test, but I when changing orientation to portrait then back to landscape the listview would remember what item was chosen originally. i couldn't find where I would be doing that myself. about to test with a container injection Jun 24 18:25:03 can you set a minimum memory size and processor for your app? Jun 24 18:25:24 listView.saveInstanceState is doing that Jun 24 18:27:16 g00s ahh, what is the best way to stop it Jun 24 18:32:42 theblang hmm, i think i'm confused Jun 24 18:32:47 italy's out :S Jun 24 18:32:50 if i leave my app (switch to task manager or anything), it doesn't appear in the task manager or (on some devices) "recent apps". how can this happen? Jun 24 18:33:34 gdrc oh shit Jun 24 18:33:38 gdrc the director of my research center is italian Jun 24 18:33:51 you're fucked man Jun 24 18:34:05 tomorrow stay home Jun 24 18:34:09 gdrc haha Jun 24 18:34:39 i have an app with feed of my blog, how i can notify my app user when i have a new post in my blog? Jun 24 18:35:25 fancy42, you can exclude Activities from recents by setting a property in the Manifest. can you paste yours? Jun 24 18:35:58 t0th_-, http://developer.android.com/google/gcm/index.html Jun 24 18:36:07 uhhh gcm? Jun 24 18:36:09 g00s consider this. i am in master / detail, select one of the list items. I switch to portrait, do a refresh of the data that leaves me with different results, I don't want it to try and remember the old position. Jun 24 18:36:13 it is simple to implement? Jun 24 18:37:08 t0th_-, I haven't used it yet but the docs look good so I assume it is simple as in "understandable" but might take some time Jun 24 18:37:43 I have a list in a sliding pane layout. I'm setting one of the items as selected and it goes blue, then I slide the pane away and back and the colour is gone. The fragment that contains it has not paused or anything. Why might this be? Jun 24 18:38:40 thanks Jun 24 18:39:18 EPG, http://pastebin.com/SikDwuXt Jun 24 18:42:59 fancy42, hm, maybe it's caused by the launchMode. Why did you set it to singleTask? Jun 24 18:44:09 not sure anyone :D Jun 24 18:44:13 *anymore Jun 24 18:44:19 <- total dolt. If you don't return true from onCreateActionMode, it won't create the action mode. Doooon't know what I was expecting :P Jun 24 18:45:02 EPG, but i found it. it was because android:label="" Jun 24 18:45:16 EPG, I don't know why the version i sent you said android:label="asdf" Jun 24 18:45:40 EPG, sry that i have mislead you. but you still helped by pointing to the manifest :) Jun 24 18:47:10 i wish immersive mode was api 15 or something Jun 24 18:49:23 anyway to increase assets size limit Jun 24 18:55:33 anyone know of a good media encoding library? i need to up my video quality by taking high quality video and then re-encoding it to a lower bitrate codec as needed Jun 24 18:56:08 Is doing this a bad idea? public Context viewContext = MainActivity.this; I save this in an list adapter and then use it to add textviews Jun 24 18:57:49 Can anyone see what I'm doing wrong here? https://github.com/Astonex/Antox/blob/master/app/src/main/java/im/tox/antox/fragments/ContactsFragment.java setSelectionToKey sets the background colour blue, but if you slide the pane closed then open, the blue disappears. Is there another way I should be highlighting list items? Jun 24 18:57:55 its ok; as long as your adapter isn't running threads that access that Jun 24 18:58:00 setSelectionToKey is on line 98 Jun 24 18:59:37 g00s, any ideas? Jun 24 18:59:51 whomp no idea Jun 24 19:01:45 g00s, thanks :) Jun 24 19:08:23 btw I could use some feedback on my touch input recorder (root) RepetiTouch Free: http://forum.xda-developers.com/showthread.php?t=2270795 Jun 24 19:08:50 it was updated yesterday with some new features, fixes, etc. Jun 24 19:10:15 just as curiosity today, but is there any tool to extract your string so a non-android developer could translate them? Jun 24 19:11:12 any idea how i could replace this so i can load file from a raw folder? /Open your local db as the input stream Jun 24 19:11:12 InputStream myInput = myContext.getAssets().open(DB_NAME); Jun 24 19:11:49 Foxandxss there are services available from the Play store Jun 24 19:11:52 DarkChaoz, use getResources().openRawResource(id) Jun 24 19:12:00 g00s: services how Jun 24 19:12:21 i haven't used one; you get a choice, a bid, and you select which one - and get stuff back Jun 24 19:12:23 will try that EPG thanks :) Jun 24 19:12:31 g00s: I Didn't mean that Jun 24 19:12:52 say I want my gf to translate some strings to ... german Jun 24 19:13:08 I Don't want her to look at strings.xml (english) and comparing it to a new strings.xml for german Jun 24 19:13:23 better if she can see both strings on each side so she doesn't have to work with xml Jun 24 19:13:27 hm, dunno. google has tools for that Jun 24 19:13:34 they don't look at strings.xml either :) Jun 24 19:13:52 Foxandxss: Don't you think she can handle that? Jun 24 19:14:18 Foxandxss: Give her two editors side by side and she should be able to do that... Jun 24 19:14:19 yah, but this all about automatization Jun 24 19:14:30 why do we develop software? Jun 24 19:14:34 to make things easier Jun 24 19:14:40 Well... Jun 24 19:14:45 Sometimes... Jun 24 19:14:47 of course she can open two editors :P Jun 24 19:15:05 Maybe I should build an angular app to do that :P Jun 24 19:15:24 EPG how do i find out the id of my db file? Jun 24 19:15:40 open file, save to localstorage show it on a side, open another one, save it also, open it on the other side Jun 24 19:15:42 should be easy :P Jun 24 19:15:58 R.raw. I think Jun 24 19:16:01 " why do we develop software?" -- To woo women! Jun 24 19:16:13 that's legit Jun 24 19:19:59 mhmm int id = this.getResources().getIdentifier(DB_NAME, "raw", this.getPackageName()); could work Jun 24 19:20:12 I've just unlocked an achievement: "First stack overflow with java" Took me two years to get it xD Jun 24 19:20:41 Clipboard content copied from Java file. Do you want to convert it to Scala code?. I love this plugin. :D Jun 24 19:21:00 Not that I expect it to output idiomatic code, but still. Jun 24 19:21:16 DarkChaoz, what about R.raw.DB_NAME? Jun 24 19:21:47 ahh ok Jun 24 19:22:12 holy moley Jun 24 19:22:17 i just got 4.4.4 Jun 24 19:22:37 as a system update Jun 24 19:22:54 gz Jun 24 19:23:49 if it's on a nexus device, that's not news Jun 24 19:24:10 oh rly? i saw 4.4.3 only a few weeks ago Jun 24 19:24:15 Hello Jun 24 19:27:20 yeah, .4 was a fast release for openssl problems Jun 24 19:28:25 is it "on which stadium" or "on which stadium" or "at which stadium"? Jun 24 19:28:27 awe :( Jun 24 19:28:39 at Jun 24 19:28:47 Napalm i'm still waiting :) waiting for a security update it very lame Jun 24 19:29:01 didn't the post it on their nexus images site already? Jun 24 19:29:03 on a nexus device Jun 24 19:29:03 just pull it from there Jun 24 19:31:40 any can help me with proguard? Jun 24 19:31:47 hm "Caution: Flashing a new system image deletes all user data. Be certain to first backup any personal data such as photos" is this any different than when the devices OTAs ? Jun 24 19:34:17 g00s: yes, OTA is patch Jun 24 19:34:30 which means only parts of changed and data partition is left intact Jun 24 19:34:41 full system image update wipes data partition Jun 24 19:34:43 Napalm ah, thanks. yeah fuck, i'll wait for that. kame Jun 24 19:34:46 *lame Jun 24 19:34:55 what device you got? Jun 24 19:35:04 n7 2013 Jun 24 19:35:09 the image is there Jun 24 19:35:15 just don't want to screw something up Jun 24 19:35:55 which is the activity lifecycle event that tells me ui has been drawn and can safely be queried/changed? Jun 24 19:36:32 um, you can change it after setContentView Jun 24 19:37:34 g00s: right, but how do I know that's actually finished? wasn't there an event handler? Jun 24 19:38:22 g00s: yea i dont have OTA for that either, otherwise i could have sent you the zip Jun 24 19:38:28 you call it, its synchronous, why need an event handler jamesson Jun 24 19:39:27 g00s: I could be mistaken, I thought that was the way I did it last time. I had a problem for awhile trying to axcess a textview.text before it existed, causing npe Jun 24 19:41:40 Hi all, I know this isn't the #gimp chat, but are any of you familiar with GIMP? Jun 24 19:42:05 I'm trying to do something for an android game, and I'm not sure how to do it in GIMP. Jun 24 19:43:57 you could follow that link you just posted and find a whole pile of people who know stuff about gimp Jun 24 19:45:25 jamesson after you setContentView, you findViewById, and you're done Jun 24 19:51:59 frankdoyle - Tried, but I haven't gotten an answer in a while. All I'm trying to do is rotoscope a sprite over an actual image. Jun 24 19:54:21 Hmmm... after further reading, it appears what I'm trying to do may be impossible. Thanks! Jun 24 19:55:07 Da_Rhyno: Nothing is impossible, if you're stupid enough. :) Jun 24 19:55:42 flan3002 - Well, generally I am, but what I'm trying to figure out is something for my artist, and he is nowhere near as stupid as me. xD Jun 24 19:56:04 Da_Rhyno: I was using stupid as in 'stupid enough to spend enough time on it'. Jun 24 19:56:12 flan3002 - I know, lol. Jun 24 19:56:42 What I'm trying to attempt is something like this: Jun 24 19:56:44 http://mikef7.wordpress.com/2009/12/09/project-3-process-work/ Jun 24 19:57:56 g00s: ty Jun 24 19:59:54 Actually, I have an idea for this. Jun 24 20:00:08 Blender may be able to do something like that. Jun 24 20:07:11 Hi, Q about using strings.xml Jun 24 20:07:42 https://gist.github.com/Bennit/bced1bb95e9ae02e68d8 # for some reason, the last button in the series (nomatter how many buttons) gets the same text as the prelast Jun 24 20:07:53 although it refers a different string Jun 24 20:08:26 Bennit i used to see that with the ADT tools back in 2010 ... Jun 24 20:08:35 i guess try cleaning Jun 24 20:08:44 if I put in the text manually the same happens Jun 24 20:08:52 okay I will try Jun 24 20:09:16 i'm using the android netbeans based studio Jun 24 20:09:37 same with android:text="" manually? oh thats weird Jun 24 20:09:41 Anyone does Scala here? I only have one source file in my project and hit the method limit. Ideas? Jun 24 20:10:19 sorry, I meant if i put it in manually, it doesn't happen Jun 24 20:10:46 flan3002 say scala 3 times, pfn should appear Jun 24 20:10:54 Scala. Scala. Scala. Jun 24 20:11:00 * flan3002 waits for pfn. Jun 24 20:11:09 * g00s sets the trap Jun 24 20:11:28 flan3002 well, you have to use proguard Jun 24 20:11:37 I think I do. Jun 24 20:11:39 the runtime i'm guessing has lots of tmethods Jun 24 20:16:01 g00s: It has, but I think I use proguard correctly. :/ Jun 24 20:18:20 DarkChaoz, what about R.raw.DB_NAME? just to clarify I have to create a folder called Raw in res? Jun 24 20:18:49 DarkChaoz, yes (raw) Jun 24 20:18:57 thought so :) Jun 24 20:19:21 cf. http://developer.android.com/guide/topics/resources/providing-resources.html Jun 24 20:20:26 cheers Jun 24 20:20:33 flan3002, use the plugin or die Jun 24 20:20:44 pfn: The plugin? Jun 24 20:20:52 how many "the plugins" are there Jun 24 20:20:58 * flan3002 doesn't feel like dying. Jun 24 20:22:11 * JesusFreke dyes flan3002 blue Jun 24 20:22:19 there's only 1 plugin to use in the context of scala on android.... Jun 24 20:22:54 And pfn is its god Jun 24 20:23:01 I'm sure you're not talking of this one... https://github.com/pfn/android-sdk-plugin Jun 24 20:23:07 you're not? Jun 24 20:23:29 * pfn headscratches Jun 24 20:24:03 pfn: No seriously, I use that one... Jun 24 20:24:38 pastebin Jun 24 20:25:28 pfn: Just the sample file: http://ix.io/d8q Jun 24 20:25:47 proguardCache in Android += ProguardCache("scalaz") % "org.scalaz" Jun 24 20:25:52 because scalaz is stupid big Jun 24 20:27:27 and pastebin the build log... Jun 24 20:27:45 clean after all proguard config changes Jun 24 20:29:21 if you're a scala and fp neophyte, I'd recommend not using scalaz at this time Jun 24 20:29:25 unless that's your goal... Jun 24 20:29:34 No, it isn't... Jun 24 20:30:16 Still recompiling... -.- Jun 24 20:31:14 pfn: Well... Ascii colors in there... http://ix.io/d8s Jun 24 20:31:55 But that one didn't even fail... Jun 24 20:32:07 I'm not sure when it does now. Jun 24 20:33:17 In my values.xml, should I have © or \u00A9 or Y ? all works... Jun 24 20:35:36 lol Jun 24 20:36:50 google io is almost upon us woot Jun 24 20:40:14 smallfoot-: or © or © or \u24B8 or Ⓒ or \u24D2 or ⓒ ... it really doesn't matter. I was suggest © as its the most visible to its meaning and wont get f'ed up if someone plays around with the file encoding Jun 24 20:41:34 flan3002, do another build Jun 24 20:41:46 iut fails on a proguard cadhed run if you have too many methods Jun 24 20:46:43 pfn: Okay, working now. I excluded scalaz, just in case. Jun 24 20:47:10 Thank you! :) Jun 24 20:51:18 "FAA Bans The Use Of Drones To Deliver Packages" oh well, i guess the 60-minutes marketing stunt didn't work Jun 24 20:52:29 When i read file content, is that not allocate don the heap? it is just RAM? Jun 24 20:53:08 roth_philip: What? The heap is in RAM, obviously... Jun 24 20:53:08 roth_philip, I think you should use BufferedInputStream or whatever its name is, it needs to be the Buffered variant Jun 24 20:53:22 hm, usually heap unless its a NIO bytebuffer with direct allocation Jun 24 20:53:55 I heard you should use 'BufferedInputStream' Jun 24 21:03:01 I want to know if parsing a 100kB json-file might be a problem on an old weak device...? Jun 24 21:03:18 I don't know Jun 24 21:03:22 but there are many different JSON libraries Jun 24 21:03:45 like org.json, and jackson, and fastjson, and many many others Jun 24 21:04:57 roth_philip you'll have to measure it Jun 24 21:05:05 flan3002, just look at the too many methods error next time, it tells you which packages have too many methods Jun 24 21:05:06 i'm guessing it will be noticeable delay Jun 24 21:05:16 pfn: Will do. :) Jun 24 21:05:26 flan3002, and unless you like the dsl in scaloid, I wouldn't use it either... Jun 24 21:05:34 maybe macroid, which offers something similar, I think Jun 24 21:05:58 pfn: Why don't use Scaloid? Too many methods? Jun 24 21:06:14 I just don't find much of a reason to, and the developer of macroid seems much more involved in the community Jun 24 21:06:24 scaloid is much quieter Jun 24 21:06:58 biggest advantage of scaloid is the layout dsl, which seems kinda iffy to me Jun 24 21:07:00 whats scaloid? Jun 24 21:07:04 https://github.com/pocorall/scaloid Jun 24 21:07:06 a library Jun 24 21:07:17 oh, scala for android Jun 24 21:07:57 maybe it's awesome, I haven't really tried it Jun 24 21:08:22 pfn: I'm trying it right now, but the layout stuff looks /really/ neat. *looks at macroid* Jun 24 21:08:46 ya, but then i run into trouble, i look at stackoverflow or developer.android.com and have no idea how to apply that to scaloid Jun 24 21:09:24 smallfoot-: Well... Depends on what kind of trouble. Jun 24 21:09:32 well, im newbie programmer Jun 24 21:09:37 All normal methods should still be callable from Scala. Jun 24 21:09:38 new to java, new to android, and never used scala Jun 24 21:09:49 and when you look up how todo stuff on android, it shows java code, so dont know how to apply that to scala Jun 24 21:10:43 code is code Jun 24 21:10:48 just apply the same concept in another language Jun 24 21:11:14 not always easy, can look radical different Jun 24 21:11:25 being a noob programmer makes it not easy, I suppose Jun 24 21:11:46 well, its not just different syntax, the whole API is different Jun 24 21:11:59 smallfoot-: Not really. Jun 24 21:12:08 You can still use the Java API. Jun 24 21:12:15 the api isn't different... Jun 24 21:12:21 same api you know and love Jun 24 21:12:35 you /don't/ have to use libraries if you don't want to Jun 24 21:12:39 none of my apps use macroid or scaloid Jun 24 21:12:50 or just about any library for scala on android, except convenience helpers of my own making Jun 24 21:23:33 Hi guys Jun 24 21:23:46 Sepho: eol? Jun 24 21:23:57 Ey Foxandxss! sip! :O Jun 24 21:24:01 heh Jun 24 21:24:24 jajaja que casualidad Jun 24 21:31:13 I've a method with main loop which makes a GET request on webservice. This requests runs on separated thread, and on it's callback, it writes a file on SD card. I need to wait this request to finish before to continue to next iteration. Here is the code: http://pastebin.com/xLgPJJXD Jun 24 21:31:19 Any idea? thanks in advance Jun 24 21:32:03 sounds like a job for rxjava :) Jun 24 21:37:50 im using org.json, i guess fastjson have traded memory for speed? but speed could also be a problem. Jun 24 21:38:20 anyone that used Eclipse memory analyzer? I want to find a specific variable, how do I do that? Jun 24 21:47:20 bankai_au funny you mention rxjava, was just coming back to ask a question about it Jun 24 21:47:32 can I use rxjava as a replacement for the callback fragment interaction that Android pushes? Jun 24 21:48:15 Is mdpi, hdpi etc for different screensizes? Jun 24 21:48:30 zront for different densities. you need swxx for screen sizes Jun 24 21:48:38 where should I put my layouts for different screen sizes? Jun 24 21:49:03 theblang: depends what you're doing really Jun 24 21:49:06 zront in layout-swxxdp folders, where xx is the screen size Jun 24 21:50:06 bankai_au right now im working on a master / detail. the concept is simple. ive been learning fragments for awhile now. but im still running into so many problems, mostly with edge cases and stuff Jun 24 21:50:43 so what should be in the mdpi folders? Jun 24 21:50:57 and does this has to do with which api you support? Jun 24 21:55:40 https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-xpf1/t1.0-9/10437023_10152889644153362_5583521278592899876_n.jpg Jun 24 21:56:40 bah why don't google use UTC - wtf is "PDT" *sighs* Jun 24 21:57:06 bankai_au was just thinking maybe I could use rxjava as an eventbus kind of, and stop with all the callback, fragment null checking I am doing at the moment that keeps giving me issues Jun 24 21:57:47 interesting that most of the websites like phandroid don't think there will be a new version of android discussed; but the first android session is 'what's new in android' :| Jun 24 21:59:09 theblang: i haven't done it, but i don't see why not Jun 24 22:00:38 theblang i use rxjava for eventbus, but not for everything. its great for 'variables that change over time' Jun 24 22:00:59 but you still gotta check if your activity is null sometimes XD Jun 24 22:02:24 theblang make sure you understand Subscription, and unsubscribing from that. also unsubscribe is a terminal state for CompositeSubscription (don't try to reuse it) Jun 24 22:13:14 seems g00s may have used rx at some point :P Jun 24 22:14:10 I am supporting API8 and higher, so I should NOT use the sw600dp type containers for screen sizes right? just use small, large etc Jun 24 22:15:02 you should not be supporting < API 11 :P Jun 24 22:15:11 14? ;) Jun 24 22:18:43 or 15? :P Jun 24 22:19:06 zront, unsupported resource types are just ignored on platform versions that didn't have them yet Jun 24 22:19:57 zront: New app? Jun 24 22:20:12 Don't bother with API 8 at all, and if possible nothing <15. Jun 24 22:20:30 api 19 or bust ! Jun 24 22:20:38 hah Jun 24 22:21:43 * JesusFreke 's app is >= api 7 :p Jun 24 22:22:10 How many API 7 and 8 users, active? Jun 24 22:22:13 do you have many api7 users? Jun 24 22:22:35 so for my layouts, supporting API8, should I create folders under res and then large? res/large/large_layout.xml and res/small/small_layout.xml ? Jun 24 22:22:35 mark murphy's book still uses api 8 or 9 Jun 24 22:22:39 google says 0.8% for API8 Jun 24 22:22:40 well, not bad to learn support libraries I guess Jun 24 22:22:52 also sherlockbar Jun 24 22:23:00 we'll probably always need some kind of support library - it snot going away Jun 24 22:23:05 i meet a lot of people that have API8. Jun 24 22:23:09 mine is >= 8, 15 users on froyo Jun 24 22:23:15 'we'll always have a Gingerbread among us' Jun 24 22:23:29 I started to use android on ICS anyway Jun 24 22:23:31 zront: Really? Where? Jun 24 22:23:48 kakazza: in the past Jun 24 22:23:58 heh Jun 24 22:24:00 I haven't seen Froyo in a very long time. Jun 24 22:24:03 hehe Jun 24 22:24:10 I didn't see any 2.x in a looooong time Jun 24 22:24:12 i still have my droid-1 Jun 24 22:24:18 people have samsung 2 and 3s Jun 24 22:24:21 i'm going to access the market to keep its stats up Jun 24 22:24:33 zront: And are these people the ones that you are trying to target? Jun 24 22:24:36 whats the problem with supporting API8? it is not hard... Jun 24 22:24:39 hold on … should go from 0.8% to 0.800000001% Jun 24 22:24:53 kakazza: well, whats the loss of supporting it? Jun 24 22:25:03 zront bugs in android and shitty phones Jun 24 22:25:09 zront, pre-ics needs to die and even ics is getting kinda crappy Jun 24 22:25:14 for example, NIO is basically busted < api 9 Jun 24 22:25:21 pre-ics, nio? Jun 24 22:25:22 zront: Your development time is lost on old APIs. Jun 24 22:25:39 And IIS isn't Froyo but Gingerbread. Jun 24 22:25:55 supporting 2.x is not worst than supporting IE Jun 24 22:25:56 :P Jun 24 22:25:57 Yo Jun 24 22:26:02 i want my dad to be able to run it on his Android 2.2 :) Jun 24 22:26:16 zront why deal with bugs in 22 versions of android ? Jun 24 22:26:17 zront: By the time your app is done, their phones will be dead or they'll have a new one. Jun 24 22:26:24 thats crazy :) Jun 24 22:26:30 Added all my content to sqli :) Jun 24 22:26:54 And stored in raw folder rather than assets Jun 24 22:27:00 :D Jun 24 22:27:03 i just need to fix my ui then i am done, app version 1 is done in functional terms. pretty simple quiz game. but then i will add networked play so that might be different Jun 24 22:27:17 Next task viewpager crap Jun 24 22:27:33 g00s, what's wrong with NIO in <9? Jun 24 22:27:52 Zront whats ur app about? :) Jun 24 22:27:54 because I've been using it just fine on froyo for the past couple of years in my app.. Jun 24 22:28:00 i can't remember , ctate and i discussed it long ago Jun 24 22:28:09 what is ctate doing these days ? Jun 24 22:29:07 now - what would be really cool - is when I am typing in AS, and in addition to the auto-complete, it flags any methods with known bugs between minSdk and targetSdk Jun 24 22:29:54 well, this is interesting Jun 24 22:30:09 i just searched https://code.google.com/p/android/issues/list for NIO bugs Jun 24 22:30:14 and ones i remember are not showing up Jun 24 22:30:22 do they clean these up after a while ? Jun 24 22:32:31 Zharf so i can't remember specifically. one problem with selectors, one problem with allocateDirect, ctate said it got a lot of fixes in HC Jun 24 22:32:44 it was a conversation here a long time ago Jun 24 22:33:08 HC itself was kinda a beta product, or alpha :| Jun 24 22:34:21 darkchaoz: well I will tell if you can answer my question, all i have left is polish the UI, so whats the problem with using API 8? and i just put the different layouts in res/small/layout_x.xml res/large/layout_x.xml etc ? Jun 24 22:35:54 zront: nothing is wrong with it. It's up to you to decide the effort vs reward tradeoff that you're comfortable with Jun 24 22:35:54 hello, i have a light & dark theme for my app, on which folder inside the 'res/' will i put the menu icons for dark & light :/ Jun 24 22:36:33 if it doesn't take much effort to support api 8, and you feel that it makes sense to do so, by all means do so Jun 24 22:36:42 Im not sure, im new to android dev Jun 24 22:37:06 can i put it inside values-v11 and values-v14 ? Jun 24 22:48:35 which size bucket does samsung galaxy s4 mini go into? it is 4.3"... Jun 24 22:54:32 what is the raccomanded pattern for making sure you leave an app on the stack but that you consume intents and delete data within them? Jun 24 22:56:17 Any worthwhile flat UI app templates around? Jun 24 23:34:44 better to start with minSdk=14 and then extend it to api8 if you really want Jun 24 23:34:49 if you really need that 10% userbase growth Jun 24 23:34:52 if you don't, fuck it Jun 24 23:52:45 with a uri like content://com.android.providers.media.documents/document/image%3A259, doing a query for the orientation returns 0 Jun 24 23:53:45 but if the uri is content://media/external/images/media/259, the same kind of query returns 90 Jun 24 23:58:59 hi Jun 24 23:59:05 you people know techy things and are smart Jun 24 23:59:08 i have a question. Jun 24 23:59:40 anyone around Jun 24 23:59:59 just ask your question Jun 25 00:00:05 nobody is going to admit to being around in case they can't answer it Jun 25 00:00:13 ^ Jun 25 00:00:27 (oh crap, I've blown my cover) Jun 25 00:01:49 I guess he doesn't have a question afterall Jun 25 00:01:57 is anyone familiar with qualcomm's Quick Charge 2.0 spec? Jun 25 00:02:19 how on earth is one supposed to get the orientation of an image from a uri returned by kitkat's DocumentsActivity????? Jun 25 00:03:36 has anyone used rxjava, otto, or eventbus to do fragment communication? Jun 25 00:08:39 i have Jun 25 00:08:49 except for the fragment part Jun 25 00:12:29 JakeWharton yeah, I just came accross some of your tweets from late last year. They definitely made me feel better after a day of wanting to punch myself in the face. Jun 25 00:13:09 I've used EventBus, but not for fragment communications Jun 25 00:25:05 oh wow, Google I/O is tomorrow...that snuck up on me! Jun 25 00:26:34 i'm having some issues using the adt translation manager plugin for eclipse. It won't let me upload files without creating a project on the Play Store, but the Play Store won't let me create a project without uploading files. How do I use the plugin correctly? Jun 25 00:28:40 I have an audio track in stream mode that is being fed in a background thread (not the UI thread), and yet when I run this I am getting lag on the UI thread...any ideas? Jun 25 00:30:50 actually I am getting some errors on write...:P Jun 25 00:30:54 * palithius hides Jun 25 00:31:17 * _Nicco_ test Jun 25 00:31:48 <_Nicco_> Hey guys you guys got a secret link to get a noob up to date on stuff? Jun 25 00:33:55 oh wait that's not an error that's the number of bytes written Jun 25 00:35:12 hey guys I am very very new to android development, obviously I am going to start with the basics, but just wondering is it hard to develop an application that has users sign in / make accounts that link to a server, (like facebook,major applications) that I would own Jun 25 00:35:40 Does that involve advanced knowledge? Jun 25 00:37:01 <_Nicco_> Psil0Cybin: What do you currently know how to do? Jun 25 00:37:58 _Nicco_, Well I am learning Java from scratch, I am more of a web based developer makjing a transition into android applications, so at the moment nothing, lets say...but I have plenty of ideas hence why I want to learn...I just want to figure out in a timeframe, if I can start making basic data retreival or input applications Jun 25 00:38:05 how hard it would be to incorporate an online presence. Jun 25 00:38:35 aka login into a server, and obviously I just want to understand applications like facebook do not send requests over HTTP so it is all done through HTTPS or is it another server? like Ssh that information is pushed too? Jun 25 00:38:43 how would I go about learning how this all works? etc? Jun 25 00:39:47 also knowing small amount of C coding, would I need to import libraries, for the features i am describing? Jun 25 00:43:24 _Nicco_, darn you left did you see my msgs above? Jun 25 00:43:52 <_Nicco_> I didn't. My client closed on me for some reason Jun 25 00:44:02 okay okay let me copy and paste 1 sec :D i need your input hehee Jun 25 00:44:55 Well I am learning Java from scratch, I am more of a web based developer makjing a transition into android applications, so at the moment nothing, lets say...but I have plenty of ideas hence why I want to learn...I just want to figure out in a timeframe, if I can start making basic data retreival or input applications how hard it would be to incorporate an online presence.aka login into a server, and obviously I just want to understan Jun 25 00:44:56 d applications like facebook do not send requests over HTTP so it is all done through HTTPS or is it another server? like Ssh that information is pushed too? how would I go about learning how this all works? etc? also knowing small amount of C coding, would I need to import libraries, for the features i am describing? Jun 25 00:46:19 hey Psil0Cybin. im the same ! Jun 25 00:46:20 tons of ideas Jun 25 00:46:25 ex-cs major Jun 25 00:46:34 have learned java in college, but haven't touched it for years Jun 25 00:47:03 _Nicco_, also would you know what i would google to get onto the right track, what is the name of this kind of formatting (online data retrieval)? than therue you are still steps ahead of me :D at least you can recognize stuff, although I love the formatting of android applications how they iuse plenty of files Jun 25 00:47:07 have a style.xml file Jun 25 00:47:07 etc Jun 25 00:47:50 i'm the wrong person to ask lol. i'm someone who is about to start the journey like yrouself :) Jun 25 00:48:01 <_Nicco_> Psil0Cybin: Sorry I can't help a whole lot as I am just getting into android Dev. Jun 25 00:48:11 no problem then we are all in the same boat amazing :D Jun 25 00:48:15 oh no, we're all noobs lol Jun 25 00:48:16 :D Jun 25 00:48:17 <_Nicco_> But what you are talking about Jun 25 00:48:33 how are you guys going about getting into android dev? learning, etc I got the android dev book for dummies, followed all the guides so far on the android offical site, looking for more tutorials Jun 25 00:48:39 and guides, i need chunky fat information Jun 25 00:48:41 <_Nicco_> What I would do is create the web based platform first Jun 25 00:48:42 i love that juce. Jun 25 00:48:45 <_Nicco_> then move onto the app Jun 25 00:48:49 well seeing i haven't touched java for like 10 years Jun 25 00:48:52 i need to relearn it now Jun 25 00:49:00 _Nicco_, yea but the application i am thinking of is kinda like snapchat Jun 25 00:49:03 i would not really need a website Jun 25 00:49:07 or your saying create the back end Jun 25 00:49:11 for the server? Jun 25 00:49:36 I come from a Linux perspective, so servers, configurations that part will be easier then the actual application Jun 25 00:49:36 coding Jun 25 00:49:52 <_Nicco_> Psil0Cybin: Yea I mean if you're good with that and you have it down the interface on the app should be cake. Jun 25 00:50:17 what made you guys decided to develop for android instead of apple? Jun 25 00:50:21 free Jun 25 00:50:25 apple wants money. Jun 25 00:50:29 i pay money, when i make money Jun 25 00:50:35 'cuz i had a tough time.. even now i still think about it lol Jun 25 00:50:37 <_Nicco_> therue, it's cheap and I already know a lot of java Jun 25 00:50:55 yea if i make $$ making a few applciations i will def get a macbook, and get the apple sdk Jun 25 00:50:58 that you need to pay 99$ a year Jun 25 00:50:58 for Jun 25 00:50:59 :S madness Jun 25 00:51:24 i am very impressed with android studio also atm Jun 25 00:51:32 <_Nicco_> I like android because it's all java. I heard that C# was kind of a pain Jun 25 00:51:49 _Nicco_, their new language or what ever they just came out with is supposed to be sooo easy Jun 25 00:52:03 _Nicco_, so i hear from all my friends that actually use it to develop applications Jun 25 00:52:04 swift Jun 25 00:52:07 yes Jun 25 00:52:08 that is the one Jun 25 00:52:13 <_Nicco_> I heard about it but never looked into it Jun 25 00:52:17 same here Jun 25 00:52:26 i hear about it every day from my buddies i need to get a mac product just for these things Jun 25 00:52:27 <_Nicco_> I like lower level programming sometimes though Jun 25 00:52:36 i just think its silly how you need to own mac products to develop mac products Jun 25 00:52:38 which make sense but i mean Jun 25 00:52:44 ugh i am so broke, they need a financial aid program Jun 25 00:52:48 for broke programmers. Jun 25 00:53:27 <_Nicco_> Psil0Cybin, college student? I'm trying to get into app development to have a little extra money while in college. Freshman year is about to start Jun 25 00:54:04 better write fast Jun 25 00:54:05 lol :) Jun 25 00:55:13 <_Nicco_> I know a guy that can do all the graphics for me, all i need to do is the code so it's all good Jun 25 01:02:41 18:51 < _Nicco_> I like android because it's all java. I heard that C# was kind of a pain Jun 25 01:02:47 objective C, very different from C# Jun 25 01:03:18 < therue> what made you guys decided to develop for android instead of apple? Jun 25 01:03:26 ios is a dying platform Jun 25 01:03:52 hmm i'm not so sure about that Jun 25 01:04:48 <_Nicco_> myke, my mistake, I knew it was objective C but for some reason thought it was abreviated as C# Jun 25 01:08:41 though there's alot more android devices, the truth is, a lot of these devices have very old OS on them, or their screen is too small, etc (so these are users who basically just use the phone for making phone calls) so though at first glance it may seem like android has so much more customers and that translates to monetization for us developers Jun 25 01:08:45 it might not always be the case Jun 25 01:10:07 in addition, though google play is the app store for android... the fact is, alot of countries (for example china) have tons of local app stores, compare to apple which basically has one centralized store for all your need Jun 25 01:11:02 "For Google Play, the US is the top downloading country (21%) – followed by South Korea, home of Samsung (and LG) at 11%. Next is India, where Android is beginning to get a serious foothold, and Japan, both at 6%." Jun 25 01:11:13 "For iOS, the US is (as you'd expect) the top download site, followed – surprisingly – by China, at 15%, and then Japan and the UK at 6% each." Jun 25 01:11:46 "At which you're probably asking: why does China show up in the iOS download stats, but doesn't even tickle App Annie's meter at the 2% level for downloads from Google Play (and doesn't even touch the 1% level for revenues)? Android is colossal in China, with research companies such as IDC and Gartner saying that 90% of smartphones being sold there are Android-powered. Jun 25 01:11:47 Well, it's like this: they might be running Android, but they're not connecting to Google Play. Instead those Android phones, where they're used for data and apps, connect to local Chinese Android markets. They may be using some Google services, but Play isn't among them. There are tens – perhaps already hundreds – of millions of Android smartphones in use in China, but so far they're not making much impact on Google's revenues." Jun 25 01:13:56 _Nicco_, yes college student Jun 25 01:14:12 but i am not a freshman, i should of graduated already I am a part time student because I have to pay for my own apartment and work a part time job Jun 25 01:14:12 etc Jun 25 01:14:18 I hussle all day all night...money on my mind Jun 25 01:14:33 selling codes on street corners lol Jun 25 01:14:43 exactly :P 5$ a syntax. Jun 25 01:14:47 by like i was saying... i'm still on the fence about which to develop to be honest Jun 25 01:15:01 at frist glance, it seems android might be the obvious choice Jun 25 01:16:12 but when you taken into account the fact that a large portion of android users have really outdated phone with old os or small screen (this means they will be less likely to buy apps, and they're most likely those people who just use phones to make calls) Jun 25 01:16:30 14% is not a large portion Jun 25 01:16:35 compare to iphones, in which every iphone have roughly the same high quality standards Jun 25 01:17:42 therue, not true Jun 25 01:17:53 therue, with android all new devices i think will support newer applications Jun 25 01:17:54 on top of that, in many countries, they have their localized app store for android apps Jun 25 01:18:01 old phones are pretty much ancent Jun 25 01:18:02 instead of google play Jun 25 01:18:02 already Jun 25 01:18:08 oh really that i also did not know Jun 25 01:18:10 or was not aware of Jun 25 01:18:15 perhaps you can add your app to those stores as well? Jun 25 01:18:25 and that only dilutes your chances to reaching more audience, unless you're able to target every single one of those localized market yourself as a developer Jun 25 01:19:01 therue, have you tried android studio?! Jun 25 01:19:20 therue, only reason android > apple.. = free. Jun 25 01:19:32 once i make a few bux with android, io would like to also make apps for ios devices. Jun 25 01:19:34 no, i've heard eclipse is not very good compare to xcode, but i've also hear that android studio is fantastic Jun 25 01:19:50 you would have to learn another new langauge though, and that takes time Jun 25 01:19:54 +1 for Android Studio!! Jun 25 01:19:54 cocoa, objective-c Jun 25 01:19:58 android studio is more than fantastic Jun 25 01:20:04 reminds me of visual basic, its blowing my mind Jun 25 01:20:20 Psil0Cybin: whoa! I haven't used Visual Basic, but from what I hear, that's a big call! Jun 25 01:20:38 LOL well its not like VB but i mean, just the GUI setup of the application Jun 25 01:20:55 is similar Jun 25 01:20:58 oh wait, I'm thinking of Visual Studio (the IDE) Jun 25 01:21:07 yea yea, visual basic is a tad different Jun 25 01:21:10 hehe all the hacking programs in aol back in the days were made with visual basics Jun 25 01:21:11 its really similar looking not going to lie Jun 25 01:21:16 ofcourse, LOL Jun 25 01:21:22 my first programming language Jun 25 01:21:29 learned it at age 10, xD Jun 25 01:21:36 after using aol? Jun 25 01:21:39 :) Jun 25 01:21:41 never used AOL aha Jun 25 01:21:42 ever Jun 25 01:22:06 only AIM for CS Jun 25 01:22:18 all you americans used AIM, lol we used MSN Jun 25 01:22:20 and ICQ Jun 25 01:22:27 I was all about MSN :D Jun 25 01:22:31 i've used icq too. and msn Jun 25 01:22:39 I'm in Australia, everyone used it Jun 25 01:22:56 :) Jun 25 01:23:11 I loved ICQ, the old versions...ICQ nad IRC was the way to go back in the day Jun 25 01:23:15 I miss AIM and ICQ. Jun 25 01:23:18 oh man take me back to more simple times Jun 25 01:23:21 so anyway, how do you guys feel about different countries having their own localized app store ? Jun 25 01:23:21 same here, Jun 25 01:23:23 Uh oh! Jun 25 01:23:30 I liked Yahoo! messenger. Jun 25 01:23:34 therue, well now that i know about these different app stores i am a little bit upset Jun 25 01:23:37 now it's a mix of facebook messenger, skype, sms, whatsapp, steam.... Jun 25 01:23:38 Mainly before they got rid of user rooms. Jun 25 01:23:38 I am disgruntled. Jun 25 01:23:40 rabble rabble. Jun 25 01:23:41 therue, . Jun 25 01:23:54 I used to role play a lot in them when I was a lad. Jun 25 01:24:21 whatsapp is pretty popular in asia Jun 25 01:24:52 pretty popular? no... *massively* popular Jun 25 01:26:17 * jug6ernaut still doesnt understand why Jun 25 01:27:00 because it's effectively free SMS/MMS Jun 25 01:27:27 with limited reach Jun 25 01:27:40 it's funny - it doesn't really offer much more than email in terms of functionality Jun 25 01:28:53 the reach is approximately 100% in my social/networking circles Jun 25 01:29:27 Leeds potential or actual Jun 25 01:29:31 actual Jun 25 01:29:40 :\ Jun 25 01:29:50 * jug6ernaut doesnt know anyone personally who uses whatsapp Jun 25 01:30:45 are you in asia? Jun 25 01:30:52 * jug6ernaut just hates how everything seems to be going away from standards Jun 25 01:30:55 Leeds US Jun 25 01:31:09 my point is made! Jun 25 01:31:56 Leeds i know its not popular in US lol, I'm asking why is popular in asia Jun 25 01:32:12 because it's effectively free SMS/MMS Jun 25 01:32:29 Leeds thats also true for US Jun 25 01:32:36 so thats not the difference :P Jun 25 01:32:39 actually, no it isn't Jun 25 01:33:12 Leeds ur saying the cost for WhatsApp is different for the US? Jun 25 01:33:18 differences in data plans, SMS/MMS costs, etc. Jun 25 01:33:25 smartphone penetration... Jun 25 01:34:16 the equation isn't the same... anyway, I'm not commenting on why it is or isn't popular in the US - I know the Asian (well, Hong Kong) market much better Jun 25 01:48:21 therue: iphone users are first adopters, sure. all those people who "just want a phone" are people who may eventually start using apps. that's a HUGE potential user base, whereas there's really no new users for ios...the people who would use an apple phone already have one. Jun 25 01:48:56 also there's no requirement that the google store is the only place you put your app. where are all the apps on chinese app stores coming from? Jun 25 01:52:35 I have a more important question: what do people think the next version of Android will be called? What are desserts that start with L? Jun 25 01:52:59 I can only think of lemon meringue Jun 25 01:53:50 myke, no idea, i just read an article about it earlier Jun 25 01:54:39 barbs "more important question" lol Jun 25 01:55:55 not implying myke's question was unimportant, I was just being an idiot :P Jun 25 02:02:35 Leeds, what about line, it's massively marketed in Asia Jun 25 02:03:37 everywhere, you'll see stuff pointing to line usernames and stuff Jun 25 02:03:38 do any of you guys know good Google IO talks on Android? I prefer the more technical ones Jun 25 02:04:15 I watched the world of ListView and learned a shit ton so I'm looking for others Jun 25 02:04:39 not to mention, I heard the line im chime everywhere I went, everyone was using it Jun 25 02:07:33 Hi guys. I'm thinking to make an app for internal use. Is it possible to ensure this apk can only be installed in 10 specific devices for example. Jun 25 02:08:26 I tried googling this but I couldn't find it: Is there a way to make log cat hide time stamps (in Android Studio)? Jun 25 02:09:05 E.g. make 06-24 22:08:35.722 20333-20333/com.example.app I/Adreno-EGL﹕ : EGL 1.4 QUALCOMM build: (CL3776187) Jun 25 02:09:11 into I/Adreno-EGL﹕ : EGL 1.4 QUALCOMM build: (CL3776187) Jun 25 02:40:38 its the night before xmas Jun 25 02:40:59 Hello I am using Fragments (the default Master/Detail flow template) and I need to be able to set a TextView from one of my fragments how do I do that? Jun 25 02:41:07 when all through the house ... Jun 25 02:41:20 there's two 0's in goose m'fuckers! but you're missing an E Jun 25 02:41:28 so, gtfo ! Jun 25 02:41:29 :) Jun 25 02:44:04 hiyo: what's you're TextView's ID? Jun 25 02:46:16 http://www.informit.com/blogs/blog.aspx?uk=The-Fight-for-The-Mobile-App-Market-Android-vs-iOS Jun 25 02:46:24 oops ignore this link Jun 25 02:46:25 wrong one Jun 25 02:46:29 http://www.theguardian.com/technology/appsblog/2012/dec/04/ios-android-revenues-downloads-country Jun 25 02:46:36 http://venturebeat.com/2014/02/02/why-android-apps-make-less-money-and-how-to-change-that/ Jun 25 02:46:58 People with cheap shitty devices don't spend money on apps Jun 25 02:46:59 surprise? Jun 25 02:48:55 Thats interesting, I just read a news story the other day that claimed games were making more profits now, up 2%, with ad based free games making 98% of the revenue. Jun 25 02:50:02 i can see that, free games are always the first candidates for people Jun 25 02:51:05 i think at the last i read, games for indie devs were a total bust at this point Jun 25 02:51:28 more likely to get hit by lightning Jun 25 02:51:33 than money :) Jun 25 02:51:39 or a flapping bird ;) Jun 25 02:52:49 yo g00s :) Jun 25 02:53:47 my opinions kept changing when it comes to android and ios lol every single day lol... but since swift might replace objective-c, i might as well use this time to learn java/android while i wait for swift to mature to see whether or not it eventually replaces objective-c Jun 25 02:54:52 amomchilov: the id is R.id.txtPasscode **** ENDING LOGGING AT Wed Jun 25 02:59:58 2014