**** BEGIN LOGGING AT Mon Nov 03 03:00:00 2014 Nov 03 03:00:04 <3 i love you man Nov 03 03:00:10 lol it worked !! Nov 03 03:00:22 Thanks Nov 03 03:03:01 g00s: seen it now... if it's the storm I think it is, I know people who were in Guam at the time, got hit by it Nov 03 03:04:38 Fizz91 now that you have asynctasks working i can tell you how much i hate them Nov 03 03:04:53 anyone know why my google.android.gms.common.SignInButton won't call the onClick function when I press the button? Nov 03 03:12:46 lol I could tell many devs hate them Nov 03 03:13:19 I've seen some use Volley but it didn't have much docs on it Nov 03 03:13:51 how good are you with UI? Nov 03 03:13:56 layout and what not Nov 03 03:14:35 I'm trying to have a survey like questions pulled from DB Nov 03 03:14:35 atrocious Nov 03 03:14:42 and displayed on the screen Nov 03 03:15:13 l0l Nov 03 03:15:31 do you recommend any good places to learn about UI and layouts? Nov 03 03:16:22 hm just take it as you go Nov 03 03:16:36 you're not going to make something amazing on your first try, takes lots of experience Nov 03 03:16:50 if you need to do something, figure out how to do it Nov 03 03:17:14 yeah, I'm not honestly looking to create something beautiful lol plain and simple for the time being Nov 03 03:33:02 if anyone cares i just opened sourced my weekend project youtube: https://www.youtube.com/watch?v=ryMcBbNOe18 github: https://github.com/jacobtabak/Cakeday Nov 03 03:33:09 its a reddit app (trololol) Nov 03 03:37:19 Is that a ListView or a RecyclerView? I guess the latter, but you said "ListView", so I'm just checking. Nov 03 03:41:44 JacobTabak: looking good... great job Nov 03 03:42:05 thx ! was just goofing around a bit with appcompat Nov 03 03:42:11 figured maybe the src would be useful to someone Nov 03 03:42:31 definitely yes, atleast to me Nov 03 03:47:30 https://www.thetileapp.com/android Nov 03 03:47:31 ouch Nov 03 03:47:55 launching on the S5 only Nov 03 03:48:58 look good JacobTabak Nov 03 03:49:21 thx ! Nov 03 03:49:29 what is tile Nov 03 03:49:44 (i had to look it up too ;)) Nov 03 03:49:47 its a little BLE doohickie you stick to stuff Nov 03 03:49:58 so you don't lose things, etc Nov 03 03:50:01 oh i see Nov 03 03:50:08 hey g00s im starting BLE from scratch Nov 03 03:50:14 i'd get that Nov 03 03:50:17 should be much easier now Nov 03 03:50:25 since im not using my old BT class Nov 03 03:50:33 but as you can see, even the startups have to pick their android devices to support - ble is a pita Nov 03 03:50:45 nice jareddlc Nov 03 03:50:57 that's so dumb Nov 03 03:51:00 you'd think the nexus would be the first one Nov 03 03:51:09 well i suppose s5 is more popular Nov 03 03:51:15 by far Nov 03 03:51:30 maybe not the case for nexus 6 Nov 03 03:51:35 how do i make a ratingbar not allow half stars Nov 03 03:51:58 n6 is so expensive; i'm curious as to how well it will sell Nov 03 03:52:03 g00s: in your opinion do you think BLE is going to last for a while like Bluetooth has? Nov 03 03:52:12 or would it be replaced soon, next few years? Nov 03 03:52:37 jareddlc hmm . its doing well because its fate is tied to mobile, and all the mobile platforms have ble support Nov 03 03:52:49 stepsize i guess is the answer to my question Nov 03 03:52:56 for smart home, its maybe les clear - zigbee, etc Nov 03 03:53:23 yeah, Nov 03 03:54:09 jareddlc ble has more design wins at this point in its life than zigbee had .. by far Nov 03 03:54:43 ble 4.1 is nice because it adds connection oriented streams. i'm not sure if any platforms support it ho Nov 03 03:54:46 *though Nov 03 04:02:24 oh nice i havent heard of 4.1 Nov 03 04:11:48 Has anyone used game services? Nov 03 04:16:52 What do you guys think about the following? "public @Override void foo() { ... }" Nov 03 04:17:51 hey everybody!!! Nov 03 04:18:11 i'm back, bitches Nov 03 04:18:22 hey dr nick Nov 03 04:18:33 lol Nov 03 04:19:34 whats up my somali warrior? Nov 03 04:22:37 how does google maps display so many traffic polylines without slowing down the map ui? Nov 03 04:23:06 using lord of the rings style magic Nov 03 04:23:13 lol nick9998 Nov 03 04:23:21 where can i get that style Nov 03 04:23:46 their maps is like way smoother too than the one they give you to use in dev Nov 03 04:23:47 ShapaTank: https://www.youtube.com/watch?v=yd8jfzN5OkI Nov 03 04:39:20 TacticalJoke, ugly, annotations should always be the first modifier Nov 03 04:42:00 For conventional reasons or for some other reason? Just making sure. Nov 03 04:42:32 lol Nov 03 04:45:26 convention is one of the reasons Nov 03 04:45:29 TacticalJoke: Milk Chocolate or Chocolate Milk? In the end it's the same but everyone knows it should be Chocolate Milk. Nov 03 04:45:36 nick9998, that was great thanks lol Nov 03 04:45:45 the fact that you're mixing free form modifiers is another Nov 03 04:47:46 I guess I was inspired by C#. lol Nov 03 04:47:54 "public override void Foo() { }" Nov 03 04:48:20 Dayum, I wish Java had an 'override' keyword. Nov 03 04:48:41 "@Override" is so ugly. Our eyes just get used to it. Nov 03 04:50:19 ShapaTank: no problem lol Nov 03 05:02:28 bankai_au http://www.theregister.co.uk/2014/11/02/oz_gov_lets_slip_telco_metadata_might_be_available_to_civil_courts/ Nov 03 05:04:51 thats pretty messed up Nov 03 05:08:23 bah! Nov 03 05:08:51 not sure what they even mean by 'metadata', they haven't been able to define it the last few times they mentioned it Nov 03 05:10:48 What do you guys think about "@Override public void foo() { }" (i.e., the "Override" on the same line but *before* the rest)? Nov 03 05:11:43 I'm reading this at the same time: http://stackoverflow.com/questions/1464464/code-style-with-annotations Nov 03 05:12:24 TacticalJoke who cares what we think ? Nov 03 05:12:32 we're just nutcases on irc Nov 03 05:13:05 that goes for everyone, especially bankai_au Nov 03 05:14:00 TacticalJoke i have a sneaky suspecion your indecisiveness isn't limited to programming Nov 03 05:14:14 The Android style guide says "Simple marker annotations (e.g. @Override) can be listed on the same line with the language element". Nov 03 05:14:19 As does Google's thing. Nov 03 05:14:32 g00s: Yeah, I am like this all the time. Nov 03 05:14:45 android style guide says put m befofe class attributes Nov 03 05:14:49 Yeah, that's ugly. Nov 03 05:14:52 but fuck that, right ? Nov 03 05:15:27 "name" is read as "name"; "mName" is read as "em name". Just harms readability, IMO. Nov 03 05:16:15 I remember when people used prefixes even for parameter names. ;| Nov 03 05:16:26 Usually 'a', I think. Nov 03 05:16:27 aFoo Nov 03 05:16:44 And of course there was the awful Hungarian thing. Nov 03 05:19:58 TacticalJoke i think you are afraid somebody is going to look at your repo's history and find some incriminating evidence you aren't omnicient Nov 03 05:20:11 you can always refactor if you change your mind :) Nov 03 05:20:23 Yes, I do have that fear. Nov 03 05:20:23 lol Nov 03 05:20:56 When I look back on my (local) repository history, I cringe so bad. It's amazing how clueless I was when first coming to Android. Nov 03 05:21:09 Then again, I don't think Android programming is particularly easy, because the documentation isn't great. Nov 03 05:21:26 i think many devs want their repo history to tell a story proving we had this grand magnificent scheme and out of all the ways to do it, we happened to pick the best one out of brilliance Nov 03 05:22:31 I guess we can always edit our repositories to give that impression. lol Nov 03 05:22:36 Removing old changesets and stuff. Nov 03 05:34:21 * Fall cheers Nov 03 05:34:25 * Fall get it working. Nov 03 05:34:33 Ugh! Typo. Nov 03 05:35:10 * Fall got it working, even. Nov 03 05:35:13 * Fall cheers, a little. Nov 03 05:36:23 TacticalJoke: AOSP is so bad for documentation, blog posts and so on Nov 03 05:36:49 if u dont work for LG or high-tech corporation of taiwan Nov 03 05:37:14 google dont care about you Nov 03 06:02:32 (not to be a negative nancy or anything...) Nov 03 06:05:42 I agree. Nov 03 06:05:59 I wish Google would put more resources into tooling. Nov 03 06:06:10 Anyway, I'd better leave. Have fun. :) Nov 03 06:15:17 <[Saint]> Would this be an appropriate channel of which to ask about Android kernel development? Nov 03 06:17:16 [Saint] not really ... this is more app dev Nov 03 06:17:24 but you could try O.o Nov 03 06:17:32 * capella-s3 sighs... my stuff looks so bad before graphics designers spiff it up Nov 03 06:20:25 <[Saint]> Well...to sum it up, I'm looking for a human that is aware of how to set the minimum and maximum default scaling frequencies. Nov 03 06:21:04 [Saint]: there are no humans here Nov 03 06:21:33 <[Saint]> I got the frequency table sorted out, but I don't want the default frequency to be MAX_FREQ as not all the devices in this device class are capable of running at that clock. Nov 03 06:21:49 capella-s3 did somebody sprinkle material on your stuff ? Nov 03 06:22:26 <[Saint]> tl;dr: I want the default maximum frequency to be that of the stock kernel Nov 03 06:22:42 <[Saint]> (but still allow for the user to set it higher at their leisure) Nov 03 06:22:45 Oh, actually I'm not fond of the Material motif Nov 03 06:22:59 yeah me neither Nov 03 06:23:29 Just my personal ui design skills are merely rumors Nov 03 06:23:31 [Saint]: echo "" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq ? IDK Nov 03 06:24:03 <[Saint]> that would be the correct path to set it from userspace after the fact, yes. Nov 03 06:24:14 "pure minimalist" Nov 03 06:25:43 [Saint]: Not sure what you are really wanting to do but all kernels out there are open source. Maybe have a look at Franco Kernel? https://github.com/franciscofranco?tab=repositories Nov 03 06:26:13 <[Saint]> Gotta love that. Nov 03 06:26:29 <[Saint]> "I have no idea what you're doing...but, I'll answer anyway!" ;) Nov 03 06:26:45 <[Saint]> Its appreciated. Gotta find some humor in this mess... Nov 03 06:26:52 [Saint]: hard to tell what you want when you give a TL;DR :P Nov 03 06:27:25 <[Saint]> Well...if you'd read just a few lines up from that, its explained pretty bloody clearly. ;) Nov 03 06:28:59 If that was posted as a stackoverflow question you would be downvoted like crazy for not putting enough info. good luck though Nov 03 06:29:36 <[Saint]> On stackoverflow I'm not dealing with people in realtime, so that's necessary. Nov 03 06:30:02 <[Saint]> No point in me writing a bloody novel if its not clear to me the channel will have any clue what I'm talking about. Nov 03 06:30:18 <[Saint]> As its becoming apparent is the case here. Nov 03 06:30:22 <[Saint]> But, not to worry. Nov 03 06:40:57 * g00s writes Rx BLE wrappers Nov 03 06:42:40 I like pastels, but material is just too flat somehow Nov 03 06:46:45 capella-s3 i always thought you were a pastels kinda guy Nov 03 06:47:56 Lived in Miami five 5 years Nov 03 06:48:36 Wife's choice... Nov 03 06:50:50 I have an Activity startActivityForResult() another new Activity. I want to save the 2nd Activity to SQLite db before quitting back to the 1st Activity. How do I guarantee that the 2nd Activity finished the saving before the 1st Activity resume? Nov 03 06:52:47 carbon_monoxide you can do what Preferences does, block in onStop until its done Nov 03 06:55:44 How to block the SQLiteDatabase.update() ? Nov 03 07:31:33 isn't today a big day for nexus ? Nov 03 07:34:31 g00s: you mean the update rumor for the nexus 7? Nov 03 07:34:38 I have an ACTV, with it's completionThreshold set to 1. I've got a TextWatcher bound to this ACTV, when start is greater than 0, I wish to hide a ListView in the Activity. However it only hides it when start is greater than 1 Nov 03 07:35:43 appel1 no, i thought it was the official platform release Nov 03 07:36:04 Currently using onTextChanged method in the TextWatcher to set ListView.setVisibility(View.GONE); Nov 03 07:36:05 what we have now is kinda like a release candifate Nov 03 07:37:38 I don't think there's been any official promise, as such - but yeah, today is expected to be shipping/release day for the N9, full factory images, etc. Nov 03 07:38:44 actually i thought i read the date in some google lit Nov 03 07:38:59 fuu i don't remember where it was though :D Nov 03 07:39:45 because the world will totally turn upside down once this release happens :p Nov 03 07:40:01 i think we should growd-fund ravilov a new phone Nov 03 07:40:13 noooooo...! Nov 03 07:40:20 sure Nov 03 07:40:21 !!!111one Nov 03 07:40:21 i knew it Nov 03 07:40:43 * ravilov googles growd-funding Nov 03 07:40:49 yeah, crowd Nov 03 07:40:55 growl-funding Nov 03 07:41:12 if the One came out in the US i'd be among the many poor bastards to pick one up Nov 03 07:41:18 I thought it's something like crowd funding but disgruntled Nov 03 07:41:24 g00s: er, which One? :) Nov 03 07:41:42 ravilov: that's frown-funding Nov 03 07:41:43 isn't that the one that needs invitations or somesuch? Nov 03 07:42:00 Leeds, I thought that's the one where you only ever donate frowns :p Nov 03 07:42:06 :( Nov 03 07:42:14 there's one for you, you're welcome to it Nov 03 07:42:22 you're too kind Nov 03 07:43:35 also I had no idea One is not available in the US Nov 03 07:43:43 not that it makes any difference to me Nov 03 07:44:14 I think it's as available there as anywhere else - outside China, at least Nov 03 07:44:34 from what I hear, it's pretty easy to get hold of one from a reseller here Nov 03 07:44:50 I guess what g00s meant is, it needs to be available on AT&T or something Nov 03 07:44:59 no, off contract Nov 03 07:45:26 well order one then Nov 03 07:45:28 got like, whaver, $75 or its adjusted price Nov 03 07:45:55 it needs to work with tmo :) Nov 03 07:46:29 Ok - just changed my code to use afterTextChanged... and it works. Maybe onTextChanged is too early. Nov 03 07:46:31 but i'll probably grab a lumia 530 since its got BLE and my 521 doesn't, so i can start with that Nov 03 07:46:33 Thanks for your help ;) Nov 03 07:47:01 hmm... apparently in the first half of this year, there were 14 homicides in HK, and 206 robberies, of which 0 were "with Firearms", 4 were with stun guns, and 3 were "with Pistol Like Object" Nov 03 07:48:22 Leeds whats a pistol like object ? Nov 03 07:48:56 ? Nov 03 07:49:27 but presumably while not implementing FireArmInterface Nov 03 07:50:47 Fall sorry, as soon as i read ACTV i thought - wtf is he talking about :) Nov 03 07:50:57 Nov 03 07:52:01 Leeds, @Override void fire() { /* empty */ } Nov 03 07:53:23 it probably throws OperationUnsupportedException() Nov 03 07:54:27 ugh, lumia 530 got terrible reviews. they really screwed up i guess Nov 03 07:54:53 all they had to do was bump specs on the 521, dumbasses Nov 03 07:54:53 can it run android? Nov 03 07:55:07 no, thats why i like it Nov 03 07:55:16 :D Nov 03 07:55:28 pft Nov 03 07:55:52 welcome to the niche market then :p Nov 03 07:55:52 i can't use a platform for day-to-day use thats so user hostile with permissions and security Nov 03 07:56:10 although i'll write code for it :) Nov 03 07:56:17 you're weird Nov 03 07:56:24 i use my n7 for Kindle :D Nov 03 07:56:25 custom ROM solves all ;) Nov 03 07:56:42 pft, i don't want to mess with that crap. custom rom = more headaches Nov 03 07:56:54 not to mention, developing on a custom rom sucks Nov 03 07:57:02 custom ROM is the reason why I still have this phone and refuse to get another Nov 03 07:57:24 stock ROMs = crap Nov 03 07:57:29 well from an environmental perspective, its great to hold onto the thing as long as it works Nov 03 07:57:41 true, but that's not why I'm holding on Nov 03 07:57:49 you're weird Nov 03 07:57:57 let's put it this way - when my old phone died, I got another one that was just like it Nov 03 07:58:11 i have a rotary phone you may like :) Nov 03 07:58:26 can it run a custom ROM? Nov 03 07:58:55 no but its Bakelite Nov 03 07:59:17 Ravioli knows his shit Nov 03 07:59:24 then I guess it can easily extend NonFireArmInterface Nov 03 08:00:18 ravioli :D Nov 03 08:06:05 ravilov donut would probably run better on your HW Nov 03 08:06:20 :) Nov 03 08:06:33 nah Nov 03 08:06:42 although I have phones that run that too Nov 03 08:06:56 or at least they should, I'm working on getting them back to it Nov 03 08:07:04 (eclair currently) Nov 03 08:08:20 I mean how else am I going to test my apps that are all minApi=4, right? :p Nov 03 08:57:41 How to get the uri for an image that is placed in an imageview Nov 03 09:02:58 no way to do that Nov 03 09:03:48 niru i guess you could set the uri as the imageview tag Nov 03 09:35:00 Hey, Im working on an app that is installed independently (not from play), the app needs to be able to update itself by downloading the latest APK from the server, is it possible for an app to do that kind of installation? Nov 03 09:35:54 aviran: sure, but the user has to approve each update. Nov 03 09:36:12 that's fine, thanks Nov 03 09:36:51 aviran: and configure their device to allow installs from unknown sources. Nov 03 09:37:40 aviran: http://developer.android.com/distribute/tools/open-distribution.html Nov 03 09:37:45 yeah, but there's no issue with an app with a specific package name to initiate an install of an newer app with the same package name? Nov 03 09:37:56 as an update Nov 03 09:38:13 aviran: if they're signed with the same key there's no problem Nov 03 09:38:20 ok, great Nov 03 09:38:21 l Nov 03 09:38:30 thanks appel1 Nov 03 09:38:42 aviran: drop box, google drive, source forge, your own website Nov 03 09:39:33 i was worried about needing to create an independent update service Nov 03 09:39:53 a second app to update the original app Nov 03 09:40:22 that's simple Nov 03 09:40:38 my apps have an autoupdater Nov 03 09:40:52 1) check if there is a new version available (e.g. parse some url) Nov 03 09:40:57 2) download the app Nov 03 09:41:03 all i do is open the url to the .apk file, the user is then asked to approve it and it updates Nov 03 09:41:15 3) install the app via intend (the user has to click 2 buttons) **** BEGIN LOGGING AT Mon Nov 03 10:08:03 2014 Nov 03 10:14:55 This is strange.. Im using DROP TABLE IF EXISTS in my query, and it still complains about a table not existing when dropping Nov 03 10:15:03 bluesm I think that simply search for the android.R.id.text1 identification Nov 03 10:15:14 hello Nov 03 10:15:17 ERROR AndroidRuntime Caused by: android.database.sqlite.SQLiteException: no such table: lastmodified (code 1): , while compiling: DROP TABLE lastmodified; Nov 03 10:15:48 i need to use two ways communication between the android client and the server. should I be using websockets.. or is there a better option ? Nov 03 10:21:08 kozko: It's not Nov 03 10:21:20 kozko: It waits for textview or subclass Nov 03 10:26:54 kozko: This also works (creating list of button) https://gist.github.com/anonymous/b6118153f9a4ad1c6f76 Nov 03 10:30:53 nvm Nov 03 10:31:27 Another problem, I'm getting getDatabase called recursively while I'm only using getWriteableDatabase() once. Suggestions? http://pastie.org/9692981 Nov 03 10:33:54 nvm Nov 03 10:33:59 Netbeans is acting out Nov 03 10:49:25 Is this a great way for a singleton SQLiteDatabase? http://pastie.org/9693012 Nov 03 11:19:47 hello guys, i want to automatically build my application apk on every commit ( nightly build ), what cloud service do you suggest to me ? Nov 03 11:21:48 bluem: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/1.6_r2/android/widget/ArrayAdapter.java#ArrayAdapter.0mFieldId Nov 03 11:22:30 when using this constructor (without specifing the id of the textview) it assumes the layout is just a text view Nov 03 11:27:22 Is this a great way for a singleton SQLiteDatabase? http://pastie.org/9693012 It gives me nullpointerexceptions tough Nov 03 11:32:35 clear Nov 03 11:32:42 sorry Nov 03 11:37:44 aand back to Toolbar and actionbar and still won't get my declared styles Nov 03 11:38:49 i wonder why google want us to use toolbar only, looks more like a pain than a flexible solution for our supposed problems Nov 03 11:42:46 this code prevents scrolling in ListView - http://pastie.org/9693082 - I'm trying to understand how this works? Nov 03 11:43:11 how does return true prevent scrolling. It just means that the event will not bubble up (forwrded to parent views) - right ? Nov 03 11:44:15 It catches the touch events and tells the system it's handled pretty much Nov 03 11:44:17 True if the listener has consumed the event, false otherwise. Nov 03 11:45:43 shmoon_, as soon as you return true, you're consuming the event and all following events for that gesture Nov 03 11:53:44 hmm, where is the code that handles the scrolling of listview, must be inside the listview class right ? so because i retunrn true, the event is not passed on to that ufnction that does the scrolling? Nov 03 11:57:08 Scroller.java Nov 03 11:57:16 e.g. https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/android/widget/Scroller.java Nov 03 11:57:45 a nice example of deceleration inside Nov 03 11:58:07 shmoon_, note that scrolling is done via onInterceptTouchEvent, onTouchEvent and computeScroll methods Nov 03 11:58:19 shmoon_, I suggest you learn what they do before you go further :) Nov 03 12:01:03 Mavrik: cool , thanks I'll do that! Nov 03 12:24:43 hi, I try to debug my app with ddms, but each time after I simulate voice call to emulator it disconnects from adb Nov 03 12:24:56 so I can't debug interactively, and I have to reboot it each time I re-deploy my app Nov 03 12:25:06 how to stop this behaviour? Nov 03 12:52:47 Hi all, how to pick a number from call log? Nov 03 13:12:47 mh, why is the android emulator black via RDP? (i remember it worked before the newest SDK updates) Nov 03 13:21:34 hey so I am trying to add tabs to a Fragment (not an activity) is that possible? Nov 03 13:24:56 hi Nov 03 13:25:26 i can add marker, but the map is not appears, anybody can help me? Nov 03 13:40:42 t0th_-_: using the correct api key? Nov 03 13:45:41 yes Nov 03 13:47:21 Lonesoldier728 you might want to check a viewpager for that. in fact check slidingtabs example from android Nov 03 13:47:25 working, but when i swipe my mapView top to bottom and bottom to top, my layout is scroll, not the map Nov 03 13:47:28 anybody can help me? Nov 03 13:47:30 thats neet solution for you Nov 03 13:48:13 t0th_-_: you need to intercept scroll events and disable them Nov 03 13:48:40 if i swiping in map Nov 03 13:52:44 btw what is the best way of going about setting up a messaging app like whatsapp, anyone have good tutorials to point to Nov 03 13:55:36 anybody? Nov 03 13:57:39 Lonesoldier728:am trying to build an app with similar features. haven't found resources with all the related details. you just have to search for concepts and integrate/build features yourself I think. they're sort of dispersed. Nov 03 13:57:43 i have a problem setting selectable TextView, i have found that if i set as selectable a textview into a ListView inside a RelativeLayout, text selection doesn't works. Nov 03 13:57:44 https://dpaste.de/axVZ Nov 03 13:58:02 if i remove line 23/24 it works well, why ? Nov 03 14:02:27 hello, is there a way to get current brightness value while device is in auto brightness mode? Nov 03 14:02:30 android.provider.Settings.System.getInt with Settings.System.SCREEN_BRIGHTNESS returns the ineffective manually set brightness level, and not the real level set by device Nov 03 14:04:58 Hey does anyone know a tutorial for something like a range seekbar? Nov 03 14:13:39 Hi, does anyone know why this singleton could return null? http://pastie.org/9693302 Nov 03 14:13:59 ya shmoon_ it looks that way Nov 03 14:14:18 Nindustries, race condition? Nov 03 14:14:54 race condition? hm Nov 03 14:15:32 I'm not manually creating or accessing multiple threads Nov 03 14:15:45 And it occurs every damn time Nov 03 14:18:58 knock, knock. Race Condition. Who is there? Nov 03 14:19:12 lol Nov 03 14:19:40 that is the best knock knock joke i know :P Nov 03 14:20:36 lol Nov 03 14:25:28 Nindustries, well do try to synchronize such code Nov 03 14:25:37 Nindustries, and read "Java concurrency in practice" ASAP, it's critical for Android Nov 03 14:26:03 Is it possible to inflate a View in a separate thread, and then attach it to the main/ui thread? I'm assuming no. Nov 03 14:26:32 using asynctask you should be able to do it Nov 03 14:26:48 does anybody have worked on Chips sample Nov 03 14:27:18 I checkout the source code from AOSP Nov 03 14:27:37 Somehow I manage to compile the source code of Chips sample Nov 03 14:27:46 but code is too much complicated Nov 03 14:28:25 snowpong, in theory yes, in practice it can bite you in the ass Nov 03 14:28:53 snowpong, don't use it unless you're inflating only your known views, there's at least one known instance where EditText was broken when inflated from background thread on SGS devices Nov 03 14:30:16 grr.. Why are you getting an array out of bounds error... Nov 03 14:30:52 Mavrik: problem is I'm inflating a 3rd party map view, and it hangs the ui thread for a bit (it hangs the fragment transaction animation) - but I don't have access to the code, so I can't be certain what it does. I guess I'm better off listening to the animation end, and inflating it then Nov 03 14:32:42 snowpong, well if you're sure that map view is thread safe... Nov 03 14:32:51 but if the map view starts Handlers then it won't work properly Nov 03 14:32:58 (that is, starts handlers in view constructors) Nov 03 14:33:15 Mavrik: thanks for the info, I'll query the developers of it Nov 03 14:41:59 hi, i have 2 fragments and on my onCreateView i have: rootView = inflater.inflate(R.layout.detail_map, container, false); but when i add a second fragment i have this error: android.view.InflateException: Binary XML file line #110: Error inflating class fragment, on line 110 xml i have fragment SupportMapFragment, anybody can help me? Nov 03 14:51:36 I've started with in a large-ish java project. I'm finding it difficult to keep mentally track of what threads there are Nov 03 14:51:56 Do you guys have suggestions or hints or keeping track of which functions are called from which threads etc? Nov 03 14:54:57 johnflux_: this is something you have to be dilligent about Nov 03 14:55:04 johnflux_: Multithreaded execution is more involved than singlethreaded execution, no surprise there. Otherwise, IntelliJ or Android Studio provide a very convenient debugger to inspect the threads. You can also name your threads and get the names of the current thread in the called methods, for e.g. logging. Nov 03 14:55:08 Android 5.0 releases is today, isnt it? Nov 03 14:55:14 (for the nexus devices) Nov 03 14:55:20 People said so yesterday... Nov 03 14:56:05 flan3002: ah. I'm using android studio. How can I use it to look at threads? Nov 03 14:56:43 johnflux_: Cant you just set a breakpoint in youtr thread? Nov 03 15:12:13 AS gives some warning to this line `compile 'com.android.support:support-v4:20.0.0’`. It says there is a newer version… should I use a newer version all the time? Nov 03 15:13:26 kamol: most often, yes Nov 03 15:13:58 google play services is an exception. because a new version there stands for an increase in bugs ^^' Nov 03 15:14:15 hahaha Nov 03 15:14:31 even if it is Android 5.0 (API 21)? Nov 03 15:14:56 if you are developing for andorid 5 you definitly should update all support libraries to 21. Nov 03 15:17:57 in my case it is mostly upto API 20 Nov 03 15:18:25 should I still update com.android.support:support-v4:20.0.0 to com.android.support:support-v4:21.0.0 ? Nov 03 15:19:52 you dont have to just because AS is telling you Nov 03 15:20:15 you should read the update notes and make a decision on that Nov 03 15:26:42 thank you danijoo_ ! Nov 03 15:27:12 np Nov 03 15:30:48 can we have a ripple effect on pre lollipo devices? Nov 03 15:31:26 hi, i have 2 fragments and on my onCreateView i have: rootView = inflater.inflate(R.layout.detail_map, container, false); but when i add a second fragment i have this error: android.view.InflateException: Binary XML file line #110: Error inflating class fragment, on line 110 xml i have fragment SupportMapFragment, anybody can help me? Nov 03 15:34:02 show the fragment code Nov 03 15:36:28 where is my android 5.0 for my nexus7??? Nov 03 15:36:34 google do me!!! Nov 03 15:36:59 monsti: i feel with you. Nov 03 15:37:05 seems to be not released yet Nov 03 15:38:28 well the might need some nexus 6/9 feedback before the create a 5.0.1 ;) Nov 03 15:38:43 hi all Nov 03 15:39:26 I was thinking og getting a nexus 5 or 6:) Nov 03 15:39:49 * monsti got a $200 china phone Nov 03 15:40:02 wow Nov 03 15:40:04 and in april 2015 i get a $200 china phone with 5.0 ;) Nov 03 15:40:28 so why spend $650 ;) Nov 03 15:40:32 :D Nov 03 15:40:36 I just can't make my mind up. Nov 03 15:40:47 lol Nov 03 15:40:55 iphone! Nov 03 15:41:05 yes! that rocks Nov 03 15:41:14 that cost to much. Nov 03 15:41:19 we need a iOS emulator Nov 03 15:41:41 for android and windows phone Nov 03 15:42:12 i was just wondering whether android development started after the release of first iphone or before that Nov 03 15:42:17 Anyone got a nexus 6 yet or have nexus 5? Nov 03 15:42:25 basically was steve jobs the frst guy to think of smart phones Nov 03 15:42:29 i have nexus 4 Nov 03 15:42:59 phone that not unlocked cost to much. Nov 03 15:43:12 shmoon_: long before Nov 03 15:43:20 I have to use my samsung s3 to i get a new one. Nov 03 15:43:25 i bought a nex 5 when 1h after they revealed nexus 6 will be too big to fit into pockets smaller than backpacks Nov 03 15:43:32 shmoon_: and smartphones existed for a decade or more before iPhone 2G Nov 03 15:43:59 p_l: hm Nov 03 15:44:06 danijoo, My question is it fast the nexus 5 for programming? Nov 03 15:44:19 so it wasnt steve jobs who did innovations, multiple organizations were working on similar things Nov 03 15:44:30 perlsyntax: not as fast as my emulator but fast enough :) Nov 03 15:44:44 shmoon_: the term 'smartphone' was apparently coined in 1997 Nov 03 15:44:56 yeah Nov 03 15:45:02 danijoo,That sound good.Do you got android 5.0 on it:) Nov 03 15:45:15 shmoon_: and the first phone that resembled one was released in 1994 Nov 03 15:45:20 perlsyntax: no but I got andorid 5.0 on my nexus 4 and it was pretty nice Nov 03 15:45:30 for my nexus 5 i wait for the official release Nov 03 15:45:44 why is the new listview and cardview "better" in android 5.0? Nov 03 15:45:47 p_l: i see Nov 03 15:45:51 i didn't get it Nov 03 15:46:03 is it performance or just googles idea on the API? Nov 03 15:46:16 I seem to recall something about simplified APIs? Nov 03 15:46:28 danijoo,I hope they don't take the nexus 5 offf of google play. Nov 03 15:46:30 p_l: cardview is no simpler ypi Nov 03 15:46:33 api Nov 03 15:46:39 monsti: recycler view is great because it has a built-in viewhilder Nov 03 15:46:42 viewholder* Nov 03 15:46:59 danijoo_: so the adapters gets simpler? Nov 03 15:47:17 that's the "magic"? Nov 03 15:47:21 danijoo,Sorry for ll the questions:) Nov 03 15:47:41 monsti: it removes a bit of boilerplate Nov 03 15:47:41 hi, i have 2 fragments and on my onCreateView i have: rootView = inflater.inflate(R.layout.detail_map, container, false); but when i add a second fragment i have this error: android.view.InflateException: Binary XML file line #110: Error inflating class fragment, on line 110 xml i have fragment SupportMapFragment, anybody can help me? Nov 03 15:47:55 danijoo_: Were you here yesterday helping me? Nov 03 15:48:04 danijoo_: i use android binding - so i got rid of zillions of custom adapters years ago ;) Nov 03 15:48:07 Nirvash: maybe. im often here ;) Nov 03 15:48:37 Haha, I'm the guy working on his first app Nov 03 15:48:45 those guys are often here, too :D Nov 03 15:49:09 >_< It's funny, but even with tutorials and books this is a difficult topic to grasp Nov 03 15:49:22 dont use books for android Nov 03 15:49:26 they are all outdated Nov 03 15:49:38 i reading pro android 3:D Nov 03 15:49:50 thats what I mean ^^ Nov 03 15:49:50 that true. Nov 03 15:50:24 I have the XML framework (i.e. layout), but that's about it Nov 03 15:51:44 So, Step 2 is using Java, correct? Nov 03 15:52:48 Nirvash: correct Nov 03 15:52:51 Sorry for sounding nearly retarded, but I just have to break things down Nov 03 15:53:00 ^^ Nov 03 15:53:02 np Nov 03 15:53:04 My options are "get this working, or pay $500 out of pocket to make it work" 0_0 Nov 03 15:53:16 ill do it for 450. Nov 03 15:53:20 :) Nov 03 15:53:22 Hahaha, I love you guys Nov 03 15:54:14 i hope the stable version of androi studio would come out. Nov 03 15:54:38 lol what's wrong with eclise? Nov 03 15:54:44 eclipse damn ;) Nov 03 15:54:47 maybe Google IO 2016 ^^ Nov 03 15:54:59 So I have dragged a "number text field" where I want it, and named it number_Account. In MainActivity.java, I now have to define that text field using the name I gave it from designer, correct? Nov 03 15:55:09 monsti: It's not made by Jetbrains :P Nov 03 15:55:13 monsti: oh now. you are about to start another AS vs eclipse.. Nov 03 15:55:14 i was thinking of the samething.:) Nov 03 15:55:16 in 2016 we have 16 core cpus, 24" displays, 2tb ram Nov 03 15:56:05 of course a 40248140x93381371 display Nov 03 15:56:16 Nirvash: in xml you should give your textfield an id with this: android:id="@+id/myId" Nov 03 15:56:23 the cam has 250mpixels Nov 03 15:56:51 then you can find it in java code with: EditText et = (EditText) findViewById(R.id.myId) Nov 03 15:57:33 Okay, so to break that command down "et" is the variable name? "R.id.myId" = "R.id.number_Account"? Nov 03 15:57:48 yep. Nov 03 15:58:08 Okay, that's around where I was; let me define all these fields now >_< thanks Nov 03 16:03:02 danijoo_: Now that I have defined all of my text fields, do I have to do something akin to get.input(et) in order to set a variable to equal the actual input? Nov 03 16:03:34 Nirvash: you want to get a number out of an edit text, correct ? Nov 03 16:03:51 yes sir Nov 03 16:04:36 once you have a variable representing your edittext, you can call editText.getText().toString() on it to get its input as a string Nov 03 16:04:56 if you want to store it as an integer in an int variable the command would be Nov 03 16:05:09 int myNumber = Integer.parseInt(et.getText().toString()); Nov 03 16:05:50 .getActivity().getResources().getParent().getText().toString() Nov 03 16:06:01 lol Nov 03 16:06:08 .get.get.get.gettt Nov 03 16:06:37 why does a ViewPager calls setPrimaryItem more than once when you are just making use of the same page? seems like a CPU waste. Nov 03 16:08:12 maybe viewpager doesnt need touch events Nov 03 16:08:20 ? Nov 03 16:08:29 it wouldnt be a viewpager then Nov 03 16:08:41 Hi guys. I have two (or more) ImageViews in RelativeLayout, one on top of another, the first one is overlaying a part of the second one. I also have a drawable resource (a PNG image with a transparent background) which I need to place above the first ImageView (like between the 1st and the 2nd) so the visible part is also overlaying 1st image but a part of it is hidden under the second. My problem is that I want this middle Nov 03 16:08:41 drawable thing to be also "transparent" for touch events, like if I tap on the 1st ImageView in the area where that middle image is placed it should be clicked-through and the first's ImaveView onClick should be fired. How can I implement my middle image to be "transparent" for touchs? Nov 03 16:08:52 danijoo_: Now, I have my edittext input stored as integers (since it is all numeric input). Now, I can interact with these variables like so: int combined = ";"+et+"..." to concatenate text and numeric variables? Nov 03 16:09:30 AlexBerdnikov that question is too hard to read, make a pastebin or something with screenshot/diagram Nov 03 16:09:38 AlexBerdnikov: ... uh, is there any way you could illustrate that? Nov 03 16:09:44 JacobTabak: Haha, great minds think alike Nov 03 16:09:47 Yes, 1 moment Nov 03 16:10:20 plz dont compare our minds i could never measure up to you Nirvash Nov 03 16:10:22 JacobTabak you usually use the viewpager with items that you actually want the ontouch actions, not the pager itself. im using a listview and found that it calls its members a lot even if its not necessary Nov 03 16:10:31 dont use a viewpager then Nov 03 16:10:42 use a viewswitcher Nov 03 16:10:53 JacobTabak: I'm the village idiot, I know... but one day I will be helpful :') Nov 03 16:11:07 hey guys. i'm getting error java.lang.ClassNotFoundException when opening my app. my manifest package matches, and baksmaling reveals the classes are in the correct directories. any suggestions? Nov 03 16:11:21 what class? Nov 03 16:11:26 there are lots of reasons for that :P Nov 03 16:11:27 oh let me try that Nov 03 16:11:35 jacobtabak: MainActivity. Nov 03 16:11:44 Nirvash: i know that feel :P Nov 03 16:11:57 JacobTabak: E/AndroidRuntime( 4650): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{app.apkcreator/app.apkcreator.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "app.apkcreator.MainActivity" on path: DexPathList[[zip file "/data/app/app.apkcreator-1.apk"],nativeLibraryDirectories=[/data/app-lib/app.apkcreator-1, /system/lib]] Nov 03 16:12:13 are you sure your mainactivity is in the right package? Nov 03 16:12:32 ie, it has to match up in the manifest and the class Nov 03 16:12:34 JacobTabak: yes. Nov 03 16:12:58 are u using androidannotations? Nov 03 16:13:05 nm Nov 03 16:13:08 in src/main/java/app/apkcreator/MainActivity.java. Nov 03 16:13:11 and no Nov 03 16:13:30 i mean, the location of the file doesnt matter as much as the package declaration at the top of the class Nov 03 16:13:55 headed with "package app.apkcreator" Nov 03 16:13:58 k Nov 03 16:14:20 thinking... Nov 03 16:14:35 in the relevant decompiled file: Nov 03 16:14:35 .class public Lapp/apkcreator/MainActivity; Nov 03 16:14:35 .super Lcom/actionbarsherlock/app/SherlockActivity; Nov 03 16:14:35 .source "MainActivity.java" Nov 03 16:14:43 dont paste more than 2 lines pls Nov 03 16:14:47 my bad Nov 03 16:14:47 1 actually :P Nov 03 16:15:02 this is gradle? anything nonstandard there? Nov 03 16:15:05 is this a large project or something new? Nov 03 16:18:46 gradle. i expand permissions and the app name in mergeResources and processManifest respectively by patching the files in buildDir/intermediates/res/release/**/values.xml and buildDir/intermediates/manifests/full/release/AndroidManifest.xml. i use applicationVariants.all { variant.mergeResources.doLast {} }. Nov 03 16:18:54 danijoo_: Very stupid question, but as I'm creating a variable that is concatenated text and variables, would I use \n to indicate a newline and include it within ""? Nov 03 16:19:09 there's a constant you should use Nov 03 16:19:25 you should really learn java.. :/ Nov 03 16:19:31 java 7 http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#lineSeparator%28%29 Nov 03 16:19:42 JacobTabak, Nirvash ok guys, it's a terrible illustration I made in paint but I think it's quite clear :) http://i.imgur.com/qyLHVPk.png Nov 03 16:19:43 I know =/ I'm sorry, I'm actually almost done with this project is the sad thing Nov 03 16:20:57 JacobTabak: my manifest here http://pastebin.com/kTL1MkeE Nov 03 16:21:06 the manifest from decompiling. Nov 03 16:21:14 jbsio why do you manually expand permissions and app names? rather than doing it with gradle Nov 03 16:21:14 So when I tap "on tap area" (on illustration) the 1st ImageView shoul be clicked. "Middle" image should be just a drawing above the 1st and beyond the 2nd Nov 03 16:21:35 But not interacting with user at all Nov 03 16:21:42 That's what I want to achieve Nov 03 16:21:43 jbsio you should probably refer to your activity as ".MainActivity" Nov 03 16:21:43 JacobTabak: because they're generated from a different tool, so just using build flavors doesn't work nicely. Nov 03 16:21:46 so you can change the app id Nov 03 16:22:00 i doubt that will fix your problem Nov 03 16:22:29 AlexBerdnikov and pastebin the question pls Nov 03 16:22:40 JacobTabak: that was the case but i typed it out just in case that was the case, and changed the generated app name to the same as the non-expanded one to be sure. Nov 03 16:22:57 have you covered the basics like cleaning,uninstalling the app, trying on a different device/emulator? Nov 03 16:23:07 (im sure you have) Nov 03 16:23:08 yeah. Nov 03 16:23:52 yeah its strange if you can see the files in the apk Nov 03 16:24:01 exactly my thoughts. Nov 03 16:24:05 this is a debug build, no proguard etc? Nov 03 16:24:23 release build, with proguard explicitly disabled. Nov 03 16:24:28 it works for debgu? Nov 03 16:24:40 did you mention that before? Nov 03 16:25:05 if it works for debug and not release then it should be pretty easy to narrow down yes? Nov 03 16:26:14 didn't test with debug. one moment. there's some logic in the buildTypes.release block that sets BuildConfig values i wasn't going to duplicate. Nov 03 16:26:53 JacobTabak http://pastebin.com/SgHNXEJZ Nov 03 16:27:54 "A ViewSwitcher can only have two child views" ouh Nov 03 16:28:17 i think ill just add an ugly boolean flag for my issue Nov 03 16:29:17 cliffreich__ wat Nov 03 16:29:17 If I am doing a messenger in my app, what is the best way to store messages Nov 03 16:29:32 use a ViewAnimator then Nov 03 16:29:39 danijoo_: is it possible to have an app call a number without saving it as a contact? Nov 03 16:29:42 what could be a reason for android unit testing running all AndroidTestCases but ignoring all classes extending ActivityUnitTestCase? Nov 03 16:30:07 Nirvash: yes Nov 03 16:30:21 AlexBerdnikov so by default views are transparent to touch events Nov 03 16:30:32 if they don't consume it, it's passed on to items below it Nov 03 16:30:45 JacobTabak, i need to trigger an action when a viewpager item is visible to the user... but found that setprimaryitem and other members are usually called under onTouch events Nov 03 16:31:15 AlexBerdnikov you could pretty easily implement a touch listener that checks the color of the drawable at the given xy coordinate, and if its transparent, don't consume the touch event Nov 03 16:32:15 JacobTabak: doesn't happen on debug, apparently. yet they both have runProguard false and the exact same signing config. recommendations? Nov 03 16:32:29 cliffreich__ if you're using framgents in yoru viewpager you should just use setUserVisibleHint() to determine when one becomes visible Nov 03 16:32:39 jbsio lemme see your build.gradle? Nov 03 16:33:19 JacobTaback thank you man. I'm prety new to android so I believe I missed the part about click-transparency when read about click\tap events handling Nov 03 16:33:25 JacobTabak: can i pm you? Nov 03 16:34:04 sure Nov 03 16:42:12 danijoo_: I figured it out... I think >_< Now, I just need to get my button to initiate my Intent Nov 03 16:42:22 good luck Nov 03 16:42:54 0_0 Is this something obscenely difficult? Nov 03 16:44:10 so i am trying to understand what happens when i retur true in Activity.dispatchTouchEvent Nov 03 16:46:35 Is there an easy way to parse gettext in android? (mo / po files) Nov 03 16:46:54 shmoon_: http://goo.gl/UKg4sV Nov 03 16:48:45 I'm using SMSManager to send text messages. They however don't show up in Google Hangouts when I send them. However, the other phone is getting the messages. Nov 03 16:49:14 yiati: yup excelllent thread read that. but i wonder the difference between returning true and false there. it says returning true means it consumed but then it does get passed to the view ontouchlistener events or ontouchevetn Nov 03 16:49:32 i mean in the Activity version Nov 03 16:51:42 well they do show up in Hangouts; after some delay Nov 03 16:52:06 is nexus 5 a decent dev platform Nov 03 16:52:54 shmoon_: Right, it is consumed by the dispatchTouchEvent which itself calls onTouchListener and onTouchEvent as sub tasks Nov 03 16:54:37 Sculptor, yes Nov 03 16:56:01 shmoon_: http://goo.gl/nPR8eJ Nov 03 16:56:19 ya but i dont see a difference between the consequences of return true/false Nov 03 16:56:24 I have created a button, and I would like that button to launch a callIntent... Nov 03 16:56:28 so not sure what consume would mean/do in this case Nov 03 16:58:18 shmoon_: if you dont consume it, the parent view will receive a call on that too Nov 03 16:58:47 if you have a button in a linear layout and an onclicklistener in both of them, and you dont consume it on button level, the listener of the layout will be called Nov 03 16:58:55 if you consume it, the layout-listener wont be called Nov 03 17:00:32 Created button, in xml added :onclick="start", in java added public void start(){CALLINTENT} Nov 03 17:00:42 Is this correct? Obviously callintent is a substitution for the code Nov 03 17:00:54 Nirvash: did you run it? Nov 03 17:01:04 danijoo_: yup, in this case i am only talking about Activity.dispatchTouchEvent Nov 03 17:01:17 I haven't yet, I was just making sure I wasn't missing something Nov 03 17:01:17 shmoon_: oh ok Nov 03 17:01:22 Nirvash: run it Nov 03 17:01:34 and you see if it is correct. if not, come back Nov 03 17:01:36 Y-y-yes sir 0_0 Nov 03 17:01:37 lol Nov 03 17:02:54 Whoa, tons of errors Nov 03 17:03:42 ^^ Nov 03 17:03:51 error: cannot find symbol class EditText Nov 03 17:06:53 so getDatabase() is always giving me null.. suggestions? http://pastie.org/9693633 Nov 03 17:08:03 Nindustries: onCreate is only called once when SQLiteOpenHelper initialized the database Nov 03 17:08:18 really once, not once you open the app Nov 03 17:08:25 one time to create the database Nov 03 17:09:28 danijoo_, hmm Nov 03 17:09:38 Where should be the ideal position to create the writabledatabase then? Nov 03 17:09:44 singleton gave problems too Nov 03 17:09:44 Hello, I'm trying to embed a switch into the toolbar using the compat library. This is my main layout: http://pastie.org/private/97ze4wsu5maask8lzpidnq this is my menu: http://pastie.org/private/furosjsai2skbxjqrsofig this is my layout for the switch: http://pastie.org/private/mxvdwteoczrvvbo0kyz0sq and this is my main class: http://pastie.org/private/4tloawkcm8c0nuynhkxnnq The issue I'm having is that the Switch doesn't show up: instead of it ther Nov 03 17:09:44 e is the alternative text provided in the xml. What am I doing wrong? Nov 03 17:10:15 danijoo_: So apparently I'm retarded... EditText has to be "public void EditText" doesn't it? Nov 03 17:10:18 Nindustries: i think when you do getReadableDatabase or getWritableDatabase onCreate gets called and DB gets created Nov 03 17:10:28 Nirvash: nope Nov 03 17:10:38 shmoon_: correct Nov 03 17:10:46 Hmm, why would I be getting an error saying that I cannot find class EditText? Nov 03 17:10:51 unless it has an empty body like this one, then nothing is created ^^ Nov 03 17:10:57 :D Nov 03 17:11:13 Nirvash: because you didnt import it correctly or i dunno Nov 03 17:11:28 you are missing basic understandings of OOP and java. its really hard to assist you. Nov 03 17:11:35 Hmmm, let me see how to import it.. I honestly thought it was an integrated function Nov 03 17:11:47 import statement, android studio does it automatically :D Nov 03 17:11:55 eclipse has auto import shortcut or option from top menu bar Nov 03 17:11:56 shmoon_: At an activity level you can still use it to disable touch events being processed, or route them to some touchevent processor of your own Nov 03 17:12:24 yiati: yup, smart! makes sense :) Nov 03 17:12:26 thanks Nov 03 17:13:12 finaly i understood the input events (touch) mechanism of android, i think this was really important Nov 03 17:14:28 Whoooo, down to 8 errors! Nov 03 17:15:45 anyone have advice on how to show a lot of polylines without making the ui lag? Nov 03 17:15:50 map ui Nov 03 17:17:01 eclipse also has the quick-fix feature which is also meant to help when you're stuck... Nov 03 17:17:12 danijoo_: The good thing is that my only errors are now in Intent ^_^ Nov 03 17:17:32 Nirvash, pretty much *nothing* is integrated, most definitely nothing UI-related is available without importing Nov 03 17:17:41 also, fyi, functions do not exist in java/android Nov 03 17:18:03 Sorry guys, when Android Studio was explained to me, it was "place-n-go!"so I'm having to adjust haha Nov 03 17:18:21 hmm Nov 03 17:18:25 I used a singleton now Nov 03 17:18:30 googling usually helps Nov 03 17:18:35 and now I get a "getDatabase called recursively" Nov 03 17:18:56 Nindustries, okay... Nov 03 17:19:11 how does google place so many traffic polylines without lagging its ui? Nov 03 17:19:16 my modifications: http://pastie.org/9693660 Nov 03 17:19:16 Nindustries: read the docs and examples. you need a correct omplementation of onCreate and onUpdate Nov 03 17:20:19 Is str not a recognized variable type? Nov 03 17:20:40 huh? Nov 03 17:21:55 ravilov: Nirvash refuses to learn java before android ... ^^' Nov 03 17:22:14 apparently, sigh Nov 03 17:22:15 If I want a variable named TEST to contain "this is a test", is it not "str TEST = 'this is a test'" Nov 03 17:22:20 What languages am I confusing? Nov 03 17:22:30 Nirvash: you are confusing everythinh Nov 03 17:22:39 Well that may be true too Nov 03 17:22:47 Nirvash, String test ="This is a test"; Nov 03 17:22:54 Nirvash, this is a pretty dumb question and also highly inappropriate for this channel, this is what all the countless guides and tutorials are made for Nov 03 17:22:54 That's python, I'm sorry guys Nov 03 17:22:55 and more important you refuse to learn. Nov 03 17:23:15 please go read them before asking any further questions, you're just making yourself look dumb Nov 03 17:23:21 I'm learning a ton actually Nov 03 17:23:35 can I handle android.R.id.home from within a fragment? Nov 03 17:23:37 ravilov: eh, I may look dumb, but learning nonetheless! Nov 03 17:23:45 you should be learning by going through tutorials and not by asking questions in here Nov 03 17:24:04 Nirvash, it might not be important to you, but it's annoying people and after a while nobody will want to help you anymore Nov 03 17:24:37 I realize it can be annoying, but I am appreciative of the help, and try to contribute where I can Nov 03 17:24:50 Regardless, I think this may actually run now >_< Nov 03 17:24:53 mattblang: I think if you setHasOptionsMenu(true), every click will be handed to the fragment. Menu clicks as well as R.id.home Nov 03 17:24:54 just saying, you're using your credits too rapidly Nov 03 17:25:30 danijoo_ really? i wish i knew that yesterday Nov 03 17:25:36 well, i think I did Nov 03 17:25:36 danijoo then if I return true it shouldn't go to my activity's onOptionClicked right? Nov 03 17:25:39 i just forgot Nov 03 17:25:57 mattblang: I think it gets passed to both every time Nov 03 17:26:03 danijoo_ what if you have 2 fragments attached, how is the order determined for handling 'home as up'? Nov 03 17:26:36 this is an interesting thought Nov 03 17:26:48 JacobTabak: I woulnt rely on an order for onOptionsItemSelected Nov 03 17:26:59 unless its clearly defined somewhere Nov 03 17:27:05 like order of attaching Nov 03 17:27:22 every fragment that hasOptionsMenu(true) will get a call on every click on the action bar Nov 03 17:27:34 and they can decide whether to return true or false for handling that Nov 03 17:27:36 JacobTabak, danijoo_ I'm trying to load in some different fragments in my Detail Activity, and I want to let the user use 'home as up' to go back to the originally loaded fragment Nov 03 17:27:43 Anybody could help me with my toolbar issue? Nov 03 17:27:51 turlando i didnt see your question Nov 03 17:27:55 mattblang: you can add fragments to backstack Nov 03 17:28:02 I'm pasting it again Nov 03 17:28:07 Hello, I'm trying to embed a switch into the toolbar using the compat library. This is my main layout: http://pastie.org/private/97ze4wsu5maask8lzpidnq this is my menu: http://pastie.org/private/furosjsai2skbxjqrsofig this is my layout for the switch: http://pastie.org/private/mxvdwteoczrvvbo0kyz0sq and this is my main class: http://pastie.org/private/4tloawkcm8c0nuynhkxnnq The issue I'm having is that the Switch doesn't show up: instead of it ther Nov 03 17:28:07 e is the alternative text provided in the xml. What am I doing wrong? Nov 03 17:28:09 back press will then replace the fragments Nov 03 17:28:16 hes asking about home as up though Nov 03 17:28:20 JacobTabak, danijoo_ right, but if the user hits home I don't want them to be taken back to the parent of the entire Detail Activity Nov 03 17:28:29 mattblang attach a backstack changed listener to your main activity Nov 03 17:28:37 mattblang: thats why you add fragments to backstack ;) Nov 03 17:28:37 if backstack > 0, enable home as up, and set the action to popbackstack() Nov 03 17:28:46 ^ this Nov 03 17:30:07 JacobTabak, danijoo_ but since I have configured home as up for the activity, even if I add the fragment to the backstack, then activity is going to go back to its parent right? Nov 03 17:30:10 so who got a nexus 9? Nov 03 17:30:16 ordered one mikedg Nov 03 17:30:43 JacobTabak, danijoo_ if the home click event will in fact happen in both the fragment and the Activity. Nov 03 17:31:07 mattblang no you have to override that behavior Nov 03 17:31:14 override onSupportNavigateUp() or whatever Nov 03 17:32:01 should also override onBackPressed then Nov 03 17:32:30 JacobTabak what do you think? Nov 03 17:33:12 sec turlando Nov 03 17:33:19 Sure, sorry Nov 03 17:33:23 still sitting here, waiting for my lollipop update... zzzZzz Nov 03 17:33:57 danijoo_: I thought lollipop was tomorrow? 0_o Nov 03 17:34:06 3.11 it is Nov 03 17:34:24 ^_^ Sweet! Nov 03 17:34:38 turlando did you try app:actionLayout ? Nov 03 17:35:05 danijoo_, maybe I'm old, but that totally reminds me of win 3.11 :p Nov 03 17:35:14 Jeez, this AVD is taking 400 years to load Nov 03 17:35:20 ravilov: then you are :D Nov 03 17:36:12 also turlando don't put your switch in linearlayout, that serves no purpose Nov 03 17:36:40 windows 3.11: the spiritual parent to windows 8 Nov 03 17:38:00 turlando but yes, that's your issue - you need app: namespace not android Nov 03 17:38:13 JacobTabak, should I use a relative layout? Or no one at all? Nov 03 17:38:32 turlando: For your app, use a relative layout or no? Nov 03 17:38:40 turlando just the switch Nov 03 17:38:47 the toolbar is a viewgroup Nov 03 17:38:53 you don't need to put your switch in another nested viewgroup Nov 03 17:39:08 lewellyn, I don't know where you're getting that from ( http://i.imgur.com/KEgQN2s.jpg ) Nov 03 17:39:26 JacobTabak, got it, thank you. Nov 03 17:39:41 i tested this btw turlando Nov 03 17:39:49 it works w/ app: , doesnt work with android: so you should be set Nov 03 17:39:59 ravilov: that's being unfair. windows 1.0 didn't have any real sort of program launcher. Nov 03 17:40:12 Anyone else have their emulator take forever? Nov 03 17:40:18 Nirvash genymotion Nov 03 17:40:26 (google it, download it Nov 03 17:40:27 ) Nov 03 17:40:31 windows 8 is a lot like windows 3.1 with a full-screen program manager set to Minimize On Use Nov 03 17:40:48 Program Manager, to be more specific. Nov 03 17:40:56 JacobTabak, yes, I never used the compat libraries, using the native apis android: just works Nov 03 17:41:07 indeed Nov 03 17:41:15 JacobTabak, without using a layout how can I set the position of the switch? Nov 03 17:41:25 what do you mean? Nov 03 17:41:44 the toolbar decides the position of its menu items based on a set of rules Nov 03 17:41:48 lewellyn, I believe the image is only about visuals, not internals Nov 03 17:41:58 you can set margin/padding on your switch Nov 03 17:42:32 ravilov: yes. and visually, the comparisons are unequal. the bottom picture is solely of a concept which was nonexistent until windows 3.0 Nov 03 17:42:48 nitpick Nov 03 17:42:59 turlando support/appcompat doesnt 'just work' but there are lots of other benefits, like backporting new features :D Nov 03 17:43:57 ravilov: if i was nitpicking, i'd point out that i don't run my apps fullscreen in windows 8. Nov 03 17:44:01 ;) Nov 03 17:44:40 that would only be extra nitpicking, on top of the one you're already doing :p Nov 03 17:44:50 danijoo_: Unfortunately, TestApp has stopped. T_T So close! Nov 03 17:44:54 JacobTabak, yeah! I see Nov 03 17:45:03 Thank you a lot Nov 03 17:45:23 Nirvash: sorry I cant help you with this Nov 03 17:45:25 * ravilov still wonders why Nirvash feels the need to share this with the channel instead of simply looking at the stack trace Nov 03 17:45:37 because what you really need is either learn or get someone to write this app for you Nov 03 17:48:15 Jeez, I was just making conversation guys Nov 03 17:48:23 I have an android project on my mac desktop. I have android studio. Do I click import project or OPEN project? Nov 03 17:48:37 Open Nov 03 17:48:42 import Nov 03 17:48:44 :D Nov 03 17:48:58 Nirvash, not like I didn't tell you right away it's just a matter of time before people start getting annoyed Nov 03 17:49:07 I know ;) Nov 03 17:49:17 don't complain then Nov 03 17:49:17 we get a lot of trolls in here Nov 03 17:49:26 you're not unique, don't worry Nov 03 17:49:29 gman23, click NEW PROJECT and start from scratch :p Nov 03 17:49:40 Huh? Nov 03 17:49:48 You probably mean eghdk Nov 03 17:50:13 er Nov 03 17:50:13 yes Nov 03 17:50:47 Wait what? Nov 03 17:50:49 Really? Nov 03 17:51:22 I just put my project on git, and now I'm on my partners computer. The files are downloaded on his desktop... but how do I start working with the exisiting project? Nov 03 17:51:31 eghdk: Is the project using gradle? Nov 03 17:52:15 gman23: Yeah. (Or at least it should be). When I put it onto git the project has gradle files and all Nov 03 17:52:34 Then do File>Open Nov 03 17:52:39 and select the build.gradle file Nov 03 17:53:27 JacobTabak, danijoo_ sweet, thanks for your help. this is what I did http://pastebin.com/T4MTxgzn Nov 03 17:53:49 dont you want to return true? Nov 03 17:53:55 after fragmentmanager.popbackstack Nov 03 17:54:12 also please use braces { } on your if statements Nov 03 17:54:17 it said true if "Up navigation completed successfully and this Activity was finished" Nov 03 17:54:44 gman23: I'm at the Androird Studio welcome screen. Nov 03 17:54:51 mattblang i have a feeling you want to return true Nov 03 17:54:53 JacobTabak Up navigation complete, but this Activity wasn't finished Nov 03 17:54:59 JacobTabak yeah, I was wondering about that Nov 03 17:55:00 eghdk: Open Nov 03 17:55:06 the gradle file Nov 03 17:55:07 JacobTabak also, is the single line if with no braces a pet peave, haha>? Nov 03 17:55:16 not a pet peeve, just bad style Nov 03 17:55:28 if you're working on a team they wont allow stuff like that Nov 03 17:55:44 Open on the gradle file in the root directory? or the gradle file in my app directory? Nov 03 17:55:47 JacobTabak got ya, sounds good to me (I like consistency) Nov 03 17:55:48 gman23: Nov 03 17:56:00 In android there are a lot of classes that have abstract methods (for example onSensorChanged(SensorEvent e) ) which are implemented by the app developer, but is called (and passed the event) by the system. How can I find out where the function is called? Nov 03 17:56:02 JacobTabak as far as whether to return true or false, I am really curious now Nov 03 17:56:14 eghdk: You know what? I don't know. Nov 03 17:56:54 What if you just tried opening the build.gradle file that is in the top-level of the project directory? Nov 03 17:57:01 mattblang return true if you consume the event Nov 03 17:57:03 Just open it up there and see what happens. Nov 03 17:57:10 i would return true unless you notice unwanted behavior Nov 03 17:57:21 JacobTabak agreed Nov 03 17:57:49 good evening folks Nov 03 17:58:26 I have a TextView with ‘android:id="@+id/detail_content_web_view"’ but I cannot resolve it via R.layout.detailContentWebView after I builded it. Does anybody know why? Thanks! Nov 03 17:58:50 gman23: Okay I chose the one in the root. and now it has a pop up "Import porject from Gradle" Do you know what options to choose? Nov 03 17:58:56 tobbo, what? layouts and ids are not the same thing... Nov 03 17:59:08 eghdk: just hit next Nov 03 17:59:23 not? hm. I thought I can ‘bind’ it via the ID to my R.layout.id Nov 03 17:59:23 tobbo, also, you can't just use capitals and underscore as you please Nov 03 17:59:36 gman23: No next... but "Ok" is there. Nov 03 17:59:50 Then press ok Nov 03 18:00:08 ravilov sorry I dont get it. I used this at other tutorial places. Why did this work. *hm* Nov 03 18:00:59 then I guess you're not understanding what's going on there. I suggest you read up on android resources and how to work with them Nov 03 18:02:33 ahhh Nov 03 18:02:34 damn Nov 03 18:02:42 ravilov: yes ofcourse R.id and not R.layout. Nov 03 18:02:44 m( Nov 03 18:02:47 gman23: Damn... There seems to be an issue. Nov 03 18:04:46 VnM, quit herding noobs in here, enough is enough! Nov 03 18:04:51 (too bad he isn't actually here) Nov 03 18:05:19 eghdk: I really don't know then Nov 03 18:05:19 gman23: "Cannot get module property null version" Nov 03 18:05:39 Okay, well why don't you google that and see why it's saying that Nov 03 18:06:00 I'm going back to work Nov 03 18:15:17 shitshithsit Nov 03 18:15:25 i merged brances and now everything conflicts :( Nov 03 18:16:26 at least you're not bored Nov 03 18:20:14 Is there way to refresh device so ADV can automatic display a device Nov 03 18:20:51 without put out USB cable ? Nov 03 18:22:31 Hi guys, im building an app that will require long lists of elements, so i want to do some pull to refresh, and some lazy loading. Do I need to use a library, or is android capable of doing this ? FYI, my app is tablet only, so the minimum sdk is android 4. Nov 03 18:26:18 has there been some update since yesterday? Nov 03 18:27:36 I thought this was all nearly done, but debugging has like 500+ errors Nov 03 18:27:38 Wtf? Nov 03 18:27:49 I released a new version on 30.sept, but since yesterday i got a new crash that never happened before... it accounts for almost half of the crashes of my app Nov 03 18:29:48 Syzygy_ you are making me nervous :) Nov 03 18:29:58 renderscript stuff probably Nov 03 18:30:05 related to bluring Nov 03 18:30:06 Syzygy_ what does your stacktrace says Nov 03 18:30:24 he got an IllegalNewnessException Nov 03 18:31:45 in an async task a fastblur function is called, the fastblur function converts the image from RGB_565 to RGB_888 because supposedly RGB_565 might result in glitched images in some cases Nov 03 18:32:01 anyway during the conversion it crashes because apperently the image in question is null. Nov 03 18:32:17 SystemTooNewException Nov 03 18:32:34 Syzygy_ http://www.christiantoday.com/article/nexus.4.5.7.and.10.confirmed.to.receive.android.5.0.lollipop.os.update.on.nov.3/42138.htm Nov 03 18:33:02 i guess that's a very valid option Nov 03 18:33:18 gotta find my lollipop nexus 7 Nov 03 18:33:47 http://android-developers.blogspot.com/2014/10/android-50-lollipop-sdk-and-nexus.html?rd=1 Nov 03 18:34:20 "Starting November 3rd, Nexus 9 will be the first device available to consumers that will run Android 5.0." Nov 03 18:35:04 Hey so I am using the ANDROID ID for a UID and mastly its ok. a few devices are returning UID's that are only 15 char long. Rooted device? or is there another way for this to happen? Nov 03 18:35:43 Ooo i have a nexus 7... but no update yet. Nov 03 18:36:06 could be a virtual machine or avd too, using android id as a unique number is not recommended Nov 03 18:36:28 ya i know. I didnt do it. I am just trying to fix it Nov 03 18:36:33 can I download the lollipop rom already? or is it just the preview version like before? Nov 03 18:37:41 hey hey Nov 03 18:38:01 so i'm having an issue with a listadapter and a gridview Nov 03 18:38:34 i change the data in the adapter, and then i call notifydatasetchanged Nov 03 18:38:54 within the call to notifydatasetchanged the gridview comes in and calls getItem, but it's asking for items that no longer exist Nov 03 18:39:11 so then i get an IndexOutOfBoundsException Nov 03 18:39:21 i've made sure to call all this on the main thread Nov 03 18:39:52 also, this is happening in the android.widget.AbsListView.confirmCheckedPositionsById method Nov 03 18:40:01 so apparently if you have something checked then the dataset changes it crashes? Nov 03 18:40:06 code or it didnt happen Nov 03 18:41:04 lol, danijoo. "Code or GTFO" Nov 03 18:41:14 see topic :p Nov 03 18:41:48 code as in where? Nov 03 18:41:53 lol Nov 03 18:42:02 ugh Nov 03 18:42:03 That's a funny image, danfried Nov 03 18:42:04 another noob? Nov 03 18:42:05 really? Nov 03 18:42:07 er, danijoo Nov 03 18:43:08 code as in your project. Nov 03 18:43:54 http://pastebin.com/Rfgrka7L Nov 03 18:45:46 g00s, ravilov, I forgot something earlier. Just looked into the tool my betatesters are using. Not a single crash under Android 5.0 (most of them 4.3) and on the HTC One. Nov 03 18:45:51 no nexus devices either Nov 03 18:46:11 so unless that tool is borken, it's not the release Nov 03 18:46:32 was there an update with the play framework or something like that recently? any ideas? Nov 03 18:46:47 Syzygy_, er, 5.0 has not been released yet Nov 03 18:47:00 ravilov, nexus 9 is supposedly out today Nov 03 18:47:13 but is it really? Nov 03 18:47:13 but as I said, that's not it. Nov 03 18:48:13 as I said, I have an app that was used for a month by a lot of people without this crash happening even once and suddenly since yesterday it occured over 400 times Nov 03 18:49:52 danijoo: better trace: http://pastebin.com/ieEVzD2W Nov 03 18:50:26 I asked for code Nov 03 18:50:40 trace without code is useless Nov 03 18:51:32 are you joking? Nov 03 18:51:38 hehe Nov 03 18:53:14 lagann, IndexOutOfBoundsException: Invalid index 1, size is 0. that alone should tell you quite a few things Nov 03 18:53:42 apperently the datasource of your adapter is empty while your size isn't. Nov 03 18:54:23 already checked that. the data is stored in a list and getSize returns the list.size() Nov 03 18:55:02 well, getCount() Nov 03 18:56:11 still waiting for code... Nov 03 18:56:18 well, I can only assume you did something wrong in your code. best bet is showing off that code. Nov 03 18:56:33 lagann: It is clear that something is trying to access element 1 in an empty ArrayList Nov 03 18:57:09 most likely in SourceFile line 192 Nov 03 18:57:23 also, god damn it, if the nexus 6 doesn't release this month in europe I'm getting an iphone 6+. I want to finally be able to compensate for my ridiculously small stature -.- Nov 03 18:57:26 is this Lint thing right? it says that paddingStart may crash with API<17, not even setting paddingLeft will change. but if i use tools:paddingStart the warning will disappear Nov 03 18:58:00 tools is just for viewing in your project Nov 03 18:59:48 danijoo: i can't show you the code because this is work related Nov 03 19:00:34 then the hint from gman23 is all you can hope for Nov 03 19:01:28 okay Nov 03 19:01:34 so my list is trying to get a position when it's empty Nov 03 19:01:45 i can just check it myself and throw an indexoutofboundexception there Nov 03 19:01:53 still doesn't solve my problem Nov 03 19:01:55 Perfect Nov 03 19:02:03 lol Nov 03 19:02:06 -_- Nov 03 19:02:14 most likely your getSize() returns the wrong number Nov 03 19:02:33 here i'll give you relevant code snippets Nov 03 19:02:59 That's all anyone wants Nov 03 19:03:33 http://pastebin.com/CsyJxa04 Nov 03 19:03:33 i'm using a PreferenceFragment in an ActionBarActivity; but all the text is a muted grey. i dont think its supposed to be this way ... see http://cdn.androidpolice.com/wp-content/uploads/2014/11/nexus2cee_wmunlock.png . anybody know what I did wrong ? Nov 03 19:04:11 lagann: Is anything being added to your contacts ArrayList? Nov 03 19:04:19 before you access it Nov 03 19:04:21 also, i am sure that the list is unmodified after notifyDataSetChanged is called Nov 03 19:04:39 gman23: the contacts list is cleared, then notifyDataSetChanged is called Nov 03 19:05:00 so are you sure the list is repopulated before it is accessed? Nov 03 19:05:08 no, it's empty Nov 03 19:05:10 it's supposed to be empty Nov 03 19:05:17 that's why notifyDataSetChanged was called Nov 03 19:05:26 Okay, then you have code trying to call getItem(1) Nov 03 19:05:33 yeah Nov 03 19:05:37 So find that code Nov 03 19:05:43 it seems to be associated with something being selected in the listview Nov 03 19:06:08 actually wait Nov 03 19:06:14 something is calling getItemId Nov 03 19:06:28 that would be at android.widget.AbsListView.confirmCheckedPositionsById Nov 03 19:07:48 So something is wrong with the order in which you are calling things Nov 03 19:07:53 or the timing Nov 03 19:07:59 yeah Nov 03 19:08:02 that's what i'm trying to figure out Nov 03 19:08:19 at first when i got the stack trace i just assumed the dataset was being modified outside the main thread Nov 03 19:08:22 Have you used the debugger to step through this process? Nov 03 19:08:33 why are all those variables final? Nov 03 19:08:53 Why shouldn't they be Nov 03 19:09:02 not yet, i wanted to check with you guys if it was anything simple before i dove into it Nov 03 19:09:03 just wondering Nov 03 19:09:31 lagann: well I think we're on the same page. Nov 03 19:09:35 It looks like you need to dig Nov 03 19:09:41 okey dokey Nov 03 19:09:46 i'll let you know what i find Nov 03 19:09:50 good luck Nov 03 19:18:08 has anyone installed android studio from scratch recently? 0.8.14? Nov 03 19:18:29 I installed it on a mac, and it seems to be missing the sdk Nov 03 19:18:30 i intalled 0.9.0 from scratch Nov 03 19:18:37 yeah, thats good Nov 03 19:18:50 Android Studio can't have the sdk in the app folder anymore Nov 03 19:18:57 er, in the program's folder Nov 03 19:19:05 joshkovach: you have to install the sdk manually Nov 03 19:19:10 ^ Nov 03 19:22:23 gman23: okay, from the looks of it it's a bug in AbsListView Nov 03 19:22:47 to double check i did a search and found this stackoverflow https://stackoverflow.com/questions/11613517/android-custom-listview-adapter-multi-selection-remove-indexoutofbounds Nov 03 19:24:39 Okay. Looks like they have work arounds Nov 03 19:25:03 yeah, i saw that Nov 03 19:26:37 does android sdk no longer include platform-tools, or am I forgetting something? Nov 03 19:27:45 lol Nov 03 19:27:51 you're forgtting something :) Nov 03 19:30:58 Is there a way to see if the os is killing your app ? Nov 03 19:31:00 I am trying to implement a dialog to ask for a valid password before settings can be changed, but the App crashes with 'No view found for id 0x7f030008'... Nov 03 19:31:01 Stacktrace: http://paste.fedoraproject.org/147516/14150401 Nov 03 19:31:03 layout file list: http://paste.fedoraproject.org/147518/14150403 Nov 03 19:31:04 something i can do from command line Nov 03 19:31:04 SettingsActivity.java: http://paste.fedoraproject.org/147519/40399141 Nov 03 19:31:06 SettingsFragment.java: http://paste.fedoraproject.org/147521/50404471 Nov 03 19:31:07 nz.co.archidevsys.chivisda.R.java: http://paste.fedoraproject.org/147536/41504243 Nov 03 19:33:23 lasserix, logcat, duh Nov 03 19:33:38 app kills are always reported via activity manager Nov 03 19:33:45 ahh ok Nov 03 19:33:46 thanks Nov 03 19:33:59 what's the tag i can filter on? Nov 03 19:34:02 err keyword Nov 03 19:35:18 lasserix you can also just cal 'am force-stop' i think Nov 03 19:35:25 to see how it works :) Nov 03 19:35:53 also see 'am kill' Nov 03 19:41:18 I would appreciate ideas why I'm getting the 'no view found' error, especially as I can;t see any mention of 0x7f030008 in the 'R' file! Nov 03 19:43:20 or, alternately, a better way of protecting setting with a password. Most users are not allowed to change the settings, as this should only be done by supervisors. Nov 03 19:44:21 Could someone please help me troubleshoot my code? I know the intent is breaking things, but can't figure out why Nov 03 19:45:24 wtf: Cannot find any Android targets in this SDK Nov 03 19:47:55 anyone know why studio wouldn't be able to use the sdk directory I made for it? Nov 03 19:48:29 Did you make it inside Android Studio's program folder? Nov 03 19:48:31 Should I define my variables inside my class called by onclick, or outside the class since onclick will need them for the class? Nov 03 19:48:33 nope Nov 03 19:48:39 ~/.android/sdk Nov 03 19:49:03 joshkovach thats a terrible place to put it :) Nov 03 19:49:15 g00s: got a better suggestion? Nov 03 19:49:23 ~/android-sdk ? Nov 03 19:49:47 uuh,.. tryign to make a run config in InteliJ but no luck selecting a module? Nov 03 19:49:49 ~/.android is scratch data for the tools Nov 03 19:49:53 whats the best thing to solve this: i have a custom class and i need to save its state with something like onSaveInstanceState. Should convert it to an activity or save the custom class instance to the mainactivity with putBundle Nov 03 19:49:55 Put it in C:\Users\\Desktop\Android-Sdk Nov 03 19:50:03 * gman23 thinks he's funny Nov 03 19:50:11 Alright, I'm out of ideas.. I keep getting the 'getDatabase called recursively" problem, but I followed code I found online fixing the problem! http://pastie.org/9693920 Nov 03 19:50:24 gman23 you missed the direction of the leaning toothpick :) Nov 03 19:50:28 ahh, well then Nov 03 19:50:35 The error occurs at the getLocked Nov 03 19:50:36 ah it was marked as lib Nov 03 19:50:40 didn't seem to be able to look in a hidden directory, I guess Nov 03 19:50:43 g00s: I don't know what that means Nov 03 19:50:46 http://dpaste.com/3CXSTC4 <-- Can anyone tell me what I'm doing wrong? Nov 03 19:51:31 g00s: thanks for the tip Nov 03 19:51:42 What's the leaning toothpick? Nov 03 19:51:54 something? Nov 03 19:52:07 http://developer.android.com/tools/building/multidex.html Nov 03 19:52:56 so many methods Nov 03 19:53:43 "If you have built an Android app and received this error, then congratulations, you have a lot of code!" Nov 03 19:53:44 lol Nov 03 19:53:44 danijoo are you there Nov 03 19:53:53 yep Nov 03 19:54:03 any help with this Nov 03 19:54:06 whats the best thing to solve this: i have a custom class and i need to save its state with something like onSaveInstanceState. Should convert it to an activity or save the custom class instance to the mainactivity with putBundle Nov 03 19:54:25 oh no ravilov ! "Applications that use multidex may not start on devices that run versions of the platform earlier than Android 4.0 (API level 14) due to a Dalvik linearAlloc bug " Nov 03 19:54:32 make it implement parcelable Nov 03 19:54:39 then you can put it in a bundl Nov 03 19:54:39 e Nov 03 19:54:52 still no wear news :( Nov 03 19:54:58 oh ok Nov 03 19:55:12 adq what wear news ? Nov 03 19:55:30 google dev console should allow to submit wear app specifically Nov 03 19:55:52 and maybe few other things too Nov 03 19:56:22 g00s, c.f. http://developer.android.com/distribute/essentials/quality/wear.html ( Note: You will soon be able to submit your apps for Android Wear review. Stay tuned for more information about how to submit your apps for Android Wear review through the Google Play Developer Console ) Nov 03 19:56:33 and one of the guy in charge said it should be today ;) Nov 03 19:56:54 first nexus 9 review was kinda meh Nov 03 19:56:57 that i read Nov 03 19:57:18 basically nice tablet, too expensive, iPad Air 1 better for the price Nov 03 19:57:25 there were tv change in dev console Nov 03 19:58:52 adq the thought just occurred to me, since my app is kinda like a dashboard, maybe i should support TV; is it pretty easy to dev for this without going out and buying a tv ? yeah stupid question Nov 03 19:58:58 Anyone look at my code? Nov 03 19:59:23 no clue g00s, I haven't give a shot to the tv sdk, but it's probably easy Nov 03 20:01:00 Anyone using the multidex support, and having success with it? Nov 03 20:01:25 any way to use tabbed fiew in intellij? Nov 03 20:01:28 view Nov 03 20:01:30 side by side.. Nov 03 20:01:40 pieces029_ i read about it and decided its not worth using Nov 03 20:02:54 JacobTabak: forsure, I was hoping it was faster to use that proguard, but considering it doesn't work and I've followed the docs I'm about to give up. Nov 03 20:03:15 I get this cool error ": java.lang.ClassNotFoundException: Didn't find class {applicationClass}" Nov 03 20:03:33 pieces029_ did you try on api 21 or earlier ? Nov 03 20:03:42 pieces029_ i would rather repackage libs than use proguard Nov 03 20:03:57 there are some pretty good tools Nov 03 20:04:59 Yeah I have everything set to the latest, I'm trying to run on an older phone though, which is what I though the point was. Nov 03 20:05:17 I have no problem running progaurd for prod builds, but it's just stupid for debug and super slow. Nov 03 20:05:20 manifest merger conflicts? wtf intellij Nov 03 20:06:00 probabably not intellij's fault, probably gradle Nov 03 20:06:19 goddamnit gradle Nov 03 20:06:44 eclipse has crashed on me 8 times this morning.. I updated to Yosemite.. shouldnt have.. Nov 03 20:07:00 now using IntelliJ. getting yelled at left and right Nov 03 20:07:23 Try vim Nov 03 20:07:33 vim Nov 03 20:07:34 ? Nov 03 20:07:43 jk Nov 03 20:07:55 https://en.wikipedia.org/wiki/Vim_(text_editor) Nov 03 20:08:04 oh hell no Nov 03 20:08:41 Kinda joking, but in all fairness, doing all your builds from the command line will make your life easier Nov 03 20:08:50 You can rule out your ide being dumb. Nov 03 20:10:19 isn’t that a waste of time if you do it a lot? Nov 03 20:10:35 a waste of time? Nov 03 20:10:44 command line builds are tremendously faster than IDE Nov 03 20:10:47 and more consistent Nov 03 20:10:48 and work Nov 03 20:11:47 tricknology_ yosemite seems to be a problem Nov 03 20:11:49 ...... Nov 03 20:11:52 and mor ework Nov 03 20:12:01 i'm still on 1.7 :) Nov 03 20:12:07 I can’t run my FFFFFFFFF apps Nov 03 20:12:08 oops, i meant 10,7 :) Nov 03 20:12:10 I am trying to find out how to get an authorization code in my app via Java Nov 03 20:12:16 I have been here for 3 hours now Nov 03 20:12:18 from google play services Nov 03 20:12:36 All I can find is a way to get an authentication token, which is not the same Nov 03 20:12:51 ...And a http:// way to get the code, not compatible with my game/app Nov 03 20:13:18 tricknology_ just curious, did you google yosemite + AS + haxm or something like that ? - because last i did that it was filled with pain Nov 03 20:13:34 and early adopter major OS release FTL Nov 03 20:13:36 I saw taht it was fixed with Java for OSx Nov 03 20:13:45 stay far far away from Yosemite Nov 03 20:14:13 Eclipse Kepler is whack. Eclipse Luna is ugly.. Nov 03 20:14:18 i thought it was mostly haxm but Nov 03 20:14:33 intel will fix that in 6 mos if you are lucky Nov 03 20:16:03 I have a quick question. I am trying to separate my SensorEventListener into its own Java file but when I call new sensorListen() in my mainActivity, the onChanged function is not being executed. Nov 03 20:16:14 The SensorEventListener works perfectly fine if it is inside the main activity class but not in a separate .java file Nov 03 20:16:54 SQLiteDatabaseLockedException cannot be resolved to a type' Nov 03 20:16:57 wtfffffffff Nov 03 20:17:19 The import android.database.sqlite.SQLiteDatabaseLockedException cannot be resolved Nov 03 20:17:29 sounds like your sdk dir isn't configured Nov 03 20:17:55 oh but it can find android.database.sqlite.SQLiteDatabase Nov 03 20:28:42 anyone see a way to avoid these nested ifs? http://pastebin.com/vgxZ0yBu Nov 03 20:28:59 you can make it better by not putting 400 spaces for each tab Nov 03 20:29:13 hehe Nov 03 20:29:22 LOL Nov 03 20:29:27 Is it okay to nest a DialogFragment class inside an Activity class? Nov 03 20:29:39 Nivag yes Nov 03 20:29:42 JacobTabak, just the default eclipse behaviour Im afraid Nov 03 20:29:50 change that Nov 03 20:29:54 in prets Nov 03 20:29:57 prefs Nov 03 20:29:59 yeah, good idea Nov 03 20:30:01 its annoying Nov 03 20:30:22 JacobTabak: thanks! Nov 03 20:30:45 ah SQLiteDatabaseLockedException is in API 11 Nov 03 20:30:51 i changed to API 10 :( Nov 03 20:30:59 eclipse 2 < intelliJ 0 Nov 03 20:31:06 > Nov 03 20:31:39 fixed Nov 03 20:31:52 JacobTabak, other suggestions? :) Nov 03 20:31:54 JacobTabak: Could you have a quick look at my 'No view found for id 0x7f030008' mentioned above? I would greatly appreciate some help here! Nov 03 20:32:41 Unable to execute dex: GC overhead limit exceeded Nov 03 20:32:42 GC overhead limit exceeded Nov 03 20:32:43 not my day :( Nov 03 20:35:18 if i declare an okHttpClient in my mainactivity and set the cache directory in there, it would persist if i call it from a service? how do i handle that Nov 03 20:37:16 manifest? Nov 03 20:38:21 huh? Nov 03 20:39:51 nto sur wha tyou want to do.. have your httpClient presist in a service? declare it in the manifest. Nov 03 20:42:47 all hai the penguin-bot! http://spectrum.ieee.org/automaton/robotics/diy/fluffy-little-rovers-are-an-effective-adorable-way-of-monitoring-penguins Nov 03 20:42:59 can you release production apps with sdk 21 yet? Nov 03 20:45:12 Yosemite bricked my dev station lol Nov 03 20:45:25 I haven’t ben able to launch an app for 4 hours Nov 03 20:45:26 tricknology_: what the problem? Nov 03 20:45:44 i upgraded to yosemite 1 week ago without any problems Nov 03 20:45:48 Unable to execute dex: GC overhead limit exceeded Nov 03 20:45:51 you just have to reinstall java Nov 03 20:45:54 You use Eclipse? Nov 03 20:46:03 no Nov 03 20:46:06 intellij Nov 03 20:46:19 an out of memory error occurred Nov 03 20:46:28 i tried intellij it gave me shit about merging manifests failing Nov 03 20:47:59 no idea about eclipse so i cant help, sorry Nov 03 20:49:09 InteliJ is giving me stupid errors Nov 03 20:49:16 diplicatge class BuildConfig Nov 03 20:49:26 Duplicate class R Nov 03 20:49:45 package does not exist Nov 03 20:49:57 cannot find symbol Nov 03 20:50:15 100 errors Nov 03 20:52:09 well i wont discuss pros & cons of IDEs. that always ends in bitchfights Nov 03 20:52:29 meow Nov 03 20:54:18 I’m not asking to discuss pros and cons, i jsut want my shit to work Nov 03 20:54:28 hm. trying to use rx for some BT stuff, like wrapping discovery / scanning into an observable. but where this gets icky is that not only emitting things in oNNext, but state changes to the system might cause race conditions :/ Nov 03 20:54:35 I have never been able to run a project in IntelliJ Nov 03 20:54:45 they were all created in eclipse, and IntelliJ has a problem with that Nov 03 20:55:20 Just so everyone knows, you cannot include waits and pauses without creating a contact first lol Nov 03 21:04:08 does anyone in here have a strong aversion to Lombok for any reason? Nov 03 21:04:37 how many methods will it add to your dex :D Nov 03 21:05:30 is there a good resource available on what exactly that means? Nov 03 21:05:52 and is it a prohibitive number of methods added? Nov 03 21:06:06 joshkovach https://medium.com/@rotxed/dex-skys-the-limit-no-65k-methods-is-28e6cb40cf71 Nov 03 21:06:52 this is weird, I'm adding this fragment, rotating to landscape, then rotating back to portrait and the "home up" button turns black. anyone seen something like that? Nov 03 21:07:16 mattblang: thanks! Nov 03 21:08:21 joshkovach yw. that article mentions two tools that will do a DEX count for you. you could add the library, then run one of those tools to see how many it adds Nov 03 21:08:37 cool, thanks Nov 03 21:09:18 INSTALL_FAILED_VERSION_DOWNGRADE……. Nov 03 21:09:43 possible to use a regex to look for last occurence of string is [sx] ? Nov 03 21:09:44 tricknology_: you have to uninstall and reinstall Nov 03 21:12:12 its all messed up Nov 03 21:12:18 adb devices shows no devices Nov 03 21:12:19 Hej Nov 03 21:12:19 I'm basically trying to do a string.endsWith('s') || string.endsWith('x') with a regex Nov 03 21:12:21 kill and restart Nov 03 21:12:29 then device is there but no device shows in eclipse Nov 03 21:12:36 then adb devices again show s no devices Nov 03 21:13:04 tricknology_: sounds like eclipse and command line use different adb binaries Nov 03 21:13:13 JacobTabak (or anyone), I need a little help. Nov 03 21:13:17 Im trying to make a google map on my app, I dont know what is wrong. here is my code and the errors I get. : http://pastebin.com/MciBt5P4 http://pastebin.com/LbxL19yr Nov 03 21:13:23 dont do this shit Agamemnus Nov 03 21:13:25 my onActivityResult function never runs Nov 03 21:13:30 what shit? Nov 03 21:13:46 dont just ping me any time you feel like it because you need help with some arbitrary thing Nov 03 21:13:59 Anyone been able to update to Lollipop yet? Nov 03 21:14:08 mattblang: nope :( Nov 03 21:14:11 uh, ok Nov 03 21:14:22 and im checking stock rom download page every hour or so Nov 03 21:14:35 danijoo let me know if you see it! I'll do same Nov 03 21:14:44 i thought that was common sense Nov 03 21:14:45 mattblang: what device are u looking for? Nov 03 21:14:56 danijoo have nexus4 and nexus7 at work Nov 03 21:15:10 ah ok. im looking for the 4 and 5 rom Nov 03 21:15:16 Well, uh, anyone: http://pastebin.com/VVH75CSe ... somehow I messed up somewhere along the way. onActivityResult never runs after clicking "OK" for authorizing the log in. Nov 03 21:15:41 Can't figure it out. According to the manual, it should run. But it never does. Nov 03 21:15:58 http://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#startResolutionForResult%28android.app.Activity,%20int%29 Nov 03 21:16:24 Agamemnus single space indent size? Nov 03 21:16:39 * Agamemnus hides Nov 03 21:16:44 Agamemnus haha Nov 03 21:16:56 It's on line 79. Nov 03 21:17:03 And 62. Nov 03 21:17:58 Maybe I misinterpreted the manual. It says " The activity's onActivityResult method will be invoked after the user is done." Nov 03 21:18:12 Does that not mean after the user clicks the uh "SIGN IN" button? Nov 03 21:18:41 Hello, is it possible to omit the namespace 'android:' from the declarative ui's tag attributes and somehow define it at a global level as default? Nov 03 21:18:46 Agamemnus: if you open the activity for result, it gets closed after your action is done Nov 03 21:19:05 onActivityResult is called at the moment that activity is closed and you are heading back to the calling activity Nov 03 21:19:31 Which action? Nov 03 21:20:09 I'm sorry can you add some details, the guy vacuuming the street with an 80db leafblower isn't helping (I'm wearing noise-cancellation headphones) Nov 03 21:20:34 Agamemnus can't hear your text with that vacuum going. Nov 03 21:20:44 ._. Nov 03 21:20:57 xterm, you can define as strings if that's what you're looking for Nov 03 21:21:05 Agamemnus: you start a new activity with startActivityForResult Nov 03 21:21:21 https://developer.android.com/tools/building/multidex.html Nov 03 21:21:32 android:bleh="@string/string_name" Nov 03 21:21:35 the new activity will do some work (maybe asks user for input or whatever) Nov 03 21:21:42 Right, sure. Nov 03 21:21:48 i'm still gonna do my best to avoid that limit, seems lika a hack on a hack Nov 03 21:21:52 It opens a window asking me to sign in Nov 03 21:21:53 it will create a resultIntent, set that result in setResult() method and return Nov 03 21:22:04 joshkovach: I'll be sure that the next time I can't build my project to check if I have over 65k of methods first Nov 03 21:22:16 minus of Nov 03 21:22:23 once this second activity is finished (finish() called), onActivityResult will be called on your first activity Nov 03 21:22:36 and it will contain the intent that you crafted in activity 2 Nov 03 21:22:43 Agamemnus: ---> This is my question, omit 'android:' namespace from the attributes. Nov 03 21:23:02 I don't know about that. Nov 03 21:23:25 setResult() is an internal method? Nov 03 21:23:47 its a method of activity Nov 03 21:24:02 so it's something I need to add as a function? Nov 03 21:24:07 see http://developer.android.com/training/basics/intents/filters.html#ReturnResult Nov 03 21:24:21 asdfkhbgskjnb;kjbv Nov 03 21:24:29 device not in Android Device Chooser... Nov 03 21:24:40 so that is the same as result.startResolutionForResult (activity, result.SIGN_IN_REQUIRED); , isn't it? Nov 03 21:24:44 “Select a device with min API 11" Nov 03 21:24:44 you call setResult(Activity.RESULT_OK, yourResultIntent) and then finsih that activity Nov 03 21:24:53 then your first one will receive a call to onActivityResult Nov 03 21:26:48 I'm still totally lost.... is setResult the same as startResolutionForResult? Nov 03 21:26:56 cannot see device in Android Device Chooser, have to unplug and replug USB to see it.. wtf? Nov 03 21:27:44 danijoo, I am using this as a base: http://developer.android.com/google/auth/api-client.html Nov 03 21:28:05 it (onActivityResult) just never runs.. what am I missing? Nov 03 21:28:47 dont know. i wont look at your 1 space intended code sorry ^^' Nov 03 21:29:54 ok, what if i indent it with tabs? Nov 03 21:32:31 then it might be readable :_ Nov 03 21:36:02 danijoo, can you help me out? Nov 03 21:36:24 i tried yesterday peyam Nov 03 21:36:45 Can I explain to you what im trying to do so you maybe can give me a suggestion? Nov 03 21:37:02 you are trying to show a MapFragment Nov 03 21:37:10 danijoo: http://pastebin.com/bnapswN3 Nov 03 21:37:19 Help me, dear god I am so close Nov 03 21:37:34 danijoo, I have a class with its own layout and it extends the fragment class. in that layout im trying to have a map. thats all Nov 03 21:38:17 hi Nov 03 21:38:43 Agamemnus: this is not an activity.. Nov 03 21:38:48 onActivityResult is called on the activity Nov 03 21:38:55 the activity is activity Nov 03 21:39:01 Hmm. Nov 03 21:39:08 CordovaPlugin is not an activity Nov 03 21:39:14 Ok, that makes sense. Nov 03 21:39:15 Hi, could anyone point me in the right direction on how to solve "no single-boolean/Boolean-arg constructor/factory method" using Jackson? Nov 03 21:39:34 Do you know what I can do to add the code in this file, instead of in the activity file? Nov 03 21:39:35 the exception that is... Nov 03 21:40:10 Or do I have to modify the activity? That means it's impossible to work as a plugin Nov 03 21:40:16 Agamemnus: yes. override onActivityResult in your activity and call your classes method from it Nov 03 21:40:20 I have an imageview in my app, and I am displaying an image without scaling it. I am capturing MotionEvents on the imageview and detecting the event.getX() and event.getY() coordinates to determine where the user has clicked. will the X and Y coordinates always correspond to the same pixel of the image, regardless of the android device? Nov 03 21:40:22 like forwarding that call. Nov 03 21:41:22 It's not going to work as a plugin if I modify the Activity Nov 03 21:41:34 Agamemnus: correct Nov 03 21:41:36 Is there anything else I could do? Nov 03 21:41:43 nope Nov 03 21:42:03 Kcuf. Nov 03 21:42:03 use interfaces Nov 03 21:42:09 Interfaces....? Nov 03 21:42:38 write an interface like a listener as connector between your plugin and the activity Nov 03 21:43:05 at least thats what i would do Nov 03 21:43:13 Do I still have to modify the activity with that? Nov 03 21:43:24 yes. Nov 03 21:43:33 Huh. Ok, thanks. Nov 03 21:43:43 you will have to override onActivityResult in every case Nov 03 21:44:07 this still kind of sucks. maybe there is a Cordova built-in thing I can do Nov 03 21:44:21 maybe to add to its own onActivityResult Nov 03 21:48:15 How would I construct a class to handle the "listOfBooleans" when deserializing using jackson? http://pastebin.com/nP1TYdFS Nov 03 21:49:56 Hello everybody! Nov 03 21:50:31 hey all Nov 03 21:50:39 Where is database stored when being created via SQLiteOpenHelper? Nov 03 21:51:03 what would be, in your opinion, the best html/js app creation tool? Nov 03 21:51:21 I'm currently looking at phonegap, and it looks like something i can do.. looks way easier than native android Nov 03 21:51:36 alexa: /data/data/your.package.name/databases/yourDatabaseName.db Nov 03 21:51:49 danijoo, thanks Nov 03 21:51:55 I'll look up there Nov 03 21:53:21 it is there Nov 03 21:57:38 danijoo, what's the difference between startActivityForResult and startResolutionForResult? Nov 03 21:57:46 no idea Nov 03 21:58:31 i think the latter one is the same with a slightly other name used for google api Nov 03 21:58:38 read the docs if you want to know Nov 03 21:59:01 i'm illiterate Nov 03 21:59:02 brb Nov 03 22:00:17 has anyone messed with the new ActionBarDrawerToggle much? i'm trying to stick to spec, and so i tried to make a toggle that doesn't animate, but now it's ALWAYS an arrow, never a burger :( Nov 03 22:00:36 code here http://www.github.com/drinfernoo/Cuber Nov 03 22:00:41 if anyone is interested Nov 03 22:01:18 drinfernoo: do you expect us to look into every file to find the one where you are using the drawer? Nov 03 22:01:18 drinfernoo seems nobody sticks to spec, so don't worry about it Nov 03 22:01:25 Hey guys, I got my program working! Nov 03 22:02:03 Has anyone worked with androidplot? I'd like to out two graphs on same area in xml, but to keep one disabled and one enabled at the time. Nov 03 22:02:25 *I'd like to put two graphs on same area in xml Nov 03 22:02:32 my apologies danijoo Nov 03 22:02:33 https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/NavigationDrawerLayout.java Nov 03 22:03:45 drinfernoo: your not syncing Nov 03 22:05:26 danijoo: I have nearly finished by project, but I was wondering if you could answer one last question for me: is there an easy way to dial a specific contact from contacts Nov 03 22:06:31 drinfernoo: you have to call drawerToggle.syncState() in activities onPostCreate method Nov 03 22:07:28 when i do, i get animation Nov 03 22:08:33 I have an imageview in my app, and I am displaying an image without scaling it. I am capturing MotionEvents on the imageview and detecting the event.getX() and event.getY() coordinates to determine where the user has clicked. will the X and Y coordinates always correspond to the same pixel of the image, regardless of the android device? Nov 03 22:08:47 I have my app taking input and saving it as a contact, but I don't know if there is a way to dial a specific contact (not number) Nov 03 22:09:13 anybody have a clue why the "home up" button in my action bar would change to black after two rotation changes? http://i.imgur.com/MKoFzGD.png Nov 03 22:09:18 Nirvash: there is but it requires more insight into android then you have i think Nov 03 22:09:57 danijoo: Is there a specific term I can look for for this? Nov 03 22:10:13 Nirvash: http://www.androidhub4you.com/2013/06/get-phone-contacts-details-in-android_6.html Nov 03 22:11:05 mattblang: Once it goes black does it ever go back? Nov 03 22:11:17 lmao yiati Nov 03 22:12:07 yiati hahaha, actually, if I rotate back to landscape (third rotation) it goes white, but then black again in portrait Nov 03 22:12:15 so weird Nov 03 22:12:26 and I am using this same fragment in another Activity, but don't get the same behavior Nov 03 22:12:49 i added a few lines in styles that are supposed to stop the animation, but they're not working Nov 03 22:12:50 https://github.com/drinfernoo/Cuber/blob/master/app/src/main/res/values/styles.xml Nov 03 22:18:46 danijoo: Is there some URI that functions akin to URI.getnumber()? 0_o Nov 03 22:20:21 never worked with contacts Nov 03 22:20:55 i only know that you can get them from a ContentResolver as cursor Nov 03 22:22:39 Because I can create the contact, but it would be nice if you could read them easily, ya knkow? Nov 03 22:23:50 unfortunatly its not as easy as creating ;) Nov 03 22:23:52 Either way, I don't think it's entirely possible to call a contact directly Nov 03 22:24:06 Like say "call danijoo cell" and it dial the number... although, I could be completely wrong Nov 03 22:25:12 its impossible to explain you how to do it with your knowledge Nov 03 22:25:16 read the docs Nov 03 22:26:04 http://developer.android.com/guide/topics/providers/contacts-provider.html Nov 03 22:27:13 danijoo: But the call intent doesn't facilitate using a contact Nov 03 22:27:23 You can read the number of the contact, but with pauses and waits, it doesn't work Nov 03 22:27:48 believe me or not. im telling the truth ;) Nov 03 22:28:13 I know you are, but if you try to pass the number to the intent, then it prompts you for each pause/wait. If you dial the contact through contacts, it doesn't Nov 03 22:28:37 i dont even know what you mean with pause/wait Nov 03 22:29:14 have you guys startred working with the L preview or material design yet? Nov 03 22:29:26 yes Nov 03 22:29:50 is it worth making the switch? Nov 03 22:29:54 KaylieG: yes Nov 03 22:30:13 but it may also be worth waiting some time because its not very well documentated yet Nov 03 22:30:26 it is lacking a lot of example codes, especially for appcompat Nov 03 22:30:57 oh that's fine, for now i'm just trying to test out the material theme Nov 03 22:31:25 which incidentally i don't find in the Theme dropdown list in the new application project dialog Nov 03 22:31:38 do i have to manually add something like Theme.Material? Nov 03 22:32:40 Is it possible for me to have a button on the home page of my app that enables nfc for the user when pressed? like with android:onClick=“enableNFC” and then in enableNFC() {settings.Global blah blah blah, have to figure this part out } Nov 03 22:32:46 Hey. Anyone have any experience with recording gameplay on Android devices? Any suggestions on app or other way to record? Nov 03 22:32:54 or will the user need to enter a password or something to do that Nov 03 22:33:01 KaylieG: read the docs for migration Nov 03 22:33:17 Chamooze: the app "Rec." is great Nov 03 22:34:55 danijoo: Hmm, requires 4.4.. :/ Nov 03 22:35:00 I'm only on 4.2 Nov 03 22:35:06 is there any way to make an app update only available to phones, not tablets? Nov 03 22:35:14 yeah :/ i think it uses the adb screen recording feature Nov 03 22:35:29 mattblang maybe using Play multi-apk support Nov 03 22:36:02 @everyone who was interested, it looks like I can redirect them to that menu with startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS)); but I can’t actually change it for them Nov 03 22:36:05 but i've never used it. not sure Nov 03 22:36:12 sorry for code in the chat room Nov 03 22:36:13 thanks g00s Nov 03 22:36:19 mattblang: maybe disabling support for devices > 7" in the manifest Nov 03 22:36:31 danijoo yeah, I was wondering abou tthat Nov 03 22:36:39 Oh, ADB has built-in screen recording in 4.4? Nov 03 22:36:41 danijoo but would the last version still show to tablets? Nov 03 22:36:47 yes Nov 03 22:37:00 if you exclude some devices in a new apk both will stay active Nov 03 22:37:05 unless you disable the old one manually Nov 03 22:37:20 sweet! shame i don't have a 4.4 device. lol Nov 03 22:39:06 danijoo: Okay, last question of the day: is there a way to redirect a user to the contacts app instead? Nov 03 22:40:19 I have an imageview in my app, and I am displaying an image without scaling it. I am capturing MotionEvents on the imageview and detecting the event.getX() and event.getY() coordinates to determine where the user has clicked. will the X and Y coordinates always correspond to the same pixel of the image, regardless of the android device? Nov 03 22:42:13 fadax, of course not, those are in pixels as units relative to View Nov 03 22:42:25 Nirvash: http://lmgtfy.com/?q=android+intent+contact+list&l=1 Nov 03 22:42:27 what's the most memory efficient way to write a large string to a file? Nov 03 22:42:42 if you're not even doing density scaling, you might even get border around image which will also make your computation wrong Nov 03 22:42:55 stringreader or something? Nov 03 22:43:01 JacobTab_: If you already have it in memory every way is equal ^^ Nov 03 22:43:08 JacobTab_, open bufferedoutputstream, dump bytes, close bufferedoutputstream Nov 03 22:43:17 danijoo thats definitely not true Nov 03 22:43:35 how do i get the bytes wihout creating a new object? Nov 03 22:43:52 string.getBytes[] creates a new byte[] doesnt it? Nov 03 22:43:55 getbytes() Nov 03 22:44:13 yea, that would use 2x the memory of the string Nov 03 22:44:38 i think StringReader is the answer Nov 03 22:44:44 are they really THAT large? Nov 03 22:45:08 JacobTab_, if you don't want to copy it, FileWriter should give you direct write Nov 03 22:45:21 thank you Mavrik i'll look into it Nov 03 22:45:27 why are you trying to use a Reader to write to a file? O.o Nov 03 22:45:39 also, all those advanced readers do processing on strings which will slow you down. Nov 03 22:45:45 was planning on using the reader to read the bytes w/o creating a new byte[] of size string.length() Nov 03 22:45:59 also, use binary serialization formats instead of JSON if that's what you're doing. Nov 03 22:46:16 i'm not using json Nov 03 22:46:38 JacobTab_ nio is awkwards, but maybe that ? Nov 03 22:46:47 nio? Nov 03 22:47:02 ah i see Nov 03 22:47:03 JacobTab_ i think square has okio Nov 03 22:47:18 never used it, try it for science ! Nov 03 22:47:21 yeah i dont think you can make a source out of a string though Nov 03 22:47:56 oh, ByteString might be useful Nov 03 22:48:22 Mavrik ok I see, I'm not sure how to do this then... basically I just have a big svg image which I want to display in an imageview and let the user pan (it is much too big to fit on any screen). then I want to detect which pixel the user clicked on in the image. do I need to do density scaling for that? Nov 03 22:48:55 hmm Nov 03 22:50:24 Mavrik i think filewriter will work best Nov 03 22:50:27 thx for the suggestion Nov 03 22:58:17 looks like google is pushing lollipop to AOSP Nov 03 23:00:10 * [new branch] lollipop-release -> aosp/lollipop-release Nov 03 23:00:12 seems so Nov 03 23:02:16 Mavrik if I do density scaling then will the pixels in the imageview be the same as pixels in the image? Nov 03 23:02:33 uh Nov 03 23:02:35 no. Nov 03 23:02:48 I suggest you look up on how Android renders bitmaps and other drawables. Nov 03 23:04:21 http://googledevelopers.blogspot.com/2014/11/material-design-gets-more-material.html Nov 03 23:04:45 Mavrik ok I will read about it thanks Nov 03 23:09:09 so is anyone else here using a navigation drawer with a static toggle? Nov 03 23:11:05 Hi, is this the correct way to handle a singleton SQLiteDatabase object? Im getting NullPointer exceptions and I'm afraid I'm handling getWriteableDatabase() wrong.. http://pastie.org/9694279 Nov 03 23:15:57 not paying attention, but Okio is legit Nov 03 23:19:43 JakeWharton: have y'all released a better core java language api yet? Nov 03 23:19:51 Okio replaces java.io Nov 03 23:19:58 yeah, you need to do all the rest of it Nov 03 23:20:06 just get rid of all that java.* crap :) Nov 03 23:20:09 haha Nov 03 23:23:01 Can anyone help me figure out why I get an error when I press cancel on the game services signin dialog? Nov 03 23:24:19 JesusFreke why stop there, a new language and vm too :) Nov 03 23:24:32 okvm Nov 03 23:24:40 JakeScript Nov 03 23:25:29 all the keywords are swear words and complaints Nov 03 23:26:21 False is FuckYou? Nov 03 23:26:44 or maybe FuckNo Nov 03 23:27:19 anyway, we probably shouldn't go down that avenue :) Nov 03 23:27:19 hey anyone know if there are standard icons for the new Toolbar navigation buttons? The Google apps have some sweet close & back icons that look standard, but dont appear to be packaged with api 21 Nov 03 23:27:42 JakeWharton: how does square justify the time for you guys to make all these frameworks? Nov 03 23:28:16 Material Design blows Nov 03 23:28:26 btw Nov 03 23:28:48 Too flat. Nov 03 23:28:49 bankai_au: they're made out of our necessity Nov 03 23:34:17 Hi! Nov 03 23:34:46 Have any of you seen this issue when executing make -j4 in the SDK? awk: fatal: cannot open file `sdk/files/tools_source.properties' for reading (No such file or directory) Nov 03 23:35:05 I HAVE added awk to PATH. Nov 03 23:35:52 It seems like I'm missing some important files. The code builds fine, but still I'd like to make this error fixed somehow. Nov 03 23:36:18 I think I've found the right file to use, but I don't know where to actually put it. Nov 03 23:36:41 I figured out what is causing the error, but I'm not sure why. BaseGameUtils.showActivityResultError causes the error Nov 03 23:39:34 gopirate: Was that ME that you replied to? Nov 03 23:40:51 Umeaboy: no, sorry Nov 03 23:41:07 OK. Nov 03 23:41:12 Anyone else? Nov 03 23:45:59 AS 0.9.1 update Nov 03 23:46:29 Hey, trying to install the SDK. Using the sdk manager to install all the components. But it forces it all into my home folder. When I installed the SDK I told it to install on my secondary hard drive. My main drive is a smaller SSD. How can I force it to install all the components on my other drive? Nov 03 23:46:40 symlink? Nov 03 23:46:52 on windows, use a dir junction Nov 03 23:47:15 Ugh... Seriously? There isn't a preference somewhere to just tell it to use an alternative path? Nov 03 23:52:24 Anyone know why my G+ signin button doesn't work? I set onClick and the function isn't being called when I press the button Nov 03 23:58:40 gradle plugin update too :) Nov 04 00:00:03 g00s: clockwork Nov 04 00:00:08 never update to .0s Nov 04 00:00:19 yeah Nov 04 00:06:07 g00s, wat? (re: multidex) so I can't run apps that use brand new features. what else is new? :p Nov 04 00:10:00 oops, ide error "Do not call synchronous refresh under read lock (except from EDT) - this will cause a deadlock if there are any events to fire." Nov 04 00:11:02 Is it possible to use @dimen/someValue in styles.xml ? cause it seems to me it doesn't work. Nov 04 00:11:17 although iosched app uses it https://github.com/google/iosched/blob/master/android/src/main/res/values/styles.xml Nov 04 00:11:20 yes Nov 04 00:12:01 hmmm ... AS gives me an error : Error:(15, 21) No resource found that matches the given name: attr 'emptySize'. Nov 04 00:12:13 code is : Nov 04 00:12:30 the error is not with the dimen, as it states Nov 04 00:12:47 there is no attribute of that name defined Nov 04 00:13:03 style names are also TitleCased by convention Nov 04 00:13:14 but that's not really a problem Nov 04 00:13:21 yeap you are right! Nov 04 00:13:47 forgot to add first the attrs.xml file. Thank you!! Nov 04 00:15:23 JakeWharton i tried wrapping Bluetooth adapter discovery in an Observable today; bit i think i failed. The discovery can start from any app and you get notified by updates from broadcast receivers so all apps get those once registered, whether they started scan or not. So this seems like a case where i'm wrapping shared mutable state; and then i realized it wasn't possible. is that the case ? Nov 04 00:16:34 everybody's going crazy about this upcoming L... what's the point? so many noobs have yet to grasp current android releases and philosophy... Nov 04 00:17:18 maybe they're not the noobs Nov 04 00:21:10 ravioli ... what philosophy ? O.o Nov 04 00:21:47 ravioli likes to live 5 years in the past Nov 04 00:22:12 I like that you guys are also calling him ravioli Nov 04 00:22:29 Ravioli sounds delicious right about now… Nov 04 00:23:53 g00s, the concept of activities, intents, services, resources, ids... all that. I see a lot of people lately struggling with those. Nov 04 00:24:06 Hmm.. I got "if (database == null) database = super.getWritableDatabase();" in my constructor of the SQLiteOpenHelper, but onCreate is never called. suggestions? Nov 04 00:24:18 hm, but the channel has more noobs over the past 1-2 years Nov 04 00:25:09 does it? dunno, I've seen a noticable increase in the past few days, maybe up to a week Nov 04 00:25:20 i think ravilov secretly wishes we were still all using GingerBread Nov 04 00:25:29 ^ this is true Nov 04 00:25:52 g00s, there's nothing secret about it :p Nov 04 00:26:14 Sorry for bugging you guys like this the whole time, but I'm breaking my head at this for the whole evening :p Nov 04 00:26:58 Nindustries, what exactly do you expect us to do? Nov 04 00:27:18 ravilov, I just think I'm missing something obvious Nov 04 00:27:29 onCreate won't be called if the db file already exists Nov 04 00:29:01 Nindustries, probably, but how are we to know? we don't have your code Nov 04 00:35:23 And now my tables don't exist, argh.. Nov 04 00:36:06 I think your system is just falling apart as we speak Nov 04 00:37:19 It feels like it Nov 04 00:37:30 either my laptop or it's me Nov 04 00:37:53 or both, why choose Nov 04 00:38:17 hello got a quick question, how can i get logs from my android app on a nexus 5 when my app crashes? Nov 04 00:38:39 I have a bunch of log calls but not sure how to actually get a file to look at? Nov 04 00:39:43 example Nov 04 00:39:44 Log.e("sendGeoTrackingToBackend", "Error", e); Nov 04 00:39:49 who said there is a file at all? Nov 04 00:40:02 just wondering how i can trck errors? Nov 04 00:40:10 ever heard of logcat? if not, go google Nov 04 00:40:21 its my first app so thats why i ask Nov 04 00:40:35 yes, but i dont beleive it showed anything on the device Nov 04 00:40:49 must it be running while errors are detected? Nov 04 00:41:09 softcoder check out crashlytics Nov 04 00:41:13 i guess i want to know the best way to track down crashs in andorid Nov 04 00:41:54 first things first. learn about logcat ASAP. Nov 04 00:41:54 i'm looking for free solutions as the app is free Nov 04 00:42:18 ok, must i run logcat while my app calls the log api to see anything? Nov 04 00:42:28 lol. check this error http://pastie.org/9694376 Nov 04 00:42:28 "Oh, you just created a table? How about we can't find that one?" Nov 04 00:42:28 softcoder, usb debugging and logcat? Nov 04 00:42:32 or can i run it after the fact to see things logged? Nov 04 00:42:53 uh forget what i said i didn't realize you didnt know what logcat is Nov 04 00:43:40 softcoder, have you googled yet? do that instead of asking more unnecessary questions. Nov 04 00:43:43 * Nindustries sticks nails in his eyes Nov 04 00:43:52 yes of course i did, i used it before coming here Nov 04 00:44:05 not convincing Nov 04 00:44:15 softcoder i cn honestly say youer' the first person to come here that didnt know how to use logcat Nov 04 00:44:38 ok let me ask this before thinking of logcat Nov 04 00:44:48 the android log api does it write to files? Nov 04 00:44:58 or does it output to some in memory buffer only? Nov 04 00:44:59 Do you guys know the difference between getWritableDatabase() and the SQLiteDatabase argument given in the onCreate ? Nov 04 00:45:35 Because I'm on a nervous breakdown Nov 04 00:46:12 softcoder, forget any files Nov 04 00:46:56 Alright, if anyone could take a look at my database class that would be great http://pastie.org/9694382 Nov 04 00:46:58 I'm broken. Nov 04 00:47:14 bad Nov 04 00:47:15 if (database == null) database = super.getWritableDatabase(); Nov 04 00:47:18 use braces Nov 04 00:47:21 dont be bad Nov 04 00:48:07 meh Nov 04 00:48:09 It works eh Nov 04 00:48:11 why are you overwriting your db variable whenever you get a db object as a method parameter to onUPgrade, etc Nov 04 00:48:36 I've been debugging that class all day, and I tought maybe the db variable changed or something Nov 04 00:48:46 this is bad query = Utils.removeLastChar(query); //remove last comma Nov 04 00:49:13 put each line in a list and then to TextUtils.join(",", list) Nov 04 00:49:48 Ah, good idea. Nov 04 00:50:30 JacobTabak, Do you see anything obvious that could explain why my tables aren't created? Nov 04 00:50:49 It did work all until I started to fiddle around with that singleton database variable.. Nov 04 00:50:56 have you changed your db version? Nov 04 00:50:57 Requesting resource 0x7f040001 failed because it is complex?? Nov 04 00:51:01 I had getWritableDatabase() everywhere :P Nov 04 00:51:10 yes Nov 04 00:51:13 several times Nov 04 00:51:48 ah i fixed. wrong context.. Nov 04 00:51:50 Context testContext = getInstrumentation().getContext(); Nov 04 00:52:42 I see in the log it's upgrading the db Nov 04 00:52:51 and it executes the create tables Nov 04 00:52:57 and then it can't find them Nov 04 00:53:22 you're clearly doing something wrong :P Nov 04 00:53:48 I sure hope so, actually Nov 04 00:54:04 Because I have been staring at this whole day :/ Nov 04 00:54:56 theres no reason to have drop tables in your create Nov 04 00:55:03 create tables Nov 04 00:55:27 hm Nov 04 00:56:02 Not that it matters :p Nov 04 00:57:14 it does matter Nov 04 00:57:19 if you have all this dead code it can hide the problem Nov 04 00:57:30 u have to lower the surface area when debugging Nov 04 00:57:46 Well, I removed it, that's why I said it doesn't matter Nov 04 00:57:51 Thanks for the improvements anyway Nov 04 00:58:03 dont keep a reference to the database Nov 04 00:58:15 "Once opened successfully, the database is cached, so you can call this method every time you need to write to the database." Nov 04 00:58:28 so just call a getWritableDatabase every time? Nov 04 00:58:30 yes Nov 04 00:59:02 get rid of all these null checks Nov 04 00:59:45 dont implement onDowngrade Nov 04 01:00:17 Alright, removed the ref Nov 04 01:00:29 what are you doing in setuptables and when do you call addconstraint? Nov 04 01:01:13 try doing an insert and a query in your createTables method Nov 04 01:01:19 http://pastie.org/9694401 Nov 04 01:01:24 That's my setupTables Nov 04 01:01:36 basically use a map for creating tables more easily Nov 04 01:02:32 hm Nov 04 01:02:34 lol i see your problem Nov 04 01:02:35 derp Nov 04 01:02:45 TELL MEH Nov 04 01:02:46 PLS Nov 04 01:02:55 slap yourself first Nov 04 01:03:07 * Nindustries slaps himself with a big trout Nov 04 01:03:07 or find it because now that i've found it Nov 04 01:03:09 you know it's obvious Nov 04 01:03:16 fuck Nov 04 01:03:19 hint - it's in the last paste Nov 04 01:03:26 it's not the commented createTables :) Nov 04 01:03:34 I just did that, it's duplicate Nov 04 01:03:50 ok, do u call setuptables before or after you create the table Nov 04 01:04:06 public void onCreate(SQLiteDatabase db) { Nov 04 01:04:06 setupTables(db); Nov 04 01:04:06 createTables(db); Nov 04 01:04:09 woops Nov 04 01:04:14 it was a rhetorical question Nov 04 01:04:21 after, ofc Nov 04 01:04:33 so it's probably a bad idea to add a constraint to a table before it exists ya? Nov 04 01:04:46 . Nov 04 01:04:46 . Nov 04 01:04:46 . Nov 04 01:05:49 hmm, still "getDatabase called recursively" Nov 04 01:05:59 ok take a step back Nov 04 01:06:03 that was your issue, now you have another one Nov 04 01:06:08 get out of the "this doesnt work" mindset Nov 04 01:06:10 and fix it :P Nov 04 01:06:18 Thanks for the help so far man :D Nov 04 01:06:32 You sure I can just return the getWritableDatabase() each time? Nov 04 01:06:58 My mind has been poisoned by the google pages I read about it, hehe Nov 04 01:07:03 i pasted the documentation Nov 04 01:07:11 for getWritableDatabase Nov 04 01:07:30 ah, ofc Nov 04 01:07:36 K Nov 04 01:07:54 hmm Nov 04 01:10:31 hahaha Nov 04 01:10:34 /madness Nov 04 01:13:49 JacobTabak, so my table lostmodified exists and words doesn't now Nov 04 01:16:02 fix ur stuff Nov 04 01:17:35 if anyone needs to convert a png to bmp.. https://github.com/znwabudike/AndroidPNG2BMP Nov 04 01:18:36 lol Nov 04 01:19:06 windows bmp, that is Nov 04 01:19:41 tricknology why do such a silly thing Nov 04 01:20:16 because I have an SDK that refuses to take anything but a windows bmp Nov 04 01:20:20 JacobTabak, well well! Houston, I believe we have a takeoff Nov 04 01:20:27 *liftoff Nov 04 01:20:32 :/ Nov 04 01:20:35 it is stupid, but I had to get around it somehow, g00s Nov 04 01:20:35 Don't take my moment away Nov 04 01:21:58 Seriously, thanks for guiding me JacobTabak Nov 04 01:22:04 I almost gave up Nov 04 01:22:13 please pay the invoice in a timely fashion Nov 04 01:22:29 where do you live? Nov 04 01:22:32 I could pay in beercoin Nov 04 01:22:48 or tabak Nov 04 01:23:57 tabak always gets payback Nov 04 01:24:31 tabakcoin, hm Nov 04 01:24:37 smokin' good Nov 04 01:41:22 is there like a gson-powered object store Nov 04 01:41:34 for persisting small collections of objects Nov 04 01:41:51 without the complexity of a database Nov 04 01:42:09 im thinking recent searches, etc Nov 04 02:00:54 Hi! How can I create a simple "web server" like Airdroid, that can run in a local network? Is there any sample code? Nov 04 02:04:29 onto: just first link in google https://code.google.com/p/i-jetty/ Nov 04 02:04:55 is there anyway in google play to check why my app is incompatible with one user's device / Nov 04 02:06:56 gordon_: Isn't it an app and not a library? Nov 04 02:07:46 If I have two ListViews, do I need two separate adapters or can I flop between ListViews with a single adapter Nov 04 02:09:33 'flop'? Nov 04 02:13:10 gman23 you can use multiple instances of the same adapter class between listviews, if the lists are displaying teh same type of data Nov 04 02:14:33 could you use the same instance? Nov 04 02:14:58 with regard to the actual adapter view interaction it's stateless, right? Nov 04 02:15:06 yes Nov 04 02:15:22 you can use the same instance Nov 04 02:15:38 well that does depend on the implementation Nov 04 02:15:49 I use one adapter to drive my app, widget and notification in qicr Nov 04 02:15:53 eh Nov 04 02:16:05 i *love* those exotic phones Nov 04 02:16:06 arrayadapter for example Nov 04 02:16:14 I also use one instance to drive my drawer, dropdown and tabs for navigation Nov 04 02:16:31 how can I check what is wrong with apk ? any idea? Nov 04 02:16:41 JacobTabak, array adapter is completely stateless Nov 04 02:17:09 you can't use the same array adapter instance on 2 listviews with different data Nov 04 02:17:19 other than taking a context Nov 04 02:17:26 who said anything about different data Nov 04 02:17:31 me? Nov 04 02:17:35 look at my original comment Nov 04 02:18:13 that was never the question... Nov 04 02:18:30 gman23 do your lists have the same data? Nov 04 02:19:57 i guess my point is why would you assume his listviews have the same data, and that's why I answered his question the way that I did Nov 04 02:21:07 for example you could use ArrayAdapter for several listviews in your app and nobody would assume they would have the same data. Nov 04 02:25:18 JacobTabak: They have the same data, except I'm displaying different things based off of a single boolean Nov 04 02:26:01 I have my own view that will be displaying the list that my adapter provides it Nov 04 02:26:38 but this view needs to be generic enough that it can't have this data specific boolean check in it Nov 04 02:28:08 ok sounds like you should use 2 adapter, and put a boolean param in the constructor of the adapter ya? Nov 04 02:28:17 Yep Nov 04 02:28:19 Thanks Nov 04 02:29:57 http://www.ghacks.net/2013/05/06/find-out-why-apps-are-incompatible-with-your-android-device/ Nov 04 02:35:02 Does anyone know how to get a gradient looking smooth? Nov 04 02:35:08 I'm setting a gradient as the background of my Activity, and it looks really bad. I've googled, and I found an SO question (), but none of the suggestions helped. Nov 04 02:44:49 Hey guys, I have a question about implementing something like a calendar picker. Is there a way I can have a button in android that when you click on it a mini calendar pops up and then you select the date and it closes again and displays the date. Is that the CalendarView widget? Nov 04 02:45:00 Or is there another widget that can mimic that behavior? Nov 04 02:48:17 Mugwump101: Check out the "Date Pickers" category: Date Pickers Nov 04 02:48:23 * https://android-arsenal.com/free Nov 04 02:48:45 jrummy: i was just going to paste that site Nov 04 02:49:00 i like android arsenal. Can often find some useful stuff. Nov 04 02:49:12 dragorn what good stuff have you used from there ? Nov 04 02:49:17 (can also find some bizarre UX ideas that are a bad plan there) Nov 04 02:49:46 g00s: really only betterpickers, but I keep wanting to use more :P Nov 04 02:49:52 g00s: definitely used some stuff for reference Nov 04 02:50:05 i didn't like any pinned headers / category listviews from there, but was enough to get me writing my own Nov 04 02:50:17 ah I see date picker, Can I use date picker to show calendar view instead of picker style view? Nov 04 02:50:18 Thanks Nov 04 02:53:21 Mugwump101: Your best bet is to just go through the list and try out a couple libraries. Any view can be in a dialog. Nov 04 02:58:07 I can't use libraries :( Nov 04 02:58:19 PM doesn't believe in them Nov 04 02:58:32 What did I just walk into? Nov 04 02:59:06 Is this a wheel-inventing session? Nov 04 02:59:37 triangle ones Nov 04 02:59:39 unfortunately, it could be Nov 04 02:59:56 So there's no native implementation of something like this? **** ENDING LOGGING AT Tue Nov 04 03:00:00 2014