**** BEGIN LOGGING AT Fri Jun 19 02:59:59 2015 Jun 19 03:06:04 TacticalJoke you there Jun 19 03:11:16 why does't my onCreate log.d Jun 19 03:11:22 is that the onyl way to log to console? Jun 19 03:11:41 Log.i() works for me Jun 19 03:11:47 Are you lookin in logcat Jun 19 03:12:03 ya Jun 19 03:12:23 hm Jun 19 03:12:23 Try log.i Jun 19 03:12:25 doesnt work Jun 19 03:12:27 i just tried log.i Jun 19 03:12:36 can i show u my myactivity.java Jun 19 03:12:46 Sure Jun 19 03:13:17 http://pastebin.com/xiLVyvSG Jun 19 03:14:11 Your doing the log in a try block Jun 19 03:14:19 its prob throwing an exception and never reaching that point Jun 19 03:14:31 ? Jun 19 03:15:02 Oh thats all commented out Jun 19 03:15:34 Kinda hard to read in pastebin Jun 19 03:16:49 =/ Jun 19 03:17:03 yeah, so i wanted my onCreate to log.i to atleast make sure it gets called Jun 19 03:18:15 bubbely: Why is 'big' a field? That's a really bad idea, and it's completely unnecessary. Jun 19 03:18:25 big is how i publishProgress Jun 19 03:19:21 It shouldn't be a field. Jun 19 03:19:35 ok. Jun 19 03:19:43 firstly though, how come my onCreate isnt being called Jun 19 03:20:23 Actually, I guess it has to be in that snippet, because sendMessage reads it. But it's still being used badly (e.g., it's assigned and returned from doInBackground). Jun 19 03:21:15 Try disabling all LogCat filters and then typing "test" in the search box. Jun 19 03:23:51 oh Jun 19 03:23:54 yeah it shows now Jun 19 03:27:48 hm.. now, my sendMessage isn't being called Jun 19 03:32:15 just straight up Shrooms Jun 19 03:33:23 ;p\ Jun 19 03:33:36 haha Jun 19 03:34:15 Shrooms you seem like the kind of person to be good with color schemes? Jun 19 03:35:19 Does anyone else have Android Studio xml auto complete take a dump randomly Jun 19 03:35:39 take a dump? Jun 19 03:36:21 stop working Jun 19 03:36:31 desmin88 hm, doesn't work on support lib stuff Jun 19 03:36:51 for me anyhow Jun 19 03:36:59 itll randomly stop autocompleting stuff from places like dimen or style, or not even bring up values like layout_xxx Jun 19 03:37:41 yeah ... i stop paying attention to what exactly, but custom attrs , etc yeah Jun 19 03:38:51 if i was in some flow state i'd probably find it annoying ... but i've noticed i hardly ever get into flow state with android Jun 19 03:39:10 always something there to derail me .. (song) Jun 19 03:39:27 to remind me haha Jun 19 03:39:30 I hate how it suddenly thinks I'm using the US keyboard layout. Jun 19 03:39:30 good tune Jun 19 03:39:40 And I have a hard time typing " and so on. Jun 19 03:43:26 is there a way to view when an api was added to an api version? Jun 19 03:45:01 dcope: Look for the @since tag Jun 19 03:46:36 CedricBeust: thanks, this is odd though. there isn't one for the method i'm trying to find. Jun 19 03:46:39 With my XML, should my FAB not be pushed up by the snackbar? http://pastie.org/10248048 Instead, the snackbar overlays the FAB. Jun 19 03:46:47 I'm creating the snackbar with root view as the coordinator layout Jun 19 03:46:58 http://pastie.org/private/r5owam9q10n94ly3iz8ua Jun 19 03:49:53 the method specifically is onRequestDisallowInterceptTouchEvent Jun 19 03:49:59 i just want to figure out when that was added Jun 19 03:50:28 api level 1 Jun 19 03:51:33 desmin88: if so, how do some applications compile without overriding it? Jun 19 03:51:45 dcope: The v7 RecyclerView library goes down to API 7. Jun 19 03:51:52 The non-v7 one is API 21, I think. Jun 19 03:52:04 ah ok, perfect. thank you. Jun 19 03:52:43 i was unsure of how this was working: https://github.com/timehop/sticky-headers-recyclerview/blob/master/library/src/main/java/com/timehop/stickyheadersrecyclerview/StickyRecyclerHeadersTouchListener.java Jun 19 03:52:47 without overriding that method Jun 19 03:57:31 Do I have to set loader id, callbacks and init loadmanager for each Activity/Fragment? Or is it one per app? Jun 19 04:00:09 Strange -- I don't see that third method here: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v7/recyclerview/src/android/support/v7/widget/RecyclerView.java#6992 Jun 19 04:00:17 And I do see it here: https://developer.android.com/reference/android/support/v7/widget/RecyclerView.OnItemTouchListener.html#onRequestDisallowInterceptTouchEvent(boolean) Jun 19 04:01:47 TacticalJoke: yeah, i'm quite confused too Jun 19 04:04:41 Also, I can't find the framework RecyclerView anywhere. What is going on? lol Jun 19 04:04:46 I can't find documentation for it. Jun 19 04:06:48 I could've sworn there was a non-support RecyclerView. Now it seems to have disappeared. Jun 19 04:07:01 is the design support lib this messed up or what am i doing wrong? http://pastie.org/10248060 The snackbar is overlaying the fab, not pushing it up. Jun 19 04:07:18 TacticalJoke i think its just support lib Jun 19 04:12:29 TacticalJoke: is there some trick to getting a class to build using a newer api (22) and not having it override that method? Jun 19 04:25:19 Does anyone have an idea on how to go about creating a basic, flexible JSON parser? I have a coding challenge that disallows use of third party libraries, so I can't use something like GSON or Jackson. Jun 19 04:25:55 t0astt: org.json is pretty simple IMHO. Jun 19 04:26:39 surfb21: But I'm writing this parser with the assumption that the class could have no constructors or mutators... Jun 19 04:27:10 what kinda challenge is this Jun 19 04:27:54 I applied for a job a few weeks ago, and I just now got a coding challenge from them. I've already accepted another job though, but I'm doing this now because it seems like a fun educational challenge Jun 19 04:28:01 Let me show you what I have so far Jun 19 04:28:04 t0astt: You are creating your own parser from scratch or you are just parsing some JSON? Jun 19 04:28:47 surfb21: I need to parse JSON into a POJO, but there are bonus points if the parser is flexible/modular (ie. able to parse any object I throw at it, not just an object that is required by the challenge) Jun 19 04:29:28 https://gist.github.com/anonymous/4871dc3317e80536e727 Jun 19 04:29:31 this is what I have so far Jun 19 04:30:12 I'm stuck on line 43, where I've matched fields in the object to fields in the JSON object, but I have no idea how to set a field to a certain value now Jun 19 04:30:33 I was thinking maybe something like obj.field = "something", but I don't think that works... Jun 19 04:30:35 I haven't looked at how the current parses do it but I would use reflection with an annotation. Parse the class for annotations and match them with any JSON keys Jun 19 04:30:56 t0astt: hey Jun 19 04:30:59 Is that pretty simple? I haven't worked with annotations yet Jun 19 04:31:02 Napalm: Heya! Jun 19 04:31:12 t0astt: thats not a JSON parser Jun 19 04:31:30 Napalm: What would you call it? A serializer? Jun 19 04:31:33 t0astt: your using a pre-built json library Jun 19 04:31:55 lol Jun 19 04:32:21 Ok yeah, I mean serializing I think Jun 19 04:32:25 not parsing :P Jun 19 04:32:39 you said the challenge was to build your own parser without using a lbirary? Jun 19 04:32:42 library Jun 19 04:32:53 I messed up, I mean I need to build a serializer Jun 19 04:32:58 boring Jun 19 04:33:05 As in take a JSON string, then serialize it into POJOs Jun 19 04:33:19 well thats a deserializer Jun 19 04:33:22 make up your mind Jun 19 04:33:32 Deserializer is what I want Jun 19 04:33:55 json -> pojo = deserializer .. pojo -> json = serializer Jun 19 04:34:06 Yeap, deserializer then Jun 19 04:34:14 but without using a library? Jun 19 04:34:19 Yes Jun 19 04:34:24 i mean your still using a library here Jun 19 04:34:25 I am not allowed to use a third party library Jun 19 04:34:33 Well, anything outside of the Android SDK Jun 19 04:34:45 I can write my own though Jun 19 04:34:54 if they explictly say no-third-party and its a challenge normally it mans .. all your own code Jun 19 04:35:11 Well, they said in the challenge this can normally be done in 1-2 hours... Jun 19 04:35:28 yea, easy Jun 19 04:35:40 dude, json isnt complicated Jun 19 04:36:00 https://gist.github.com/anonymous/56bd5b7033cc8af7acfa these are the instructions Jun 19 04:36:18 Napalm: Then going by my gist, am I on the right track at all? Jun 19 04:37:24 sounds like you should be able to use android's json stuff then right ? Jun 19 04:37:29 says nothing about json Jun 19 04:37:30 Yes Jun 19 04:37:42 hey g00s Jun 19 04:37:45 what exactly is the requirement? All the gist says is that it should take 1-2 hrs and no third-party libraries Jun 19 04:37:47 hey Napalm Jun 19 04:37:59 So I have my FAB in a CoordLayout. http://pastie.org/10248060 When I create my Snackbars (base view is the coordlayout) they overlay the FAB instead of animating it up. Any clues why? Jun 19 04:38:08 Hold on, I'll paste the whole pdf... lemme just remove the company name Jun 19 04:38:09 g00s: couple of interesting blog posts for ya Jun 19 04:38:10 https://medium.com/on-coding/become-a-better-programmer-1bbefe8d7f71 Jun 19 04:38:15 https://medium.com/bpxl-craft/evaluating-third-party-libraries-81dce02aa465 Jun 19 04:38:18 really good Jun 19 04:38:44 i've been thinking about making my own PDF viewer using TextureView/SurfaceTexture Jun 19 04:38:51 would be interesting Jun 19 04:39:15 Napalm yeah, the one about evluating 3rd party libraries - interesting. very similar to the rules we had in enterprise Jun 19 04:39:34 desmin88: you dont use the CoordinatorLayout for the view passed to snackbar Jun 19 04:39:47 you just pass the fab or recyclerview or any child view inside it Jun 19 04:40:45 desmin88 did you see https://medium.com/ribot-labs/exploring-the-new-android-design-support-library-b7cda56d2c32 Jun 19 04:41:04 also http://hmkcode.com/material-design-app-android-design-support-library-appcompat/ Jun 19 04:41:14 maybe some hints there Jun 19 04:41:21 I've read both Jun 19 04:41:32 cool Jun 19 04:41:37 g00s: check it https://gist.github.com/slightfoot/171f5002d06089cae460 Jun 19 04:42:00 From what I can tell from both of those pages I'm doing it right Jun 19 04:42:03 screenshots in comments at bottom Jun 19 04:42:27 desmin88: did you read what i said? Jun 19 04:42:47 Napalm, g00s, surfb21: Here is the full challenge: https://drive.google.com/file/d/0B2IWRYJVAlfEdWl5N0liYnhmUTA/view?usp=sharing Jun 19 04:42:55 Yes, I've the recyclerview Jun 19 04:43:26 err, tried the recyclerview as the root view for the snackbar Jun 19 04:44:34 t0astt: yes, so they are looking for your generic android skills and dont care about json parsing Jun 19 04:44:48 t0astt: so yes, use the JSONObject stuff in org.json package Jun 19 04:45:23 hmm Jun 19 04:45:39 Napalm: So basically, don't bother writing a generic deserializer? Jun 19 04:45:50 well no Jun 19 04:45:54 no point Jun 19 04:46:05 they want a view.. you give it the json and it displays the content Jun 19 04:46:17 so the view can have a private inner class for the model Jun 19 04:46:54 and when they/you call setJson on the view it will use JSONObject and family to deserialize in to your own object and then display the content Jun 19 04:47:08 Ok. I was just going to have the model in a separate class. Is there any advantage/disadvantage to having the model in a separate class? Jun 19 04:47:21 Napalm: Solved. Proguard was obfuscating the FAB.Behavior class for interacting with the coordinator layout, and the coordlayout couldnt find the class to instantiate it. Jun 19 04:48:18 no.. but from what I can tell .. they say "We would like you to build a simple “watch view” using this feed." which means they just want that Jun 19 04:48:53 Napalm do you mind if I PM you? Jun 19 04:49:01 if you want Jun 19 04:50:29 Napalm one thing that article does not emphasize is the quality of the documentation Jun 19 04:50:43 imho, api is only as good as the docs. if i see shitty docs, i pass it over Jun 19 04:51:07 that means , usually laziness and unprofessional ;) Jun 19 04:57:10 Napalm also, lets not forget http://www.itworld.com/article/2936575/security/software-applications-have-on-average-24-vulnerabilities-inherited-from-buggy-components.html Jun 19 04:57:57 g00s: i'll take a look in a bit Jun 19 04:58:04 g00s: Projects with lousy docs are often hobbyist or research projects... in which case it's not a bad idea to send them a message so they know they have interested users, then check back in a few months and see whether they intend to support it or not. Jun 19 04:58:17 is strings.xml good for the entire project, or does each activity need its own versino Jun 19 05:00:44 this WebAssembly stuff looks really cool. i guess Kotlin guys should actually target this insead Jun 19 05:01:00 bubbely, it's good for the entire project Jun 19 05:01:31 why is it some stuff wouldn't show ? Jun 19 05:05:08 https://gist.github.com/anonymous/d4a2cec2189e76c7a34f I have a Fragment which I inflate. It has an ImageView child element the ImageView is wrapped into PhotoView which adds zooms/pan etc.. implements onTouch. Jun 19 05:05:16 However my app crashed right away Jun 19 05:05:26 lol <- Jun 19 05:05:55 Ologn: my R.id.NOTICESSOME, not notices all in my strings,xml Jun 19 05:06:07 what can i do about it Jun 19 05:06:53 :) Jun 19 05:06:59 . Jun 19 05:12:21 More ProGaurd woes. CoordinatorLayout cant seem to inflate my custom layout behavior even though I've told proguard to keep the class Jun 19 05:13:03 can somenoe tell me why some of my strings arent showing? do i have to rebuild the entire project Jun 19 05:13:10 i mean they arent showing under R.id. Jun 19 05:13:15 "Could not inflate Behavior subclass com.ucatholic.android.view.component.ScrollAwareFABBehavior" Jun 19 05:14:09 desmin88: what do u think Jun 19 05:22:36 bubbely: You could probably find the answer in Google with the smallest effort. Jun 19 05:23:02 TacticalJoke: whats the name of that website android-? it has widget search engine Jun 19 05:23:11 nm Jun 19 05:23:14 android-arsenal Jun 19 05:31:37 Has anyone made a FAB menu using the design support lib? Jun 19 05:31:45 lol Jun 19 05:31:59 desmin88 screw that fab ! Jun 19 05:32:11 right? Jun 19 05:32:27 maybe use 3rd party until design lib works better Jun 19 05:33:42 I'm trying to use the new camera2 API to completely manually control the camera, but even though I turned everything off and set any values manually, the camera is still somehow changing the color/exposure as I can see when I move the view around a light source; what could that be? and how can I turn that off? Jun 19 05:52:46 hehe https://en.wikipedia.org/wiki/Composition_over_inheritance#/media/File:UML_diagram_of_composition_over_inheritance.svg Jun 19 05:52:54 Quackable, awesome ! Jun 19 05:58:30 I have this elusive bug, for some reason certail HTML formatted text displays as blank in a textview Jun 19 05:58:45 I can scroll as far as the text, if visible, would be long, but I can't see it Jun 19 06:06:39 i downloaded the new Google Clock from Play ... Jun 19 06:06:49 its purple. i guess that makes it material with its FAB :D Jun 19 06:07:13 This is crazy, I can click on an invisible link in the TextView and it will open up Jun 19 06:15:28 And for some reason, for a split second after clicking on the 'inivisible link' the text is visible before the link opens up in the browser Jun 19 06:22:56 desmin88, that's a useful sounding behavior Jun 19 06:23:02 right? Jun 19 06:23:15 desmin88, I'd like to see the impl Jun 19 06:23:18 sure Jun 19 06:23:29 I mean for fab Jun 19 06:24:06 oh Jun 19 06:24:33 its in material design spec, what i meant was a normal fab which flings open 3 mini fabs Jun 19 06:31:08 Oh, I just made mine a simple toolbar Jun 19 06:31:10 Hi, so I'm using retrofit. I have a method which returns a string, and I want to get that string from a retrofit call. But I'm getting nullpointer exceptions as the string I'm returning is empty. Which I guess is because the retrofit call is handled in a different thread. So what's the suggested way to get data from retrofit and return that from a function? Jun 19 06:32:40 pfn: What does implementation look like code wise Jun 19 06:32:58 desmin88 its FABs all the way down Jun 19 06:33:53 desmin88, https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/BrowseActivity.scala#L469 Jun 19 06:34:40 pfn: Thanks I will have a look :) Jun 19 06:35:12 I figured out what made my text with links invisible Jun 19 06:35:13 https://github.com/sufficientlysecure/html-textview/blob/master/HtmlTextView/src/main/java/org/sufficientlysecure/htmltextview/LocalLinkMovementMethod.java Jun 19 06:35:37 I was using a variant of this to allow for link clickage, but it made my text invisible for some reason Jun 19 06:36:48 How do i access R from a subclass ? Jun 19 06:36:56 import it Jun 19 06:37:11 desmin88: how should i import it ? Jun 19 06:37:54 desmin88: its says this package R does not exist Jun 19 06:38:17 boodllebat: import com.example.appname.R; Jun 19 06:40:50 Sophomore: but it works with the super class that is my mainactivity Jun 19 06:41:59 boodllebat: Pass context to your subclass and then try to access it? I'm not sure though. Jun 19 06:42:09 Maybe the subclass is in a subpackage. Jun 19 07:07:59 hi is there a defacto guide to convert an auto conf autogen.sh/configure/make to NDK Android.mk Jun 19 07:19:18 i have my main.xml in layout folder but it says setContentView(R.layout.main); not found Jun 19 07:22:27 clean clean clean? Jun 19 07:27:12 The only fab library with support for menus is https://github.com/futuresimple/android-floating-action-button but it doesnt do quick return on its own Jun 19 07:27:13 fffck Jun 19 07:30:55 that little circular view, causing so much trouble ! Jun 19 07:32:35 indeed Jun 19 07:50:43 g00s: still here? Jun 19 07:53:46 hey thepoosh Jun 19 07:53:58 uploading to beta a picture message version! Jun 19 07:54:00 yay Jun 19 07:55:04 So I'm trying to remove some unused assets from a library during build: http://pastie.org/10248256 Jun 19 07:55:16 except it doesn't delete them... any idea whats wrong with my build script Jun 19 07:55:31 thepoosh oh yeah that was the next big feature Jun 19 07:55:43 yep Jun 19 07:55:56 we'll see over the weekend how it goes and rollout to 5% Jun 19 07:56:45 thepoosh do 2 people need the feature to work, or only one ? Jun 19 07:57:06 iOS already implemented picture sending Jun 19 07:57:13 now we are able to send as well Jun 19 07:57:18 oic Jun 19 07:58:22 nevermind, im an idiot Jun 19 08:03:15 woop woop, apk is under 3megs Jun 19 08:14:21 Man Otto does not fuck around with accidentally forgetting to unregister Jun 19 08:14:39 runtimeexception's your ass Jun 19 08:18:23 can fragment contain activity ? Jun 19 08:18:38 no Jun 19 08:19:56 desmin88: i had a activity i mean a single page it was working just fine but later i decided to add tabs to action bar now i dont know how to show my activity in one tab and other one on second tab Jun 19 08:20:20 you need to have on activity with tabs Jun 19 08:20:24 and then fragments for each tab Jun 19 08:20:42 one* Jun 19 08:21:00 desmin88: i was following this tutorial , i have completed this tutorial also its work fine for me can you explain me with help of this thing http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ Jun 19 08:21:16 no i cant Jun 19 08:21:27 anymore than i already have Jun 19 08:21:38 Each 'screen' you want to show under a tab should be a fragment. Jun 19 08:21:43 desmin88: ok Jun 19 08:22:00 desmin88: now how to add activity Jun 19 08:26:10 i had a activity i mean a single page it was working just fine but later i decided to add tabs to action bar now i dont know how to show my activity in one tab and other one on second tab , i have completed this tutorial also its working fine for me can you explain me with help of this thing http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ now i wanna add mmy own activity content to fragments Jun 19 08:31:04 Hey Jun 19 08:32:30 So I'm using AppCompat for adding material design whatnot to an app, and have it compatible all the way back to api 9... Jun 19 08:33:10 You poor thing. Jun 19 08:35:58 Simple theming doesn't do the background tinting properly on buttons due to a bug in the support library... For a fix I want to install a layoutinflater factory that tints the buttons anyway. Jun 19 08:37:26 But I want a LayoutInflater Factory that creates the view normally, then adjusts the buttons. Jun 19 08:38:05 I have the following raw query where orderby is not working. I want to sort by attr5: select distinct a.attr1, a.attr2, a.attr3, a.attr4, a.attr5, a.attr6, a.attr7, a.attr8, a.attr9 from table1 a join table2 b on b.attr1=a.attr1 where b.attr6=? order by a.attr5 ASC How can I fix this? Jun 19 08:42:59 hi all Jun 19 08:43:09 quick question: can I detect which User is in the foreground Jun 19 08:43:24 Or can I disable other users? Jun 19 08:43:34 I want to disable switching of users... Jun 19 08:43:42 In Android 5 of course :) Jun 19 08:51:33 I'm trying to use the new camera2 API to completely manually control the camera, but even though I turned everything off and set any values manually, the camera is still somehow changing the color/exposure as I can see when I move the view around a light source; what could that be? and how can I turn that off? Jun 19 08:55:24 Is there a way to play a media with the default media player? Jun 19 08:55:40 http://stackoverflow.com/questions/10867957/android-playing-a-song-file-using-default-music-player the solutions here do not work Jun 19 08:56:04 yoavst: when you try them, does your phone turn into a giraffe? Jun 19 08:56:37 First intent doesn't work, second should not work because of missing stock music player. So I guess not. Jun 19 09:03:15 Maybe something with CATEGORY_APP_MUSIC? Jun 19 09:03:40 maybe a basic question, but when an intent containing fragments is destroyed, do the same methods that execute in the intent execute in the current fragment, such as onDestroy()? Jun 19 09:04:27 An intent containing fragments? Do you mean Activity? Jun 19 09:04:40 yea Jun 19 09:04:41 sorry Jun 19 09:05:03 When an Activity shuts down and gets destroyed, the Fragments follow. So yes, the Fragment gets its onDestroy called. Jun 19 09:05:29 neXyon, it's completely possible that the SoC itself or the driver will change camera parameters no matter what you do Jun 19 09:05:41 neXyon, does your device even support the full-level Camera2 interface? Jun 19 09:05:56 EwoudCP, thanks. would the fragments methods be called before the activitieS? Jun 19 09:06:17 dgJenkins, note that when changing orientation, the fragments might just get reattached Jun 19 09:06:40 dgJenkins, https://raw.githubusercontent.com/xxv/android-lifecycle/master/complete_android_fragment_lifecycle.png Jun 19 09:06:43 this is useful :) Jun 19 09:07:17 Mavrik, that is a great. thank you. Jun 19 09:07:40 Mavrik: yep, it's a galaxy s6 edge Jun 19 09:07:54 Ah, Samsung :) Jun 19 09:08:07 All deals are off when dealing with Samsung cameras Jun 19 09:08:21 They'll just lie to you in the API and do random shit Jun 19 09:08:23 Yes, the Activity is the first to call methods like onCreate, and the last to call methods like onDestroy. Jun 19 09:10:54 So I want to use a LayoutInflater Factory, but instead of intercepting the request, I want to intercept the view AFTER it is created. Any ideas? Jun 19 09:18:58 How can I get the orderby to work in sqlite rawquery? I just used orderby columname asc, but it has no effec.t Jun 19 09:19:59 I tried with orderby tablename.colum and orderby colum without the tablename, both don't work. Jun 19 09:20:13 I also tried with and without the "asc" Jun 19 09:21:30 I am learning CursorLoaders before I implement it want to print out data from one of the columns of the cursor. Jun 19 09:21:33 Cursor cursor = getActivity().getContentResolver().query(Uri.parse(mForecastStr),null,null,null,null); Jun 19 09:21:45 cursor.getDouble(ForecastFragment.COL_WEATHER_MAX_TEMP) Jun 19 09:22:11 When I run about the app crashes with out of bound error Jun 19 09:22:51 android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1 Jun 19 09:25:38 barq, that should just work, are you sure you're not reordering items after query? Jun 19 09:28:03 Mavrik: I think the problem was that I was sorting lexographically. I did cast as integer now and that works. Jun 19 09:28:11 ah yes Jun 19 09:28:11 :D Jun 19 09:28:17 Though it was not even ordering lexicographically properly before Jun 19 09:28:21 Which was confusing me. Jun 19 09:33:40 !ping Jun 19 09:55:56 i have date as fri jun 19 14:54:00 GMT +05:00 2015 is there a way that i can remove GMT + 5:00 from this string Jun 19 09:55:58 ? Jun 19 10:25:21 Hi all. In my current project I'm using an sqlite db. I received a crash report with 'no such table:'. What can be the issues? I'm sure that the user had a result from this table successfully before this crash happend Jun 19 10:27:08 the db is generated, not created with code Jun 19 10:29:28 LayoutInflater Factories are confusing. I just want access to each inflated view *after* their creation. I could, of course, manually traverse each inflated layout post-creation, but I hoped there'd be a better solution. Jun 19 10:30:17 What do you mean with Generated FrancescoV ? Jun 19 10:30:22 I almost managed to get it working, but AppCompat uses its own LayoutInflater Factory... Jun 19 10:30:29 do you have it stored in assets and copy it in db folder? Jun 19 10:31:43 danijoo_ Generated with a script and it's located in an expansion file. already tested it on 10 devices here, all successfully Jun 19 10:32:36 ah ok. you execute that sql script in SQLiteOpenHper.onCreate? Jun 19 10:33:07 no Jun 19 10:33:21 what else? Jun 19 10:33:48 the script to generate the .db is a python script Jun 19 10:34:15 well. then anything could happen. Why dont you do it like everyone else? With an sql script and onCreate Jun 19 10:35:26 the db contains 40k records and its about 30mb. It's generated because it's used for an iOS app too Jun 19 10:35:58 yeah but you can still use a simple sql script which is nativly supported on android instead of some python workarround Jun 19 10:35:59 I only need read statements on that db, nothing else Jun 19 10:36:20 this way you can be sure its really working Jun 19 10:37:06 true, but it bust me working. The crash happened for a sql statement which only can happen after 3 other sql statements Jun 19 10:37:35 where do you start your python script Jun 19 10:37:46 if the user deleted the database, this could happen Jun 19 10:37:59 with the native implementation this cant happen Jun 19 10:38:02 which is nice Jun 19 10:38:43 true, but the database is inside an expansion file. I'm sure the test user didn't delete the expansion file because she could use the app normally after the crash Jun 19 10:41:44 danijoo_ I see that it's from a rooted device. Can this be an issue? Jun 19 10:42:41 as I said, user can delete your db after you created it from the script Jun 19 10:43:12 and since you dont use the implementation from android i have no idea what happens then Jun 19 10:49:01 if the user deleted a db (file on the filesystem). How is it possible to use the database after a crash without problems? Jun 19 10:50:52 I have no idea what's wrong with this kind of code to get an SQLiteDatabase object: new DbHelper(context, filename).getReadableDatabase(); Jun 19 10:55:02 no idea. i dont know what your implementation looks like. Jun 19 10:55:23 Hi, I have two commons-lang jars in to different libraries (aar files). Can I exclude one of them somehow? Perhaps from gradle config ? Or should I unpack aar and remove one of them? Jun 19 10:55:25 i know nothing Jun 19 10:55:48 danijoo_ ok, thanks anyway. Maybe I wait until the crash happens again Jun 19 10:58:33 Silnar, they are packaged in the aars? Jun 19 10:58:35 <_m8> Hi i can use jarsigner 1.8 for signing android apps? Jun 19 10:58:47 danijoo_: yes Jun 19 10:59:04 danijoo_: 2 aar files, both with commons-lang.jar inside Jun 19 10:59:19 Silnar, i guess this gives you a compile error right now, right? Jun 19 10:59:20 _m8, yes Jun 19 10:59:30 danijoo_: yes Jun 19 10:59:44 <_m8> adq, jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -keystore , it's the way? Jun 19 11:00:09 no Jun 19 11:00:10 -sigalg SHA1withRSA -digestalg SHA1 Jun 19 11:00:22 don't use MD5 Jun 19 11:00:36 or i'm not aware it work with md5 (in case it does) Jun 19 11:01:06 <_m8> good Jun 19 11:01:12 and if possible, do not use SHA1? Jun 19 11:01:13 use -verify to be sure Jun 19 11:01:19 (SHA2 ftw) Jun 19 11:01:20 after you sign Jun 19 11:01:36 <_m8> thanks adq Jun 19 11:01:39 p_l, is it supported? Jun 19 11:02:36 adq: that's the question, I've been mostly involved with weird low-level stuff... Jun 19 11:02:52 Silnar, something like that should work: http://pastebin.com/RwdjqmMj Jun 19 11:02:53 it will be at some point :) Jun 19 11:03:04 (if it's not the case) Jun 19 11:03:30 danijoo_: wow, nice, I’ll try, thx :) Jun 19 11:03:42 would be even better if the last round of a sha2 family algo could be done in a cryptoken ;))) Jun 19 11:04:59 Silnar, you can also try setting transitive=true for both dependencies. not sure if this works though Jun 19 11:11:54 https://code.google.com/p/android/issues/detail?id=38321 cc p_l Jun 19 11:11:58 lol 2012.. future release Jun 19 11:12:56 whats the point in not using the signing strategy google suggests in the docs? Jun 19 11:13:46 danijoo_, what do you mean? they also provide command-line doc for signing Jun 19 11:14:13 it's just the choice of the (supported) signing algo which is discussed Jun 19 11:14:17 nvm. i misread :) Jun 19 11:14:23 np Jun 19 11:14:37 also it's far from being trivial to generate collision on a sig of an apk using sha1 Jun 19 11:15:12 there are other doors more easy to open, but still they could support new families of signing algo (as sha2, ECDSA, etc) Jun 19 11:16:19 it might even be a blocker on some institutions, as mil, gov, some health orga, etc Jun 19 11:16:43 or nsa Jun 19 11:16:58 i think ppl are fantasming too much about nsa Jun 19 11:17:01 it's a great false flag Jun 19 11:18:16 the NSA doesn't exist Jun 19 11:19:05 there is only the USA, the RSA, and many PSAs Jun 19 11:19:41 shiiiiiieeeettttttt, i woke up Leeds :p Jun 19 11:20:45 grr... argh... Jun 19 11:20:58 * danijoo_ wonders why ListFragment has no longclick callback Jun 19 11:23:11 :) Jun 19 11:24:24 danijoo_: I tried ‚commons-lang’ ‚org.apache.commons.lang’ ‚commons-lang-2.4’ groups but without success. Jun 19 11:24:42 have you tried setting transitive? Jun 19 11:26:50 danijoo_: no not yet, I can’t find how to set this ‚transitive’ property Jun 19 11:27:16 danijoo_: just „transitive: true” inside compile? Jun 19 11:27:20 like this: http://prntscr.com/7irv7i Jun 19 11:27:39 danijoo_: ok, will try Jun 19 11:28:25 hi Jun 19 11:29:15 tell me please: does everything in Android work over Darwin/ART ? Even if the developer uses another language than Java? Jun 19 11:29:41 dalvik* Jun 19 11:29:55 yes, i mistyped Jun 19 11:29:57 yes, except for native c/c++ Jun 19 11:30:09 * lionrouge completely unfamiliar with Android development Jun 19 11:30:23 Ashiren: can i create apps for Android in C/C++ ? Jun 19 11:30:29 to run them aside Java? Jun 19 11:30:32 lionrouge: you could compile any language that can compile into machine code Jun 19 11:30:52 you could even create one in Python if you wanted to write some native binding Jun 19 11:30:54 s Jun 19 11:31:12 it would be stupid so Jun 19 11:31:15 though Jun 19 11:31:31 danijoo_: doesn’t work as I use compile project(‚:library’) and transitive is not available there Jun 19 11:31:40 lionrouge, in general you can use everything that can run in VM as well as native code (C++) Jun 19 11:31:41 other languages probably are 'compilted' into java bytecode Jun 19 11:31:48 but its really a ccumberstone to write full aPPS IN C++ Jun 19 11:32:01 i see Jun 19 11:32:10 but support for things like jruby, scala, **kotlin** is pretty nice Jun 19 11:32:22 Silnar: i hope its not your weird apostrophes Jun 19 11:32:26 Silnar, hm.. then i have no idea, sorry :/ Jun 19 11:33:28 ok, thanks for your explanations Jun 19 11:33:31 danijoo_: ok, thanks for help Jun 19 11:34:03 USB debugging issue detected with Android M Preview. "adb devices" command says the device have "no permissions" Jun 19 11:34:21 Fingerprint authentication is not poping up while connecting the device Jun 19 11:35:30 did you enable developer options anoop? Jun 19 11:35:49 adq: yes of course I did Jun 19 11:36:08 and inside dev opt, i assume you checked "android debugging" Jun 19 11:36:12 devloper options enabled, USB debugging enabled Jun 19 11:36:14 is it a real device or emulator Jun 19 11:36:21 wifi or usb? Jun 19 11:36:29 It's my nexus 5 Jun 19 11:36:35 connected via USB Jun 19 11:36:46 correct driver installed? Jun 19 11:36:50 i would unplug/plug, reboot, wait to be in front of the desktop, replug Jun 19 11:37:21 it happened to me few times on other android (not M) versions, i think this is what i did to fix (as so stupid it can sound) Jun 19 11:37:49 I'm using Ubuntu, and it was working fine when I had stock 5.1 Jun 19 11:38:17 adq: I have done all such workarounds Jun 19 11:39:24 The problem is, the fingerprint verification dialog is not poping up while you plug the device Jun 19 11:39:44 adb detects the device with "no permissions" Jun 19 11:40:41 you arent on stock anymore? Jun 19 11:40:57 Ah, facebook also uses C++ / Djinni for cross platform Jun 19 11:41:02 Glad we're not the only ones :D Jun 19 11:41:36 I've flashed M preview, It's stock Jun 19 11:41:44 oh.. hm.. Jun 19 11:41:49 could be anything then Jun 19 11:41:54 who knows what bugs M has. Jun 19 11:41:55 Mavrik how is djinni in a real project? Jun 19 11:42:08 "Fine" Jun 19 11:42:12 That's my doubt, any known issues so far? Jun 19 11:42:22 It's good enough for production use, but we did have to do some of our own bug fixes Jun 19 11:42:24 check the issue tracker Jun 19 11:42:39 And it requires a bit of discipline, since you can easly design an API that'll do 15000 JNI calls per second Jun 19 11:42:41 :) Jun 19 11:42:52 But holy hell it's a huge improvement over writing JNI bindings manually. Jun 19 11:43:05 (We also compile our code on C++14 levels with Clang so that helps with development) Jun 19 11:47:03 I have a listview with a custom layout (a relativelayout containing three textview), every row has a backgroundresource set and I'd like to make the entire row/backgroundresource clickable and not only the textviews' text, how can I do it? Jun 19 11:47:43 the backgroundresource is a balloon shape, so I'd like to have the entire balloon clickable Jun 19 11:49:16 this should be default Jun 19 11:50:44 how? I have the three textview clickable, but I should tap on the text Jun 19 11:53:34 set the listview items to be clickable in the adapter and all textviews to be not clickable Jun 19 11:56:19 oh wait. i misread Jun 19 11:56:26 well.. you can add onclicklisteners to the rows Jun 19 11:56:34 or let the text expand to full row size Jun 19 11:57:54 so I don't need setOnItemClickListener but OnClickListener Jun 19 11:59:04 Onitemclicklistener is to listen to listitem clicks Jun 19 11:59:23 onclicklistener can be used to listen to specific views inside of a listitem Jun 19 12:00:31 in my case I just need to listen to click "inside" the row, whatever view it is Jun 19 12:01:44 so I'd say I need onitemclicklistener, am I wrong? Jun 19 12:05:14 if you want to listen to plain listitemclicks, yes Jun 19 12:06:06 but then my balloon is not clickable Jun 19 12:07:01 can you make a screenshot? Jun 19 12:07:15 yes Jun 19 12:10:30 Where can I find release notes for sdk tools reveision 24.3.3? I only found 24.3.2. here: http://developer.android.com/tools/sdk/tools-notes.html Jun 19 12:10:49 MyWay, also show your xml + code of how you add the listitemClicklistener Jun 19 12:10:55 ok Jun 19 12:13:42 http://pastebin.com/Tvtbab9W Jun 19 12:15:18 and this is the listview declaration, danijoo: http://pastebin.com/tPUbGzzp Jun 19 12:16:54 so I'm setting setOnItemClickListener from the fragment to the listview's id Jun 19 12:17:25 and right now the listener is not called at all? Jun 19 12:17:42 it's called only when I tap on the textview Jun 19 12:17:52 but not in the white space inside the balloon Jun 19 12:18:40 and as I'm treating the entire balloon as a row, I'd like to have it entirely clickable Jun 19 12:19:12 hm. maybe because you made the root layout (RelativeLayout) clickable=false Jun 19 12:20:19 I've added all these clickable=false now, let's try to remove the one on the relativelayout Jun 19 12:20:45 if I remove it, nothing is clickable Jun 19 12:21:52 you need to add focusable false to textview Jun 19 12:22:02 or they will steal the click from the layout Jun 19 12:22:11 also focusableInTouchMode Jun 19 12:23:28 but if I set descendantFocusability="blocksDescendants" on the relativelayout, do I still need it? Jun 19 12:24:21 ah, it seems I needed focusableInTouchMode Jun 19 12:24:33 yes Jun 19 12:25:20 thank you very much Jun 19 12:27:34 hey. From reading here http://stackoverflow.com/a/24647149/3684931 apparently all apps installed via Play Store should have an icon on the home screen by default. Jun 19 12:27:56 but my app doesn't get a homescreen shortcut when installed. Jun 19 12:28:07 does it require any code or not? Jun 19 12:28:18 do you have the option of the playstore enabled? Jun 19 12:28:42 MyWay: is there such an option on the play store? Jun 19 12:28:49 yes, inside Settings Jun 19 12:29:13 it's called "add icon to homescreen", or something like this Jun 19 12:30:27 MyWay: I'm looking for it Jun 19 12:30:31 but can't find it Jun 19 12:30:56 https://playstore-apk.com/wp-content/uploads/2015/05/Disable-auto-adding-icon-to-home-screen.jpg Jun 19 12:31:51 MyWay: oh that's for the client Jun 19 12:31:59 yes Jun 19 12:32:15 I was looking for a way to force it from the developer side Jun 19 12:32:40 btw even though I have that ticked, my app didn't appear on the home screen Jun 19 12:32:48 does it need the permission? Jun 19 12:34:17 a game called "Spider Square" on the other hand didn't ask me for any explicit permission, but its icon got added to the homescreen Jun 19 12:35:07 maybe its some malware Jun 19 12:35:10 I don't know of other ways, but I think the choice is to let the user choice and not to force something in their home screen Jun 19 12:37:50 MyWay: ok, with that approach, even if my game doesn't request that special "ADD_TO_HOME_SCREEN" permission, if the user has ticked that box it is supposed to appear on the home screen right? Jun 19 12:38:04 yes Jun 19 12:38:09 ok thanks Jun 19 12:49:15 what is the shortcut to organize the imports? Jun 19 12:49:20 in Android Studio Jun 19 12:52:39 paulo_, you open settings, you open keymap, you type "import" in the search box and you never ask anymore what is a shortcut Jun 19 12:52:49 ctrl + alt + o Jun 19 12:54:38 keyStore.getKey(String alias, char[] password) is it password for storage or specific key passowrd? Jun 19 12:56:40 does anyone know how to use a dialog with the text selection mode? it's not clickable: http://i.imgur.com/10WVTYl.png Jun 19 13:00:36 So what do I typically ask a Client if he wants me to develop an Android app for him? Aside from Layouts and looks...Color schemes and how manny devices he wants it compatable with? Jun 19 13:10:56 cart_man: whether he wants internationalisation maybe Jun 19 13:11:38 If it's not going to be in play store I would ask how easy it would be to deploy updates, so that you know how much testing you should do Jun 19 13:11:46 I would like to have my imageView centered: horizontally and vertically. How can I do it? At the moment, it looks like this: https://dl.dropboxusercontent.com/u/4351552/2015-06-19-15-07-38.png , http://pastebin.com/3C6iiwqn Jun 19 13:14:25 ask him if he want the source and unit tests :p Jun 19 13:15:00 and if he want you to also do updates in the future Jun 19 13:18:13 YO DAWG, you are asking for what you should ask for Jun 19 13:30:17 hmm anyone ever got 2 usb sticks over otg working together? when the second one I connect is never detected Jun 19 13:30:37 neither if it's an sd card or something, seems like I can only do 1 mount Jun 19 13:31:50 otg? Jun 19 13:48:29 @chang are you in this chat rn Jun 19 13:48:44 bobbiejim1: on the go Jun 19 13:48:53 bobbiejim1: connecting usb drives to you smartphone Jun 19 13:48:59 ah ok Jun 19 13:55:06 are you trying to send info from one USB stick to the other? Jun 19 13:55:18 bobbiejim1: yes :-) Jun 19 13:55:54 without the use of a third device/ Jun 19 13:56:01 device?* Jun 19 13:58:07 bobbiejim1: with my tablet Jun 19 13:59:25 i dont know about two devices at a time cuz you just told me about otg 5 minutes ago, but couldnt you just send stuff from one device to your tablet, then connect the second usb and send stuff from your tablet to that usb? Jun 19 14:00:35 bobbiejim1: sure but that would take twice as long Jun 19 14:00:44 haha this is true Jun 19 14:00:57 and with only 6gb free on the device i would have to do it in batches Jun 19 14:01:23 https://play.google.com/store/apps/details?id=eu.chainfire.stickmount Jun 19 14:01:27 try that out Jun 19 14:01:40 your device has to be rooted though Jun 19 14:02:51 yes it isn't :-) I guess I'll have to root first Jun 19 14:03:15 thanks for the help bobbiejim1 I tried a lot of stuff already :-) Jun 19 14:14:09 hi Jun 19 14:15:44 Okay, so I'm using AppCompat v22, and I've got some buttons with custom backgrounds. Unfortunately, these button backgrounds are automatically tinted, and I can't seem to find a way to disable this. Jun 19 14:15:50 At least on older devices... Jun 19 14:19:09 i'm trying to open/close drawer panel from a webview, using a method into javascript interface. After execution of drawerLayout.openDrawer() it fails. How can i run openDrawer() from outside main activity with no errors? Jun 19 14:21:17 What kind of error do you get? Jun 19 14:28:15 dzan, no problemo Jun 19 14:28:49 can i use OpenGL to view/import 3D models in a separate activity? Jun 19 14:29:16 like, i have a maps app, and i want to be able to open a new activity when you tap on a marker, and that new activity shows the 3D building that was tappen on Jun 19 14:29:26 anyone know the answer to my question about a complete list of uses-policies for http://pastebin.com/Pg1JWTMY yet? Jun 19 14:52:01 msg memoserv send if you have ans. Jun 19 15:27:00 If you have a ListView screen backed by a CursorAdapter, do you just send the columns you will need to the Detail screen for one of the items? Jun 19 15:39:04 guy Jun 19 15:39:05 s Jun 19 15:39:07 i'm bored. Jun 19 15:51:44 theblang, just send the id and let the detailsscreen load the item Jun 19 15:52:35 danijoo_: Well, the issue there is if you go somewhere else in the app, then to that screen again, change the data, you will crash if you go back to the original and try to click a row Jun 19 15:53:05 huh? why? Jun 19 15:53:16 danijoo_: Because that screen has an old cursor Jun 19 15:53:38 close it Jun 19 15:53:43 when you leave the screen Jun 19 15:53:45 and open it again Jun 19 15:54:33 danijoo_: But then everytime you go past the screen you are hitting the DB. THat doesn't really need to happen unless data changed really Jun 19 15:54:49 why does that matter? Jun 19 15:55:15 danijoo_: I guess it just seemed like hitting the db everytime you onResume it was bad Jun 19 15:55:31 i dont see why this should be bad Jun 19 15:55:57 you shouldnt leave cursors open anyways Jun 19 15:57:14 Our app (http://software.sil.org/scriptureappbuilder) uses the Android SDK. We would like to package SDK on Linux for remote areas. Who can approve? Jun 19 15:57:31 Our users have poor internet connections. They travel to city and sync package repos (linux) and pass around via USB stick. Jun 19 15:58:10 https://developer.android.com/sdk/terms.html (3.3) says we can't redistribute. Can we get a waiver? Jun 19 16:01:31 chrisvire, there arent any google officials here that could give you that permission Jun 19 16:01:56 danijoo_: Do you know who I could talk to? Jun 19 16:02:07 no Jun 19 16:08:11 what's that "special" action bar for stuff like copy paste called? it appears when you select text Jun 19 16:09:02 Hey guys i have my custom url scheme working on my application. If i do myapp:// in firefox it loads my application. However it doesn't work if i try it in chrome, it just does a google search for myapp://. Also how can i make this link clickable if i send it via SMS? is there a specific syntax? Jun 19 16:14:28 betacrash: contextual action bar Jun 19 16:14:45 thanks! Jun 19 16:19:19 jubjub: I can't quite recall how the web guys did it but they would send out links to the site, which would forward to the deep link uri. So we had something like http://mysite.com/item/22 --> mysite://item/22. Prob checked the user agent and forwarded Jun 19 16:19:28 I'm sure there is a service out there that will do this for you Jun 19 16:21:00 Do I need to use placeholder even if my var is a int ? As String line = DatabaseHelper.KEY_ROWID + "= ?" + id; // being id an int Jun 19 16:21:38 quinnjn: you just made my day. This was so simple yet i didn't think of it Jun 19 16:22:05 jubjub: glad it helped ^_^ Jun 19 16:25:07 Anyone know a good sample project that uses Sqlite but not any ORM? I'm thinking about gutting ORM from my project. Jun 19 16:25:21 Do I need to use placeholder even if my var is a int ? As String line = DatabaseHelper.KEY_ROWID + "= ?" + id; // being id an int Jun 19 16:30:27 Hey guys, i'm build a layout with a single listview and adding 3 types of viewholder (different layouts, same functions intarfaces). The first elements inflated are fine, but the problem is when i scroll up. The next viewHolder spawn "Required view with ID xxx for field was not found", but the above item from listview shares the same layout and render fine. Jun 19 16:31:44 abara: It might help to provide a snippet if you can Jun 19 16:32:05 ok, finnish it in a minute Jun 19 16:32:22 I have no idea what to do :/ Jun 19 16:33:27 I have a library. Wanted to separate the android wear component from the standard stuff and package that as an extended library but ... how Jun 19 16:41:57 abara: Might as well post the entire adapter. It's possible to guess what's wrong (a mismatch between getItemViewType and getView {especially when convertView is being reused}), the code tells all. Jun 19 16:42:03 but ^ Jun 19 16:42:18 yeah, i'm still create the snippet Jun 19 16:42:23 kind big .-. Jun 19 16:42:57 Just post the whole thing. In my experience, people who create snippets tend to show about 10% of what is required. :D Jun 19 16:48:48 What I'm proposing in this code seems asinine: http://pastebin.com/TmdsMfiA :: If code is running on another thread, wait for it to end then return, otherwise run the code. The idea is that the code to run is only runnable one-at-a-time but other threads may depend on that work to be completed. Jun 19 16:49:10 I feel like I could use a Subject or something (from RxJava) to maybe achieve the same effect Jun 19 16:53:49 explodes: not sure exactly what you're doing, but have you considered a single threaded executor service? Jun 19 16:53:53 explodes: What's the difference between `private final Object lock = new Object(); ... synchronized (lock) { ... }` and what you're trying to do? Jun 19 16:54:06 well Jun 19 16:54:40 If the code is locked, I do *not* want to run it on the thread trying to run it a 2nd time, i want to, however, wait for the other thread to finish Jun 19 16:55:08 Isn't that what `synchronized` already does? Jun 19 16:55:27 well that's it Jun 19 16:55:28 https://dpaste.de/kDt8 Jun 19 16:59:18 abara: if you're inflating different layouts you should make use of the getItemViewType() and getViewTypeCount() methods Jun 19 16:59:52 dex2goat: where? Jun 19 17:00:00 in your adapter implementation Jun 19 17:00:19 dex2goat: where on the adapter (which methods) ? Jun 19 17:00:25 http://developer.android.com/reference/android/widget/Adapter.html#getViewTypeCount() Jun 19 17:00:31 http://developer.android.com/reference/android/widget/Adapter.html#getItemViewType(int) Jun 19 17:03:07 dex2goat: ok, i got what they do but where i would use typeCount? my problem here is that for some reason butterknife is not finding the view on a layout .-. Jun 19 17:04:17 I am using the camera inside a FrameLayout and I have a button that triggers the camera shot. I need that trigger to take more that one shot, for example 5 shots. Does anyone knows any way to accomplish this? Jun 19 17:05:02 abara: That looks odd. Are you keeping a "view holder" for each position? So if you have 5,000 items you have 5,000 view holders? Looks like a bad idea. Jun 19 17:05:50 Oh, I guess you have a fixed number of items. Still looks odd, though. Jun 19 17:06:35 abara: go over this: http://android.amberfog.com/?p=296 Jun 19 17:08:32 Does anyone know does libVLC support hls live http streams? Jun 19 17:08:57 hey guys, im using a BroadcastReceiver to check when wifi connects/disconnects. Is there a way to check if wifi is disconected for like 60 seconds? im afraid it will catch a lag spike and not really a disconnection http://paste.ofcode.org/eyaHvNsK3FzW2HtujLidVB Jun 19 17:09:26 luist just post a runnable on a handler that checks 60000 ms later Jun 19 17:09:31 dex2goat: well i just put the switch over the viewholders .-. Jun 19 17:10:24 luist https://gist.github.com/anonymous/3087fab35717bb304593 Jun 19 17:10:37 lasserix: so it will receive but won’t execute what i want unless its still disconected after 60sec right Jun 19 17:11:03 whatever is in the runnable will execute Jun 19 17:11:08 how it executes is up to you Jun 19 17:11:29 you can just do handler.postDelayed(mCheckConnectionTask, 60000); Jun 19 17:12:11 mCheckConnectionTask = new Runnable{ @Override public void run() { if(hasInternet) // do something }} Jun 19 17:12:28 hasInternet is that code i posted up there Jun 19 17:13:25 thanks :) Jun 19 17:14:45 abara: You're supposed to load stuff on demand, not create it up front. You're going against the design of ListView. Jun 19 17:15:17 I have like a couple thousand lines of text Jun 19 17:15:24 I need to run it all through linkify Jun 19 17:15:40 but that requires the textview so i can't do it on a BG thread Jun 19 17:15:46 what's the best way to do this? Jun 19 17:15:50 break it up and use a listview ? Jun 19 17:16:12 basically this is like a EULA and i want to enable linking email/phone/url etc Jun 19 17:16:24 even on my n5 it takes a second of two before loading Jun 19 17:18:51 luist: for a minute wait, you're probably better off using an alarm, if you want to run reliably / to wake up the device if it went to sleep. posted messages don't keep your process alive or keep the device awake. Jun 19 17:19:30 how can I find out what is the style declaration for a View, e.g. TextView while the app is running? Jun 19 17:19:34 lasserix: What about ignoring Linkify and doing it yourself? Looks pretty simple: https://android.googlesource.com/platform/frameworks/base.git/+/master/core/java/android/text/util/Linkify.java Jun 19 17:19:40 TacticalJoke: ok, so that the problem of i'am receiving the error message? :( Jun 19 17:19:41 Then you could do whatever is slow in the background. Jun 19 17:19:50 or, why hierarchyviewer is "Unable to dump theme." Jun 19 17:20:24 abara: They're linked, though. You're doing something weird that goes against the design of ListView, and you're applying it to ListView. No surprise that you have code that doesn't work and you can't figure out why it doesn't work. Jun 19 17:21:05 TacticalJoke: hum, i've teste it before with 100+ items it just worked well .-. Jun 19 17:21:16 TacticalJoke: but thanks for point that out. Jun 19 17:21:38 hello, how do I package a service into an apk ? Jun 19 17:23:19 emilsp, are you writing a library? Jun 19 17:25:19 saapas, kind of Jun 19 17:25:20 If you start a HTTP GET using Retrofit and, before the download ends, the activity is paused and the download finishes before the activity resumes. What does happen? Jun 19 17:25:47 1. the result listener is called but nobody is there to listen to it Jun 19 17:25:58 saapas, or do I have to do it the google way and push it on to my aosp ? Jun 19 17:26:06 2. the result is preserved and, when the activity is resumed, it gets the data Jun 19 17:26:17 emilsp, unfortunately I don't know what is the 'google way' etc Jun 19 17:26:36 IMHO, 1 happens Jun 19 17:26:48 saapas, if you've used cyanogen mod, to get google services you have to actually flash an image that has the google services on it Jun 19 17:27:19 emilsp, yes, I get that. I flashed cyanogen on my first smart phone 3 years back Jun 19 17:27:27 emilsp, by service you mean your own class that extends Service ? Jun 19 17:28:40 saapas, yes, indeed Jun 19 17:29:14 emilsp, if I was doing that, it would produce either a jar or aar, but not apk. Jun 19 17:29:15 sapaas, for now, I'd just like to package the service up so I can either add it to the aosp or have it running all the time Jun 19 17:30:03 as far as I know, only applications are packaged in apk, and libraries either in jar or aar Jun 19 17:31:18 saapas, ok, so I can create a hello world app for it and other stuff will be able to call the service Jun 19 17:31:48 yes, jar/aar means you or someone else would have to write an app that uses your service Jun 19 17:32:08 is it possible for a fragment to be destroyed that is current activity if it's not being used Jun 19 17:32:42 saapas, with the wizardry I'm dealing with here, I've already ensured that there will be 'users' Jun 19 17:32:52 emilsp, good for you :) Jun 19 17:32:59 I just want an easy way to deploy the service Jun 19 17:33:40 emilsp, well why don't you download something from aosp and see how it has been arranged Jun 19 17:33:53 have you read aosp code ? Jun 19 17:33:58 nope Jun 19 17:34:07 exactly, because you can't Jun 19 17:34:17 kinda thought so Jun 19 17:34:25 either you're beard is twice as long as you are tall, or you don't read aosp code Jun 19 17:34:37 android open source project and you can't read the code? :) Jun 19 17:34:49 you stare at it, and then pipe /dev/urandom0 to a code.java file until you reach your expected behaviour Jun 19 17:35:09 oh, in _that_ way you can't Jun 19 17:35:22 well, I can, it's just that this is a friday evening Jun 19 17:37:13 how about automatically formatting the code? :) Jun 19 17:37:58 I'll get around to do it anyway... Jun 19 17:43:36 Kotlin 1.0 isn't far away: http://blog.jetbrains.com/kotlin/2015/06/kotlin-evolves-how-to-keep-your-code-up/ Jun 19 17:43:45 (I'm sure a lot of you have seen this, but maybe some haven't.) Jun 19 17:45:16 i wish i could be doing Kotlin Jun 19 17:45:29 Hey Napalm, are you still here? Jun 19 17:45:34 yes Jun 19 17:45:41 Hah how's it going? Jun 19 17:45:57 Thanks for that earlier today Jun 19 17:47:20 meh http://www.droidjournal.com/ Jun 19 17:47:35 "Unfortunately, that content is scattered across various blogs, websites, email lists, etc." Jun 19 17:47:52 TacticalJoke: thanks, but I wasn't asked to do it and I'm not going to be paid to do it if i spend any more time on it ;p looking for simplest solution atm Jun 19 17:47:55 well, maybe if google just kept things in one place instead of g+, SO, whatever there wouldn't be this problem Jun 19 17:48:01 t0astt: np, gimme a mo.. just cooking Jun 19 17:48:07 It’s nice having all that stuff curated, though Jun 19 17:48:15 annotation processing works on kotlin now ? Jun 19 17:48:35 s73v3r yahoo couldn't do it in the 90s ;) Jun 19 17:48:36 but I already read Android Dev Digest, Android Weekly, and /r/androiddev. I’m sure I’ll see plenty of repeat articles Jun 19 17:48:55 gordon_: I think so: http://blog.jetbrains.com/kotlin/2015/05/kapt-annotation-processing-for-kotlin/ Jun 19 17:49:09 or maybe this is like ObjC.io. It’s like a magazine, where content is specifically written for it Jun 19 17:49:09 what really needs to happen is the d.android.site is opened like a wiki, maybe with different degrees of freedom to edit Jun 19 17:49:49 s73v3r so a great article gets written today, and is out of date again a onth from now. solves little Jun 19 17:50:01 the documentation has to be living Jun 19 17:50:02 things don’t move that fast Jun 19 17:50:18 plenty of articles on ObjC.io are 20 months old, but still relevant Jun 19 17:50:28 s73v3r the APIs - maybe not, but the tips and whats considered good practices seems always shifting Jun 19 17:50:36 at least dagger works... Jun 19 17:50:37 I studying a source code that is using a variable called "mContext" (It's a instance of the Context class) but I never see the variable creating and instanciation. Who know about that? Jun 19 17:50:38 Napalm: Out of the haribos?? haha Jun 19 17:50:55 yeah what is Napalm cooking ... Jun 19 17:50:56 chihau: Is it inheriting from View or somthing? Jun 19 17:51:05 chihau: It's an Android-specific thing, pretty much. It's not used in Java in general, from what I've seen. Jun 19 17:51:08 something explosive ? :D Jun 19 17:51:11 those tangfastics are honestly awesome though Jun 19 17:51:19 I don't think it's worth doing, personally, but there is debate here. Jun 19 17:52:00 s73v3r, TacticalJoke this is used in a class extended by CursorAdapter Jun 19 17:52:09 chihau: Oh, I misread. Never mind. :D Jun 19 17:52:11 s73v3r also, half the blogs wouldn't be necessary in the first place if google was better at their javadocs, etc Jun 19 17:52:28 good thing its open source otherwise we would all be screwed Jun 19 17:52:31 chihau: look at the constructor, and look at super Jun 19 17:53:00 g00s: Apple is considered top notch in their documentation, and yet there are plenty of blogs and stuff surrounding their stuff Jun 19 17:53:15 I am using the find tool of the IDE Jun 19 17:53:21 s73v3r, but nothing Jun 19 17:53:52 chihau: look at the code of CursorAdapter Jun 19 17:54:00 ok Jun 19 17:54:28 and look at the constructor of your class. You’re gonna have Context as a parameter, and that’s going to be passed to super Jun 19 17:58:28 g00s: There’s also quite a few posts written to take a deeper dive into specific topics, for people who might not have the time to do all of that on their own Jun 19 18:01:40 s73v3r sure thats fine, just think the biggest improvement requiring the smallest effort is just to fix the existing docs Jun 19 18:02:13 they can start with GMS Jun 19 18:02:15 :D Jun 19 18:02:36 It’d be nice, but I doubt the people starting this thing have any control over that Jun 19 18:05:08 g00s: do you know the proguard rule to keep all classes that extend another? Jun 19 18:05:21 no - eh i hate that fucking thing too Jun 19 18:05:39 doh.. just add "extends" :| Jun 19 18:05:52 http://proguard.sourceforge.net/manual/usage.html#classspecification Jun 19 18:05:54 RTFM Jun 19 18:05:55 lol Jun 19 18:06:42 for proguard it should me MTFM (memorize ... T F M) because if a bug farts in the next town seems like it needs adjusting with rules Jun 19 18:07:41 wth, I put some scale animation to make the imagebutton bounce when pressed, it works most of the time, but sometimes it will animate the bounce and not execute the rest of the code for that imagebutton Jun 19 18:10:33 JakeWharton hello Jake Jun 19 18:10:43 ventura hello ventura Jun 19 18:11:29 deuce ventura Jun 19 18:15:06 g00s: how would you like to configure proguard if you could choose? Jun 19 18:16:05 dzan probably the biggest pain is when you decide to use a new library, and then need rules for it. there is a github with rules for some projects but its not exhaustive by any means Jun 19 18:16:35 g00s: proguard has support for library embedded rule files... Jun 19 18:16:36 hopefully the author says, "if you use proguard, add these rules" but thats if you are lucky Jun 19 18:16:48 g00s: problem is the library authors never do add them Jun 19 18:17:26 but I understand, just wondering if proguard could do something to make it easier Jun 19 18:18:52 dzan hmm; can proguard find a .pro file in a library jar and use it ? Jun 19 18:19:37 maybe devs could just include them with their project and they get read automatically if found packaged in library jars Jun 19 18:20:38 g00s: yes if the library has it packed Jun 19 18:20:53 g00s: as I said, the feature is there, just noone uses it Jun 19 18:21:37 i looked at using proguard again a few weeks ago, because of that stupid samsung appcompat bug thats requires renaming classes - but it errored out on rxjava. what makes me nervous is - if i appease proguard and make the errors go away, do i break the library Jun 19 18:21:49 also, on my machine, proguard is slow - so i can only tolerate it on release builds Jun 19 18:22:07 so getting into a situation where i need to run it for debug builds is unacceptable to me Jun 19 18:22:44 dzan: i would like to configure it to "off" Jun 19 18:23:33 and I will follow JakeWharton , because it's easier not to learn that stuff ;) Jun 19 18:23:40 heh Jun 19 18:23:58 same with fragments Jun 19 18:24:40 in the case of rxjava, they use AtomicFieldUpdater all over the place. if the field is renamed, i imagine that condition just breaks - and it would be pretty subtle because it becomes a concurrency race condition bug Jun 19 18:24:44 I guess I'll try proguard on my app and see what it does though before releasing Jun 19 18:24:53 how can i run a funcion that is in the main activity from a BroadcastReceiver that only has Context? Jun 19 18:25:14 so yeah, if i used proguard i would try to make it inclusive to some package that needs it, like that appcompat bug only - leave the rest alone Jun 19 18:25:30 g00s: proguard handles that Jun 19 18:25:38 JakeWharton: why off? :p Jun 19 18:27:08 g00s: I understand if you dont' know the code it's annoying to add proguard configuration for it, but library developers should do it if required :-) and modern versions really don't need a lot of configuration Jun 19 18:27:23 as a library developer, I don't see why it's my job to add proguard configurations Jun 19 18:27:25 they do for reflection but a lot of those cases are handle by its default configuration :-) Jun 19 18:27:43 you are the one chosing to use the tool Jun 19 18:28:23 I don't like how the dev console says "Publish Now To Production", when it'll actually take hours Jun 19 18:29:19 JakeWharton: I guess but don't you try to stay compatible with the tools the people using your library use? ;p Jun 19 18:29:46 of course not, that's not my job Jun 19 18:30:14 there's 5 build systems, endless static analysis tools, multiple obfuscators and unused code strippers Jun 19 18:30:25 Say I need to pass my activity instance to my Fragment class how can I do that if I can't use the constructor ? Jun 19 18:30:52 if you chose to use proguard then you are accepting responsibility for configuring it to work with your application and libraries properly Jun 19 18:30:52 neredsenvy: either set up a setter in your fragment, or use the NewInstance pattern Jun 19 18:31:52 JakeWharton: it's in the SDK and google recommends it :p but no point in arguing I was just trying to figure out how the perfect proguard would work :-) Jun 19 18:32:07 g00s: do you have a link to the github that collects the configurations? Jun 19 18:33:33 dzan here are some https://github.com/krschultz/android-proguard-snippets Jun 19 18:33:43 g00s: thanks! Jun 19 18:34:47 how can i run a funcion that is in the main activity from a BroadcastReceiver that only has Context? Jun 19 18:35:06 Anyone try LeakCanary yet? Jun 19 18:35:23 luist: lots of ways Jun 19 18:35:33 lasserix: best one? lol Jun 19 18:35:40 pass in an interface that has a callback from broadcast reciever to activity (so activity will implement the interface) Jun 19 18:35:49 make the broadcast reciever an inner class ofthe activity Jun 19 18:36:00 just make sure to register unregister it in onStart and onStop Jun 19 18:36:27 do activities pick up broadcasted intents if they are in its intent filter? Jun 19 18:36:29 i dont remember Jun 19 18:36:45 dzan this is pretty good, how they organize .pro files "Adding Rules for Libraries" https://medium.com/@jonfinerty/beginner-to-proguard-b3327ff3a831 Jun 19 18:37:10 luist pass the braodcast reciever a handler, then post a msg to the handler which is implemented in the main activity and does something Jun 19 18:37:17 luist use a third party library for an event bus Jun 19 18:37:29 that about covers it Jun 19 18:37:53 third part lib? :T Jun 19 18:38:16 i was thinking of using ActivityManager to get running activity, since i only have one Jun 19 18:40:19 t0astt: see PM Jun 19 18:41:04 g00s: cool trick indeed Jun 19 18:44:06 I want to use material design, right now trying to set its checkbox color to blue. the checkbox itself is two png files, so any way to set it blue without an image editor or java code? Jun 19 18:45:17 lasserix: what third part lib does that? Jun 19 18:45:27 otto eventbus Jun 19 18:45:31 they are bus libraries Jun 19 18:45:43 so they are basically a way to send messages from anywhere to anywhere in your app Jun 19 18:45:48 and by messages i mean objects Jun 19 18:46:11 lasserix: nope. the type of receiving object is part of what determines what receives the event. e.g. startActivity never triggers broadcast receivers, and vise versa. Jun 19 18:50:00 oh Jun 19 18:50:05 sorry never have used them Jun 19 18:54:38 is doing an ACTION_DIAL with a contact uri supposed to work? Jun 19 18:55:07 specifically a lookup uri Jun 19 18:57:18 I'm trying to avoid having to do another query to get phone number, since there's a million ways i could mess that up Jun 19 19:02:14 Does anyone have some practical advice for how to keep the release keystore as safe as possible? Jun 19 19:04:17 betacrash: if it's not part of the documentation, I would generally assume no. and there could be some ambiguity there anyway, since they could have multiple phone numbers. would it make sense to just show the contact? that has dial / sms / etc buttons. Jun 19 19:05:08 all that the Android dev docs (http://developer.android.com/tools/publishing/app-signing.html) say is "Note: Including the passwords for your release key and keystore inside the build file is not a good security practice. " Jun 19 19:05:24 betacrash: if you want to find out more completely, the stock dialer is open source: http://androidxref.com/5.1.0_r1/xref/packages/apps/Dialer/ though it'll vary by OS version and device and if the user has installed a different dialer entirely Jun 19 19:05:58 JakeWharton: If you start a HTTP GET using Retrofit and, before the download ends, the activity is paused and the download finishes before the activity resumes. What does happen? Jun 19 19:06:04 1. the result listener is called but nobody is there to listen to it Jun 19 19:06:12 2. the result is preserved and, when the activity is resumed, it gets the data Jun 19 19:06:25 And I found this great post from Jake Wharton: "we have a bunch of engineers and don't want any of them having direct access to the keystore. We don't keep it on the CI server because the machine is not in a secure firewall zone. You have to two-factor authenticate with a dedicated signing service which has the key and password on an encrypted filesystem." at https://groups.google.com/forum/#!searchin/adt- Jun 19 19:06:25 dev/unsigned$20apk/adt-dev/XECqmZgIARM/IA6jymn_Z3wJ Jun 19 19:08:22 Anyone know what that dedicated signing service would be? I was able to find "Symantec Secure App Service", but I'm wondering what others do to keep their release.keystore ultra-safe Jun 19 19:08:30 theGraeme: yeah, a guarded CI server is probably the most convenient + safest for many cases. personally, I just have a big password, put the keystore in git, and keep the password in a password manager (which is safe behind another big password). releases are infrequent enough that typing the password every few days isn't much of a timesink. Jun 19 19:09:08 that way everything is backed up in multiple locations, nothing's stored unencrypted, and the password never gets written to disk Jun 19 19:09:33 Yeah I work for a software company, and we keep the release.keystore file in our git repo as well. Jun 19 19:10:50 I don't like it. Smells of risk. A disgruntled or former employee could screw us over Jun 19 19:11:33 put it on a floppy disk Jun 19 19:11:39 LOL Jun 19 19:11:40 nobody can read those Jun 19 19:11:50 and they last forever :p Jun 19 19:11:55 * theGraeme chokes on his coffee Jun 19 19:12:21 danijoo_ floppies go bad quickly :) Jun 19 19:12:23 anyone have favorite reads for model view presenter pattern? not necessarily Android specific Jun 19 19:12:29 maybe .. archival quality tape ? Jun 19 19:12:44 g00s, never seen one go bad Jun 19 19:13:13 i think all of mine went bad eventually Jun 19 19:13:18 keystores arent that big, are they? Print them out in HEX :D Jun 19 19:13:19 they erase themselves Jun 19 19:13:21 yiati: why MVP? Jun 19 19:13:52 ventura its the Most Valuable Pattern Jun 19 19:13:52 and tarn it in a cover of "Fifty shades of gray" Jun 19 19:13:58 ventura: why not? Jun 19 19:14:56 theGraeme: if they don't have the password (and it's big enough), it doesn't matter if the world has the keystore. and if they ever had both the keystore and the password (ever!), they could copy it, and no system would protect you. Jun 19 19:15:04 yiati: i use GoF patterns for development and sometimes I think everytime I use MVP in Android I am strugling with the framework Jun 19 19:15:27 iOS was designed as a MVC Jun 19 19:16:13 lasserix: ooh this seems much better practice than using stuff like: ((MainActivity) getActivity()).clearApplicationData(); Jun 19 19:16:19 Android has views, activities, services, fragments, content providers, etc…. Jun 19 19:18:07 yiati: i use concepts from http://www.therealjoshua.com/2011/11/android-architecture-part-1-intro/, but adapted to cursoradapter Jun 19 19:18:11 and contentprovider Jun 19 19:19:44 2011 is pretty ancient Jun 19 19:20:03 so is java Jun 19 19:20:16 thats android 2.x times.. Jun 19 19:20:16 ventura i like this https://github.com/tehmou/rx-android-architecture Jun 19 19:20:57 g00s: as bruce lee would say “a punch is only a punch” Jun 19 19:22:03 “A punch is just like a punch, a kick just like a kick” Jun 19 19:22:05 groxx: Yeah, they have the keystore, and the password. Jun 19 19:22:58 theGraeme: http://stackoverflow.com/questions/18328730/how-to-create-a-release-signed-apk-file-using-gradle/22485097#22485097 Jun 19 19:23:18 and never git push your properties and keystore file Jun 19 19:23:50 Hey guys, I have this class which is throwing this error : https://gist.github.com/anonymous/b43a13f1f5666a0a3256 (both attached) Jun 19 19:23:59 Could someone help me figure what is going on. Jun 19 19:24:41 ircfox: getListView() won't work until onCreateView Jun 19 19:24:45 I already tried to put the adapter and the list inside a onCreateView method but that just gave me another error. Jun 19 19:25:30 groxx: ok, I will switch that to onCreateView and I will paste the error. Jun 19 19:25:37 just user ListFragment#setListAdapter(new AssinateAdapter...). Jun 19 19:25:45 this will work in onCreate Jun 19 19:25:47 ircfox: did you call inflate in onCreateView? Jun 19 19:26:05 ventura: not really. Jun 19 19:26:12 ventura: no. Jun 19 19:26:58 yeah, thanks ventura. Unfortunately this is a mess I inherited, that stuff was pushed into the repo long before I started this job. I see that it's possible to change the password of a keystore, but that doesn't help if an old version of the keystore and the password associated with it is still out there. Jun 19 19:27:22 you wont be save ever again Jun 19 19:27:31 if someone has a working keystore+password Jun 19 19:27:42 like groxx said: If they *ever* had both the keystore and the password, we'll never truly be safe. Jun 19 19:27:53 ircfox: Didn't you have the same issue the other day? Jun 19 19:28:00 And the answer was to put it in onActivityCreated? Jun 19 19:28:02 what you can do right now is cleaning your repo though Jun 19 19:28:11 removing the keystore/password from all old commits Jun 19 19:28:17 by changing history Jun 19 19:28:18 TacticalJoke: yes, but this time this is kind of different, more advanced. Jun 19 19:28:28 maybe Jun 19 19:28:53 you can leave it in onCreate if you do setListAdapter() instead of getList().setAdapter() Jun 19 19:29:14 But there's ex-employees out there. And if they kept a copy of the code before they left (as I'm sure *everyone* does), then the risk remains. Forever. Jun 19 19:29:23 I think ListFragment and ListActivity are anti-patterns, personally. (:D) Jun 19 19:29:31 theGraeme, yep Jun 19 19:29:46 TacticalJoke: yep [2] Jun 19 19:29:52 TacticalJoke, i begin to use them from time to time. Thought the same in the past Jun 19 19:30:05 I think this is the same error : https://gist.github.com/anonymous/6f3eb5546f017a8b8155 Jun 19 19:30:07 Whose idea was that -- "I have an idea; let's arbitrarily couple ListView with Fragment and also Activity!". Jun 19 19:30:29 Maybe the same person who created Activity.getPreferences. Jun 19 19:30:51 ircfox, yes same problem. getList() is not available before onActivityCreated Jun 19 19:31:16 It's exactly the same problem as ircfox had the other day. :D Jun 19 19:31:22 TacticalJoke, track him down in the repo! :D Jun 19 19:31:24 danijoo_: I did put it inside onActivityCreated also, and didn't solve it. Jun 19 19:31:29 :D Jun 19 19:31:56 hm.. what is this findViewById for anyways? Jun 19 19:31:58 eh, high-level "this does it for you" stuff is useful. though I don't think it belongs in the core framework. in principle, a ListView could make a fair number of things simpler, like providing actionbar search / multi-select / etc in a standard way. Jun 19 19:32:03 getListView() returns the list Jun 19 19:32:04 Maybe Android's SDK is just one huge exercise in critical thinking. Jun 19 19:32:10 theres no need for findViewById Jun 19 19:32:46 ircfox: I have a gigantic magical fix for you. just move everything into onViewCreated(). https://github.com/xxv/android-lifecycle Jun 19 19:32:55 the good thing about ListFragment/Activity is that you dont have to care about if list is already created before setting the adapter Jun 19 19:33:05 unless you do what ircfox does ^^ Jun 19 19:33:19 I think the only solution would be use Inflater here but as far as this Fragment is being placed into a FrameLayout I don't know how to inflate it. Jun 19 19:35:02 ircfox, try this: http://pastebin.com/0wXFrSVx Jun 19 19:35:32 not good style to do this in onCreateView but with this code it works Jun 19 19:38:52 None of this worked, the Fragment it is being loaded keeps waiting as : http://picpaste.com/pics/Screen_Shot_2015-06-19_at_16.37.04-Kww761ER.1434742685.png Jun 19 19:39:31 but it does not crash anymore Jun 19 19:39:33 progress! Jun 19 19:39:34 :) Jun 19 19:40:53 danijoo_: yes Jun 19 19:41:05 maybe your adapter is empty Jun 19 19:41:10 or sth like that Jun 19 19:41:31 danijoo_: no, it's working, on a smaller device. Jun 19 19:42:03 danijoo_: this is the Fragment version, for bigger screens and Fragments. Jun 19 19:43:02 groxx: didn't work. Jun 19 19:48:15 https://gist.github.com/anonymous/0adad8e4ff573d7a48c4 Is there a way to keep an Instance/Transaction of Fragment ? Here I have Map Fragment which I draw on however when I switch the fragment and come back everything I drew on is gone. Jun 19 19:48:34 Is there a way to preserve the state ? Jun 19 19:49:36 neredsenvy: onSaveInstanceState probably? Jun 19 19:49:58 so say we all Jun 19 19:54:12 $ jar tf bin/central-debug.apk | grep -w Jun 19 19:54:12 -l Jun 19 19:54:12 54 Jun 19 19:54:13 lol Jun 19 19:54:22 (wc -l in there, too) Jun 19 19:55:28 I'm confused, my nexus 7 is on tablet, but it supports native multidex Jun 19 19:55:33 er, on kitkat Jun 19 19:55:41 I thought native multidex came in android 5.0 Jun 19 19:59:27 groxx, How ? and will it work when I call commit transaction again ? Jun 19 20:00:07 pfn: https://developer.android.com/tools/building/multidex.html#mdex-pre-l Jun 19 20:00:24 yiati, nevermind, I was mistaken, I always thought my nexus 7 was on kitkat still Jun 19 20:00:30 turns out I updated it to 5.0 a while ago Jun 19 20:03:26 Has anyone had to deal with ? https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads#exclude-users Jun 19 20:03:34 exclude people who already have your app installed Jun 19 20:03:37 with facebook? Jun 19 20:04:02 it says as long as the fb dashboard knows the package name and launch activity, it is handled automatically, does this mean i don't need the sdk installed? Jun 19 20:04:30 neredsenvy: basically, you should be doing this for everything that you want to survive: http://developer.android.com/training/basics/activity-lifecycle/recreating.html Jun 19 20:05:45 neredsenvy: the fragment manager will keep track of what fragment is currently active, and restore it for you, but you need to keep track of everything else. Jun 19 20:07:29 native multidex with the pre-dex optimization on lollipop is nice Jun 19 20:07:43 cuts my build/install/run cycle from 55 seconds down to 35 seconds now Jun 19 20:09:21 I cannot inflate the layout because this is a layout context option which will use a different layout based on screen size. So this Fragment is being loaded inside a FrameLayout placed inside activity_main_large.xml. This fragment is being loaded this way : https://gist.github.com/anonymous/cb6a2e1fd25fec9d165c Jun 19 20:11:13 This way I cannot inflate the layout inside onCreateView. Jun 19 20:13:57 Anyone who has used Facebook sdk do i need to call " com.facebook.appevents.AppEventsLogger.activateApp(this, getResources().getString(R.string.fb_app_id)); " Jun 19 20:14:07 if i add the metadata tag to the application node inthe manifest? Jun 19 20:46:12 ircfox: I'd just drop ListFragment. Simplicity FTW. Jun 19 20:54:43 why does android studio keep trying to use the 22.2.0 support libraries when i'm specifically telling it to use 22.0.0 ? Jun 19 20:54:46 in my gradle file Jun 19 20:59:31 why dont you want 22.2 Jun 19 21:00:26 probably because you have a 22.2.0 library that depends on a 22.2.0 support library Jun 19 21:00:28 that's why Jun 19 21:00:52 pfn: is there a way to view dependency trees in AS? Jun 19 21:00:55 to determine if so Jun 19 21:01:12 are you using like design 22.2.0? Jun 19 21:01:31 I don't use gradle/as, wouldn't know Jun 19 21:01:34 dcope from command line 'gradle dependencies' Jun 19 21:04:17 lol, my dog would do this too http://i.imgur.com/sxol2KG.gif Jun 19 21:04:48 haha Jun 19 21:04:58 dcope: also `gradle androidDependencies` / gradle tab -> tasks -> android -> double click androidDependencies Jun 19 21:06:31 What do you guys think of these little promo screenshots for my app? http://imgur.com/a/3FZLT Jun 19 21:06:56 desmin88: looks good Jun 19 21:07:15 thx! Jun 19 21:07:43 desmin88 yeah looks nice Jun 19 21:07:48 groxx: awesome, that is exactly what i need! Jun 19 21:07:56 and yes, that's why it's using 22.2 thank you all :D Jun 19 21:08:03 it's impressive how a little background colour and some text can really brighten up a screenshot. I should put some more effort into my screenshots.. Jun 19 21:08:45 quinnjn: materialpalette.com Jun 19 21:10:11 Pick n choose, really simple to do in photoshop with roboto/roboto light Jun 19 21:12:45 desmin88 do you use the color palette library ? Jun 19 21:12:53 i do not Jun 19 21:12:58 since you have lots of graphics, maybe things can be themed that way too Jun 19 21:13:21 i was thinking so but red is sort of the websites 'color' brand Jun 19 21:13:34 it would be incohesive to change it Jun 19 21:15:54 Hi! Jun 19 21:15:58 Which file format is the best to use for android games? (thinking of making animations) I suppose it's PNG, but trying to be sure Jun 19 21:17:04 not sure if anyone else would have more specific info, but I'd generally say PNG is a safe default. compressable, alpha channel, no jpeg jaggies. Jun 19 21:17:20 and once it's in memory, the original file-type doesn't make a difference. Jun 19 21:17:53 I think jpeg is absolutly fine if alpha does not matter Jun 19 21:18:09 Okay, thank you both Jun 19 21:18:35 if you can, there are the 3 graphics chip formats that you might consider shipping, instead of PNG. Jun 19 21:18:38 I'm using Adobe Illustrator to create the vectorial images, is there another good program to do the graphical design? Jun 19 21:18:44 but use png in general. if you need to save some bytes and have large images, consiger jpeg Jun 19 21:18:47 illustrator is fine Jun 19 21:19:03 Sketch is really nice for designing screens, though Jun 19 21:20:30 desmin88 . check this out : http://developer.android.com/guide/practices/screens_support.html Jun 19 21:20:48 what about it Jun 19 21:21:05 This may not directly answer your Q. but gives you details about formats used in designing an app for mutliple screen size support Jun 19 21:21:21 Also gives you a new format you can work with that can dynamically scale itself Jun 19 21:21:39 i dont follow Jun 19 21:21:42 i didnt ask a question Jun 19 21:22:46 lol... sorry! was meant for Iarfen Jun 19 21:24:16 np Jun 19 21:24:38 hi Jun 19 21:24:57 is there a way to get the version number of the current app? Jun 19 21:25:32 lasserix, yes Jun 19 21:25:48 lasserix: it should be in PackageInfo and/or ApplicationInfo Jun 19 21:25:55 which you can get from PackageManager Jun 19 21:25:58 a would like to change font size of some elements in app using sharedPreferences - any idea, how do yo do that? Jun 19 21:26:22 found somthing here http://stackoverflow.com/questions/3241729/android-dynamically-change-style-at-runtime, but not sure if it is the right way... Jun 19 21:29:11 BuildConfig.VERSION_NAME Jun 19 21:29:39 I'm not a Fragment person, so this might be a dumb question, but why on earth doesn't Fragment.onSaveInstanceState get called when we're replacing fragments? Seems like it should be. Jun 19 21:29:42 something like locales logic... Jun 19 21:30:04 I mean that I know it's designed not to be called -- it just seems like bad design to me. Jun 19 21:31:16 Then again, we're replacing these fragments with newly instantiated fragments, so maybe I'm thinking about this all wrong. Jun 19 21:32:17 I'm just evaluating the idea of using Fragments instead of Activities (in general). Using Fragments as the basic component doesn't seem that simple to me. Jun 19 21:33:56 :) Jun 19 21:34:43 http://images.sodahead.com/polls/003775490/5344423774_tumblr_m94yej3z5o1rbt6uoo1_500_answer_4_xlarge.jpeg Jun 19 21:34:49 got it Jun 19 21:35:08 hi. im trying to add a relativelayout below my linearlayout.. the linear layout has text box text box then a button... it occupies to top 5% of my screen, below it, i want a 'calendar' widget ive got, i tried putting my relativelayout in the linearlayout, btu the top part, (the text nad buttnos, get all mangled) Jun 19 21:35:36 should i post screenshots and source Jun 19 21:36:00 http://pastebin.com/BnyjmEPS <- my xml file Jun 19 21:37:42 you should say whats actually wrong Jun 19 21:37:53 http://snag.gy/zzNdL.jpg <- screenshot.. as u can see, the "SEND" button is up top, its supposed to be on the same line as a text box for username and password Jun 19 21:38:14 as seen in the following screenshot Jun 19 21:39:13 hrmm i cant get the sceenshot of the un/pw screen bcuz ive made to many changes to remove the calendar view for this purpose Jun 19 21:39:24 danijoo_: should i rephrase the question Jun 19 21:41:20 Why are the widths 0? Shouldn't the heights be 0? Jun 19 21:41:39 Also, it'd be better to use a single RelativeLayout for the whole thing. Jun 19 21:42:04 My new project: From today, I will write one new unit test a day for each old project until they are all coverd with suffisent tests. Jun 19 21:42:06 (Well, unless you really mean the weight=1 thing.) Jun 19 21:43:12 ok, so, I made the enire thing a relative layout Jun 19 21:43:26 danijoo_ what is 'covered with sufficient tests' :P Jun 19 21:43:26 i want EditText and EditTet and Button, to be on the top line.. and the calendar just below it Jun 19 21:43:39 Oh, no wonder you had 0 widths then. Jun 19 21:44:00 I guess you had first intended a horizontal LinearLayout with a calendar below it. Jun 19 21:44:06 yea Jun 19 21:44:55 Doing what I just described is probably the best solution (because, I assume, you want the EditTexts to get equally wide). Jun 19 21:45:01 s/get/be/ Jun 19 21:45:06 Ok Jun 19 21:45:10 one moment Jun 19 21:45:26 g00s, theres a long way to be walked until this question actually matters :D Jun 19 21:45:45 I'm having more fun creating little test projects than working on my actual project. ;| Jun 19 21:45:45 :D Jun 19 21:46:08 TacticalJoke yeah i get distracted. also in a rut, like need new scenery or something Jun 19 21:46:12 Yeah. Jun 19 21:46:14 especially since most of this stuff is pretty much untestable. Jun 19 21:46:19 by bad design Jun 19 21:46:28 g00s: Just wondering -- were you saying the other day that you tend to use a single Activity and just change Fragments for different screens? Jun 19 21:46:49 i'm somewhere inbetween Jun 19 21:47:14 always trying to minimize pain, so if i see swapping fragments will be harder then i just make a new activity Jun 19 21:47:18 Ah, okay. Jun 19 21:47:29 Yeah, I could imagine doing that (though so far I've just been using Activities). Jun 19 21:47:49 TacticalJoke: might it be called if also addToBackStack? Jun 19 21:47:54 like i have a settingsActivity instead of swapping in a fragment. i tend to do that for leaf nodes, and screens that don't have any relationship Jun 19 21:49:02 groxx: Seems not to be. Jun 19 21:49:46 hey TacitcalJoke: if i have these 4 widgets in a line in my view, but the first Two edittexts take up the entire screen instead of fitting nicely with the other 4 parts Jun 19 21:49:49 do u know what im saying? Jun 19 21:50:01 is it overkill to link from the app to the github page for the apache 2 libraries i use? eg picasso? Jun 19 21:50:12 or is just mentioning it enough Jun 19 21:50:14 we link Jun 19 21:50:23 k Jun 19 21:50:35 this is for a major company so if i get traction i'll push back ;p Jun 19 21:50:47 thanks Jun 19 21:52:31 http://pastebin.com/PCRYZZQ8 <- how can i get all these views in a one line row at the top of my relativeview Jun 19 21:52:40 the first edit boxes take up most of the screen and the button is made tiny Jun 19 21:52:47 TacticalJoke: I guess it considers the arguments to be enough? does seem sub-optimal though :/ Jun 19 21:53:21 sigh, wish i could throw my name in there Jun 19 21:53:30 should probably put something on github really quickly so i can ;p Jun 19 21:53:34 bubbely: Why not do what you did before? weight=1 for the EditTexts. Jun 19 21:54:52 tacticaljoke: that did nothing Jun 19 21:54:57 :D Jun 19 21:57:16 maybe ill put a linearlayout Jun 19 21:57:22 inside of the relative layout Jun 19 22:00:48 problem solved :) Jun 19 22:01:59 TacticalJoke http://www.buzzfeed.com/charliewarzel/reddit-is-a-shrine-to-the-internet-we-wanted-and-thats-a-pro#.sgMpBDGNo1 Jun 19 22:02:06 "What we now see in Reddit is the crash of internet utopian idealism against the rocks of human reality." Jun 19 22:03:08 well, because technology amplifies human behavior - which is often, not so great Jun 19 22:05:14 https://developer.android.com/training/articles/perf-tips.html says to avoid internal getters and setters Jun 19 22:05:30 does anyone have any experience with proguard inlining accessors? Jun 19 22:06:06 Trinity, ignore it Jun 19 22:06:15 use as many getters and setters if you want Jun 19 22:06:22 okay, even if it's for a game? Jun 19 22:06:35 Trinity: you might want to -allowaccessmodification Jun 19 22:06:39 Yeah, those guidelines are a little OTT. Jun 19 22:07:07 for a game, i'd say start optimizing when you have finished writing it. Jun 19 22:07:43 the guidelines are at least reasonably clear about "measure, then fix" :) but yeah. build first, then you have something to measure. Jun 19 22:07:53 how can I unit test if this does what it should? http://pastebin.com/mMn9isp2 ' Jun 19 22:07:59 its part of a static helper class Jun 19 22:08:28 activity monitor keeps returning me null although it works in the app Jun 19 22:08:38 mock context, make sure startActivity is called with the right kind of intent? Jun 19 22:09:09 yeah thats plan b Jun 19 22:09:35 but i thought there is a fancy InstrumentationTestCase way Jun 19 22:14:05 dunno. I forget what it takes to make a test span multiple apps. Jun 19 22:14:29 you are right anyways. i should mock it Jun 19 22:15:46 Context is so badly designed that it should be mocked until it cries. Jun 19 22:46:00 anyone know the answer to my question about a complete list of uses-policies for http://pastebin.com/Pg1JWTMY yet? Jun 19 22:50:17 pokeswap: I haven't seen the question. probably better to repeat it anyway :) Jun 19 22:50:54 pokeswap: but I'd imagine that "complete" is impossible, since I don't see why OEMs wouldn't be able to add more. might be unlikely / maybe they can't and I just don't know, but worth being aware of anyway. Jun 19 22:51:10 groxx: My question was a list of for each of the policies above Jun 19 22:51:30 god, this guy again Jun 19 22:51:31 go away Jun 19 22:51:32 stop repeating Jun 19 22:51:36 stop asking for a private memo Jun 19 22:51:38 don't care Jun 19 22:51:45 never going to go and answer you Jun 19 22:52:10 o.O Jun 19 22:52:26 comes in and asks the same thing every couple hours Jun 19 22:52:29 0.0 Jun 19 22:52:42 pokeswap: grep the source code? or http://androidxref.com . or maybe there's a way to query it. but you are legitimately unlikely to get someone to write up all the results for you. Jun 19 22:53:18 groxx: I was also asking if there was a list. I am unable to find a list of them all Jun 19 22:54:04 groxx: I was also asking if there was a list. I am unable to find a list of them all. Do you know of a list? Jun 19 22:54:09 ... Jun 19 22:54:34 don't feed the troll Jun 19 22:54:54 nope. if it'd be anywhere, it'd be on http://d.android.com or somewhere in the source. Jun 19 22:55:06 pokeswap, Jun 19 22:55:10 https://developer.android.com/reference/android/app/admin/DevicePolicyManager.html Jun 19 22:55:23 hm, the nordic app uses nav drawer + slidingpane layout ... first time i've seen anyone do it, seems cool but not too discoverable Jun 19 22:55:24 learn to google please. Jun 19 22:56:48 g00s: drawer _plus_ sliding? Jun 19 22:56:50 how does that work? Jun 19 22:56:58 pokeswap, https://developer.android.com/reference/android/os/UserManager.html Jun 19 22:57:17 the drawer pull over, but the content can slide to the right opening up the slidingpanelayout Jun 19 22:57:25 so .. like 3 layers i guess Jun 19 22:57:32 g00s: SlidingUpPanel? Jun 19 22:57:39 oh Jun 19 22:57:51 Trinity: that says nothing about for setApplicationHidden Jun 19 22:57:51 setCrossProfileCallerIdDisabled setPermittedInputMethods Jun 19 22:57:51 setScreenCaptureDisabled Jun 19 22:57:51 setUninstallBlocked and Jun 19 22:57:51 uninstallAllUserCaCerts Jun 19 22:58:00 *didn't mean to include /msg nickserv Jun 19 22:58:05 */n s Jun 19 22:58:06 pokeswap, please don't spam the channel Jun 19 22:58:44 pokeswap, please learn to use ctrl+f Jun 19 22:59:09 java.lang.NoClassDefFoundError: android/content/Context -_____- Jun 19 22:59:36 pokeswap, http://lmgtfy.com/?q=setCrossProfileCallerIdDisabled+# Jun 19 22:59:39 i love android Jun 19 22:59:40 what does the second result say? Jun 19 22:59:55 danijoo_: I don't think "-" is allowed in class names. but if it is, that'd be a fun way to obfuscate code - turn everything into emoji Jun 19 22:59:57 danijoo_, you really can't test that, not that it'll open the right activity Jun 19 23:00:26 pfn, nah. its unit test mocks Jun 19 23:00:28 danijoo_, you can only test that the intent you're sending is the intent you're expecting Jun 19 23:00:29 could open the activity & take a screenshot, compare against previous screenshots. would have to be unique per device / OS, but it's better than nothing. Jun 19 23:00:37 danijoo_, which is pretty useless for this situation Jun 19 23:00:38 it gets thrown at Mockito.mock(Context.class) lol Jun 19 23:00:53 Trinity: blacklisted by firewall for spam Jun 19 23:01:16 lol Jun 19 23:01:25 ironic Jun 19 23:01:32 and checked some others too. my projets seems to not have the android.jar somehow Jun 19 23:01:39 pokeswap, look, just stop typing. read my posts and click on my links. youre question has already been answered. Jun 19 23:01:48 as soon as any class is loaded i get that Jun 19 23:02:16 no it hasn't. Whatuses-policies XML declaration is needed to have the above work Jun 19 23:03:25 even new intent("some action") results in noclassdefffound :D Jun 19 23:05:19 Trinity: It is also not possible to create a new UserManager(); Jun 19 23:06:29 pokeswap, I can't understand you and I don't want to help you anymore. you can do your own research. https://developer.android.com/reference/android/app/admin/DeviceAdminInfo.html Jun 19 23:07:05 Maybe someone can help tomorrow. if anyone does know the answer, msg memeserv msg me Jun 19 23:07:44 your answer has already been answered. you lack the motivation to piece them together. no one will do that for you Jun 19 23:10:54 JakeWharton: does leak canary work on emulators? Jun 19 23:11:01 of course Jun 19 23:11:18 it's just a glorified ref queue Jun 19 23:12:07 can the emulators handle that much glory? Jun 19 23:13:22 JakeWharton: can I add the two lines for the dependencies from gradle, or do i need to install all the 4 packages? Jun 19 23:13:49 i don't know what that means Jun 19 23:14:25 debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' Jun 19 23:14:25 releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' Jun 19 23:14:27 so I've added Jun 19 23:14:29 ^^ Jun 19 23:14:33 to dependencies node, Jun 19 23:14:49 but there is also -watcher and something else, are all those necessary or just these two? Jun 19 23:14:56 i have no idea Jun 19 23:15:33 Oh ok, how do I tell if it is running? Is there a way to switch to a view from it? Jun 19 23:15:53 i have never used it so I don't kow Jun 19 23:16:01 oh ok Jun 19 23:16:03 thanks though Jun 19 23:16:11 lasserix: Your debugger will show another activity called leakcanary or something like that Jun 19 23:16:37 CedricBeust: ahh i see thanks, Jun 19 23:17:37 i wish i could tell if had 0 memory leaks Jun 19 23:17:47 Who wouldn't... Jun 19 23:17:49 i can't tell if i just have managed to code memory leak free or its working Jun 19 23:18:18 * i mean from leak canary, like it could say "detected nothing so far" instead of only popping up when it does find a leak Jun 19 23:18:23 You can get a quick idea by writing a monkey with the monkey_runner and observe if the memory slowly increses Jun 19 23:18:25 watch memory, if it leaks, it will grow Jun 19 23:18:33 benefit is you can just sit back and just look at the screen Jun 19 23:18:37 yes yes, but I mean using leak canary Jun 19 23:18:56 *i did those things already actually Jun 19 23:20:07 oh do I have to run it in debug mode? Jun 19 23:24:59 If i have a activity with a class variable "static Context context" and in onCreate { context = this; } and then press back is this a memory leak? Jun 19 23:27:09 if context != applicationContext, yes Jun 19 23:28:16 yeah thats what i thought Jun 19 23:28:17 hmm Jun 19 23:28:22 has anyone used LeakCanary in here? Jun 19 23:29:56 lasserix: `static Context context = activity` should also be visible in `adb shell dumpsys meminfo ` Jun 19 23:30:07 groxx huh? Jun 19 23:30:32 static Context context will (probably) bypass the activity lifecycle Jun 19 23:30:50 this is why it can leak Jun 19 23:31:13 it will leak because the gc cant gc if theres still a static reference to the activity Jun 19 23:31:19 in case of hte applicationContext it's not a problem because iirc, it's already a static context outside of hte activity lifecycle (in application) Jun 19 23:31:19 hasnt much to do with the lifecycle Jun 19 23:31:40 Yeah, that variable has the lifetime of the entire process, AFAIK. If it's assigned to an activity, it'll prevent that activity from being collected indefinitely unless it's reassigned. Jun 19 23:31:40 ah i thought it was related to lifecycle, because it handles the GC Jun 19 23:31:45 but i'm not very sure :) Jun 19 23:32:20 how do i save data to the local android hard drive Jun 19 23:32:23 People sometimes leak one activity for a short amount of time. It's not the end of the world, but it's not ideal either. Jun 19 23:32:40 bubbely: I am 12 and what is Google. Jun 19 23:33:02 bubbely, http://developer.android.com/guide/topics/data/data-storage.html choose Jun 19 23:33:25 Thanks adq Jun 19 23:33:28 you better start with SharedPreferences Jun 19 23:33:35 you'd* Jun 19 23:33:59 bubbely, another good resource: https://support.google.com/websearch/answer/134479?hl=en Jun 19 23:34:07 lol nice Jun 19 23:34:13 * adq bookmarks this url Jun 19 23:34:17 haha Jun 19 23:34:46 TacticalJoke, still waiting your reddit app :)) Jun 19 23:34:48 I knew someone who'd always use question marks in Google queries. She realised it made no difference but did it anyway. Jun 19 23:35:05 Like "how do we save data to the local android hard drive?". Jun 19 23:35:34 yeah for an answer machine, where the input is only a pseudo-question Jun 19 23:35:43 those kind of people who write whole questions are hilarious Jun 19 23:35:43 i cannot imagine the interrogation mark making a big diff Jun 19 23:36:04 but it's natural ^^ Jun 19 23:36:09 sure Jun 19 23:36:19 i've had someone look over my shoulder while i googled stuff with the "" markers Jun 19 23:36:25 Natural language processing Jun 19 23:36:26 and they asked me why am I googling what someone said Jun 19 23:36:31 they must take in account punctuation too Jun 19 23:36:40 but kinda ironic that they waste extra time to write more words and google then wastes extra time to filter for keywords Jun 19 23:36:44 adq: I use it all day every day, but it'd be cruel to release it yet. It'd be like dropping a newborn baby into the Serengeti to fend for itself. Jun 19 23:37:05 no pb TacticalJoke, just tell us when released Jun 19 23:37:05 TacticalJoke isn't that how android started ? Jun 19 23:37:09 :D Jun 19 23:37:12 i tend to ask to you each few monthes ;) Jun 19 23:37:42 "Etsy Bans The Sale Of Spells, Witches Revolt" Jun 19 23:38:00 lol Jun 19 23:38:07 I made an image in Illustrator and I want to apply a different color to it. I've tried all modes (PorterDuff.Mode). The best seems to use PorterDuff.Mode.Multiply but this also colors the white part of the image. What is the best way to change the color? http://postimg.org/image/dkjejh3lp/ Jun 19 23:38:08 better cash out on my ETSY stock then Jun 19 23:38:20 TacticalJoke: quotes matter when googling... try searching with / without quotes for a few random nouns, like "cheese hamster dog" Jun 19 23:38:25 Yeah. Jun 19 23:38:42 surf2b1, a color matrix Jun 19 23:38:44 with hue Jun 19 23:38:45 I hate that we can't use `+` anymore. Gotta use quotes for that function now. Jun 19 23:38:54 pretty straight-forward you will see Jun 19 23:38:57 at least `-` still works :) Jun 19 23:39:00 Yeah. Jun 19 23:39:05 TacticalJoke orly? i guess thats why my + queries dont work Jun 19 23:39:06 IMO, Google Search was better 6-8 years back Jun 19 23:39:09 :D Jun 19 23:39:15 Yeah, they dropped it a while back. Jun 19 23:39:17 DuckDuckGo <3 Jun 19 23:39:19 I feel dirty using quotes for single words. Jun 19 23:39:26 i use ddg too Jun 19 23:39:34 I'm too lazy to remember to use DDG Jun 19 23:39:43 surf2b1, http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw something like that Jun 19 23:39:46 I could probably set it as the default, but I'm too lazy for that too. Jun 19 23:39:53 g00s, iono if you remember me but i've seen you around this channel for like ages.. Jun 19 23:39:57 just looking at that. Thanks adq ! Jun 19 23:40:01 np Jun 19 23:40:14 back 3 or 4 years ago i think you helped me get started with android Jun 19 23:40:15 just because of the adorable duck icon. tbut bing has some nice photogaphy Jun 19 23:40:15 thanks :) Jun 19 23:40:27 Trinity o nice Jun 19 23:40:38 <3 is in the air Jun 19 23:41:01 heh Jun 19 23:41:19 Trinity have you been doing android the whole time ? Jun 19 23:41:59 nah, i've branched out a lot. i'm pretty much full stack now. Not in the elitist mentality but in playing with and comfortable with Jun 19 23:42:13 Has anyone used LeakCanary? Jun 19 23:42:15 2 years back due to android I started using Linux and now im rocking an Xubuntu OS and loving it :0 Jun 19 23:42:40 I sometimes feel like the script-kiddie archetype would *love* Android programming. Or the l33t hax0r type. If you enjoyed messing with weird stuff, it'd be kinda fun. Jun 19 23:42:51 comfortable with the full stack of technology* Jun 19 23:42:54 Trinity: sounds like you must give up your first born to g00s Jun 19 23:43:01 TacticalJoke: I think Java might push them away Jun 19 23:43:05 Ah, true. Jun 19 23:43:25 ^ only if he comes to collect. I still remember when I used to manually type out my for loops rofl. Jun 19 23:44:54 lasserix: I use LeakCanary Jun 19 23:44:54 I remember having to use loop unrolling for something. Something relating to Delphi and text parsing. Jun 19 23:45:19 surf2b1: i added the two lines to my dependences, and did the application class initialize line of code, how do I tell tis working? Jun 19 23:46:01 surf2b1: is there some way to see if it is doing anything at all? like in log cat or? Jun 19 23:46:35 lasserix, did you read https://corner.squareup.com/2015/05/leak-canary.html ? Jun 19 23:46:47 yeah Jun 19 23:46:50 i still haven't used leakcanary though Jun 19 23:47:01 lasserix: Did you add the stuff to your AndroidManifest? Jun 19 23:47:03 but i can read: "You get a notification and a nice display out of the box" Jun 19 23:47:17 surf2b1: what stuff? Jun 19 23:47:51 see "Don't forget to register the service in your debug manifest:" Jun 19 23:47:57 https://github.com/square/leakcanary Jun 19 23:49:10 that is just to upload Jun 19 23:49:15 that has nothing to do with the library itself Jun 19 23:49:17 oh wait.. Jun 19 23:49:19 How do I insert a view at the bottom of a LinearLayout in code? Jun 19 23:49:39 Can't you use ViewGroup.addChild(View, int)? Jun 19 23:49:40 as the last child of the linear layout? Jun 19 23:49:41 Or something. Jun 19 23:49:49 `int index` Jun 19 23:49:52 lasserix: sorry lasserix I'm using it in an Eclipse project that isn't Gradle based so I had to add LeakCanary as a library dependency. Jun 19 23:49:54 cool. thanks Jun 19 23:49:58 I could be wrong. Jun 19 23:50:30 s73v3r: View lastRow. int childCount = linearlayout.getChildCount(); linearlayout.addView(lastrow, childcount -1) if it is not at the end Jun 19 23:50:38 but I have this in my Manifest for LeakCanary: http://pastebin.com/KTFf3ems Jun 19 23:50:44 thanks Jun 19 23:51:03 surf2b1: ahh thanks Jun 19 23:51:07 Oh yeah, addView. Jun 19 23:51:32 layoutInflator.inflate(R.layout.whatev, parent); will also do that for ya Jun 19 23:53:26 You know, if I was making this alert popup the normal way, I’d have it done in 10 minutes. But since I have to get the entire layout and actions from the server, i’ve lost 3 days on it so far Jun 19 23:53:51 View.bringToFront also does stuff like this with LinearLayout, I think. Jun 19 23:54:30 welcome to android dev s73v3r Jun 19 23:54:44 Yeah, I was thinking "only three days". :D Jun 19 23:54:53 my point is that i’m not doing it the android way Jun 19 23:54:54 "It took me an extra three weeks" sounds more normal. Jun 19 23:55:23 or maybe "I had to read 50,000 lines of framework source to figure out why it NPE'd on me" Jun 19 23:55:55 and then you find the 4 year old bug report for the documentation gap. Jun 19 23:55:58 lol Jun 19 23:56:48 s73v3r most of the collective wisdom floating around is how to bet android by not doing it the android way :) Jun 19 23:56:55 *beat Jun 19 23:57:11 the android way is content providers, boilerplate, bundles ... Jun 19 23:57:14 the bundles ! Jun 19 23:57:22 does any of that collective wisdom say the server should send down what widget should go where, and what the action shoud be when a widget is touched? Jun 19 23:57:32 Parcelable makes me want to cry. Jun 19 23:58:29 Parcelable i can deal with because it can be hidden behind AutoParcel Jun 19 23:58:32 s73v3r: sure, that part is handled by https://html.spec.whatwg.org/ Jun 19 23:58:39 did you notice the "NEW" in red, appearing here and there in the doc? http://developer.android.com/reference/java/text/DecimalFormat.html I mentioned it few days ago Jun 19 23:59:09 adq yeah its been there for a while Jun 19 23:59:10 it's even mroe hilarious when you scroll down, written discreetly: "Features marked as NEW and patterns that use characters not documented above are unlikely to serialize/deserialize correctly." Jun 19 23:59:15 I wish they decided to do the UI in HTML, then I wouldn’t have to worry about them Jun 19 23:59:20 ok, i thought it was new too Jun 19 23:59:43 i don't crawl enough in the doc i guess :p Jun 19 23:59:48 I was wondering, you know when Android crashes and you report a bug? Does it send those bugs directly to the developer of that app? How do they receive those? Jun 20 00:00:03 they show up in the Google Play console Jun 20 00:00:38 ^ yep, and it's almost instantaneous (the crash report) Jun 20 00:01:05 Anyone else use LeakCanary? Jun 20 00:01:27 ok thanks Jun 20 00:03:32 gotta go Jun 20 00:03:49 Wait, did he pay? Jun 20 00:05:34 well Jun 20 00:05:39 hes got the wrong idea Jun 20 00:05:46 users have to consent to send the report Jun 20 00:05:52 he needs to use like crashlytics or something Jun 20 00:09:19 lasserix: still not working? Jun 20 00:14:49 anyone have a nice way to handle clicks happening after onPause? seems nuts to me that it's even possible, but ¯\_(ツ)_/¯ the stack traces are pretty unambiguous Jun 20 00:15:03 lol Jun 20 00:15:15 that sounds like TacticalJoke , mashing a button starting multiple activities Jun 20 00:15:24 surf2b1: can't tell or maybe im just so good i have no memory leaks ;p Jun 20 00:15:29 well, specifically onSaveInstanceState. but that should be happening only after onPause. ...........right? Jun 20 00:15:45 groxx yeah Jun 20 00:15:49 handler post delayed Jun 20 00:16:42 groxx also when you have an activity open and you redeploy it forces onpause to be called Jun 20 00:17:01 lasserix: Did you add the activity/service to your Manifest? You should have an extra launcher icon. You can always give yourself a leak. Just create a static copy of your activity and rotate the screen or something. Jun 20 00:17:07 lasserix: not sure how that helps prevent clicks from being delivered after onPause. I see that a lot to temporarily disable buttons after they're tapped, but that's something different Jun 20 00:17:18 redeploy? Jun 20 00:18:40 Isn't it safe to handle the click after onPause? Jun 20 00:19:22 Though I guess it depends on how you're handling stuff. Jun 20 00:20:16 click -> fragment transaction. and yeah, `commitAllowingStateLoss()`, but that's more yolo than I'm feeling Jun 20 00:20:33 Oh, okay. Jun 20 00:21:00 surf2b1: starting with a new project now Jun 20 00:21:08 though the guide says i dont need anything in the manifest Jun 20 00:32:35 groxx: How are you thinking of solving that? Sounds annoying. :| Jun 20 00:32:51 The idea of keeping track of whether onPause/onResume has been called sounds awful. Jun 20 00:34:08 well, we already have a "do this thing when we next onResume" that would "fix" it relatively smoothly (if I knew when it was needed). but that means tracking onPause/onResume, maybe other stuff if it's relevant, and I'm hoping to avoid "debugging in the cloud" since it's really hard to reproduce Jun 20 00:35:56 I'm reasonably sure it's coming from this: http://cl.ly/image/0G1L093T2R2Q because it's only removed when the view is detached from the window. but it seems like nuttery that it's even possible, and that the click isn't canceled in a case like this. Jun 20 00:38:19 Oh, so the problem pertains to a Runnable posted to the message queue running after onPause? Jun 20 00:38:32 yeah. as part of View's onTouchEvent :( Jun 20 00:39:10 unless there's just a bug in FragmentManager, and it _thinks_ it's after onSaveInstanceState, when it really isn't. Jun 20 00:40:29 ha, nice. and gingerbread doesn't even remove the post'd click runnable when the view is detached. explains why I've had clicks happen there after the activity is destroyed :| Jun 20 00:41:55 In 'master', onDetachedFromWindowInternal removes the runnable: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/view/View.java#13403 Jun 20 00:42:28 it would be nice to be able to only code for devices running master :| Jun 20 00:42:53 TacticalJoke: http://androidxref.com/2.3.7/xref/frameworks/base/core/java/android/view/View.java#6079 Jun 20 00:43:16 but gingerbread has other problems. you can fling a listview after the activity's gone, too Jun 20 00:43:30 Damn, how did they forget that. lol Jun 20 00:43:32 So basic. Jun 20 00:43:55 I swear, some of this code looks like it was written in about 10 minutes and soon forgotten about. Jun 20 00:44:40 :/ Jun 20 00:44:57 nice to know I'm looking at a quality ecosystem Jun 20 00:45:49 it does legitimately seem to be improving over time :) unfortunately it's also continuously being accompanied by baking more limited-use features into core classes. Jun 20 00:46:39 To be fair, it seems to be fixed in 4.0.4 (though this doesn't help groxx). Jun 20 00:46:47 well it would be scary if its *wasn't* getting better Jun 20 00:47:06 What do you guys think of my feature graphic? http://i.imgur.com/kx93Zhf.png I'm going for minimalist. Only concerns I have is sub heading text is slightly hard to read at a glance on the overlap Jun 20 00:47:16 though there was that recent mess with external storage permissions. Jun 20 00:47:36 desmin88: The grey text is hard to read where it overlays the redness. Jun 20 00:47:45 Nice in general, though. Jun 20 00:47:55 maybe a faint outline? Jun 20 00:48:00 nice in general, I dont like how the text is on the image Jun 20 00:48:12 Maybe the subtext could be removed entirely. Jun 20 00:48:26 A lot of text on logo-related stuff doesn't usually look good. Jun 20 00:48:58 thats true Jun 20 00:49:53 maybe a heavyish shadow layer? Jun 20 00:50:07 this is without sub text http://i.imgur.com/8ehSt5q.png Jun 20 00:51:14 Here it is from 85% opacity to 75% - http://i.imgur.com/7FH0DE0.png Jun 20 00:56:50 easier to read when it's less bold, yeah. quite a lot of vertical lines near each other might make it harder to read for some people, but it's not hard to fill in the blanks when it's obviously the app's name :) Jun 20 00:59:32 lol, that's a new one: http://pastebin.com/YmjG452q ActivityManager crashed when I tried to resume my app (while tapping crazily) Jun 20 01:26:02 Whats the mark down for google play store descriptions? Jun 20 01:26:15 I see people with bullet points but i cant seem to figure that one out Jun 20 01:30:32 surely that would just be a leading * Jun 20 01:30:51 I mean, if its markdown, its markdown. Jun 20 01:31:06 desmin88, it's utf8 Jun 20 01:31:17 heh Jun 20 01:31:30 aha Jun 20 01:31:42 thanks pfn Jun 20 01:33:49 desmin88 http://stackoverflow.com/questions/11071127/google-play-app-description-formatting Jun 20 01:34:11 g00s: thanks just found that, for some reason my search wasnt bringing it up Jun 20 01:39:41 I'm not the greatest writer, could I get some comments on my app description? http://pastie.org/10249656 Jun 20 01:41:17 "Amazing Performance" < why is the 'p' in upper case? Jun 20 01:41:49 Thanks! Jun 20 01:42:01 i guess im 'shifty' with my shift button Jun 20 01:42:25 * desmin88 is sorry Jun 20 01:43:37 desmin88 lol, this is a spiritual app for spiritual people, for spiritual reading - but all the bulletpoints are tech bs Jun 20 01:44:22 i myself am a tech bs not a spiritual people Jun 20 01:44:30 how do i connect to them, lol Jun 20 01:44:45 Why are you making this for them? Just curious. Jun 20 01:45:10 well first 3 anyhow, i'd nuke those. you have to explain how the app helps these people connect with their religion Jun 20 01:45:26 or helps people connect with other people , if it lets you do that Jun 20 01:45:52 TacticalJoke: It started out as me being bored and wanting to learn android but there is money to be made Jun 20 01:46:02 g00s: good ideas thanks! didnt think of that Jun 20 01:46:39 desmin88 did you add the daily luther yet ? :D :D :D Jun 20 01:46:45 You should offer them an upgrade-to-atheism option. Jun 20 01:47:04 g00s: i might add it as an easter egg Jun 20 01:47:11 desmin88 lol don't just kidding Jun 20 01:47:45 TacticalJoke: thats actually an IAP Jun 20 01:49:11 please dont use words like amazing Jun 20 01:49:17 and then put it next to performance Jun 20 01:49:26 say "fast, slick user experience" Jun 20 01:49:26 use amazeballs instead Jun 20 01:49:29 use "Outlandish" instead! Jun 20 01:49:45 seamless user experience, something like that maximum Jun 20 01:49:54 cause that's the first thing they will call you out on Jun 20 01:49:55 most maximum performance ever Jun 20 01:49:55 lol Jun 20 01:50:05 most maximum performancial impressiveness of speed Jun 20 01:50:53 desmin88 so at the bottom, it says "uCatholic, dedicated to providing traditional Catholic information in the modern world." ... put that first maybe, and then explain how the app helps that happen Jun 20 01:51:23 desmin88 you could also just ask the folks running uCatholic for the description Jun 20 01:51:49 actually i'd do that Jun 20 01:53:32 such perform, very amaze Jun 20 01:54:00 its actually uCatholic? Jun 20 01:54:16 i read that as microCatholic heh Jun 20 01:54:17 I thought the u's were for formatting Jun 20 01:54:22 like that bull thing he had Jun 20 01:54:24 lol Jun 20 01:54:28 µCatholic Jun 20 01:54:31 I think its underline, dude Jun 20 01:54:33 :P Jun 20 01:54:33 no the website is actually uCatholic Jun 20 01:54:38 oh Jun 20 01:54:39 damn Jun 20 01:54:40 such name Jun 20 01:54:46 g00s: its actually just 'folk Jun 20 01:54:49 'folk'* Jun 20 01:55:11 folk that shit Jun 20 01:55:17 good description though, very nice and compact Jun 20 01:55:21 +10 would read Jun 20 01:57:31 Jeff Attwood Jun 20 01:57:34 Jeff Attwouldn't Jun 20 01:57:42 Jeff Attwouldprobably Jun 20 01:59:01 Matt Might Jun 20 02:06:07 hey Odaym Jun 20 02:06:13 hey man Jun 20 02:06:33 where we playing around with scaling an image the other day? Jun 20 02:06:58 awkward sentence... Jun 20 02:07:00 but yea! Jun 20 02:07:20 I slept, now Im working on something else but its coming of course Jun 20 02:08:05 been thinking of how a selector would solve it but..didnt try anything yet cause I still think you need the ripple to envelope both items cause doing it only on one was making the other disappear Jun 20 02:08:21 ah cause I think the mask means "apply all of yourself to this element" so the first one is eaten up! Jun 20 02:10:30 Odaym: you wanted a correct ripple driawable Jun 20 02:10:32 drawable Jun 20 02:10:34 right Jun 20 02:10:36 yea Jun 20 02:10:36 i got that Jun 20 02:11:57 with the XML i showed? Jun 20 02:12:32 is it possible to make a color filter app that overrides the colors of other apps by overlaying on top and sending touch events through ? Jun 20 02:12:56 ?? Jun 20 02:13:10 Odaym: https://gist.github.com/slightfoot/e2c094f49b4740041c2c Jun 20 02:13:11 surely there is more direct ways. Jun 20 02:13:44 ahhhh Jun 20 02:13:47 an item can have a layer list Jun 20 02:13:51 thats what I was looking to find Jun 20 02:14:04 an item can have any drawable in it Jun 20 02:14:22 the inner view is what I wanted masked Jun 20 02:14:29 so its the flip of what you sent Jun 20 02:14:30 let me try Jun 20 02:18:16 shmoooz: yes, probably - there are apps on the store which do that sort of thing Jun 20 02:18:25 no it isn't you just flipped them Jun 20 02:18:49 not sure you can completely override colours - most of them are filters, to dim the screen, or tint it red at night Jun 20 02:19:12 and I thought I was inventing something again Jun 20 02:19:31 I do the same as you are doing with the GradientDrawable Jun 20 02:19:32 ;D Jun 20 02:19:35 Leeds: I know atleast the status bar can be drawn over completley Jun 20 02:20:19 and it causes one weird issue - you can't press the 'install' button for an app if there's an overlay, to stop malicious apps tricking users into installing other stuff Jun 20 02:22:56 ah, right, that 'filters obscured touches' or something attribute. probably other security-sensitive stuff. Jun 20 02:23:32 it still is definitely the same, Napalm Jun 20 02:24:02 you placed a mask over it having the same shape as the area I want to be masked Jun 20 02:24:13 but then you have the ripple on the whole thing, so it will again reach the edges and be square Jun 20 02:29:09 Odaym: i think you have anoter issue Jun 20 02:29:11 this works fine for me Jun 20 02:29:32 the ripple only covers the white area of the card Jun 20 02:29:38 has nice round corners Jun 20 02:29:53 as it is right there? Jun 20 02:30:01 yes Jun 20 02:30:12 I just set the background of every list item to that drawable shape, no coloring of background involved yet Jun 20 02:30:25 eys Jun 20 02:30:25 yes Jun 20 02:35:37 but that's impossible Jun 20 02:36:10 I set that background to the relative layout that's holding all the elements in each item's layout Jun 20 02:36:51 to the root view Jun 20 02:36:56 the root element* Jun 20 02:37:19 impossible?! THIS. IS. ok, maybe you're right. Jun 20 02:37:27 THIS ONE is Jun 20 02:37:37 THIS TIME? its really the fault of the thing, not you Jun 20 02:38:01 Android: making devs feel good about their code. Jun 20 02:38:06 ™ Jun 20 02:38:17 yea the platform just sucks Jun 20 02:38:24 it has nothing to do with our shortcomings Jun 20 02:38:40 isn't there an outline provider thing for ripples? or is that just shadows? Jun 20 02:38:51 yea its a mask Jun 20 02:39:11 ah, that was the thing earlier? Jun 20 02:39:18 yea Jun 20 02:39:25 so the selector will respect the drawable Jun 20 02:39:41 gotcha. well, I can't help here :) good luck! Jun 20 02:40:32 pretty sure something is being ignored Jun 20 02:40:43 3 red lines in the drawable because of needed min API's Jun 20 02:41:08 want me to upload the xml layout and show you a video of it working? Jun 20 02:41:12 it will crash if I have the root element of the background drawable as a ripple, wont it? Jun 20 02:41:14 im telling you its fine Jun 20 02:41:20 Odaym: are you using a ListView? Jun 20 02:41:40 DragsortListview Jun 20 02:41:45 ah ha Jun 20 02:41:50 theres your problem Jun 20 02:41:53 nah man Jun 20 02:41:57 yes man Jun 20 02:41:57 im sure he didnt override things like that Jun 20 02:42:04 try it with RecyclerView Jun 20 02:42:05 lol Jun 20 02:42:10 Im very versed in the code for that lib Jun 20 02:42:12 wait Jun 20 02:42:16 add this to your code Jun 20 02:42:20 I should but its too much work now, I need to release soon Jun 20 02:43:00 that ripple tag does crash on older API's for sure, just tried Jun 20 02:43:02 android:listSelector="@null" and android:drawSelectorOnTop="false" Jun 20 02:43:10 add those to your ListView Jun 20 02:43:21 imoghggsdfdgfdgf Jun 20 02:43:22 I had only drawSelector false Jun 20 02:43:23 omg Jun 20 02:43:24 let me try Jun 20 02:43:42 what Jun 20 02:44:04 Odaym: the ripple drawable should be in res/drawable-v21 directory Jun 20 02:44:12 yes of course, yea Jun 20 02:44:12 sorry Jun 20 02:44:15 yea definitely Jun 20 02:44:17 lol yea Jun 20 02:44:18 meh Jun 20 02:44:20 and then you should make another drawable in res/drawable Jun 20 02:44:24 :| Jun 20 02:44:32 I can just leave the old one, it renders fine on older Jun 20 02:44:42 ah no I need it to abide also by the corners Jun 20 02:45:09 dude Jun 20 02:45:17 did you turn off the list selector Jun 20 02:45:37 yes, it becomes orange now Jun 20 02:45:53 thats what ypu want? Jun 20 02:46:14 regardless of the colors, the edges are still being filled out as square Jun 20 02:46:17 let me try with a real listview Jun 20 02:46:57 pastebin the layout where you use it Jun 20 02:47:07 this has ListView stink all over it Jun 20 02:47:39 * Napalm has dreams of the awesome uses of RecyclerView Jun 20 02:51:53 Odaym: well? Jun 20 02:52:00 one moment Jun 20 02:52:27 you must have a tangled web of code if its taking this long to swap out a UI element Jun 20 02:52:41 no im trying with another ready project Jun 20 02:52:45 that has a clean list Jun 20 02:55:20 still Jun 20 02:56:05 here's the XML where the list is http://pastie.org/10249725 Jun 20 02:57:39 this is where the background is being used http://pastie.org/10249727 **** ENDING LOGGING AT Sat Jun 20 02:59:58 2015