**** BEGIN LOGGING AT Thu Nov 27 02:59:59 2014 Nov 27 03:03:52 So, nobody messing with Nintendo's Amiibo's yet?> Nov 27 03:04:00 Amiibo still turns up no results on the Play Store. Nov 27 03:04:32 they've supposidly got a large amount of storage in them (4k) Nov 27 03:05:10 But i havent found an NFC app that can write to them yet. Nov 27 03:06:15 I have a customizable thing for users to set the size of some view--anyone have recomendation on how to define it? So like, I have smallest (which is based on minimum button size as recomended by android docs) up to the equivalent of "match_parent" which fits the view to the screen width.. So one way is to do like small/medium/large which are hardocded dp values, with a percent modifier (90% - 150% etc) another way is to do it based Nov 27 03:06:15 on % of screen width... Nov 27 03:14:43 Hi all. I'm downloading bitmaps using an InputStream. All works well, but some of the bitmaps are empty (completely transparent). Is there a way to dettect wheter or not this is the case? Nov 27 03:18:02 lasserix not sure you asked the question in the best possible way Nov 27 03:18:20 yeah its a little difficult to formulate even face to face Nov 27 03:18:20 anyone familiar with this robolectric error ? http://pastebin.com/KVB5G8Ec Nov 27 03:18:39 lasserix I have user defined sizes Nov 27 03:18:58 what unit of dimension do you use? Nov 27 03:19:11 dp Nov 27 03:19:18 so the sizes can be set in a text file, but i am also going to be build a GUI editor for it Nov 27 03:19:23 seems like it https://github.com/robolectric/robolectric/issues/1025 Nov 27 03:19:29 and that's not too complicated for users to understand? Nov 27 03:19:32 lasserix well I have pre-defined steps Nov 27 03:19:44 can you point me to which app you are refering to? Nov 27 03:19:45 so sometimes based on what it is I have a slider Nov 27 03:19:55 or sometimes I have a dropdown Nov 27 03:20:10 hmm Nov 27 03:20:29 okay, i was staying away from dp cause just in a text file most people (even a lot of devs?) would be confused Nov 27 03:20:53 oh no, like I say, ui widgets to user Nov 27 03:21:02 not a text file :) Nov 27 03:21:21 yeah i have everything encoded into a text file, then ill build a paid gui editor Nov 27 03:21:50 what app is this and what is the element you are allowing sizes on ? Nov 27 03:22:01 maybe dp is just the way to go since it is simple and i can show the dp of the device width on the settings activiy Nov 27 03:22:06 its for a customizable keyboard Nov 27 03:22:29 dp of the device should be irrelevant to user Nov 27 03:22:50 the keyboard is designed for smart watches, so it is by design able to be 160 dp Nov 27 03:22:51 and if it wasn't then you would not use dp, you would maybe do 2nd tier pointers to dimen files Nov 27 03:23:33 well the user can define in the text file the sizing, so that what i was saying earlier--do i do like three categories of size with scale percent modifier, or as a percent of screen width or? Nov 27 03:23:58 since you can fit it in 1.5 inches, then you can have all that extra space on your phone, tablet or whatever Nov 27 03:24:03 well, from a user facing feature I would not care about button size Nov 27 03:24:10 I would care about container Nov 27 03:24:15 yeah it is container Nov 27 03:24:26 the buttons would/should adjust accordingly Nov 27 03:24:27 not button size Nov 27 03:24:45 and yes % of screen would be a very logical thing Nov 27 03:24:51 yeah Nov 27 03:24:57 they have no visual reference to anything else Nov 27 03:25:06 so anything else would be....erm....silly Nov 27 03:25:07 :) Nov 27 03:25:12 yeah exactly, that's why i was uncomfortable with arbitrary buckets Nov 27 03:25:45 hmm well maybe i'll just do both DP and screen % and parse it accordingly for users who understand dp and those who dont Nov 27 03:26:18 thanks for the input Nov 27 03:28:42 i still cant think of how practical a kb is on a smart watch Nov 27 03:29:18 I think if you start needing a kb, design dictates you make it bigger, and as logic goes it just gets bigger and bigger till it's a phone again :) Nov 27 03:29:29 For using MS word ofc Nov 27 03:29:46 uhh the original design was so that it would be exclusively for smart watches, so it works Nov 27 03:29:48 I would maybe question the suitability if X requires a kb Nov 27 03:30:20 in any case mostly i just want this for my portfolio than actual money or anything Nov 27 03:30:50 and since you can do a kb in ~1.25 in of space, you can free up all that screen estate on larger devices (or just scale it up) Nov 27 03:32:31 hi Nov 27 03:32:52 my android 4.0.4 tablet is showing serial number unknown in About Tablet Nov 27 03:32:55 how do I change that Nov 27 03:33:02 mankand007 wrong channel Nov 27 03:33:04 mankand007 wrong channel, see topic Nov 27 03:33:17 sorry Nov 27 03:34:54 I'm not getting any response from the other subs.. Could you please help? Nov 27 03:35:22 How do I set ro.serialno persistently so that it shows up in About Tablet - Serial Number Nov 27 03:35:40 getprop ro.serialno returns empty Nov 27 03:36:09 but /sys/class/android_usb/android0/iSerial has a valid value that is also showing same in adb devices Nov 27 03:36:14 mankand007 just cause you cant find an answer still does not make this a relevant channel to spam and ask Nov 27 03:36:33 mankand007: google? http://forum.xda-developers.com/showthread.php?t=2069649 Nov 27 03:36:42 this is still the "we dont give a sh*t about that" channel :) Nov 27 03:38:06 lasserix, how do I mount partition 2 in my tablet through adb? or is there a different way of doing it? Nov 27 03:38:27 lasserix .... Nov 27 03:38:36 mankand007: i have no idea use google Nov 27 03:38:47 or bing, don't be racist Nov 27 03:38:48 mankand007 again, wrong channel. try android-root or soemthing Nov 27 03:38:52 can I ask about motor vehicle repair? Nov 27 03:38:55 StingRay_ I understand.. I'm really sorry for barging in like this.. Just that I've been trying to do this for so many hours I'm desperate Nov 27 03:38:59 capella-s3: only motorbikes Nov 27 03:39:15 i can't get results on other channels Nov 27 03:39:19 mankand007 there are thousands of desperate people out there that mess up their tablets Nov 27 03:39:33 maybe 10s of thousands Nov 27 03:39:34 if you guys could just point me in the right direction, that would be great Nov 27 03:39:46 g00s.. The tablet is fine.. I don't have any issues Nov 27 03:39:49 mankand007: if you device is rooted just hunt around until you find the configuration file that sets the serial number Nov 27 03:39:51 mankand007 "google" and "xda" Nov 27 03:40:09 lmgtfy Nov 27 03:40:11 lasserix stop it now :) Nov 27 03:40:16 hehe Nov 27 03:40:29 lasserix oh and many things can be set runtime from HW query dont forget Nov 27 03:40:34 but this is way off topic Nov 27 03:40:57 so i'm reading this http://blogs.wsj.com/digits/2014/11/26/twitter-is-tracking-users-installed-apps-for-ad-targeting/ Nov 27 03:41:03 The thing is, I set ro.serialno in init.rc but it gets restored during boot. Same for build.prop.. Nov 27 03:41:12 mankand007 ! go ! Nov 27 03:41:12 no idea Nov 27 03:41:35 and wondering, if i use crashlytics, if that library will start doing that also Nov 27 03:41:36 bye guys.. thanks for the help, lasserix.. really appreciate it Nov 27 03:45:57 g00s you gone 10.10 yet ? Nov 27 03:46:05 no ... Nov 27 03:46:15 too busy to mess with that atm Nov 27 03:46:41 I want to call people from my mac pro, but dam thing needs v4 BLE :( Nov 27 03:46:53 wondered if you had tried it yet, but obv. not Nov 27 03:47:34 really want Android to have something like that Nov 27 03:47:37 my mbp is 2009 , obviously doesn't have BLE Nov 27 03:47:59 oh dam, well you could get diff pci-e or usb dongle Nov 27 03:48:32 g00s do me an android app, you are bt king no ? :) Nov 27 03:49:06 such a nice feature, specially where I am, to just make mob calls from computer Nov 27 03:49:20 not sure what you're trying to do Nov 27 03:49:53 well with BLE you can have your 8.1 ios device and use Yosemite to make calls and send receive sms etc Nov 27 03:50:05 but my 2010 mac pro dont have it Nov 27 03:50:50 would be nice for android to have a similar app Nov 27 03:52:03 hm, does iOS 8.1 use BT 4.0 or 4.1 ? Nov 27 03:52:19 is it in settings / Nov 27 03:52:21 ? Nov 27 03:52:32 no idea Nov 27 03:53:04 na, just gives me mac for adapter in info Nov 27 03:53:52 streaming audio really isn't a use case for BLE 4.0 Nov 27 03:54:13 ah, must be 4.1 then Nov 27 03:54:37 i dunno. maybe its just using plain BT Nov 27 03:56:19 no Jacob... Nov 27 03:57:02 I have no idea when last time i used bluetooth Nov 27 04:09:45 windows has better bluetooth support than mac Nov 27 04:09:48 so sad Nov 27 04:11:02 its easy to get BTLE dongles Nov 27 04:11:24 i was going to get one for dev Nov 27 04:11:59 wow, Amazon Fire phone $200 unlocked Nov 27 04:12:07 still not worth it :) Nov 27 04:13:46 D: Nov 27 04:13:53 So, anyone alive who knows how to work with NFC? Nov 27 04:14:10 it doesn't support gapps Nov 27 04:14:14 can't run aosp Nov 27 04:14:17 it sucks Nov 27 04:14:34 * pfn still wants to find something cool to do with nfc Nov 27 04:16:29 im trying to, but nobody here knows NFC, or wants to reply to me. not sure which Nov 27 04:23:07 read the apis, do something with it Nov 27 04:23:10 call it a day Nov 27 04:24:16 How much disk Space is requiered to download and compile cm form source ? Nov 27 04:24:32 did someone wipe out the topic today or something ? Nov 27 04:24:44 50gb or so Nov 27 04:26:04 Are you considered ready for Android rom development if you know Java , Android's Version of Java , A little C and C++ and are willing to learn more ? Nov 27 04:26:15 Lingo: wrong channel, see topic Nov 27 04:26:33 oops sorry Nov 27 04:28:56 I really like the feel of 🍭 in general, it's so beautiful Nov 27 04:29:11 Probably felt the same way when holo first came around... Nov 27 04:29:15 not really... Nov 27 04:30:32 hi, any other way to go with programming on android other than java Nov 27 04:31:34 Anyone ever run into a problem where their USB disconnects and it makes their IntelliJ/Eclipse projects read-only? Nov 27 04:31:59 I know lollipop looks wonderful. I can't say anything about the feel it's not officially out for my device yet and the unofficial one softbircked my LG Nov 27 04:32:14 🍭 Nov 27 04:32:34 hehe my family is now argueing about that question StingRay, things are getting worse than monopoly Nov 27 04:32:35 Windstorm short answer yes Nov 27 04:32:45 yep 🍭 Nov 27 04:32:57 Windstorm you can use c and c++ with Android ndk Nov 27 04:32:59 SwiftKey suggests emoji now, it's fun Nov 27 04:33:00 lasserix arguing about what ? Nov 27 04:33:07 that sizing thing Nov 27 04:33:14 they're all engineers so Nov 27 04:33:22 its kind of fun to watch this debate go on ;p Nov 27 04:33:29 if thats your target then yeah Nov 27 04:33:52 yeah i figured out what i am going to do but i havent told them yet Nov 27 04:34:03 Lingo thx Nov 27 04:34:04 I've basically made all of qicr material now Nov 27 04:34:14 pfn use it for more time and you will come to realise it's mostly fluff that is a bit backwards, too many practical downsides ...not a fan Nov 27 04:34:16 :) Nov 27 04:34:55 details? I've been using it for a few days now Nov 27 04:34:59 I still like Nov 27 04:35:28 well the design goals are backwards, it's all bling driven Nov 27 04:35:39 so function designed around form Nov 27 04:35:59 very apparent in the apps Nov 27 04:36:17 like , alarm, mail, phone, contacts etc Nov 27 04:36:24 and where has form overridden function? Nov 27 04:36:32 where are the steps backward Nov 27 04:36:32 hey guys, is anyone familiar with sqlite in android? Nov 27 04:36:50 pfn where are they not .... pick something an I will say Nov 27 04:36:55 and* Nov 27 04:37:28 fancyfetus: ohh yeah i formulate and call out sqlite statements while im getting it on Nov 27 04:37:38 what exactly have you seen as a step backward Nov 27 04:37:51 lasserix, JUST the kind of person I'm looking for! Nov 27 04:38:07 too much to mention, which is why I said randomly pick something and I will be able to point at something obvious Nov 27 04:38:10 I'm having some trouple updating the row of a table. Nov 27 04:38:16 but in the last hour, the alarm app Nov 27 04:38:37 it now doesn't show multiple countdowns due to the nature of material design Nov 27 04:38:41 even on a 10" tablet Nov 27 04:38:52 amazingly stupid :) Nov 27 04:39:12 did the clock ever show multiple countdown timer? Nov 27 04:39:14 fancyfetus: probably fastest way to figure it out is post some code Nov 27 04:39:17 I don't recall Nov 27 04:39:20 pfn yes, 3-4 Nov 27 04:39:24 depending on space Nov 27 04:39:27 lasserix, yeah pastebinning it now Nov 27 04:39:34 now I get 1, with 95% clear space around it Nov 27 04:39:57 I don't think that's a downside of material, but more google failing to focus on large screen displays Nov 27 04:40:01 mail now shows 40% blank space when the focus of the design should be at a glance max info Nov 27 04:40:14 again, tablet specific Nov 27 04:40:22 no, thats on my phone Nov 27 04:40:38 doesn't show 40% blank to me Nov 27 04:41:06 look at things like newstand app Nov 27 04:41:10 thats even worse Nov 27 04:41:58 StingRay_ don't worry , in 2-3 years a new fad design will come Nov 27 04:42:07 less than that Nov 27 04:42:19 I can tell you what the next will be Nov 27 04:42:28 contextual design Nov 27 04:42:36 "content first" Nov 27 04:42:51 hm, content first was a principle of holo :) Nov 27 04:42:53 huh, what's wrong with the new stand app Nov 27 04:43:01 it's still content first Nov 27 04:43:12 it has open space first lol pfn Nov 27 04:43:30 no it doesn't Nov 27 04:43:49 we are not looking at the same newstand app Nov 27 04:43:56 or you are not remembering it before the update Nov 27 04:44:07 unless you call the top banner open space Nov 27 04:44:07 hi guys, how to fix 'Grade DSL method not found : run proGuard()' error? Nov 27 04:44:43 pfn yes, also multiple actions/touches now to search Nov 27 04:45:11 multiple? one touch on search button... Nov 27 04:45:20 scroll down Nov 27 04:45:34 scroll up a bit Nov 27 04:45:41 cervantes minifyEnabled or something like that. its a simple google search Nov 27 04:45:46 oh, and to search scroll down again a bit then tap Nov 27 04:45:47 :) Nov 27 04:46:36 whatitis: yeah, i found that. Do i have to apply this to every project that i make with previous graddle version? Nov 27 04:46:51 that *is* content first, it puts content front and center soon as you start digging into it Nov 27 04:47:01 the top banner is a sample of the content below Nov 27 04:47:08 it's not fluff Nov 27 04:47:36 having to scroll to reveal controls is a nice pattern for content based apps Nov 27 04:47:42 cervantes, think its related to android build tools version Nov 27 04:47:49 in this case, I agree with the design decisions Nov 27 04:47:56 pfn it is, pretty fluff but yeah fluff, start the app on a nexus 5 and marvel at the motion graphic that take 40% of the space Nov 27 04:47:58 I want more space for reading my content Nov 27 04:48:22 whatitis: ok Nov 27 04:48:30 and the practical use for such a graphic, looks pretty (what I call fluff :) ) Nov 27 04:49:02 it's a collection of images from the articles below Nov 27 04:49:09 that's content Nov 27 04:49:16 well, I suppose I call fluff anything that is there for the sake of looking good over practical use Nov 27 04:49:27 irrelevant passover content yes Nov 27 04:49:32 serves not purpose Nov 27 04:49:48 not something as a user you take it other than the "sake" of it Nov 27 04:49:48 no purpose? snapshot of content below Nov 27 04:50:02 * pfn shrugs Nov 27 04:50:09 well have to disagree on this Nov 27 04:51:09 pfn I like pastel colors and drop shadows, always have in other apps...flat design is good too, been around and in use for many years... just this paper and motion Nov 27 04:51:36 I think MS came up with most of the actual style guides for mobile flatness Nov 27 04:51:41 then newspapers and magazines with big pictures before their articles are all fluff Nov 27 04:51:43 I see Nov 27 04:52:00 pfn so if you weren't using CheckableTextView - and you wanted a touch from the user anywhere on the list item to toggle the CheckBox, you would just put a touch listener on the outer view to poke the checkbox ? Nov 27 04:52:12 g00s, pretty much Nov 27 04:52:24 thx Nov 27 04:52:48 actually, if all your items have checks, just use checkedtextview, I think my problems arose from not all elements having checks Nov 27 04:52:53 and my list having no selection mode Nov 27 04:53:02 ah, k Nov 27 04:53:05 basically the opposite usecase for checkedtextview Nov 27 04:53:07 pfn yeah thats what I mean, the large 40% motion graphic at the top, the fact of having to scroll up to do a search etc Nov 27 04:53:09 but still, annoying Nov 27 04:53:16 don't have to scroll to do a search... Nov 27 04:53:22 unless you dug into content to begin with Nov 27 04:53:39 search is always immediately available unless you do something to dismiss it Nov 27 04:53:41 yeah, if you scroll up a bit, now you have 2 actions to do Nov 27 04:53:53 scroll down to get toolbar Nov 27 04:53:58 click to search etc Nov 27 04:54:24 if you're already scrolling, reversing the direction is no big deal Nov 27 04:54:34 it's basically the same action as already being executed Nov 27 04:55:02 I still disagree, move the search out of the way as soon as I am looking at content Nov 27 04:55:06 any robolectric dev here ? Nov 27 04:55:07 give me more room to see the content I want to see Nov 27 04:55:14 not search which I didn't care about to begin with Nov 27 04:55:22 the design is still content-first Nov 27 04:55:43 you're asking for an auxiliary function to remain a first-class citizen even when the user already went ahead to not use it on purpose Nov 27 04:55:55 not at all Nov 27 04:56:19 I'm saying at the point of acting on content, scrolling down should be the same as scrolling up Nov 27 04:56:29 not scrolling should maybe be the reveal Nov 27 04:57:10 don't obscure content I'm reading Nov 27 04:57:28 indeed no Nov 27 04:59:21 still debating Nov 27 04:59:30 :) Nov 27 05:00:25 I need to give qicr a color theme, hmm Nov 27 05:01:18 pfn oh yeah, irc is one of those apps people like to theme Nov 27 05:01:30 Is there a way to see my sqlite tables stored in internal storage in my app? Nov 27 05:01:35 I'd love to see what they look like... Nov 27 05:01:36 not add theming Nov 27 05:01:36 Hey all, in Android Studio in the android/devices pane, I can see the process list, however I cannot see the logs for my app. I can see it in the process list, but clicking it etc does nothing. Nov 27 05:01:41 Any ideas? Nov 27 05:01:44 just material colors Nov 27 05:01:59 I have no interest in adding custom themes Nov 27 05:02:01 fancyfetus: yeah Nov 27 05:02:05 you can do it via adb Nov 27 05:02:11 or if you have rooted device Nov 27 05:02:21 I might expose something via scripting if I ever get around to it Nov 27 05:02:29 if rooted, its in /data/data/your.package.name/databases Nov 27 05:02:53 if not rooted, you have to do some stuff via adb or ddms or something forget what exactly but you can google it Nov 27 05:03:03 Found it. Nov 27 05:03:06 hi lasserix Nov 27 05:03:14 hello Nov 27 05:03:19 lasserix, which program should I open them with? Nov 27 05:03:28 any sqlite browser Nov 27 05:03:35 there are lots of free ones for unix and windows Nov 27 05:04:02 i think firefox even has an extension Nov 27 05:04:11 fancyfetus what platform ? Nov 27 05:04:31 linux Nov 27 05:04:37 ah, windows has http://www.yunqa.de/delphi/doku.php/products/sqlitespy/index Nov 27 05:05:50 I have certain text fields which should accept phone number,email id and decimal/int data. I do the check with the patterns using setOnFocusChangeListener.Only when focus is changed one can see the error Nov 27 05:06:14 on the field has focus no error is shown Nov 27 05:06:20 just run sqlite3 Nov 27 05:06:50 i got sqliteman Nov 27 05:06:55 which is supposedly good Nov 27 05:07:00 http://sourceforge.net/projects/sqlitebrowser/ Nov 27 05:07:15 What should be the better approach? Nov 27 05:07:26 but I have no idea how to direct it to my phone's internal storage... Nov 27 05:08:00 fancyfetus: i told you you have to pull the db via adb or something if you device is not rooted, if it is you can just navigate to /data/data/your.packagename/databases/ and it'll be there Nov 27 05:08:12 awesome, thanks Nov 27 05:08:14 an example of why html5 will never supplant native apps: fucking github is 💩 when running 🏃 on android chrome Nov 27 05:08:21 either way that's where it is, if not rooted you can't directly access that folder, you have to go through adb or do some special things in ddms Nov 27 05:08:22 lasserix i think in 2014 , having to do that still is so lame .... Nov 27 05:08:24 damnit, emoji fail Nov 27 05:08:47 g00s yeah Nov 27 05:09:08 fuck, motodevstudio had that in a limited sense in 2010 Nov 27 05:09:27 but i guess AS doesn't have it, because the sqlite plugin is not in CE Nov 27 05:09:44 and nobody bothered to write another one, or whateer Nov 27 05:09:48 TextWatcher should be best for checking setErrors? Nov 27 05:10:30 feel like textwatecher would be a painful expireince since it would fire off every single character wrong Nov 27 05:10:31 as long as your app is debuggable you can pull your files off device Nov 27 05:11:08 niru why would you not just use the input mode presets ? Nov 27 05:11:12 niru: just validate on submit and then show a popup explaining what's wrong, and on okay/fix request focus on the wrong input Nov 27 05:11:22 text watcher is better Nov 27 05:11:27 more responsive Nov 27 05:11:40 considering the speed at which one can type on mobile Nov 27 05:11:51 firing for every single key stroke is not expensive Nov 27 05:12:14 just make sure not to bombard the user Nov 27 05:12:34 don't fall back to 1999 style submit validation Nov 27 05:12:46 well there is no easy way to get root... Nov 27 05:12:54 so I can't use DDMS to view the data folder Nov 27 05:13:00 StingRay_: I already have input mode displayed for different types of fields Nov 27 05:13:54 Hey, is there a way to detect when the activity start animation has completed. I have a loading animation that is disabled at the end of onCreate but it disappears before the animation switches to the new layout. Nov 27 05:14:11 fancyfetus: here's one way: http://www.techrepublic.com/blog/software-engineer/export-sqlite-data-from-your-android-device/ Nov 27 05:15:22 http://code4reference.com/2012/06/access-sqlite-database-android/ Nov 27 05:15:33 zbcm: animationlistener Nov 27 05:16:15 ty Nov 27 05:17:34 material guidelines have section for form validation Nov 27 05:17:45 how do I get hint text on a text box which disappears when a user clicks on the box? Nov 27 05:17:59 oh thats a special project Nov 27 05:18:58 can't remember where i saw that now Nov 27 05:19:09 material edit text has it. Nov 27 05:19:18 yeah there is a backport Nov 27 05:19:21 appcompat should I think Nov 27 05:19:56 but just use normal hints that disappear on typing Nov 27 05:21:16 https://github.com/thebnich/FloatingHintEditText Nov 27 05:22:10 lasserix, do you know how I get the Activity animation? Nov 27 05:23:12 g00s can do you one better : https://github.com/hardik-trivedi/FloatingLabel ;p Nov 27 05:23:47 :) Nov 27 05:24:17 zbcm no idea sorry thought you meant your own supplied animation Nov 27 05:24:23 nah Nov 27 05:24:26 thanks anyway Nov 27 05:45:12 are there any intro to android dev type google i/o 's ? Nov 27 05:45:44 i think i have to start from scratch ive forgotten everything since i did my last one .. which even used the ndk Nov 27 05:57:16 I have an issue, I have an onClick function Nov 27 05:57:23 and in that function I am trying to update a linear layout Nov 27 05:57:42 in that linear layout I call .addView but it doesn't update or change Nov 27 05:58:00 my thoughts of what could be wrong is maybe the function is not invoked from the UI thread? Nov 27 05:58:14 or maybe that I need to "refresh" the linear layout Nov 27 05:58:18 Any help? Nov 27 05:58:44 ? Nov 27 06:04:48 better qestion, is it a good idea or practical to implement editing items in a listview in-place ? i.e. w/o popup dialog or launching another acitivyt ? Nov 27 06:05:12 ajoul, call invalidate on it? Nov 27 06:05:39 it's basically the android equivalent to refresh() Nov 27 06:05:44 zbcm: I should call invalidate on the linear layout after I add the view again? Nov 27 06:05:53 try it Nov 27 06:09:19 I am wondering if I can build an app that is just a receiver, a pure widget without having a main activity? Nov 27 06:09:33 sure Nov 27 06:09:52 ah good, it seemed logical looking at the docs but I was not sure, thank you. Nov 27 06:09:59 ajoul you are probably adding it wrong Nov 27 06:10:14 zbcm: didn't work. Nov 27 06:10:18 lasserix: that is what I thought Nov 27 06:10:32 ajoul add it before addView make sure it lays out correctly Nov 27 06:11:25 lasserix: I have the onCreate function in which I take the linearlayout id and to that I use addview to add something to it. It works fine Nov 27 06:11:40 post your code Nov 27 06:14:38 lasserix: zbcm http://pastebin.com/9yM6b5qW Nov 27 06:15:12 How do I add a horizontal line below a transparent EditText input in activity? Nov 27 06:16:16 ajoul: you need to add some layoutparams probably Nov 27 06:16:27 lasserix: what do you mean? Nov 27 06:16:51 LinearLayout.LayoutParams lps = new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT); graphView.setLayoutParams(lps); layout.addView(graphView); Nov 27 06:16:57 I don't want to add an additional graph to that layout I just want to replace the existing one with a new one Nov 27 06:19:19 then you need to removeview first Nov 27 06:19:31 but you should uselayoutparams to define the sizing Nov 27 06:19:50 graphiview might collapse without width and height Nov 27 06:20:06 but can't you add it to the linearlayout Nov 27 06:20:08 setvisibility to false, Nov 27 06:20:12 initialize and show it Nov 27 06:20:24 then whenever you reset it setvisiblity to false, reinitialize and show it? Nov 27 06:20:52 lasserix: the thing is, this onClick method is supposed to be on a list of items and each item has its own graph Nov 27 06:21:08 you should probably make some swap function Nov 27 06:21:26 lasserix: yes, so you suggest that I remove the view first and then add the new view? Nov 27 06:21:28 you can do findViewById then removeView to get rid of previous graphview Nov 27 06:21:32 well Nov 27 06:21:36 that's what you wanted to do right? Nov 27 06:21:41 otherwise you'll have two graphviews Nov 27 06:21:53 but inreality why cant you just reset the graphview values? Nov 27 06:22:35 lasserix: what do you mean by resetting the graphview values Nov 27 06:22:54 why new graphview Nov 27 06:23:12 lasserix: lol I think u are right I forgot graphview has an extensive API Nov 27 06:23:18 instead of reuse graphview with new data set Nov 27 06:24:06 lasserix: I guess I am too tired lol Nov 27 06:28:10 what is wrong with my Activity layout in XML here? http://pastie.org/9746187 I added manually the view element to make a horizontal white separator line, and now the preview does not work, and the app crashes on launch Nov 27 06:30:01 is it good practice to implement content provider as a way to pass and notify data from the database to the activity ? Nov 27 06:31:31 scikit-learn is cool Nov 27 06:39:38 greetings. Nov 27 06:40:07 How do I go about to find all the options available for a propery like persist.sys.usb.config Nov 27 06:40:39 so far searching the web I have found adb,mtp and mass_storage Nov 27 06:40:49 But is there a way to query the device for the options ? Nov 27 06:51:13 why is there a second styles.xml(v21) Nov 27 06:52:13 in AS Nov 27 06:52:49 mm... res/values-v21 Nov 27 06:56:45 cant find much on google.. but seems to be something to do with themes Nov 27 07:11:21 using a fragmentpageradapter, how can i get the currently displayed tab? i want to be able to send to google analytics wich one is showing. getItem seems to create the fragment Nov 27 07:15:45 looks like ViewPager.OnPageChangeListener should take care of it Nov 27 07:16:29 except for the initial load hrm Nov 27 08:13:45 turkey... nom nom nom Nov 27 08:59:52 Hey, can anyone help me with this? http://stackoverflow.com/questions/27163884/startactivity-transition-animation-end Nov 27 09:00:24 I'd help if I know much in that subject :( Nov 27 09:00:38 :p, thanks anyway Nov 27 09:02:05 are you saying your animation will continue to run after onCreate? Nov 27 09:02:09 and it doesn't end? Nov 27 09:02:15 yeah Nov 27 09:02:19 its not my animation Nov 27 09:02:25 its the transition from one activity to the other Nov 27 09:02:31 the system animation Nov 27 09:02:32 maybe you should have something in OnPostExecutes that'll stop it? Nov 27 09:02:44 just like the pDialogs Nov 27 09:03:02 stop the animation? Nov 27 09:03:03 again im not an expert in that .. just my two cents Nov 27 09:03:08 possibly yeah Nov 27 09:03:11 I don't want to stop it, I just want to know when it has ended Nov 27 09:03:16 oh Nov 27 09:03:22 Log.d? Nov 27 09:03:30 I will google it :p Nov 27 09:03:33 lol or that Nov 27 09:03:34 xD Nov 27 09:03:40 I emant google log.d Nov 27 09:03:43 oncreate runs so it knows what layout it should animate into view... Nov 27 09:03:44 I've already googled my problem Nov 27 09:03:58 oh wait Nov 27 09:04:30 why don't I jsut use onpause on the other activity Nov 27 09:04:32 I Was over thinking it Nov 27 09:04:34 that should work Nov 27 09:04:47 lol Nov 27 09:04:49 here you go Nov 27 09:04:56 are you good with listviews? Nov 27 09:05:23 sure Nov 27 09:05:41 I have this custom listview where I have multiple types of rows. 2 of which are radio buttons and one is ratingbar Nov 27 09:05:41 well Nov 27 09:05:48 not good, I have a little knowledge Nov 27 09:05:58 im trying to get the selected item value Nov 27 09:06:07 but idk how Nov 27 09:06:24 just some ideas might be enough to push me in the right way Nov 27 09:06:32 sorry I gotta go for a bit :C, hopefully someone else can help you. Nov 27 09:06:32 selected? of the radiobuttons? Nov 27 09:06:40 yeah Nov 27 09:06:49 np, ty anyway Nov 27 09:06:58 so let's say we have this Nov 27 09:07:12 q: How are you? 1) good 2) very good 3) eh Nov 27 09:07:34 how would I get the value of the selected button Nov 27 09:07:36 lol Nov 27 09:10:11 is there any practical hands-on tutorial for rx in android? Nov 27 09:32:06 layout_weight can specify elements to take up to x% percent of the available space Nov 27 09:32:31 how can I make it take the bounds of the thing it contains and then take up to x% percent at maximum? Nov 27 09:32:42 something like minHeight/maxHeight and Weight Nov 27 09:56:16 platzhirsch: taking a step back, what are you making? Nov 27 10:02:33 osxorgate: displaying events in my chat (list view) with things like " joined the channel " Nov 27 10:02:56 and I want that the textview element takes up to 50% of the available space and then gets ellipsized Nov 27 10:03:14 but when I just use layout_weight it pushes everything right of to far away from the user textview :) Nov 27 10:03:48 platzhirsch: make a tablelayout where each column takes 50%, and then add the elements to that table with wrap_content Nov 27 10:04:30 danijoo: oh that's new, hadn't used that one before Nov 27 10:04:32 or use 2 linearlayout instead of a table. something like that.. Nov 27 10:05:38 danijoo: I couldn't figure it out with two Linearlayouts, didn't seem to work as intended as I only want to constraint the first element in percentage Nov 27 10:05:39 you could also create the textviews in code, measure their size, and if its more than the 50%, wrap them Nov 27 10:05:53 dynamic solution seemed feasiable, as well, true Nov 27 10:08:45 platzhirsch: cant test it right now because i'm in a hurry but something like this should work: http://pastebin.com/Q6HAYpNB Nov 27 10:09:20 danijoo: that's golden, thanks a lot :) Nov 27 10:37:05 Hi all. Camera question here: are all the camera preview sizes supported as picture size? like 1024-768 is the best supported preview size for my phone and is also supported as picture size. But I need to know if this 'matches' for all devices Nov 27 10:38:04 Is there a way to emulate HTC Sense devices? Nov 27 10:38:07 FrancescoV: are you asking if 768x1024 is supported by all deviecs? Nov 27 10:38:25 thepoosh: nop Nov 27 10:38:25 Ankhwatcher: maybe you can find the image on XDA Nov 27 10:38:34 so please explain Nov 27 10:39:23 Will the picture always be the same size as the preview? is that the question? Nov 27 10:39:39 like supported preview sizes are (a, b, c, d, e), e is the best. supported picture sizes are (a,b,c,d,e,f) f is higher than e. But I need to know if I always use the best preview size, that this size is always or not always a supported picture size Nov 27 10:40:01 from what I remember, some devices actually lie about that Nov 27 10:41:00 that's not nice to hear.. Nov 27 10:41:53 but thanks for telling me this Nov 27 11:00:56 do you package activities, classes, adapters? Nov 27 11:02:39 what do you mean? Nov 27 11:03:07 in your project, do you have a package called activities where all your activities are? adapters for adapters, etc.? Nov 27 11:03:54 oh you mean seperate classes by type Nov 27 11:03:58 yeh i do sort of Nov 27 11:04:28 you dont have to Nov 27 11:04:40 you don't have to do anything, of course Nov 27 11:04:57 you can name your activity Activity_1 too Nov 27 11:05:06 yeh ok im going out now Nov 27 11:27:59 danijoo: You're dynamic code approach to reduce the TextView width to half the available space works great, but for some reason the ellipsizing does not work after setting a new width, it's just cropped, any idea what's causing this? Nov 27 11:30:03 hello, I'm having an issue with sending PNG files with intents. Specifically, I send a png and it gets converted to jpg. I thought this was background processing on the receiving end side but when I sent the same image from the gallery app it remained a png. Nov 27 11:44:28 ffs, have anyone handled getting a ratingbar to 100% width (+margin or padding) in a linear or relativlayout? Nov 27 11:49:23 I need to set the Camera.parameter pictureSize. I must have a: small, medium, large. Small = 640x480, medium = X, large = biggest supported size. How should I choose the medium (X)? Info http://www.kirill.org/ar/ar.php Nov 27 11:51:15 Can anyone explain why the DisplayMetrics report a dpi of 160 on the Nexus 4? Nov 27 12:22:43 I'm using the master/detail template in Android Studio RC2 with Theme.AppCompat.Light.DarkActionBar declared in the application tag of my manifest but the Action Bar is only showing on the Detail Activity and not on the standalone Master Activity or the combined Master/Detail Activity. What am I missing? Nov 27 12:23:04 minsdk=14 target=21 'com.android.support:appcompat-v7:21.0.+' added to gradle Nov 27 12:24:07 I am looking for some library like Tinder Swipe Card, any one can recommend one? Nov 27 12:27:50 kamol, google is ur friend Nov 27 12:27:50 https://github.com/kikoso/Swipeable-Cards Nov 27 12:38:26 which is faster to decode on android png or jpg? Nov 27 12:38:33 FWIW, here's how I ended up improving upon SpannableStringBuilder: http://pastebin.com/8RPkxtSs Nov 27 12:38:55 I think that's the simplest way to do that. Nov 27 12:54:35 TacticalJoke: Hows the time counter thing going? Nov 27 12:55:51 Oh, so far I'm not using Joda-Time. Just doing simple maths. lol Nov 27 12:55:56 I'll probably switch to Joda-Time. Nov 27 12:56:02 I don't show months yet. Nov 27 12:56:37 It's minutes+secs, hours+minutes, days+hours, weeks+days, or years+weeks. Nov 27 12:56:43 If the latter is 0, it's not shown. Nov 27 12:57:02 Nice :D Nov 27 12:57:19 Sounds stupid - Ive never used JodaTime nor heard of it - whats the benefit. Nov 27 12:57:30 Joda-Time calculates actual weeks/months/whatever. Nov 27 12:57:39 My mathematical calculations don't take into account stuff such as leap years. Nov 27 12:58:01 Or variable-size months (which is why I don't show months; lol). Nov 27 13:00:51 Ahhh haha Nov 27 13:01:07 Might make use of that at some time. Nov 27 13:03:46 This is what I do: http://pastebin.com/Namr1BSZ It's basically a huge hack. Nov 27 13:06:50 kevel1: thank you, however, I am still looking other options Nov 27 13:08:15 TacticalJoke: Use a plural strings xml element to handle strings. Nov 27 13:11:35 Yeah, I guess that makes sense. I considered it but thought it'd be overkill, but I'll probably end up doing it. Nov 27 13:13:18 That'd also help with localisation. Nov 27 13:20:49 Anyone experienced resources in values-xxx/ being ignored and it just reading them from def. values/ instead when parsing XML? Aren't all resource types handles the same way as strings, dimensions etc when parsing an XML? Nov 27 13:31:31 What current/total install ratios do you guys experience on google play for free apps ? ( with ads ) Nov 27 13:31:45 It looks like my users are very unhappy with some of my apps. Nov 27 13:32:26 My nominal ratios are between 20 - 25 % then some odd ones. Nov 27 13:32:34 How doe that sound ? Nov 27 13:33:46 Dear all , i have this error message : 11-14 15:42:26.420 W/SQLiteConnectionPool(15763): A SQLiteConnection object for database '/data/data/com.bookscars.src.v65/databases/AppDbStoreroot7' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. and the only class calling AppDbStoreroot7 data is this one : Nov 27 13:33:46 http://pastebin.com/19GGhszr Nov 27 13:35:09 s* Nov 27 13:42:13 Unknown0BC: i think its difficult to judge those numbers. Maybe your apps are only needed once? There are many factors why people might deinstall them :/ Nov 27 13:42:37 Yes for sure day. Nov 27 13:42:45 Just wondering about what people experience. Nov 27 13:45:22 please ,, kindly any one may help ? Nov 27 13:48:52 Unknown0BC: i wonder, how do you handle customer requests/satisfaction? Nov 27 13:49:09 show them the middle finga Nov 27 13:49:10 do you actively reach out to certain customers/reviewers? Nov 27 13:49:12 ;) Nov 27 13:49:14 :D Nov 27 13:49:16 only kidding. Nov 27 13:49:49 well im always crying a little on the inside when people group bash for free software Nov 27 13:49:59 -for* Nov 27 13:51:05 Very strange, if I specify a different @string/app_name in values-sw600dp, then that is used by AndroidManifest, but if I specify different @integer/orientation it is ignored. One is a string resource, the other an integer resource. Seems they are handled differently. Nov 27 13:52:45 It's so hard to decide upon colours. Nov 27 13:52:48 How do you folks do it? Nov 27 13:53:03 cyan! Nov 27 13:53:10 Study some art TacticalJoke Nov 27 13:53:14 It helps. Nov 27 13:53:14 cyan on black! Nov 27 13:53:17 :) Nov 27 13:53:20 lol shmooz Nov 27 13:53:30 Part of the issue is that my background is dark/black. Nov 27 13:53:37 Not many colours seem to go with black. Nov 27 13:54:17 Colours will depend on a lot of things. Nov 27 13:54:23 I don't want this looking like some VB6 app, so I guess I'll have to obsess over colours for hours and hours. Nov 27 13:54:35 TacticalJoke: you should make it dark theme or light theme, and then maybe a color tint on top of it Nov 27 13:54:37 What the app does for a start. Then a whole lot of other factors. Nov 27 13:54:46 Yeah, I'm gonna make it themeable. Nov 27 13:54:53 Sometimes a "wrong colour" is the right colour depending on the context. Nov 27 13:54:55 that the user can choose Nov 27 13:55:02 Ya. Nov 27 13:55:43 Like red on black is either sexy, dangerous, or both... Nov 27 13:55:56 ;) Nov 27 13:56:41 TacticalJoke: I made my app themeable for dark and light already Nov 27 13:56:49 and soon as you tap the word dark everything turns dark, including the settings menu and actionbar and the other pop up menus Nov 27 13:56:58 ok well I still have to do the long press pop up somehow Nov 27 13:57:23 that was a tough one so I gave up on that Nov 27 13:57:41 but I'll get back to it Nov 27 13:58:42 I wouldn't let the user choose any color because you need high contrast, so I would let them tint it instead Nov 27 13:59:02 Yeah, I was thinking of having various themes such as "Black (AMOLED)", "Dark", "Blue, "Red", etc. Nov 27 13:59:06 And each one is decided by me. Nov 27 13:59:29 "Blue" might have blue hints; "Red", red hints. And so on. Nov 27 14:00:12 One thing I'm gonna concentrate on is keeping the UI simple, because Reddit is complex enough. Nov 27 14:00:17 Including colours and so on. Nov 27 14:00:32 yeah but definately have a choice of dark/light Nov 27 14:00:51 Yeah, probably only "Black" and "Dark" will be dark. Nov 27 14:02:48 For now, I just need to make the app good-looking enough for me to use. :D Nov 27 14:03:07 It can be perfected over time, I guess. Nov 27 14:03:30 don't guess! knoooow! Nov 27 14:03:58 I don't have much faith in my artistic abilities. Having said that, I'm not completely awful either. Nov 27 14:04:06 I know enough to keep it simple. Nov 27 14:05:49 As simple as possible yet effective. Nov 27 14:06:05 Right. Nov 27 14:06:15 I know a guy who makes things 5 times more complex than needed because he likes to show off and his apps likes to crash... Nov 27 14:06:17 TacticalJoke: you just images.google.com and take something and modify it Nov 27 14:11:08 is it possible to keep the app in portrait orientation without changing manifest or override method in activity? Nov 27 14:12:28 * TacticalJoke hates apps that do that. :[ Nov 27 14:12:39 It always seems to break tablets. (I then can't use my tablet upside-down.) Nov 27 14:13:13 Yeah, I always love how on my tablet half of app screens just rotate back to portrait Nov 27 14:13:20 for no apparent reason Nov 27 14:13:21 TacticalJoke: sorry but hate it too, I'm not the person who choose this Nov 27 14:13:27 * Mavrik glares as Slack. Nov 27 14:14:05 I'm sure some apps have to be in portrait to make sense no ? Nov 27 14:14:31 shmooz: The problem I have is that my charge port is at the bottom of my device. So, when charging, I use my tablet upside-down. Nov 27 14:14:44 And every app I've seen that locks into portrait doesn't allow me to use portrait upside-down. Nov 27 14:15:01 I have to manually lock the screen to stop them from doing this. Nov 27 14:15:05 shmooz, I haven't seen alot of apps that would make sense beyond "developer was incompetent and didn't know how to handle orientation change" Nov 27 14:15:13 with the added bonus of app crashing when restoring state as well :P Nov 27 14:15:18 lol Nov 27 14:15:28 they should do portrait both ways Nov 27 14:15:35 Mavrik: games in locked to landscape makes sense =) Nov 27 14:15:38 Yeah, at minimum. Nov 27 14:15:40 If I put a 1 in values-sw600dp/integers.xml and set that as the screenOrientation for an activity in AndroidManifest.xml and install the apk on a tablet that actually IS sw600dp - it crashes on install. Something very strange is going on when it's parsing AndroidManifest.xml on install. Nov 27 14:15:54 appel1, ah, don't do those alot on the tablet :P Nov 27 14:16:06 snowpong: I hope you don't use "integere". :D Nov 27 14:16:10 FrancescoV, anyway, you have a method on Activity class. Nov 27 14:16:13 Mavrik: I thought games is what tablets are for? :D Nov 27 14:16:27 appel1, :D Nov 27 14:16:30 TacticalJoke: tab completion in my irc client is not hooked up to intellij ;) Nov 27 14:17:06 some games locked to portrait is better like single player tetris Nov 27 14:17:46 Mavrik, I need to make it work without changing code in activity. It's for a plugin. Nov 27 14:17:47 They need to at least lock *both* portraits. Nov 27 14:18:56 FrancescoV, well if you decide you can't use any of several ways to do that... you're kinda out of luck Nov 27 14:20:03 There's also bunch of apps out there which lock startup wizards to portrait (like Any.do) even though the wizard only shows a single line of centered txt Nov 27 14:20:19 Mavrik, thanks Nov 27 14:20:36 FrancescoV, last time we just had to tell pepole to add the parameter to manifest Nov 27 14:20:46 since that's by far the most stable way Nov 27 14:22:00 true, maybe that will be my best option Nov 27 14:22:21 TacticalJoke: write an app that reverses your screen to solve your problem and then put it on the play store ;) Nov 27 14:32:04 shmooz: The screen-lock function in 4.4 (and maybe below) solves the problem. :) Nov 27 14:32:07 It's still annoying, though. Nov 27 14:32:34 meh orientation change has to be the worst part about mobile developing Nov 27 14:32:45 everytime i can i just keep portrait and get on with my life Nov 27 14:32:56 without dealing with orientation changes Nov 27 14:34:14 What if someone wants to go wide-screen? Nov 27 14:34:19 People will hate that. Nov 27 14:34:47 Dealing with losing Activity state isn't limited to changing orientation, anyway. It relates to Android killing your process in the background. Nov 27 14:34:54 In other words, you should be doing the onSaveInstanceState thing anyway. Nov 27 14:35:40 As I understand it, the OS can destroy your Activity or kill your process whenever it wants to. Nov 27 14:37:29 hopefully not while it's in the foregreound Nov 27 14:37:50 Yeah, I can't imagine that happens often (if at all). Nov 27 14:39:29 one of my clients is testing my app on a 512Mb phone. he is sure that the "home" button exits the app (apparently it's killed imediately because of no RAM) Nov 27 14:39:55 what version of Android is the phone running Nov 27 14:40:29 4.2.2 iirc Nov 27 14:40:36 It's handy to replicate something similar to that with the "Don't keep activities" thing in Developer Option Nov 27 14:40:38 s. ^ Nov 27 14:40:44 then yes, it's probably killing the app Nov 27 14:40:54 512MB isn't near enough to run 4.x Nov 27 14:43:49 Hey, this onTouchEvent() thing isn't being called for some reason http://pastie.org/9746923 Nov 27 14:47:24 Dear all , i have this error message : 11-14 15:42:26.420 W/SQLiteConnectionPool(15763): A SQLiteConnection object for database '/data/data/com.bookscars.src.v65/databases/AppDbStoreroot7' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. and the only class calling AppDbStoreroot7 data is this one : Nov 27 14:47:25 http://pastebin.com/19GGhszr Nov 27 14:47:45 i did close every connection Nov 27 14:47:54 but still have this error ! Nov 27 15:05:00 Hmm. In my ProgressBar (XML) declaration, if I use [style="@android:style/Widget.ProgressBar.Horizontal"], I get something ugly. If I use [style="?android:attr/progressBarStyleHorizontal"], I guess the neat line. Nov 27 15:05:02 Why is that? Nov 27 15:07:52 TacticalJoke: i think ? indicates it's a global setting Nov 27 15:08:22 a runtime setting versus a baked-in setting Nov 27 15:11:14 is there a way to wait for a blocking queue to have an element to take, but without taking it ? Nov 27 15:11:52 I have a text in the style "Some random text ...", but the layout makes it so that "Some random text" is displayed in one line and "..." in the next. in another language I have "Some random" and "text ...". Is there a way I can prevent the "..." from being in it's own line while not affecting the second case in other languages? Nov 27 15:13:12 Marlinski: It's been a long time since I've done such a thing, but I think a producer-consumer queue meets that criterion. Nov 27 15:22:35 My app is *fast*. All thanks to OkHttp and Gson, I think. :D Nov 27 15:25:09 It's surprising. Even huge Reddit threads are so fast to download. And I'm using HTTPS. Nov 27 15:25:49 i dont think its fast thanks to gson :) Nov 27 15:26:04 Why do you say that? :) Nov 27 15:26:57 In my testing, for what I'm doing, Gson worked out faster than Jackson, I think. Nov 27 15:27:02 Plus Gson is way smaller. Nov 27 15:27:27 its notoriously slower than other libraries. if it works fast for you thats awesome Nov 27 15:27:28 My testing might not have been perfect, but I remember getting consistent results. Nov 27 15:27:49 (that said, i use gson for almost everything) Nov 27 15:28:12 Note that I'm doing tree parsing and not object mapping. I didn't compare Gson and Jackson regarding object-mapping speed. Nov 27 15:29:00 ah Nov 27 15:29:19 are you timing on the reddit link/thing objects? Nov 27 15:29:37 TacticalJoke: OkHttp isnt fast Nov 27 15:29:46 The main testing I did was downloading the Reddit front page. I didn't have much code around at that time. Nov 27 15:29:58 gordon_: Really? Seems very, very fast here. Nov 27 15:30:14 I think it uses some speedy stuff under the hood. Nov 27 15:30:22 Including SPDY. Nov 27 15:30:51 "SPDY manipulates HTTP traffic, with particular goals of reducing web page load latency and improving web security." Nov 27 15:31:45 not my observations Nov 27 15:31:51 another compan Nov 27 15:31:52 y Nov 27 15:39:03 hi !!! any idea how to devlop an app that can simulate a blueooth keyboard for a PC ? Nov 27 15:39:50 with code Nov 27 15:40:02 ahah Nov 27 15:40:08 that's an idea Nov 27 15:40:25 but is there somewhere "nice" to start ? like a lib for that ? Nov 27 15:41:27 i right, and i want it to work with non rootesd device Nov 27 15:42:52 google for "android bluetooth dev" and "windows bluetooth api" or sth Nov 27 15:46:16 if I am checking for memory leaks are there any API calls I can make to check memory used accurately? Nov 27 15:46:27 and then dump to logcat? Nov 27 15:50:17 ChrisUK, there are, but using Memory Monitor + new Kitkat APIs to dump memory stats over time will be way more useful Nov 27 15:50:18 also heap dumps Nov 27 15:54:31 memory monitor is android device monitor Nov 27 15:54:52 no the monitor in bottom right of IDEA/AS Nov 27 15:55:57 I am using eclipse Nov 27 15:56:25 *shrug* Nov 27 15:58:30 do you have to set debugable in the manifest normally to view the process memory etc? Nov 27 16:06:53 Any idea how I could disable line/word wrap for a textview, but only if the wrapped text would be short (e.g. 3 characters) Nov 27 16:13:14 Is it possible to debug a release build? Nov 27 16:28:24 what is the best way to have 2 tabs, it is for a very simle game..... some articles recommend fragments, some people recommend actionbar tabs, some seperate activities Nov 27 16:28:29 simple* Nov 27 16:28:57 platz: dont know Nov 27 16:29:09 what exactly does the debugable flag do? Nov 27 16:31:30 i would like to be able to swipe between the 2 screens as well as have 2 buttons at the top Nov 27 16:33:01 Is there a better way to remove a ProgressBar's bottom-margin than to use the [android:layout_marginBottom="-8dp"] workaround? Nov 27 16:33:18 I'd like a progress bar at the very bottom of the screen, but it has a margin by default. Nov 27 16:37:24 platzhirsch, on rooted phones it is Nov 27 16:37:34 Syzygy_: what? :D Nov 27 16:37:38 ah okay Nov 27 16:37:40 gotcha Nov 27 16:37:47 First I thought the other way around Nov 27 16:37:48 on rooted phones all apps are debuggable apperently Nov 27 16:38:19 at least with cyanogenmod Nov 27 16:43:41 I'm trying to center a textview and have an icon displayed to the left of it, even though the textview should still be centered Nov 27 16:44:01 tried several things already, but the textview is always set off by the icon Nov 27 16:49:55 is it possible to do something like gravity="@null"? Nov 27 16:50:40 Syzygy_: Are you using a LinearLayout? I think you could do this with a RelativeLayout. Nov 27 16:51:06 TacticalJoke, I am using a relative layout, and I think I just figured out why nothing is working Nov 27 16:51:16 one of the styles defined a gravity Nov 27 16:52:14 the only problem is that the style inherits from a style, that inherits from a style that inherits from a style. so I would have to create a new style that includes the inheritance chain but without the gravity. or i can somehow remove gravity from something already set. Nov 27 16:54:40 luckily it seems to work if i just set the gravity to something vertical (e.g. bottom) Nov 27 16:55:57 Hmm. If I want a progress bar below a list view (to indicate "loading more items"), is it better to simply have a ProgressBar under the ListView or to use ListView.setFooterView? Nov 27 16:56:13 Both work. The former seems neater (but more complex). Nov 27 16:56:21 latter* Nov 27 16:56:32 I mean that using setFooterView seems more complex. Nov 27 16:57:27 does anyone know the drawable res id of the burger icon used in material on the left side of the toolbar? Nov 27 16:59:10 Whatever id is generated for the drawable you add to your project Nov 27 16:59:31 SimonVT: I mean the one that is used by default in the material toolbar Nov 27 16:59:57 thats not my drawable, it comes with either android or the appcompat lib Nov 27 17:00:38 In the appcompat toolbar? Nov 27 17:00:45 If I have a LinearLayout with a ProgressBar on top, and then a ListView (height=0; weight=1), and then a ProgressBar, if I show/hide those ProgressBars, is this slow (compared to using a RelativeLayout with alignParentTop/alignParentBottom for the ProgressBars)? Nov 27 17:01:03 I guess not, since it's fairly simple. Nov 27 17:01:14 SimonVT: the one left to "Shedule" http://3.bp.blogspot.com/-5NgF_Eil2NQ/U9_EKsxGetI/AAAAAAAAAtQ/gGDrJsFCKe8/s1600/tabs0.png Nov 27 17:02:29 If it's appcompat that's adding it, there's no id Nov 27 17:02:45 Private drawable Nov 27 17:03:12 SimonVT: I cant find this anywhere in appcompat library. no png or xml seems to be the corret one.. :/ Nov 27 17:04:17 It's a Drawable subclass Nov 27 17:04:37 No png or xml Nov 27 17:06:32 Still assuming it's appcompat Nov 27 17:07:16 SimonVT: yes. f you use the appcompat library, but not if you are developing for minSDK 21 Nov 27 17:07:54 Are you? Nov 27 17:08:22 in this case yes :) Nov 27 17:08:53 Is there a way to debug multi devices from Android Studio / IDEA? Nov 27 17:09:10 Im trying to set a Toolbar as actionbar in PreferenceActivity (because there is no ActionBarPreferenceActivity), but it ads it without a logo as default Nov 27 17:09:28 and because there seems to be no resId for that standart logo.. im screwed :p Nov 27 17:09:46 Pretty sure there is no logo by default Nov 27 17:10:07 there is if you set the toolbar as actionbar Nov 27 17:10:17 but you cant do that in a preference activity Nov 27 17:10:26 A hamburger icon? Nov 27 17:10:40 That seems silly, there's not even a DrawerLayout in the framework Nov 27 17:10:41 danijoo_: maybe use preferences fragment Nov 27 17:11:16 SimonVT: yes. its the default logo. did you never try material design? Nov 27 17:11:27 yoavst: thats plan B ;) Nov 27 17:11:51 If I use RelativeLayout, is there a guarantee that Z-order will be determined by the order of Views declared in the layout file? Nov 27 17:11:54 yoavst, not that i am aware off :( you can open more shells with logcat in it, but it will not jump into the code location Nov 27 17:12:11 In other words, is there a guarantee that, if Y is defined after X, Y will appear on top of X? Nov 27 17:12:27 even with adm (ddms), it does not jump and even still the focus of logcat view of AS .. Nov 27 17:12:29 TacticalJoke: yes Nov 27 17:13:30 erff my english.. s/off/of/ s/still/steal/ Nov 27 17:13:43 In your XML layout, dependencies against other views in the layout can be declared in any order. For example, you can declare that "view1" be positioned below "view2" even if "view2" is the last view declared in the hierarchy. The example below demonstrates such a scenario. Nov 27 17:13:59 sorry, wrong coppy Nov 27 17:15:17 Okay. I guess this is the thing: "The tree is largely recorded and drawn in order, with parents drawn before (i.e., behind) their children, with siblings drawn in the order they appear in the tree." Nov 27 17:15:19 http://developer.android.com/reference/android/view/View.html#Drawing Nov 27 17:21:27 danijoo_: Sure, and last I checked there was no icon in the toolbar by default Nov 27 17:22:02 SimonVT: mh. maybe its a navigationdrawer only thing. I didnt do stuff without it for a while. interessting Nov 27 17:23:11 It's an appcompat only thing for it to be added for you Nov 27 17:33:54 Does anyone remember how to cycle the UI message queue? I know it's a bad idea in general; just wanna test something. Nov 27 17:34:49 Oh, I guess it's Looper.loop. Nov 27 17:37:22 Hmm, can't seem to get that working. Nov 27 17:38:15 I basically want the UI message queue to process all current messages and then return. Nov 27 17:43:47 oh my http://mobiledevandtest.com/testdroid/8615/android-5-0-lollipop-first-results-on-app-robustness Nov 27 17:45:26 is there a way to have optional permissions in my app? Nov 27 17:52:12 Syzygy_: nope. Thats a thing android is missing imho Nov 27 17:53:56 not even temporary permissions? Nov 27 17:57:00 anybody got idea why file.makedirs not working? Nov 27 17:57:09 I do it on sdcard, and I got r/w permission Nov 27 17:57:40 I wish we could choose which permissions to give an app. Nov 27 17:57:44 I think iOS users can do this. Nov 27 17:58:06 All those games that need to read my address book and text messages... yeah. Nov 27 17:59:01 TacticalJoke did you see that article about the uber app ? Nov 27 17:59:19 Nah. Nov 27 17:59:22 even if it didn't sent it anywhere, no reason why it needs 90% of that stuff Nov 27 18:00:05 I think I've got 10k downloads to my torch app because i wrote in the description that it doesn't sell your data :P Nov 27 18:01:13 It doesn't sell it: it gives it away for free! Nov 27 18:01:16 Just kidding. :D Nov 27 18:02:00 TacticalJoke: ;) Nov 27 18:02:07 That seems like a good number of downloads. Does it do anything special? Nov 27 18:02:30 when I've uploaded the app, It was a torch app only for Quick Circle case (LG devices) Nov 27 18:02:32 it (1) doesn't crash and (2) doesn't leav your provacy Nov 27 18:02:43 so thats like, better than 99% of the apps out there :D Nov 27 18:02:48 but I think most of the downloads are not from LG devices Nov 27 18:02:49 My bus app crashes if I press Back when it's downloading. Nov 27 18:02:51 So bad. Nov 27 18:03:03 It's like programming 101. Nov 27 18:03:13 And it's one of the most popular bus apps. Thousands of downloads. Nov 27 18:03:24 http://apps.sternberg.ws/assets/img/quickapps/2.png that is how the case look Nov 27 18:03:40 it is screenshot from my other app with contains the torch Nov 27 18:04:01 That's an open panel in front of the screen? Nov 27 18:04:11 yes Nov 27 18:04:14 special case Nov 27 18:04:19 Neat idea. Nov 27 18:04:24 and I was wrong, most of my downloads are from LG devices Nov 27 18:04:56 TacticalJoke: I'm the number one in downloads in the world for this case Nov 27 18:05:04 Nice. :) Nov 27 18:05:07 except maybe korean apps and booking.com that embbed it :P Nov 27 18:05:19 but I don't own a LG device anymore :D Nov 27 18:06:02 The ProgressBar documentation suggests using [style="@android:style/Widget.ProgressBar.Horizontal"]. Nov 27 18:06:04 This is just wrong. Nov 27 18:06:10 Should be [style="?android:attr/progressBarStyleHorizontal"]. Nov 27 18:06:13 To match the current theme. Nov 27 18:06:17 http://bad.solutions Nov 27 18:06:25 lol, see what is the redirect :P Nov 27 18:06:37 haha Nov 27 18:06:39 How is that? Nov 27 18:06:49 I guess they have a '.solutions' thing going on. Nov 27 18:06:55 just a simple redirect Nov 27 18:07:09 http://good.solutions/ goes somewhere else. Nov 27 18:07:46 I need to buy great.solutions Nov 27 18:08:14 So why does 'bad.solutions' go to Oracle's site while similar strings don't? Nov 27 18:08:53 TacticalJoke: .solutions is like .com Nov 27 18:09:25 Right. Nov 27 18:10:34 I guess somebody other than Oracle did that. Nov 27 18:13:04 Hello. How can I translate the Android system with the current translators? :) Nov 27 18:13:29 genymotion + lollipop <3 Nov 27 18:15:19 gordon_: they got tablets? Nov 27 18:19:47 no Nov 27 18:19:49 nexus 5 for now Nov 27 18:26:00 Time toString() is printing more information than YYYYMMDDTHHMMSS. It's also printing like time zone, etc. Nov 27 18:28:05 hmm Nov 27 18:28:19 that feeling when you search something on google and first entry is your blog... Nov 27 18:37:15 in AS, i often have 2 panels on the bottom showing: Android and Gradle Console. But when i'm editing i want to hide these. SO far seems I have to hide each separately. Is there any way to hide them both at the same time ? Nov 27 18:46:42 donniezazen: is this a question? :) Nov 27 18:55:14 Hmm. I'm using android:paddingLeft (on a ProgressBar), and Lint isn't warning me. Nov 27 18:55:27 Shouldn't it be suggesting that I also use android:paddingStart? Nov 27 18:56:46 Okay, it doesn't seem to warn if I use both paddingLeft and paddingRight. If I remove one, it warns. Nov 27 18:57:10 this is btw the most stupid lint warning ever.. Nov 27 18:57:36 And it doesn't warn *only* if paddingLeft and paddingRight are the same. Nov 27 18:57:49 danijoo_: I thought it helped for RTL stuff? Nov 27 18:59:27 yeah. but to have a new xml attribute for that... Nov 27 18:59:53 g00s, i find a way but works only if i minimize the android logcat view (will minimize logcat view & gradle): logcat android view is in pinned mode, docked mode, moved to bottom and show views as tabs is checked; the gradle view is in docked mode, split mode enabled, show view as tab and also moved to bottom Nov 27 19:00:10 To be honest, I'm pretty sure my app would fall apart if the user expected RTL. Nov 27 19:00:23 I think I tried once (although on Android 4.1). Everything fell apart. Nov 27 19:00:32 Including stuff outside of my control. Nov 27 19:00:39 can i change that on my phones settings? Nov 27 19:00:46 wanna try it :D Nov 27 19:00:47 Yeah, you can do it in the Language thing. Nov 27 19:00:52 adq thanks, let me try that Nov 27 19:00:59 g00s, not perfect though because gradle view disappears by itself if i click elsewhere Nov 27 19:01:02 I think you just have to pick an RTL language. Nov 27 19:01:11 so i'm not sure it's what you want, maybe it's not possible ^^ Nov 27 19:02:22 The thing is, almost any code using CharSequence.charAt will fall apart with RTL languages. Nov 27 19:02:33 That's basically any serious parsing. Nov 27 19:03:30 funny. my app seems to just ignore rtl setting. Nov 27 19:04:00 :D Nov 27 19:04:10 Which version of Android are you using? Nov 27 19:04:14 lollipop Nov 27 19:04:18 Oh, okay. Nov 27 19:04:21 And I cant say that i dont like it :) Nov 27 19:04:37 better ltr then broken stuff Nov 27 19:04:41 I tried on 4.1, but I think 4.1 doesn't properly support RTL languages anyway. Nov 27 19:04:55 g00s, naa sorry it's not really what you want ;( it just demonstrates the non-pinned mode (the view will disappear by itself if it loses focus) Nov 27 19:04:58 I don't see how we can support RTL stuff. Nov 27 19:05:28 How do you get the final character of a string if it might be RTL content? Nov 27 19:05:35 would be a hell lot of work to change every xml file in a way it can be rtl Nov 27 19:05:47 hello Nov 27 19:05:50 TacticalJoke, you take the last character as always. Nov 27 19:06:01 danijoo_, there's bunch of tools available for that now tho Nov 27 19:06:12 Mavrik: someString.charAt(someString.length() - 1) won't work, though, will it? Nov 27 19:06:18 it will. Nov 27 19:06:26 RTL is just a display thing Nov 27 19:06:34 Ooh, okay. Nov 27 19:06:38 That makes things easier. Nov 27 19:07:25 g00s, there is a trick with assigning the same keymap for both android view and gradle console view Nov 27 19:07:50 but you need to use 2 times the same keymap and it does not work for restoring (will only restore one window) Nov 27 19:09:41 maybe you can use F10 and F11, press both but again I see there is something wrong with the focus Nov 27 19:09:42 funny though i thought sometimes it actually worked the way i wanted (without doing anything) Nov 27 19:09:58 if not focused, it will first focus, and need a second press of the keymap to do what you need Nov 27 19:09:59 the intellij view modes are kinda weird Nov 27 19:10:25 there are issues with focus, i submitted a ticket because you lose the popup of javadoc Nov 27 19:10:30 if logcat is outputing Nov 27 19:10:53 but i realized after, it's any focus you lost, and its direct consequence Nov 27 19:11:03 I guess we should also, in theory, be using String.codePointAt instead of String.charAt. Nov 27 19:11:09 so in case of logcat popup doc, pfiouuuttt it disappears :p Nov 27 19:11:19 Text in some languages could comprise multiple chars. Nov 27 19:12:33 eh... robolectric and lollipop :( Nov 27 19:20:13 Do you folks worry about multi-char codepoints? Nov 27 19:22:33 I guess my ultimate question is this: should a Reddit client worry about multi-char codepoints? Nov 27 19:22:35 nope, shoud I? Nov 27 19:22:45 I have no idea. lol Nov 27 19:22:59 ok, simply robolectric doesnt work with material design Nov 27 19:23:09 wonder what's differen Nov 27 19:23:10 t Nov 27 19:23:19 in support lib Nov 27 19:23:21 If we do worry, we can't take String.length to be the length of a string. Nov 27 19:23:26 And we can't use String.charAt. Nov 27 19:23:30 Or any CharSequence.charAt. Nov 27 19:24:30 You have to use [someString.codePointCount(0, someString.length())] to count the code-points. Nov 27 19:26:51 I wonder how many Redditors view Reddit in a language other than English. Nov 27 19:27:57 TacticalJoke: I'd say if you dont publich your app with such a language as localization, nobody will use it anyways Nov 27 19:29:49 True. Nov 27 19:30:05 I guess I could worry about this later. Nov 27 19:35:24 There should be one world language, IMO. Nov 27 19:35:30 Perhaps a "designed" one. Nov 27 19:35:47 Maths :) Nov 27 19:36:45 otherwise I'm ok with the diversity of languages, I think it is even a good thing despite the barrier it raises Nov 27 19:38:35 I wonder what proportion of people whose primary language is not English also speak English fluently. Nov 27 19:38:37 I bet it's quite high. Nov 27 19:38:46 I guess I'm talking American English. Nov 27 19:41:55 hmm, what's open today Nov 27 19:42:09 TacticalJoke, quick link: http://en.wikipedia.org/wiki/List_of_countries_by_English-speaking_population Nov 27 19:43:27 United States <95% ^^ Nov 27 19:43:38 hello my friends , i need help please , i have a code which i dont wrote, his dev deside to ignore it , here is the code : http://pastebin.com/19GGhszr , but i note an error return when database start working (A SQLiteConnection object for database was leaked) i straggled with the code tring to find where is it the missing close? please may you advice Nov 27 19:43:59 Only 5.48% of Russia speaks English. Wow. Nov 27 19:44:53 why would it be any higher Nov 27 19:44:58 Do you folks make your apps available in other languages? If so, which ones? Nov 27 19:45:07 Because a lot of Russians seem to speak English. Nov 27 19:45:28 yep TacticalJoke, in french cause it's my mother tongue, but only "sometimes", not for all my apps in fact Nov 27 19:46:05 None of my apps have been translated, including those done professionally Nov 27 19:46:11 and now there are some nice collab tool for translations, but I often translate the description of my apps in more languages than the app itself is managing Nov 27 19:46:22 beshoo seems a bit of a mess. but you should only have one db connection open, for the whole app, forever. so make your SqliteDatabaseHelper a singleton, and just say SQLiteDatabase db = MyHelper.getInstance(context.getApplicationCOntect()) Nov 27 19:46:37 .getReadableDatabase() Nov 27 19:46:38 by the way, i'm going to try xiaomi store Nov 27 19:46:50 I guess I'll start with English and consider adding other languages later. I'll also write it in such a way that I can add languages. Nov 27 19:47:02 my account was validated, just need to upload some app (and localized them probably) Nov 27 19:47:31 I expect apps to handle non-ascii characters regardless of localization Nov 27 19:48:14 I recently started using OSX and found some that don't, for the first time in years Nov 27 19:48:20 Sure, non-ASCII. That's easy. Nov 27 19:48:57 internationalization, currency, localization, etc.. still not perfect in 2014 :) Nov 27 19:49:21 at least plane 0 Nov 27 19:49:38 but it say there is a missing close? Nov 27 19:49:54 fucking fuck, its taking me all day to get textAppearance attribute working right on all platforms with appcompat Nov 27 19:50:07 huhu history of the 0 across the age is interesting, it appeared, disappeared, was using without being known, disappeared again, reappeared elsewhere Nov 27 19:50:21 espistemology FTW o/ Nov 27 19:50:22 what attrs are valid where, introduced when, and look like what is *such a effing pita* Nov 27 19:50:27 epistemology* Nov 27 19:50:57 * adq is waiting for the digital dark age Nov 27 19:52:00 beshoo please stay in main channel Nov 27 19:52:51 ok , Nov 27 19:52:53 adq i think ... we are in the digital dark age :| Nov 27 19:53:15 internet is not enough hostile yet Nov 27 19:53:30 the poroblem with me i am tring to fix an apk , so the options is limited , i need to know where can i add the close ! Nov 27 19:53:33 concentration of power : check, widespread surveillance : check Nov 27 19:54:11 feudal security : check https://www.schneier.com/blog/archives/2012/12/feudal_sec.html Nov 27 19:54:44 now all we need is some hostile AI and drones added to the mix Nov 27 19:55:00 Google is scary. Nov 27 19:55:01 yeah i see what you mean, but that never changed, from the pharaon via empire to governments (though some government are clearly losing more power than google or others have now, like gov can stop a day or two, no one notice or is really affected at a short or long term, but on the contrary if google stops... lol) Nov 27 19:55:17 Google is also the closest thing to a god the universe has ever seen. Nov 27 19:55:52 TacticalJoke several companies collecting data, but yeah - it gives the powerful few the ability to forecast beyond what a normal person could Nov 27 19:56:00 and outperform everybody Nov 27 19:56:04 or fuck everybody Nov 27 19:56:22 problem is knowledge, it's not free and not for everyone and some ppl do not want you too much educated Nov 27 19:56:32 which i will not disclose :p Nov 27 19:56:57 the permission system in android helps a lot Nov 27 19:57:06 nice one! :) Nov 27 19:57:24 i dont think the problem is knowledge. i keep reading that political persuason is gentically wired; so people are predisposed to act in ways contrary to their bestinterests Nov 27 19:57:41 http://thenextweb.com/insider/2014/11/26/twitter-will-start-collecting-data-app-downloads-sell-better-ads/ etc. Nov 27 19:57:41 'the myth of the rational voter' , good book Nov 27 19:58:11 yeah, i'm being very simplistic, I don't know myself and it's a bigger topic than this chan could absorb (and should, android-dev!:p) Nov 27 19:58:36 ahah yeah fun twitter under investors pressure Nov 27 19:58:58 yeah, it gets into evolutionary psychology, etc - not being suitable for our times, sharing a commons, etc Nov 27 19:59:00 investors: "you've been a bad boy, punished!" Nov 27 19:59:13 you have been bad: stock prices up ! Nov 27 19:59:28 isn't that what happened to home depot ? Nov 27 20:00:13 idk, could be, i don't know home depot Nov 27 20:00:54 * pfn still ♥ 🍭 Nov 27 20:00:56 adq oh, presumably you live in a more sane part of the world Nov 27 20:01:23 ahh i've read something related to the theory emphased in the desc of this book g00s Nov 27 20:01:36 but .. too long to react :p Nov 27 20:01:49 I especially like the new SwiftKey material theme Nov 27 20:01:49 g00s, no france sux ;( Nov 27 20:02:09 I'm not very happy, I've already been expatriated few years (was nice) Nov 27 20:02:14 I kinda hate that the 🔣 are gone from the main layout Nov 27 20:02:16 and came back... nothing really changed Nov 27 20:02:16 adq you might like this article http://today.duke.edu/2014/11/solutionaversion Nov 27 20:02:56 romain came from france :) Nov 27 20:03:06 yup Nov 27 20:03:10 * pfn wonders when he'll get bored of the emoji completion in SwiftKey Nov 27 20:03:20 * g00s wonder too Nov 27 20:03:25 just kidding :) Nov 27 20:03:30 he disappeared from irc I can see, from here and another android dev chan (a french one) Nov 27 20:03:37 pfn go eat some turkey or something :D Nov 27 20:03:53 is there a turkey emoji ? Nov 27 20:04:08 🍗 Nov 27 20:04:12 tuek Nov 27 20:04:12 lol Nov 27 20:04:19 :) Nov 27 20:04:20 🍗 day Nov 27 20:04:24 you guys were supposed to give thanks last month, oh well better late than never Nov 27 20:04:34 Whom are we giving thanks to? Nov 27 20:04:44 me Nov 27 20:04:46 shmooz, here's my thanks to you : 💩 Nov 27 20:05:04 wut is that Nov 27 20:05:10 piece of pizza ? Nov 27 20:05:11 My font can't even display all theser. Nov 27 20:05:12 these* Nov 27 20:05:17 a steaming pile Nov 27 20:05:30 💩 emoji ftw Nov 27 20:05:31 i dont see the steam :) Nov 27 20:05:35 same, after fixing utf Nov 27 20:05:41 pfn: those emoji's show null signs in hexchat Nov 27 20:05:42 you need a font which is able to represent the symbol Nov 27 20:05:55 shmooz, your height setup sucks Nov 27 20:06:00 works fine in mine Nov 27 20:06:03 I'm using Fixedsys (or Fixedsys Excelsior, maybe). Nov 27 20:06:13 wow that's oldschool windows Nov 27 20:06:16 works fine on android, too Nov 27 20:06:16 Yeah. Nov 27 20:06:22 I use that for my diff viewer. Nov 27 20:06:24 As well. Nov 27 20:07:16 i said wow but I don't use comic sans ms Nov 27 20:07:25 * pfn throws more 💩 at shmooz Nov 27 20:07:32 hi, I'm trying to get rid of the spacing between edge of screen and my action bar tabs... I can't seem to find any information about it Nov 27 20:09:05 is that steaming poo pile emoji an official standard ? Nov 27 20:10:14 f00dWorksta, http://stackoverflow.com/a/26993545/1373568 ? Nov 27 20:10:26 shmooz, yes Nov 27 20:10:40 f00dWorksta, if it helps, I opened stackoverflow, written "[android] action bar tabs padding" in their search view, and sorted by newest Nov 27 20:11:11 There are adverts about Black Friday on English TV. Wut. Nov 27 20:12:01 adq: thanks, but that isn't what I want... I have tried all sorts of key word searches, but I can't seem to find a solution Nov 27 20:12:38 adq: I just want to remove the padding surrounding the whole tab widget (not the spacing between each tab) Nov 27 20:13:29 adq: so for example, in the link you posted, I want to eliminate the black bit between the blue tab and the edge of the screen Nov 27 20:15:23 try to identify from where comes the padding (or marging) by coloring each of your elements per example Nov 27 20:15:58 so you will have a better idea of what to "touch" in order to remove the space which annoys you Nov 27 20:16:15 idk if it is possible, but you could dump your entire view tree from the root Nov 27 20:16:26 and their property, but that's probably heavy Nov 27 20:18:17 adq: how do I get the view tree? Nov 27 20:18:22 sorry I'm pretty new Nov 27 20:19:24 maybe you should take a look at toolbar with appcompat too, because it's the new supplicant of actionbar Nov 27 20:20:10 f00dWorksta, search for "hiearchyviewer" and associated tutorial/doc Nov 27 20:20:11 adq: it's an existing project that I'm working on, so I doubt they will allow me to do as big a change as that Nov 27 20:20:27 ah indeed, so try to inspect your stuff with hiearchyviewer Nov 27 20:22:25 it could also be the drawable of your tab, their many possibilities in fact Nov 27 20:22:28 adq: I'm just exploring the default styles... Do you know if "Widget.ActionBar.TabBar" is relevant to what I am trying to do? Nov 27 20:22:36 no idea sorry Nov 27 20:23:11 adq: I already replaced the drawable, and it works fine as far as the tab is concerned, but there's this damn spacing between the tab and the edge :< Nov 27 20:27:46 ok so I got this spinner to work the way I want mostly but theres this really thick white line covering the top of the list and a little bottom of the selector, when I open the dropdown, how do I get rid of that, it makes the spinner look amateur Nov 27 20:28:59 the thick line shows up at the top of the list on 4.4 but on 2.3 it shows up at the bottom of the list Nov 27 20:29:49 I'm sure someone's come across this same problem before Nov 27 20:30:23 Does it relate to the ListView's divider? Nov 27 20:30:43 I don't remember having a divider Nov 27 20:32:29 but yeah it might be something like that, in it's default Nov 27 20:33:10 hey guys, I'm trying to follow Udacity's course on Android development and I have question, why doesn't the app icon show up in the action bar when I add it as an image asset? Nov 27 20:33:20 (The course instructor seems to have no problem there) Nov 27 20:35:47 narekb: because its not set as icon? :) Nov 27 20:36:36 danijoo_, but I specified the Launcher Icon type while adding the image Nov 27 20:36:58 narekb: afaik that only sets the image as launcher icon Nov 27 20:37:36 and doesn't ActionBar automatically use the launcher icon? Nov 27 20:37:42 no idea Nov 27 20:38:10 app icons in actionbar are deprecated anyways :p Nov 27 20:38:18 oh, what do they use now? Nov 27 20:38:20 custom logos? Nov 27 20:38:31 toolbar Nov 27 20:38:35 instead of actionbar Nov 27 20:38:37 narekb: http://www.google.com/design/spec/material-design/introduction.html Nov 27 20:38:50 oh, that Nov 27 20:40:49 ActivityRecognition APIs :/ Nov 27 20:40:55 why u no broadcast intent? Nov 27 20:41:10 What is this stupid googleApiClient thing all the time? Nov 27 20:44:59 dudes Nov 27 20:45:12 BigDecimal, say you wanna parceable a property of this type Nov 27 20:45:18 do you just use .ToString() Nov 27 20:45:24 or .toEngineeringString() Nov 27 20:45:30 docs are a bit shady Nov 27 20:54:39 stupid coworkers made my insomnia worse for last night by wondering how to implement the actionbar animation google play does Nov 27 20:55:05 http://eclipser.xmms2.org/device-2014-11-27-223447.mp4 tonight I can sleep Nov 27 20:55:48 i hate that animation Nov 27 20:55:57 I'm not a big fan Nov 27 20:56:20 but I don't mind it really, since I use really tiny devices Nov 27 20:56:21 another example of 'oooh, lets make all the things move randomly to show our chops" Nov 27 20:56:24 the extra real estate is nice Nov 27 20:57:18 Zharf one row :) Nov 27 20:57:31 sure, but it's like Nov 27 20:57:32 What are the possible causes for: java.lang.SecurityException: Not allowed to start activity Intent. The offending code is an intent that I'm starting with the flags Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP Nov 27 20:57:47 1/7 - 1/8th of my screen Nov 27 20:58:57 I don't like the new Gmail circular progress bar. Nov 27 20:59:04 I hate the lollipop app list popup animation way more than that actionbar trick Nov 27 20:59:05 So many people say they love it. It just looks bad to me. Nov 27 20:59:22 * Zharf doesn't use gmail so he wouldn't know Nov 27 21:00:57 TacticalJoke: it was 1dp which is inside the spinner_style which gets called from the main theme with @style/spinner_style Nov 27 21:01:47 Ah, okay. I guess you fixed it. :) Nov 27 21:02:17 yes but I haven't compiled yet lol Nov 27 21:03:11 and no that didn't even fix it argh Nov 27 21:03:56 at least not on gingerbread but oh hold on, it should be popup instead of dropdown because gingerbread ignores dropdown Nov 27 21:04:16 so I'll do both Nov 27 21:06:58 guys, i have a packet containing audio, how can i output it? Nov 27 21:07:16 i mean byte[] by packet Nov 27 21:10:22 If I subclass ListView, is it enough to implement the three constructors defined in API 1 (and ignore the constructor defined in API 21)? Nov 27 21:12:27 TacticalJoke: What constructor was added in api21? Nov 27 21:13:09 ListView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) Nov 27 21:13:19 The last parameter is new. Nov 27 21:16:08 Is there any chance that a future Android version would make my app crash by trying to use the >=21 constructor (if I subclass ListView)? Nov 27 21:16:30 The ListView subclass will be declared in an XML layout. Nov 27 21:17:54 What are the possible causes for: java.lang.SecurityException: Not allowed to start activity Intent. The offending code is an intent that I'm starting with the flags Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP Nov 27 21:19:12 hmmm Nov 27 21:19:15 some permission? Nov 27 21:19:40 are you on Jelly Bean? Nov 27 21:19:42 Of course, Android being Android, there is absolutely no documentation for this new ListView constructor. Nov 27 21:22:28 adq: I found a question in SO that matches mine!!! BUt the answer doesn't fix it: http://stackoverflow.com/questions/26569860/how-to-remove-action-bar-tabs-padding Nov 27 21:22:32 Hey I need to create an android app. I know javascript and am not enthusiastic about learning Java (I know its basic syntax but hate the enterprisey nature of it). Is it plausible to write a "wrapper" that simply displays a webview for a webapp i write in javascript? or is this going about it the wrong way? Nov 27 21:23:13 TacticalJoke: The documentation is in View Nov 27 21:23:26 Like all other view constructure Nov 27 21:23:30 tristanp, it's plausible, it's possible, people do it all the time, it always sucks as an en result :) Nov 27 21:23:35 tristanp, look into Apache Cordova Nov 27 21:23:48 Cordova, and it looks like 💩 Nov 27 21:23:49 Can someone assist me with this stackoverflow question? http://stackoverflow.com/questions/26569860/how-to-remove-action-bar-tabs-padding The question isn't mine, but I want to solve the same problem. The answer provided doesn't fix my case since the selected state of the tabs have a different colour background Nov 27 21:24:28 TacticalJoke, not 🆕 Nov 27 21:24:28 I'm not sure I'd call Java "enterprisy". Not even sure what that means when applied to a programming language. Nov 27 21:24:42 I can't see that character. ;| Nov 27 21:24:53 new Nov 27 21:25:13 mirc lol Nov 27 21:25:14 TacticalJoke: many, many layers of abstraction Nov 27 21:25:39 right. Nov 27 21:25:47 TacticalJoke, anyway implementing the ctor won't cause a crash Nov 27 21:25:59 TacticalJoke, delegating to it and calling super will Nov 27 21:26:00 I tried to go into a java Play web app recently and change a single link and the backtrace took me through like five different layers of views controllers and partials Nov 27 21:26:18 What if I don't implement that constructor at all? Nov 27 21:26:28 Is there any chance the framework will try to call it? Nov 27 21:26:43 is video memory and main memory shared on android? Nov 27 21:26:59 yes Nov 27 21:26:59 question related to testing my app with a server running on my computer. it's giving me an ipv6 address and i dont know how to access that via browser. Nov 27 21:27:16 i tried http://[ipv6address], but that isnt going to localhost Nov 27 21:27:26 maybe this isnt the right place to ask Nov 27 21:27:59 I guess a better question is this: under which circumstances does Android call that constructor (when inflating a layout)? Nov 27 21:28:32 TacticalJoke, it will only ever call implemented ctors Nov 27 21:28:45 TacticalJoke, it calls the most specific available Nov 27 21:29:14 Okay. Main reason I ask is that if I don't implement any constructors then (of course) I get a crash. Nov 27 21:29:25 So it got me thinking about this new constructor. Nov 27 21:29:56 TacticalJoke, you must always implement at least the one that takes context Nov 27 21:29:57 is it possible for a java class to have no constructor? Nov 27 21:30:12 Thorn, no Nov 27 21:30:57 Okay. Nov 27 21:31:09 Thorn: The compiler provides one if you don't. Nov 27 21:31:18 A nullary one. Nov 27 21:32:18 only if there is a no arg super ctor to call into Nov 27 21:32:58 Hmm. If i don't implement the second ListView constructor (Context, AttributeSet), it crashes, even if I implement the first and third. Nov 27 21:33:00 TacticalJoke, if you don't implement the attrs and defstyle ctor then you will not be able to pass attributes or style to your widget Nov 27 21:33:21 The defStyle one is 21+, though. Nov 27 21:33:24 it shouldn't as long as context is implemented Nov 27 21:33:31 TacticalJoke, it's not Nov 27 21:34:10 Oh, I'm thinking of 'defStyleRes'. Nov 27 21:34:35 it's crashing for a different reason Nov 27 21:34:46 not during inflating ctor search specifically Nov 27 21:35:14 If I implement only the first and third, I get this: java.lang.NoSuchMethodException: [class android.content.Context, interface android.util.AttributeSet] Nov 27 21:35:48 Which causes an InflateException. Nov 27 21:36:10 ok beginner question number 2: how long can i get by learning to program android without owning any android devices Nov 27 21:36:30 You can use the emulator, but it's slow and annoying. Nov 27 21:36:34 I almost always use devices, personally. Nov 27 21:37:38 TacticalJoke, that's odd, iirc, inflation only looked for context as the baseline ctor Nov 27 21:37:57 perhaps I'm mistaken then and at least the attr version must be implemented Nov 27 21:38:15 You're mistaken Nov 27 21:38:25 Only the Context, AttributeSet must be implemented Nov 27 21:38:52 Can I assume that this will never change in future? Nov 27 21:38:58 (Though I will implement three constructors.) Nov 27 21:39:27 Yes, you can Nov 27 21:39:36 tristanp: Maybe I'm clueless about what you're doing, but why even make an app if it's just gonna be a WebView? Nov 27 21:39:38 Assuming you never change targetSdkVersion. They might check that before using new behavior Nov 27 21:39:44 Okay. Nov 27 21:39:56 tristanp: I mean: why not just make a site? Nov 27 21:40:34 I'm using targetSdkVersion=21, but this works fine on the 21 emulator. Nov 27 21:42:29 yes Nov 27 21:42:39 TacticalJoke: take advantage of the phone to scan barcode, and launching as an app is more desireable than directing to a url Nov 27 21:43:28 you always want the attr ctor anyway, since you'll want to process attr from xml Nov 27 21:43:56 K. Nov 27 21:45:41 the 4th arg ctor is just to allow you to pass a theme directly instead of having to go through attr redirection that the old 3rd arg forced Nov 27 21:45:55 question, when I have actionbar tabs, if there are 3 or more tabs, the tab bar extends across the screen. But when there are only 2 tabs there is a gap between the tabs and the edge of the screen. If I have 1 tab (for testing only), there is no padding either.... Nov 27 21:46:12 the question is: how do I fix it for 2 tabs? :/ Nov 27 21:50:21 Hmm. Even if I defined "style=whatever" in XML, still the second constructor is the only one called. Nov 27 21:50:30 I'd expect the third one to be called. Nov 27 21:50:57 TacticalJoke: third one takes an attr, not a style as 3rd argument Nov 27 21:51:05 yeah it's not, my mistake Nov 27 21:52:21 dont mistake styleAttr for style (thats what i did in the past) Nov 27 21:52:54 style in xml is automatically resolved into attr Nov 27 21:53:20 I'm trying to figure out how to get the third constructor to be called, just out of interest. Nov 27 21:53:24 see my stackoverflow stupidity for that: http://stackoverflow.com/questions/27132413/set-style-programatically-does-not-work/27134309#27134309 Nov 27 21:53:38 there I wondered why third one is never working Nov 27 21:53:42 and got my response Nov 27 21:54:22 TacticalJoke, it's not called by the inflater Nov 27 21:54:31 very good explanation from the google employee there Nov 27 21:54:35 Oh, okay. Nov 27 21:54:48 TacticalJoke, usually you'll do it programmatically Nov 27 21:55:02 to ref styling info from code Nov 27 21:55:42 kinda stupid that you have to build an attr ref to a style first though Nov 27 21:55:57 danijoo_, that's what api 21 fixea Nov 27 21:56:00 one of those things in android you have to find out the hard way ^^ Nov 27 21:56:13 gets rid of the need for attr indirection Nov 27 21:57:10 pfn so i can just pass an R.style.whatever since api level 21? Nov 27 21:57:26 danijoo_, as the 4th arg, yes Nov 27 21:57:32 ah okay :) Nov 27 21:57:48 but only 21+ Nov 27 21:57:52 but since you have to use the old way for at least the next 4 years in order to support < 21.... ^^; Nov 27 21:58:17 kinda useless to provice both constructors unless you only dev for api 21 Nov 27 21:58:18 pretty much Nov 27 22:16:10 super.getView Nov 27 22:30:28 don't you hate when no matter what you write it has no effect !? Nov 27 22:31:59 and then you try breaking it to see if you are dreaming, it's like pinching oneself Nov 27 22:33:40 hi Nov 27 22:36:28 hey guys Nov 27 22:36:43 if I want to close my database when the whole app is destroyed Nov 27 22:37:02 do I put the db.close() in the onDestroy() of the main activity? Nov 27 22:37:28 is there a way to determine when the whole app is closed as opposed to just one of the activities? Nov 27 22:40:03 fancyfetus don't close the db Nov 27 22:40:30 don't? Nov 27 22:40:40 i thought you were supposed to. Nov 27 22:41:01 It seems hard to detect when we've scrolled to the very bottom of a ListView. Nov 27 22:45:43 hi, where does the sdk manager download HAXM? Nov 27 22:46:16 It puts the installer into extras\intel Nov 27 22:46:16 . Nov 27 22:49:00 g00s, so... don't close db?! Nov 27 22:49:14 why not? Nov 27 22:58:59 I'm trying to set up android environment on mac with Android Studio. But when I point it to where I downloaded the android SDK, it fails after the Gradle project sync Nov 27 22:59:18 what does a valid sdk look like? Nov 27 23:20:32 shit. having lots of users with note 3 / note 4 problems suddenly Nov 27 23:26:21 i'd like to reply to all the reviews saying things don't work "get yourself a working phone" Nov 27 23:41:28 any idea why this would cause a Nullpointer exception? http://dpaste.com/2M6KHEF Nov 27 23:42:18 well the file does not exist, but as far as I understand it, FileOutputStream will create it, right? Nov 27 23:44:40 <^cheeky> hiya 0/ Nov 27 23:45:01 day probably don't have permissions in the place you are trying to write Nov 27 23:45:17 <^cheeky> happy turkey day :) Nov 27 23:45:39 g00s: but im only defining the filename, i thought the standard path is automatically the private application folder :/ Nov 27 23:45:41 <^cheeky> g00s: get l00se :P Nov 27 23:47:15 log it and see ? Nov 27 23:48:00 g00s: boss just got a sony watch thingy.... looks like a fun toy, but i don't really see the point. on the up side, has a fantastic range with BLE Nov 27 23:53:17 ahhhhh :) Nov 27 23:54:13 i'm waiting for the lg g watch R (the round one) which I should receive tomorrow (already got the g watch (square)), the point I found is to dev for it Nov 27 23:54:27 fuck i might have to blacklist all note 3/4 until i can work out wtf is going on Nov 27 23:54:54 bankai_au yeah, i don't see the point either Nov 27 23:55:04 i did like the MS Band though Nov 27 23:55:58 i like a simple life, all these things require babysitting and just cause more problems Nov 27 23:56:48 I like solving problems, but this has nothing to do with having fun with a toy/gadget Nov 27 23:57:08 g00s: samsung ..... its really a shame that the most annoying devices to dev for are the most popular Nov 27 23:57:46 danijoo yeah, makes developing nontrivial apps for android quite expensive Nov 27 23:58:00 since you need to get quite a few models Nov 27 23:58:03 and seems like material makes it even worse Nov 27 23:58:09 like minimally, 10 devices Nov 27 23:58:23 ios dev is much less expensive Nov 27 23:58:43 true.. but smaller audience ;) Nov 27 23:58:52 (for bt, sensors, hw, camera, etc) Nov 27 23:59:21 at this point i'd rather have 1 user pay $10 than 10 paying $1/ea with fucking broken phones Nov 27 23:59:57 especially since an iOS user is really willing to pay while an android user wants the free app + adblocker Nov 28 00:00:01 part of this blame goes to google though, their CTS doesn't cover BLE well enough at ll Nov 28 00:02:38 anyone with a samsung note 3/4 : did you guys get an update this week ? Nov 28 00:03:38 g00s: you can use appthwack to test on that devices if you dont own them Nov 28 00:03:57 no, i need bt devices located with the phones Nov 28 00:04:08 oh. damn Nov 28 00:04:26 i need google to get their shit together :) Nov 28 00:07:04 A question of style: I have an IntentService which carries out a particular task. There is one method I want to call from outside of the IntentService. Normally I'd make such a method static. But here I now need to pass in a Context, which means the rest of the IntentService now also has to pass in a Context (where it didn't need to previously). Nov 28 00:07:36 All the follow-on consequences make the IntentService quite messy (having to pass Contexts around where they previously weren't needed, making half of the methods static etc). Nov 28 00:08:05 ejcweb keep it simple. use an event bus, otto, greenrobot, rxjava Nov 28 00:08:21 so simple, 😂 Nov 28 00:08:30 g00s: the file writing code is definitely correct. The only option left is that Context.MODE_PRIVATE does bullshit :/ Nov 28 00:09:10 ejcweb here is a simple rx event bus https://gist.github.com/benjchristensen/04eef9ca0851f3a5d7bf Nov 28 00:09:40 ignore the jave 8 stuff, but you get the idea :D Nov 28 00:09:49 g00s: What problem is the event bus specifically solving? Nov 28 00:09:55 http://dpaste.com/2VMBK46 Nov 28 00:10:03 you need to decouple the caller from the worker Nov 28 00:10:18 can't pass in a context to an intentservice Nov 28 00:10:37 this context thing is giving me nightmares Nov 28 00:10:42 g00s: For this particular issue, I feel like if I had an instance of the IntentService accessible in my Activity, this would be much easier. Nov 28 00:11:16 I download android sdk, run the manager and install the sdk (i think). where does it reside now, so i know where to point the ide to the sdk? Nov 28 00:12:11 Is there any other way to have an instance of an IntentService without starting it? Nov 28 00:12:22 ejcweb you can set static variables on it Nov 28 00:12:42 if you don't start it, how would you have am instance Nov 28 00:12:51 ... Nov 28 00:13:02 day, because you're doing it wrong Nov 28 00:13:19 and an intent service is a context... Nov 28 00:13:23 pfn: Naively, new MyIntentService(). I know that won't work, though. Nov 28 00:13:27 why would you want to pass one in Nov 28 00:13:42 ejcweb, what exactly are you trying to accomplish Nov 28 00:14:13 ejcweb, rethink your design Nov 28 00:14:31 ejcweb probably the easiest thing you can do, is to set a static Handler in the IntentService, and then post the result back to that. the handler would have to be set and unset from the activity Nov 28 00:15:23 pfn: My IntentService works just fine for what it does. There are several methods which help it accomplish its task. I want to call one of those methods from my Activity. Making the method static makes the IntentService messy (now need to pass a Context as an arg). I'm seeing if there's a cleaner way. Nov 28 00:15:23 so in handleIntent() or whatever, you would do some work and then sendMessage to that handler, which lives in your activity Nov 28 00:15:35 but make sure not to leak the activity :) Nov 28 00:15:40 also, its kinda weird Nov 28 00:16:34 pfn: im sure I am doing it wrong :( But how can i fix it? Nov 28 00:17:09 day, how about you determine what's null first Nov 28 00:17:30 pfn: you mean within the context class? Nov 28 00:18:09 you can't do anything with a context before oncreate Nov 28 00:19:06 pfn: i am creating the object in onCreate :/ Nov 28 00:19:22 you're doing what? Nov 28 00:19:27 creating what object Nov 28 00:20:07 pfn: http://dpaste.com/10T2TKV Nov 28 00:20:39 so... Nov 28 00:21:03 no idea wtf you're doing Nov 28 00:21:04 the databaseInteraction class extends to MainActivity. Therefore i THOUGHT i could just get the necessary context from there :/ Nov 28 00:21:12 wrong Nov 28 00:21:26 i figured that much by now Nov 28 00:21:30 you don't extend classes arbitrarily Nov 28 00:25:42 pfn: i read that as "remove the extends MainActivity" Nov 28 00:27:47 yes Nov 28 00:28:17 am I the only one having trouble understanding this context thing? Nov 28 00:28:51 yes Nov 28 00:29:10 strange Nov 28 00:30:27 you should learn java first Nov 28 00:43:38 pfn: is it ok to pass the context around via class a = new class(getBaseContext()); ? Nov 28 00:44:34 yes Nov 28 00:44:48 and what is get base context Nov 28 00:45:03 Learn java properly so you don't pass random crap Nov 28 00:45:05 the problem is that the context can change in some cases...so its better to use application context Nov 28 00:45:17 Carbonflux, that's not quite true either Nov 28 00:45:19 iirc Nov 28 00:45:27 ah Nov 28 00:46:23 normally what I do is refresh the variable in oncreate Nov 28 01:04:55 shouldn't be refreshing any variable Nov 28 01:40:46 is maven + eclipse + android a common thing these days? Nov 28 01:40:56 I seem to be hitting a lot of problems :( Nov 28 01:46:55 maven and eclipse is a recipe for pain Nov 28 01:47:11 use intellij if you insist on maven Nov 28 02:16:33 if i add a comment to a review, can i change it later? basically, i want to say "sorry, atm i don't support mode X but I'm working on it" Nov 28 02:17:03 when i finish that, I think i should edit the comment to say, something like, "didn't support at the time, but does now. please give it a try" etc etc Nov 28 02:17:46 that way people reading the reviews don't see out-of-date info Nov 28 02:28:11 Would it be weird, today, to have a Refresh button (rather than a pull-to-refresh mechanism)? Nov 28 02:28:15 ahhughes: intellij and gradle Nov 28 02:28:31 I don't think pull-to-refresh makes sense in my app (since new content can appear in the middle). Nov 28 02:28:41 so add refresh button Nov 28 02:28:50 or check docs for material design? ;) Nov 28 02:45:11 In the GregorianCalendar ref they seem to using following statement as if it is going to print a string but it returns an int " System.out.println("AM_PM: " + calendar.get(Calendar.AM_PM));" Nov 28 02:47:06 donniezazen: In Java, someString + someInt just calls "new StringBuilder(someString).append(someInt).toString()" under the hood. Nov 28 02:47:28 The + operator is overloaded for Strings, basically. Nov 28 02:47:46 Or for expressions involving one String operand. Nov 28 02:47:49 talk about overkill explanation Nov 28 02:47:55 + is strung cinc Nov 28 02:48:01 string concatenation Nov 28 02:48:02 TacticalJoke: That is true. I am talking about that users are going to see 0 for AM and 1 for PM. It seems they implied it is going to print simple AM/PM> Nov 28 02:48:10 pfn: But that's not accurate. Nov 28 02:48:21 who implied, the docs never say that Nov 28 02:48:44 TacticalJoke, it concatenated strings, and applies a widening operation if necessary Nov 28 02:49:01 pfn: I am just confirming. It sounded like it. I can be completely off. Nov 28 02:49:11 someString + someInt isn't concatenating strings. It's concatenating a string and an integer. Nov 28 02:49:52 I suppose if AM_PM is an int it is easy to get/set. Nov 28 02:50:10 TacticalJoke, it performs a widening operation Nov 28 02:51:10 TacticalJoke, if it were truly concatenating an integer, you would never see the expected value Nov 28 02:51:53 eg "foo" + 0 should result in "fooNUL" not "foo0" Nov 28 02:52:28 but since that's not the case, 0 has been widened into a string representation Nov 28 02:52:57 The JLS says 'conversion'. Nov 28 02:53:09 String conversion followed by String concatenation. Nov 28 02:53:30 sure, conversion, widening, same. thing Nov 28 02:54:01 how it happens is an implementation detail Nov 28 02:56:55 I don't see what your problem with my answer was, pfn. It was correct, precise, and concise. Nov 28 02:57:24 The alternative would be something such as "if the plus operator is used, if one operand is a String then the remaining operands are converted to Strings and everything is concatanated", right? Nov 28 02:57:48 it's overkill that just confused people Nov 28 02:57:52 concatenated* Nov 28 02:58:11 No, it was very simple. Nov 28 02:59:11 "in Java + does blah blah under the hood" Nov 28 02:59:33 + is string concatenation in Java, done and done Nov 28 02:59:42 But that's not even remotely accurate. **** ENDING LOGGING AT Fri Nov 28 02:59:58 2014